body { background:#f4f6f9; font-family: 'Segoe UI', system-ui, sans-serif; }
.sidebar { width:240px; position:fixed; top:0; bottom:0; left:0; overflow-y:auto; z-index:1040; }
.main-area { margin-left:240px; width:100%; min-width:0; }
.sidebar .nav-link { font-size:0.9rem; padding:.35rem .6rem; }
.sidebar .nav-link.active { background:#0d6efd; }
.sidebar .nav-link .bi { width:1.2em; display:inline-block; }
.sidebar .nav-group { padding:.35rem .6rem; text-decoration:none; letter-spacing:.04em; font-size:.72rem; }
.sidebar .nav-group:hover { color:#fff !important; }
.sidebar .collapse .nav-link { padding-left:1rem; }
@media (max-width: 991.98px) {
  .sidebar { transform:translateX(-100%); transition:transform .2s; }
  body.nav-open .sidebar { transform:none; }
  .main-area { margin-left:0; padding-top:3.5rem !important; }
}
.card-stat { border-radius:12px; border:none; box-shadow:0 2px 8px rgba(0,0,0,.06); }
.card-stat h3 { font-weight:700; margin-bottom:0; }
.menu-item-btn { text-align:left; }
.menu-item-btn small { display:block; color:#6c757d; }
.table-tile { cursor:pointer; border-radius:10px; padding:14px; text-align:center; font-weight:600; }
.table-tile.available { background:#d1e7dd; color:#0f5132; }
.table-tile.occupied { background:#f8d7da; color:#842029; }
.table-tile.reserved { background:#fff3cd; color:#664d03; }
.cart-item { border-bottom:1px solid #eee; padding:6px 0; }
/* tape chart */
.tape { overflow-x:auto; }
.tape table { border-collapse:separate; border-spacing:0; font-size:.8rem; }
.tape th, .tape td { border-right:1px solid #e5e7eb; border-bottom:1px solid #e5e7eb; min-width:44px; height:34px; padding:2px; text-align:center; white-space:nowrap; }
.tape th.room { position:sticky; left:0; background:#fff; z-index:2; min-width:110px; text-align:left; }
.tape td.weekend { background:#f8fafc; }
.tape td.today { box-shadow: inset 2px 0 0 #0d6efd; }
.tape .bar { display:block; border-radius:6px; color:#fff; padding:3px 6px; overflow:hidden; text-overflow:ellipsis; text-align:left; font-weight:600; text-decoration:none; }
.tape .bar.confirmed { background:#0d6efd; } .tape .bar.tentative { background:#f59e0b; } .tape .bar.checked_in { background:#198754; }
.tape .bar.checked_out { background:#6c757d; } .tape .bar.ooo { background:#212529; }
/* room status board */
.room-tile { border-radius:10px; padding:10px; color:#111; border:2px solid transparent; min-height:92px; }
.room-tile.clean { background:#d1e7dd; } .room-tile.dirty { background:#f8d7da; } .room-tile.inspected { background:#cfe2ff; }
.room-tile.out_of_order { background:#343a40; color:#fff; } .room-tile.out_of_service { background:#adb5bd; }
.room-tile.occupied { border-color:#0d6efd; }
.kds-ticket { border-radius:10px; border:1px solid #dee2e6; background:#fff; }
.kds-ticket.late { border-color:#dc3545; box-shadow:0 0 0 2px #dc354533; }
.folio-table td, .folio-table th { font-size:.875rem; }
.line-void { text-decoration:line-through; color:#999; }
@media print { .sidebar, .no-print, button.d-lg-none { display:none !important; } .main-area { margin:0 !important; padding:0 !important; } }

/* =====================================================
   Premium theme (warm neutrals, deep green, gold accent)
   ===================================================== */
:root {
  --brand: #1f4d3a; --brand-dark: #14261f; --brand-soft: #e8f1ec; --gold: #d4a84b; --gold-soft: #f6ecd6;
  --ink: #1f2421; --muted: #7a776d; --line: #ece8df; --canvas: #f5f3ee; --card: #ffffff;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,38,31,.04), 0 8px 24px rgba(20,38,31,.06);
  --bs-primary: #1f4d3a; --bs-primary-rgb: 31,77,58; --bs-link-color: #1f4d3a; --bs-link-hover-color: #14261f; --bs-link-color-rgb: 31,77,58;
  --bs-body-font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
body { background: var(--canvas); color: var(--ink); font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h3 { font-size: 1.55rem; } h6 { font-weight: 650; }
a { color: var(--brand); }
.text-muted { color: var(--muted) !important; }

/* sidebar */
.sidebar.bg-dark { background-image: linear-gradient(180deg, #14261f 0%, #183829 55%, #1d4434 100%); box-shadow: 4px 0 24px rgba(0,0,0,.08); }
.sidebar .brand-name { font-family: Georgia, 'Times New Roman', serif; color: #f3d99b; font-size: 1.05rem; }
.sidebar .nav-link { border-radius: 10px; color: rgba(255,255,255,.78) !important; transition: background .15s, color .15s; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff !important; }
.sidebar .nav-link.active { background: linear-gradient(90deg, rgba(212,168,75,.22), rgba(212,168,75,.06)); color: #fff !important; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar .nav-link.active .bi { color: var(--gold); }
.sidebar .nav-group { color: rgba(243,217,155,.55) !important; font-weight: 600; }
.sidebar hr { border-color: rgba(255,255,255,.12); }
.sidebar .btn-outline-light { border-color: rgba(255,255,255,.25); border-radius: 10px; }
.main-area { padding: 28px 32px !important; }

/* cards & tiles */
.card, .card-stat { border: 1px solid var(--line) !important; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.card-stat h3, .card-stat h4 { font-weight: 750; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.25rem; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 1rem; }
.stat-tile { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; height: 100%; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex: none; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.stat-tile > div:last-child { min-width: 0; }
.stat-sub { font-size: .8rem; color: var(--muted); }

/* tables */
.table { --bs-table-hover-bg: #faf8f3; }
.table > thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom-color: var(--line); background: transparent; }
.table > :not(caption) > * > * { border-bottom-color: #f1ede5; padding-top: .6rem; padding-bottom: .6rem; }

/* buttons & forms */
.btn { border-radius: 10px; font-weight: 550; }
.btn-sm { border-radius: 8px; }
.btn-primary { --bs-btn-bg: #1f4d3a; --bs-btn-border-color: #1f4d3a; --bs-btn-hover-bg: #14261f; --bs-btn-hover-border-color: #14261f; --bs-btn-active-bg: #14261f; --bs-btn-disabled-bg: #1f4d3a; --bs-btn-disabled-border-color: #1f4d3a; }
.btn-outline-primary { --bs-btn-color: #1f4d3a; --bs-btn-border-color: #1f4d3a; --bs-btn-hover-bg: #1f4d3a; --bs-btn-hover-border-color: #1f4d3a; --bs-btn-active-bg: #14261f; }
.btn-success { --bs-btn-bg: #2f7d55; --bs-btn-border-color: #2f7d55; --bs-btn-hover-bg: #256745; --bs-btn-hover-border-color: #256745; }
.btn-warning { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-hover-bg: #c39535; --bs-btn-hover-border-color: #c39535; --bs-btn-color: #2b2208; }
.form-control, .form-select { border-radius: 10px; border-color: #e2ddd2; }
.form-control:focus, .form-select:focus { border-color: #6f9c86; box-shadow: 0 0 0 .2rem rgba(31,77,58,.12); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 550; color: #4a4740; }
.badge { border-radius: 999px; font-weight: 600; padding: .38em .7em; }
.bg-primary { background-color: var(--brand) !important; }
.text-primary { color: var(--brand) !important; }
.alert { border-radius: 12px; border: none; }
.nav-tabs { border-bottom: 1px solid var(--line); gap: 4px; }
.nav-tabs .nav-link { border: none; color: var(--muted); font-weight: 600; border-radius: 10px 10px 0 0; }
.nav-tabs .nav-link.active { color: var(--brand); background: transparent; box-shadow: inset 0 -2px 0 var(--brand); }
.nav-pills .nav-link.active:not(.sidebar .nav-link) { background: var(--brand); }
.modal-content { border: none; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.list-group-item.active { background: var(--brand); border-color: var(--brand); }
.progress-bar { background-color: var(--brand); }
.table-tile { border-radius: 14px; box-shadow: var(--shadow); }
.table-tile.available { background: #e3f1e9; color: #1f5c40; } .table-tile.occupied { background: #fbe3df; color: #8c2f22; } .table-tile.reserved { background: var(--gold-soft); color: #6e531a; }

/* login */
body.login-page { background: radial-gradient(1200px 600px at 10% 0%, #2a5a45 0%, transparent 60%), linear-gradient(160deg, #14261f, #1f4d3a); }
.login-card { width: 380px; border: none !important; border-radius: 20px !important; box-shadow: 0 30px 80px rgba(0,0,0,.35) !important; }
.login-card .brand-name { font-family: Georgia, serif; color: var(--brand-dark); }
@media (max-width: 991.98px) { .main-area { padding: 64px 16px 20px !important; } }
