/* Scoped to Performance; the independent comparison panel keeps its own cards. */
html body .employee-sales-panel.has-performance-financial > :is(.employee-sales-summary,.employee-sales-commission-overview) { display:none!important; }
.pf-overview,.pf-dialog { --pf-paper:#0b1b2c;--pf-ink:#eef5ff;--pf-muted:#afc2d9;--pf-line:#29415b;--pf-tint:#102c47;--pf-accent:#38acff;color:var(--pf-ink); }
html[data-theme="light"] :is(.pf-overview,.pf-dialog) { --pf-paper:#fff;--pf-ink:#14243e;--pf-muted:#536784;--pf-line:#dce7f5;--pf-tint:#edf5ff;--pf-accent:#0872d7; }
html body .pf-overview { min-width:0; }
html body .pf-cards { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
html body .pf-overview .pf-card { display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:8px;min-width:0;margin:0;padding:18px;border:1px solid var(--pf-line);border-radius:16px;background:var(--pf-paper);color:var(--pf-ink);font:inherit;box-shadow:none;cursor:pointer;white-space:normal; }
html body .pf-overview .pf-card:hover:not(:disabled) { border-color:var(--pf-accent);background:var(--pf-tint); }
html body .pf-overview .pf-card:disabled { cursor:default;opacity:.75; }
html body .pf-card-top { display:flex;justify-content:space-between;align-items:center;color:var(--pf-accent); }
html body .pf-card-top > [data-lucide-icon] { width:36px;height:36px;padding:8px;border-radius:10px;background:var(--pf-tint);box-sizing:border-box; }
html body .pf-card-label { font-size:13px;font-weight:700;line-height:1.4; }
html body .pf-overview .pf-card strong { color:var(--pf-ink);font-size:28px;font-weight:800;letter-spacing:-.03em;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
html body .pf-card-meta,html body .pf-note { font-size:12px;line-height:1.5;color:var(--pf-muted); }
html body .pf-note { margin:10px 0 0; }
html body .pf-dialog { box-sizing:border-box;width:min(1000px,94vw);max-width:none;max-height:90dvh;padding:24px;border:1px solid var(--pf-line);border-radius:20px;background:var(--pf-paper);color:var(--pf-ink);box-shadow:0 20px 80px #0008;overflow:auto; }
.pf-dialog::backdrop { background:#031224b3;backdrop-filter:blur(3px); }
html body .pf-dialog-head { display:flex;justify-content:space-between;align-items:start;gap:16px; }
html body .pf-dialog h2 { margin:4px 0;font-size:26px;line-height:1.2;color:var(--pf-ink); }
html body .pf-dialog p { font-size:13px;line-height:1.5;margin:0 0 14px;color:var(--pf-muted); }
html body .pf-dialog-head p { margin:0;font-size:12px; }
html body .pf-dialog :is(button,input,select) { border:1px solid var(--pf-line);border-radius:9px;background:var(--pf-paper);color:var(--pf-ink);font:inherit;min-height:44px;box-sizing:border-box;padding:10px;box-shadow:none; }
html body .pf-dialog button { cursor:pointer; }
html body :is(.pf-overview,.pf-dialog) :is(button,input,select):focus-visible { outline:3px solid var(--pf-accent);outline-offset:3px; }
html body .pf-detail-total { display:flex;justify-content:space-between;align-items:center;gap:16px;margin:16px 0;padding:16px;border:1px solid var(--pf-line);border-radius:12px;background:var(--pf-tint); }
html body .pf-detail-total strong { font-size:26px;color:var(--pf-ink);font-variant-numeric:tabular-nums; }
html body .pf-week-totals { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px; }
html body .pf-week-total { display:flex;flex-direction:column;gap:5px;min-width:0;padding:14px 16px;border:1px solid var(--pf-line);border-radius:12px;background:var(--pf-paper); }
html body .pf-week-total span { font-size:13px;font-weight:700;color:var(--pf-ink); }
html body .pf-week-total small { font-size:11px;line-height:1.5;color:var(--pf-muted); }
html body .pf-week-total strong { font-size:23px;color:var(--pf-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
html body .pf-controls { display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.55fr);gap:12px;margin-bottom:14px; }
html body .pf-controls label { display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--pf-muted); }
html body .pf-controls :is(input,select) { width:100%;min-width:0;font-size:14px; }
html body .pf-table-scroll { max-width:100%;overflow:auto;border:1px solid var(--pf-line);border-radius:12px; }
html body .pf-table { width:100%;min-width:0!important;border-collapse:collapse;font-size:14px;color:var(--pf-ink);background:var(--pf-paper); }
html body .pf-table :is(th,td) { padding:14px 12px;border:0;border-bottom:1px solid var(--pf-line);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;background:transparent;color:var(--pf-ink);text-transform:none;letter-spacing:normal; }
html body .pf-table th:first-child { text-align:left;white-space:normal;min-width:145px; }
html body .pf-table tbody th { font-weight:600; }
html body .pf-table th small { display:block;font-size:11px;font-weight:400;line-height:1.5;color:var(--pf-muted);margin-top:5px; }
html body .pf-table :is(thead,tfoot) { background:var(--pf-tint); }
html body .pf-table thead th { font-size:11px; }
html body .pf-table tbody tr:nth-child(even) { background:color-mix(in srgb,var(--pf-tint) 45%,var(--pf-paper)); }
html body .pf-table .pf-empty { text-align:center;white-space:normal;padding:28px; }
html body .pf-dialog .pf-detail-note { margin:14px 0 0;font-size:12px; }
.pf-sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
@media(max-width:767px) {
 html body .pf-cards { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
 html body .pf-overview .pf-card { padding:12px;gap:6px;border-radius:12px; }
 html body .pf-overview .pf-card strong { font-size:22px; }
 html body .pf-card-meta { font-size:11px; }
 html body .pf-dialog { width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px;border-radius:16px; }
 html body .pf-dialog h2 { font-size:22px; }
 html body .pf-controls { grid-template-columns:1fr; }
 html body .pf-detail-total strong { font-size:23px; }
 html body .pf-detail-total span { font-size:12px; }
 html body .pf-week-totals { gap:8px; }
 html body .pf-week-total { padding:12px; }
 html body .pf-week-total strong { font-size:21px; }
 html body .pf-table :is(th,td) { padding:12px 8px;font-size:12px; }
 html body .pf-table,html body .pf-table :is(tbody,tfoot) { display:block; }
 html body .pf-table thead { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
 html body .pf-table tbody tr { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border-bottom:1px solid var(--pf-line); }
 html body .pf-table tbody th { grid-column:1 / -1;min-width:0; }
 html body .pf-table tbody :is(th,td) { padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere; }
 html body .pf-table tbody td[data-label] { display:flex;flex-direction:column;gap:5px; }
 html body .pf-table tbody td[data-label]::before { content:attr(data-label);font-size:10px;color:var(--pf-muted); }
 html body .pf-table tfoot tr { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px; }
 html body .pf-table tfoot :is(th,td) { border:0;padding:0;min-width:0; }
 html body .pf-table .pf-empty { grid-column:1 / -1; }
}
