
.lab-sidebar-welcome { display: grid; gap: 4px; margin: 18px 14px 6px; border: 1px solid rgba(188, 221, 198, .2); border-radius: 5px; padding: 12px; background: rgba(255,255,255,.055); }
.lab-sidebar-welcome > span { color: #a7c4ad; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.lab-sidebar-welcome > strong { color: #fff; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.lab-sidebar-welcome > small { color: #bbd0c0; font-size: 10px; }
.lab-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.lab-stats article { display: flex; min-height: 82px; flex-direction: column; justify-content: center; border: 1px solid #e0e6df; padding: 12px; background: white; }
.lab-stats span { color: #839087; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.lab-stats b { margin-top: 5px; color: var(--green); font-family: var(--font-display); font-size: 25px; }
.lab-panel { min-width: 0; margin-bottom: 17px; border: 1px solid #e0e6df; padding: 17px; background: #fff; }
.lab-two-column { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.lab-registration-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.lab-form { display: grid; gap: 12px; }
.lab-form label, .lab-public-search label { display: flex; min-width: 0; flex-direction: column; gap: 5px; color: #536359; font-size: 10px; font-weight: 700; }
.lab-form input:not([type=checkbox]), .lab-form select, .lab-form textarea, .lab-search input, .lab-public-search input, .lab-result-table input { width: 100%; min-width: 0; min-height: 38px; border: 1px solid #dce4db; border-radius: 3px; padding: 8px 10px; color: #35473c; background: #fbfcfa; font: inherit; font-size: 11px; }
.lab-form textarea { resize: vertical; }
.lab-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lab-form .lab-check { flex-direction: row; align-items: center; }
.lab-form .lab-check input, .lab-test-picker input { accent-color: var(--green); }
.lab-inline-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.lab-inline-actions form { margin: 0; }
.lab-master-list, .lab-parameter-list { display: grid; gap: 9px; }
.lab-master-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; border-top: 1px solid #e8ece7; padding: 11px 2px; }
.lab-master-list > article > div:first-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.lab-master-list small, .lab-table td small { display: block; margin-top: 3px; color: #819087; font-size: 9px; }
.lab-master-list .lab-inline-actions { grid-column: 1 / -1; }
.lab-status { display: inline-flex; width: fit-content; align-items: center; border-radius: 99px; padding: 4px 8px; color: #7b6740; background: #f5efdf; font-size: 9px; font-weight: 700; white-space: nowrap; }
.lab-status.is-active, .status-published { color: #277247; background: #e6f4eb; }
.status-in_progress { color: #486882; background: #eaf2f8; }
.status-completed { color: #426e4e; background: #e9f4e8; }
.status-verified { color: #584f85; background: #eeebfa; }
.lab-table-wrap, .lab-result-table-wrap { overflow-x: auto; }
.lab-table { width: 100%; border-collapse: collapse; color: #45564c; font-size: 10px; text-align: left; }
.lab-table th, .lab-table td { border-bottom: 1px solid #e8ece7; padding: 10px 9px; vertical-align: middle; }
.lab-table th { color: #78867d; background: #f5f7f3; font-size: 8px; font-weight: 800; letter-spacing: .4px; white-space: nowrap; }
.lab-table tbody tr:last-child td { border-bottom: 0; }
.lab-table td strong { color: #294937; }
.lab-patient-row-checkbox, [data-lab-select-all-patients] { width: 15px; height: 15px; accent-color: var(--green); cursor: pointer; }
.lab-bulk-patient-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; align-items: center; }
.lab-bulk-patient-actions > label { display: flex; gap: 7px; align-items: center; color: #617068; font-size: 9px; font-weight: 700; white-space: nowrap; }
.lab-bulk-patient-actions form { margin: 0; }
.lab-bulk-patient-actions .danger-button { border: 1px solid #e7cfc8; border-radius: 3px; padding: 7px 10px; background: #fff8f6; }
.lab-patient-receipt-button { min-height: 26px; gap: 4px; padding: 4px 7px; font-size: 8px; white-space: nowrap; }
.lab-patient-receipt-button span { margin-left: 1px; }
.lab-order-report-button { min-height: 25px; gap: 3px; padding: 3px 6px; font-size: 8px; white-space: nowrap; }
.lab-order-report-button span { margin-left: 1px; }
.lab-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e8ece7; margin-top: 2px; padding: 12px 4px 1px; color: #758279; font-size: 9px; }
.lab-pagination a, .lab-pagination .is-disabled { color: #456b55; font-weight: 700; }
.lab-pagination a:hover { text-decoration: underline; }
.lab-pagination .is-disabled { color: #a4ada6; }
.lab-search { display: flex; gap: 9px; align-items: center; }
.lab-search input { flex: 1; }
.lab-search select { min-width: 145px; min-height: 38px; border: 1px solid #dce4db; border-radius: 3px; padding: 8px 10px; color: #35473c; background: #fbfcfa; font: inherit; font-size: 11px; }
.lab-search .lab-date-filter { flex: 0 0 155px; }
.lab-order-stats { margin-top: 4px; }
.lab-help, .lab-empty { margin: 10px 0 0; color: #7b8880; font-size: 10px; line-height: 1.6; }
.lab-test-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 7px; border: 1px solid #e0e6df; padding: 12px; }
.lab-test-picker legend { padding-inline: 5px; color: #536359; font-size: 10px; font-weight: 700; }
.lab-test-picker > .lab-help { grid-column: 1 / -1; margin: 0 0 2px; }
.lab-test-picker label { display: flex; min-width: 0; gap: 7px; align-items: flex-start; border: 1px solid #edf0ec; border-radius: 3px; padding: 7px 8px; background: #fbfcfa; }
.lab-test-picker label span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.lab-test-picker small { color: #7e8a82; font-size: 9px; font-weight: 400; }
.lab-order-create { max-width: 780px; }
.lab-parameter-layout { grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); }
.lab-parameter-list > article { border-top: 1px solid #e8ece7; padding: 10px 0; }
.lab-parameter-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lab-parameter-edit > label:first-of-type, .lab-parameter-edit > label:nth-of-type(4) { grid-column: 1 / -1; }
.lab-parameter-edit label { display: flex; min-width: 0; flex-direction: column; gap: 4px; color: #536359; font-size: 9px; }
.lab-parameter-edit input { min-width: 0; min-height: 33px; border: 1px solid #dce4db; padding: 6px; font: inherit; font-size: 10px; }
.lab-parameter-actions { display: flex; gap: 10px; align-items: center; margin-top: 5px; }
.lab-parameter-actions > span { margin-right: auto; color: #7b8880; font-size: 9px; }
.lab-parameter-actions form { margin: 0; }
.lab-patient-banner { display: flex; justify-content: space-between; gap: 20px; }
.lab-patient-banner h2 { margin: 5px 0; font-family: var(--font-display); font-size: 20px; }
.lab-patient-banner p { margin: 3px 0; color: #728077; font-size: 10px; }
.lab-patient-banner > div:last-child { display: grid; justify-items: end; gap: 5px; }
.lab-patient-banner > div:last-child strong { margin-bottom: 7px; color: #294937; font-size: 12px; }
.lab-order-test-heading, .lab-verification { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.lab-order-test-heading { margin-bottom: 12px; }
.lab-order-test-heading h2 { margin: 0; font-family: var(--font-display); font-size: 15px; }
.lab-order-test-heading h2 small { margin-left: 5px; color: #89958d; font-family: var(--font-body); font-size: 9px; }
.lab-order-test-heading > span { color: #294937; font-weight: 700; }
.lab-order-test-heading > div { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.lab-external-report { display: grid; gap: 9px; border: 1px solid #dfe8df; padding: 12px; background: #f8faf7; }
.lab-external-report > .lab-help { margin: 0; }
.lab-external-upload { max-width: 460px; }
.lab-external-upload input[type=file] { background: #fff; }
.lab-result-table input { min-width: 120px; min-height: 34px; padding: 6px; font-size: 10px; }
.lab-result-table td { min-width: 100px; }
.lab-verification { border-top: 1px solid #e8ece7; margin-top: 10px; padding-top: 11px; color: #77847b; font-size: 9px; }
.lab-public-section { padding-top: 35px; }
.lab-public-wrap { max-width: 760px; }
.lab-public-contact { display: grid; gap: 5px; margin-bottom: 18px; border: 1px solid #e0e6df; padding: 13px 16px; color: #58685e; background: #fff; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.lab-public-contact > span { color: #829087; font-size: 8px; font-weight: 800; letter-spacing: .6px; }
.lab-public-contact a { color: #356c4d; font-weight: 700; }
.lab-public-contact small { color: #7c8981; font-size: 9px; }
.lab-public-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; border: 1px solid #e0e6df; padding: 20px; background: #fff; }
.lab-public-search .button { min-height: 40px; font-size: 10px; }
.lab-public-results { margin-top: 30px; }
.lab-public-order { display: flex; justify-content: space-between; gap: 14px; align-items: center; border: 1px solid #e0e6df; border-top: 0; padding: 13px 15px; background: #fff; }
.lab-public-order:first-of-type { border-top: 1px solid #e0e6df; }
.lab-public-order > div { display: flex; flex-direction: column; gap: 4px; }
.lab-public-order strong { color: #294937; font-size: 11px; }
.lab-public-order span { color: #78867d; font-size: 9px; }
.lab-public-order form { margin: 0; }
@media (max-width: 980px) { .lab-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .lab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .lab-stats article { min-height: 67px; padding: 9px; }
    .lab-stats span { font-size: 7px; }
    .lab-stats b { font-size: 21px; }
    .lab-two-column, .lab-parameter-layout { grid-template-columns: 1fr; }
    .lab-panel { padding: 12px; }
    .lab-search { flex-wrap: wrap; }
    .lab-search input { flex-basis: 100%; }
    .lab-patient-banner { flex-direction: column; }
    .lab-patient-banner > div:last-child { justify-items: start; }
    .lab-order-test-heading, .lab-verification { align-items: flex-start; flex-direction: column; }
    .lab-public-search { grid-template-columns: 1fr; padding: 14px; }
    .lab-public-order { align-items: flex-start; flex-direction: column; }
    .lab-inline-actions .button { min-height: 35px; padding-inline: 10px; font-size: 9px; }
}


