:root {
    --bg: #f7f9ff;
    --surface: #ffffff;
    --surface-soft: #edf4ff;
    --surface-panel: #f8fafc;
    --ink: #141c24;
    --muted: #64748b;
    --line: #dbe3ef;
    --line-strong: #bdc9c6;
    --brand: #0f766e;
    --brand-dark: #005c55;
    --brand-soft: #d9fbf6;
    --accent: #b45309;
    --accent-soft: #ffedd5;
    --danger: #ba1a1a;
    --danger-soft: #ffdad6;
    --nav: #101820;
    --nav-2: #172331;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(16, 24, 32, .08);
}

.inventory-lifecycle-context{display:grid;grid-template-columns:200px 150px 150px 190px minmax(220px,1fr);gap:10px;padding:12px 14px;border-bottom:1px solid #d7e0eb;background:#f8fafc}.inventory-lifecycle-context label,.inventory-document-grid label{display:grid;gap:4px}.inventory-lifecycle-context span,.inventory-document-grid span{color:#5f6f86;font-size:11px;font-weight:800;text-transform:uppercase}.inventory-lifecycle-table{min-height:340px}.inventory-lifecycle-table table{margin:0}.inventory-lifecycle-table th{font-size:11px;color:#62728a;text-transform:uppercase}.inventory-lifecycle-table td small{display:block;color:#718096;margin-top:3px}.inventory-document-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #d7e0eb;background:#f8fafc}.inventory-document-grid .span-2{grid-column:span 2}.inventory-document-lines{margin-top:14px;border:1px solid #d7e0eb}.inventory-document-lines>div:first-child{padding:10px 12px;border-bottom:1px solid #d7e0eb}.inventory-document-lines table{margin:0;min-width:1050px}.inventory-document-lines th{font-size:10px;text-transform:uppercase;color:#62728a}.inventory-activity-row{display:grid;grid-template-columns:150px 1fr auto;gap:10px;padding:8px 0;border-bottom:1px solid #e2e8f0}.inventory-activity-row small{color:#718096}@media(max-width:1000px){.inventory-lifecycle-context{grid-template-columns:1fr 1fr 1fr}.inventory-lifecycle-context .grow{grid-column:span 2}.inventory-document-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.inventory-lifecycle-context,.inventory-document-grid{grid-template-columns:1fr}.inventory-lifecycle-context .grow,.inventory-document-grid .span-2{grid-column:auto}.inventory-register-header{align-items:flex-start;flex-direction:column}.inventory-activity-row{grid-template-columns:1fr}}

.banquet-void-summary{display:flex;gap:11px;align-items:flex-start;margin-top:12px;padding:12px 14px;border:1px solid #f4a3a3;background:#fff5f5;color:#7f1d1d}.banquet-void-summary>i{font-size:20px}.banquet-void-summary strong,.banquet-void-summary span,.banquet-void-summary small{display:block}.banquet-void-summary span{margin-top:2px}.banquet-void-summary small{margin-top:4px;color:#991b1b}.banquet-void-confirm p{color:#526178}.banquet-void-impact{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 16px}.banquet-void-impact span{padding:9px;border:1px solid #d7e0eb;background:#f8fafc;color:#607087;font-size:11px;font-weight:700;text-transform:uppercase}.banquet-void-impact strong{display:block;margin-top:3px;color:#172033;font-size:14px;text-transform:none}@media(max-width:520px){.banquet-void-impact{grid-template-columns:1fr}}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--nav);
    color: #e9f1fd;
    padding: 16px 12px;
    overflow-y: auto;
}
.platform-sidebar {
    background: var(--nav);
    padding: 16px 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px;
    margin-bottom: 8px;
}
.platform-sidebar .brand {
    gap: 10px;
    padding: 8px;
    margin-bottom: 8px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: #ffffff;
}
.platform-sidebar .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: #ffffff;
}
.brand-mark img { width: 22px; height: 22px; }
.brand strong { display: block; font-size: 14px; font-weight: 750; letter-spacing: 0; }
.brand small { display: block; color: #9fb1c5; font-size: 11px; line-height: 14px; }
.platform-sidebar .brand strong {
    color: #ffffff;
    font-size: 14px;
    line-height: normal;
    font-weight: 750;
}
.platform-sidebar .brand small {
    margin-top: 0;
    color: #9fb1c5;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 14px;
    text-transform: none;
}

.sidebar-nav { display: grid; gap: 6px; padding: 4px 0 16px; }
.platform-sidebar .sidebar-nav {
    gap: 6px;
    padding-top: 4px;
}
.sidebar-primary-links {
    display: grid;
    gap: 3px;
    margin-bottom: 3px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.sidebar-primary-links a {
    min-height: 42px;
    font-weight: 700;
}
.sidebar-group {
    display: grid;
    gap: 3px;
}
.sidebar-group-toggle {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    color: #9fb1c5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
}
.sidebar-group-toggle:hover {
    background: rgba(255,255,255,.08);
    color: #ffffff;
}
.sidebar-group-toggle i {
    font-size: 11px;
    transition: transform .18s ease;
}
.sidebar-group.open .sidebar-group-toggle {
    color: #ffffff;
    background: rgba(255,255,255,.07);
}
.sidebar-group.open .sidebar-group-toggle i {
    transform: rotate(180deg);
}
.sidebar-group-links {
    display: none;
    gap: 3px;
}
.sidebar-group.open .sidebar-group-links {
    display: grid;
}
.sidebar-subgroup {
    display: grid;
    gap: 3px;
    margin-top: 2px;
}
.sidebar-subgroup-toggle {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border: 0;
    border-radius: var(--radius);
    background: rgba(20,184,166,.11);
    color: #cbd8e6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: left;
}
.sidebar-subgroup-toggle:hover {
    background: rgba(20,184,166,.18);
    color: #ffffff;
}
.sidebar-subgroup-toggle i {
    font-size: 11px;
    transition: transform .18s ease;
}
.sidebar-subgroup.open .sidebar-subgroup-toggle {
    color: #ffffff;
    background: rgba(20,184,166,.2);
}
.sidebar-subgroup.open .sidebar-subgroup-toggle i {
    transform: rotate(180deg);
}
.sidebar-subgroup-links {
    display: none;
    gap: 3px;
    padding-left: 8px;
    border-left: 1px solid rgba(20,184,166,.26);
    margin-left: 8px;
}
.sidebar-subgroup.open .sidebar-subgroup-links {
    display: grid;
}
.sidebar-subgroup-separator {
    height: 1px;
    margin: 6px 10px;
    background: rgba(255,255,255,.1);
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: #cbd8e6;
    font-size: 13px;
    font-weight: 550;
}
.platform-sidebar .sidebar-nav a {
    min-height: 36px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: #cbd8e6;
    font-size: 13px;
    font-weight: 550;
}
.sidebar-nav a span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255,255,255,.06);
    color: #9fb1c5;
    font-size: 10px;
    font-weight: 750;
}
.sidebar-nav a span .bi {
    color: currentColor;
    font-size: 14px;
    line-height: 1;
}
.platform-sidebar .sidebar-nav a span.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    color: var(--inverse-on-surface);
}
.platform-sidebar .nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.platform-sidebar .nav-icon svg * {
    fill: none !important;
    stroke: currentColor !important;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #ffffff; }
.platform-sidebar .sidebar-nav a:hover {
    background: rgba(255,255,255,.08);
}
.sidebar-nav a.active {
    background: rgba(15,118,110,.24);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--brand);
}
.sidebar-nav a.active span { background: var(--brand); color: #ffffff; }
.platform-sidebar .sidebar-nav a.active {
    background: rgba(15,118,110,.24);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--brand);
}
.platform-sidebar .sidebar-nav a.active span.nav-icon {
    background: transparent;
    color: #ffffff;
}
.nav-section {
    margin: 14px 8px 5px;
    color: #7f93aa;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px 8px 4px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.platform-sidebar .sidebar-user {
    padding: 16px 12px 0;
    border-top-color: rgba(255,255,255,.1);
}
.sidebar-user > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.sidebar-user strong { display: block; font-size: 12px; }
.sidebar-user small { display: block; color: #9fb1c5; font-size: 11px; text-transform: capitalize; }

.main { min-width: 0; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.page-heading h1 {
    margin: 0;
    font-size: 22px;
    line-height: 28px;
    font-weight: 750;
    letter-spacing: 0;
}
.page-heading span,
.topbar small {
    color: var(--muted);
    font-size: 12px;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.property-switcher {
    min-width: 210px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.property-switcher-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    text-align: left;
}
.property-switcher-button i {
    color: var(--muted);
    font-size: 12px;
}
.property-switcher-dropdown .dropdown-menu {
    min-width: 290px;
}
.property-switcher small,
.property-switcher strong { display: block; }
.property-switcher strong { color: var(--ink); font-size: 13px; line-height: 17px; }
.property-switcher-menu {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.property-switcher-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    border-radius: 8px;
}
.property-switcher-option span,
.property-switcher-option strong,
.property-switcher-option small {
    display: block;
}
.property-switcher-option strong {
    color: var(--ink);
    font-size: 13px;
    line-height: 17px;
}
.property-switcher-option small {
    color: var(--muted);
    font-size: 11px;
}
.property-switcher-option.active,
.property-switcher-option:disabled {
    background: var(--brand-soft);
    color: var(--brand-dark);
    opacity: 1;
}
.property-switcher-manage {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    border-radius: 8px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 750;
}
.topbar-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
}
.profile-menu-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--ink);
}
.profile-menu-button > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.profile-menu-button strong {
    max-width: 150px;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    line-height: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-menu-button i {
    color: var(--muted);
    font-size: 12px;
}
.profile-dropdown {
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
}
.profile-dropdown .dropdown-item i {
    color: var(--brand);
}
.profile-dropdown .dropdown-item.text-danger i {
    color: #dc2626;
}

.content {
    padding: 24px;
    max-width: 1560px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.stat-card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.stat-card {
    min-height: 112px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.stat-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.stat-card strong {
    display: block;
    margin-top: 10px;
    color: #0f172a;
    font-size: 30px;
    line-height: 34px;
    font-weight: 750;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.panel { padding: 16px; }
.panel + .panel { margin-top: 16px; }
.panel h2,
.panel .h5 {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 22px;
    font-weight: 750;
}
.mini-panel {
    min-height: 78px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-panel);
}
.mini-panel strong,
.mini-panel span {
    display: block;
}
.mini-panel strong {
    color: var(--ink);
    font-size: 13px;
}
.mini-panel span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.tenant-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(180px, 240px) minmax(160px, 200px) 120px auto;
    gap: 12px;
    align-items: end;
}
.plan-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(180px, 230px) minmax(160px, 200px) 120px auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.audit-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(140px, 1fr)) minmax(120px, .7fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.reservation-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, .8fr)) minmax(170px, 1fr) minmax(88px, .45fr) 104px;
    gap: 10px;
    align-items: end;
}

.reservation-filter-grid [data-reservations-reset] {
    min-height: 46px;
    padding-right: 12px;
    padding-left: 12px;
    white-space: nowrap;
}
.tenant-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
[data-tenant-list] {
    position: relative;
    transition: opacity .18s ease;
}
[data-tenant-list].is-loading {
    opacity: .58;
}
.action-button-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}
.icon-action {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.icon-action:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: rgba(15, 131, 120, .06);
    transform: translateY(-1px);
}
.icon-action-primary {
    border-color: #2563eb;
    color: #2563eb;
}
.icon-action-primary:hover {
    background: rgba(37, 99, 235, .08);
    border-color: #2563eb;
    color: #1d4ed8;
}
.icon-action-danger {
    border-color: #ef4444;
    color: #dc2626;
}
.icon-action-danger:hover {
    background: rgba(220, 38, 38, .08);
    border-color: #dc2626;
    color: #b91c1c;
}
.detail-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.limit-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    border-radius: 7px;
    background: #eaf1ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}
.profile-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.profile-summary > span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--brand);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}
.profile-summary h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    line-height: 24px;
    font-weight: 800;
}
.profile-summary p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}
.builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: start;
}
.builder-form-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.builder-summary {
    display: grid;
    gap: 12px;
}
.builder-summary-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #1e293b;
    color: #ffffff;
}
.builder-summary-card > i {
    display: block;
    margin-bottom: 18px;
    color: #5eead4;
    font-size: 38px;
}
.builder-summary-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 800;
}
.builder-summary-card p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 24px;
}
.builder-summary-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}
.builder-summary-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
}
.builder-summary-list i {
    color: #5eead4;
}
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.pagination-bar > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.pagination .page-link {
    color: var(--brand-dark);
    border-color: var(--line);
    font-size: 12px;
    font-weight: 700;
}
.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.table-responsive { border-radius: var(--radius); }
.table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.table th {
    padding: 10px 12px;
    background: var(--surface-panel);
    color: #475569;
    border-color: var(--line);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.table td {
    min-height: 40px;
    padding: 10px 12px;
    border-color: var(--line);
    color: #1f2937;
    vertical-align: middle;
}
.table tbody tr:hover td { background: #f1f5f9; }

.badge,
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-transform: capitalize;
}
.badge-soft {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border: 1px solid #a7e8df;
}
.badge-soft::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-soft-danger {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.badge-soft-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.badge-soft-muted {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.folio-payment-void-row td {
    background: #fff7f7;
    color: #64748b;
}

.report-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    border: 1px solid #a7e8df;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-transform: capitalize;
}
.report-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.report-status-paid,
.report-status-active {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}
.report-status-issued,
.report-status-trial,
.report-status-waiting_hotel,
.report-status-normal {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}
.report-status-in_progress,
.report-status-technical,
.report-status-account,
.report-status-feature_request,
.report-status-other {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.report-status-resolved,
.report-status-low {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}
.report-status-draft {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}
.report-status-void,
.report-status-voided,
.report-status-cancelled,
.report-status-expired,
.report-status-closed,
.report-status-high,
.report-status-urgent {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
.report-status-past_due {
    background: #ffedd5;
    border-color: #fdba74;
    color: #9a3412;
}
.report-status-inactive {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.form-label {
    margin-bottom: 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}
.form-control,
.form-select {
    min-height: 38px;
    border-color: #cbd5e1;
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 13px;
}
.form-control-sm,
.form-select-sm {
    min-height: 32px;
    font-size: 12px;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15,118,110,.14);
}

.btn {
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
}
.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
}
.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-color: var(--ink);
}

.empty-state {
    padding: 32px 16px !important;
    text-align: center;
    color: var(--muted) !important;
}
.text-secondary { color: var(--muted) !important; }
.data-value { font-variant-numeric: tabular-nums; font-weight: 750; }
.section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.console-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.console-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.console-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 32px;
    font-weight: 750;
}
.console-header p {
    margin: 4px 0 0;
    color: var(--muted);
}
.console-date {
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.console-date span,
.console-date strong {
    display: block;
}
.console-date span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}
.console-date strong {
    margin-top: 2px;
    font-size: 13px;
}
.console-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.console-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
}
.console-layout .span-2 { grid-column: span 2; }
.console-card,
.metric-card,
.quick-action-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.console-card,
.quick-action-panel {
    padding: 16px;
}
.metric-card {
    min-height: 160px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.metric-card-wide { grid-column: span 2; }
.metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.metric-top span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.metric-top em {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}
.metric-card strong {
    display: block;
    color: #0f172a;
    font-size: 32px;
    line-height: 38px;
    font-weight: 800;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.settings-card {
    max-width: 980px;
}
.settings-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.settings-card-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 26px;
    font-weight: 800;
}
.settings-card-header p {
    margin: 4px 0 0;
    color: var(--muted);
}
.settings-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: #071425;
    color: #fff;
    font-size: 22px;
}
.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
}
.metric-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}
.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.status-strip span,
.status-strip a {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-panel);
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.status-strip a:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.progress-bar-lite {
    height: 7px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}
.progress-bar-lite span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand);
}
.progress-bar-lite.accent span { background: var(--accent); }
.progress-bar-lite.danger span { background: #dc2626; }
.spark-bars,
.projection-bars {
    display: flex;
    align-items: end;
    gap: 4px;
}
.spark-bars {
    height: 46px;
    margin-top: 16px;
}
.spark-bars i,
.projection-bars i {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: rgba(15,118,110,.18);
}
.spark-bars i:nth-last-child(-n+3),
.projection-bars i:nth-last-child(-n+3) {
    background: rgba(180,83,9,.28);
}
.spark-bars i:last-child,
.projection-bars i:nth-child(3) {
    background: var(--brand);
}
.quick-action-panel {
    background: #101820;
    color: #ffffff;
}
.quick-action-panel .toolbar,
.quick-action-panel .text-secondary {
    color: rgba(255,255,255,.74) !important;
}
.console-action {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.09);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}
.console-action:hover {
    background: rgba(255,255,255,.16);
    color: #ffffff;
}
.console-action.primary { background: var(--brand); }
.console-action i {
    width: 18px;
    color: currentColor;
    font-size: 15px;
    line-height: 1;
}
.dashboard-primary-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f3fbf9 58%, #fff7ed 100%);
}
.dashboard-primary-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -54px;
    width: 160px;
    height: 160px;
    border: 30px solid rgba(15, 118, 110, .08);
    border-radius: 50%;
    pointer-events: none;
}
.dashboard-layout {
    margin-top: 2px;
}
.dashboard-kpi-grid .metric-card {
    min-height: 172px;
}
.dashboard-command-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.dashboard-command-strip > div {
    min-width: 0;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.dashboard-command-strip span,
.dashboard-command-strip strong,
.dashboard-command-strip small {
    display: block;
}
.dashboard-command-strip span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.dashboard-command-strip strong {
    margin-top: 5px;
    color: var(--ink);
    font-size: 22px;
    line-height: 28px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}
.dashboard-command-strip small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}
.revenue-mix {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.revenue-mix div {
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.revenue-mix span,
.revenue-mix strong {
    display: block;
}
.revenue-mix span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.revenue-mix strong {
    margin-top: 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.activity-timeline {
    display: grid;
    gap: 0;
    max-height: 460px;
    overflow-y: auto;
}
.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.activity-item:last-child {
    border-bottom: 0;
}
.activity-item strong,
.activity-item span {
    display: block;
}
.activity-item strong {
    color: var(--ink);
    font-size: 13px;
}
.activity-item span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}
.admin-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.timeline-item {
    position: relative;
    padding: 0 0 18px 22px;
    border-left: 1px solid var(--line);
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item strong,
.timeline-item span,
.timeline-item small {
    display: block;
}
.timeline-item strong {
    color: var(--ink);
    font-size: 13px;
}
.timeline-item span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}
.timeline-item small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.hk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.hk-grid div {
    min-height: 84px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
    text-align: center;
}
.hk-grid strong,
.hk-grid span {
    display: block;
}
.hk-grid strong {
    color: var(--brand-dark);
    font-size: 24px;
    line-height: 30px;
    font-weight: 800;
}
.hk-grid span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.projection-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.projection-bars {
    height: 142px;
}
.dashboard-projection-bars {
    align-items: end;
    gap: 8px;
    height: 128px;
    padding: 12px 8px 0;
    border: 1px solid #e1e8f2;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.dashboard-projection-bars i {
    min-width: 18px;
    transition: height .2s ease, background-color .2s ease;
}
.dashboard-projection-bars i:hover {
    background: var(--accent);
}
.projection-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}
.dashboard-insight-card {
    overflow: hidden;
    padding: 0;
}
.dashboard-insight-heading {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
}
.dashboard-insight-heading .console-eyebrow {
    display: block;
    margin-bottom: 3px;
}
.dashboard-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
}
.dashboard-line-chart,
.dashboard-revenue-chart {
    min-width: 0;
    padding: 20px;
}
.dashboard-revenue-chart {
    border-left: 1px solid var(--line);
    background: #fbfcfe;
}
.dashboard-chart-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
}
.dashboard-chart-title h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
}
.dashboard-chart-title p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.dashboard-chart-title > strong {
    color: var(--brand-dark);
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}
.dashboard-chart-canvas {
    position: relative;
    margin-top: 8px;
    padding-left: 32px;
}
.dashboard-chart-canvas svg {
    display: block;
    width: 100%;
    height: 205px;
    overflow: visible;
}
.dashboard-chart-scale {
    position: absolute;
    inset: 21px auto 27px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 750;
}
.chart-grid-line {
    stroke: #dbe4ee;
    stroke-width: 1;
    stroke-dasharray: 4 5;
}
.chart-area {
    fill: rgba(15, 118, 110, .1);
}
.chart-line {
    fill: none;
    stroke: var(--brand);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chart-point {
    fill: #ffffff;
    stroke: var(--brand);
    stroke-width: 4;
}
.dashboard-chart-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-top: -7px;
    text-align: center;
}
.dashboard-chart-labels strong,
.dashboard-chart-labels small {
    display: block;
}
.dashboard-chart-labels strong {
    color: var(--ink);
    font-size: 10px;
    text-transform: uppercase;
}
.dashboard-chart-labels small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}
.dashboard-donut-layout {
    display: grid;
    justify-items: center;
    gap: 20px;
    margin-top: 8px;
}
.dashboard-donut {
    display: grid;
    width: 178px;
    aspect-ratio: 1;
    padding: 24px;
    border-radius: 50%;
    background: var(--donut-fill);
    place-items: center;
}
.dashboard-donut::before {
    content: "";
    grid-area: 1 / 1;
    width: 112px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, .16);
}
.dashboard-donut > div {
    z-index: 1;
    grid-area: 1 / 1;
    min-width: 94px;
    text-align: center;
}
.dashboard-donut small,
.dashboard-donut strong {
    display: block;
}
.dashboard-donut small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.dashboard-donut strong {
    margin-top: 4px;
    color: var(--ink);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.dashboard-chart-legend {
    display: grid;
    width: 100%;
    gap: 9px;
}
.dashboard-chart-legend > div {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
}
.dashboard-chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--legend-color);
}
.dashboard-chart-legend span strong,
.dashboard-chart-legend span small {
    display: block;
}
.dashboard-chart-legend span strong {
    color: var(--ink);
    font-size: 11px;
}
.dashboard-chart-legend span small {
    color: var(--muted);
    font-size: 9px;
}
.dashboard-chart-legend b {
    color: var(--ink);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.dashboard-room-status {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    background: #ffffff;
}
.dashboard-room-status a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 13px 18px;
    border-right: 1px solid var(--line);
    color: var(--muted);
}
.dashboard-room-status a:last-child { border-right: 0; }
.dashboard-room-status a:hover { background: #f8fafc; }
.dashboard-room-status span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}
.dashboard-room-status strong {
    color: var(--ink);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
    .dashboard-chart-grid { grid-template-columns: 1fr; }
    .dashboard-revenue-chart {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .dashboard-donut-layout {
        grid-template-columns: 178px minmax(0, 1fr);
        justify-items: stretch;
        align-items: center;
    }
}
.alert-list {
    display: grid;
    gap: 10px;
}
.alert-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.alert-row strong,
.alert-row span {
    display: block;
}
.alert-row strong {
    font-size: 13px;
}
.alert-row span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    text-transform: capitalize;
}
.dashboard-stack-list {
    display: grid;
    gap: 12px;
}
.stack-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
}
.stack-row strong,
.stack-row span {
    display: block;
}
.stack-row strong {
    color: var(--ink);
    font-size: 13px;
}
.stack-row span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}
.stack-row em {
    color: var(--brand-dark);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}
.stack-row .progress-bar-lite {
    grid-column: 1 / -1;
    margin-top: 0;
}
.department-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.department-grid a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
    color: var(--ink);
}
.department-grid a:hover {
    border-color: rgba(15, 118, 110, .35);
    background: #f0fdfa;
    color: var(--ink);
}
.department-grid i {
    grid-row: span 3;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e6f7f4;
    color: var(--brand-dark);
}
.department-grid span,
.department-grid strong,
.department-grid small {
    display: block;
    min-width: 0;
}
.department-grid span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.department-grid strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    line-height: 24px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.department-grid small {
    color: var(--muted);
    font-size: 11px;
}
.ops-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--line);
}
.ops-tabs span {
    padding: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.ops-tabs .active {
    color: var(--brand-dark);
    border-bottom: 2px solid var(--brand-dark);
}
.ops-split,
.frontdesk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
}
.frontdesk-layout {
    grid-template-columns: 390px minmax(0, 1fr);
}
.ops-main {
    min-width: 0;
}
.ops-side {
    display: grid;
    gap: 16px;
}
.ops-table .guest-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.guest-cell > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
}
.guest-cell strong,
.guest-cell small {
    display: block;
}
.guest-cell small {
    color: var(--muted);
    font-size: 11px;
}
.availability-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.availability-row strong,
.availability-row span {
    display: block;
}
.availability-row strong { font-size: 13px; }
.availability-row span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.availability-row em {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}
.arrival-list {
    display: grid;
    gap: 10px;
}
.arrival-card {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.arrival-card strong,
.arrival-card span,
.arrival-card small {
    display: block;
}
.arrival-card strong { font-size: 13px; }
.arrival-card span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.arrival-card small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}
.arrival-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 12px;
}
.folio-actions {
    display: grid;
    gap: 8px;
    min-width: 440px;
}
.mini-form {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) 96px auto;
    gap: 6px;
}
.room-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-panel);
}
.room-strip strong,
.room-strip span {
    display: block;
}
.room-strip strong {
    color: var(--brand-dark);
    font-size: 20px;
}

.front-office-control-panel {
    margin-bottom: 14px;
}

.front-office-context-panel {
    min-width: 620px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.front-office-page-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
}

.front-office-header-field {
    min-width: 0;
}

.front-office-view-field {
    width: 220px;
}

.front-office-date-field {
    width: 210px;
}

.front-office-header-field .form-label {
    margin-bottom: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.front-office-reservation-link {
    min-height: 48px;
    padding-right: 15px;
    padding-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 750;
}

.front-office-controls {
    display: grid;
    grid-template-columns: minmax(140px, .8fr) minmax(160px, .9fr) minmax(150px, .8fr) minmax(220px, 1.2fr) 104px;
    gap: 10px;
    align-items: end;
}

.front-office-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.front-office-kpis .stat-card {
    min-height: 76px;
    padding: 12px 14px;
    justify-content: center;
    gap: 8px;
}

.front-office-kpis .stat-card span,
.front-office-kpis .stat-card strong {
    font-size: 12px;
    line-height: 16px;
}

.front-office-kpis .stat-card strong {
    margin-top: 0;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.front-office-room-board {
    position: relative;
    min-height: 520px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(#eef2f7 1px, transparent 1px),
        linear-gradient(90deg, #eef2f7 1px, transparent 1px),
        #f8fafc;
    background-size: 35px 35px;
}

.front-office-floor-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.front-office-floor-tabs button {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.front-office-floor-tabs button.active {
    border-color: #99f6e4;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.front-office-date-display-wrap {
    position: relative;
    cursor: pointer;
}

.front-office-date-display-wrap .form-control {
    padding-right: 40px;
    cursor: pointer;
}

.front-office-native-date-picker {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.front-office-native-date-picker::-webkit-calendar-picker-indicator {
    width: 44px;
    height: 100%;
    padding: 0;
    cursor: pointer;
}

.front-office-date-display-wrap i {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--ink);
    font-size: 14px;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 1;
}

.front-office-room-tile {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 88px;
    min-height: 76px;
    padding: 26px 8px 32px;
    border: 2px solid #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
    background: color-mix(in srgb, var(--room-type-color, #ffffff) 24%, #ffffff);
    color: var(--ink);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.front-office-room-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.front-office-room-tile strong {
    font-size: 13px;
    line-height: 1.1;
}

.room-tile-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.front-office-room-tile small,
.front-office-room-tile em,
.front-office-room-tile .room-guest {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.front-office-room-tile em {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: var(--brand-dark);
    font-style: normal;
    font-weight: 800;
}

.room-status-badge {
    position: absolute;
    top: 11px;
    right: 7px;
    max-width: calc(100% - 14px);
    padding: 2px 7px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.room-status-badge.status-clean {
    border-color: #86efac;
    background: var(--fo-clean-pill-color, #dcfce7);
    color: #166534;
}

.room-status-badge.status-inspected {
    border-color: #5eead4;
    background: #ccfbf1;
    color: #115e59;
}

.room-status-badge.status-dirty {
    border-color: #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.room-status-badge.status-ooo,
.room-status-badge.status-oos {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.room-due-checkout-badge {
    position: absolute;
    top: 11px;
    right: 7px;
    max-width: calc(100% - 14px);
    padding: 2px 7px;
    border: 1px solid #fb923c;
    border-radius: 5px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(154, 52, 18, 0.12);
}

.room-tile-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 28px;
    padding: 5px 7px;
    border-top: 1px solid rgba(15, 23, 42, 0.18);
    background: rgba(255, 255, 255, 0.45);
}

.room-tile-strip {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    border-radius: 6px 6px 0 0;
    background: var(--room-state-ribbon-color, var(--brand));
}

.front-office-room-tile.is-due-checkout {
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.16);
}

.room-icons {
    display: inline-flex;
    align-items: center;
    min-height: 14px;
    gap: 6px;
    color: var(--brand-dark);
    font-size: 15px;
}

.room-icons i {
    line-height: 1;
}

.front-office-timeline-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.front-office-stay-grid {
    max-height: min(68vh, 720px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.stay-grid-header,
.stay-grid-row {
    display: grid;
    grid-template-columns: 150px repeat(var(--stay-days), minmax(100px, 1fr));
    position: relative;
    min-width: 1050px;
}

.stay-grid-header {
    position: sticky;
    top: 0;
    z-index: 5;
}

.stay-room-head,
.stay-room-cell {
    position: sticky;
    left: 0;
    box-shadow: 4px 0 8px rgba(15, 23, 42, 0.06);
}

.stay-room-head {
    z-index: 6;
}

.stay-room-cell {
    z-index: 3;
    background: #ffffff;
}

.stay-room-head,
.stay-date-head,
.stay-room-cell,
.stay-day-cell {
    padding: 9px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stay-room-head,
.stay-date-head {
    background: #f1f5f9;
    color: #334155;
    font-weight: 850;
}

.stay-room-cell strong,
.stay-room-cell small {
    display: block;
}

.stay-room-cell small {
    color: var(--muted);
    font-size: 11px;
}

.stay-bar {
    z-index: 2;
    grid-row: 1;
    align-self: center;
    height: 28px;
    margin: 8px 4px;
    padding: 0 8px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #78716c;
    color: #ffffff;
    font-size: 12px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stay-bar.is-checked_in { background: #0284c7; }
.stay-bar.is-confirmed { background: #6b7d2d; }
.stay-bar.is-pending { background: #f59e0b; }

.front-office-inventory th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}

.front-office-detail {
    display: grid;
    gap: 8px;
}

.front-office-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.front-office-action-bar {
    justify-content: flex-start;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.front-office-room-modal-footer {
    display: block;
    padding: 10px 16px;
}

.front-office-room-modal-footer .front-office-action-bar {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.front-office-action-spacer {
    flex: 1 1 auto;
    min-width: 12px;
}

.front-office-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease;
}

.front-office-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.front-office-action-btn i {
    font-size: 14px;
}

.front-office-action-btn.action-checkin {
    background: #0f766e;
    color: #ffffff;
}

.front-office-action-btn.action-charge {
    background: #2563eb;
    color: #ffffff;
}

.front-office-action-btn.action-payment {
    background: #16a34a;
    color: #ffffff;
}

.front-office-action-btn.action-folio {
    background: #2563eb;
    color: #ffffff;
}

.front-office-action-btn.action-edit {
    background: #f59e0b;
    color: #111827;
}

.front-office-action-btn.action-checkout {
    background: #475569;
    color: #ffffff;
}

.front-office-action-btn.action-room-status {
    min-height: 36px;
    padding-inline: 11px;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.front-office-action-btn.action-secondary {
    min-height: 36px;
    padding-inline: 11px;
    border-color: #d7dce5;
    background: #ffffff;
    color: #334155;
}

.front-office-payment-modal {
    width: min(560px, calc(100vw - 28px));
}

.front-office-payment-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.front-office-payment-modal .swal2-title {
    display: none;
}

.fo-payment-form {
    display: grid;
    gap: 10px;
}

.fo-payment-form section {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.fo-payment-form h4 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.fo-payment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.fo-payment-form .form-control,
.fo-payment-form .form-select {
    width: 100%;
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: none;
    font-size: 14px;
}

.fo-payment-form .form-control,
.fo-payment-form .form-select {
    min-height: 40px;
    padding: 8px 10px;
}

.fo-payment-form textarea.form-control {
    min-height: 66px;
    resize: vertical;
}

.fo-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.fo-payment-balance {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.fo-payment-balance strong {
    color: var(--brand-dark);
}

.fo-payment-amount-input {
    font-weight: 800;
}

.fo-payment-amount-input:not([readonly]):focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.fo-payment-hint {
    margin: -2px 0 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.fo-payment-form label.fo-payment-inline-field {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.fo-payment-form label.fo-payment-inline-field .form-select {
    margin-top: 0;
}

@media (max-width: 560px) {
    .fo-payment-form label.fo-payment-inline-field {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Property dashboard: one clear summary, analytics first, operational detail second. */
.dashboard-property-kpis {
    gap: 14px;
    margin-bottom: 18px;
}
.dashboard-property-kpis .metric-card {
    min-height: 164px;
    padding: 18px 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .035);
}
.dashboard-property-kpis .metric-card > strong small {
    display: inline;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.dashboard-property-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}
.dashboard-property-layout .dashboard-insight-card {
    order: -1;
    grid-column: 1 / -1;
}
.dashboard-property-layout .dashboard-shift-actions {
    grid-column: span 3;
}
.dashboard-property-layout .dashboard-maintenance-card {
    grid-column: span 3;
}
.dashboard-property-layout .dashboard-department-card {
    grid-column: span 6;
}
.dashboard-property-layout .dashboard-movement-card {
    grid-column: span 8;
}
.dashboard-property-layout .dashboard-activity-card {
    grid-column: span 4;
}
.dashboard-property-layout .dashboard-activity-card .activity-timeline {
    max-height: 360px;
}
.dashboard-property-layout .dashboard-insight-heading {
    padding: 20px 22px 16px;
}
.dashboard-property-layout .dashboard-line-chart,
.dashboard-property-layout .dashboard-revenue-chart {
    padding: 22px;
}
.dashboard-property-layout .dashboard-chart-grid {
    grid-template-columns: minmax(0, 2fr) minmax(310px, .85fr);
}

@media (max-width: 1180px) {
    .dashboard-property-layout {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .dashboard-property-layout .dashboard-insight-card { grid-column: 1 / -1; }
    .dashboard-property-layout .dashboard-shift-actions,
    .dashboard-property-layout .dashboard-maintenance-card { grid-column: span 3; }
    .dashboard-property-layout .dashboard-department-card,
    .dashboard-property-layout .dashboard-movement-card,
    .dashboard-property-layout .dashboard-activity-card { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
    .dashboard-property-layout { grid-template-columns: 1fr; }
    .dashboard-property-layout .dashboard-insight-card,
    .dashboard-property-layout .dashboard-shift-actions,
    .dashboard-property-layout .dashboard-maintenance-card,
    .dashboard-property-layout .dashboard-department-card,
    .dashboard-property-layout .dashboard-movement-card,
    .dashboard-property-layout .dashboard-activity-card { grid-column: 1; }
    .dashboard-property-layout .dashboard-chart-grid { grid-template-columns: 1fr; }
    .dashboard-property-layout .dashboard-revenue-chart {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .dashboard-property-layout { grid-template-columns: 1fr; }
    .dashboard-property-layout .dashboard-insight-card,
    .dashboard-property-layout .dashboard-shift-actions,
    .dashboard-property-layout .dashboard-maintenance-card,
    .dashboard-property-layout .dashboard-department-card,
    .dashboard-property-layout .dashboard-movement-card,
    .dashboard-property-layout .dashboard-activity-card { grid-column: 1; }
    .dashboard-property-layout .dashboard-chart-grid { grid-template-columns: 1fr; }
    .dashboard-property-layout .dashboard-revenue-chart {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

.front-office-charge-modal {
    width: min(520px, calc(100vw - 28px));
}

.front-office-charge-modal .swal2-title {
    display: none;
}

.front-office-charge-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.fo-charge-form section {
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.fo-charge-form h4 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.fo-charge-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.fo-charge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.fo-charge-form .form-control,
.fo-charge-form .form-select {
    width: 100%;
    min-height: 33px;
    margin-top: 4px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: none;
    font-size: 13px;
}

.fo-charge-form textarea.form-control {
    min-height: 42px;
    resize: vertical;
}

.fo-charge-net {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.fo-charge-net strong {
    color: var(--brand-dark);
}

.front-office-change-stay-modal {
    width: min(520px, calc(100vw - 28px));
}

.front-office-change-stay-modal .swal2-title {
    display: none;
}

.front-office-change-stay-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.fo-change-stay-form section {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.fo-change-stay-form h4 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.fo-change-stay-summary {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 7px 12px;
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 7px;
    background: #f8fafc;
}

.fo-change-stay-summary dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.fo-change-stay-summary dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.fo-change-stay-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.fo-change-stay-form .form-control {
    width: 100%;
    min-height: 38px;
    margin-top: 4px;
    border-radius: 7px;
}

.fo-change-stay-nights {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 7px;
    background: #ecfdf5;
    color: #047857;
    font-size: 13px;
    font-weight: 900;
}

.front-office-edit-stay-modal {
    width: min(620px, calc(100vw - 28px));
}

.front-office-edit-stay-modal .swal2-title {
    display: none;
}

.front-office-edit-stay-modal .swal2-html-container,
.front-office-rate-change-modal .swal2-html-container,
.front-office-discount-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.fo-edit-stay-form section,
.fo-rate-change-form section,
.fo-discount-form section {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.fo-edit-stay-form h4,
.fo-rate-change-form h4,
.fo-discount-form h4 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.fo-edit-stay-summary {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 6px 12px;
    margin: 0;
    padding: 10px;
    border-radius: 7px;
    background: #f8fafc;
}

.fo-edit-stay-summary dt,
.fo-edit-stay-form label,
.fo-rate-change-form label,
.fo-discount-form label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.fo-edit-stay-summary dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.fo-edit-stay-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.fo-edit-stay-grid .span-2 {
    grid-column: span 2;
}

.fo-edit-stay-form .form-control,
.fo-edit-stay-form .form-select,
.fo-rate-change-form .form-control,
.fo-rate-change-form .form-select,
.fo-discount-form .form-control,
.fo-discount-form .form-select {
    width: 100%;
    min-height: 38px;
    margin-top: 4px;
    border-radius: 7px;
}

.fo-edit-stay-form textarea.form-control,
.fo-rate-change-form textarea.form-control,
.fo-discount-form textarea.form-control {
    min-height: 76px;
}

.front-office-room-move-modal {
    width: min(620px, calc(100vw - 28px));
}

.front-office-room-move-modal .swal2-title {
    display: none;
}

.front-office-room-move-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.fo-room-move-form {
    display: grid;
    gap: 8px;
}

.fo-room-move-context,
.fo-room-move-search,
.fo-room-move-footer {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.fo-room-move-context h4 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.fo-room-move-context dl {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 5px 10px;
    margin: 0;
}

.fo-room-move-context dt,
.fo-room-move-form label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.fo-room-move-context dd {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.fo-room-move-search {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 8px;
}

.fo-room-move-form .form-select,
.fo-room-move-form .form-control {
    width: 100%;
    min-height: 34px;
    margin-top: 4px;
    border-radius: 7px;
    font-size: 13px;
}

.fo-room-move-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink);
    white-space: nowrap;
}

.fo-room-move-check input {
    width: 16px;
    height: 16px;
}

.fo-room-move-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 900;
}

.fo-room-move-results {
    max-height: 185px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.fo-room-move-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.fo-room-move-table th,
.fo-room-move-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.fo-room-move-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.fo-room-move-table tr {
    cursor: pointer;
}

.fo-room-move-table tbody tr:hover,
.fo-room-move-table tbody tr.is-selected {
    background: #ecfeff;
}

.fo-room-move-table tbody tr.is-selected {
    box-shadow: inset 3px 0 0 #0f766e;
}

.fo-room-move-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 900;
    text-transform: capitalize;
}

.fo-room-move-badge.success {
    border: 1px solid #86efac;
    background: #dcfce7;
    color: #166534;
}

.fo-room-move-badge.warning {
    border: 1px solid #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.fo-room-move-badge.secondary {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.fo-room-move-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
}

.fo-room-move-footer .fo-room-move-check {
    width: 100%;
}

@media (max-width: 720px) {
    .fo-room-move-search,
    .fo-room-move-footer {
        grid-template-columns: 1fr;
    }

    .fo-room-move-check {
        white-space: normal;
    }
}

.front-office-audit-modal {
    width: min(820px, calc(100vw - 28px));
}

.front-office-ooo-modal {
    width: min(560px, calc(100vw - 28px));
}

.front-office-ooo-modal .swal2-title {
    display: none;
}

.front-office-ooo-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.front-office-ooo-notice {
    padding: 24px 24px 4px;
    text-align: center;
}

.front-office-ooo-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 25px;
}

.front-office-ooo-eyebrow {
    color: #b91c1c;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.front-office-ooo-notice h3 {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
}

.front-office-ooo-intro {
    margin: 0 auto 16px;
    color: var(--muted);
    font-size: 13px;
}

.front-office-ooo-reason {
    padding: 12px 14px;
    border-left: 4px solid #dc2626;
    background: #fff7f7;
    text-align: left;
}

.front-office-ooo-reason span,
.front-office-ooo-meta dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.front-office-ooo-reason strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 15px;
}

.front-office-ooo-reason p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 12px;
}

.front-office-ooo-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 14px 0 0;
    text-align: left;
}

.front-office-ooo-meta div {
    min-width: 0;
}

.front-office-ooo-meta dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.front-office-audit-modal .swal2-title {
    display: none;
}

.front-office-audit-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.front-office-audit-modal-body {
    display: grid;
    gap: 10px;
}

.front-office-audit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.front-office-audit-header h4 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
}

.front-office-audit-header p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.front-office-audit-table-wrap {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.front-office-audit-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 12px;
}

.front-office-audit-table th,
.front-office-audit-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #dbe4ef;
    vertical-align: top;
}

.front-office-audit-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.front-office-audit-table tbody tr.is-latest td {
    background: #e0f2fe;
}

.front-office-audit-table td:first-child,
.front-office-audit-table td:nth-child(3),
.front-office-audit-table td:nth-child(4) {
    white-space: nowrap;
}

.front-office-audit-table td:nth-child(2) strong {
    display: block;
    color: var(--ink);
    font-weight: 900;
}

.front-office-audit-table td:nth-child(2) span {
    display: block;
    color: #334155;
    font-weight: 700;
}

.front-office-registration-modal {
    width: min(860px, calc(100vw - 28px));
}

.front-office-registration-modal .swal2-title {
    display: none;
}

.front-office-registration-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.front-office-registration-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
}

.front-office-document-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 54px;
    min-height: 42px;
    margin: 0;
}

.front-office-document-logo img {
    display: block;
    max-width: 54px;
    max-height: 46px;
    object-fit: contain;
}

.front-office-document-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.registration-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #111827;
}

.registration-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.registration-card-header p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.registration-card-header strong {
    align-self: start;
    font-size: 16px;
    font-weight: 900;
    text-align: right;
}

.registration-card-section {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #334155;
    border-radius: 4px;
}

.registration-card-grid-4,
.registration-card-grid-3,
.registration-card-grid-2,
.registration-card-fill,
.registration-card-signatures {
    display: grid;
    gap: 8px;
}

.registration-card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.registration-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.registration-card-grid-2,
.registration-card-fill,
.registration-card-signatures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registration-card-section span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.registration-card-section strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.registration-card-section .span-2 {
    grid-column: span 2;
}

.registration-card-fill div,
.registration-card-signatures div {
    min-height: 44px;
    border-bottom: 1px solid #111827;
}

.registration-card-terms {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #334155;
    border-radius: 4px;
    font-size: 11px;
}

.registration-card-terms strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 900;
}

.registration-card-terms p {
    margin: 0;
    line-height: 1.4;
}

.registration-card-signatures {
    margin-top: 14px;
    gap: 24px;
}

.registration-card-signatures span {
    display: block;
    padding-top: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.registration-card-footer {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.front-office-folio-print-modal {
    width: min(860px, calc(100vw - 28px));
}

.front-office-folio-print-modal .swal2-title {
    display: none;
}

.front-office-folio-print-modal .swal2-html-container {
    margin: 0;
    text-align: left;
}

.front-office-folio-print {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.folio-print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #111827;
}

.folio-print-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.folio-print-header p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.folio-print-header strong {
    font-size: 16px;
    font-weight: 900;
}

.folio-print-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #334155;
    border-radius: 4px;
}

.folio-print-info span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.folio-print-info strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.folio-print-table-wrap {
    overflow: auto;
    border: 1px solid #334155;
    border-radius: 4px;
}

.folio-print-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 11px;
}

.folio-print-table th,
.folio-print-table td {
    padding: 7px 8px;
    border: 1px solid #334155;
    vertical-align: top;
}

.folio-print-table th {
    background: #f8fafc;
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
}

.folio-print-table small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-weight: 700;
}

.folio-print-table tr.is-voided {
    color: #64748b;
    background: #fff7f7;
}

.folio-print-notice {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #334155;
    border-radius: 4px;
    font-size: 11px;
}

.folio-print-notice strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 900;
}

.folio-print-notice p {
    margin: 0;
    line-height: 1.4;
}

.folio-print-signatures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.folio-print-signatures div {
    min-height: 42px;
    border-bottom: 1px solid #111827;
}

.folio-print-signatures span {
    display: block;
    padding-top: 26px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.folio-print-footer {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

@media (max-width: 760px) {
    .registration-card-grid-4,
    .registration-card-grid-3,
    .registration-card-grid-2,
    .registration-card-fill,
    .registration-card-signatures,
    .folio-print-info,
    .folio-print-signatures {
        grid-template-columns: 1fr;
    }

    .registration-card-section .span-2 {
        grid-column: auto;
    }
}

.front-office-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0 14px;
    border-bottom: 1px solid var(--line);
}

.front-office-detail-hero h2 span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.front-office-room-heading {
    color: #0f172a;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
}

.front-office-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.front-office-detail-panel {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.front-office-detail-panel.front-office-folio-tabs {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.front-office-detail-panel h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
}

.front-office-detail-list,
.front-office-money-list {
    display: grid;
    grid-template-columns: minmax(110px, .45fr) minmax(0, 1fr);
    gap: 8px 14px;
    margin: 0;
    font-size: 13px;
}

.front-office-detail-list dt,
.front-office-money-list dt {
    color: var(--muted);
    font-weight: 800;
}

.front-office-detail-list dd,
.front-office-money-list dd {
    margin: 0;
    min-width: 0;
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.front-office-money-list {
    grid-template-columns: 1fr auto;
}

.front-office-rate-panel {
    background: #f8fafc;
}

.front-office-rate-panel dd {
    font-variant-numeric: tabular-nums;
}

.front-office-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: #ccfbf1;
    color: #115e59;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.front-office-status-pill::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.front-office-status-pill.status-occupied,
.front-office-status-pill.status-in-house {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1d4ed8;
}

.front-office-status-pill.status-vacant {
    border-color: #86efac;
    background: #dcfce7;
    color: #166534;
}

.front-office-status-pill.status-clean {
    border-color: #86efac;
    background: var(--fo-clean-pill-color, #dcfce7);
    color: #166534;
}

.front-office-status-pill.status-dirty {
    border-color: #fdba74;
    background: #ffedd5;
    color: #9a3412;
}

.front-office-status-pill.status-inspected {
    border-color: #5eead4;
    background: #ccfbf1;
    color: #115e59;
}

.front-office-status-pill.status-out-of-order,
.front-office-status-pill.status-out-of-service {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #991b1b;
}

.front-office-status-pill.status-arrival-due {
    border-color: #fcd34d;
    background: #fef3c7;
    color: #92400e;
}

.front-office-folio-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 12px;
}

.front-office-folio-chip {
    min-width: 168px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.front-office-folio-chip.is-active {
    border-color: var(--brand-dark);
    background: #ecfdf8;
    box-shadow: inset 3px 0 0 var(--brand-dark);
}

.front-office-folio-chip.is-merged {
    opacity: .62;
}

.front-office-folio-chip strong {
    display: block;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.front-office-folio-chip small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
}

.front-office-folio-chip > span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.front-office-folio-chip-badges {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.front-office-folio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.front-office-folio-table-actions {
    justify-content: flex-end;
    margin: 0 0 10px;
}

.front-office-folio-register th,
.front-office-folio-register td {
    white-space: nowrap;
}

.front-office-selectable-folio-row {
    cursor: pointer;
}

.front-office-selectable-folio-row:hover td {
    background: #f1fdfa;
}

.front-office-selectable-folio-row.is-selected td {
    background: #ecfdf8;
    box-shadow: inset 3px 0 0 var(--brand-dark);
}

.front-office-transfer-check-col {
    width: 34px;
}

.front-office-transfer-bar,
.front-office-merge-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.front-office-transfer-bar .form-select,
.front-office-transfer-bar .form-control,
.front-office-merge-bar .form-select,
.front-office-merge-bar .form-control {
    max-width: 220px;
}

.front-office-open-folio-workspace {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.front-office-folio-workspace-modal {
    width: min(1040px, calc(100vw - 32px));
    max-width: 1040px;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.front-office-folio-workspace-modal .swal2-html-container {
    margin: 0;
    overflow: hidden;
    text-align: left;
}

.front-office-folio-workspace-modal .swal2-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    color: #475569;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.front-office-folio-workspace-modal .front-office-open-folio-workspace {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    height: min(86vh, 820px);
    max-height: 820px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.front-office-folio-modal-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 70px 16px 22px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.front-office-folio-modal-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 7px;
    background: #e6fffb;
    color: #0f766e;
    font-size: 20px;
}

.front-office-folio-modal-titlebar span,
.front-office-folio-eyebrow {
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.front-office-folio-modal-titlebar h2 {
    margin: 1px 0 0;
    font-size: 21px;
    line-height: 1.2;
}

.front-office-folio-modal-titlebar p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.front-office-selectable-folio-row {
    cursor: pointer;
}

.front-office-selectable-folio-row:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: -2px;
}

.front-office-open-folio-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 18px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.front-office-open-folio-scroll {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 18px 14px;
    overflow: auto;
}

.front-office-open-folio-scroll .front-office-open-folio-section + .front-office-open-folio-section {
    margin-top: 12px;
}

.front-office-open-folio-head h3 {
    margin: 2px 0 0;
    font-size: 18px;
    line-height: 1.2;
}

.front-office-open-folio-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.front-office-open-folio-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.front-office-open-folio-section h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.front-office-folio-line-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: #dff7f3;
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
}

.front-office-open-folio-section .table-responsive,
.front-office-open-folio-section table,
.front-office-open-folio-section tbody {
    height: auto;
    min-height: 0;
}

.front-office-open-folio-section h4 i {
    margin-right: 6px;
    color: #0f766e;
}

.front-office-open-folio-section table th,
.front-office-open-folio-section table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.front-office-folio-line-current td {
    background: #f1fdfa;
}

.front-office-open-folio-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    padding: 14px 18px 16px;
    border-top: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 -8px 18px rgba(15, 23, 42, .05);
}

.front-office-folio-reason-field label {
    display: block;
    margin-bottom: 5px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.front-office-folio-reason-field textarea {
    min-height: 58px;
    resize: vertical;
}

.front-office-folio-reason-field small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.front-office-folio-assignment-action {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.front-office-folio-assignment-action span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .front-office-folio-workspace-modal {
        width: calc(100vw - 16px);
    }

    .front-office-folio-workspace-modal .front-office-open-folio-workspace {
        height: 92vh;
    }

    .front-office-open-folio-footer {
        grid-template-columns: 1fr;
    }

    .front-office-folio-assignment-action {
        justify-items: stretch;
    }
}

.front-office-folio-tabs .nav-tabs {
    border-bottom-color: var(--line);
}

.front-office-folio-tabs .nav-link {
    color: var(--muted);
    border-radius: 7px 7px 0 0;
    font-weight: 900;
}

.front-office-folio-tabs .nav-link.active {
    color: var(--brand-dark);
    border-color: var(--line) var(--line) #ffffff;
    background: #ffffff;
}

.front-office-folio-tab-content {
    min-height: 180px;
    padding-top: 12px;
}

.front-office-tab-sheet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.front-office-tab-sheet section {
    min-width: 0;
    padding: 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.front-office-tab-sheet section:nth-child(2n) {
    border-right: 0;
}

.front-office-tab-sheet section:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.front-office-tab-sheet h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 900;
}

.front-office-general-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .72fr);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.front-office-general-sections {
    min-width: 0;
}

.front-office-general-sections section {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
}

.front-office-general-sections section:last-child {
    border-bottom: 0;
}

.front-office-general-sections h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 900;
}

.front-office-financial-summary {
    min-width: 0;
    padding: 15px;
    border-left: 1px solid var(--line);
    background: #f8fafc;
}

.front-office-financial-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
}

.front-office-financial-summary-head span {
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.front-office-financial-summary-head small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.front-office-financial-summary dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(115px, auto);
    margin: 10px 0 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    font-size: 12px;
}

.front-office-financial-summary dt,
.front-office-financial-summary dd {
    min-width: 0;
    margin: 0;
    padding: 7px 9px;
    border-bottom: 1px solid var(--line);
}

.front-office-financial-summary dt {
    color: var(--ink);
    font-weight: 800;
    background: #ffffff;
}

.front-office-financial-summary dd {
    border-left: 1px solid var(--line);
    color: var(--ink);
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    background: #fffdf3;
}

.front-office-financial-summary .is-emphasis,
.front-office-financial-summary .is-balance {
    font-weight: 900;
}

.front-office-financial-summary .is-balance {
    border-top: 2px solid var(--ink);
}

.front-office-rate-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.front-office-rate-summary span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.front-office-rate-summary strong {
    color: var(--ink);
    font-weight: 900;
}

.front-office-folio-table {
    font-size: 11px;
    vertical-align: middle;
}

.front-office-folio-table thead th {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 7px 8px;
}

.front-office-folio-table tbody td {
    border-color: #e5edf6;
    white-space: nowrap;
    padding: 7px 8px;
    line-height: 1.25;
}

.front-office-folio-table tbody td:nth-child(3) {
    min-width: 220px;
    white-space: normal;
}

.front-office-folio-register {
    table-layout: fixed;
}

.front-office-folio-register th:nth-child(1),
.front-office-folio-register td:nth-child(1) { width: 112px; }
.front-office-folio-register th:nth-child(2),
.front-office-folio-register td:nth-child(2) { width: 220px; }
.front-office-folio-register th:nth-child(3),
.front-office-folio-register td:nth-child(3),
.front-office-folio-register th:nth-child(4),
.front-office-folio-register td:nth-child(4),
.front-office-folio-register th:nth-child(5),
.front-office-folio-register td:nth-child(5) { width: 132px; }
.front-office-folio-register th:nth-child(6),
.front-office-folio-register td:nth-child(6) { width: 145px; }
.front-office-folio-register th:nth-child(7),
.front-office-folio-register td:nth-child(7) { width: 100px; }

.front-office-folio-table .badge,
.front-office-folio-table .report-status {
    min-height: 20px;
    padding: 3px 8px;
    font-size: 10px;
}

.front-office-folio-table .btn,
.front-office-folio-table button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11px;
}

.front-office-rate-table {
    table-layout: fixed;
    min-width: 760px;
}

.front-office-rate-table th:nth-child(1),
.front-office-rate-table td:nth-child(1) { width: 108px; }
.front-office-rate-table th:nth-child(2),
.front-office-rate-table td:nth-child(2) { width: 58px; }
.front-office-rate-table th:nth-child(3),
.front-office-rate-table td:nth-child(3) {
    width: 74px;
    min-width: 74px;
    white-space: nowrap;
}
.front-office-rate-table th:nth-child(4),
.front-office-rate-table td:nth-child(4) { width: 68px; }
.front-office-rate-table th:nth-child(5),
.front-office-rate-table td:nth-child(5),
.front-office-rate-table th:nth-child(6),
.front-office-rate-table td:nth-child(6),
.front-office-rate-table th:nth-child(7),
.front-office-rate-table td:nth-child(7) { width: 110px; }
.front-office-rate-table th:nth-child(8),
.front-office-rate-table td:nth-child(8),
.front-office-rate-table th:nth-child(9),
.front-office-rate-table td:nth-child(9) { width: 70px; }

.front-office-rate-current-row td {
    background: #ecfeff;
    box-shadow: inset 3px 0 0 #0f766e;
}

.front-office-rate-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 7px 10px;
    border-top: 1px solid #dbe4ef;
    border-bottom: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}

.front-office-rate-selection-bar strong {
    color: #0f766e;
}

.front-office-rate-check {
    width: 38px !important;
    min-width: 38px !important;
    text-align: center;
}

.front-office-rate-check .form-check-input {
    float: none;
    margin: 0;
    cursor: pointer;
}

.front-office-rate-check .form-check-input:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.front-office-rate-table.has-rate-selection th:nth-child(2),
.front-office-rate-table.has-rate-selection td:nth-child(2) { width: 108px; }
.front-office-rate-table.has-rate-selection th:nth-child(3),
.front-office-rate-table.has-rate-selection td:nth-child(3) { width: 58px; min-width: 58px; }
.front-office-rate-table.has-rate-selection th:nth-child(4),
.front-office-rate-table.has-rate-selection td:nth-child(4) { width: 74px; min-width: 74px; }
.front-office-rate-table.has-rate-selection th:nth-child(5),
.front-office-rate-table.has-rate-selection td:nth-child(5) { width: 68px; }
.front-office-rate-table.has-rate-selection th:nth-child(6),
.front-office-rate-table.has-rate-selection td:nth-child(6),
.front-office-rate-table.has-rate-selection th:nth-child(7),
.front-office-rate-table.has-rate-selection td:nth-child(7),
.front-office-rate-table.has-rate-selection th:nth-child(8),
.front-office-rate-table.has-rate-selection td:nth-child(8) { width: 110px; }
.front-office-rate-table.has-rate-selection th:nth-child(9),
.front-office-rate-table.has-rate-selection td:nth-child(9),
.front-office-rate-table.has-rate-selection th:nth-child(10),
.front-office-rate-table.has-rate-selection td:nth-child(10) { width: 70px; }

.front-office-history-notice {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
    padding: 10px 12px;
}

.front-office-folio-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 1280px) {
    .front-office-controls,
    .front-office-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .front-office-controls,
    .front-office-kpis {
        grid-template-columns: 1fr;
    }

    .front-office-detail-hero,
    .front-office-detail-grid,
    .front-office-folio-summary,
    .front-office-tab-sheet,
    .front-office-general-layout {
        display: block;
    }

    .front-office-detail-panel,
    .front-office-detail-hero {
        margin-bottom: 12px;
    }

    .front-office-tab-sheet section {
        border-right: 0;
    }

    .front-office-financial-summary {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

/* Banquet and Events */
.banquet-workspace{min-width:0;border:1px solid #d7e0eb;background:#fff}.banquet-view-nav{display:flex;gap:2px;padding:10px 12px;border-bottom:1px solid #d7e0eb;background:#f8fafc}.banquet-view-nav a{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;color:#526178;font-weight:700;text-decoration:none;border-bottom:2px solid transparent}.banquet-view-nav a.active{color:#08766d;border-color:#08766d;background:#fff}.banquet-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-bottom:1px solid #d7e0eb}.banquet-stats>div{padding:14px 16px;border-right:1px solid #e3e9f1}.banquet-stats>div:last-child{border-right:0}.banquet-stats span{display:block;color:#687891;font-size:11px;font-weight:700;text-transform:uppercase}.banquet-stats strong{display:block;margin-top:4px;color:#172033;font-size:21px}.banquet-stats .is-balance strong{color:#08766d}.banquet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #d7e0eb}.banquet-search{display:flex;align-items:center;gap:8px;flex:1;max-width:520px}.banquet-search i{color:#718096}.banquet-status-filter{max-width:190px}.banquet-table-wrap{min-height:310px}.banquet-table{margin:0}.banquet-table th{color:#62728a;font-size:11px;text-transform:uppercase;white-space:nowrap}.banquet-table td small{display:block;margin-top:3px;color:#738198}.banquet-diary-modes,.banquet-diary-modes button,.banquet-diary-modes+.banquet-date-control{display:flex;align-items:center}.banquet-diary-modes{padding:3px;border:1px solid #cdd8e5;background:#f6f8fb}.banquet-diary-modes button{border:0;background:transparent;padding:6px 11px;color:#596980;font-weight:700}.banquet-diary-modes button.active{background:#08766d;color:#fff}.banquet-date-control{gap:7px}.banquet-date-control input{width:155px}.banquet-diary-head{display:flex;justify-content:space-between;padding:12px 15px;border-bottom:1px solid #d7e0eb;color:#607087}.banquet-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-height:430px}.banquet-calendar.week{grid-template-columns:repeat(7,minmax(150px,1fr));overflow-x:auto}.banquet-calendar.day{grid-template-columns:1fr}.banquet-day{min-width:0;min-height:120px;padding:8px;border-right:1px solid #e1e7ef;border-bottom:1px solid #e1e7ef}.banquet-day header{display:flex;justify-content:space-between;color:#687891;font-size:11px}.banquet-day header strong{font-size:15px;color:#273449}.banquet-day.is-today{background:#f0fdfa}.banquet-diary-event{display:block;width:100%;margin-top:6px;padding:7px;text-align:left;border:1px solid #b8d8d3;background:#e6f7f4;color:#155e58}.banquet-diary-event.block{border-color:#f1c38f;background:#fff7ed;color:#9a4815}.banquet-diary-event span,.banquet-diary-event strong,.banquet-diary-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.banquet-diary-event span{font-size:9px;text-transform:uppercase;font-weight:700}.banquet-diary-event small{margin-top:2px;opacity:.78}.banquet-booking-modal{border-radius:6px}.banquet-modal-tabs{display:flex;gap:2px;border-bottom:1px solid #d6e0eb}.banquet-modal-tabs button{border:0;background:transparent;padding:10px 14px;color:#61718a;font-weight:700;border-bottom:2px solid transparent}.banquet-modal-tabs button.active{color:#08766d;border-color:#08766d}.banquet-tab-panel{display:none;padding-top:16px}.banquet-tab-panel.active{display:block}.banquet-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.banquet-form-grid label,.banquet-block-grid label,.banquet-settlement-box label{display:grid;gap:5px;min-width:0}.banquet-form-grid label>span,.banquet-block-grid label>span,.banquet-settlement-box label>span{color:#526178;font-size:12px;font-weight:700}.banquet-form-grid .span-2{grid-column:span 2}.banquet-form-grid .span-3{grid-column:span 3}.banquet-charge-entry{display:grid;grid-template-columns:minmax(260px,1fr) 100px 130px auto auto;gap:9px;align-items:center;padding:12px;border:1px solid #d7e0eb;background:#f8fafc}.banquet-lines th,.banquet-payments th{color:#61718a;font-size:11px;text-transform:uppercase}.banquet-financial-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid #d1dae6}.banquet-financial-summary>div{padding:11px;border-right:1px solid #dce4ed}.banquet-financial-summary>div:last-child{border-right:0}.banquet-financial-summary span{display:block;color:#687891;font-size:10px;text-transform:uppercase;font-weight:700}.banquet-financial-summary strong{display:block;margin-top:4px}.banquet-financial-summary .grand{background:#effaf8}.banquet-financial-summary .balance strong{color:#dc2626}.banquet-settlement-box{display:grid;grid-template-columns:1.4fr repeat(3,minmax(140px,1fr)) auto;align-items:end;gap:10px;margin-top:14px;padding:13px;border:1px solid #d7e0eb;background:#f8fafc}.banquet-settlement-tabs{display:flex;align-self:stretch}.banquet-settlement-tabs button{flex:1;border:1px solid #cbd6e3;background:#fff;color:#526178;font-weight:700}.banquet-settlement-tabs button.active{border-color:#08766d;background:#e8f7f4;color:#08766d}.banquet-activity{border-left:2px solid #cbd6e3;margin-left:9px}.banquet-activity article{display:grid;grid-template-columns:28px 1fr;gap:10px;margin:0 0 16px -15px}.banquet-activity article>i{display:grid;place-items:center;width:28px;height:28px;border:1px solid #9bc9c3;background:#effaf8;color:#08766d;border-radius:50%}.banquet-activity p{margin:3px 0}.banquet-activity small{color:#738198}.banquet-modal-footer{justify-content:space-between}.banquet-doc-actions{display:flex;gap:8px}.banquet-block-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.banquet-block-grid .span-2{grid-column:span 2}
@media(max-width:1100px){.banquet-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.banquet-form-grid{grid-template-columns:1fr 1fr}.banquet-form-grid .span-3{grid-column:span 2}.banquet-charge-entry{grid-template-columns:1fr 100px 130px}.banquet-charge-entry .btn{grid-row:2}.banquet-settlement-box{grid-template-columns:1fr 1fr}.banquet-financial-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.banquet-view-nav,.banquet-toolbar{align-items:flex-start;flex-wrap:wrap}.banquet-stats{grid-template-columns:1fr 1fr}.banquet-stats>div:nth-child(2n){border-right:0}.banquet-calendar{grid-template-columns:1fr}.banquet-day{min-height:90px}.banquet-form-grid,.banquet-block-grid{grid-template-columns:1fr}.banquet-form-grid .span-2,.banquet-form-grid .span-3,.banquet-block-grid .span-2{grid-column:auto}.banquet-charge-entry,.banquet-settlement-box{grid-template-columns:1fr}.banquet-financial-summary{grid-template-columns:1fr 1fr}.banquet-modal-footer{align-items:stretch;flex-direction:column}.banquet-doc-actions{flex-wrap:wrap}}
.banquet-day-rail{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin-bottom:12px}.banquet-day-card{display:grid;gap:4px;min-width:0;padding:10px 11px;text-align:left;border:1px solid #cfd9e6;background:#fff;color:#172033}.banquet-day-card:hover,.banquet-day-card.active{border-color:#08766d;background:#effaf8}.banquet-day-card>span{color:#66768d;font-size:10px;font-weight:800;text-transform:uppercase}.banquet-day-card>small{color:#687891}.banquet-day-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.banquet-day-card footer b{color:#08766d}.banquet-day-workspace{border:1px solid #d7e0eb}.banquet-day-editor{display:grid;grid-template-columns:minmax(150px,1.2fr) repeat(4,minmax(100px,.7fr)) minmax(160px,1fr) auto auto;gap:9px;align-items:end;padding:12px;border-bottom:1px solid #d7e0eb;background:#f8fafc}.banquet-day-editor>div:first-child{align-self:center}.banquet-day-editor>div:first-child strong{display:block;margin-top:3px}.banquet-day-editor label{display:grid;gap:4px}.banquet-day-editor label>span{color:#526178;font-size:11px;font-weight:700}.banquet-day-workspace .banquet-charge-entry{border-width:0 0 1px}.banquet-day-total{display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:11px 14px;border-top:1px solid #d7e0eb;background:#f8fafc}.banquet-day-total span{color:#607087;font-size:11px;font-weight:800;text-transform:uppercase}.banquet-day-total strong{font-size:18px;color:#08766d}.banquet-day-total small{color:#687891}.banquet-line-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.banquet-line-actions select{width:112px}@media(max-width:1100px){.banquet-day-editor{grid-template-columns:repeat(3,minmax(0,1fr))}.banquet-day-editor>div:first-child,.banquet-day-editor .day-note{grid-column:span 2}}@media(max-width:700px){.banquet-day-editor{grid-template-columns:1fr}.banquet-day-editor>div:first-child,.banquet-day-editor .day-note{grid-column:auto}.banquet-day-total{align-items:flex-end;flex-direction:column;gap:3px}.banquet-day-rail{grid-template-columns:1fr}.banquet-line-actions{justify-content:flex-start}}
.room-strip span {
    color: var(--muted);
    font-size: 12px;
}
.onboarding-wizard {
    display: block;
}
.onboarding-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
.wizard-form-card {
    min-height: 520px;
    padding: 24px;
}
.wizard-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.wizard-step-count {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.wizard-form-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
}
.wizard-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}
.wizard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cfe0f8;
}
.wizard-dots span.active {
    width: 36px;
    background: var(--brand);
}
.wizard-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.wizard-section-title > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--nav);
    color: #ffffff;
    font-size: 24px;
}
.wizard-section-title h3 {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 800;
}
.wizard-section-title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}
.wizard-review {
    display: grid;
    gap: 10px;
}
.wizard-review span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
}
.wizard-review .bi {
    color: var(--brand);
    font-size: 16px;
    line-height: 18px;
}
.wizard-pane {
    display: none;
}
.wizard-pane.active {
    display: block;
}
.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.wizard-actions [data-wizard-cancel] {
    margin-right: auto;
}
.wizard-summary-card {
    position: sticky;
    top: 88px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--nav-2);
    color: #ffffff;
}
.wizard-summary-card > .bi {
    color: var(--inverse-primary);
    font-size: 34px;
}
.wizard-summary-card h3 {
    margin: 18px 0 8px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 800;
}
.wizard-summary-card p {
    margin: 0 0 24px;
    color: #cbd8e6;
    font-size: 14px;
    line-height: 21px;
}
.wizard-summary-list {
    display: grid;
    gap: 14px;
}
.wizard-summary-list span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e9f1fd;
    font-size: 14px;
    font-weight: 800;
}
.wizard-summary-list .bi {
    color: #ffffff;
    font-size: 15px;
}
.wizard-summary-list span.active .bi {
    color: var(--inverse-primary);
}
.wizard-summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.wizard-summary-footer strong,
.wizard-summary-footer span {
    display: block;
}
.wizard-summary-footer strong {
    font-size: 13px;
}
.wizard-summary-footer span {
    color: #cbd8e6;
    font-size: 12px;
    font-style: normal;
}
.wizard-summary-footer em {
    font-style: normal;
}

.login-page {
    width: 100vw;
    height: 100vh;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(480px, 28vw) minmax(0, 1fr);
    background: var(--bg);
    overflow: hidden;
}
.login-card {
    align-self: center;
    justify-self: center;
    width: min(440px, calc(100% - 48px));
    margin: 0;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.login-card h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
}
.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.login-brand img {
    width: 38px;
    height: 38px;
    padding: 7px;
    border-radius: 10px;
    background: var(--brand-soft);
}
.login-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 48px;
    background: linear-gradient(135deg, #0f766e 0%, #101820 100%);
    color: #ffffff;
}
.login-visual-panel {
    width: min(700px, 72%);
    padding: 32px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
}
.login-visual-panel h2 {
    max-width: 640px;
    font-size: clamp(30px, 2.4vw, 42px);
    line-height: 1.15;
    font-weight: 750;
    margin-bottom: 14px;
}
.login-visual-panel p {
    max-width: 650px;
    color: rgba(255,255,255,.9);
    font-size: 16px;
    line-height: 1.55;
}
.login-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.login-metrics div {
    min-height: 104px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
}
.login-metrics strong { display: block; font-size: 30px; line-height: 1.1; }
.login-metrics span { color: rgba(255,255,255,.78); font-size: 13px; }
.dev-credentials {
    color: #64748b;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .console-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .console-layout { grid-template-columns: 1fr; }
    .console-layout .span-2 { grid-column: span 1; }
    .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
    .tenant-filter-grid,
    .plan-filter-grid,
    .audit-filter-grid,
    .reservation-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .builder-layout { grid-template-columns: 1fr; }
    .builder-summary { order: -1; }
    .onboarding-flow { grid-template-columns: 1fr; }
    .wizard-summary-card {
        position: static;
        order: -1;
    }
}
@media (max-width: 900px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        height: auto;
        max-height: none;
    }
    .sidebar-user { display: none; }
    .topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }
    .topbar-actions {
        width: 100%;
        align-items: stretch;
        flex-wrap: wrap;
    }
    .property-switcher { flex: 1 1 240px; }
    .front-office-context-panel {
        width: 100%;
        min-width: 0;
    }
    .front-office-page-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .login-page {
        height: auto;
        min-height: 100vh;
        overflow: auto;
        grid-template-columns: 1fr;
    }
    .login-visual { display: none; }
    .login-card { justify-self: center; }
}
@media (max-width: 560px) {
    .content { padding: 16px; }
    .stat-grid { grid-template-columns: 1fr; }
    .console-header {
        align-items: stretch;
        flex-direction: column;
    }
    .front-office-view-field,
    .front-office-date-field,
    .front-office-reservation-link {
        width: 100%;
    }
    .console-date { min-width: 0; }
    .console-grid { grid-template-columns: 1fr; }
    .dashboard-command-strip { grid-template-columns: 1fr; }
    .department-grid,
    .revenue-mix { grid-template-columns: 1fr; }
    .metric-card-wide { grid-column: span 1; }
    .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-chart-grid { grid-template-columns: 1fr; }
    .dashboard-revenue-chart {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .dashboard-room-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-room-status a:nth-child(2) { border-right: 0; }
    .dashboard-room-status a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .dashboard-chart-labels small { display: none; }
    .dashboard-donut-layout {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .panel { padding: 14px; }
    .table { min-width: 680px; }
    .sidebar-nav { grid-template-columns: 1fr; }
    .nav-section { grid-column: 1 / -1; }
    .tenant-filter-grid,
    .plan-filter-grid,
    .audit-filter-grid,
    .reservation-filter-grid { grid-template-columns: 1fr; }
    .tenant-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .pagination-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .wizard-form-card { padding: 16px; }
    .builder-form-card,
    .builder-summary-card { padding: 18px; }
    .wizard-form-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .wizard-dots span.active { width: 28px; }
    .wizard-section-title {
        align-items: flex-start;
    }
    .wizard-section-title > span {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .wizard-actions { flex-direction: column-reverse; }
    .wizard-actions .btn { width: 100%; }
    .wizard-actions [data-wizard-cancel] { margin-right: 0; }
}

.ticket-thread {
    display: grid;
    gap: 12px;
    max-height: 480px;
    overflow: auto;
    padding-right: 4px;
}

.ticket-message {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.ticket-message-platform {
    background: #ecfdf5;
    border-color: #99f6e4;
}

.configuration-workspace {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.configuration-tabs {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 6px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.configuration-tabs a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.configuration-tabs a:hover,
.configuration-tabs a.active {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.configuration-content {
    min-width: 0;
}

.configuration-modal-dialog-compact {
    max-width: min(620px, calc(100vw - 32px));
}

.configuration-modal-dialog-compact .modal-header {
    padding: 16px 18px 12px;
}

.configuration-modal-dialog-compact .modal-body {
    padding: 16px 18px 18px;
}

.configuration-modal-dialog-compact .configuration-form .row {
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
}

.configuration-form-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
}

.configuration-form-tabs .nav-link {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    background: #fff;
}

.configuration-form-tabs .nav-link:hover {
    color: var(--brand-dark);
    border-color: rgba(15, 118, 110, 0.35);
}

.configuration-form-tabs .nav-link.active {
    color: var(--brand-dark);
    border-color: rgba(20, 184, 166, 0.42);
    background: var(--brand-soft);
}

.configuration-form-tab-content {
    min-height: 238px;
}

.configuration-form-section-divider {
    display: grid;
    gap: 2px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.configuration-form-section-divider span {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.configuration-form-section-divider small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.configuration-modal-dialog-compact .configuration-form .form-label {
    margin-bottom: 4px;
    font-size: 12px;
}

.configuration-field-action {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8d9d6;
    border-radius: 8px;
    color: #00796f;
    background: #effdfb;
    cursor: pointer;
    text-decoration: none;
}

.configuration-field-action:hover {
    color: #005f57;
    background: #dff8f4;
}

.configuration-select-action-group {
    display: flex;
    align-items: center;
}

.inventory-command {
    display: grid;
    gap: 16px;
}

.inventory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.inventory-toolbar h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 850;
}

.inventory-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.inventory-kpis {
    margin: 0;
}

.inventory-filter {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.inventory-filter .form-label,
.inventory-form .form-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
}

.inventory-tabs {
    border-bottom: 1px solid var(--line);
    gap: 6px;
}

.inventory-tabs .nav-link {
    border: 1px solid transparent;
    color: var(--muted);
    font-weight: 800;
    border-radius: 8px 8px 0 0;
}

.inventory-tabs .nav-link.active {
    color: var(--brand-dark);
    background: #fff;
    border-color: var(--line) var(--line) #fff;
}

.inventory-tab-content {
    padding-top: 14px;
}

.inventory-shell {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.inventory-side-menu {
    overflow: hidden;
    border: 1px solid #d6e1ef;
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
}

.inventory-side-group + .inventory-side-group {
    border-top: 1px solid var(--line);
}

.inventory-side-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border: 0;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .01em;
    text-align: left;
    cursor: pointer;
}

.inventory-side-title i {
    transition: transform .18s ease;
}

.inventory-side-group.open .inventory-side-title i {
    transform: rotate(180deg);
}

.inventory-side-links {
    display: grid;
    gap: 0;
    padding: 6px 0;
}

.inventory-side-group:not(.open) .inventory-side-links {
    display: none;
}

.inventory-side-link {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 0;
    color: #42526a;
    background: transparent;
    font-weight: 700;
    text-align: left;
    line-height: 1.25;
}

.inventory-side-link:hover,
.inventory-side-link.active {
    color: var(--brand-dark);
    background: #f4fffd;
}

.inventory-side-link.active {
    box-shadow: inset 3px 0 0 var(--brand);
}

.inventory-side-link i {
    font-size: 16px;
    color: var(--brand);
    opacity: .95;
    flex: 0 0 auto;
}

.inventory-work-area {
    min-width: 0;
}

.inventory-stage-panel {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inventory-stage-panel h2 {
    margin: 8px 0;
    font-size: 22px;
    font-weight: 850;
}

.inventory-stage-panel p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.inventory-stage-note {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 12px;
    border: 1px solid #c6eee8;
    border-radius: 8px;
    color: #006f64;
    background: #effdfb;
    font-weight: 800;
}

.inventory-split {
    display: grid;
    grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
}

.inventory-form h2,
.inventory-command .panel h2 {
    font-size: 18px;
    font-weight: 850;
    margin-bottom: 14px;
}

.inventory-form .form-control,
.inventory-form .form-select {
    min-height: 42px;
}

.inventory-store-items {
    display: grid;
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
}

.inventory-register-header,
.inventory-register-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.inventory-register-header h2,
.inventory-register-title h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 850;
}

.inventory-register-header p,
.inventory-register-title p {
    margin: 4px 0 0;
    color: var(--muted);
}

.inventory-register-header > div,
.inventory-register-title > div {
    min-width: 0;
}

.inventory-register-header .btn {
    flex: 0 0 auto;
}

.inventory-register-summary {
    display: flex;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    margin: -4px 0 -6px;
}

.inventory-item-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    max-width: 100%;
    min-width: 0;
}

.inventory-item-filters > div {
    min-width: 0;
}

.inventory-item-filters .input-group,
.inventory-item-filters .form-control,
.inventory-item-filters .form-select {
    min-width: 0;
}

.inventory-filter-actions {
    display: flex;
    align-items: end;
    min-width: 0;
}

.inventory-filter-actions .btn {
    width: 100%;
    white-space: nowrap;
}

.inventory-register-table {
    min-width: 1120px;
}

.inventory-store-items .table-responsive {
    max-width: 100%;
    overflow-x: auto;
}

.inventory-register-table thead th {
    white-space: nowrap;
}

.inventory-register-table td {
    vertical-align: middle;
}

.inventory-item-modal .modal-header {
    align-items: flex-start;
}

.inventory-item-modal .modal-title {
    font-size: 24px;
    font-weight: 850;
}

.inventory-store-grid {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.inventory-store-grid .table {
    margin-bottom: 0;
}

.inventory-store-assignment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}

.inventory-store-assignment {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e2f1;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    margin: 0;
    min-height: 42px;
    padding: 8px 10px;
}

.inventory-store-assignment small {
    color: #64748b;
    margin-left: auto;
    text-transform: capitalize;
}

@media (max-width: 992px) {
    .inventory-toolbar,
    .inventory-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-shell {
        grid-template-columns: 1fr;
    }

    .inventory-split {
        grid-template-columns: 1fr;
    }

    .inventory-item-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .inventory-register-header,
    .inventory-register-title {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-item-filters {
        grid-template-columns: 1fr;
    }
}

/* Guest Laundry tracker and POS voucher */
[data-laundry-stats] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.laundry-tracker {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.laundry-tracker-toolbar,
.laundry-filter-bar,
.laundry-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}
.laundry-tracker-toolbar,
.laundry-filter-bar { border-bottom: 1px solid var(--border); }
.laundry-status-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
}
.laundry-status-tabs button {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    background: transparent;
}
.laundry-status-tabs button:hover,
.laundry-status-tabs button.active {
    color: var(--brand-dark);
    border-color: rgba(15, 118, 110, .25);
    background: var(--brand-soft);
}
.laundry-filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 150px 160px 42px;
    background: #f8fafc;
}
.laundry-filter-bar label { display: grid; gap: 3px; }
.laundry-filter-bar label span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.laundry-filter-search { position: relative; }
.laundry-filter-search i {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--muted);
    transform: translateY(-50%);
}
.laundry-filter-search .form-control { padding-left: 36px; }
.laundry-tracker-table-wrap { min-height: 360px; }
.laundry-tracker-table { margin: 0; }
.laundry-tracker-table th { white-space: nowrap; }
.laundry-tracker-table td { vertical-align: middle; }
.laundry-tracker-table td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}
.laundry-voucher-link {
    padding: 0;
    border: 0;
    color: var(--brand-dark);
    font-weight: 900;
    background: transparent;
}
.laundry-voucher-link:hover { text-decoration: underline; }
.laundry-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}
.laundry-row-overdue { background: #fff7ed; }
.laundry-row-overdue td:first-child { box-shadow: inset 3px 0 #f97316; }
.laundry-table-footer {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    border-top: 1px solid var(--border);
}
.badge-soft-info {
    color: #075985;
    border: 1px solid #bae6fd;
    background: #e0f2fe;
}
.laundry-modal-dialog {
    width: min(96vw, 1500px);
    max-width: 1500px;
    margin: 18px auto;
}
.laundry-voucher-modal .modal-content {
    min-height: calc(100vh - 36px);
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}
.laundry-voucher-modal .modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.laundry-voucher-modal .modal-title {
    margin-top: 2px;
    color: var(--ink);
    font-weight: 900;
}
.laundry-voucher-modal .modal-body {
    padding: 14px 18px;
    background: #f8fafc;
}
.laundry-voucher-modal .laundry-header-strip {
    grid-template-columns: 130px minmax(210px, 1.2fr) minmax(210px, 1.2fr) 145px 115px 145px 115px;
    padding: 0 0 12px;
}
.laundry-voucher-modal .laundry-selector-grid { margin-bottom: 12px; }
.laundry-voucher-modal .laundry-selector-band { background: #fff; }
.laundry-voucher-modal .laundry-choice { min-height: 52px; }
.laundry-pos-grid {
    display: grid;
    grid-template-columns: 280px minmax(430px, 1fr) 300px;
    gap: 12px;
    min-height: 470px;
}
.laundry-voucher-modal .laundry-catalogue-panel,
.laundry-voucher-modal .laundry-lines-panel,
.laundry-checkout-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.laundry-handling-field {
    display: grid;
    gap: 5px;
}
.laundry-handling-field span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.laundry-summary-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.laundry-summary-action .btn { min-width: 56px; }
.laundry-voucher-modal .laundry-catalogue-panel { padding: 12px; }
.laundry-voucher-modal .laundry-category-list { max-height: 520px; }
.laundry-voucher-modal .laundry-lines-panel { overflow: auto; }
.laundry-voucher-modal .laundry-lines-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}
.laundry-checkout-panel {
    position: sticky;
    top: 0;
    align-self: start;
    display: grid;
    gap: 10px;
    padding: 12px;
}
.laundry-adjustment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.laundry-adjustment-grid label { display: grid; gap: 3px; }
.laundry-adjustment-grid span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.hotel-laundry-workspace {
    border: 1px solid #d8e1ec;
    background: #fff;
    min-width: 0;
}
.hotel-laundry-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-bottom: 1px solid #d8e1ec;
}
.hotel-laundry-stats > div {
    min-width: 0;
    padding: 15px 17px;
    border-right: 1px solid #e5ebf2;
}
.hotel-laundry-stats > div:last-child { border-right: 0; }
.hotel-laundry-stats span,
.hotel-laundry-accountability span {
    display: block;
    color: #66758d;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.hotel-laundry-stats strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 22px;
}
.hotel-laundry-stats .is-alert strong,
.hotel-laundry-stats .is-variance strong,
.hotel-laundry-accountability .is-missing strong { color: #dc2626; }
.hotel-laundry-toolbar,
.hotel-laundry-filter,
.hotel-laundry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
}
.hotel-laundry-filter {
    justify-content: flex-start;
    border-top: 1px solid #edf1f6;
    border-bottom: 1px solid #d8e1ec;
    background: #f8fafc;
}
.hotel-laundry-filter > i { color: #64748b; }
.hotel-laundry-filter input { max-width: 460px; }
.hotel-laundry-filter .btn { margin-left: auto; }
.hotel-laundry-table-wrap { min-height: 285px; }
.hotel-laundry-table { margin: 0; }
.hotel-laundry-table th {
    color: #61718a;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}
.hotel-laundry-table td { vertical-align: middle; }
.hotel-laundry-table td small,
.hotel-accountability-cell small {
    display: block;
    margin-top: 3px;
    color: #738198;
}
.hotel-laundry-table tr.is-overdue td { background: #fff8f1; }
.hotel-laundry-table tr.is-overdue td:first-child { box-shadow: inset 3px 0 #e87928; }
.hotel-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.hotel-laundry-footer {
    border-top: 1px solid #d8e1ec;
    color: #66758d;
    font-size: 12px;
}
.hotel-laundry-modal { border-radius: 6px; }
.hotel-laundry-header-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr repeat(4, minmax(125px, 1fr));
    gap: 12px;
}
.hotel-laundry-header-grid label,
.hotel-laundry-note label,
.hotel-laundry-add-line label { display: grid; gap: 5px; min-width: 0; }
.hotel-laundry-header-grid label > span,
.hotel-laundry-note label > span,
.hotel-laundry-add-line label > span {
    color: #53627a;
    font-size: 12px;
    font-weight: 700;
}
.hotel-laundry-note { margin-top: 13px; }
.hotel-laundry-add-line {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 110px auto;
    align-items: end;
    gap: 10px;
    margin-top: 16px;
    padding: 13px;
    border: 1px solid #d8e1ec;
    background: #f8fafc;
}
.hotel-laundry-mode-note {
    margin: 15px 0 8px;
    color: #63728a;
    font-size: 13px;
}
.hotel-laundry-lines { table-layout: fixed; }
.hotel-laundry-lines th { color: #61718a; font-size: 11px; text-transform: uppercase; }
.hotel-laundry-lines th:first-child { width: 42%; }
.hotel-laundry-lines th:last-child { width: 54px; }
.hotel-laundry-lines input { width: 86px; margin: auto; text-align: center; }
.hotel-laundry-accountability {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    width: min(100%, 520px);
    margin: 14px 0 0 auto;
    border: 1px solid #cdd7e4;
}
.hotel-laundry-accountability > div { padding: 10px 12px; border-right: 1px solid #dce4ed; }
.hotel-laundry-accountability > div:last-child { border-right: 0; }
.hotel-laundry-accountability strong { display: block; margin-top: 4px; font-size: 18px; }

@media (max-width: 1200px) {
    .hotel-laundry-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hotel-laundry-stats > div:nth-child(3) { border-right: 0; }
    .hotel-laundry-stats > div:nth-child(-n+3) { border-bottom: 1px solid #e5ebf2; }
    .hotel-laundry-header-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .hotel-laundry-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hotel-laundry-stats > div:nth-child(3) { border-right: 1px solid #e5ebf2; }
    .hotel-laundry-stats > div:nth-child(2n) { border-right: 0; }
    .hotel-laundry-toolbar { align-items: flex-start; flex-direction: column; min-width: 0; }
    .hotel-laundry-toolbar .laundry-status-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }
    .hotel-laundry-toolbar .laundry-status-tabs button { flex: 0 0 auto; }
    .laundry-view-tabs { flex-wrap: wrap; }
    .hotel-laundry-filter input { max-width: none; }
    .hotel-laundry-header-grid { grid-template-columns: 1fr 1fr; }
    .hotel-laundry-add-line { grid-template-columns: 1fr 90px; }
    .hotel-laundry-add-line .btn { grid-column: 1 / -1; }
    .hotel-laundry-accountability { grid-template-columns: 1fr 1fr; }
    .hotel-laundry-accountability > div:nth-child(2) { border-right: 0; }
    .hotel-laundry-accountability > div:nth-child(-n+2) { border-bottom: 1px solid #dce4ed; }
}
.laundry-checkout-panel .laundry-totals-panel {
    padding: 4px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
}
.laundry-totals-panel .is-total {
    margin-top: 2px;
    padding: 11px 0;
    border-top: 2px solid var(--ink);
}
.laundry-totals-panel .is-total strong {
    color: var(--brand-dark);
    font-size: 1.12rem;
}
.laundry-modal-actions { justify-content: space-between; }
.laundry-voucher-modal.is-readonly .laundry-choice,
.laundry-voucher-modal.is-readonly .laundry-item-chip { pointer-events: none; opacity: .68; }

@media (max-width: 1399.98px) {
    .laundry-modal-dialog { width: 100%; margin: 0; }
    .laundry-voucher-modal .modal-content { min-height: 100vh; border-radius: 0; }
    .laundry-voucher-modal .laundry-header-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .laundry-pos-grid { grid-template-columns: 250px minmax(380px, 1fr) 280px; }
}
@media (max-width: 1100px) {
    [data-laundry-stats] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .laundry-filter-bar { grid-template-columns: minmax(220px, 1fr) repeat(3, 145px) 42px; }
    .laundry-pos-grid { grid-template-columns: 240px minmax(0, 1fr); }
    .laundry-checkout-panel { position: static; grid-column: 1 / -1; grid-template-columns: minmax(240px, 1fr) 320px; }
    .laundry-checkout-panel .laundry-totals-panel { grid-column: 2; grid-row: 1; }
}
@media (max-width: 800px) {
    [data-laundry-stats] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .laundry-tracker-toolbar { align-items: stretch; flex-direction: column-reverse; }
    .laundry-filter-bar { grid-template-columns: 1fr 1fr; }
    .laundry-filter-search { grid-column: 1 / -1; }
    .laundry-voucher-modal .laundry-header-strip,
    .laundry-voucher-modal .laundry-selector-grid,
    .laundry-pos-grid,
    .laundry-checkout-panel { grid-template-columns: 1fr; }
    .laundry-checkout-panel > *,
    .laundry-adjustment-grid,
    .laundry-checkout-panel .laundry-totals-panel { grid-column: 1; grid-row: auto; }
    .laundry-voucher-modal .laundry-category-list { max-height: 320px; }
    .laundry-modal-actions { align-items: stretch; flex-direction: column; }
}

.configuration-select-action-group .form-select {
    min-height: 44px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.configuration-field-action-inline {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    border-left: 0;
    border-color: #cbd7e6;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.configuration-link-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.configuration-link-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d6e1ef;
    border-radius: 10px;
    color: #172033;
    background: #f8fbff;
    text-decoration: none;
}

.configuration-link-card:hover {
    border-color: #8cc9c3;
    background: #f1fffc;
}

.configuration-link-card-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #00796f;
    background: #dff8f4;
    flex: 0 0 auto;
}

.configuration-link-card small {
    display: block;
    margin-top: 2px;
    color: #66758c;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .configuration-link-panel {
        grid-template-columns: 1fr;
    }
}

.configuration-modal-dialog-compact .configuration-form .form-control,
.configuration-modal-dialog-compact .configuration-form .form-select {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.configuration-modal-dialog-compact .configuration-form textarea.form-control {
    min-height: 74px;
}

.configuration-modal-dialog-compact .configuration-form .d-flex.mt-3 {
    margin-top: 14px !important;
}

.configuration-upload {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-panel);
}

.configuration-upload-preview {
    display: grid;
    place-items: center;
    width: 112px;
    height: 88px;
    overflow: hidden;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
}

.configuration-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.configuration-upload-preview i {
    font-size: 26px;
}

.configuration-upload-control {
    min-width: 0;
}

.configuration-upload-control small {
    display: block;
    margin-top: 6px;
}

.room-type-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.room-type-swatch {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 7px;
    background: #eaf2ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.configuration-tax-text {
    color: inherit;
    font-weight: 400;
    white-space: nowrap;
}

.amenity-icon-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.amenity-icon-cell i {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 15px;
}

.icon-help-button {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand);
}

.icon-help-button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.amenity-icon-library {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.amenity-icon-option {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon code";
    gap: 2px 10px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
}

.amenity-icon-option:hover {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.amenity-icon-option i {
    grid-area: icon;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 16px;
}

.amenity-icon-option span {
    grid-area: label;
    font-size: 13px;
    font-weight: 800;
}

.amenity-icon-option code {
    grid-area: code;
    color: var(--muted);
    font-size: 12px;
}

.configuration-form input[type="color"].form-control {
    min-height: 46px;
    padding: 6px;
}

@media (max-width: 980px) {
    .configuration-workspace {
        grid-template-columns: 1fr;
    }
    .configuration-tabs {
        position: static;
        max-height: none;
    }
    .configuration-upload {
        grid-template-columns: 1fr;
    }
    .configuration-upload-preview {
        width: 100%;
    }
}

.reservation-wizard-dialog {
    max-width: min(920px, calc(100vw - 32px));
}

.reservation-detail-dialog {
    max-width: min(980px, calc(100vw - 32px));
}

.reservation-detail-shell {
    display: grid;
    gap: 14px;
}

.reservation-detail-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.reservation-detail-title h2 {
    margin: 2px 0 4px;
    font-size: 24px;
    font-weight: 850;
}

.reservation-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.group-booking-detail {
    display: grid;
    gap: 14px;
}

.group-booking-summary-grid,
.group-booking-financial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.group-booking-summary-card,
.group-booking-financial-grid > div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px 14px;
}

.group-booking-summary-card {
    display: grid;
    gap: 4px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.group-booking-summary-card span,
.group-booking-financial-grid span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.group-booking-summary-card strong,
.group-booking-financial-grid strong {
    display: block;
    min-width: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.group-booking-summary-card small {
    color: var(--muted);
    font-size: 12px;
}

.group-booking-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.group-booking-section-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 850;
}

.group-booking-section-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.group-booking-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.group-booking-financial-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.group-booking-financial-grid > div {
    background: #f8fafc;
}

.group-booking-financial-grid strong {
    margin-top: 5px;
    font-size: 17px;
    text-align: right;
}

.group-booking-financial-grid .is-balance {
    border-color: #99f6e4;
    background: #ecfeff;
}

.group-booking-financial-grid .is-balance strong {
    color: #0f766e;
}

.group-booking-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.group-booking-timeline-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.group-booking-timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2563eb;
}

.group-booking-timeline-item.is-success .group-booking-timeline-icon {
    background: #dcfce7;
    color: #15803d;
}

.group-booking-timeline-item.is-info .group-booking-timeline-icon,
.group-booking-timeline-item.is-primary .group-booking-timeline-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.group-booking-timeline-item.is-warning .group-booking-timeline-icon {
    background: #fef3c7;
    color: #b45309;
}

.group-booking-timeline-item.is-danger .group-booking-timeline-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.group-booking-timeline-item strong,
.group-booking-timeline-item p,
.group-booking-timeline-item small {
    display: block;
    min-width: 0;
}

.group-booking-timeline-item strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.group-booking-timeline-item p {
    margin: 2px 0 0;
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
}

.group-booking-timeline-item small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.group-rooming-results {
    position: absolute;
    z-index: 1080;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.reservation-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reservation-inline-stats {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.reservation-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 5px 6px 5px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.reservation-stat-badge strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.reservation-stat-badge-arrivals {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.reservation-stat-badge-arrivals strong {
    color: #1e40af;
}

.reservation-stat-badge-departures {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.reservation-stat-badge-departures strong {
    color: #9a3412;
}

.reservation-stat-badge-confirmed {
    border-color: #99f6e4;
    background: #f0fdfa;
    color: #0f766e;
}

.reservation-stat-badge-confirmed strong {
    color: #115e59;
}

.reservation-row-arrival-today > td:first-child {
    border-left: 4px solid #2563eb;
}

.reservation-row-arrival-today > td {
    background: #eff6ff;
}

.reservation-arrival-today-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 3px 0 2px;
    padding: 2px 7px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.reservation-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.reservation-summary-tile {
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.reservation-summary-tile span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.reservation-summary-tile strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.25;
}

.reservation-summary-tile small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.guest-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, .8fr)) minmax(86px, .45fr) 104px;
    gap: 10px;
    align-items: end;
}

.topbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    background: #f0fdfa;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.guest-check-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.guest-check-option .form-check-input {
    margin-top: 3px;
}

.guest-check-option strong,
.guest-check-option small {
    display: block;
}

.guest-check-option small {
    color: var(--muted);
}

.guest-watch-option {
    border-color: #fecaca;
    background: #fff7f7;
}

.guest-detail-shell {
    display: grid;
    gap: 14px;
}

.guest-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.guest-detail-hero h3 {
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
}

.guest-detail-hero p {
    margin: 5px 0 0;
    color: var(--muted);
}

.guest-detail-content {
    padding-top: 12px;
}

.guest-detail-grid,
.guest-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.guest-detail-grid section,
.guest-activity-grid section {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.guest-detail-grid h4,
.guest-activity-grid h4 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.guest-documents-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.guest-documents-panel h4 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.guest-document-upload {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.guest-document-upload .form-label {
    margin-bottom: 4px;
    font-size: 12px;
}

@media (max-width: 1180px) {
    .guest-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-detail-grid,
    .guest-activity-grid {
        grid-template-columns: 1fr;
    }
}

.reservation-detail-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.reservation-money-list {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 16px;
    margin: 0;
    font-size: 13px;
}

.reservation-money-list dt {
    color: var(--ink);
}

.reservation-money-list dd {
    margin: 0;
    text-align: right;
}

.reservation-line-item,
.reservation-note-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.reservation-line-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.reservation-line-item:last-child,
.reservation-note-item:last-child {
    border-bottom: 0;
}

.reservation-voucher-print {
    color: var(--ink);
}

@media (max-width: 991.98px) {
    .reservation-wizard-dialog,
    .reservation-detail-dialog {
        max-width: calc(100vw - 20px);
        margin-right: auto;
        margin-left: auto;
    }

    .reservation-wizard-dialog [data-wizard-step="3"] .col-lg-6 + .col-lg-6 {
        margin-top: 12px;
    }

    .reservation-detail-hero {
        display: block;
    }

    .reservation-detail-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .reservation-summary-grid,
    .reservation-detail-sections {
        grid-template-columns: 1fr;
    }

    .group-booking-summary-grid,
    .group-booking-financial-grid {
        grid-template-columns: 1fr;
    }

    .group-booking-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .group-booking-section-actions {
        justify-content: flex-start;
    }

    .group-booking-timeline {
        grid-template-columns: 1fr;
    }

    .group-booking-financial-grid strong {
        text-align: left;
    }
}

.room-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.room-management-form-card {
    min-width: 0;
}

.compact-tabs .nav-link {
    font-size: 13px;
    font-weight: 800;
}

.report-center {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: calc(100vh - 122px);
    border: 1px solid #cfd8e3;
    background: #fff;
}
.report-tree-panel {
    min-width: 0;
    border-right: 1px solid #d7e0eb;
    background: #f5f7fa;
}
.report-search {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-bottom: 1px solid #d7e0eb;
}
.report-search i {
    color: #536276;
    text-align: center;
}
.report-search input {
    min-width: 0;
    height: 32px;
    border: 1px solid #cfd8e3;
    background: #fff;
    padding: 5px 8px;
    font-size: 13px;
}
.report-search button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cfd8e3;
    background: #fff;
    color: #536276;
}
.report-tree {
    max-height: calc(100vh - 188px);
    overflow: auto;
    padding: 8px 8px 18px;
}
.report-tree details {
    margin: 2px 0;
}
.report-tree summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.report-tree summary::-webkit-details-marker {
    display: none;
}
.report-tree summary i {
    color: #64748b;
    font-size: 12px;
}
.report-tree details[open] summary i::before {
    content: "\f2e5";
}
.report-tree details > div {
    position: relative;
    display: grid;
    gap: 1px;
    margin-left: 7px;
    padding-left: 18px;
}
.report-tree details > div::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 8px;
    left: 5px;
    border-left: 1px dotted #9aa8b8;
}
.report-tree button {
    position: relative;
    min-height: 24px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #1f2937;
    padding: 2px 6px;
    text-align: left;
    font-size: 12px;
    font-weight: 650;
}
.report-tree button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -13px;
    width: 11px;
    border-top: 1px dotted #9aa8b8;
}
.report-tree button:hover,
.report-tree button.active {
    background: #e6f7f4;
    color: #005c55;
}
.report-workspace {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-width: 0;
    background: #fff;
}
.report-titlebar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 14px 16px;
    border-bottom: 1px solid #cfd8e3;
    background: #fff;
}
.report-titlebar h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 850;
}
.report-titlebar p {
    margin: 5px 0 0;
    color: #334155;
    font-size: 13px;
}
.report-filter-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(190px, 1fr));
    align-items: start;
    gap: 12px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #d7e0eb;
}
.report-filter-box {
    display: contents;
}
.report-filter-box legend {
    display: none;
}
.report-filter-grid {
    display: contents;
}
.report-filter-grid label {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 5px;
    min-width: 0;
}
.report-filter-grid label > span {
    color: #1f2937;
    font-size: 12px;
    font-weight: 750;
}
.report-filter-grid .form-control,
.report-filter-grid .form-select {
    width: 100%;
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 0;
    font-size: 13px;
}
.report-check-grid {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid #d1d8e2;
}
.report-check-grid label,
.report-radio-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
}
.report-radio-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px solid #d1d8e2;
}
.report-radio-row > span {
    flex-basis: 100%;
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
}
.report-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 16px 78px;
}
.report-preview-grid .mini-panel {
    min-width: 0;
    max-height: 340px;
    overflow: auto;
}
.report-launch-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 16px 78px;
    padding: 18px;
    border: 1px dashed #b9c3cf;
    background: #f8fafc;
    color: #334155;
}
.report-launch-panel i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e6f7f4;
    color: #005c55;
    font-size: 20px;
}
.report-launch-panel strong,
.report-launch-panel span {
    display: block;
}
.report-launch-panel strong {
    color: #172033;
    font-size: 14px;
}
.report-launch-panel span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}
.report-preview-modal .modal-dialog {
    width: min(1180px, calc(100vw - 2rem));
    max-width: 1180px;
}
.report-preview-modal .modal-content {
    min-height: calc(100vh - 3rem);
    border-radius: 8px;
}
.report-preview-modal .modal-header {
    align-items: flex-start;
}
.report-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.report-preview-modal .modal-body {
    background: #eef2f7;
}
.report-document-stage {
    min-width: 0;
    padding: 14px;
    overflow: auto;
    background: #eef2f7;
}
.report-paper {
    width: min(100%, 1120px);
    min-height: 780px;
    margin: 0 auto;
    padding: 18px 20px 34px;
    border: 2px solid #303030;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.25;
}
.report-paper-wide {
    width: min(100%, 1280px);
    font-size: 11px;
}
.report-paper-head {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 120px;
    gap: 16px;
    align-items: start;
}
.report-print-meta {
    display: grid;
    gap: 7px;
}
.report-print-meta div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
}
.report-print-meta strong,
.report-page-no strong {
    font-weight: 800;
}
.report-paper-title {
    text-align: center;
}
.report-paper-title h2 {
    margin: 0;
    color: #00008b;
    font-size: 20px;
    font-weight: 850;
}
.report-paper-title h3 {
    margin: 3px 0 0;
    color: #9c129e;
    font-size: 16px;
    font-weight: 850;
}
.report-page-no {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.report-paper-criteria {
    margin-top: 15px;
    padding: 3px 0 6px;
    border-top: 2px solid #555;
    border-bottom: 2px solid #222;
    font-size: 12px;
}
.report-paper-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
}
.report-paper-table th {
    padding: 5px 6px;
    border-bottom: 2px solid #222;
    font-size: 12px;
    font-weight: 850;
    text-align: right;
}
.report-paper-table th:first-child {
    text-align: left;
}
.report-paper-table td {
    padding: 4px 6px;
    vertical-align: top;
}
.report-paper-table small {
    display: block;
    margin-top: 2px;
    color: #333;
}
.report-arrival-table th,
.report-arrival-table td {
    padding: 4px;
}
.report-arrival-table th:nth-child(1),
.report-arrival-table th:nth-child(2),
.report-arrival-table td:nth-child(1),
.report-arrival-table td:nth-child(2) {
    text-align: left;
}
.report-paper-table .num {
    border-bottom: 1px dotted #333;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.report-daily-flash-table th:nth-child(1),
.report-daily-flash-table td:nth-child(1),
.report-daily-flash-table th:nth-child(4),
.report-daily-flash-table td:nth-child(4) {
    text-align: left;
}
.report-daily-flash-table th:nth-child(1),
.report-daily-flash-table td:nth-child(1),
.report-daily-flash-table th:nth-child(4),
.report-daily-flash-table td:nth-child(4) {
    width: 28%;
}
.report-daily-flash-table th:nth-child(2),
.report-daily-flash-table th:nth-child(3),
.report-daily-flash-table th:nth-child(5),
.report-daily-flash-table td:nth-child(2),
.report-daily-flash-table td:nth-child(3),
.report-daily-flash-table td:nth-child(5) {
    width: 14%;
}
.report-daily-flash-table .section-row td {
    text-align: center;
    letter-spacing: .04em;
}
.report-room-rate-table {
    font-size: 10px;
}
.report-room-rate-table th,
.report-room-rate-table td {
    padding: 3px 4px;
}
.report-room-rate-table th:nth-child(1),
.report-room-rate-table th:nth-child(2),
.report-room-rate-table th:nth-child(3),
.report-room-rate-table th:nth-child(4),
.report-room-rate-table th:nth-child(5),
.report-room-rate-table th:nth-child(6),
.report-room-rate-table th:nth-child(13),
.report-room-rate-table td:nth-child(1),
.report-room-rate-table td:nth-child(2),
.report-room-rate-table td:nth-child(3),
.report-room-rate-table td:nth-child(4),
.report-room-rate-table td:nth-child(5),
.report-room-rate-table td:nth-child(6),
.report-room-rate-table td:nth-child(13) {
    text-align: left;
}
.report-daily-summary-table {
    font-size: 10px;
}
.report-daily-summary-table th:first-child,
.report-daily-summary-table td:first-child {
    width: 42%;
    text-align: left;
}
.report-daily-summary-table th:not(:first-child),
.report-daily-summary-table td:not(:first-child) {
    width: 19.33%;
}
.report-settlement-table {
    font-size: 9.5px;
}
.report-settlement-table th,
.report-settlement-table td {
    padding: 3px 4px;
}
.report-settlement-table th:nth-child(1),
.report-settlement-table th:nth-child(2),
.report-settlement-table th:nth-child(3),
.report-settlement-table th:nth-child(4),
.report-settlement-table th:nth-child(13),
.report-settlement-table td:nth-child(1),
.report-settlement-table td:nth-child(2),
.report-settlement-table td:nth-child(3),
.report-settlement-table td:nth-child(4),
.report-settlement-table td:nth-child(13) {
    text-align: left;
}
.report-night-audit-paper {
    font-size: 9px;
}
.report-section-title {
    margin: 12px 0 4px;
    font-size: 11px;
    font-weight: 850;
}
.report-night-audit-table,
.report-night-audit-summary-table {
    font-size: 8.5px;
}
.report-night-audit-table th,
.report-night-audit-table td,
.report-night-audit-summary-table th,
.report-night-audit-summary-table td {
    padding: 2px 3px;
}
.report-night-audit-table th:first-child,
.report-night-audit-table td:first-child,
.report-night-audit-summary-table th:first-child,
.report-night-audit-summary-table td:first-child {
    text-align: left;
}
.report-transaction-table {
    font-size: 8.5px;
}
.report-transaction-table th,
.report-transaction-table td {
    padding: 2px 3px;
}
.report-transaction-table th:nth-child(1),
.report-transaction-table th:nth-child(2),
.report-transaction-table th:nth-child(3),
.report-transaction-table th:nth-child(4),
.report-transaction-table td:nth-child(1),
.report-transaction-table td:nth-child(2),
.report-transaction-table td:nth-child(3),
.report-transaction-table td:nth-child(4) {
    text-align: left;
}
.report-paper-table .section-row td {
    padding-top: 7px;
    font-weight: 850;
}
.report-paper-table .group-total td,
.report-paper-table .grand-total td {
    font-weight: 850;
}
.report-paper-table .group-total .num,
.report-paper-table .grand-total .num {
    border-top: 1px dotted #333;
    border-bottom: 1px dotted #333;
}
.report-room-status-table .section-row td {
    padding-top: 10px;
    border-bottom: 3px double #222;
}
.report-room-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px 14px;
    padding: 7px 0 10px;
    border-bottom: 1px dotted #333;
}
.report-room-chip {
    display: inline-flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    line-height: 1.1;
    white-space: normal;
}
.report-room-chip strong,
.report-room-chip small {
    overflow-wrap: anywhere;
}
.report-room-chip strong {
    font-size: 11px;
    font-weight: 850;
}
.report-room-chip small {
    margin: 0;
    color: #111;
    font-size: 10px;
    font-weight: 700;
}
.report-user-shift-table th,
.report-user-shift-table td {
    text-align: left;
}
.report-user-shift-table th:nth-child(7),
.report-user-shift-table td:nth-child(7) {
    text-align: right;
    white-space: nowrap;
}
.report-user-shift-table th:nth-child(5),
.report-user-shift-table td:nth-child(5) {
    width: 28%;
}
.report-aging-table th,
.report-aging-table td {
    text-align: right;
}
.report-aging-table th:first-child,
.report-aging-table td:first-child {
    width: 22%;
    text-align: left;
}
.report-aging-table th:nth-child(2),
.report-aging-table td:nth-child(2) {
    text-align: center;
}
.report-city-ledger-register-table th,
.report-city-ledger-register-table td {
    text-align: left;
}
.report-city-ledger-register-table th:nth-child(9),
.report-city-ledger-register-table td:nth-child(9),
.report-city-ledger-register-table th:nth-child(10),
.report-city-ledger-register-table td:nth-child(10),
.report-city-ledger-register-table th:nth-child(11),
.report-city-ledger-register-table td:nth-child(11) {
    text-align: right;
}
.report-city-ledger-register-table .city-ledger-account-row td {
    padding-top: 2px;
    padding-bottom: 2px;
    font-weight: 800;
}
.report-direct-billing-table th,
.report-direct-billing-table td {
    text-align: left;
}
.report-direct-billing-table th:nth-child(5),
.report-direct-billing-table td:nth-child(5),
.report-direct-billing-table th:nth-child(6),
.report-direct-billing-table td:nth-child(6),
.report-direct-billing-table th:nth-child(7),
.report-direct-billing-table td:nth-child(7) {
    text-align: right;
}
.report-paper-summary {
    margin-top: 12px;
}
.report-paper-summary h4 {
    width: 44%;
    margin: 0 0 4px;
    padding-bottom: 3px;
    border-bottom: 4px double #222;
    font-size: 15px;
    font-weight: 850;
}
.report-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #b9c3cf;
    background: rgba(255,255,255,.96);
}
.report-actionbar > div {
    display: flex;
    gap: 8px;
}

@media print {
    @page {
        margin: 8mm;
    }
    html,
    body {
        width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
    body * {
        visibility: hidden !important;
    }
    #reportPreviewModal.show,
    #reportPreviewModal.show * {
        visibility: visible !important;
    }
    #reportPreviewModal.show {
        position: absolute;
        inset: 0;
        display: block !important;
        overflow: visible !important;
        background: #fff !important;
    }
    #reportPreviewModal.show .modal-dialog,
    #reportPreviewModal.show .modal-content,
    #reportPreviewModal.show .modal-body,
    #reportPreviewModal.show .report-document-stage {
        width: 100% !important;
        max-width: none !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    #reportPreviewModal.show .modal-header,
    #reportPreviewModal.show .modal-footer,
    .modal-backdrop {
        display: none !important;
    }
    .report-paper {
        width: 100%;
        min-height: auto;
        margin: 0;
        border: 0;
        box-shadow: none;
    }
}

.room-amenity-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}

.room-amenity-option {
    min-height: 58px;
    padding: 10px 10px 10px 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.room-amenity-option .form-check-input {
    margin-left: -24px;
}

.room-amenity-option strong,
.room-amenity-option small {
    display: block;
}

.room-amenity-option small {
    color: var(--muted);
}

.room-preview-panel {
    transition: box-shadow .18s ease, transform .18s ease;
}

.room-preview-panel.is-room-preview-fullscreen {
    position: fixed;
    inset: 14px;
    z-index: 1085;
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.room-preview-panel.is-room-preview-fullscreen [data-room-preview] {
    min-height: 0;
    flex: 1;
}

.room-preview-fullscreen-open {
    overflow: hidden;
}

.room-preview-fullscreen-open .swal2-container {
    z-index: 1095;
}

.room-layout-board {
    position: relative;
    min-height: 430px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(#eef2f7 1px, transparent 1px),
        linear-gradient(90deg, #eef2f7 1px, transparent 1px),
        #f8fafc;
    background-size: 35px 35px;
}

.room-preview-panel.is-room-preview-fullscreen .room-layout-board {
    height: 100%;
    min-height: calc(100vh - 145px);
}

.room-layout-board-grouped {
    display: grid;
    gap: 14px;
    padding: 12px;
}

.room-layout-floor {
    position: relative;
    min-width: 430px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(#eef2f7 1px, transparent 1px),
        linear-gradient(90deg, #eef2f7 1px, transparent 1px),
        rgba(255,255,255,.62);
    background-size: 35px 35px;
}

.room-layout-floor-label {
    position: sticky;
    top: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 8px 0 8px 0;
    background: #ffffff;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
}

.room-layout-button {
    position: absolute;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 40px;
    min-height: 32px;
    border: 2px solid var(--brand);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.room-layout-button strong {
    font-size: 13px;
    line-height: 1.1;
}

.room-layout-button span {
    font-size: 11px;
    color: var(--muted);
}

.room-preview-panel.is-room-preview-fullscreen .room-layout-button[data-room-layout-card] {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.room-layout-button.is-dragging {
    z-index: 5;
    cursor: grabbing;
    opacity: 0.95;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.room-layout-draft {
    border-style: dashed;
    border-color: #2563eb;
    background: #eff6ff;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.room-layout-draft.is-dragging {
    cursor: grabbing;
    opacity: 0.92;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.is-room-dragging {
    cursor: grabbing;
    user-select: none;
}

@media (max-width: 1180px) {
    .room-management-grid {
        grid-template-columns: 1fr;
    }
}

.night-audit-command {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.night-audit-command h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
}

.night-audit-command p,
.night-audit-toolbar p {
    margin: 4px 0 0;
    color: #53627a;
}

.night-audit-date-pill {
    min-width: 360px;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.night-audit-date-pill span,
.night-audit-date-pill em {
    display: block;
    color: #64748b;
    font-style: normal;
    font-weight: 800;
}

.night-audit-date-pill strong {
    display: block;
    font-size: 26px;
    font-weight: 900;
    margin: 1px 0;
    white-space: nowrap;
}

.night-audit-date-pill b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.night-audit-date-pill b.is-ready {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.night-audit-date-pill b.is-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.night-audit-metrics {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.night-audit-metric {
    position: relative;
    min-width: 0;
    min-height: 86px;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px 12px 42px;
    overflow: hidden;
}

.night-audit-metric::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #94a3b8;
}

.night-audit-metric i {
    position: absolute;
    left: 14px;
    top: 15px;
    color: #64748b;
    font-size: 18px;
}

.night-audit-metric span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.night-audit-metric strong {
    display: block;
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    margin-top: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.night-audit-metric.is-danger::before {
    background: #dc2626;
}

.night-audit-metric.is-warning::before {
    background: #f59e0b;
}

.night-audit-metric.is-revenue::before,
.night-audit-metric.is-payment::before {
    background: #0f766e;
}

.night-audit-metric.is-balance::before {
    background: #2563eb;
}

.night-audit-metric.is-credit::before {
    background: #7c3aed;
}

.night-audit-toolbar,
.night-audit-complete-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
}

.night-audit-toolbar h3,
.night-audit-complete-panel h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.night-audit-target-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.night-audit-target-dates > span,
.night-audit-target-dates > label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.night-audit-target-dates > label {
    margin: 0;
}

.night-audit-target-dates > label > span {
    white-space: nowrap;
}

.night-audit-target-dates input[type="date"] {
    min-width: 150px;
    height: 34px;
    padding: 4px 8px;
    font-weight: 850;
}

.night-audit-target-dates strong {
    color: #111827;
    font-size: 14px;
}

.night-audit-target-dates .is-blocked {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.night-audit-target-summary {
    margin-top: 8px;
    color: #53627a;
    font-size: 13px;
    font-weight: 750;
}

.night-audit-wizard {
    display: grid;
    gap: 14px;
}

.night-audit-stepper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.night-audit-stepper-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 9px;
    align-items: center;
    text-align: left;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    padding: 11px 12px;
    min-height: 76px;
    color: #334155;
}

.night-audit-stepper-item span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.night-audit-stepper-item strong {
    font-size: 13px;
    line-height: 1.15;
    font-weight: 900;
}

.night-audit-stepper-item em {
    grid-column: 2;
    color: #64748b;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.night-audit-stepper-item.is-active {
    border-color: #0f766e;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
}

.night-audit-stepper-item.is-active span,
.night-audit-stepper-item.is-passed span {
    background: #0f766e;
    color: #fff;
}

.night-audit-stepper-item.is-warning span {
    background: #f59e0b;
    color: #fff;
}

.night-audit-stepper-item.is-blocked span {
    background: #dc2626;
    color: #fff;
}

.night-audit-panes {
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.night-audit-pane {
    display: none;
}

.night-audit-pane.is-active {
    display: block;
}

.night-audit-pane-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.night-audit-pane-head span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.night-audit-pane-head h3 {
    margin: 2px 0 4px;
    font-size: 22px;
    font-weight: 900;
}

.night-audit-pane-head p {
    margin: 0;
    color: #64748b;
}

.night-audit-review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 20px;
}

.night-audit-review-grid span {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
    color: #64748b;
    font-weight: 800;
}

.night-audit-review-grid strong {
    display: block;
    color: #111827;
    font-size: 17px;
    margin-top: 3px;
}

.night-audit-pane-note {
    margin: 0 20px 20px;
    border: 1px solid #bdeee6;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0f766e;
    padding: 12px 14px;
    font-weight: 800;
}

.night-audit-pane-note.is-blocked {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.night-audit-wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.night-audit-wizard-footer [data-night-audit-refresh] {
    margin-left: auto;
}

.night-audit-step {
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.night-audit-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.night-audit-step-head > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f766e;
    color: #fff;
    font-weight: 900;
}

.night-audit-step-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.night-audit-step-head p {
    margin: 0;
    color: #64748b;
}

.night-audit-check-list {
    display: grid;
}

.night-audit-check {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf2f7;
}

.night-audit-check:last-child {
    border-bottom: 0;
}

.night-audit-check h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 900;
}

.night-audit-check p {
    margin: 0;
    color: #53627a;
}

.night-audit-check.is-blocker {
    background: #fff7f7;
}

.night-audit-check.is-warning {
    background: #fffbeb;
}

.night-audit-check-side {
    display: flex;
    align-items: end;
    flex-direction: column;
    gap: 5px;
    min-width: 100px;
}

.night-audit-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
}

.night-audit-badge-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.night-audit-badge-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.night-audit-badge-blocker {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.night-audit-financial-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.night-audit-financial-grid span {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    color: #64748b;
    font-weight: 800;
}

.night-audit-financial-grid strong {
    display: block;
    color: #111827;
}

.night-audit-complete-panel textarea {
    max-width: 420px;
}

@media (max-width: 1100px) {
    .night-audit-metrics,
    .night-audit-financial-grid,
    .night-audit-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .night-audit-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .night-audit-command,
    .night-audit-toolbar,
    .night-audit-complete-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .night-audit-date-pill {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .night-audit-metrics,
    .night-audit-stepper,
    .night-audit-review-grid {
        grid-template-columns: 1fr;
    }
    .night-audit-date-pill {
        flex-direction: column;
        align-items: flex-start;
    }
    .night-audit-pane-head,
    .night-audit-check,
    .night-audit-wizard-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .night-audit-wizard-footer [data-night-audit-refresh] {
        margin-left: 0;
    }
}

.hk-console-header {
    align-items: flex-end;
}

.hk-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hk-filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.6fr auto;
    gap: 12px;
    align-items: end;
    background: #fff;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: 14px;
    margin-top: 16px;
}

.hk-filter-reset {
    align-self: end;
}

.hk-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.hk-kpi {
    border: 1px solid #dbe5f1;
    border-left: 5px solid #0f766e;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 78px;
}

.hk-kpi span {
    display: block;
    color: #64748b;
    font-weight: 900;
    font-size: .75rem;
    text-transform: uppercase;
}

.hk-kpi strong {
    display: block;
    margin-top: 12px;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1;
}

.hk-kpi-dirty { border-left-color: #f97316; }
.hk-kpi-cleaning { border-left-color: #2563eb; }
.hk-kpi-clean { border-left-color: #16a34a; }
.hk-kpi-ready { border-left-color: #16a34a; }
.hk-kpi-ooo { border-left-color: #dc2626; }
.hk-kpi-tasks { border-left-color: #7c3aed; }

.hk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
}

.hk-board-panel,
.hk-side-card {
    background: #fff;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: 16px;
}

.hk-board-head,
.hk-side-heading,
.hk-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.hk-board-head h2,
.hk-side-heading h3,
.hk-detail h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.hk-board-head p,
.hk-detail-head p {
    margin: 4px 0 0;
    color: #64748b;
}

.hk-view-toggle {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    overflow: hidden;
    background: #f8fafc;
}

.hk-view-toggle button {
    border: 0;
    background: transparent;
    color: #475569;
    font-weight: 900;
    padding: 9px 12px;
}

.hk-view-toggle button.active {
    background: #0f766e;
    color: #fff;
}

.hk-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.hk-room-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    text-align: left;
    border: 1px solid #dbe5f1;
    border-top: 5px solid #0f766e;
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    color: #0f172a;
    transition: transform .15s ease, box-shadow .15s ease;
}

.hk-room-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.hk-room-card strong {
    display: block;
    margin-top: 38px;
    font-size: 1.15rem;
    font-weight: 900;
}

.hk-room-card small,
.hk-room-card em {
    display: block;
    color: #64748b;
    font-style: normal;
    line-height: 1.2;
}

.hk-room-status {
    position: absolute;
    top: 10px;
    right: 10px;
}

.hk-room-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.hk-room-dirty { border-top-color: #f97316; background: #fff7ed; }
.hk-room-clean { border-top-color: #16a34a; }
.hk-room-inspected { border-top-color: #16a34a; background: #f0fdf4; }
.hk-room-out_of_order,
.hk-room-out_of_service { border-top-color: #dc2626; background: #fef2f2; }
.hk-room-card.is-occupied { box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18); }

.hk-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.hk-side-heading span {
    color: #64748b;
    font-size: .8rem;
    font-weight: 900;
}

.hk-workload-row,
.hk-priority-row,
.hk-history-row {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    padding: 10px 0;
    text-align: left;
}

.hk-workload-row strong,
.hk-priority-row strong,
.hk-history-row strong {
    display: block;
    font-weight: 900;
    color: #0f172a;
}

.hk-workload-row span,
.hk-priority-row small,
.hk-history-row small,
.hk-history-row em {
    display: block;
    color: #64748b;
    font-style: normal;
    margin-top: 2px;
}

.hk-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #f8fafc;
}

.hk-status-dirty,
.hk-priority-high {
    color: #9a3412;
    border-color: #fdba74;
    background: #ffedd5;
}

.hk-task-completed,
.hk-priority-normal {
    color: #92400e;
    border-color: #fcd34d;
    background: #fef3c7;
}

.hk-status-clean {
    color: #166534;
    border-color: #86efac;
    background: var(--fo-clean-pill-color, #dcfce7);
}

.hk-status-inspected,
.hk-task-inspected,
.hk-occupancy-vacant {
    color: #166534;
    border-color: #86efac;
    background: #dcfce7;
}

.hk-status-out_of_order,
.hk-status-out_of_service,
.hk-task-cancelled,
.hk-priority-urgent {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fee2e2;
}

.hk-task-open,
.hk-priority-low,
.hk-muted {
    color: #475569;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.hk-task-in_progress,
.hk-occupancy-occupied {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #dbeafe;
}

.mt-console-header { align-items: flex-end; }
.mt-page-actions { display: flex; justify-content: flex-end; }

.mt-filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(5, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    border: 1px solid #dbe5f1;
    background: #fff;
    border-radius: 10px;
    padding: 14px;
}

.mt-search-field { min-width: 0; }
.mt-filter-reset { align-self: end; }

.mt-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.mt-kpi {
    border: 1px solid #dbe5f1;
    border-left: 4px solid #0f766e;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    min-height: 78px;
}

.mt-kpi span {
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mt-kpi strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-kpi-urgent { border-left-color: #dc2626; }
.mt-kpi-request { border-left-color: #0891b2; }
.mt-kpi-active { border-left-color: #2563eb; }
.mt-kpi-resolved { border-left-color: #16a34a; }
.mt-kpi-ooo { border-left-color: #f97316; }
.mt-kpi-cost { border-left-color: #7c3aed; }

.mt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
}

.mt-register-panel,
.mt-side-panel {
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    background: #fff;
    padding: 16px;
}

.mt-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mt-table td { border-color: #e2e8f0; }

.mt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f8fafc;
    color: #334155;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mt-priority-low { color: #166534; border-color: #86efac; background: #dcfce7; }
.mt-priority-medium { color: #1d4ed8; border-color: #93c5fd; background: #dbeafe; }
.mt-priority-high { color: #9a3412; border-color: #fdba74; background: #ffedd5; }
.mt-priority-urgent { color: #991b1b; border-color: #fca5a5; background: #fee2e2; }
.mt-status-open { color: #1d4ed8; border-color: #93c5fd; background: #dbeafe; }
.mt-status-request { color: #0e7490; border-color: #67e8f9; background: #cffafe; }
.mt-status-assigned { color: #3730a3; border-color: #c4b5fd; background: #ede9fe; }
.mt-status-accepted { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.mt-status-in_progress { color: #92400e; border-color: #fcd34d; background: #fef3c7; }
.mt-status-on_hold { color: #9a3412; border-color: #fdba74; background: #ffedd5; }
.mt-status-completed { color: #047857; border-color: #6ee7b7; background: #d1fae5; }
.mt-status-inspected { color: #166534; border-color: #86efac; background: #dcfce7; }
.mt-status-resolved { color: #166534; border-color: #86efac; background: #dcfce7; }
.mt-status-closed { color: #334155; border-color: #cbd5e1; background: #f1f5f9; }
.mt-status-cancelled { color: #991b1b; border-color: #fca5a5; background: #fee2e2; }

.mt-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.mt-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.mt-side-panel h3,
.mt-detail h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 900;
}

.mt-side-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}

.mt-side-row:last-child { border-bottom: 0; }

.mt-side-row strong,
.mt-side-row small,
.mt-activity strong,
.mt-activity span,
.mt-activity small {
    display: block;
}

.mt-side-row small,
.mt-activity small { color: #64748b; }

.mt-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ccfbf1;
    color: #0f766e;
    font-weight: 900;
}

.mt-activity,
.mt-log {
    border-left: 3px solid #0f766e;
    padding: 0 0 12px 12px;
    margin-bottom: 12px;
}

.mt-detail-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #dbe5f1;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.mt-detail-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 900;
}

.mt-detail-head p {
    margin: 4px 0 0;
    color: #64748b;
}

.mt-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    overflow: hidden;
}

.mt-detail-grid section { padding: 16px; }
.mt-detail-grid section + section { border-left: 1px solid #dbe5f1; }

.mt-detail dl {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 9px 14px;
    margin: 0;
}

.mt-detail dt {
    color: #64748b;
    font-weight: 900;
}

.mt-detail dd {
    margin: 0;
    font-weight: 800;
}

.mt-notes,
.mt-timeline {
    margin-top: 14px;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: 16px;
}

.mt-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: 12px;
}

.mt-log strong,
.mt-log span,
.mt-log small {
    display: block;
}

.mt-log small { color: #64748b; }

.mt-swal-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    text-align: left;
}

.mt-swal-form.single { grid-template-columns: 1fr; }

.mt-swal-form label {
    color: #475569;
    font-weight: 900;
}

.mt-swal-form .span-2 { grid-column: 1 / -1; }

.mt-inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

@media (max-width: 1200px) {
    .mt-filter-panel,
    .mt-layout,
    .mt-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .mt-side { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .mt-filter-panel,
    .mt-layout,
    .mt-kpis,
    .mt-detail-grid,
    .mt-swal-form {
        grid-template-columns: 1fr;
    }

    .mt-detail-grid section + section {
        border-left: 0;
        border-top: 1px solid #dbe5f1;
    }
}

.hk-detail-head {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.hk-detail-head h2 {
    margin: 0;
    font-weight: 900;
}

.hk-detail-grid,
.hk-history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hk-detail-grid section,
.hk-history-grid section {
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: 14px;
}

.hk-detail dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 12px;
    margin: 12px 0 0;
}

.hk-detail dt {
    color: #64748b;
    font-weight: 900;
}

.hk-detail dd {
    margin: 0;
    font-weight: 800;
}

.hk-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hk-table-wrap {
    margin-top: 16px;
}

.hk-table th {
    color: #64748b;
    font-size: .76rem;
    text-transform: uppercase;
}

.hk-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.hk-swal-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}

.hk-swal-form.single {
    grid-template-columns: 1fr;
}

.hk-swal-form .span-2 {
    grid-column: 1 / -1;
}

.hk-swal-form label {
    color: #475569;
    font-weight: 900;
    font-size: .82rem;
}

.hk-swal-form .form-control,
.hk-swal-form .form-select {
    margin-top: 5px;
}

.hk-checklist-preview {
    padding: 12px 14px;
    border: 1px solid #b9e8df;
    border-left: 4px solid #0f8b7f;
    border-radius: 6px;
    background: #f2fbf9;
    color: #334155;
}

.hk-checklist-preview.is-required {
    border-color: #fed7aa;
    border-left-color: #f59e0b;
    background: #fffaf0;
}

.hk-checklist-preview > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hk-checklist-preview strong,
.hk-checklist-preview span {
    display: block;
}

.hk-checklist-preview > div > span,
.hk-checklist-preview > span {
    color: #64748b;
    font-size: .78rem;
}

.hk-checklist-preview ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 14px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.hk-checklist-preview li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
    color: #475569;
    font-size: .78rem;
}

.hk-checklist-preview li i,
.hk-checklist-preview li b {
    color: #0f8b7f;
}

.hk-checklist-preview li.more {
    color: #64748b;
    font-style: italic;
}

@media (max-width: 1180px) {
    .hk-filter-panel,
    .hk-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hk-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hk-filter-panel,
    .hk-kpis,
    .hk-detail-grid,
    .hk-history-grid,
    .hk-swal-form {
        grid-template-columns: 1fr;
    }
    .hk-checklist-preview ul {
        grid-template-columns: 1fr;
    }
    .hk-console-header,
    .hk-board-head,
    .hk-detail-head {
        flex-direction: column;
        align-items: stretch;
    }
    .hk-page-actions {
        justify-content: stretch;
    }
    .hk-page-actions .btn {
        width: 100%;
    }
}
.property-logo-thumb,
.property-logo-preview {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
}

.property-logo-thumb img,
.property-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.property-logo-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfdff;
}
.required-mark {
    color: #dc2626;
    font-weight: 800;
    margin-left: 4px;
    line-height: 1;
    vertical-align: top;
}

.city-ledger-filters {
    display: grid;
    grid-template-columns: minmax(240px, 1.7fr) repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.misc-sales-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.misc-sales-stat-grid .stat-card strong {
    font-size: 26px;
    line-height: 30px;
    overflow-wrap: anywhere;
}

.misc-sales-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.city-ledger-filters label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.misc-sales-filters label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.city-ledger-statement-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.city-ledger-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 2px 0 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
}

.city-ledger-detail-header h3 {
    margin: 2px 0 4px;
    font-size: 1.55rem;
}

.city-ledger-detail-header p {
    margin: 0;
    color: var(--muted);
}

.city-ledger-detail-header p span { margin: 0 6px; }

.city-ledger-balance {
    min-width: 220px;
    display: grid;
    justify-items: end;
    gap: 2px;
    padding-left: 20px;
    border-left: 3px solid #0f766e;
}

.city-ledger-balance span,
.city-ledger-statement-summary small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.city-ledger-balance strong { font-size: 1.35rem; }
.city-ledger-balance small { color: var(--muted); }

.city-ledger-statement-summary > span {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8fafc;
}

.city-ledger-statement-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-ledger-statement-filters {
    display: grid;
    grid-template-columns: minmax(230px, 1.6fr) minmax(135px, .8fr) minmax(135px, .8fr) minmax(170px, 1fr) minmax(135px, .8fr) 90px auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    background: #fbfdff;
}

.city-ledger-statement-filters label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.city-ledger-statement-filters label > span {
    color: #44546a;
    font-size: .78rem;
    font-weight: 800;
}

.city-ledger-statement-filters .btn { min-height: 42px; }

.city-ledger-statement-register-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 2px 0 10px;
}

.city-ledger-statement-register-head h4 { margin: 0 0 2px; font-size: 1.15rem; }
.city-ledger-statement-register-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.city-ledger-statement-totals { display: flex; gap: 18px; }
.city-ledger-statement-totals span { color: var(--muted); font-size: .8rem; }
.city-ledger-statement-totals strong { color: var(--text); margin-left: 5px; }
.city-ledger-statement-head-actions { display: flex; align-items: center; gap: 18px; }
.city-ledger-statement th { white-space: nowrap; }
.city-ledger-statement tr.city-ledger-receipt-void > td {
    color: #b91c1c;
    background: #fff5f5;
}
.city-ledger-statement tr.city-ledger-receipt-void > td:nth-child(n+2):not(:last-child) {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.city-ledger-statement tr.city-ledger-receipt-void .badge {
    text-decoration: none;
}
[data-city-ledger-statement-results].is-loading { opacity: .55; pointer-events: none; }

@media (max-width: 1100px) {
    .misc-sales-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .misc-sales-stat-grid .stat-card strong { font-size: 24px; line-height: 28px; }
    .misc-sales-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .city-ledger-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .city-ledger-statement-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .misc-sales-stat-grid,
    .misc-sales-filters,
    .city-ledger-filters,
    .city-ledger-statement-summary,
    .city-ledger-statement-filters { grid-template-columns: 1fr; }
    .misc-sales-stat-grid .stat-card strong { font-size: 22px; line-height: 26px; }
    .city-ledger-detail-header,
    .city-ledger-statement-register-head { align-items: stretch; flex-direction: column; }
    .city-ledger-balance { justify-items: start; border-left: 0; border-top: 3px solid #0f766e; padding: 10px 0 0; }
    .city-ledger-statement-totals { justify-content: space-between; }
    .city-ledger-statement-head-actions { align-items: stretch; flex-direction: column; }
}
.fo-settlement-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid #d7e1ee;
    margin-bottom: 14px;
}

.fo-settlement-tabs button {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #53657d;
    font-weight: 800;
    padding: 10px 8px;
}

.fo-settlement-tabs button.active {
    color: #006b62;
    border-bottom-color: #00867a;
}

.fo-settlement-panel { margin-bottom: 12px; }

/* Compact cashier workspace used by Front Office folio settlement. */
.front-office-payment-modal {
    width: min(660px, calc(100vw - 28px));
    padding: 0;
    overflow: hidden;
}

.front-office-payment-modal .swal2-html-container {
    overflow: visible;
}

.front-office-payment-modal .swal2-actions {
    width: 100%;
    justify-content: flex-end;
    margin: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid #dbe4ef;
}

.front-office-payment-modal .swal2-actions button {
    min-height: 40px;
    margin: 0 0 0 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.fo-payment-form {
    gap: 0;
}

.fo-payment-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #dbe4ef;
    background: #f8fafc;
}

.fo-payment-guest,
.fo-payment-context-fields > div,
.fo-payment-context-fields > label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.fo-payment-guest span,
.fo-payment-context-fields span,
.fo-payment-section-heading span,
.fo-payment-balance > span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.fo-payment-guest strong {
    color: #0f172a;
    font-size: 19px;
    line-height: 1.2;
}

.fo-payment-context-fields {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fo-payment-context-fields strong {
    color: #1e293b;
    font-size: 13px;
    white-space: nowrap;
}

.fo-payment-context-fields input.form-control {
    width: 142px;
    min-height: 34px;
    margin: 0;
    padding: 4px 8px;
    background: #fff;
    font-size: 13px;
}

.fo-payment-form section.fo-payment-entry,
.fo-payment-form section.fo-settlement-workspace {
    border: 0;
    border-radius: 0;
    background: #fff;
}

.fo-payment-form section.fo-payment-entry {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(210px, .75fr);
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #dbe4ef;
}

.fo-payment-amount-block > label {
    margin: 0 0 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.fo-money-input {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #94a3b8;
    border-radius: 7px;
    background: #fff;
}

.fo-money-input:focus-within {
    border-color: #00867a;
    box-shadow: 0 0 0 3px rgba(0, 134, 122, .12);
}

.fo-money-input > span {
    flex: 0 0 66px;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-right: 1px solid #dbe4ef;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.fo-payment-form .fo-money-input .form-control {
    min-height: 46px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 20px;
}

.fo-payment-amount-block small,
.fo-payment-balance small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
}

.fo-payment-balance {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 3px;
    padding: 12px 14px;
    border-left: 3px solid #7c3aed;
    border-radius: 5px;
    background: #f5f3ff;
    text-align: right;
}

.fo-payment-balance strong {
    color: #4c1d95;
    font-size: 18px;
    line-height: 1.2;
}

.fo-payment-form section.fo-settlement-workspace {
    padding: 16px 20px 14px;
}

.fo-payment-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fo-payment-section-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fo-payment-section-heading strong {
    color: #1e293b;
    font-size: 14px;
}

.fo-payment-section-heading > i {
    color: #00867a;
    font-size: 19px;
}

.fo-settlement-tabs {
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    border: 1px solid #dbe4ef;
    border-radius: 7px;
    background: #f1f5f9;
}

.fo-settlement-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 9px;
    border: 0;
    border-radius: 5px;
    color: #52627a;
    font-size: 12px;
    white-space: nowrap;
}

.fo-settlement-tabs button i {
    font-size: 15px;
}

.fo-settlement-tabs button.active {
    border: 0;
    background: #fff;
    color: #006b62;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.fo-payment-form .fo-settlement-panel {
    margin-bottom: 10px;
}

.fo-payment-form .fo-payment-reference {
    margin-bottom: 0;
}

.fo-payment-form .fo-payment-reference textarea.form-control {
    min-height: 58px;
}

.fo-city-ledger-search {
    margin-top: 5px;
}

.fo-city-ledger-search .input-group-text {
    border-color: #d5dfeb;
    background: #f8fafc;
    color: #64748b;
}

.fo-payment-form .fo-city-ledger-search .form-control {
    margin-top: 0;
}

.fo-city-ledger-results {
    max-height: 190px;
    overflow-y: auto;
    border: 1px solid #dbe4ef;
    border-radius: 6px;
    background: #fff;
}

.fo-city-ledger-results:empty {
    display: none;
}

.fo-city-ledger-results button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 11px;
    border: 0;
    border-bottom: 1px solid #e5ebf2;
    background: #fff;
    color: #1e293b;
    text-align: left;
}

.fo-city-ledger-results button:last-child {
    border-bottom: 0;
}

.fo-city-ledger-results button:hover,
.fo-city-ledger-results button:focus {
    background: #ecfdf5;
    outline: 0;
}

.fo-city-ledger-results button span,
.fo-city-ledger-selected span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fo-city-ledger-results button strong,
.fo-city-ledger-selected strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fo-city-ledger-results button small,
.fo-city-ledger-selected small {
    color: #64748b;
    font-size: 10px;
}

.fo-city-ledger-results button em,
.fo-city-ledger-selected em {
    flex: 0 0 auto;
    color: #047857;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.fo-city-ledger-hint {
    padding: 10px 11px;
    color: #64748b;
    font-size: 11px;
}

.fo-city-ledger-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 8px;
    padding: 9px 11px;
    border: 1px solid #86efac;
    border-left: 3px solid #16a34a;
    border-radius: 6px;
    background: #f0fdf4;
}

@media (max-width: 620px) {
    .fo-payment-context,
    .fo-payment-context-fields {
        align-items: stretch;
        flex-direction: column;
    }
    .fo-payment-context-fields { gap: 8px; }
    .fo-payment-context-fields input.form-control { width: 100%; }
    .fo-payment-form section.fo-payment-entry { grid-template-columns: 1fr; }
    .fo-payment-balance { align-items: flex-start; text-align: left; }
    .fo-settlement-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fo-settlement-tabs button { gap: 4px; padding-inline: 4px; }
    .fo-settlement-tabs button span { font-size: 10px; }
}

.pos-settlement-form {
    min-width: 680px;
    padding: 10px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
}

.pos-settlement-form .form-label {
    margin-bottom: 4px;
    color: #52637a;
    font-weight: 700;
}

.front-office-walk-in-dialog { max-width: 940px; }
.front-office-command-icon {
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
}
.front-office-command-icon i {
    font-size: 1.15rem;
    line-height: 1;
}
.front-office-walk-in-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid #d8e2ef;
    padding-bottom: 12px;
}
.front-office-walk-in-stepper button {
    border: 1px solid #cbd8e8;
    background: #fff;
    color: #52637a;
    padding: 9px 8px;
    font-weight: 800;
}
.front-office-walk-in-stepper button span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 5px;
    border-radius: 50%;
    background: #e8eef7;
}
.front-office-walk-in-stepper button.active,
.front-office-walk-in-stepper button.completed { border-color: #07847a; color: #006b62; background: #edfcf9; }
.front-office-walk-in-stepper button.active span,
.front-office-walk-in-stepper button.completed span { background: #07847a; color: #fff; }
.front-office-walk-in-pane { min-height: 330px; }
.front-office-walk-in-search-results { display: grid; gap: 6px; margin-top: 10px; max-height: 220px; overflow-y: auto; }
.front-office-walk-in-guest-result {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d8e2ef;
    background: #fff;
    padding: 10px 12px;
    text-align: left;
}
.front-office-walk-in-guest-result:hover { border-color: #07847a; background: #f1fbfa; }
.front-office-walk-in-guest-result small { color: #667892; }
.front-office-selected-guest { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px; border-left: 4px solid #07847a; background: #eefbf8; }
.front-office-selected-guest i { font-size: 1.4rem; color: #07847a; }
.front-office-selected-guest small { display: block; color: #667892; }
.front-office-walk-in-identity-capture {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #d8e2ef;
}
.front-office-walk-in-identity-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}
.front-office-walk-in-identity-heading h6 { margin: 0 0 3px; font-weight: 800; }
.front-office-walk-in-identity-heading h6 i { margin-right: 6px; color: #07847a; }
.front-office-walk-in-identity-heading p { margin: 0; color: #667892; font-size: .78rem; }
.front-office-walk-in-tax-list { display: grid; gap: 8px; }
.front-office-walk-in-tax-list label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid #d8e2ef; }
.front-office-walk-in-tax-list small { color: #667892; }
.front-office-walk-in-quote { border-top: 2px solid #07847a; background: #f8fafc; padding: 12px; }
.front-office-walk-in-quote > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid #e1e8f2; }
.front-office-walk-in-quote .total { border-bottom: 0; font-size: 1.05rem; color: #006b62; }
.front-office-walk-in-review { border-left: 4px solid #07847a; background: #f7fafc; padding: 16px; }
.walk-in-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.walk-in-review-grid span { color: #667892; }
.walk-in-review-grid strong { display: block; color: #162033; margin-top: 3px; }

@media (max-width: 700px) {
    .front-office-walk-in-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .walk-in-review-grid { grid-template-columns: 1fr; }
}

/* City Ledger account editor */
.city-ledger-account-dialog { max-width: 780px; }
.city-ledger-account-header {
    align-items: flex-start;
    padding: 17px 22px 14px;
}
.city-ledger-account-header .modal-title {
    margin: 1px 0 2px;
    font-size: 1.2rem;
    font-weight: 800;
}
.city-ledger-account-body {
    min-height: 410px;
    padding: 0 22px 18px;
}
.city-ledger-account-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    border-bottom: 1px solid #d7e1ed;
}
.city-ledger-account-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 51px;
    padding: 11px 8px 9px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5c6d83;
    font-weight: 800;
}
.city-ledger-account-tabs button:hover {
    color: #006e65;
    background: #f5faf9;
}
.city-ledger-account-tabs button.active {
    color: #006e65;
    border-bottom-color: #07847a;
    background: #eefaf8;
}
.city-ledger-account-tabs i { font-size: 1.05rem; }
.city-ledger-account-content .tab-pane { min-height: 305px; }
.city-ledger-form-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e0e7f0;
}
.city-ledger-form-section-title h6 {
    margin: 0 0 2px;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
}
.city-ledger-form-section-title p {
    margin: 0;
    color: #6a7a90;
    font-size: .78rem;
}
.city-ledger-form-section-title > i {
    color: #07847a;
    font-size: 1.35rem;
}
.city-ledger-account-content .form-label {
    margin-bottom: 5px;
    color: #506178;
    font-size: .78rem;
    font-weight: 800;
}
.city-ledger-posting-access {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 22px;
    margin-top: 22px;
    padding: 14px 2px;
    border-top: 1px solid #dfe7f0;
    border-bottom: 1px solid #dfe7f0;
}
.city-ledger-posting-access strong,
.city-ledger-posting-access small { display: block; }
.city-ledger-posting-access small {
    margin-top: 2px;
    color: #6a7a90;
    font-size: .75rem;
}
.city-ledger-posting-access .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin: 0;
    padding-left: 0;
    color: #34445a;
    font-weight: 700;
}
.city-ledger-posting-access .form-check-input {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}
.city-ledger-account-footer {
    padding: 11px 22px;
    background: #fff;
}
@media (max-width: 700px) {
    .city-ledger-account-dialog { max-width: none; }
    .city-ledger-account-body { min-height: 0; padding-inline: 14px; }
    .city-ledger-account-tabs button { gap: 5px; font-size: .72rem; }
    .city-ledger-account-tabs i { font-size: .92rem; }
    .city-ledger-account-content .tab-pane { min-height: 0; }
    .city-ledger-posting-access { grid-template-columns: 1fr; gap: 12px; }
}

/* Shared configuration forms */
.configuration-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}
.configuration-form-footer-left,
.configuration-form-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.configuration-footer-field {
    width: auto;
}
.configuration-footer-field > .d-flex,
.configuration-footer-field > .text-secondary {
    display: none !important;
}
.configuration-checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #33445a;
    font-weight: 800;
    cursor: pointer;
}
.configuration-checkbox-field .form-check-input {
    margin: 0;
}
@media (max-width: 640px) {
    .configuration-form-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .configuration-form-footer-left,
    .configuration-form-footer-right {
        justify-content: space-between;
    }
}
/* Restaurant POS workspace */
.pos-page {
    display: grid;
    gap: 16px;
}

.pos-page:fullscreen,
.pos-page:-webkit-full-screen,
.pos-page.is-pos-fullscreen {
    background: #f4f7fb;
    height: 100vh;
    overflow: auto;
    padding: 16px;
    width: 100vw;
}

.pos-page.is-pos-fullscreen {
    inset: 0;
    position: fixed;
    z-index: 1100;
}

body.pos-fullscreen-active {
    overflow: hidden;
}

.pos-page:fullscreen .pos-context-bar,
.pos-page:-webkit-full-screen .pos-context-bar,
.pos-page.is-pos-fullscreen .pos-context-bar {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 20;
}

.pos-fullscreen-toggle {
    align-items: center;
    aspect-ratio: 1;
    display: inline-flex;
    flex: 0 0 42px;
    justify-content: center;
    padding: 0;
}

.pos-hero {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.pos-hero-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pos-outlet-switcher {
    color: #475569;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 4px;
    margin: 0;
    min-width: 260px;
}

.pos-outlet-switcher .form-select {
    border-color: #b9cadf;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    min-height: 42px;
}

.pos-outlet-switcher .form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.pos-business-date {
    align-items: center;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    display: inline-flex;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    color: #64748b;
    background: #fff;
}

.pos-business-date strong {
    color: #0f172a;
}

.pos-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pos-kpi-card {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    min-height: 72px;
    padding: 12px 14px;
}

.pos-kpi-card i {
    color: #0f766e;
    font-size: 20px;
    grid-row: span 2;
}

.pos-kpi-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pos-kpi-card strong {
    color: #0f172a;
    font-size: 17px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-kpi-card em {
    align-self: end;
    color: #08766d;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    grid-column: 2;
    justify-self: end;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.restaurant-pos-layout {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(340px, 390px);
    gap: 14px;
}

.pos-context-bar {
    align-items: end;
    background: #fff;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(190px, 1.25fr) minmax(145px, .75fr) minmax(180px, 1fr) auto;
    padding: 12px 14px;
}

.pos-context-field {
    color: #475569;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 4px;
    min-width: 0;
}

.pos-context-field .form-select {
    min-height: 42px;
}

.pos-context-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.pos-context-actions .btn {
    min-height: 42px;
    white-space: nowrap;
}

.pos-shift-control {
    align-items: stretch;
    display: inline-flex;
}

.pos-shift-control .btn {
    width: 100%;
}

.pos-receipt-filters {
    align-items: end;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, .7fr));
    margin-bottom: 16px;
    padding: 12px;
}

.pos-receipt-filters label {
    color: #475569;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 5px;
    min-width: 0;
}

.pos-receipt-table-wrap {
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    max-height: 440px;
}

.pos-receipt-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.pos-receipt-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pos-receipt-table td {
    border-color: #e2e8f0;
    font-size: 13px;
    padding: 9px 10px;
    vertical-align: middle;
}

.pos-receipt-table td small {
    color: #64748b;
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

.pos-receipt-table tr.is-void td {
    background: #fff7f7;
    color: #64748b;
}

.pos-receipt-table tr.is-void td:nth-last-child(2) {
    text-decoration: line-through;
}

.pos-receipt-icon-button {
    align-items: center;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.pos-receipt-empty {
    color: #64748b;
    padding: 28px;
    text-align: center;
}

.pos-menu-search-row {
    margin: 0 0 14px;
    max-width: none;
    min-width: 0;
    width: 100%;
}

.pos-picker-popup {
    padding: 0 !important;
}

.pos-picker-popup .swal2-html-container {
    margin: 0;
    padding: 0;
    text-align: left;
}

.pos-picker-modal {
    color: #172033;
    padding: 24px;
}

.pos-picker-header {
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: -4px 0 18px;
    padding: 0 34px 16px 0;
}

.pos-picker-header span:first-child {
    color: #0f766e;
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pos-picker-header h2 {
    font-size: 24px;
    margin: 2px 0 3px;
}

.pos-picker-header p {
    color: #64748b;
    margin: 0;
}

.pos-picker-summary {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 7px;
    color: #0f766e;
    padding: 9px 12px;
    white-space: nowrap;
}

.pos-picker-summary strong {
    font-size: 18px;
}

.pos-picker-filter {
    align-items: center;
    display: flex;
    margin-bottom: 16px;
    max-width: 430px;
    position: relative;
}

.pos-picker-filter i {
    color: #64748b;
    left: 13px;
    position: absolute;
    z-index: 1;
}

.pos-picker-filter input {
    padding-left: 38px;
}

.pos-picker-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    max-height: 480px;
    overflow: auto;
}

.pos-picker-table {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    color: #172033;
    display: grid;
    gap: 10px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 12px;
    text-align: left;
}

.pos-picker-table:hover {
    border-color: #14b8a6;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.pos-picker-table.is-open {
    background: #fffbeb;
    border-color: #fbbf24;
}

.pos-picker-table-icon {
    align-items: center;
    background: #e6fffb;
    border-radius: 7px;
    color: #0f766e;
    display: flex;
    height: 38px;
    justify-content: center;
}

.pos-picker-table strong,
.pos-picker-table small {
    display: block;
}

.pos-picker-table small {
    color: #64748b;
    margin-top: 2px;
}

.pos-picker-table-wrap {
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    max-height: 500px;
    overflow: auto;
}

@media (max-width: 1180px) {
    .pos-context-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .pos-context-actions {
        grid-column: span 3;
    }
    .restaurant-pos-layout {
        grid-template-columns: minmax(0, 1fr) 350px;
    }
}

@media (max-width: 820px) {
    .pos-context-bar,
    .restaurant-pos-layout {
        grid-template-columns: 1fr;
    }
    .pos-context-actions {
        grid-column: auto;
    }
    .pos-context-actions {
        flex-wrap: wrap;
    }
    .pos-receipt-filters {
        grid-template-columns: 1fr;
    }
}

.pos-panel {
    background: #fff;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    padding: 14px;
}

.pos-left-panel,
.pos-cart-panel {
    position: sticky;
    top: 86px;
}

.pos-panel-heading,
.pos-menu-toolbar,
.pos-cart-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pos-panel-heading span,
.pos-menu-toolbar span,
.pos-cart-header span,
.pos-section-title {
    color: #64748b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pos-panel-heading strong,
.pos-menu-toolbar strong,
.pos-cart-header strong {
    color: #0f172a;
    display: block;
    font-size: 18px;
}

.pos-cart-header-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.pos-cart-clear-button {
    align-items: center;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.pos-order-delete-button {
    align-items: center;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.pos-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pos-table-tile {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    color: #334155;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 8px 10px;
    text-align: left;
}

.pos-table-tile.is-open {
    background: #ecfeff;
    border-color: #14b8a6;
    color: #0f766e;
    font-weight: 800;
}

.pos-table-tile.selected {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
}

.pos-order-list {
    border-top: 1px solid #e2e8f0;
    margin-top: 14px;
    padding-top: 14px;
}

.pos-order-card {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    color: inherit;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.pos-order-card.active {
    border-color: #0f766e;
    background: #f0fdfa;
}

.pos-order-card small {
    color: #64748b;
    display: block;
}

.pos-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
}

.pos-badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.pos-badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.pos-badge-success {
    background: #dcfce7;
    color: #15803d;
}

.pos-badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.pos-badge-neutral {
    background: #f1f5f9;
    color: #475569;
}

.pos-search {
    align-items: center;
    display: flex;
    min-width: 260px;
    position: relative;
}

.pos-search i {
    color: #64748b;
    left: 12px;
    position: absolute;
}

.pos-search input {
    padding-left: 36px;
}

.pos-chip-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.pos-chip {
    background: #f8fafc;
    border: 1px solid #d7e2f1;
    border-radius: 999px;
    color: #475569;
    flex: 0 0 auto;
    font-weight: 800;
    min-height: 34px;
    padding: 6px 12px;
}

.pos-chip.active {
    background: #ccfbf1;
    border-color: #5eead4;
    color: #0f766e;
}

.pos-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-height: 640px;
    overflow: auto;
    padding-right: 4px;
}

.pos-item-card {
    background: color-mix(in srgb, var(--item-color, #0f766e) 14%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--item-color, #0f766e) 42%, #d7e2f1);
    border-radius: 8px;
    color: #0f172a;
    display: grid;
    min-height: 170px;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
}

.pos-item-card:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}

.pos-item-image {
    background-color: var(--item-color, #0f766e);
    background-position: center;
    background-size: cover;
    display: grid;
    min-height: 82px;
    place-items: center;
}

.pos-item-initial {
    color: var(--item-text, #fff);
    font-size: 24px;
    font-weight: 900;
}

.pos-item-name {
    font-weight: 900;
    line-height: 1.15;
    padding: 10px 10px 0;
}

.pos-item-meta {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px 10px;
}

.pos-item-meta small {
    color: #64748b;
}

.pos-route-badge {
    background: rgba(15, 118, 110, .9);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    position: absolute;
    right: 8px;
    top: 8px;
}

.pos-cart-empty {
    min-height: 420px;
}

.pos-cart-empty i {
    color: #0f766e;
    font-size: 42px;
}

.pos-cart-lines {
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
    padding-right: 2px;
}

.pos-cart-line {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px;
}

.pos-cart-line.is-void {
    background: #fff1f2;
    color: #9f1239;
}

.pos-cart-line-main small {
    color: #64748b;
    display: block;
}

.pos-cart-item-heading {
    align-items: center;
    display: flex;
    gap: 6px;
    min-width: 0;
}

.pos-kitchen-sent-icon {
    align-items: center;
    color: #ea580c;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
}

.pos-cart-line-actions {
    align-items: center;
    display: flex;
    gap: 5px;
}

.pos-cart-line-actions strong {
    margin-right: 4px;
}

.pos-cart-totals {
    background: #f8fafc;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 10px;
}

.pos-cart-totals div {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.pos-cart-totals .total {
    border-top: 1px solid #d7e2f1;
    color: #0f766e;
    font-size: 18px;
    font-weight: 900;
    padding-top: 8px;
}

.pos-cart-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.pos-table-order-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid #d7e2ee;
    border-left: 3px solid #0f766e;
    background: #f8fbfd;
}

.pos-table-order-actions > div:first-child {
    display: grid;
    gap: 2px;
}

.pos-table-order-actions span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pos-table-order-actions strong {
    color: #172033;
}

.pos-bill-context {
    align-items: end;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 12px;
    padding: 10px;
}

.pos-bill-due {
    min-width: 120px;
    text-align: right;
}

.pos-bill-due span,
.pos-bill-due strong {
    display: block;
}

.pos-bill-due span {
    color: #64748b;
    font-size: 12px;
}

.pos-operation-popup {
    padding: 0 !important;
}

.pos-operation-popup .swal2-html-container {
    margin: 0 !important;
    overflow: visible !important;
    text-align: left;
}

.pos-operation-modal {
    color: #172033;
    padding: 24px;
}

.pos-operation-heading {
    border-bottom: 1px solid #dbe5ef;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.pos-operation-heading span {
    color: #087b72;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.pos-operation-heading h2 {
    font-size: 24px;
    margin: 2px 0 4px;
}

.pos-operation-heading p {
    color: #64748b;
    margin: 0;
}

.pos-operation-summary {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.pos-operation-summary div {
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    padding: 10px 12px;
}

.pos-operation-summary span,
.pos-operation-summary strong {
    display: block;
}

.pos-operation-summary span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pos-operation-tabs {
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.pos-operation-tabs button {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-weight: 700;
    padding: 9px 14px;
}

.pos-operation-tabs button.active {
    border-bottom-color: #0f8a80;
    color: #075f59;
}

.pos-split-pane {
    display: none;
}

.pos-split-pane.active {
    display: block;
}

.pos-split-lines {
    border: 1px solid #dbe5ef;
    max-height: 290px;
    overflow-y: auto;
}

.pos-split-line {
    align-items: center;
    border-bottom: 1px solid #e5edf5;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 12px;
}

.pos-split-line:last-child {
    border-bottom: 0;
}

.pos-split-line span strong,
.pos-split-line span small {
    display: block;
}

.pos-split-line span small {
    color: #64748b;
}

.pos-operation-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 18px;
}

.pos-table-choice-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 360px;
    overflow-y: auto;
}

.pos-table-choice-grid button,
.pos-merge-list button {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #172033;
    padding: 12px;
    text-align: left;
}

.pos-table-choice-grid button:hover,
.pos-merge-list button:hover {
    border-color: #0f8a80;
    background: #eefcf9;
}

.pos-table-choice-grid button strong,
.pos-table-choice-grid button small,
.pos-merge-list button span strong,
.pos-merge-list button span small {
    display: block;
}

.pos-table-choice-grid button small,
.pos-merge-list button span small {
    color: #64748b;
}

.pos-merge-list {
    border: 1px solid #dbe5ef;
    max-height: 360px;
    overflow-y: auto;
}

.pos-merge-list button {
    align-items: center;
    border-width: 0 0 1px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 767px) {
    .pos-bill-context,
    .pos-operation-summary,
    .pos-table-choice-grid {
        grid-template-columns: 1fr;
    }

    .pos-bill-due {
        text-align: left;
    }

    .pos-cart-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-table-order-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-table-order-actions .btn {
        flex: 1 1 auto;
    }
}

.pos-settlement {
    border-top: 1px solid #e2e8f0;
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
}

.pos-settlement-tabs {
    background: #f8fafc;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
}

.pos-settlement-tabs button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #475569;
    font-weight: 900;
    min-height: 38px;
}

.pos-settlement-tabs button.active {
    background: #fff;
    box-shadow: 0 1px 6px rgba(15, 23, 42, .08);
    color: #0f766e;
}

.pos-settlement-panel {
    display: none;
}

.pos-settlement-panel.active {
    display: block;
}

.pos-kitchen-panel {
    margin-top: 0;
}

.pos-kitchen-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.pos-kitchen-ticket {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d7e2f1;
    border-radius: 8px;
    display: flex;
    gap: 3px;
    justify-content: space-between;
    padding: 10px;
}

.pos-kitchen-ticket > div {
    display: grid;
    gap: 3px;
}

.pos-kitchen-ticket span {
    color: #0f766e;
    font-weight: 900;
}

.pos-kitchen-ticket small {
    color: #64748b;
}

.pos-empty {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    display: grid;
    gap: 6px;
    min-height: 64px;
    padding: 14px;
    place-items: center;
    text-align: center;
}

.required-star {
    color: #dc2626;
}

.check-ins-filter-grid {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(260px, 1.55fr) minmax(145px, .75fr) minmax(145px, .75fr) minmax(165px, .85fr) minmax(170px, .9fr) minmax(92px, .45fr) 108px;
}

.check-ins-filter-grid .form-label {
    white-space: nowrap;
}

@media (max-width: 1300px) {
    .restaurant-pos-layout {
        grid-template-columns: 260px minmax(360px, 1fr);
    }

    .restaurant-pos-layout > [data-pos-cart] {
        grid-column: 1 / -1;
    }

    .pos-left-panel,
    .pos-cart-panel {
        position: static;
    }
}

@media (max-width: 1200px) {
    .check-ins-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pos-hero,
    .pos-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-kpi-grid,
    .restaurant-pos-layout {
        grid-template-columns: 1fr;
    }

    .pos-search {
        min-width: 0;
        width: 100%;
    }

    .pos-menu-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .check-ins-filter-grid {
        grid-template-columns: 1fr;
    }
}
/* Housekeeping and Maintenance routed workspaces */
.hk-register-panel,
.mt-register-panel {
    background: #fff;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    padding: 18px;
    min-width: 0;
}

.hk-register-panel > .toolbar,
.mt-register-panel > .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hk-task-filters {
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(140px, 0.8fr)) auto;
}

.hk-lost-found-filters {
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto;
}

.hk-task-mobile-grid {
    display: none;
    gap: 12px;
}

.hk-mobile-task-card {
    background: #fff;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    padding: 14px;
}

.hk-mobile-task-card header,
.hk-mobile-task-actions,
.hk-mobile-task-meta {
    display: flex;
    gap: 8px;
}

.hk-mobile-task-card header {
    align-items: flex-start;
    justify-content: space-between;
}

.hk-mobile-task-card header span {
    color: #64748b;
    display: block;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hk-mobile-task-card header strong {
    display: block;
    font-size: 1.25rem;
}

.hk-mobile-task-card p {
    color: #475569;
    margin: 6px 0 10px;
}

.hk-mobile-task-meta {
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hk-mobile-task-meta > span {
    align-items: center;
    background: #f6f9fc;
    border: 1px solid #e1e8f0;
    border-radius: 999px;
    display: inline-flex;
    font-size: .78rem;
    gap: 5px;
    min-height: 30px;
    padding: 4px 9px;
}

.hk-mobile-task-actions {
    align-items: stretch;
    justify-content: flex-end;
}

.hk-mobile-task-actions .btn {
    min-height: 42px;
}

.hk-checklist-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #e5eaf1;
}

.hk-checklist-row span,
.hk-checklist-row small,
.hk-checklist-row em {
    display: block;
}

.hk-checklist-row small,
.hk-checklist-row em { color: #64748b; font-size: .78rem; font-style: normal; }
.hk-checklist-row.is-complete strong { color: #087f5b; }

.hk-checklist-editor-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.35fr) 110px 44px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.hk-checklist-editor-row .form-check { margin: 0; display: flex; gap: 7px; align-items: center; }
.mt-desk-layout { align-items: start; }

@media (max-width: 900px) {
    .hk-task-filters,
    .hk-lost-found-filters { grid-template-columns: 1fr 1fr; }
    .hk-checklist-editor-row { grid-template-columns: 1fr; }
    .hk-register-panel > .toolbar,
    .mt-register-panel > .toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
    .hk-task-register-panel .table-responsive {
        display: none;
    }

    .hk-task-mobile-grid {
        display: grid;
    }

    .hk-mobile-task-actions {
        background: #fff;
        border-top: 1px solid #e1e8f0;
        bottom: 0;
        margin: 12px -14px -14px;
        padding: 10px 14px;
        position: sticky;
        z-index: 4;
    }

    .hk-mobile-task-actions .btn {
        flex: 1 1 0;
    }

    .hk-lost-found-filters,
    .hk-task-filters {
        grid-template-columns: 1fr;
    }
}

/* Housekeeping room task console */
.hk-room-detail-dialog {
    max-width: 1120px;
    width: calc(100% - 32px);
}

.hk-room-detail-dialog .modal-body {
    padding: 20px 24px 24px;
}

.hk-detail {
    color: #172033;
    min-width: 0;
}

.hk-detail-head,
.hk-detail-toolbar,
.hk-detail-identity,
.hk-detail-state,
.hk-detail-actions-primary,
.hk-detail-actions-secondary,
.hk-section-heading,
.hk-checklist-heading {
    align-items: center;
    display: flex;
}

.hk-detail-head,
.hk-detail-toolbar,
.hk-section-heading,
.hk-checklist-heading {
    justify-content: space-between;
}

.hk-detail-head {
    gap: 18px;
    margin: 0;
    padding: 0 0 16px;
}

.hk-detail-identity {
    gap: 12px;
    min-width: 0;
}

.hk-detail-room-icon {
    align-items: center;
    background: #e8faf6;
    border: 1px solid #b6e8df;
    border-radius: 8px;
    color: #087f73;
    display: inline-flex;
    flex: 0 0 44px;
    font-size: 1.25rem;
    height: 44px;
    justify-content: center;
}

.hk-detail-eyebrow {
    color: #087f73;
    display: block;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hk-detail-head h2 {
    font-size: 1.6rem;
    line-height: 1.1;
}

.hk-detail-head p,
.hk-section-heading p,
.hk-checklist-heading p {
    color: #64748b;
    margin: 3px 0 0;
}

.hk-detail-state,
.hk-detail-actions-primary,
.hk-detail-actions-secondary {
    flex-wrap: wrap;
    gap: 8px;
}

.hk-detail-toolbar {
    border-bottom: 1px solid #dbe5ef;
    gap: 14px;
    padding: 12px 0;
}

.hk-detail-toolbar .btn {
    min-height: 38px;
}

.hk-detail-toolbar .btn:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.hk-icon-action {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    width: 40px;
}

.hk-context-strip {
    background: #f7f9fc;
    border-bottom: 1px solid #dbe5ef;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}

.hk-context-strip > div {
    min-width: 0;
    padding: 12px 16px;
}

.hk-context-strip > div + div {
    border-left: 1px solid #e1e8f0;
}

.hk-context-strip span,
.hk-context-strip strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hk-context-strip span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hk-context-strip strong {
    font-size: .88rem;
    margin-top: 3px;
}

.hk-detail-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    min-width: 0;
}

.hk-detail-main {
    min-width: 0;
    padding: 20px 24px 8px 0;
}

.hk-current-task {
    border-bottom: 1px solid #dbe5ef;
    padding-bottom: 18px;
}

.hk-section-heading,
.hk-checklist-heading {
    gap: 14px;
}

.hk-section-heading h3,
.hk-checklist-heading h3 {
    font-size: 1rem;
    font-weight: 900;
    margin: 2px 0 0;
}

.hk-task-lifecycle {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
}

.hk-task-conflict {
    align-items: flex-start;
    background: #fff8e8;
    border-left: 3px solid #f59e0b;
    color: #7c4a03;
    display: flex;
    font-size: .8rem;
    gap: 9px;
    margin-top: 16px;
    padding: 10px 12px;
}

.hk-task-conflict span,
.hk-task-conflict strong {
    display: block;
}

.hk-task-lifecycle > div {
    align-items: center;
    color: #94a3b8;
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    gap: 7px;
    min-width: 0;
    position: relative;
}

.hk-task-lifecycle > div:not(:last-child)::after {
    background: #dbe5ef;
    content: '';
    height: 2px;
    left: 32px;
    position: absolute;
    right: 8px;
    top: 14px;
}

.hk-task-lifecycle i {
    align-items: center;
    background: #fff;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hk-task-lifecycle .is-done {
    color: #087f73;
}

.hk-task-lifecycle .is-done i {
    background: #e7faf6;
    border-color: #14b8a6;
}

.hk-task-lifecycle .is-done:not(:last-child)::after {
    background: #14b8a6;
}

.hk-task-lifecycle .is-next i {
    border-color: #f59e0b;
    color: #b45309;
}

.hk-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 16px;
}

.hk-task-meta > span {
    align-items: center;
    color: #475569;
    display: inline-flex;
    font-size: .8rem;
    gap: 6px;
}

.hk-task-meta > span > i {
    color: #087f73;
}

.hk-task-note {
    align-items: flex-start;
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
    color: #475569;
    display: flex;
    font-size: .82rem;
    gap: 8px;
    margin: 14px 0 0;
    padding: 10px 12px;
}

.hk-task-note.is-qa {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.hk-task-checklist {
    padding-top: 20px;
}

.hk-checklist-heading > strong {
    color: #087f73;
    font-size: 1rem;
}

.hk-checklist-progress {
    background: #e5eaf1;
    height: 5px;
    margin: 13px 0 4px;
    overflow: hidden;
}

.hk-checklist-progress > span {
    background: #0f8b7f;
    display: block;
    height: 100%;
    transition: width .2s ease;
}

.hk-checklist-list {
    display: grid;
}

.hk-task-checklist .hk-checklist-row {
    align-items: start;
    cursor: pointer;
    grid-template-columns: 22px 30px minmax(0, 1fr);
    margin: 0;
    padding: 13px 4px;
}

.hk-task-checklist .hk-checklist-row:hover {
    background: #f8fafc;
}

.hk-task-checklist .hk-checklist-row input {
    height: 18px;
    margin-top: 3px;
    width: 18px;
}

.hk-checklist-number {
    align-items: center;
    background: #eef2f7;
    border-radius: 50%;
    color: #64748b;
    display: inline-flex !important;
    font-size: .72rem;
    font-weight: 900;
    height: 25px;
    justify-content: center;
    width: 25px;
}

.hk-checklist-copy strong b {
    background: #fff1d6;
    border-radius: 4px;
    color: #9a5b00;
    font-size: .62rem;
    margin-left: 5px;
    padding: 2px 5px;
    text-transform: uppercase;
}

.hk-checklist-row.is-complete {
    opacity: .72;
}

.hk-checklist-row.is-complete .hk-checklist-number {
    background: #dff8ef;
    color: #087f5b;
}

.hk-checklist-empty {
    align-items: center;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    display: grid;
    gap: 4px;
    justify-items: center;
    margin-top: 14px;
    padding: 24px;
    text-align: center;
}

.hk-checklist-empty i {
    color: #94a3b8;
    font-size: 1.5rem;
}

.hk-detail-activity {
    border-left: 1px solid #dbe5ef;
    min-width: 0;
    padding: 20px 0 0 20px;
}

.hk-detail-activity > section + section {
    border-top: 1px solid #dbe5ef;
    margin-top: 20px;
    padding-top: 20px;
}

.hk-history-count {
    align-items: center;
    background: #eef2f7;
    border-radius: 12px;
    color: #475569;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 7px;
}

.hk-activity-list {
    margin-top: 8px;
}

.hk-activity-row {
    align-items: start;
    border-bottom: 1px solid #e5eaf1;
    display: grid;
    gap: 9px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding: 11px 0;
}

.hk-activity-icon {
    align-items: center;
    background: #e8faf6;
    border-radius: 6px;
    color: #087f73;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.hk-activity-icon.is-status {
    background: #eef2ff;
    color: #4f46e5;
}

.hk-activity-row p,
.hk-activity-row em {
    color: #64748b;
    display: block;
    font-size: .75rem;
    font-style: normal;
    line-height: 1.35;
    margin: 2px 0 5px;
}

.hk-history-action {
    height: 30px;
    padding: 0;
    width: 32px;
}

@media (max-width: 900px) {
    .hk-detail-workspace {
        grid-template-columns: 1fr;
    }

    .hk-detail-main {
        padding-right: 0;
    }

    .hk-detail-activity {
        border-left: 0;
        border-top: 1px solid #dbe5ef;
        margin-top: 16px;
        padding-left: 0;
    }

    .hk-context-strip {
        grid-template-columns: 1fr 1fr;
    }

    .hk-context-strip > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e1e8f0;
    }

    .hk-context-strip > div:nth-child(4) {
        border-top: 1px solid #e1e8f0;
    }
}

@media (max-width: 640px) {
    .hk-room-detail-dialog {
        margin: 8px auto;
        width: calc(100% - 16px);
    }

    .hk-room-detail-dialog .modal-body {
        padding: 16px;
    }

    .hk-detail-head,
    .hk-detail-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hk-detail-actions-primary,
    .hk-detail-actions-secondary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hk-detail-actions-primary .btn,
    .hk-detail-actions-secondary .btn {
        width: 100%;
    }

    .hk-context-strip,
    .hk-task-lifecycle {
        grid-template-columns: 1fr 1fr;
    }

    .hk-context-strip > div {
        border-left: 0 !important;
        border-top: 1px solid #e1e8f0;
    }

    .hk-task-lifecycle > div::after {
        display: none;
    }
}
.complimentary-stay-control {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 48px;
    padding: .65rem .8rem;
    border: 1px solid #bae6fd;
    border-left: 4px solid #0284c7;
    border-radius: 6px;
    background: #f0f9ff;
}

.complimentary-stay-control small {
    flex: 1;
}

@media (max-width: 767.98px) {
    .complimentary-stay-control {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

/* Laundry workspace */
.laundry-console-header { align-items: flex-end; }
.laundry-view-tabs .nav-link {
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 800;
}
.laundry-view-tabs .nav-link.active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}
.laundry-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}
.laundry-voucher-panel,
.laundry-register-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.laundry-voucher-panel { padding: 16px; }
.laundry-register-panel { padding: 14px; }
.laundry-voucher-header,
.laundry-action-bar,
.laundry-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.laundry-voucher-header {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.laundry-voucher-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 900;
}
.laundry-voucher-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.laundry-header-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    padding: 14px 0;
}
.laundry-header-strip label,
.laundry-delivery-grid label,
.laundry-adjustments-panel label {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.laundry-header-strip span,
.laundry-delivery-grid span,
.laundry-adjustments-panel span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.laundry-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.laundry-selector-band {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
}
.laundry-band-title,
.laundry-panel-heading {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}
.laundry-panel-heading small {
    color: var(--muted);
    font-weight: 700;
}
.laundry-segment-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
}
.laundry-choice {
    min-height: 64px;
    padding: 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    text-align: left;
    background: #fff;
}
.laundry-choice strong,
.laundry-choice small {
    display: block;
}
.laundry-choice strong {
    font-size: 13px;
    font-weight: 900;
}
.laundry-choice small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}
.laundry-choice:hover,
.laundry-choice.active {
    color: var(--brand-dark);
    border-color: rgba(15, 118, 110, .45);
    background: var(--brand-soft);
}
.laundry-order-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.laundry-catalogue-panel,
.laundry-lines-panel,
.laundry-notes-panel,
.laundry-adjustments-panel,
.laundry-totals-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}
.laundry-catalogue-panel {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 12px;
}
.laundry-search {
    position: relative;
}
.laundry-search i {
    position: absolute;
    top: 50%;
    left: 11px;
    color: var(--muted);
    transform: translateY(-50%);
}
.laundry-search .form-control { padding-left: 34px; }
.laundry-category-list {
    display: grid;
    gap: 8px;
    max-height: 470px;
    overflow: auto;
}
.laundry-category-block {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.laundry-category-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    background: #f8fafc;
}
.laundry-category-title span {
    color: var(--muted);
    font-weight: 800;
}
.laundry-item-list {
    display: grid;
    gap: 6px;
    padding: 8px;
}
.laundry-item-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #334155;
    text-align: left;
    background: #fff;
}
.laundry-item-chip:hover {
    border-color: rgba(15, 118, 110, .32);
    background: #f0fdfa;
}
.laundry-item-chip span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}
.laundry-item-chip strong {
    flex: 0 0 auto;
    color: var(--brand-dark);
    font-size: 12px;
}
.laundry-lines-panel { overflow: hidden; }
.laundry-lines-table { margin: 0; }
.laundry-lines-table th { white-space: nowrap; }
.laundry-lines-table td small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}
.laundry-qty-input {
    width: 78px;
    margin-inline: auto;
    text-align: center;
}
.laundry-voucher-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 220px 260px;
    gap: 12px;
    margin-top: 12px;
}
.laundry-notes-panel,
.laundry-adjustments-panel,
.laundry-totals-panel { padding: 12px; }
.laundry-delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.laundry-adjustments-panel {
    display: grid;
    gap: 8px;
}
.laundry-totals-panel {
    display: grid;
    align-content: start;
}
.laundry-totals-panel div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.laundry-totals-panel div:last-child { border-bottom: 0; }
.laundry-totals-panel span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.laundry-totals-panel strong {
    color: var(--ink);
    font-weight: 900;
}
.laundry-totals-panel .is-balance strong {
    color: #dc2626;
    font-size: 1.05rem;
}
.laundry-action-bar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.laundry-order-list {
    display: grid;
    gap: 8px;
    max-height: 680px;
    margin-top: 12px;
    overflow: auto;
}
.laundry-order-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--ink);
    text-align: left;
    background: #fff;
}
.laundry-order-card:hover {
    border-color: rgba(15, 118, 110, .35);
    background: #f8fafc;
}
.laundry-order-card strong,
.laundry-order-card small { display: block; }
.laundry-order-card small {
    color: var(--muted);
    font-size: 12px;
}
.laundry-empty-mini {
    padding: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
@media (max-width: 1280px) {
    .laundry-workspace,
    .laundry-order-grid,
    .laundry-voucher-footer {
        grid-template-columns: 1fr;
    }
    .laundry-register-panel { order: 2; }
}
@media (max-width: 900px) {
    .laundry-header-strip,
    .laundry-selector-grid,
    .laundry-delivery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .laundry-header-strip,
    .laundry-selector-grid,
    .laundry-delivery-grid {
        grid-template-columns: 1fr;
    }
    .laundry-voucher-panel,
    .laundry-register-panel { padding: 12px; }
    .laundry-action-bar,
    .laundry-voucher-header {
        align-items: stretch;
        flex-direction: column;
    }
}
[data-inventory-doc-new="issue"],
[data-inventory-doc-new="receipt"] {
    display: none !important;
}

.inventory-document-grid > label > .required-mark[data-auto-required-mark="1"] {
    display: none;
}

#inventoryLifecycleModal .modal-dialog {
    width: min(1180px, calc(100vw - 2rem));
    max-width: 1180px;
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#inventoryLifecycleModal[data-lifecycle-type="indent"] .modal-dialog,
#inventoryLifecycleModal[data-lifecycle-type="indent-forward"] .modal-dialog,
#inventoryLifecycleModal[data-lifecycle-type="indent-received"] .modal-dialog {
    width: min(960px, calc(100vw - 2rem));
    max-width: 960px;
}

#inventoryLifecycleModal .modal-content {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#inventoryLifecycleModal [data-inventory-lifecycle-form] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#inventoryLifecycleModal .modal-header,
#inventoryLifecycleModal .modal-footer {
    flex: 0 0 auto;
}

#inventoryLifecycleModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#inventoryLifecycleModal .inventory-document-lines thead {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}

@media (max-width: 650px) {
    #inventoryLifecycleModal .modal-dialog {
        width: calc(100vw - 1rem);
        height: calc(100dvh - 1rem);
        max-height: calc(100dvh - 1rem);
        margin: .5rem;
    }
}

@media (max-width: 1200px) {
    .report-center {
        grid-template-columns: 260px minmax(0, 1fr);
    }
    .report-filter-shell {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }
    .report-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .report-center {
        grid-template-columns: 1fr;
    }
    .report-tree-panel {
        border-right: 0;
        border-bottom: 1px solid #d7e0eb;
    }
    .report-tree {
        max-height: 320px;
    }
    .report-titlebar,
    .report-actionbar {
        align-items: stretch;
        flex-direction: column;
    }
    .report-actionbar > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .report-filter-shell,
    .report-filter-grid,
    .report-check-grid {
        grid-template-columns: 1fr;
    }
    .report-filter-grid label {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Users and roles: focused permission editor. */
.role-editor-dialog {
    width: min(1040px, calc(100vw - 32px));
    max-width: 1040px;
}

.role-editor {
    max-height: calc(100vh - 32px);
    overflow: hidden;
}

.role-editor .modal-header,
.role-editor .modal-footer {
    flex: 0 0 auto;
}

.role-editor-body {
    display: grid;
    gap: 18px;
    min-height: 0;
    padding: 20px 24px;
}

.role-editor-details {
    padding-bottom: 18px;
    border-bottom: 1px solid #d8e1ec;
}

.role-permissions-shell {
    min-height: 0;
}

.role-permissions-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.role-permission-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-permission-search {
    width: 260px;
}

.role-permission-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    max-height: min(52vh, 500px);
    overflow-y: auto;
    padding: 2px 6px 8px 2px;
    scrollbar-gutter: stable;
}

.role-permission-group {
    align-self: start;
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 6px;
    background: #fff;
}

.role-permission-group.has-selected {
    border-color: #9cd9d2;
}

.role-permission-group summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    background: #f7f9fc;
    user-select: none;
}

.role-permission-group summary::-webkit-details-marker {
    display: none;
}

.role-permission-group.has-selected summary {
    background: #f0fbf9;
}

.role-permission-group-title,
.role-permission-group-meta {
    display: flex;
    align-items: center;
}

.role-permission-group-title {
    min-width: 0;
    gap: 9px;
    color: #182235;
}

.role-permission-group-title .bi {
    color: #087f76;
}

.role-permission-group-meta {
    flex: 0 0 auto;
    gap: 10px;
    color: #64748b;
    font-size: .78rem;
}

.role-permission-group-meta .form-check-input {
    margin: 0;
}

.role-permission-chevron {
    transition: transform .18s ease;
}

.role-permission-group[open] .role-permission-chevron {
    transform: rotate(180deg);
}

.role-permission-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 6px 10px 10px;
    border-top: 1px solid #e5ebf2;
}

.role-permission-option {
    min-width: 0;
    margin: 0;
    padding: 8px 8px 8px 30px;
    border-radius: 4px;
}

.role-permission-option:hover {
    background: #f5f8fb;
}

.role-permission-option .form-check-input {
    margin-left: -21px;
}

.role-permission-option .form-check-label {
    color: #3f4b5f;
    line-height: 1.3;
}

.role-permission-empty {
    grid-column: 1 / -1;
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

@media (max-width: 767.98px) {
    .role-editor-dialog {
        width: calc(100vw - 16px);
        margin: 8px auto;
    }

    .role-editor {
        max-height: calc(100vh - 16px);
    }

    .role-editor-body {
        padding: 16px;
    }

    .role-permissions-toolbar,
    .role-permission-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .role-permission-search {
        width: 100%;
    }

    .role-permission-groups,
    .role-permission-options {
        grid-template-columns: 1fr;
    }
}

/* Shared permission-denied state. */
.access-denied-page {
    display: grid;
    min-height: calc(100vh - 190px);
    padding: clamp(20px, 4vw, 52px) 0;
    place-items: center;
}

.access-denied-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    width: min(920px, 100%);
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .11);
}

.access-denied-visual {
    position: relative;
    display: grid;
    min-height: 390px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .18), transparent 30%),
        linear-gradient(145deg, #0f766e 0%, #0f4c5c 100%);
    color: #ffffff;
    place-items: center;
}

.access-denied-visual::before,
.access-denied-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
}

.access-denied-visual::before {
    width: 250px;
    height: 250px;
}

.access-denied-visual::after {
    width: 340px;
    height: 340px;
}

.access-denied-code {
    position: absolute;
    top: 24px;
    left: 26px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .16em;
}

.access-denied-icon {
    z-index: 1;
    display: grid;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 30px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 22px 42px rgba(5, 35, 44, .25);
    font-size: 46px;
    backdrop-filter: blur(8px);
    place-items: center;
}

.access-denied-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 64px);
}

.access-denied-content h2 {
    max-width: 520px;
    margin: 8px 0 12px;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.access-denied-content > p {
    max-width: 540px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.access-denied-actions .btn {
    min-height: 44px;
    padding-right: 18px;
    padding-left: 18px;
}

.access-denied-help {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e7edf4;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.access-denied-help i {
    margin-top: 1px;
    color: var(--brand);
}

@media (max-width: 760px) {
    .access-denied-page {
        min-height: auto;
        padding: 12px 0 28px;
    }
    .access-denied-card { grid-template-columns: 1fr; }
    .access-denied-visual { min-height: 180px; }
    .access-denied-visual::before { width: 170px; height: 170px; }
    .access-denied-visual::after { width: 240px; height: 240px; }
    .access-denied-icon {
        width: 84px;
        height: 84px;
        border-radius: 24px;
        font-size: 36px;
    }
    .access-denied-content { padding: 30px 24px; }
    .access-denied-actions { align-items: stretch; flex-direction: column; }
    .access-denied-actions .btn { justify-content: center; width: 100%; }
}
