/* Laboratory themes are scoped to the laboratory shell, so other clinic systems remain unchanged. */
.laboratory-system-shell{--lab-accent:#8b1020;--lab-deep:#64101b;--lab-strong:#77101d;--lab-soft:#fff1f3;--lab-softest:#fff8f9;--lab-border:#edc2c8;--lab-shadow:rgba(119,16,29,.16);--primary:#8b1020;--primary-deep:#5d0d17;--tertiary:#c5364a;--brand-950:#5d0d17;--brand-900:#77101d;--brand-800:#8b1020;--brand-700:#9c1b2d;--brand-600:#ae3040;--brand-500:#c14c5a;--brand-200:#f3d5da;--brand-100:#fff0f2;--brand-75:#fff8f9;--surface-base:#fff8f9;--surface-container-low:#fff1f3;--bg-app:#fff9fa;--border-soft:rgba(119,16,29,.16);--gradient-main:linear-gradient(135deg,#8b1020 0%,#bd3243 60%,#6a101c 100%);--gradient-panel:linear-gradient(135deg,#8b1020 0%,#64101b 100%);--shadow-brand:rgba(119,16,29,.28)}
html[data-laboratory-theme="clinical-blue"] .laboratory-system-shell{--lab-accent:#1565a8;--lab-deep:#0c4578;--lab-strong:#124f89;--lab-soft:#eaf5ff;--lab-softest:#f6fbff;--lab-border:#b8d8f0;--lab-shadow:rgba(21,101,168,.16);--primary:#1565a8;--primary-deep:#0c4578;--tertiary:#1f86c5;--brand-950:#0c4578;--brand-900:#124f89;--brand-800:#1565a8;--brand-700:#1d75b8;--brand-600:#348dcc;--brand-500:#5ba8dd;--brand-200:#d4eaf8;--brand-100:#eaf5ff;--brand-75:#f6fbff;--surface-base:#f7fbff;--surface-container-low:#eaf5ff;--bg-app:#f7fbff;--border-soft:rgba(21,101,168,.16);--gradient-main:linear-gradient(135deg,#1565a8 0%,#258fc9 60%,#0d477b 100%);--gradient-panel:linear-gradient(135deg,#1565a8 0%,#0c4578 100%);--shadow-brand:rgba(21,101,168,.28)}
html[data-laboratory-theme="laboratory-teal"] .laboratory-system-shell{--lab-accent:#087d74;--lab-deep:#005b55;--lab-strong:#006d65;--lab-soft:#e6f8f5;--lab-softest:#f4fcfb;--lab-border:#b8e3dc;--lab-shadow:rgba(8,125,116,.16);--primary:#087d74;--primary-deep:#005b55;--tertiary:#1c9e94;--brand-950:#005b55;--brand-900:#006d65;--brand-800:#087d74;--brand-700:#159087;--brand-600:#31a79d;--brand-500:#55beb4;--brand-200:#cceee9;--brand-100:#e6f8f5;--brand-75:#f4fcfb;--surface-base:#f5fcfb;--surface-container-low:#e6f8f5;--bg-app:#f5fcfb;--border-soft:rgba(8,125,116,.16);--gradient-main:linear-gradient(135deg,#087d74 0%,#25a69b 60%,#005b55 100%);--gradient-panel:linear-gradient(135deg,#087d74 0%,#005b55 100%);--shadow-brand:rgba(8,125,116,.28)}
html[data-laboratory-theme="clinical-indigo"] .laboratory-system-shell{--lab-accent:#5c4aa5;--lab-deep:#413174;--lab-strong:#4d3d8d;--lab-soft:#f1efff;--lab-softest:#faf9ff;--lab-border:#d5cef4;--lab-shadow:rgba(92,74,165,.16);--primary:#5c4aa5;--primary-deep:#413174;--tertiary:#806bc4;--brand-950:#413174;--brand-900:#4d3d8d;--brand-800:#5c4aa5;--brand-700:#6c58b4;--brand-600:#806bc4;--brand-500:#9a88d3;--brand-200:#e3def8;--brand-100:#f1efff;--brand-75:#faf9ff;--surface-base:#faf9ff;--surface-container-low:#f1efff;--bg-app:#faf9ff;--border-soft:rgba(92,74,165,.16);--gradient-main:linear-gradient(135deg,#5c4aa5 0%,#816cc2 60%,#413174 100%);--gradient-panel:linear-gradient(135deg,#5c4aa5 0%,#413174 100%);--shadow-brand:rgba(92,74,165,.28)}

/* Core shell: the original application stylesheet uses literal crimson values, so these overrides deliberately cover every shared laboratory surface. */
.laboratory-system-shell .sidebar{background:var(--gradient-panel)!important}
.laboratory-system-shell .sidebar-header{background:linear-gradient(135deg,var(--lab-strong),var(--lab-deep))!important}
.laboratory-system-shell .sidebar-logo{display:grid;place-items:center;width:7rem;height:7rem;margin:0 auto;padding:0;border:0;border-radius:50%;background:linear-gradient(180deg,#af0000 0%,#410000 100%);box-shadow:0 .45rem 1.1rem rgba(65,0,0,.2)}
.laboratory-system-shell .sidebar-logo img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 7px rgba(0,0,0,.16))}
/* Theme-specific logo surfaces preserve the white calligraphy over the earlier Figma-inspired palettes. */
html[data-laboratory-theme="clinical-blue"] .laboratory-system-shell .sidebar-logo{border-radius:50%;background:linear-gradient(180deg,#5ba8dd 0%,#0c4578 100%);box-shadow:0 .45rem 1.1rem rgba(12,69,120,.2)}
html[data-laboratory-theme="clinical-blue"] .laboratory-system-shell .sidebar-logo img{filter:drop-shadow(0 3px 7px rgba(12,69,120,.16))}
html[data-laboratory-theme="laboratory-teal"] .laboratory-system-shell .sidebar{background:linear-gradient(180deg,#087c74 0%,#06736b 54%,#06665f 100%)!important}
html[data-laboratory-theme="laboratory-teal"] .laboratory-system-shell .sidebar-header{background:#005851!important}
html[data-laboratory-theme="laboratory-teal"] .laboratory-system-shell .sidebar-logo{border-radius:50%;background:linear-gradient(180deg,#00cfbf 0%,#005851 100%);box-shadow:0 .45rem 1.1rem rgba(0,88,81,.2)}
html[data-laboratory-theme="laboratory-teal"] .laboratory-system-shell .sidebar-logo img{filter:drop-shadow(0 3px 7px rgba(0,88,81,.16))}
html[data-laboratory-theme="clinical-indigo"] .laboratory-system-shell .sidebar-logo{border-radius:50%;background:linear-gradient(180deg,#9a88d3 0%,#413174 100%);box-shadow:0 .45rem 1.1rem rgba(65,49,116,.2)}
html[data-laboratory-theme="clinical-indigo"] .laboratory-system-shell .sidebar-logo img{filter:drop-shadow(0 3px 7px rgba(65,49,116,.16))}
.laboratory-system-shell .sidebar-avatar,.laboratory-system-shell .topbar-avatar{background:var(--lab-accent)!important}
.laboratory-system-shell .sidebar-link.active:before{background:color-mix(in srgb,var(--lab-soft) 84%,#fff)!important}
.laboratory-system-shell .sidebar-overlay{background:color-mix(in srgb,var(--lab-deep) 55%,transparent)!important}
.laboratory-system-shell .perm-modal-overlay{background:color-mix(in srgb,var(--lab-deep) 18%,transparent)!important}
.laboratory-system-shell .main-content,.laboratory-system-shell .content-area{background:var(--bg-app)!important}.laboratory-system-shell .topbar{border-color:var(--lab-border)!important;background:var(--lab-softest)!important}.laboratory-system-shell .mobile-menu-btn{background:var(--lab-soft)!important;color:var(--lab-deep)!important}.laboratory-system-shell .card{border:0!important;background:#fff!important;box-shadow:0 8px 24px var(--lab-shadow)!important}.laboratory-system-shell .card-dot.dot-blue,.laboratory-system-shell .card-dot.dot-green{background:var(--lab-accent)!important}
.laboratory-system-shell .btn-grad,.laboratory-system-shell .btn-primary,.laboratory-system-shell .btn.btn-primary{background:var(--gradient-main)!important;box-shadow:0 10px 28px var(--lab-shadow)!important}.laboratory-system-shell .btn-light{background:var(--lab-soft)!important;color:var(--lab-deep)!important}.laboratory-system-shell .btn-light:hover{background:color-mix(in srgb,var(--lab-soft) 65%,var(--lab-border))!important}.laboratory-system-shell .form-input{border-color:var(--lab-border)!important;background:#fff!important}.laboratory-system-shell .form-input:focus{border-color:var(--lab-accent)!important;box-shadow:0 0 0 3px var(--lab-shadow)!important}.laboratory-system-shell .form-label{color:var(--lab-strong)!important}
.laboratory-system-shell .report-table-wrap{border-color:var(--lab-border)!important}.laboratory-system-shell .report-table thead th{background:var(--lab-soft)!important;color:var(--lab-deep)!important}.laboratory-system-shell .report-table tbody td{border-color:var(--lab-border)!important}.laboratory-system-shell .report-table tbody tr:hover{background:var(--lab-softest)!important}.laboratory-system-shell .status-pill.status-pending,.laboratory-system-shell .status-pill.status-confirmed,.laboratory-system-shell .status-pill.status-completed{border-color:var(--lab-border)!important;background:var(--lab-soft)!important;color:var(--lab-deep)!important}.laboratory-system-shell .modern-select-menu{border-color:var(--lab-border)!important}.laboratory-system-shell .modern-select-option:hover{background:var(--lab-softest)!important}.laboratory-system-shell .modern-select-option.active{background:var(--lab-soft)!important;color:var(--lab-deep)!important}
.laboratory-system-shell .stat-card.stat-blue,.laboratory-system-shell .stat-card.stat-purple,.laboratory-system-shell .stat-card.stat-amber{background:var(--gradient-main)!important}.laboratory-system-shell .today-item{border-color:var(--lab-border)!important}.laboratory-system-shell .today-item:hover{background:var(--lab-softest)!important}.laboratory-system-shell .today-time{background:var(--lab-soft)!important;color:var(--lab-deep)!important}.laboratory-system-shell .today-pdoc,.laboratory-system-shell .empty-list,.laboratory-system-shell .topbar-date{color:var(--lab-strong)!important}

.laboratory-system-shell .laboratory-page .laboratory-status,.laboratory-system-shell .laboratory-page .laboratory-category-badge,.laboratory-system-shell .laboratory-page .laboratory-template-summary span,.laboratory-system-shell .laboratory-page .laboratory-request-categories button,.laboratory-system-shell .laboratory-page .laboratory-result-tabs button,.laboratory-system-shell .laboratory-page .laboratory-tests-summary-btn,.laboratory-system-shell .laboratory-page .laboratory-selected-category{border-color:var(--lab-border);background:var(--lab-softest);color:var(--lab-deep)}
.laboratory-system-shell .laboratory-page .laboratory-user-edit,.laboratory-system-shell .laboratory-page .emergency-icon-btn{border-color:var(--lab-border)!important;background:var(--lab-softest)!important;color:var(--lab-deep)!important}.laboratory-system-shell .laboratory-page .laboratory-user-edit:hover,.laboratory-system-shell .laboratory-page .emergency-icon-btn:hover{border-color:var(--lab-accent)!important;background:var(--lab-accent)!important;color:#fff!important}
.laboratory-system-shell .laboratory-page .laboratory-category-card{border:0!important;background:#fff!important;box-shadow:0 10px 24px var(--lab-shadow)}.laboratory-system-shell .laboratory-page .laboratory-category-card:hover{box-shadow:0 14px 30px var(--lab-shadow)}.laboratory-system-shell .laboratory-page .laboratory-category-icon,.laboratory-system-shell .laboratory-page .laboratory-request-categories button small,.laboratory-system-shell .laboratory-page .laboratory-result-section h3 span,.laboratory-system-shell .laboratory-page .laboratory-tests-summary-btn strong,.laboratory-system-shell .laboratory-page .laboratory-category-form-icon{background:var(--lab-accent);color:#fff}.laboratory-system-shell .laboratory-page .laboratory-category-copy strong,.laboratory-system-shell .laboratory-page .laboratory-category-action,.laboratory-system-shell .laboratory-page .laboratory-entry-test,.laboratory-system-shell .laboratory-page .laboratory-unified-form-note strong{color:var(--lab-strong)}
.laboratory-system-shell .laboratory-page .laboratory-result-section,.laboratory-system-shell .laboratory-page .laboratory-template-modal .laboratory-form-table,.laboratory-system-shell .laboratory-page .laboratory-template-modal .laboratory-entry-table,.laboratory-system-shell .laboratory-page .laboratory-unified-form-note,.laboratory-system-shell .laboratory-page .laboratory-test-name-item{border-color:var(--lab-border)}.laboratory-system-shell .laboratory-page .laboratory-result-section h3,.laboratory-system-shell .laboratory-page .laboratory-template-summary span,.laboratory-system-shell .laboratory-page .laboratory-result-tabs button:not(.is-active),.laboratory-system-shell .laboratory-page .laboratory-request-categories button:not(:disabled){background:var(--lab-softest)}.laboratory-system-shell .laboratory-page .laboratory-result-tabs button.is-active,.laboratory-system-shell .laboratory-page .laboratory-selected-category{background:var(--lab-accent);border-color:var(--lab-accent);color:#fff}.laboratory-system-shell .laboratory-page .laboratory-selected-category small{color:#fff}
.laboratory-system-shell .laboratory-page .laboratory-pagination button{border-color:var(--lab-border);color:var(--lab-deep)}.laboratory-system-shell .laboratory-page .laboratory-pagination button:hover:not(:disabled){border-color:var(--lab-accent);background:var(--lab-soft)}.laboratory-system-shell .laboratory-page .laboratory-pagination button.is-active{background:var(--lab-accent);border-color:var(--lab-accent);color:#fff}.laboratory-system-shell .laboratory-page .laboratory-picker-help i,.laboratory-system-shell .laboratory-page .laboratory-test-name-item i,.laboratory-system-shell .laboratory-page .laboratory-allowed-page i{color:var(--lab-accent)}
.laboratory-system-shell .laboratory-page .laboratory-allowed-pages-button,.laboratory-system-shell .laboratory-page .laboratory-selected-test,.laboratory-system-shell .laboratory-page .laboratory-request-categories button,.laboratory-system-shell .laboratory-page .laboratory-result-tabs button,.laboratory-system-shell .laboratory-page .laboratory-tests-summary-btn{border-color:var(--lab-border);background:var(--lab-softest);color:var(--lab-deep)}.laboratory-system-shell .laboratory-page .laboratory-allowed-pages-button:hover,.laboratory-system-shell .laboratory-page .laboratory-request-categories button:hover:not(:disabled),.laboratory-system-shell .laboratory-page .laboratory-result-tabs button.is-active{border-color:var(--lab-accent);background:var(--lab-accent);color:#fff}.laboratory-system-shell .laboratory-page .laboratory-allowed-pages-button span,.laboratory-system-shell .laboratory-page .laboratory-request-categories button small,.laboratory-system-shell .laboratory-page .laboratory-category-form-icon,.laboratory-system-shell .laboratory-page .laboratory-tests-summary-btn strong{background:var(--lab-accent);color:#fff}.laboratory-system-shell .laboratory-page .laboratory-allowed-pages-button:hover span,.laboratory-system-shell .laboratory-page .laboratory-result-tabs button.is-active small{background:#fff;color:var(--lab-accent)}
.laboratory-system-shell .laboratory-page .laboratory-test-picker,.laboratory-system-shell .laboratory-page .laboratory-template-modal .perm-modal-head,.laboratory-system-shell .laboratory-page .laboratory-test-list-modal .perm-modal-head,.laboratory-system-shell .laboratory-page .laboratory-test-list-modal footer,.laboratory-system-shell .laboratory-page .laboratory-request-modal .perm-modal-head,.laboratory-system-shell .laboratory-page .laboratory-request-form>footer,.laboratory-system-shell .laboratory-page .laboratory-existing-patient-modal .perm-modal-head,.laboratory-system-shell .laboratory-page .laboratory-existing-patient-modal footer{border-color:var(--lab-border)}.laboratory-system-shell .laboratory-page .laboratory-result-card,.laboratory-system-shell .laboratory-page .laboratory-audit-item,.laboratory-system-shell .laboratory-page .laboratory-selected-tests,.laboratory-system-shell .laboratory-page .laboratory-duplicate-warning,.laboratory-system-shell .laboratory-page .laboratory-unified-form-note,.laboratory-system-shell .laboratory-page .laboratory-correction-note,.laboratory-system-shell .laboratory-page .laboratory-patient-strip>span,.laboratory-system-shell .laboratory-page .laboratory-test-name-item,.laboratory-system-shell .laboratory-page .laboratory-allowed-page{border-color:var(--lab-border);background:var(--lab-softest)}.laboratory-system-shell .laboratory-page .laboratory-result-section h3,.laboratory-system-shell .laboratory-page .laboratory-form-head,.laboratory-system-shell .laboratory-page .laboratory-entry-head{background:var(--lab-softest);color:var(--lab-deep)}.laboratory-system-shell .laboratory-page .laboratory-form-row,.laboratory-system-shell .laboratory-page .laboratory-entry-row{border-color:var(--lab-border)}
.laboratory-system-shell .laboratory-page .laboratory-urgent,.laboratory-system-shell .laboratory-page .laboratory-result-name,.laboratory-system-shell .laboratory-page .laboratory-barcode,.laboratory-system-shell .laboratory-page .laboratory-audit-item strong,.laboratory-system-shell .laboratory-page .laboratory-duplicate-warning strong,.laboratory-system-shell .laboratory-page .laboratory-required,.laboratory-system-shell .laboratory-page .laboratory-entry-test,.laboratory-system-shell .laboratory-page .laboratory-category-form-arrow,.laboratory-system-shell .laboratory-page .laboratory-existing-patient-content strong,.laboratory-system-shell .laboratory-page .laboratory-existing-patient-content>i,.laboratory-system-shell .laboratory-page .laboratory-duplicate-warning button>i{color:var(--lab-strong)}.laboratory-system-shell .laboratory-page .laboratory-urgent input{accent-color:var(--lab-accent)}.laboratory-system-shell .laboratory-page .laboratory-toast{background:var(--lab-deep);box-shadow:0 12px 30px var(--lab-shadow)}.laboratory-system-shell .laboratory-page .laboratory-template-body{scrollbar-color:var(--lab-border) var(--lab-soft)}
.laboratory-system-shell .laboratory-page .laboratory-existing-patient-content>i{background:var(--lab-soft)}
.laboratory-system-shell .laboratory-page .laboratory-existing-patient-focus{background:color-mix(in srgb,var(--lab-softest) 38%,transparent)}.laboratory-system-shell .laboratory-page .laboratory-existing-patient-focus-card{border-color:var(--lab-border);background:#fff;box-shadow:0 1.25rem 3rem var(--lab-shadow)}.laboratory-system-shell .laboratory-page .laboratory-existing-patient-focus-icon{background:var(--lab-soft);color:var(--lab-strong)}.laboratory-system-shell .laboratory-page .laboratory-existing-patient-focus-copy>span,.laboratory-system-shell .laboratory-page .laboratory-existing-patient-focus-copy p{color:var(--lab-strong)}.laboratory-system-shell .laboratory-page .laboratory-existing-patient-focus-copy strong{color:var(--lab-deep)}
.laboratory-system-shell .laboratory-page .laboratory-individual-test-picker{border-color:var(--lab-border);background:var(--lab-softest)}.laboratory-system-shell .laboratory-page .laboratory-individual-test-picker strong,.laboratory-system-shell .laboratory-page .laboratory-text-action,.laboratory-system-shell .laboratory-page .laboratory-individual-test>i{color:var(--lab-strong)}.laboratory-system-shell .laboratory-page .laboratory-individual-test{border-color:var(--lab-border);background:#fff;color:var(--lab-text)}.laboratory-system-shell .laboratory-page .laboratory-individual-test:hover{border-color:var(--lab-accent);background:var(--lab-softest)}.laboratory-system-shell .laboratory-page .laboratory-individual-test.is-selected{border-color:var(--lab-accent);background:var(--lab-soft);box-shadow:0 4px 12px var(--lab-shadow)}.laboratory-system-shell .laboratory-page .laboratory-individual-test input{accent-color:var(--lab-accent)}.laboratory-system-shell .laboratory-page .laboratory-individual-test span strong{color:var(--lab-text)}.laboratory-system-shell .laboratory-page .laboratory-individual-test-grid{scrollbar-color:var(--lab-border) var(--lab-softest)}
.laboratory-system-shell .laboratory-page .modern-select-option.is-expandable{background:var(--lab-softest)}.laboratory-system-shell .laboratory-page .modern-select-option-expand{color:var(--lab-strong)}.laboratory-system-shell .laboratory-page .modern-select-option-details{border-color:var(--lab-border);background:#fff}.laboratory-system-shell .laboratory-page .modern-select-option-details .laboratory-individual-test-picker header{border-color:var(--lab-border)}
.laboratory-system-shell .modern-select-close:hover{background:var(--lab-soft)!important;color:var(--lab-deep)!important}.laboratory-system-shell .laboratory-page .laboratory-individual-test-search{border-color:var(--lab-border);color:var(--lab-strong)}
.laboratory-system-shell .laboratory-page .laboratory-test-picker .modern-select.is-open .modern-select-backdrop{background:color-mix(in srgb,var(--lab-softest) 68%,transparent)}.laboratory-system-shell .laboratory-page .laboratory-test-picker .modern-select-close-row{border-color:var(--lab-border);background:#fff}.laboratory-system-shell .laboratory-page .laboratory-test-picker .modern-select-close,.laboratory-system-shell .laboratory-page .laboratory-individual-test-close{border-color:var(--lab-border);background:var(--lab-soft);color:var(--lab-deep);box-shadow:0 2px 7px var(--lab-shadow)}.laboratory-system-shell .laboratory-page .laboratory-test-picker .modern-select-close:hover,.laboratory-system-shell .laboratory-page .laboratory-individual-test-close:hover{border-color:var(--lab-accent)!important;background:var(--lab-accent)!important;color:#fff!important}
.laboratory-system-shell .laboratory-page .emergency-icon-action,.laboratory-system-shell .laboratory-page .laboratory-pagination button{border-color:var(--lab-border)!important;background:var(--lab-softest)!important;color:var(--lab-deep)!important}.laboratory-system-shell .laboratory-page .emergency-icon-action:hover:not(:disabled),.laboratory-system-shell .laboratory-page .laboratory-pagination button:hover:not(:disabled){border-color:var(--lab-accent)!important;background:var(--lab-soft)!important;color:var(--lab-strong)!important}.laboratory-system-shell .laboratory-page .laboratory-pagination button.is-active{border-color:var(--lab-accent)!important;background:var(--lab-accent)!important;color:#fff!important}.laboratory-system-shell .laboratory-page .laboratory-result-card,.laboratory-system-shell .laboratory-page .laboratory-audit-item,.laboratory-system-shell .laboratory-page .laboratory-duplicate-warning{border-color:var(--lab-border)!important;background:var(--lab-softest)!important}.laboratory-system-shell .laboratory-page .laboratory-result-name,.laboratory-system-shell .laboratory-page .laboratory-barcode,.laboratory-system-shell .laboratory-page .laboratory-audit-item strong,.laboratory-system-shell .laboratory-page .laboratory-duplicate-warning strong{color:var(--lab-strong)!important}
.laboratory-system-shell .modern-date-icon,.laboratory-system-shell .laboratory-page .laboratory-tests-summary-btn>i,.laboratory-system-shell .laboratory-page .laboratory-category-form-arrow{color:var(--lab-accent)!important}.laboratory-system-shell .modern-date-menu{border-color:var(--lab-border)!important}.laboratory-system-shell .modern-date-nav{border-color:var(--lab-border)!important;background:var(--lab-softest)!important;color:var(--lab-deep)!important}.laboratory-system-shell .modern-date-nav:hover:not(:disabled),.laboratory-system-shell .modern-date-day:hover:not(.is-disabled){background:var(--lab-soft)!important}.laboratory-system-shell .modern-date-jump input{border-color:var(--lab-border)!important;background:var(--lab-softest)!important;color:var(--lab-deep)!important}.laboratory-system-shell .modern-date-jump input:focus{border-color:var(--lab-accent)!important;box-shadow:0 0 0 3px var(--lab-shadow)!important}.laboratory-system-shell .modern-date-day.is-today{border-color:var(--lab-accent)!important}.laboratory-system-shell .modern-date-day.is-selected{background:var(--lab-accent)!important;box-shadow:0 8px 18px var(--lab-shadow)!important}.laboratory-system-shell .modern-date-footer{border-color:var(--lab-border)!important}.laboratory-system-shell .modern-date-action.primary{background:var(--lab-soft)!important;color:var(--lab-deep)!important}
.laboratory-system-shell .laboratory-page .laboratory-button-count{display:inline-flex;align-items:center;justify-content:center;line-height:1;transform:none}.laboratory-system-shell .laboratory-page .laboratory-button-count>.laboratory-button-count-value{display:block!important;min-width:0!important;height:auto!important;padding:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;font-size:inherit!important;line-height:1!important;transform:translateY(1px)}
.laboratory-system-shell .laboratory-page .catalog-pagination button{border-color:var(--lab-border)!important;background:var(--lab-softest)!important;color:var(--lab-deep)!important}.laboratory-system-shell .laboratory-page .catalog-pagination button:hover:not(:disabled){border-color:var(--lab-accent)!important;background:var(--lab-soft)!important;color:var(--lab-strong)!important}.laboratory-system-shell .laboratory-page .catalog-pagination button.is-active{border-color:var(--lab-accent)!important;background:var(--lab-accent)!important;color:#fff!important}
.laboratory-system-shell .laboratory-page .laboratory-request-categories .laboratory-category-form-btn{border-color:var(--lab-border)!important;background:#fff!important;color:var(--lab-deep)!important}.laboratory-system-shell .laboratory-page .laboratory-request-categories .laboratory-category-form-copy{align-items:baseline!important;gap:.38rem!important}.laboratory-system-shell .laboratory-page .laboratory-request-categories .laboratory-category-form-copy small{display:inline!important;min-width:0!important;height:auto!important;padding:0!important;background:transparent!important;color:var(--lab-strong)!important;font-size:.72rem!important;line-height:1.2!important;white-space:nowrap!important}.laboratory-system-shell .laboratory-page .laboratory-request-categories .laboratory-category-form-btn:hover:not(:disabled){border-color:var(--lab-accent)!important;background:var(--lab-accent)!important;color:#fff!important}.laboratory-system-shell .laboratory-page .laboratory-request-categories .laboratory-category-form-btn:hover:not(:disabled) .laboratory-category-form-copy small{color:#fff!important}.laboratory-system-shell .laboratory-page .laboratory-request-categories .laboratory-category-form-btn:hover:not(:disabled) .laboratory-category-form-icon{background:#fff!important;color:var(--lab-accent)!important}.laboratory-system-shell .laboratory-page .laboratory-request-categories .laboratory-category-form-btn:hover:not(:disabled) .laboratory-category-form-arrow{color:#fff!important}.laboratory-system-shell .laboratory-page .laboratory-forms-summary-btn{border-color:var(--lab-border);background:var(--lab-softest);color:var(--lab-deep)}.laboratory-system-shell .laboratory-page .laboratory-forms-summary-btn strong,.laboratory-system-shell .laboratory-page .laboratory-form-list-icon{background:var(--lab-accent);color:#fff}.laboratory-system-shell .laboratory-page .laboratory-forms-summary-btn>i,.laboratory-system-shell .laboratory-page .laboratory-form-list-arrow{color:var(--lab-accent)}.laboratory-system-shell .laboratory-page .laboratory-form-list-item{border-color:var(--lab-border);background:var(--lab-softest);color:var(--lab-deep)}.laboratory-system-shell .laboratory-page .laboratory-form-list-item:hover{border-color:var(--lab-accent);background:var(--lab-soft)}.laboratory-system-shell .laboratory-page .laboratory-form-list-copy small{color:var(--lab-strong)}

.laboratory-theme-settings{display:grid;grid-template-columns:minmax(15rem,.62fr) minmax(0,1.38fr);align-items:center;gap:1.25rem;margin-bottom:1rem}.laboratory-theme-settings-copy .card-title{margin-bottom:.4rem}.laboratory-theme-settings-copy p{margin:0;color:var(--ink-500);font-size:.86rem;line-height:1.6}.laboratory-theme-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.laboratory-theme-option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;min-width:0;padding:.7rem;border:1px solid var(--border-soft);border-radius:.85rem;background:var(--brand-75);color:var(--ink-900);font:inherit;text-align:right;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.laboratory-theme-option:hover{border-color:var(--brand-500);box-shadow:0 8px 18px var(--shadow-brand);transform:translateY(-1px)}.laboratory-theme-option.is-selected{border-color:var(--brand-600);background:var(--surface);box-shadow:0 0 0 3px var(--brand-100)}.laboratory-theme-swatch{display:grid;grid-template-columns:repeat(3,6px);gap:2px;padding:4px;border-radius:.55rem;background:var(--theme-surface)}.laboratory-theme-swatch i{display:block;width:6px;height:22px;border-radius:999px;background:var(--theme-accent)}.laboratory-theme-swatch i:nth-child(2){background:var(--theme-deep)}.laboratory-theme-swatch i:nth-child(3){background:var(--theme-soft)}.laboratory-theme-swatch.crimson{--theme-accent:#8b1020;--theme-deep:#64101b;--theme-soft:#f3b7bf;--theme-surface:#fff0f2}.laboratory-theme-swatch.clinical-blue{--theme-accent:#1565a8;--theme-deep:#0c4578;--theme-soft:#9dd2f0;--theme-surface:#eaf5ff}.laboratory-theme-swatch.laboratory-teal{--theme-accent:#087d74;--theme-deep:#005b55;--theme-soft:#9bdcd4;--theme-surface:#e6f8f5}.laboratory-theme-swatch.clinical-indigo{--theme-accent:#5c4aa5;--theme-deep:#413174;--theme-soft:#c2b5ed;--theme-surface:#f1efff}.laboratory-theme-option-copy{display:grid;min-width:0;gap:2px}.laboratory-theme-option-copy strong{font-size:.82rem}.laboratory-theme-option-copy small{overflow-wrap:anywhere;color:var(--ink-500);font-size:.72rem;line-height:1.25}.laboratory-theme-option-check{display:grid;place-items:center;width:1.25rem;height:1.25rem;border:1px solid var(--border-soft);border-radius:50%;color:transparent;font-size:.66rem}.laboratory-theme-option.is-selected .laboratory-theme-option-check{border-color:var(--brand-600);background:var(--brand-600);color:#fff}@media(max-width:920px){.laboratory-theme-settings{grid-template-columns:1fr}.laboratory-theme-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.laboratory-theme-picker{grid-template-columns:1fr}.laboratory-theme-settings{gap:.9rem}.laboratory-theme-option{padding:.75rem}}
