:root { --sidebar-w: 220px; }
body { background: #f4f6f9; font-size: .925rem; }
.sidebar { width: var(--sidebar-w); min-height: calc(100vh - 56px); background: #fff; border-right: 1px solid #e3e6ea; }
@media (min-width: 992px) { .sidebar { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; flex-shrink: 0; } }
.sidebar .nav-link { color: #344054; padding: .55rem 1rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { width: 1.4rem; display: inline-block; }
.sidebar .nav-link:hover { background: #f1f5ff; }
.sidebar .nav-link.active { background: #e8efff; border-left-color: var(--bs-primary); color: var(--bs-primary); font-weight: 600; }
.main { min-width: 0; }
.card { border-color: #e3e6ea; }
.table { background: #fff; }
.table-sm td, .table-sm th { vertical-align: middle; }
.stat-card .display-6 { font-weight: 600; }
.picker { position: relative; }
.picker-menu { position: absolute; z-index: 1050; left: 0; right: 0; max-height: 300px; overflow-y: auto; display: none; }
.lines td { padding: .25rem; }
.lines input, .lines select { min-width: 60px; }
.bed { width: 110px; border-radius: .5rem; padding: .5rem; text-align: center; font-size: .8rem; border: 1px solid #dee2e6; }
.bed.free { background: #e9f7ef; border-color: #a3d9b1; }
.bed.occupied { background: #fdecea; border-color: #f1a9a0; }
.bed.repair { background: #f1f1f1; color: #888; }
.login-bg { background: linear-gradient(135deg, #e8efff, #f4f6f9); }
.login-card { width: 100%; max-width: 380px; }
.checklist { max-height: 260px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: .375rem; padding: .5rem; background: #fff; }
.checklist .filter-item { display: block; }
.lab-heading td { background: #f8f9fa; font-weight: 600; }
.flag-H, .flag-L { font-weight: 700; color: #b42318; }

/* Print */
.print-page { background: #fff; }
.sheet { max-width: 800px; margin: 0 auto; padding: 1rem 1.25rem; }
.letterhead { text-align: center; border-bottom: 2px solid #333; padding-bottom: .4rem; margin-bottom: .4rem; }
.print-page table { font-size: .85rem; }
.token-big { font-size: 4rem; font-weight: 700; line-height: 1; }
.sign-line { margin-top: 3rem; text-align: right; }
@media print {
  @page { margin: 10mm; }
  body { background: #fff; font-size: 12px; }
  .sheet { padding: 0; max-width: none; }
  a { text-decoration: none; color: inherit; }
}
