/* =====================================================================
   Hotel Manager — light, simple theme
   One stylesheet, organised: tokens · base · layout · menu · components
   ===================================================================== */
:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e7ecf3;
  --line-2: #dfe5ee;
  --ink: #1a2438;
  --ink-2: #3b4760;
  --muted: #6b7890;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef4ff;
  --navy: #0f2747;
  --st-available: #16a34a;
  --st-reserved: #d97706;
  --st-occupied: #dc2626;
  --st-partial: #7c3aed;
  --st-cleaning: #0891b2;
  --st-maintenance: #a16207;
  --st-blocked: #64748b;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .04);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, .12);
  --sidebar-w: 256px;
  --sidebar-mini: 76px;
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-body-color: #1a2438;
  --bs-border-color: #e7ecf3;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: #cfe0ff; }

/* Buttons */
.btn { border-radius: var(--radius); font-weight: 600; padding: .45rem .9rem; transition: background .15s, box-shadow .15s, border-color .15s; }
.btn-sm { border-radius: 8px; padding: .28rem .6rem; font-size: 13px; }
.btn-lg { padding: .65rem 1.2rem; font-size: 15px; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue); --bs-btn-hover-bg: var(--blue-dark); --bs-btn-hover-border-color: var(--blue-dark);
  --bs-btn-active-bg: var(--blue-dark); --bs-btn-disabled-bg: #93b4f5; --bs-btn-disabled-border-color: #93b4f5; box-shadow: 0 4px 12px rgba(37, 99, 235, .22); }
.btn-outline-primary { --bs-btn-color: var(--blue); --bs-btn-border-color: #c9d9fb; --bs-btn-hover-bg: var(--blue-soft); --bs-btn-hover-color: var(--blue-dark); --bs-btn-hover-border-color: #a9c3f8; --bs-btn-active-bg: var(--blue-soft); --bs-btn-active-color: var(--blue-dark); }
.btn-outline-secondary, .btn-light { --bs-btn-color: var(--ink-2); --bs-btn-bg: #fff; --bs-btn-border-color: var(--line-2); --bs-btn-hover-bg: #f3f6fb; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: var(--line-2); --bs-btn-active-bg: #eef2f8; --bs-btn-active-color: var(--ink); }
.btn-outline-danger { --bs-btn-border-color: #f3c4c4; }
.btn-outline-success { --bs-btn-border-color: #bfe5cd; }
.btn-success { --bs-btn-bg: var(--st-available); --bs-btn-border-color: var(--st-available); }
.btn-danger { --bs-btn-bg: #ef4444; --bs-btn-border-color: #ef4444; }
.btn-icon { border: 0; background: transparent; font-size: 20px; padding: 4px 9px; color: var(--ink-2); border-radius: 9px; }
.btn-icon:hover { background: #e9eef6; color: var(--blue); }
.row-actions { white-space: nowrap; }
.row-actions .btn { padding: 3px 8px; font-size: 13px; border-radius: 8px; }

/* Forms */
.form-label { font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 5px; }
.form-label .req, .req { color: #ef4444; }
.form-control, .form-select { border-radius: var(--radius); border-color: var(--line-2); padding: .5rem .75rem; font-size: 14px; color: var(--ink); }
.form-control-sm, .form-select-sm { border-radius: 8px; padding: .3rem .55rem; font-size: 13px; }
.form-control:focus, .form-select:focus { border-color: #8db0f6; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.form-control[readonly], .form-control.bg-light { background: #f6f8fb !important; }
.form-text { color: var(--muted); font-size: 12.5px; }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; transition: margin-left .2s ease; }
.topbar { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 28px; position: sticky; top: 0; z-index: 1030;
  background: rgba(245, 247, 251, .86); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
.page-title { display: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.today { color: var(--muted); font-weight: 600; font-size: 13px; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; }
.user-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 4px 12px 4px 4px; border-radius: 22px; font-weight: 600; }
.user-btn::after { margin-left: 2px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, #60a5fa, #2563eb); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.content { padding: 4px 28px 40px; }
@media (max-width: 991.98px) { .main { margin-left: 0; } .content { padding: 4px 14px 32px; } .topbar { padding: 0 12px; } }

/* Page heading (every screen) */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 20px; }
.page-head h1 { font-size: 24px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 12px; letter-spacing: -.02em; }
.page-head h1 .ph-ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--blue); display: grid; place-items: center; font-size: 19px; box-shadow: var(--shadow); }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--blue); }
.crumbs span:last-child { color: var(--ink-2); font-weight: 600; }
.crumbs .sep { color: #b4bfcf; }

/* ---------- Menu ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1040; display: flex; flex-direction: column;
  background: #fff; border-right: 1px solid var(--line); transition: width .2s ease, transform .2s ease; }
.brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, #60a5fa, #2563eb); color: #fff; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; box-shadow: 0 6px 14px rgba(37, 99, 235, .3); }
.brand img { height: 38px; width: 38px; object-fit: contain; flex-shrink: 0; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.nav-cta { margin: 10px 16px 4px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius);
  background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(37, 99, 235, .25); }
.nav-cta:hover { background: var(--blue-dark); color: #fff; }
.nav-search { margin: 10px 16px 2px; position: relative; }
.nav-search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9aa6b8; font-size: 13px; }
.nav-search input { width: 100%; background: #f4f6fa; border: 1px solid transparent; border-radius: 9px; padding: 7px 10px 7px 32px; font-size: 13px; color: var(--ink); }
.nav-search input:focus { outline: none; background: #fff; border-color: #8db0f6; }
.nav-menu { flex: 1; overflow-y: auto; padding: 4px 12px 14px; scrollbar-width: thin; scrollbar-color: #dfe5ee transparent; }
.nav-section { margin-top: 12px; }
.nav-label { font-size: 11.5px; font-weight: 700; color: #94a0b3; padding: 4px 10px 5px; letter-spacing: .02em; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; margin-bottom: 1px; border: 0; background: none; border-radius: 9px;
  color: var(--ink-2); font-weight: 600; font-size: 13.8px; text-align: left; position: relative; }
.nav-link i:first-child { font-size: 16px; width: 20px; text-align: center; color: #8a96aa; }
.nav-link .txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-link:hover { background: #f3f6fb; color: var(--ink); }
.nav-link:hover i:first-child { color: var(--ink-2); }
.nav-link.active { background: var(--blue-soft); color: var(--blue-dark); }
.nav-link.active i:first-child, .nav-toggle.has-active i:first-child { color: var(--blue); }
.nav-toggle.has-active { color: var(--ink); }
.nav-toggle .caret { font-size: 11px; color: #9aa6b8; transition: transform .2s; }
.nav-group.open .caret { transform: rotate(180deg); }
.nav-count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; background: #eef2f7; color: var(--ink-2); }
.nav-count.warn { background: #fef3c7; color: #92400e; }
.nav-count.info { background: #dbeafe; color: #1d4ed8; }
.nav-count.danger { background: #fee2e2; color: #b91c1c; }
.nav-sub { display: none; margin: 2px 0 6px 20px; padding-left: 12px; border-left: 1.5px solid #edf1f6; }
.nav-group.open .nav-sub { display: block; }
.nav-sub-title { display: none; }
.nav-sub a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 13.2px; font-weight: 600; }
.nav-sub a i { font-size: 13px; }
.nav-sub a:hover { color: var(--ink); background: #f3f6fb; }
.nav-sub a.active { color: var(--blue-dark); background: var(--blue-soft); }
.nav-empty { color: var(--muted); font-size: 13px; padding: 10px; }
.nav-user { display: flex; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 10px; border-radius: 12px; background: #f6f8fb; }
.nav-user .who { flex: 1; min-width: 0; line-height: 1.25; }
.nav-user .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user .who small { color: var(--muted); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-logout { color: var(--muted); font-size: 17px; padding: 4px 6px; border-radius: 8px; }
.nav-logout:hover { color: #ef4444; background: #fff; }
.role-chip { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: 10.5px; font-weight: 800; background: #dcfce7; color: #15803d; vertical-align: 1px; }
.role-chip.admin { background: #ede9fe; color: #6d28d9; }
.sidebar-backdrop { display: none; }

@media (min-width: 992px) {
  body.nav-mini .sidebar { width: var(--sidebar-mini); }
  body.nav-mini .main { margin-left: var(--sidebar-mini); }
  body.nav-mini .brand { justify-content: center; padding: 18px 8px 10px; }
  body.nav-mini .brand-text, body.nav-mini .nav-search, body.nav-mini .txt, body.nav-mini .caret, body.nav-mini .nav-user .who, body.nav-mini .nav-label span { display: none; }
  body.nav-mini .nav-label { height: 1px; padding: 0; margin: 12px 14px; background: var(--line); }
  body.nav-mini .nav-cta { margin: 10px 12px 4px; padding: 9px 0; }
  body.nav-mini .nav-menu { overflow: visible; padding: 4px 12px 14px; }
  body.nav-mini .nav-link { justify-content: center; padding: 10px 0; }
  body.nav-mini .nav-count { position: absolute; top: 1px; right: 2px; min-width: 18px; height: 16px; font-size: 10px; padding: 0 4px; }
  body.nav-mini .nav-user { flex-direction: column; margin: 0 10px 12px; }
  body.nav-mini .nav-group { position: relative; }
  body.nav-mini .nav-group .nav-sub, body.nav-mini .nav-group.open .nav-sub { display: none; }
  body.nav-mini .nav-group:hover .nav-sub, body.nav-mini .nav-group:focus-within .nav-sub {
    display: block; position: absolute; left: calc(100% + 10px); top: -6px; min-width: 220px; margin: 0; padding: 8px; border: 1px solid var(--line);
    background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 1100; }
  body.nav-mini .nav-group:hover .nav-sub::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 12px; }
  body.nav-mini .nav-sub-title { display: block; font-weight: 800; padding: 4px 10px 8px; font-size: 13px; color: var(--ink); }
}
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); width: 280px; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 1035; }
}

/* Bell / to-do */
.bell { position: relative; }
.bell-dot { position: absolute; top: 0; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.dropdown-item { border-radius: 8px; padding: 7px 10px; }
.todo-menu { width: 300px; }
.todo-head { font-weight: 800; padding: 6px 10px 8px; }
.todo-empty { color: var(--muted); padding: 6px 10px 12px; }
.todo-menu .dropdown-item { display: flex; gap: 10px; align-items: center; white-space: normal; }
.todo-menu .dropdown-item i { font-size: 17px; }

/* ---------- Cards / panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px 0; }
.panel-head h2 { font-size: 15.5px; font-weight: 800; margin: 0; }
.panel-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.panel-head.slim { padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 16px 20px 20px; }
.panel.tight .panel-body { padding: 16px 18px; }
.panel-title { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.section-title { font-size: 14px; font-weight: 800; margin: 6px 0 12px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state h2 { color: var(--ink); font-weight: 800; font-size: 20px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 20px; }
.kv small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.kv b { font-weight: 700; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; position: relative; box-shadow: var(--shadow); display: flex; flex-direction: column; color: inherit; }
a.stat:hover { border-color: #c9d9fb; color: inherit; }
.stat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; margin-bottom: 12px; background: var(--blue-soft); color: var(--blue); }
.stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.stat .l { color: var(--muted); font-weight: 600; font-size: 12.5px; margin-top: 3px; }
.stat .dot { position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; }
.stat.money .v { font-size: 20px; }
.ic.green { background: #dcfce7; color: #15803d; } .ic.amber { background: #fef3c7; color: #b45309; } .ic.red { background: #fee2e2; color: #b91c1c; }
.ic.violet { background: #ede9fe; color: #6d28d9; } .ic.teal { background: #cffafe; color: #0e7490; } .ic.slate { background: #eef2f7; color: #475569; }
.mywork .panel-body { padding-top: 12px; }
.mywork .stat { box-shadow: none; background: #f8fafd; }

/* Room status bar (dashboard) */
.occ-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: #eef2f7; margin: 6px 0 14px; }
.occ-bar span { display: block; height: 100%; }
.occ-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.occ-legend a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 13px; background: #fff; }
.occ-legend a:hover, .occ-legend a.on { border-color: #a9c3f8; background: var(--blue-soft); }
.occ-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.occ-legend b { font-size: 15px; color: var(--ink); }

/* Status badges */
.badge-st { --c: var(--st-blocked); display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 11%, white); }
.badge-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-available { --c: var(--st-available); } .st-reserved { --c: var(--st-reserved); } .st-occupied { --c: var(--st-occupied); }
.st-partial { --c: var(--st-partial); } .st-cleaning { --c: var(--st-cleaning); } .st-maintenance { --c: var(--st-maintenance); } .st-blocked { --c: var(--st-blocked); }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; font-size: 13.5px; color: var(--ink); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .7rem .7rem; border-bottom-color: var(--line); }
.table thead th { color: var(--muted); font-weight: 700; font-size: 12.5px; white-space: nowrap; border-bottom: 1px solid var(--line-2) !important; background: transparent; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fafd; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot th { border-top: 1px solid var(--line-2); font-weight: 800; }
.table-bordered > :not(caption) > * > * { border-color: var(--line); }
.table-light { --bs-table-bg: #f6f8fb; }
.tbl-soft thead th { background: #f6f8fb; color: var(--ink-2); font-size: 12.5px; }
.tbl-soft td { font-size: 13px; }
.tbl-soft .empty td { color: var(--muted); text-align: center; padding: 16px; font-size: 12.5px; }
div.dataTables_wrapper div.dataTables_filter input { border-radius: var(--radius); border: 1px solid var(--line-2); padding: 6px 12px; margin-left: 0; min-width: 220px; }
div.dataTables_wrapper div.dataTables_info { color: var(--muted); font-size: 13px; }
.dt-buttons .btn { padding: 5px 11px; font-size: 12.5px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); box-shadow: none; }
.dt-buttons .btn:hover { background: #f3f6fb; }
.page-link { border-radius: 8px !important; margin: 0 2px; border-color: var(--line); color: var(--ink-2); }
.active > .page-link { background: var(--blue); border-color: var(--blue); }

/* Line items */
.items-table input, .items-table select { min-width: 70px; }
.items-table td { vertical-align: middle; }
.amt { font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.avail-msg { font-size: 12px; font-weight: 600; }
.avail-msg.ok { color: var(--st-available); } .avail-msg.bad { color: var(--st-occupied); }
.totals { max-width: 360px; margin-left: auto; }
.totals .r { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.totals .r.grand { font-size: 17px; font-weight: 800; border-bottom: 0; }
.guest-in { display: flex; gap: 4px; align-items: center; }
.guest-in input { width: 54px; }
.guest-in span { font-size: 11px; color: var(--muted); }
.extra-note { font-size: 11px; color: var(--st-reserved); font-weight: 700; }
.sched-tag { display: inline-block; font-size: 11.5px; background: var(--blue-soft); color: var(--blue-dark); border-radius: 12px; padding: 1px 9px; margin-top: 3px; font-weight: 600; }
.c-days-btn { white-space: nowrap; font-weight: 600; }
.c-days-btn small { font-weight: 500; }

/* Filters & tabs */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; padding: 14px; background: #f8fafd; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px !important; }
.report-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.report-tabs a { padding: 6px 14px; border-radius: 20px; background: #f3f6fb; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.report-tabs a:hover { background: #e9eef6; }
.report-tabs a.active { background: var(--blue); color: #fff; }

/* ---------- Booking & quotation screens ---------- */
.form-row-h { display: grid; grid-template-columns: 100px 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.form-row-h .form-label { margin: 0; }
@media (max-width: 575.98px) { .form-row-h { grid-template-columns: 1fr; gap: 4px; } }
.type-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.type-bar > .form-label { margin: 0 8px 0 2px; font-size: 14px; }
.type-opt { display: flex; align-items: center; gap: 14px; min-width: 240px; padding: 12px 18px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; color: var(--ink); transition: all .15s; }
.type-opt i { font-size: 22px; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: #f3f6fb; color: var(--ink-2); }
.type-opt b { display: block; font-size: 14.5px; }
.type-opt small { color: var(--muted); font-size: 12px; }
.type-opt:hover { border-color: #a9c3f8; }
.type-opt.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.type-opt.active i { background: var(--blue); color: #fff; }
@media (max-width: 575.98px) { .type-opt { min-width: 0; flex: 1; padding: 10px 12px; } .type-opt i { display: none; } }
.room-filter { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) auto auto; gap: 10px; align-items: end; margin-bottom: 16px; }
@media (max-width: 767.98px) { .room-filter { grid-template-columns: 1fr 1fr; } }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; }
.pick { position: relative; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; }
.pick:hover { border-color: #a9c3f8; transform: translateY(-2px); box-shadow: var(--shadow); }
.pick.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.pick.off { cursor: not-allowed; opacity: .55; transform: none; }
.pick img { width: 100%; height: 108px; object-fit: cover; display: block; background: #eef3fa; }
.pick .tick { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .95); border: 1.5px solid #c5d0e0; display: grid; place-items: center; color: #fff; font-size: 14px; }
.pick.selected .tick { background: var(--blue); border-color: var(--blue); }
.pick .bd { padding: 9px 11px 11px; }
.pick .row1 { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.pick .rno { font-weight: 800; font-size: 14px; }
.pick .cat { font-size: 12px; color: var(--muted); font-weight: 600; }
.pick .cap { font-size: 12px; color: var(--ink-2); margin: 2px 0 4px; }
.pick .occ { font-size: 11.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pick .occ i { color: var(--muted); }
.pick .price { font-weight: 800; margin-top: 6px; font-size: 14.5px; }
.pick .price small { font-weight: 600; color: var(--muted); }
.pick .badge-st { font-size: 10.5px; padding: 1px 8px; }
.pick .badge-st::before { display: none; }
#board.flash { outline: 3px solid rgba(37, 99, 235, .3); outline-offset: 6px; border-radius: 12px; }
.sum-box .r { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px; border-bottom: 1px solid #f0f3f8; font-size: 13.5px; }
.sum-box .r b { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-box .r.sub { background: #f8fafd; font-weight: 800; }
.sum-box .r.grand { background: var(--blue-soft); color: var(--blue-dark); font-size: 17px; font-weight: 800; padding: 12px 18px; }
.sum-box .r.bal { font-weight: 800; font-size: 15px; border-bottom: 0; padding: 12px 18px; }
.sum-box .r.bal span:last-child { color: #ef4444; }
.sum-box .disc-in { display: flex; gap: 6px; align-items: center; }
.sum-box .disc-in input { width: 84px; text-align: right; }
.sum-box .disc-in select { width: 62px; }
.sum-box input.adv { width: 130px; text-align: right; }
.side-sticky { position: sticky; top: 76px; }
@media (max-width: 1199.98px) { .side-sticky { position: static; } }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.action-bar .btn { min-width: 118px; }
.btn-stack .btn { width: 100%; margin-bottom: 8px; padding: 9px; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 8px; }
.day-chip { position: relative; cursor: pointer; margin: 0; }
.day-chip input { position: absolute; opacity: 0; }
.day-chip span { display: block; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px 11px; background: #fff; }
.day-chip b { display: block; font-size: 13.5px; }
.day-chip small { color: var(--muted); font-size: 12px; }
.day-chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.day-chip input:checked + span b { color: var(--blue-dark); }
.day-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Dashboard room board ---------- */
.board-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.room-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.room-card { --c: var(--st-available); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; overflow: hidden; }
.room-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.room-card .top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.room-card .no { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.room-card .cat { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.room-card .state { font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 11%, white); padding: 1px 9px; border-radius: 20px; }
.beds { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 6px; }
.bed { width: 16px; height: 10px; border-radius: 3px; border: 1.5px solid var(--c); }
.bed.on { background: var(--c); }
.room-card .counts { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.room-card .guest { font-size: 12.5px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 600; }
.room-card .guest small { color: var(--muted); display: block; font-weight: 500; }
.room-card .quick { margin-top: 10px; }
.room-card .quick .btn { padding: 2px 9px; font-size: 12px; }
.c-available { --c: var(--st-available); } .c-reserved { --c: var(--st-reserved); } .c-occupied { --c: var(--st-occupied); }
.c-partial { --c: var(--st-partial); } .c-cleaning { --c: var(--st-cleaning); } .c-maintenance { --c: var(--st-maintenance); } .c-blocked { --c: var(--st-blocked); }

/* ---------- Users ---------- */
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 575.98px) { .role-pick { grid-template-columns: 1fr; } }
.role-opt { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.role-opt input { margin-top: 4px; }
.role-opt b { display: block; }
.role-opt small { color: var(--muted); }
.role-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.preset-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .avatar { width: 34px; height: 34px; }

/* ---------- Modals, Select2, loader ---------- */
.modal-content { border-radius: 16px; border: 0; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom-color: var(--line); padding: 16px 20px; }
.modal-footer { border-top-color: var(--line); }
.modal-title { font-weight: 800; font-size: 16px; }
.select2-container--bootstrap-5 .select2-selection { border-color: var(--line-2); border-radius: var(--radius); min-height: 40px; }
.select2-container--bootstrap-5.select2-container--focus .select2-selection { border-color: #8db0f6; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.select2-container--bootstrap-5 .select2-dropdown { border-color: var(--line-2); border-radius: var(--radius); }
.swal2-popup { border-radius: 16px !important; font-family: inherit !important; }
#loader { position: fixed; inset: 0; background: rgba(245, 247, 251, .55); z-index: 2000; display: none; align-items: center; justify-content: center; }
#loader.show { display: flex; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login-side { position: relative; overflow: hidden; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 500px at -10% -10%, #60a5fa 0%, transparent 60%), linear-gradient(150deg, #1d4ed8 0%, #1e3a8a 100%); }
.login-side .brand { padding: 0; }
.login-side .brand-name { color: #fff; }
.login-side h1 { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 14ch; }
.login-side p { color: #dbe7ff; max-width: 40ch; font-size: 15px; }
.login-side small { color: #bcd0f7; }
.login-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.login-feats span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.login-form { display: grid; place-items: center; padding: 30px; }
.login-form form { width: 100%; max-width: 360px; }
@media (max-width: 767.98px) { .login-wrap { grid-template-columns: 1fr; } .login-side { padding: 28px; } .login-side h1 { font-size: 26px; } .login-feats { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .sidebar, .topbar, .no-print, .dt-buttons, .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info, .filters { display: none !important; }
  .main { margin: 0 !important; } .content { padding: 0; } .panel { border: 0; box-shadow: none; } body { background: #fff; }
}
