body{font-weight:600}:root{--muted:#607068;--line:#d8e2dd}button,input,select,textarea,th,td{font-weight:650}.card h2,h1,.section-title{font-weight:800}
.daily-grid{grid-column:1/-1;display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:7px;align-items:center;background:#f5f8f7;border:1px solid var(--line);border-radius:11px;padding:10px}.daily-grid b{text-align:center;font-size:11px;color:var(--green)}.daily-grid span{font-size:11px}.daily-grid input{text-align:center;padding:7px}.samples-title{display:flex;align-items:center;justify-content:space-between}.samples{grid-column:1/-1;display:grid;gap:9px}.sample-card{border:1px solid var(--line);border-radius:11px;padding:10px;background:#fbfdfc}.sample-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:var(--green)}.remove-sample,.remove-test{border:0;background:#fae9eb;color:var(--red);border-radius:7px;width:28px;height:28px;cursor:pointer;font-weight:900}.sample-meta{display:grid;grid-template-columns:1.6fr .45fr auto;gap:7px}.sample-tests{display:grid;gap:6px;margin-top:7px}.test-row{display:grid;grid-template-columns:1fr 70px 30px;gap:7px}.test-row input{text-align:center}.reception-split{grid-template-columns:minmax(620px,1.55fr) minmax(245px,.65fr)}.dark .daily-grid,.dark .sample-card{background:#1b2722}
.branch-field{grid-column:1/-1}.branch-field select{max-width:360px}.client-pairs{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.client-pairs .field{min-width:0}
.row-actions{display:flex;gap:6px;white-space:nowrap}.row-actions button{padding:7px 10px;font-size:11px}.result-overlay{position:fixed;inset:0;background:#071b16b8;backdrop-filter:blur(5px);z-index:50;display:grid;place-items:center;padding:20px}.result-modal{width:min(660px,94vw);background:var(--panel);color:var(--ink);border-radius:18px;box-shadow:0 30px 80px #0005;padding:20px}.result-modal-head{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:13px}.result-modal-head h2{margin:3px 0 0;font-size:19px}.result-modal-head small{color:var(--muted)}.modal-close{border:0;background:var(--bg);color:var(--ink);width:34px;height:34px;border-radius:9px;font-size:22px;cursor:pointer}.result-context{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:13px 0}.result-context span{background:var(--bg);border-radius:9px;padding:9px;font-size:10px;color:var(--muted)}.result-context b{color:var(--ink);font-size:12px}.result-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.science-warning{grid-column:1/-1;background:#fff4d8;color:#76590e;border-radius:9px;padding:10px;font-size:11px;line-height:1.5}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.dark .science-warning{background:#463a18;color:#f3d77b}
.client-workflow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;overflow:auto;max-height:calc(100% - 55px)}.client-workflow-card{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:13px;padding:13px;text-align:right;display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;cursor:pointer}.client-workflow-card:hover{border-color:var(--green);box-shadow:0 8px 22px #0b6b4f16}.client-workflow-card>span:nth-child(2) small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.client-avatar{width:38px;height:38px;border-radius:11px;background:var(--mint);color:var(--green);display:grid;place-items:center;font-weight:900;font-size:17px}.client-count{text-align:center}.client-count b,.client-count small{display:block}.client-count small{font-size:9px;color:var(--muted)}.client-workflow-card .tag{grid-column:3}.workflow-head{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;margin-bottom:12px}.workflow-head h2{margin:0 0 4px}.workflow-head small{color:var(--muted)}.ast-modal{width:min(900px,96vw)}.ast-context{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:13px 0}.ast-table-wrap{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:10px;margin-bottom:9px}.ast-table-wrap input,.ast-table-wrap select{padding:7px}.ast-modal .science-warning{margin:10px 0}@media(max-width:1100px){.client-workflow-grid{grid-template-columns:repeat(2,1fr)}.ast-context{grid-template-columns:1fr 1fr}}
.recommend-box{background:var(--mint);border:1px solid #bdddcf;border-radius:11px;padding:11px;margin:10px 0}.recommend-box label{color:var(--green);font-weight:800;font-size:12px}.recommend-box textarea{margin:7px 0 4px;background:var(--panel)}.recommend-box small{display:block;color:var(--muted);font-size:10px;line-height:1.45}.ast-table-wrap .ameg{text-align:center;font-weight:900}.ast-table-wrap th{white-space:nowrap}
.reference-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#e7f5ef;border:1px solid #b8dece;color:#075c43;border-radius:10px;padding:9px 12px;margin:12px 0;font-size:11px}.reference-banner b{font-size:12px}.ast-table-wrap .rule-context{min-width:175px;font-size:10px;line-height:1.35}.ast-table-wrap .rule-context b,.ast-table-wrap .rule-context small{display:block}.ast-table-wrap .rule-context small{color:var(--muted);margin-top:3px}.ast-table-wrap .bp-context{min-width:120px;font-weight:800;font-size:10px}.ast-table-wrap .ameg-label{display:block;color:var(--muted);font-size:9px;margin-top:3px}.ni-reason{color:#9b5e00}.dark .reference-banner{background:#153c30;border-color:#2b674f;color:#b9efda}
.report-overlay{overflow:auto;place-items:start center}.client-report{width:min(900px,96vw);margin:auto}.report-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:8px}.report-paper{background:#fff;color:#17221e;border-radius:4px;padding:28px;min-height:720px;box-shadow:0 20px 60px #0004}.report-title{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid #0b6b4f;padding-bottom:14px}.report-title b,.report-title small{display:block}.report-title h2{margin:0 0 4px;font-size:19px}.report-title>div:last-child{text-align:right}.report-title small{color:#607068;font-size:10px}.report-kv{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.report-kv span{border:1px solid #dfe7e3;border-radius:7px;padding:8px;font-style:normal}.report-kv b{display:block;color:#607068;font-size:9px;margin-bottom:3px}.report-kv i{font-style:normal}.report-results{border:1px solid #dfe7e3}.report-results th{position:static;background:#0b6b4f;color:white}.report-results td,.report-results th{text-align:left}.report-note{background:#eef7f3;border-left:4px solid #0b6b4f;padding:10px;margin-top:14px}.report-note b{font-size:11px}.report-note pre{white-space:pre-wrap;font-family:inherit;margin:6px 0 0;font-size:11px}.report-foot{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #dfe7e3;margin-top:18px;padding-top:9px;color:#607068;font-size:9px}@media print{body>*:not(.result-overlay){display:none!important}.result-overlay{position:static;background:none;padding:0;display:block}.client-report{width:100%;margin:0}.report-actions{display:none!important}.report-paper{box-shadow:none;border:0;padding:12mm}}

/* Keep AST controls reachable on short screens. The drug list scrolls inside the dialog. */
.result-overlay:has(.ast-modal){overflow:hidden;padding:12px}
.ast-modal{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.ast-modal .result-modal-head{position:sticky;top:-20px;z-index:12;background:var(--panel);padding-top:20px}
.ast-head-actions{display:flex;align-items:center;gap:8px}
.ast-save-visible{min-width:110px;white-space:nowrap}
.ast-modal .ast-table-wrap{max-height:clamp(220px,42vh,380px);overscroll-behavior:contain}
@media(max-height:760px){.ast-modal .reference-banner{margin:8px 0}.ast-modal .ast-context{margin:8px 0}.ast-modal .ast-table-wrap{max-height:36vh}.ast-modal .recommend-box,.ast-modal>.field,.ast-modal>.modal-actions{margin-top:8px}}

.count-modal{width:min(1080px,97vw);max-height:calc(100dvh - 24px);overflow:hidden;display:flex;flex-direction:column}.count-modal .result-modal-head{flex:0 0 auto}.count-context{display:grid;grid-template-columns:2fr 1fr 1fr;gap:9px;align-items:end;margin:12px 0}.count-context>span{background:var(--bg);border-radius:9px;padding:9px}.count-context>span b,.count-context>span small{display:block}.count-context>span small{color:var(--muted);font-size:10px}.count-table-wrap{min-height:180px;max-height:48vh;overflow:auto;border:1px solid var(--line);border-radius:10px}.count-table-wrap th{position:sticky;top:0;z-index:2;white-space:nowrap}.count-table-wrap input,.count-table-wrap select{min-width:105px;padding:8px}.count-table-wrap .count-name{min-width:180px}.count-table-wrap .count-cfu{min-width:155px;white-space:nowrap;text-align:center;color:var(--green)}.count-formula{margin:9px 0}.count-modal>.field{margin-top:0}.count-modal .modal-actions{margin-top:9px}.count-report-table td:last-child{white-space:nowrap;color:#075c43}@media(max-height:760px){.count-table-wrap{max-height:42vh}.count-modal .count-context{margin:7px 0}.count-modal .count-formula{margin:6px 0;padding:7px}}

.elisa-modal{width:min(1080px,97vw);max-height:calc(100dvh - 24px);overflow-y:auto}.elisa-drop{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border:2px dashed #8bc8b2;background:var(--mint);border-radius:12px;padding:14px;margin:12px 0;cursor:pointer;color:var(--green)}.elisa-drop input{position:absolute;opacity:0;pointer-events:none}.elisa-drop small{color:var(--muted);font-size:10px}.elisa-import-status{margin-bottom:8px}.elisa-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.elisa-kpis span{background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:8px}.elisa-kpis small,.elisa-kpis b{display:block}.elisa-kpis small{font-size:9px;color:var(--muted)}.elisa-kpis .valid{background:#e6f6ef;color:#087052}.elisa-kpis .invalid{background:#fff0e6;color:#9b4b00}.elisa-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:8px 0;font-size:10px}.elisa-meta span{border-bottom:1px solid var(--line);padding:6px}.elisa-table-wrap{max-height:34vh;overflow:auto;border:1px solid var(--line);border-radius:10px}.elisa-table-wrap th{position:sticky;top:0;z-index:2}.elisa-table-wrap input{padding:7px;min-width:150px}.elisa-result{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;font-weight:900}.elisa-result.P{background:#e5f6ef;color:#087052}.elisa-result.N{background:#f1f4f3}.elisa-vdp{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;background:#eef7f3;border-radius:10px;padding:9px;margin:8px 0}.elisa-vdp span strong,.elisa-vdp small{display:block}.elisa-vdp small{grid-column:1/-1;color:var(--muted)}.report-stat-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin:10px 0}.report-stat-strip span{background:#eef7f3;border-radius:7px;padding:8px}.report-stat-strip small,.report-stat-strip b{display:block}.report-stat-strip small{font-size:8px;color:#607068}.vdp-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:7px 0}.vdp-options span,.vdp-options strong{display:block}@media(max-width:900px){.elisa-kpis,.report-stat-strip{grid-template-columns:repeat(3,1fr)}.elisa-meta{grid-template-columns:1fr 1fr}}

.pcr-modal{width:min(1160px,98vw);max-height:calc(100dvh - 24px);overflow-y:auto}.pcr-drop{border-color:#82b9d8;background:#eaf5fb;color:#155f83}.pcr-kpis{display:grid;grid-template-columns:1fr 1fr 1.5fr .55fr .55fr;gap:7px}.pcr-kpis span,.pcr-meta span{background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:8px}.pcr-kpis small,.pcr-kpis b{display:block}.pcr-kpis small{font-size:9px;color:var(--muted)}.pcr-meta{display:grid;grid-template-columns:2fr 1fr 1fr;gap:7px;margin:8px 0;font-size:10px}.pcr-flags{display:flex;gap:7px;flex-wrap:wrap;background:#fff3e0;color:#8b5500;border-radius:9px;padding:8px;margin-bottom:8px}.pcr-table-wrap{max-height:38vh;overflow:auto;border:1px solid var(--line);border-radius:10px}.pcr-table-wrap th{position:sticky;top:0;z-index:2;white-space:nowrap}.pcr-table-wrap input,.pcr-table-wrap select{padding:7px;min-width:140px}.pcr-table-wrap td{font-size:10px}.pcr-report .report-note p{font-size:9px;margin:4px 0}@media(max-width:900px){.pcr-kpis{grid-template-columns:1fr 1fr}.pcr-meta{grid-template-columns:1fr}}
.combined-pcr-entry{width:min(1180px,97vw);height:min(94dvh,900px);overflow:hidden;display:flex;flex-direction:column}.combined-pcr-entry .result-modal-head,.combined-pcr-entry .sticky-actions{flex:0 0 auto}.combined-pcr-entry .result-modal-head p{margin:4px 0;color:var(--muted)}.combined-pcr-progress{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--mint);border:1px solid #b9dfd1;border-radius:11px;padding:10px 13px;margin:8px 0}.combined-pcr-panels{min-height:0;overflow:auto;display:grid;gap:12px;padding:4px 3px 12px}.combined-pcr-input{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.combined-pcr-input>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.combined-pcr-input h3{margin:0}.combined-pcr-input header small{color:var(--muted)}.combined-pcr-input .pcr-drop{min-height:70px;margin:7px 0}.group-pcr-rows{display:grid;gap:7px;margin:8px 0}.group-pcr-rows>div{display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(130px,1.2fr) 100px 160px 40px;gap:7px}.group-pcr-rows input,.group-pcr-rows select{width:100%;padding:8px}.combined-pcr-entry .sticky-actions{background:var(--panel);border-top:1px solid var(--line);padding-top:10px;margin-top:0}@media(max-width:760px){.combined-pcr-progress{align-items:flex-start;flex-direction:column}.group-pcr-rows>div{grid-template-columns:1fr 1fr}.group-pcr-rows>div .remove-test{grid-column:2}}

.elisa-client-comment{margin:9px 0}.ibd-auto-evaluation,.ibd-report-evaluation{display:grid;grid-template-columns:180px 1fr;gap:8px;align-items:center;background:#e8f6ef;border:1px solid #aad9c5;border-radius:11px;padding:10px;margin:9px 0;color:#075c43}.ibd-auto-evaluation span small,.ibd-auto-evaluation span strong,.ibd-report-evaluation div small,.ibd-report-evaluation div strong{display:block}.ibd-auto-evaluation strong,.ibd-report-evaluation strong{font-size:22px}.ibd-auto-evaluation p,.ibd-report-evaluation p{margin:0;font-weight:800}.ibd-auto-evaluation>small,.ibd-report-evaluation>small{grid-column:1/-1;color:var(--muted)}.client-report-comment{background:#fff8df;border-right:4px solid #d39b19;border-radius:8px;padding:10px;margin:10px 0}.client-report-comment b,.client-report-comment p{margin:0}.client-report-comment p{margin-top:5px;line-height:1.7}
.ibd-auto-evaluation,.ibd-report-evaluation{display:block;text-align:right;padding:13px 16px}.ibd-auto-evaluation>span,.ibd-auto-evaluation>small,.ibd-report-evaluation>div,.ibd-report-evaluation>small{display:none}.ibd-auto-evaluation>p,.ibd-report-evaluation>p{margin:0;line-height:1.9;font-size:15px;font-weight:900;text-align:right}

.necropsy-modal{width:min(1180px,98vw);height:min(820px,calc(100dvh - 24px));overflow:hidden;display:flex;flex-direction:column}.necropsy-tabs{display:flex;gap:7px;margin:10px 0}.necropsy-tabs button{flex:1;background:var(--bg);color:var(--muted);border:1px solid var(--line)}.necropsy-tabs button.active{background:var(--green);color:#fff}.nec-panel{display:none;flex:1;min-height:0;overflow:auto}.nec-panel.active{display:block}.nec-signalment{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:10px}.nec-signalment span{background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:9px}.nec-signalment small,.nec-signalment b{display:block}.nec-signalment small{font-size:9px;color:var(--muted)}.nec-text-grid,.nec-diagnosis-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.nec-organ-wrap{height:100%;overflow:auto;border:1px solid var(--line);border-radius:10px}.nec-organ-wrap th{position:sticky;top:0;z-index:2;white-space:nowrap}.nec-organ-wrap td:first-child{min-width:175px}.nec-organ-wrap input,.nec-organ-wrap select{padding:7px;min-width:125px}.nec-organ-wrap .nec-lesions{min-width:220px}.nec-organ-wrap .nec-summary{background:var(--mint);border-radius:10px;padding:10px;margin-bottom:9px}.nec-summary label{color:var(--green)}.nec-summary pre,.nec-report-block pre{white-space:pre-wrap;font-family:inherit;margin:5px 0 0}.nec-subhead{display:flex;justify-content:space-between;align-items:center;margin:9px 0 6px}.nec-sample-row{display:grid;grid-template-columns:1.5fr 1fr 1.5fr auto;gap:7px;margin-bottom:6px}.nec-sample-row input,.nec-sample-row select{padding:7px}.nec-tests{margin:9px 0}.nec-tests>div{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:6px}.nec-tests label{font-weight:600;color:var(--ink)}.nec-tests input{width:auto}.nec-final{display:grid;grid-template-columns:1fr 2fr;gap:9px}.necropsy-report h3{font-size:12px;color:#075c43;border-bottom:1px solid #dfe7e3;padding-bottom:4px;margin:13px 0 6px}.nec-report-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.nec-report-grid section,.nec-report-block,.nec-final-report{border:1px solid #dfe7e3;border-radius:7px;padding:8px}.nec-report-grid h3{margin-top:0}.nec-report-grid p,.nec-final-report p{white-space:pre-wrap;margin:4px 0;font-size:10px}.nec-final-report{background:#eef7f3;margin-top:10px}.nec-final-report>span{font-size:9px;color:#607068}@media(max-width:900px){.nec-signalment{grid-template-columns:1fr 1fr}.nec-text-grid,.nec-diagnosis-grid,.nec-report-grid,.nec-final{grid-template-columns:1fr}}

/* Histopathology workflow */
.sample-meta{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) 85px auto!important}.catalog-search{padding:8px;border:1px solid #b9d5cc;background:#f6fbf9}.test-row{grid-template-columns:minmax(170px,.8fr) minmax(260px,1.5fr) 80px auto!important}.test-guide .table-wrap{max-height:calc(100dvh - 230px)}.test-guide th{position:sticky;top:0}.test-editor{width:min(950px,96vw);max-height:94vh;overflow:auto}.test-editor-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:16px 24px}.test-editor-grid>label{font-size:11px;font-weight:800}.test-editor-grid input,.test-editor-grid textarea{margin-top:4px}.test-editor-grid .wide{grid-column:1/-1}.sample-link-editor>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-height:220px;overflow:auto;margin-top:8px;border:1px solid var(--line);padding:9px;border-radius:10px}.sample-link-editor>div label{display:flex;align-items:center;gap:6px;font-weight:600}.sample-link-editor input[type=checkbox]{width:auto}@media(max-width:900px){.sample-meta,.test-row{grid-template-columns:1fr!important}.test-editor-grid{grid-template-columns:1fr 1fr}.sample-link-editor>div{grid-template-columns:1fr 1fr}}
.billing-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.billing-controls label{font-size:10px;font-weight:800;color:var(--muted)}.billing-controls input,.billing-controls select{margin-top:4px;padding:8px;width:100%}.invoice-balance{display:grid;gap:6px;margin:8px 0}.invoice-balance span{display:flex;justify-content:space-between;background:var(--bg);padding:8px;border-radius:8px}.invoice-balance .has-balance{background:#fff0e9;color:#a23f14}.finance-filter{display:flex;align-items:end;gap:9px;margin-bottom:14px}.finance-filter label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:800}.finance-filter label:nth-child(3){flex:1}.finance-filter input{padding:9px}.finance-debts,.finance-transactions{margin-top:14px}.debt-value{color:#b4232c}.invoice-print-paper{background:white;color:#17221e;padding:28px;width:min(850px,96vw);min-height:700px;margin:auto;box-shadow:0 20px 60px #0004}.invoice-print-paper header{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #142557;padding-bottom:12px}.invoice-print-paper header img{width:280px;height:90px;object-fit:contain}.invoice-print-paper header div{text-align:left;direction:ltr}.invoice-print-paper header h2{margin:0;color:#142557}.invoice-print-paper header small,.invoice-print-paper header b{display:block}.invoice-client{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.invoice-client span{border:1px solid #dfe4eb;border-radius:8px;padding:9px}.invoice-client small,.invoice-client b{display:block}.invoice-client small{color:#67736e}.invoice-print-paper table{width:100%;border-collapse:collapse}.invoice-print-paper th,.invoice-print-paper td{padding:9px;border:1px solid #dfe4eb;text-align:right}.invoice-print-paper th{background:#142557;color:white}.invoice-totals{width:48%;margin:14px 0 14px auto;display:grid}.invoice-totals span{display:flex;justify-content:space-between;padding:7px;border-bottom:1px solid #dde3ea}.invoice-totals .due{background:#fff0e8;color:#a63f14;font-size:13px}.invoice-warning,.invoice-paid{padding:11px;border-radius:8px;text-align:center;margin:12px 0}.invoice-warning{background:#fff1d6;color:#855c05}.invoice-paid{background:#e7f6ef;color:#087052}.invoice-print-paper footer{border-top:3px solid #142557;margin-top:24px;padding-top:8px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;text-align:center;font-size:8px;color:#142557}.invoice-print-paper footer>b{grid-column:1/-1;color:#ff4b13;font-size:10px}@media print{.invoice-print-paper{width:100%;box-shadow:none;padding:10mm}.invoice-print-paper header img{width:65mm;height:21mm}.invoice-print-paper footer{break-inside:avoid}.invoice-warning{border:1px solid #d7a94c}}
.report-brand-logo{display:block;width:265px;max-width:42vw;height:82px;object-fit:contain;object-position:left center}.report-title>div:first-child>small{font-size:8px;letter-spacing:.16em;text-transform:uppercase;color:#142557;margin-top:2px}.report-signature{display:grid;grid-template-columns:1fr 1fr;gap:70px;margin:30px 45px 18px;break-inside:avoid}.report-signature>div{text-align:center}.report-signature span,.report-signature b{display:block;font-size:10px}.report-signature b{font-size:11px;margin-top:2px}.report-signature i{display:block;border-bottom:1px solid #233b66;height:38px;margin-top:3px}.report-identity-footer{border-top:3px solid #142557;padding-top:8px;margin-top:12px;color:#142557;break-inside:avoid;text-align:center}.report-identity-footer>b{display:block;color:#ff4b13;font-size:11px;margin-bottom:6px}.report-identity-footer>div{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.report-identity-footer span{display:block;border-left:1px solid #d6dbe6;padding:0 7px;font-size:8px;line-height:1.5}.report-identity-footer span:last-child{border-left:0}.report-identity-footer strong,.report-identity-footer em{display:block;font-style:normal}.report-identity-footer strong{font-size:9px}.report-identity-footer em{font-weight:900;direction:ltr;margin-top:2px}@media(max-width:700px){.report-title{gap:12px}.report-brand-logo{width:190px;height:65px}.report-signature{margin-inline:10px;gap:25px}.report-identity-footer>div{grid-template-columns:1fr}.report-identity-footer span{border-left:0;border-bottom:1px solid #e4e7ed;padding:4px}}@media print{.report-brand-logo{width:62mm;height:20mm}.report-signature,.report-identity-footer{break-inside:avoid}.report-identity-footer{margin-top:7mm}.report-signature{margin-top:9mm}}
.dashboard-filters{display:flex;align-items:end;gap:8px}.dashboard-filter .dashboard-filters label{display:flex;flex-direction:column;align-items:stretch;gap:4px;font-size:11px}.dashboard-filter .dashboard-filters input,.dashboard-filter .dashboard-filters select{padding:8px 10px}.dashboard-cases{margin-bottom:14px}.dashboard-cases .table-wrap{max-height:260px}.dashboard-cases th{position:sticky;top:0}.delete-case{background:#fff0f0!important;color:#b4232c!important;border:1px solid #f0b8bc!important}.dashboard-lower{margin-top:0}@media(max-width:900px){.dashboard-filter{align-items:flex-start;gap:12px}.dashboard-filters{flex-wrap:wrap}.dashboard-filter .dashboard-filters label{flex:1;min-width:130px}}
.dashboard-filter{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;padding:14px 18px}.dashboard-filter h2,.dashboard-filter small{margin:0;display:block}.dashboard-filter small{color:var(--muted)}.dashboard-filter label{display:flex;align-items:center;gap:10px;font-weight:800}.dashboard-filter select{min-width:220px}.dashboard-kpis{grid-template-columns:repeat(4,minmax(150px,1fr));margin-bottom:14px}.dashboard-kpis .done{border-top:4px solid #24a875}.dashboard-kpis .issued{border-top:4px solid #3c83c8}.dashboard-kpis .working{border-top:4px solid #d69c2f}.dashboard-kpis .finance-kpi{border-top:4px solid #875ac7}.finance-kpi small{display:flex;justify-content:space-between;gap:6px}.finance-kpi i{font-size:8px;color:#875ac7}.dashboard-progress{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.dashboard-progress span{background:var(--bg);border:1px solid var(--line);padding:14px;border-radius:12px}.dashboard-progress b{display:block;font-size:24px;color:var(--green)}@media(max-width:1000px){.dashboard-kpis{grid-template-columns:repeat(2,1fr)}}
.nec-summary{background:var(--mint);border-radius:10px;padding:10px;margin-bottom:9px}
.histo-modal{width:min(1180px,96vw);height:min(900px,96vh);display:flex;flex-direction:column;overflow:hidden}.histo-top{display:flex;align-items:center;gap:14px;padding:12px 24px;border-bottom:1px solid var(--line)}.histo-upload{background:#e4f4ee;color:#076d54;padding:11px 16px;border-radius:12px;font-weight:800;cursor:pointer}.histo-upload input{display:none}.histo-workspace{padding:14px 24px;overflow:auto;flex:1;background:#f8fbfa}.histo-empty{min-height:300px;display:grid;place-content:center;text-align:center;color:var(--muted);gap:8px}.histo-empty b{font-size:20px;color:var(--ink)}.histo-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.histo-kpis span{background:white;border:1px solid var(--line);border-radius:12px;padding:10px 14px;display:flex;flex-direction:column}.histo-kpis small{color:var(--muted)}.histo-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line)}.histo-tabs button{border:0;background:transparent;padding:11px 16px;border-radius:10px 10px 0 0;font-weight:800}.histo-tabs button.active{background:#dff2eb;color:#076d54}.histo-panel{display:none;padding-top:12px}.histo-panel.active{display:block}.histo-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.histo-fields label,.histo-figure-editor label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800;color:#52655f}.histo-fields .wide{grid-column:1/-1}.histo-fields textarea{min-height:70px}.histo-figure-editor{display:grid;gap:12px}.histo-figure-editor article{display:grid;grid-template-columns:minmax(280px,42%) 1fr;gap:14px;background:white;border:1px solid var(--line);padding:12px;border-radius:14px}.histo-figure-editor img{width:100%;height:260px;object-fit:contain;background:#10251f;border-radius:10px}.histo-figure-editor article>div{display:grid;gap:8px}.histo-sticky{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);z-index:4}.histo-report-section{margin:14px 0;break-inside:avoid}.histo-report-section h3{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:#0a7058;border-bottom:1px solid #b7d6cc;padding-bottom:5px}.histo-report-section p,.histo-report-section li{font-size:12px;line-height:1.55}.histo-report-figures{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.histo-report-figures figure{margin:0;border:1px solid #ccdcd7;padding:7px;border-radius:8px;break-inside:avoid}.histo-report-figures img{width:100%;height:270px;object-fit:contain;background:#172721}.histo-report-figures figcaption{font-size:10px;line-height:1.4;padding-top:6px}.histo-report-figures figcaption b{display:block;color:#087158;margin-bottom:3px}.histo-final{border:2px solid #087158;background:#edf8f4;padding:13px 16px;margin:16px 0;break-inside:avoid}.histo-final small,.histo-final strong{display:block}.histo-final strong{font-size:15px;margin-top:5px}.histo-final p{font-size:12px;margin:7px 0 0}@media(max-width:800px){.histo-kpis,.histo-fields{grid-template-columns:1fr 1fr}.histo-figure-editor article{grid-template-columns:1fr}.histo-report-figures{grid-template-columns:1fr}}@media print{.histo-report-figures figure{break-inside:avoid}.histo-report-figures img{height:230px}}
/* Authenticated HR workspace */
.hidden-action{display:none!important}.profile{position:relative}.profile .logout{margin-inline-start:auto;border:0;background:#ffffff18;color:#fff;border-radius:10px;padding:8px 10px;cursor:pointer}.login-overlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:radial-gradient(circle at 70% 15%,#176e5b,#062f28 55%,#021e1a);direction:rtl}.login-card{width:min(430px,calc(100vw - 32px));background:#fff;border-radius:26px;padding:32px;box-shadow:0 30px 100px #001b1766;display:grid;gap:14px}.login-card img{width:220px;max-height:95px;object-fit:contain;margin:auto}.login-card h1{margin:0;text-align:center;color:#073d32}.login-card p{margin:0 0 8px;text-align:center;color:#65756f}.login-card label,.hr-editor label,.leave-grid label{font-weight:800;display:grid;gap:6px}.login-card input,.hr-editor input,.leave-grid input,.leave-grid select{width:100%;border:1px solid #d6e1dd;border-radius:12px;padding:12px;font:inherit}.login-error{color:#bd3434;text-align:center;min-height:20px}.hr-self,.hr-admin{display:grid;gap:14px}.hr-self{grid-template-columns:minmax(420px,.8fr) 1.2fr}.leave-request-card p{color:var(--muted)}.leave-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.leave-grid .wide{grid-column:1/-1}.leave-grid button{grid-column:1/-1}.leave-admin{margin-top:0}.hr-editor{width:min(1050px,95vw);max-height:92vh;overflow:auto}.hr-editor-main{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.hr-editor section{margin-top:18px}.hr-editor h3{margin:0 0 10px}.permission-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.permission-list label{display:flex;align-items:center;gap:8px;border:1px solid #dce7e3;border-radius:12px;padding:10px}.permission-list input{width:auto}.permission-list small{margin-inline-start:auto;color:var(--muted);font-size:10px}.commission-search{margin-bottom:10px}.commission-list{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;max-height:320px;overflow:auto;padding:3px}.commission-list label{display:grid;grid-template-columns:1fr 90px 20px;align-items:center;border:1px solid #dce7e3;border-radius:12px;padding:9px}.commission-list span{display:grid}.commission-list small{color:var(--muted)}.commission-list input{text-align:center}.commission-list em{font-style:normal;font-weight:900}.hr-admin .table-wrap{max-height:36vh;overflow:auto}
@media(max-width:900px){.hr-self{grid-template-columns:1fr}.hr-editor-main,.permission-list{grid-template-columns:repeat(2,1fr)}.commission-list{grid-template-columns:1fr}}
.catalog-native-select{display:none!important}.single-combobox{width:100%;min-width:220px;border:1px solid var(--line);border-radius:11px;background:var(--surface,#fff);color:var(--text);padding:11px 12px;font:inherit;font-weight:750}.single-combobox:focus{outline:2px solid #43b99755;border-color:#16876b}.sample-meta .single-combobox{flex:1}.test-row .single-combobox{flex:1}
.invoice-balance span,.invoice-balance span b{color:var(--ink)!important}.invoice-balance .has-balance,.invoice-balance .has-balance b{color:#a23f14!important}.report-signature.single{grid-template-columns:minmax(240px,420px);justify-content:center}.report-filter{gap:8px;flex-wrap:wrap}.report-filter input,.report-filter select{padding:9px;min-width:150px}.authorized-signer{display:flex;align-items:end;justify-content:flex-end;gap:8px;background:var(--bg);padding:9px;border-radius:10px;margin-bottom:10px}.authorized-signer label{display:grid;gap:4px;font-weight:850}.authorized-signer input{min-width:260px;padding:9px}.client-history-list{display:grid;gap:12px;max-height:calc(100vh - 210px);overflow:auto}.client-history-card{border:1px solid var(--line);border-radius:15px;overflow:hidden}.client-history-card>header,.case-history-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;background:var(--bg)}.client-history-card h3{margin:0}.client-history-card article{padding:10px}.sample-history{border:1px solid var(--line);border-radius:11px;margin:8px 0;padding:8px}.sample-history>div:first-child{display:flex;align-items:center;gap:10px}.sample-history>div:first-child small{color:var(--muted);margin-inline-end:auto}.case-addition-modal{width:min(900px,96vw);max-height:92vh;overflow:auto}.addition-cards{display:grid;gap:10px;margin:12px 0}.addition-card{border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;grid-template-columns:2fr 1fr;gap:9px}.addition-card label{display:grid;gap:4px;font-weight:800}.addition-card input{padding:9px;width:100%}.addition-tests{grid-column:1/-1;display:grid;gap:7px}.addition-tests>div{display:grid;grid-template-columns:1fr 90px 40px;gap:7px}.addition-card>.add-addition-test{grid-column:1/-1}.combined-pcr-section{margin:16px 0;break-inside:avoid}.combined-pcr-section h3{color:#142557;border-bottom:2px solid #ff4b13;padding-bottom:5px}.elisa-drop{position:relative;min-height:88px;border-width:3px!important}.elisa-drop b{font-size:15px}.elisa-modal .result-modal-head{position:sticky;top:-20px;z-index:15;background:var(--panel);padding-top:20px}.elisa-client-comment label{font-size:13px;color:var(--green)}
.ibd-auto-evaluation>p>span,.ibd-report-evaluation>p>span{display:block;padding:2px 0}.ibd-auto-evaluation>p>span+span,.ibd-report-evaluation>p>span+span{margin-top:3px;border-top:1px solid rgba(7,92,67,.13);padding-top:5px}
.pcr-manual-guide{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff8dc;border:1px solid #ead397;border-radius:10px;padding:8px 11px;margin:7px 0}.pcr-manual-guide label{display:flex;align-items:center;gap:7px;font-weight:850}.pcr-manual-guide input{width:76px;padding:7px}.group-pcr-rows>div{grid-template-columns:minmax(130px,1.2fr) minmax(130px,1.2fr) 100px 160px 40px 135px}.pcr-no-ct{padding:7px!important;font-size:10px;white-space:nowrap}.workflow-detail tbody tr[hidden]{display:none!important}.workflow-detail td small{display:block;color:var(--muted);margin-top:3px;max-width:560px;white-space:normal}@media(max-width:900px){.pcr-manual-guide{align-items:stretch;flex-direction:column}.group-pcr-rows>div{grid-template-columns:1fr 1fr}.pcr-no-ct{grid-column:auto}}
.pcr-group-completion{display:grid;gap:4px;min-width:220px}.pcr-group-completion>b{font-size:14px}.pcr-group-completion.pending>b{color:#a45c00}.pcr-group-completion.complete>b{color:var(--green)}.pcr-group-completion small{line-height:1.55}.workflow-detail .approve:disabled{opacity:.55;cursor:not-allowed}
#screen{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-bottom:22px;overscroll-behavior:contain}#screen::-webkit-scrollbar{width:10px}#screen::-webkit-scrollbar-thumb{background:#b8cbc4;border-radius:10px;border:2px solid var(--bg)}#screen::-webkit-scrollbar-track{background:transparent}
