/* Сертификати page, home warning card and the admin oversight panel */
.cert-tabs{margin:0 0 14px;flex-wrap:wrap}
.cert-tabs button{font-size:13px;padding:9px 14px}
.cert-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.cert-summary>div{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:rgba(0,0,0,.12);display:grid;gap:2px}
.cert-summary b{font-size:24px;font-weight:800}
.cert-summary small{font-size:11px;color:var(--muted)}
.cert-summary .ok b{color:#6fe0ae}.cert-summary .warn b{color:#ffc46b}.cert-summary .bad b{color:#ff9c9c}
.cert-quick{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:14px;font-size:12px;color:var(--muted)}
.cert-quick span{margin-right:4px}
.cert-list{display:grid;gap:10px}
.cert-card{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px 18px;border-radius:14px;border-left:3px solid #2fd28f}
.cert-card.expiring{border-left-color:#ffb547}.cert-card.expired{border-left-color:#ff7b7b}.cert-card.permanent{border-left-color:var(--cyan)}
.cert-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:rgba(0,166,200,.12);color:var(--cyan2);font-size:13px;font-weight:800;flex:none}
.cert-main{min-width:0;display:grid;gap:3px}
.cert-main b{font-size:15px}
.cert-main b em{font-style:normal;color:var(--cyan2);font-weight:600}
.cert-until{font-size:13px;color:#c8dbe6}
.cert-main small{font-size:11px;color:var(--muted)}
.cert-notes{font-style:italic}
.cert-side{display:grid;justify-items:end;gap:8px}
.cert-actions{display:flex;gap:6px}
.cert-actions .ghost{padding:7px 10px;font-size:11px}
.cert-badge{font-size:11px;font-weight:700;padding:5px 10px;border-radius:20px;white-space:nowrap}
.cert-badge.ok{background:rgba(47,210,143,.12);color:#7ee6b8}
.cert-badge.warn{background:rgba(255,181,71,.14);color:#ffc46b}
.cert-badge.bad{background:rgba(255,120,120,.14);color:#ff9c9c}
.cert-foot{font-size:11px;color:var(--muted);margin:14px 0 0;line-height:1.5}
.cert-team-list{display:grid;gap:6px}
.cert-team-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:linear-gradient(145deg,rgba(15,45,68,.7),rgba(8,31,49,.7))}
.cert-team-row b{display:block;font-size:14px}
.cert-team-row small{font-size:11px;color:var(--muted)}
.cert-team-date{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}
.cert-missing{margin-top:12px;padding:14px 16px}
.cert-missing summary{cursor:pointer;font-size:13px;font-weight:700}
.cert-missing .count-pill{display:inline-block;margin-left:6px;background:var(--orange);color:#2a1205;border-radius:20px;padding:0 6px;font-size:10px;font-weight:800}
.cert-missing p{font-size:12px;color:var(--muted);line-height:1.6;margin:10px 0 0}
.cert-trainee{padding:16px 18px;display:grid;gap:8px}
.cert-trainee h3{margin:0;font-size:15px}.cert-trainee h3 small{font-size:11px;color:var(--muted);font-weight:500;margin-left:6px}
.cert-pair-form{padding:16px 18px;margin-bottom:12px;display:grid;gap:8px}
.cert-pair-form small{font-size:11px;color:var(--muted)}
.cert-pair-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}
.cert-pair-row label{display:grid;gap:5px;font-size:11px;color:var(--muted)}
.cert-pair-row select,.cert-oversight-rows select{border:1px solid var(--border);background:rgba(0,0,0,.18);border-radius:9px;padding:10px;color:var(--white);font:inherit;font-size:13px;min-width:0}
.cert-pair{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px}
.cert-pair>div{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px}
.cert-pair>div span{color:var(--cyan2)}
.ghost.danger{color:#ff9c9c;border-color:rgba(255,120,120,.3)}
.cert-modal{max-height:calc(100vh - 40px);overflow:auto}
.cert-fields select,.cert-fields input[type=date],.cert-fields input[type=file]{border:1px solid var(--border);background:rgba(0,0,0,.18);border-radius:9px;padding:11px;color:var(--white);font:inherit;font-size:13px;width:100%;min-width:0}
.cert-fields input[type=date]{min-height:42px}
.cert-field-hint{font-size:11px;color:var(--muted);margin-top:-4px}
.cert-remove-file{display:flex!important;flex-direction:row!important;gap:8px;align-items:center;font-size:12px}
.cert-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.cert-form-actions .ghost.danger{margin-right:auto}
/* home card */
.cert-home-card{margin:0 0 18px;padding:18px 22px;border-radius:16px;display:grid;gap:12px;border-left:3px solid #ffb547}
.cert-home-card.bad{border-left-color:#ff7b7b}
.cert-home-head{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
.cert-home-head h2{margin:2px 0 0;font-size:18px}
.cert-home-head .text-link{padding:0;font-size:12px}
.cert-home-list{display:grid;gap:6px}
.cert-home-list button{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;text-align:left;border:1px solid var(--border);border-radius:11px;padding:9px 12px;background:rgba(0,0,0,.12);color:var(--white);cursor:pointer;font:inherit}
.cert-home-list b{font-size:13px}.cert-home-list small{font-size:11px;color:var(--muted)}
/* admin panel */
.admin-cert-oversight{padding:16px 18px;margin-bottom:14px;display:grid;gap:12px}
.cert-oversight-head b{display:block;font-size:14px}.cert-oversight-head small{font-size:11px;color:var(--muted)}
.cert-oversight-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.cert-oversight-rows label{display:grid;gap:5px;font-size:11px;color:var(--muted)}
@media(max-width:760px){
  .cert-card{grid-template-columns:auto 1fr;padding:14px}
  .cert-side{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
  .cert-pair-row{grid-template-columns:1fr}
  .cert-team-row{flex-direction:column;align-items:flex-start}
  .cert-home-list button{grid-template-columns:1fr auto}
  .cert-home-list button small{display:none}
}
html[data-theme="light"] .cert-team-row,html[data-theme="light"] .cert-summary>div,html[data-theme="light"] .cert-home-list button{background:#f6f9fb;color:inherit}
html[data-theme="light"] .cert-badge.ok{color:#11704b}html[data-theme="light"] .cert-badge.warn{color:#9a5b00}html[data-theme="light"] .cert-badge.bad{color:#b4262f}
html[data-theme="light"] .cert-until{color:inherit}
.cert-export{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;font-size:13px;color:var(--muted)}
.cert-export .ghost{padding:7px 12px}
