/* Scoped to the employee view; shared motion owns all animation timing. */
#employeePanel{min-width:0;color:#17243b}
#employeePanel [hidden]{display:none!important}
#employeePanel .em-card{min-width:0;padding:22px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:18px}
#employeePanel h2,#employeePanel h3,#employeePanel p{margin:0 0 12px}
#employeePanel .em-muted,#employeePanel small{color:#64748b;line-height:1.6}
#employeePanel .em-head,#employeePanel .em-actions,#employeePanel .em-run{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#employeePanel .em-actions{justify-content:flex-start}
#employeePanel .em-hero{background:linear-gradient(120deg,#fff,#f1f7ff)}
#employeePanel .em-eyebrow{display:block;color:#2563eb;font-size:12px;font-weight:700;letter-spacing:1px;margin-bottom:8px}
#employeePanel .em-controls{display:grid;grid-template-columns:120px minmax(200px,1fr) minmax(200px,1.2fr) auto;gap:16px;align-items:end}
#employeePanel label{display:grid;gap:7px;font-size:13px;color:#475569;min-width:0}
#employeePanel input,#employeePanel select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;background:#fff;color:#17243b}
#employeePanel button{min-height:36px;cursor:pointer;white-space:normal}
#employeePanel button:disabled{cursor:default;opacity:.5}
#employeePanel .em-run{justify-content:flex-start;padding:14px 2px;min-height:44px}
#employeePanel .em-run progress{width:150px;height:6px;accent-color:#2563eb}
#employeePanel .em-error{background:#fff1f2;color:#b42338;border:1px solid #fecdd3;border-radius:8px;padding:14px}
#employeePanel .em-empty{text-align:center;padding:54px 24px;color:#64748b}
#employeePanel .em-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
#employeePanel .em-stages article{display:grid;gap:6px;background:#eff6ff;border:1px solid #dbeafe;border-radius:10px;padding:16px;min-width:0;overflow-wrap:anywhere}
#employeePanel .em-stages span{font-size:12px;color:#476180}
#employeePanel .em-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
#employeePanel .em-kpi{display:flex;flex-direction:column;gap:9px;padding:18px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;min-width:0;overflow-wrap:anywhere}
#employeePanel .em-kpi span{font-size:12px;color:#64748b}
#employeePanel .em-kpi strong{font-size:24px;font-weight:750;font-variant-numeric:tabular-nums}
#employeePanel .em-kpi small{font-size:11px}
#employeePanel .em-quality{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,1.5fr);gap:24px;align-items:center}
#employeePanel .em-benchmark-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
#employeePanel .em-benchmark-values div{display:grid;gap:8px}#employeePanel .em-benchmark-values strong{font-size:22px}#employeePanel .em-benchmark-values span{font-size:12px;color:#64748b}
#employeePanel .em-trend svg{display:block;width:100%;height:150px;min-width:0;overflow:visible}
#employeePanel .em-line{fill:none;stroke-width:2}#employeePanel .em-line-0{stroke:#2563eb}#employeePanel .em-line-1{stroke:#94a3b8}#employeePanel .em-line-2{stroke:#10b981}#employeePanel .em-point{fill:#fff;stroke-width:2}
#employeePanel .em-trend-dates,#employeePanel .em-legend{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#64748b;margin-top:10px}
#employeePanel .em-legend{justify-content:center}#employeePanel .em-legend span:first-child{color:#2563eb}#employeePanel .em-legend span:last-child{color:#059669}
#employeePanel .em-attention-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#employeePanel .em-attention{display:block;text-align:left;border:1px solid #e2e8f0;border-left:3px solid currentColor;border-radius:10px;padding:16px;min-width:0;overflow-wrap:anywhere}
#employeePanel .em-attention>span{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}#employeePanel .em-attention p{color:#475569;line-height:1.7;font-size:13px}
#employeePanel .em-danger{color:#b42338;background:#fff5f6}#employeePanel .em-warn{color:#a86b08;background:#fffbeb}#employeePanel .em-muted{color:#64748b}#employeePanel .em-good{color:#067647;background:#ecfdf5}
#employeePanel .em-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) minmax(140px,200px) minmax(140px,180px) auto;gap:14px;align-items:end;margin:18px 0}
#employeePanel .em-table-wrap{position:relative;overflow:auto;width:100%;max-width:100%;border:1px solid #e2e8f0;border-radius:10px;margin-top:16px}
#employeePanel table{width:100%;min-width:1700px;table-layout:fixed;border-collapse:collapse;margin:0}
#employeePanel th,#employeePanel td{padding:14px 10px;text-align:center;vertical-align:middle;border-bottom:1px solid #e8eef5;width:100px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#employeePanel th{background:#f8fafc;color:#475569;font-size:12px;font-weight:600;white-space:normal}
#employeePanel th:first-child,#employeePanel td:first-child{width:48px;min-width:48px}
#employeePanel th:nth-child(2),#employeePanel td:nth-child(2){width:160px;text-align:left}
#employeePanel th:nth-child(9),#employeePanel td:nth-child(9){width:150px}
#employeePanel th:last-child,#employeePanel td:last-child{width:140px}
#employeePanel td small{display:block;font-size:11px;margin-top:5px}
#employeePanel .em-name{border:0;padding:0;min-height:28px;color:#2563eb;background:transparent;text-align:left;font-weight:650;max-width:100%;overflow-wrap:anywhere}
#employeePanel meter{display:block;width:65px;height:5px;margin:8px auto 0;accent-color:#2563eb}
#employeePanel .em-badge{display:inline-block;border-radius:6px;padding:5px 8px;font-size:12px;line-height:1.5}
#employeePanel summary{cursor:pointer;font-weight:600;margin-bottom:14px}
#employeePanel .em-receipts table{min-width:900px}
#employeePanel dialog{width:min(850px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:85vh;overflow:auto;padding:24px;border:1px solid #dbe3ed;border-radius:16px;color:#17243b;box-sizing:border-box}
#employeePanel dialog::backdrop{background:rgba(15,23,42,.36)}
#employeePanel .em-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 24px}
#employeePanel .em-detail-grid div{padding:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;min-width:0}
#employeePanel dt{font-size:12px;color:#64748b}#employeePanel dd{margin:8px 0 0;font-size:20px;overflow-wrap:anywhere}
@media(max-width:1400px){#employeePanel .em-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}#employeePanel .em-controls{grid-template-columns:120px minmax(0,1fr)}#employeePanel .em-quality{grid-template-columns:minmax(0,1fr)}#employeePanel .em-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){#employeePanel .em-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#employeePanel .em-attention-list,#employeePanel .em-stages{grid-template-columns:minmax(0,1fr)}#employeePanel .em-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#employeePanel .em-card{padding:16px}#employeePanel .em-controls,#employeePanel .em-toolbar{grid-template-columns:minmax(0,1fr)}#employeePanel .em-kpi{padding:14px}#employeePanel .em-kpi strong{font-size:20px}#employeePanel .em-benchmark-values strong{font-size:19px}#employeePanel .em-detail-grid{grid-template-columns:minmax(0,1fr)}#employeePanel dialog{padding:18px}}
