@font-face{font-family:Inter;src:url('quotation/fonts/Inter-Variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{font-family:Inter,Arial,sans-serif;color:#211951;background:#f4f5f9;font-size:16px;--navy:#211951;--green:#64ba39;--muted:#667085;--line:#dfe3ec}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--navy);padding:.65rem .95rem;border-radius:8px;font-weight:600}button:hover{border-color:var(--green)}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--navy);color:white;border-color:var(--navy)}button.danger{color:#b42318}a{color:var(--navy)}input,select,textarea{width:100%;border:1px solid #cdd3df;border-radius:7px;padding:.65rem;color:#252238;background:white}input[type=checkbox]{width:auto;accent-color:var(--green)}textarea{min-height:100px;resize:vertical}input:focus,select:focus,textarea:focus,button:focus-visible{outline:3px solid #a8d895;outline-offset:2px}label{display:block;font-size:.875rem;font-weight:600}label input,label select,label textarea{margin-top:6px}h1{font-size:1.8rem;letter-spacing:-.04em;margin:0 0 8px}h2{font-size:1.2rem}h3{font-size:1rem}p{line-height:1.6}.muted{color:var(--muted)}small{font-size:.8rem}.layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:white;padding:25px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{padding:0 10px 25px;font-size:1.4rem;font-weight:800;letter-spacing:.08em}.brand span{display:block;color:#a6dc89;font-size:.8rem;margin-top:7px;letter-spacing:.12em}.sidebar nav{display:grid;gap:7px}.sidebar nav button{text-align:left;background:transparent;color:#d9d7e9;border:none;font-size:.95rem}.sidebar nav button.active{background:#ffffff1c;color:white;box-shadow:inset 3px 0 var(--green)}.account{margin-top:auto;padding:20px 8px 0;display:grid;gap:9px}.account button{background:#ffffff10;color:white;border-color:#ffffff30}.main{padding:30px 36px;max-width:1700px;width:100%;margin:0 auto;align-self:start}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.page-head p{margin:0}.toolbar,.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.toolbar{margin-bottom:18px}.toolbar input{max-width:320px}.toolbar select{width:auto;max-width:260px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:20px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-top:3px solid var(--green);border-radius:10px;padding:20px}.stat strong{display:block;font-size:2rem;margin-top:8px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:white}table{border-collapse:collapse;width:100%;font-size:.875rem}th{text-align:left;color:var(--muted);font-size:.8rem;background:#f9fafc}th,td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:top}td button{font-size:.8rem;padding:.4rem .6rem}td{max-width:360px;overflow-wrap:anywhere}.empty{text-align:center;padding:40px;color:var(--muted)}.badge{display:inline-block;padding:4px 8px;border-radius:6px;background:#edf5e8;color:#347217;font-size:.8rem}.badge.warn{background:#fff3db;color:#8c5600}.badge.bad{background:#ffebe9;color:#a82b20}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.full{grid-column:1/-1}.form-actions{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);padding:16px 0 0;margin-top:20px;display:flex;gap:10px;justify-content:flex-end}.login{max-width:430px;margin:9vh auto;background:white;border:1px solid var(--line);border-radius:16px;padding:34px}.login label{margin:20px 0}.login img{width:150px;display:block;margin:0 auto 25px}.login button{width:100%}.loading{text-align:center;padding:15vh 20px}.error{color:#a82b20;white-space:pre-wrap}.success{color:#347217}.help{font-size:.875rem;color:var(--muted);line-height:1.5}.step{border:1px solid var(--line);border-radius:9px;padding:14px;margin:12px 0;background:#fafbfe}.step .step-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}.step .step-head input[type=text]{flex:1}.step .step-head button{padding:.4rem .6rem}.step label{margin:8px 0}.quote-frame{width:100%;height:1150px;border:1px solid var(--line);border-radius:10px;background:white}.quote-controls{position:sticky;top:0;z-index:3;box-shadow:0 4px 12px #21195110}.quote-controls label{min-width:190px;flex:1}.quote-controls select{max-width:none;width:100%}.quote-controls .toolbar{align-items:flex-end}.hint{background:#eef6e9;border-left:3px solid var(--green);padding:12px 15px;font-size:.9rem}.checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.checks label{background:#f6f7fa;padding:12px;border-radius:7px}dialog{max-width:850px;width:95vw;border:1px solid var(--line);border-radius:13px;padding:26px;color:var(--navy)}dialog::backdrop{background:#16112c80}#notice{position:fixed;bottom:24px;right:24px;max-width:450px;background:var(--navy);color:white;padding:14px 20px;border-radius:9px;z-index:100;display:none}.record-info{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.record-info dt{font-size:.8rem;color:var(--muted)}.record-info dd{margin:5px 0 0}.revision{white-space:pre-wrap;max-height:500px;overflow:auto;font-size:.8rem}.checkline{display:flex;align-items:center;gap:10px}.checkline input{margin:0}.terms-list-input{min-height:220px}body.busy{cursor:progress}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1050px){.layout{grid-template-columns:190px 1fr}.main{padding:24px 18px}.cards{grid-template-columns:repeat(2,1fr)}.record-info{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.layout{display:block}.sidebar{position:static;height:auto;padding:16px}.brand{padding:0 0 14px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap}.account{display:flex;align-items:center;padding:12px 0 0;font-size:.8rem}.main{padding:20px 12px}.page-head{align-items:flex-start;flex-direction:column}.grid,.checks{grid-template-columns:1fr}.cards{gap:10px}.stat{padding:14px}.toolbar{align-items:stretch}.toolbar input,.toolbar select{max-width:none;width:100%}.quote-controls{position:static}.quote-frame{height:1450px}.record-info{grid-template-columns:1fr}.panel{padding:16px}.form-actions{flex-wrap:wrap}.step-head{flex-wrap:wrap}}
@media print{.sidebar,.page-head .actions,.toolbar,.no-print,#notice,dialog{display:none!important}.layout{display:block}.main{padding:0}.panel{border:0}table{font-size:10pt}tr{break-inside:avoid}thead{display:table-header-group}body{background:white}th,td{padding:7px}@page{size:A4 landscape;margin:12mm}}
.workflow-step{border:1px solid var(--line);border-radius:10px;padding:18px;margin:16px 0;background:#fafbfc}.workflow-step .grid{margin-top:12px}.workflow-step label{font-size:14px}.approval-notice{padding:12px;border-left:4px solid #73bf43;background:#eff8e9}.report-link{display:inline-block;padding:10px 12px;border:1px solid #d7d9e3;border-radius:7px;margin:4px 6px 8px 0;text-decoration:none;color:#211951;font-size:14px}.change-reason{white-space:pre-wrap}#case-form>fieldset{border:0;padding:0;margin:18px 0}#case-form fieldset:disabled{opacity:.85}#case-form .error{white-space:pre-wrap}

.checklist-step-table .workflow-step{border:0;border-radius:0;padding:0;margin:0;background:white}
/* Clickable dashboard summary cards. */
.cards{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))}
.stat{width:100%;text-align:left;color:var(--navy);transition:transform .15s ease,box-shadow .15s ease}
.stat:hover{transform:translateY(-2px);box-shadow:0 8px 20px #21195114}
.stat small{display:block;margin-top:10px;color:var(--navy);font-weight:700}
.kyb-card{display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid var(--line);border-left:5px solid #d39b20;border-radius:10px;padding:16px 18px;margin:16px 0;background:#fffaf0}.kyb-card.complete{border-left-color:var(--green);background:#f2faee}.kyb-card h3,.kyb-card p{margin:0}.kyb-card p{font-size:.875rem;color:var(--muted);margin-top:5px}.kyb-frame{display:block;width:100%;height:820px;border:1px solid var(--line);border-radius:10px;background:white;margin:0 0 20px}.expiry-countdown{display:flex;justify-content:space-between;align-items:center;background:#fff3db;border-left:5px solid #d39b20;border-radius:10px;padding:16px 20px;margin-bottom:20px}.expiry-countdown strong{font-size:1.3rem}.expiry-countdown.expired{background:#ffebe9;border-color:#c9372c}.table-wrap input{min-width:130px;padding:.4rem}.actions strong{margin-right:10px}
.checklist-step-table{margin:12px 0}.checklist-step-table table{min-width:1180px}#template-steps .checklist-step-table table{min-width:720px}.checklist-step-table th,.checklist-step-table td{padding:8px;vertical-align:middle}.checklist-step-table th:first-child,.checklist-step-table td:first-child{width:70px}.checklist-step-table th:nth-child(2){min-width:230px}.checklist-step-table textarea{min-width:190px;min-height:58px;padding:.45rem}.checklist-step-table label{font-size:inherit}.checklist-step-table label input,.checklist-step-table label select{margin-top:0}.checklist-step-table .step-actions{white-space:nowrap}.checklist-step-table .step-actions button{padding:.35rem .5rem}.drag-handle{cursor:grab;color:var(--muted);font-size:1.1rem}.workflow-step.dragging{opacity:.45}.step-type{display:inline-block;font-size:.78rem;font-weight:700;white-space:nowrap}.step-type.PaymentMilestone{color:#8c5600}.step-type.ReferralHandOff{color:#3c4a9a}dialog:has(#case-form),dialog:has(#template-steps){max-width:1500px}
.dashboard-overview{display:grid;grid-template-columns:minmax(420px,1.15fr) minmax(320px,.85fr);gap:20px}.dashboard-overview>.panel{margin-bottom:20px}.dashboard-date-form{display:flex;align-items:end;gap:12px;padding:16px;background:#f8f9fb;border:1px solid var(--line);border-radius:10px;margin-bottom:20px}.dashboard-date-form label{min-width:190px}.period-tabs{display:flex;gap:8px;flex-wrap:wrap}.period-tabs button.active{border-color:var(--green);box-shadow:0 0 0 3px #64ba3930}.report-period{display:flex;align-items:center;justify-content:space-between;padding:0 2px 14px;color:var(--muted)}.report-period strong{color:var(--navy)}.dashboard-report-grid{display:grid;gap:18px}.report-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.report-card-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;border-bottom:1px solid var(--line)}.report-card-head h3,.report-card-head p{margin:0}.report-card-head p{font-size:.82rem;color:var(--muted);margin-top:4px}.report-count{display:grid;place-items:center;min-width:42px;height:32px;padding:0 10px;border-radius:18px;background:#edf5e8;color:#347217;font-weight:800}.report-card .table-wrap{border:0;border-radius:0;max-height:380px}.report-card table{min-width:880px}.report-card-actions{display:flex;gap:9px;justify-content:flex-end;padding:12px 18px;border-top:1px solid var(--line);background:#fafbfc}.report-card-actions a{padding:.55rem .8rem;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-weight:600}.empty-state{padding:25px;text-align:center;color:var(--muted)}.kpi-progress{height:9px;background:#edf0f4;border-radius:8px;overflow:hidden;margin:8px 0 16px}.kpi-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--navy),var(--green));border-radius:8px}.performer-list{list-style:none;padding:0;margin:0}.performer-list li{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.performer-list li:last-child{border-bottom:0}.performer-list small{display:block;color:var(--muted);margin-top:3px}.performer-rank{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#f0f2f7;font-weight:800}.performer-list li:first-child .performer-rank{background:#e8f5df;color:#347217}.target-form{display:flex;align-items:end;gap:12px}.target-form label{min-width:260px}
@media(max-width:1050px){.dashboard-overview{grid-template-columns:1fr}.dashboard-date-form{flex-wrap:wrap}}
@media(max-width:700px){.dashboard-date-form,.target-form{align-items:stretch;flex-direction:column}.dashboard-date-form label,.target-form label{min-width:0}.report-period{align-items:flex-start;flex-direction:column;gap:4px}.period-tabs{width:100%}.period-tabs button{flex:1}}
.quote-actions{display:flex;align-items:center;gap:3px;white-space:nowrap}.icon-action{display:inline-grid;place-items:center;width:31px;height:31px;padding:6px;border-color:transparent;background:transparent;border-radius:6px;color:var(--navy)}.icon-action:hover{border-color:#cfd5e2;background:#f5f7fa}.icon-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.quote-preview-dialog{max-width:1120px;width:94vw;padding:18px}.quote-preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.quote-preview-head h2,.quote-preview-head p{margin:0}.quote-preview-frame{display:block;width:100%;height:72vh;min-height:560px;margin-top:14px;border:1px solid var(--line);border-radius:8px;background:#eef0f5}.quote-preview-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:14px}@media(max-width:700px){.quote-actions{gap:1px}.icon-action{width:29px;height:29px}.quote-preview-dialog{width:98vw;padding:10px}.quote-preview-frame{height:68vh;min-height:480px}.quote-preview-actions{flex-wrap:wrap}}
.done-remarks{min-width:220px;min-height:48px;resize:vertical;font:inherit;line-height:1.35}
/* Daily Works morning review sheet. */
.review-tabs{display:flex;gap:12px;margin:24px 0 16px;flex-wrap:wrap}.review-tabs button{padding:13px 22px;border-radius:12px;background:linear-gradient(#fff,#edf1f8);box-shadow:0 4px 0 #d9dfeb;border:1px solid #ced6e5;font-weight:700}.review-tabs button.active{background:linear-gradient(130deg,#211951,#384774);color:white;border-color:#41466e;box-shadow:0 4px 0 #171334}.review-completion-actions{margin:15px 0 9px}.review-completion-actions button{background:linear-gradient(#ecf8e5,#d9eecb);color:#27521a;border-color:#bad5a8;box-shadow:0 3px 0 #c5dcb7;white-space:normal;font-weight:700}
#main:has(.review-tabs)>.page-head{padding:26px;border-radius:18px;background:radial-gradient(ellipse at top right,#447c6255,transparent 60%),linear-gradient(120deg,#211951,#303a65);box-shadow:0 6px 0 #171335,0 15px 30px #21195120;gap:20px;flex-wrap:wrap}#main:has(.review-tabs)>.page-head h1{color:white}#main:has(.review-tabs)>.page-head p{color:#e1e8f2}#main:has(.review-tabs) .review-toolbar{padding:20px;border:1px solid #d8dfeb;border-top:3px solid #7cb958;border-radius:14px;background:linear-gradient(#fff,#f7f9fd);box-shadow:0 5px 0 #e1e6ef,0 12px 24px #21195109}#main:has(.review-tabs) .review-summary>span{box-shadow:0 4px 0 #dfe5ed,0 8px 18px #21195108;background:linear-gradient(#fff,#f7f9fd)}#main:has(.review-tabs) .review-employee-sheet{box-shadow:0 5px 0 #dce2ee,0 15px 30px #21195110}#main:has(.review-tabs) .review-sheet-head{border-top:1px solid #ffffff35;border-bottom:4px solid #171335}#main:has(.review-tabs) button:focus-visible{outline:3px solid #79bc53;outline-offset:3px}
.review-multiline{white-space:pre-wrap;overflow-wrap:anywhere}.review-pending-work{margin:10px 0}.review-pending-work>strong{display:block;margin-bottom:5px}
#assignment-results td:nth-child(4),#assignment-results td:nth-child(8){white-space:pre-wrap;overflow-wrap:anywhere}
.review-toolbar{align-items:flex-end}.review-toolbar label{min-width:195px}.review-toolbar label select{width:100%;max-width:none}.review-toolbar input{min-width:240px}
.review-summary{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 24px}.review-summary>span{padding:12px 18px;border:1px solid var(--line);border-radius:10px;background:white}.review-summary strong{font-size:1.2rem;margin-right:5px}.review-done-count{color:#347217}.review-pending-count{color:#8c5600}
.review-employee-sheet{margin:0 0 28px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:white;box-shadow:0 8px 24px #21195108}
.review-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;background:linear-gradient(115deg,#211951,#303065);color:white}.review-sheet-head h2{margin:0;font-size:1.05rem}.review-sheet-head span{font-size:.8rem;color:#dce5ed}
.review-employee-sheet .table-wrap{max-height:680px;border:0;border-radius:0}.review-table{min-width:1150px;table-layout:fixed}.review-table th{position:sticky;top:0;z-index:2;background:#f1f4f9;box-shadow:0 1px 0 var(--line)}.review-table th:nth-child(1){width:18%}.review-table th:nth-child(2){width:11%}.review-table th:nth-child(3){width:23%}.review-table th:nth-child(4){width:24%}.review-table th:nth-child(5){width:24%}.review-table td{border-right:1px solid var(--line);padding:14px;line-height:1.5}.review-table td:last-child{border-right:0;background:#fafbfe}.review-table td>p{margin:7px 0}.review-table small{display:block;color:var(--muted);line-height:1.5}
.review-step-list{margin:0;padding-left:18px;max-height:310px;overflow:auto}.review-step-list li{padding:0 3px 10px 2px}.review-step-list li:last-child{padding-bottom:0}.review-step-list p{margin:4px 0;font-size:.8rem;white-space:pre-wrap;color:var(--muted)}.review-completed .review-step-list strong{color:#347217}.review-cancelled{margin-top:12px;font-size:.8rem;color:var(--muted)}.review-cancelled .review-step-list strong{color:var(--muted)}.review-cancelled summary{cursor:pointer;margin-bottom:8px}.review-overdue{color:#b42318;font-weight:700}
.review-table{min-width:900px;width:100%}.review-table th,.review-table td{overflow-wrap:anywhere}.review-table textarea{width:100%;min-width:0;min-height:90px;font-size:.85rem;line-height:1.5}.review-row-actions{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.review-remark-text{white-space:pre-wrap}.review-table .error{font-size:.8rem}
@media(max-width:700px){.review-toolbar label,.review-toolbar input{min-width:0;width:100%}.review-sheet-head{align-items:flex-start;flex-direction:column}.review-summary{gap:8px}.review-summary>span{flex:1;padding:10px;min-width:135px}}
@media print{.review-toolbar,.review-row-actions{display:none}.review-employee-sheet .table-wrap,.review-step-list{max-height:none;overflow:visible}.review-table{min-width:0}.review-sheet-head{color:#211951;background:white}}

/* R4.14: dimensional checklist workspace without motion or reduced readability. */
dialog:has(#case-form){background:linear-gradient(145deg,#ffffff,#f0f3fa);border:1px solid #cfd6e6;box-shadow:0 28px 80px #17163845,0 2px 0 #ffffff inset;border-radius:20px}
#case-form .case-fields,#case-form .case-notes{padding:20px;border:1px solid #dce2ec;border-radius:14px;background:linear-gradient(150deg,#fff,#f6f8fc);box-shadow:0 6px 16px #2119510b,0 2px 0 #fff inset}
#case-form h3{padding:14px 18px;background:linear-gradient(115deg,#211951,#364270);color:white;border-radius:12px;box-shadow:0 5px 0 #141032,0 10px 18px #21195118;margin:26px 0 16px}
.checklist-step-table{border-radius:14px;box-shadow:0 7px 0 #dce2ed,0 14px 25px #21195112;border:1px solid #ced6e5}
.checklist-step-table thead th{background:linear-gradient(#343468,#211951);color:#fff;padding:14px 10px}
.checklist-step-table tbody tr:nth-child(even){background:#f5f7fc}.checklist-step-table tbody tr:hover{background:#eef5eb}
.checklist-step-table input,.checklist-step-table select,.checklist-step-table textarea{box-shadow:inset 0 2px 4px #21195108;border-color:#ccd5e4;border-radius:8px}
.checklist-step-table select[name=type]{min-width:175px;font-weight:600}.checklist-step-table select.WorkflowStep{color:#28346d;background:#edf1ff}.checklist-step-table select.PaymentMilestone{color:#805300;background:#fff7e7}.checklist-step-table select.ReferralHandOff{color:#28674b;background:#edf8f1}
.checklist-step-table .step-actions button,[data-add-step]{box-shadow:0 3px 0 #d4dce9;background:linear-gradient(#fff,#f0f3f9)}
.checklist-step-table :focus-visible{outline:3px solid #72bd49;outline-offset:2px}.checklist-step-table select[name=status]{min-width:165px}.checklist-step-table select[name=responsible]{min-width:150px}
#main:has(#work-search) .page-head{padding:24px;border-radius:18px;background:linear-gradient(120deg,#211951,#374575);box-shadow:0 7px 0 #151135,0 17px 28px #21195120;margin-bottom:28px}#main:has(#work-search) .page-head h1,#main:has(#work-search) .page-head p{color:white}#work-results .table-wrap{border-radius:14px;box-shadow:0 6px 0 #e0e5ef,0 15px 25px #2119510d}#work-results th{background:#eef1f9}#work-results tbody tr:hover{background:#f2f8ef}
/* R4.9 dashboard and branded sign-in refinements. */
/* R4.10: licensing workspace, accessible links, and dimensional dashboard. */
.sidebar{background:linear-gradient(160deg,#211951 0%,#171638 70%,#163e45 100%);box-shadow:8px 0 30px #1920440a}
.brand small{display:block;margin-top:12px;color:#e0e9ec;font-size:.7rem;letter-spacing:.02em;font-weight:500}
.nav-item{display:flex;align-items:center;gap:3px;border-radius:9px}
.sidebar nav a{display:block;padding:11px 12px;text-decoration:none;color:#deddec;font-size:.9rem;border-radius:9px}
.sidebar nav a[data-view]{flex:1;min-width:0}
.sidebar nav a.active{background:#ffffff18;color:#fff;box-shadow:inset 3px 0 #86cd5d}
.sidebar nav a:hover{background:#ffffff12;color:white}
.sidebar nav .nav-new-tab{flex:none;padding:8px;color:#b7c5ce;font-size:1rem}
.main{padding-top:32px}
.panel{box-shadow:0 5px 20px #19204404}
.table-wrap{box-shadow:0 5px 20px #19204404}
tbody tr:hover{background:#f5f8fc}
.export-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;background:#f5f7fb;border-radius:12px}
.export-columns .checkline{align-items:flex-start;font-weight:500}
.export-company-list{max-height:240px;overflow:auto;display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px}
.company-month-filter{font-size:.75rem;color:var(--muted);min-width:170px}.company-month-filter input{margin-top:4px}#company-all-months{white-space:nowrap}
#main:has(.dashboard-stats)>.page-head{position:relative;isolation:isolate;overflow:hidden;min-height:165px;padding:30px 32px;border-radius:20px;background:linear-gradient(115deg,#211951,#303065 65%,#285666);color:white;box-shadow:0 14px 30px #21195120}
#main:has(.dashboard-stats)>.page-head::after{content:'';position:absolute;z-index:-1;width:210px;height:210px;right:22%;top:-90px;border:28px solid #a4d78427;border-radius:50%;transform:rotateX(35deg) rotateY(-25deg);box-shadow:inset 12px 10px 24px #05072855,12px 14px 25px #090e3e33}
#main:has(.dashboard-stats)>.page-head h1{font-size:2.1rem;letter-spacing:-.035em}
#main:has(.dashboard-stats)>.page-head .muted{color:#dbdfee}
#main:has(.dashboard-stats)>.page-head .primary{background:#94ce69;color:#172d20;border-color:#94ce69}
.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;counter-reset:metric}
.dashboard-stats .stat{position:relative;overflow:hidden;min-height:152px;border:1px solid #e0e5ef;border-radius:15px;background:linear-gradient(145deg,#fff 45%,#eff4fa);box-shadow:0 7px 0 -4px #dce3ec,0 12px 24px #2229570a;padding:20px;counter-increment:metric}
.dashboard-stats .stat::after{content:counter(metric,decimal-leading-zero);position:absolute;right:12px;bottom:10px;font-size:2.8rem;letter-spacing:-.08em;color:#26366a0c;font-weight:900}
.dashboard-stats .stat strong{font-size:2.15rem;letter-spacing:-.045em}
.dashboard-stats .stat:nth-child(3){background:linear-gradient(145deg,#fff,#fff5ed)}
.dashboard-stats .stat:nth-child(6){background:linear-gradient(145deg,#fff,#edf7e9)}
.dashboard-stats .stat:hover{transform:translateY(-3px);box-shadow:0 9px 0 -5px #d2dce8,0 18px 28px #22295713}
.dashboard-overview .panel{border-radius:16px;border-top:3px solid #211951}
.dashboard-overview #top-performers{border-top-color:#83c954}
.performer-rank{box-shadow:inset 0 1px 1px white,0 3px 7px #21195112}
.needs-attention-panel{border-left:4px solid #d5ac53}
.dashboard-reports{border-radius:16px}
@media(max-width:700px){.nav-item{flex:none}.sidebar nav a[data-view]{white-space:nowrap}.export-columns{grid-template-columns:1fr 1fr}#main:has(.dashboard-stats)>.page-head{padding:24px;min-height:180px}.dashboard-stats .stat{min-height:145px}}
@media(prefers-reduced-motion:reduce){.stat{transition:none}.stat:hover{transform:none}}
@media(min-width:1650px){.dashboard-stats{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.login-screen{min-height:100vh;display:grid;align-items:center;justify-items:start;padding:clamp(24px,6vw,96px);background:#f3f7fc url('assets/crm-login-background.png') center/cover no-repeat}
.login-screen .login{width:min(430px,100%);margin:0;background:#fffffff2;border-color:#cfd8e7;box-shadow:0 24px 70px #13254b2b;backdrop-filter:blur(8px)}
.dashboard-overview{align-items:start}
#top-performers{min-height:0}
.performer-head{align-items:flex-end}
.performer-filter{min-width:155px;color:var(--muted)}
.performer-filter input{margin-top:6px;color:var(--navy);font-weight:650}
.needs-attention-head{margin-bottom:16px}
.needs-attention-head h2{margin-bottom:4px}
.attention-count{display:grid;place-items:center;min-width:42px;height:32px;padding:0 10px;border-radius:18px;background:#fff3db;color:#8c5600;font-weight:800}
.needs-attention-scroll .table-wrap{max-height:360px;overflow:auto}
.needs-attention-scroll table{min-width:800px}
.needs-attention-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 var(--line)}
@media(max-width:700px){.login-screen{justify-items:center;padding:18px;background-position:62% center}.login-screen .login{padding:26px}.performer-head{align-items:stretch}.performer-filter{width:100%}.needs-attention-scroll .table-wrap{max-height:420px}}
