.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.side-logo { background: transparent; box-shadow: none; }
.side-logo img { display: block; width: 50px; height: 50px; }
.case-dialog-backdrop { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(22, 35, 63, .55); }
.case-dialog { width: min(880px, 100%); max-height: min(92vh, 950px); overflow: auto; background: #fff; box-shadow: 0 20px 60px #15203a55; border-radius: 4px; }
.case-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid #e3e7ef; }
.case-dialog-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.dialog-close { border: 0; background: transparent; color: #63718b; font-size: 28px; line-height: 1; }
.case-dialog form { padding: 18px 22px 22px; }
.case-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.case-form-grid .field > span { color: #596982; font-size: 12px; }
.case-form-grid .field .input { min-width: 0; }
.case-form-grid .wide-field { grid-column: span 3; }
.case-form-grid .textarea { min-height: 74px; resize: vertical; }
.case-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 12px; }
.profile-edit { display: flex; align-items: end; gap: 12px; margin-top: 24px; max-width: 460px; }
.profile-edit .field { flex: 1; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-heading h2 { margin-bottom: 0; }
.management-table-wrap { overflow-x: auto; margin-top: 16px; }
.management-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.management-table th, .management-table td { padding: 11px; border-bottom: 1px solid #e7ebf0; text-align: left; }
.management-table th { background: #f8faff; color: #536680; }
.user-dialog { max-width: 700px; }
.report-dialog { max-width: 850px; }
.report-preview-body { padding: 28px 40px 42px; color: #26354e; font-size: 14px; }
.report-preview-body h1 { color: #163e94; border-bottom: 2px solid #163e94; padding-bottom: 12px; font-size: 25px; }
.report-preview-body h2 { font-size: 16px; margin: 24px 0 8px; }
.report-text { line-height: 1.6; }
.report-line { min-height: 1.6em; }
.report-list { padding-left: 16px; }
.note-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 10px; }
.demand-form-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 3fr); gap: 9px; }
.demand-form-row .textarea { min-height: 44px; resize: vertical; }
.demand-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demand-create-grid .wide-field { grid-column: span 2; }
.demand-create-grid .textarea { min-height: 70px; }
.demand-metadata-options { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 18px; padding: 10px 0; font-size: 12px; color: #596982; }
.demand-metadata-options > label:not(.field) { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; }
.demand-metadata-options > .field { min-width: 220px; }
.demand-create-grid > .demand-metadata-options { grid-column: 1 / -1; }
.demand-edit-form { border-top: 1px solid #e1e5ed; margin-top: 12px; padding-top: 12px; }
.demand-group-card { margin-bottom: 14px; padding: 12px; border: 1px solid #e1e7f0; border-radius: 4px; background: #fbfcff; }
.demand-group-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 10px; }
.demand-group-card > .note-list { display: grid; gap: 9px; }
.demand-group-create { margin-top: 16px; border-top: 1px solid #e1e7f0; padding-top: 13px; }
.demand-group-create > summary { cursor: pointer; color: #163e94; font-weight: 600; }
.demand-group-create > .note-compose { margin-top: 12px; }
.demand-group-item { margin: 12px 0; padding: 13px; border: 1px solid #e1e7f0; border-radius: 4px; background: #f9fbff; }
.demand-group-item h4 { margin: 0; }
.demand-group-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.demand-group-grid .wide-field { grid-column: 1 / -1; }
.demand-group-grid .textarea { min-height: 64px; }
.demand-group-state { display: grid; grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 10px; font-size: 12px; }
.demand-group-state > label:not(.field) { display: flex; align-items: center; gap: 5px; min-height: 34px; }
.demand-group-dialog { max-width: 1100px; }
.demand-group-dialog-body { padding: 18px 22px 22px; }
.demand-group-dialog-body h3 { margin-top: 22px; }
.demand-list-card { margin-top: 18px; }
.demand-filters { margin-top: 18px; padding: 16px; background: #f8faff; border: 1px solid #e7ebf0; border-radius: 4px; }
.demand-filters .field { min-width: 0; }
.demand-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.demand-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #5f6d84; font-size: 13px; }
.demand-pages > div { display: flex; align-items: center; gap: 8px; }
.demand-pages .select { width: auto; }
.demand-group-table .demand-summary-row td { vertical-align: top; }
.demand-group-table .demand-group-actions { min-width: 220px; white-space: normal; }
.demand-group-actions .btn { margin: 0 5px 5px 0; }
.demand-group-table .demand-list-details-row[hidden] { display: none; }
.demand-list-details-row > td { background: #f8faff; padding: 14px 18px; }
.demand-list-details-row p { margin: 0 0 10px; }
.demand-page-items { display: grid; gap: 8px; }
.demand-page-item { padding: 10px 12px; border: 1px solid #e1e7f0; background: #fff; border-radius: 4px; }
.demand-page-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; }
.demand-page-item > p { white-space: pre-wrap; margin: 7px 0; }
#global-demand-group-form { margin-top: 12px; }
#global-demand-group-form > .field { display: block; max-width: 480px; }
.dynamic-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.column-options { display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 16px 0 4px; font-size: 13px; }
.column-options label { white-space: nowrap; }
@media (max-width: 900px) { .dynamic-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 530px) { .dynamic-filters { grid-template-columns: 1fr; } }
@media print { body > #app { display: none !important; } .report-preview-backdrop { position: static; display: block; padding: 0; background: none; } .report-dialog { width: 100%; max-width: none; max-height: none; overflow: visible; box-shadow: none; } .report-dialog .case-dialog-head { display: none; } .report-preview-body { padding: 0; } }
@media (max-width: 620px) { .demand-form-row, .demand-create-grid { grid-template-columns: 1fr; } .demand-create-grid .wide-field { grid-column: span 1; } }
@media (max-width: 760px) { .demand-group-grid { grid-template-columns: 1fr; } .demand-group-state { grid-template-columns: 1fr 1fr; } }
@media (max-width: 490px) { .demand-group-state { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .demand-pages { align-items: flex-start; flex-direction: column; } }
@media (max-width: 720px) { .case-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .case-form-grid .wide-field { grid-column: span 2; } }
@media (max-width: 490px) { .case-form-grid { grid-template-columns: 1fr; } .case-form-grid .wide-field { grid-column: span 1; } }
@media (max-width: 620px) { .side-logo img { width: 40px; height: 40px; } }

.acceptance-heading { margin: 10px 0 16px; }
.acceptance-heading .page-title { margin: 4px 0; }
.acceptance-heading p { margin: 2px 0 0; }
.acceptance-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.technician-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.technician-filter .field { min-width: 170px; flex: 1; }
.technician-filter .field:first-child { flex: 2; }
.technician-filter .field > span { font-size: 12px; color: #596982; }
.technician-assignee { max-width: 230px; width: 100%; }
.tech-stages { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 13px; }
.tech-stage { min-width: 108px; border: 1px solid #e2e7f0; border-radius: 3px; background: #fff; color: #485a77; padding: 7px 9px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; white-space: nowrap; }
.tech-stage strong { background: #ecf1fb; border-radius: 2px; padding: 4px 7px; color: #1c57b7; font-size: 12px; }
.tech-stage:hover, .tech-stage.active { border-color: #3973da; box-shadow: 0 2px 8px #2f62c328; }
.tech-stage.active { background: #eaf1ff; }
.transfer-chip { display: inline-block; padding: 4px 7px; border-radius: 3px; background: #e8edfa; color: #3154a0; font-size: 11px; white-space: nowrap; }
.transfer-chip.transfer-dispatched { background: #fff0cf; color: #85590a; }
.transfer-chip.transfer-received { background: #e2f2e0; color: #23733a; }
.transfer-chip.transfer-cancelled { background: #f9dfe3; color: #a52639; }
.transfer-dialog .case-form-grid { margin-bottom: 18px; }
.transfer-case-picker { border-top: 1px solid #e5eaf0; padding-top: 13px; }
.transfer-case-picker h3 { font-size: 15px; margin: 0; }
.transfer-case-picker > .input { width: 100%; margin: 12px 0; }
.transfer-case-choices { max-height: 220px; overflow: auto; border: 1px solid #e5eaf0; }
.transfer-case-choice { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-bottom: 1px solid #edf0f4; font-size: 12px; }
.transfer-case-choice:hover { background: #f2f6ff; }
.transfer-case-choice small { color: #78869a; }
.transfer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acceptance-filter .field { min-width: 175px; flex: 1; }
.acceptance-filter .field:nth-child(2) { flex: 2; }
.acceptance-filter .field > span, .specimen-form .field > span, .delivery-form .field > span { font-size: 12px; color: #596982; }
.acceptance-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; color: #68768e; font-size: 12px; }
.acceptance-pager > div { display: flex; gap: 8px; }
.acceptance-summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; }
.acceptance-summary .generic-card { min-width: 0; }
.acceptance-actions { margin: 14px 0; }
.acceptance-card { margin-top: 14px; }
.acceptance-card .panel-heading h2 { margin: 0; }
.intake-chip { display: inline-block; border-radius: 3px; padding: 4px 7px; background: #e8edfa; color: #3154a0; font-size: 11px; white-space: nowrap; }
.intake-chip.intake-accepted { background: #e2f2e0; color: #23733a; }
.intake-chip.intake-conditional { background: #fff0cf; color: #85590a; }
.intake-chip.intake-rejected { background: #f9dfe3; color: #a52639; }
.specimen-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e5eaf0; }
.specimen-form h3 { margin: 0 0 13px; font-size: 15px; }
.specimen-form .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.receipt-card { max-width: none; margin-top: 14px; }
.receipt-card .receipt-body { padding: 0; }
.receipt-card .management-table { min-width: 900px; }
.delivery-form { margin-top: 18px; border-top: 1px solid #e5eaf0; padding-top: 18px; }
.delivery-form .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.delivery-form .textarea { min-height: 38px; }
.delivery-expected-form { display: flex; align-items: center; gap: 6px; }
.delivery-expected-form .input { width: 95px; min-width: 0; }
.delivery-form .editor-footer { justify-content: flex-start; }
.receipt-signatures { display: flex; justify-content: space-between; gap: 30px; padding-top: 70px; margin-top: 28px; }
.receipt-signatures span { width: 42%; border-top: 1px solid #8994a6; padding-top: 6px; font-size: 12px; text-align: center; }
@media (max-width: 800px) { .acceptance-summary { grid-template-columns: 1fr; } .specimen-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .delivery-form .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 530px) { .acceptance-filter .field, .acceptance-filter .field:nth-child(2), .technician-filter .field, .technician-filter .field:first-child { width: 100%; flex: none; } .specimen-form .form-grid, .delivery-form .form-grid { grid-template-columns: 1fr; } }
@media print { .receipt-body { color: #111; } .receipt-body .management-table { width: 100%; } }
.inventory-heading { margin-top: 24px; }
.status-pill.hazir { background: #8abd42; }
.status-pill.ononay { background: #ecaf30; }
.inventory-title { margin: 22px 0 4px; font-size: 15px; color: #2e4568; }
.inventory-heading .inventory-title { margin: 0; }
.inventory-dialog { max-width: 720px; }
.inventory-dialog .textarea { min-height: 72px; }
.digital-slide-list { display: grid; gap: 8px; margin-top: 12px; }
.digital-slide-card { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 9px; border: 1px solid #e5eaf0; border-radius: 3px; }
.digital-slide-thumb { width: 72px; height: 52px; display: grid; place-items: center; overflow: hidden; background: #eef3fb; color: #748aa9; }
.digital-slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.digital-slide-actions { display: flex; gap: 6px; }
.digital-upload-form { border-top: 1px solid #e5eaf0; margin-top: 20px; padding-top: 16px; }
.digital-upload-form h3 { margin: 0 0 12px; font-size: 15px; }
.digital-upload-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.digital-upload-grid .field > span { font-size: 12px; color: #596982; }
.digital-upload-grid .input, .digital-upload-grid .select { min-width: 0; width: 100%; }
@media (max-width: 750px) { .digital-upload-grid { grid-template-columns: 1fr; } .digital-slide-card { grid-template-columns: 62px minmax(0,1fr); } .digital-slide-actions { grid-column: 2; } }
