/* =====================================================================
   EVRON MATRIX HOTEL · OPERATIONAL UI
   Palette
   Logo navy ............. #131B30
   Champagne gold ........ #AB9248
   Light champagne ....... #E9D29A
   Signal red ............ #E11D2E
   Confirmed green ....... #128A45
   Warm gold ............. #F2B84B
   ===================================================================== */

:root {
    --ink: #0A0E1A;
    --ink-2: #0E1630;
    --navy: #101A3A;
    --royal: #DCA63E;
    --royal-dark: #BB8B21;
    --royal-soft: #F7F4EF;
    --periwinkle: #F4CE90;
    --periwinkle-soft: #F9F8F4;
    --red: #E11D2E;
    --red-dark: #B91423;
    --red-soft: #FDEAED;
    --green: #128A45;
    --green-soft: #E5F8EC;
    --gold: #F2B84B;
    --amber: #A96209;
    --amber-soft: #FFF4DE;
    --bg: #F9F8F5;
    --surface: #FFFFFF;
    --surface-2: #FCFBFA;
    --line: #EDEBE6;
    --line-strong: #E0DCD4;
    --muted: #7E776A;
    --muted-2: #797366;
    --text: #101729;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 44px rgba(15, 23, 48, 0.08);
    --shadow-sm: 0 8px 20px rgba(15, 23, 48, 0.06);
    --shadow-royal: 0 12px 24px rgba(220, 166, 62, 0.26);
    --font-ui: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(circle at 8% -4%, rgba(244, 206, 144, 0.22), transparent 30%),
        radial-gradient(circle at 100% 8%, rgba(242, 184, 75, 0.11), transparent 25%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(30px, 3.4vw, 44px); }
h2 { font-size: clamp(22px, 2.2vw, 29px); }
h3 { font-size: 20px; }

p { margin: 0; }

a {
    color: var(--royal);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover { color: var(--royal-dark); }

button, input, select, textarea {
    font: inherit;
}

img { max-width: 100%; display: block; }

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: -0.2em;
}

::selection {
    background: var(--periwinkle);
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(244, 206, 144, 0.55);
    outline-offset: 2px;
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 0.88em;
    color: var(--ink-2);
}

/* ---------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn .icon { width: 16px; height: 16px; }

.btn-primary {
    background: linear-gradient(135deg, #EBB44F 0%, var(--royal) 48%, var(--royal-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-royal);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 16px 28px rgba(220, 166, 62, 0.34);
}

.btn-danger {
    background: linear-gradient(135deg, #F02A3C 0%, var(--red) 55%, var(--red-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(225, 29, 46, 0.28);
}

.btn-danger:hover {
    color: #fff;
    box-shadow: 0 14px 26px rgba(225, 29, 46, 0.36);
}

.btn-success {
    background: linear-gradient(135deg, #1AA35A, var(--green));
    color: #fff;
    box-shadow: 0 10px 20px rgba(18, 138, 69, 0.22);
}

.btn-success:hover { color: #fff; }

.btn-dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 10px 22px rgba(10, 14, 26, 0.24);
}

.btn-dark:hover { color: #fff; }

.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: var(--periwinkle);
    background: var(--periwinkle-soft);
    color: var(--ink);
}

.btn-light {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.btn-light:hover { color: var(--royal); }

.btn-outline-danger {
    background: #fff;
    border-color: #F3C0C6;
    color: var(--red-dark);
}

.btn-outline-danger:hover {
    background: var(--red-soft);
    border-color: #E88C97;
    color: var(--red-dark);
}

.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 14.5px; border-radius: 12px; }

.btn-print { padding: 13px 20px; }

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------------------------------------------------------------------
   Top chrome
   ------------------------------------------------------------------ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    border-bottom: 1px solid rgba(244, 206, 144, 0.14);
    box-shadow: 0 10px 30px rgba(10, 14, 26, 0.18);
}

.topbar-inner {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand:hover { color: #fff; }

.brand-logo {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(244, 206, 144, 0.28);
    box-shadow: 0 6px 18px rgba(4, 7, 16, 0.28);
    overflow: hidden;
}

.brand-logo img {
    display: block;
    height: 44px;
    width: auto;
    border-radius: 9px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-word {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    line-height: 1;
}

.brand-sub {
    font-size: 9px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--periwinkle);
    font-weight: 700;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 14px;
}

.topnav a {
    padding: 9px 13px;
    border-radius: 9px;
    color: #C8C2B6;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.18s ease;
}

.topnav a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.topnav a.active {
    color: #fff;
    background: rgba(244, 206, 144, 0.16);
    box-shadow: inset 0 0 0 1px rgba(244, 206, 144, 0.2);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(140deg, var(--periwinkle), #F3CA86);
    color: #0A1230;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.avatar--guest { background: linear-gradient(140deg, #EBE6DA, #F4CE90); color: #101A42; }
.avatar--staff { background: linear-gradient(140deg, #FFD98A, #F2B84B); color: #3A2604; }
.avatar--admin { background: linear-gradient(140deg, #9CF0C0, #42C983); color: #06331A; }

.user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-meta strong {
    font-size: 12.5px;
    color: #fff;
    font-weight: 700;
}

.user-meta small {
    font-size: 10px;
    color: #AEA697;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.signout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #FFAFB8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.signout .icon { width: 15px; height: 15px; }

.signout:hover {
    background: rgba(225, 29, 46, 0.16);
    color: #FFD9DE;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
}

/* ---------------------------------------------------------------------
   Layout shells
   ------------------------------------------------------------------ */
.page-wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 28px 56px;
    flex: 1 0 auto;
}

.page-wrap--auth {
    max-width: 1180px;
    padding-top: 40px;
}

.admin-shell {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 28px 52px;
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    flex: 1 0 auto;
}

.admin-main {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 102px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 180px);
    padding: 22px 16px 16px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 0%, rgba(220, 166, 62, 0.3), transparent 38%),
        linear-gradient(170deg, #0C1326 0%, #080D1B 100%);
    border: 1px solid rgba(244, 206, 144, 0.16);
    box-shadow: 0 24px 54px rgba(10, 14, 26, 0.28);
    color: #D1CBC0;
    overflow: hidden;
}

.sidebar::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: 40px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 1px solid rgba(244, 206, 144, 0.12);
    box-shadow: 0 0 0 26px rgba(244, 206, 144, 0.035), 0 0 0 54px rgba(244, 206, 144, 0.02);
    pointer-events: none;
}

.sidebar-brand {
    padding: 4px 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.sidebar-kicker {
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--periwinkle);
    font-weight: 800;
}

.sidebar-brand strong {
    font-family: var(--font-display);
    font-size: 21px;
    color: #fff;
    letter-spacing: 0.01em;
}

.sidebar-role {
    font-size: 11px;
    color: #9D9687;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.sidebar-section {
    margin: 16px 10px 6px;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #867E6F;
    font-weight: 800;
}

.sidebar-section:first-child { margin-top: 2px; }

.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 11px;
    color: #D1CBC0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.18s ease;
}

.side-link .icon {
    width: 17px;
    height: 17px;
    color: #9E9686;
}

.side-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.side-link:hover .icon { color: var(--periwinkle); }

.side-link.active {
    background: linear-gradient(135deg, #EBB34B, #D09926);
    color: #fff;
    border-color: rgba(244, 206, 144, 0.35);
    box-shadow: 0 10px 22px rgba(220, 166, 62, 0.3);
}

.side-link.active .icon { color: #fff; }

.side-badge {
    margin-left: auto;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--periwinkle);
    color: #0A143A;
    font-size: 10.5px;
    font-weight: 800;
}

.sidebar-foot {
    margin-top: auto;
    padding: 14px;
    display: flex;
    gap: 10px;
    border-radius: 14px;
    background: rgba(244, 206, 144, 0.08);
    border: 1px solid rgba(244, 206, 144, 0.16);
    position: relative;
    z-index: 1;
}

.sidebar-foot-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(244, 206, 144, 0.12);
    color: var(--periwinkle);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.sidebar-foot strong {
    display: block;
    color: #fff;
    font-size: 12px;
    margin-bottom: 2px;
}

.sidebar-foot p {
    font-size: 11px;
    line-height: 1.45;
    color: #AEA697;
}

/* ---------------------------------------------------------------------
   Page headings + shared cards
   ------------------------------------------------------------------ */
.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-heading h1 { margin-top: 5px; }

.page-sub {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 7px;
    max-width: 660px;
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kicker {
    display: inline-block;
    font-size: 9.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--royal);
    font-weight: 800;
}

.kicker-light { color: var(--periwinkle); }

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(18, 138, 69, 0.14);
    animation: pulse-dot 2s infinite;
}

.db-status.is-off {
    color: var(--red);
}

.db-status.is-off .live-dot {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.14);
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(18, 138, 69, 0.32); }
    50% { box-shadow: 0 0 0 5px rgba(18, 138, 69, 0); }
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    min-width: 0;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.card-head h2, .card-head h3 { margin-top: 4px; }

.card-head--compact { margin-bottom: 14px; }

.card-intro {
    color: var(--muted);
    font-size: 13px;
    margin: -4px 0 18px;
}

.count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.soft-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--periwinkle-soft);
    border: 1px solid #F1EEE6;
    color: #5C5443;
    font-size: 12px;
}

.soft-note .icon {
    color: var(--royal);
    margin-top: 2px;
}

.soft-note p { line-height: 1.55; }

/* ---------------------------------------------------------------------
   Badges + status
   ------------------------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-pending {
    background: var(--periwinkle);
    border-color: #F2CD91;
    color: #0A143A;
    box-shadow: 0 3px 8px rgba(244, 206, 144, 0.32);
}

.badge-confirmed {
    background: var(--green-soft);
    border-color: #ADE5C2;
    color: #0B6A35;
}

.badge-checkedin {
    background: #F7F5F0;
    border-color: #E9E3D5;
    color: #BA8D2C;
}

.badge-checkedout {
    background: #F6F5F2;
    border-color: #E6E3DC;
    color: #726D62;
}

.badge-cancelled {
    background: var(--red-soft);
    border-color: #F5BCC3;
    color: var(--red-dark);
}

.badge-neutral {
    background: #F8F7F4;
    border-color: #EAE7E2;
    color: #746E61;
}

.badge-food { background: var(--amber-soft); border-color: #F2D69E; color: #8B5305; }
.badge-drink { background: #F7F5F1; border-color: #EBE6DA; color: #BF9337; }
.badge-item { background: #FFF4E3; border-color: #F5D9A8; color: #8A5A05; }
.badge-service { background: #F7F4EF; border-color: #E8E2D5; color: #BC8C23; }
.badge-amenity { background: #E2F7F2; border-color: #B4E6D9; color: #0C705D; }
.badge-admin { background: #E9F9EF; border-color: #B7E8C6; color: #0D6B34; }
.badge-inventory { background: #EAF1FB; border-color: #C6D7F0; color: #2A4E8F; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 auto;
}

.dot--royal { background: var(--royal); }
.dot--periwinkle { background: var(--periwinkle); }
.dot--green { background: var(--green); }
.dot--red { background: var(--red); }
.dot--gold { background: var(--gold); }
.dot--amber { background: #E8A93B; }
.dot--muted { background: #B1ACA1; }

/* ---------------------------------------------------------------------
   Alerts + flash
   ------------------------------------------------------------------ */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    animation: slide-in 0.28s ease both;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash p {
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    padding-top: 1px;
}

.flash-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.flash-icon .icon { width: 16px; height: 16px; }

.flash-success { background: #F0FBF4; border-color: #BCE8CA; }
.flash-success .flash-icon { background: var(--green-soft); color: var(--green); }
.flash-success p { color: #0C6331; }

.flash-error { background: #FFF3F4; border-color: #F5C0C6; }
.flash-error .flash-icon { background: var(--red-soft); color: var(--red); }
.flash-error p { color: #9B1020; }

.flash-info { background: #FBFAF7; border-color: #F0EDE4; }
.flash-info .flash-icon { background: var(--periwinkle-soft); color: var(--royal); }
.flash-info p { color: #9C792C; }

.flash-warning { background: #FFF9EB; border-color: #F1DCA9; }
.flash-warning .flash-icon { background: var(--amber-soft); color: var(--amber); }
.flash-warning p { color: #835006; }

.flash-close {
    border: 0;
    background: transparent;
    color: var(--muted-2);
    cursor: pointer;
    padding: 3px;
    border-radius: 6px;
    line-height: 0;
}

.flash-close:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }
.flash-close .icon { width: 15px; height: 15px; }

/* Toast notifications (transient, bottom-right) */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 40px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    animation: toast-in 0.25s ease both;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast p {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    padding-top: 1px;
}

.toast-error { background: #FFF3F4; border-color: #F5C0C6; }
.toast-error p { color: #9B1020; }

.toast-close {
    border: 0;
    background: transparent;
    color: var(--muted-2);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    border-radius: 6px;
}

.toast-close:hover { color: var(--ink); background: rgba(0, 0, 0, 0.04); }

.toast.is-leaving {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-error {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 11px;
    background: #FFF3F4;
    border: 1px solid #F3BBC2;
    color: #97101F;
    font-size: 12.5px;
    margin-bottom: 14px;
}

.form-error .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--red); }
.form-error p + p { margin-top: 4px; }

.attention-banner {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(100deg, #F9F8F4 0%, #FCFBFA 100%);
    border: 1px solid #EEEAE0;
    box-shadow: var(--shadow-sm);
}

.attention-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--periwinkle);
    color: #0A143A;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.attention-banner strong { color: #907128; font-size: 13.5px; }
.attention-banner p { color: #7C715A; font-size: 12.5px; margin-top: 2px; }

/* ---------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------ */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field label {
    font-size: 12px;
    font-weight: 700;
    color: #2A3450;
    letter-spacing: 0.01em;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.field-hint, .optional {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    font-weight: 700;
}

.input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #FEFEFD;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.35;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input:hover { border-color: #D2CCC1; }

.input:focus {
    outline: none;
    border-color: var(--royal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(220, 166, 62, 0.12);
}

textarea.input {
    resize: vertical;
    min-height: 74px;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7590' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

.input[readonly] {
    background: #FBFAF7;
    color: #575043;
    cursor: default;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .input { padding-left: 39px; }

.input-icon {
    position: absolute;
    left: 13px;
    color: var(--muted-2);
    display: inline-flex;
    pointer-events: none;
}

.input-icon .icon { width: 17px; height: 17px; }

.input-action {
    position: absolute;
    right: 7px;
    border: 0;
    background: transparent;
    color: var(--royal);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 7px 8px;
    border-radius: 7px;
}

.input-action:hover { background: var(--royal-soft); }

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

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hint {
    font-size: 11px;
    color: var(--muted);
}

.form-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.form-footnote .icon { width: 14px; height: 14px; color: var(--green); }

.switch-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface-2);
    cursor: pointer;
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #DDD9D1;
    position: relative;
    transition: 0.18s ease;
    flex: 0 0 auto;
    margin-top: 2px;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.18s ease;
}

.switch-row input:checked + .switch { background: var(--royal); }
.switch-row input:checked + .switch::after { transform: translateX(16px); }
.switch-row strong { display: block; font-size: 12.5px; color: var(--ink-2); }
.switch-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.role-callout {
    display: flex;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--periwinkle-soft);
    border: 1px solid #F1EDE5;
}

.role-callout-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    color: var(--royal);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.role-callout strong { display: block; font-size: 12.5px; color: #8E7029; }
.role-callout p { font-size: 11.5px; color: #7C715A; margin-top: 2px; }

.form-sticky { position: sticky; top: 102px; }

/* ---------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------ */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    min-width: 720px;
}

.data-table thead th {
    background: linear-gradient(180deg, #0F1831, #0A1024);
    color: #E3CAA0;
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    text-align: left;
    padding: 12px 14px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(244, 206, 144, 0.18);
}

.data-table thead th:first-child { border-radius: 0; }

.data-table tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid #F4F3F0;
    vertical-align: middle;
    color: #2A3450;
}

.data-table tbody tr:nth-child(even) { background: #FDFCFB; }

.data-table tbody tr:hover { background: #FBFAF7; }

.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table--compact { min-width: 640px; }
.data-table--compact tbody td { padding: 11px 12px; }
.data-table--bookings { min-width: 960px; }
.data-table--rooms { min-width: 860px; }
.data-table--inventory { min-width: 800px; }

.table-primary {
    font-weight: 700;
    color: var(--ink-2);
    font-size: 12.5px;
    white-space: nowrap;
}

.table-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
}

.table-link {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--royal);
    white-space: nowrap;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.row-actions form { margin: 0; }

.row-highlight {
    background: #EEF8F1 !important;
    box-shadow: inset 3px 0 0 var(--green);
}

.row-muted { opacity: 0.64; }

.th-actions { text-align: right; }
.data-table td:last-child .row-actions { justify-content: flex-end; }

.guest-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.guest-cell .avatar { width: 31px; height: 31px; font-size: 10px; border: 0; }

.ref-pill {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--periwinkle-soft);
    border: 1px solid #F2EEE6;
    color: #7E6120;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    vertical-align: 1px;
}

.room-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-thumb {
    width: 49px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}

.stock-pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 7px;
    background: #F7F6F4;
    border: 1px solid var(--line);
    color: #686153;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.stock-pill--ok {
    background: #E9F9EF;
    border-color: #B7E8C6;
    color: #0D6B34;
}

.stock-pill--low {
    background: var(--amber-soft);
    border-color: #F2D69E;
    color: #8B5305;
}

.stock-pill--out {
    background: var(--red-soft);
    border-color: #F2C0C6;
    color: var(--red-dark);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 5px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}

.tab span {
    min-width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #EFEDEA;
    color: #726B5D;
    font-size: 9.5px;
    font-weight: 800;
}

.tab:hover { background: #fff; color: var(--ink); }

.tab.active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 6px 12px rgba(10, 14, 26, 0.18);
}

.tab.active span { background: var(--periwinkle); color: #0A143A; }

/* Mini stats / workflow */
.mini-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.mini-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.mini-stat strong { color: var(--ink); font-size: 12.5px; }

.workflow-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    font-size: 11.5px;
}

.workflow-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.workflow-step strong {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--periwinkle-soft);
    color: var(--royal);
    display: inline-grid;
    place-items: center;
    font-size: 10px;
}

.workflow-line {
    width: 22px;
    height: 1px;
    background: var(--line-strong);
}

/* Empty states */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 34px 22px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px dashed var(--line-strong);
    color: var(--muted);
    grid-column: 1 / -1;
}

.empty-state .icon {
    width: 30px;
    height: 30px;
    color: var(--periwinkle);
    margin-bottom: 2px;
}

.empty-state h3 { font-size: 18px; }
.empty-state p { font-size: 12.5px; max-width: 440px; }
.empty-state--wide { padding: 46px 24px; }
.empty-state .btn { margin-top: 8px; }

/* ---------------------------------------------------------------------
   Guest dashboard
   ------------------------------------------------------------------ */
.welcome-bar {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: center;
    padding: 32px 34px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 85% 10%, rgba(242, 184, 75, 0.22), transparent 32%),
        linear-gradient(112deg, #0B1125 0%, #16245B 42%, #DCA63E 100%);
    color: #fff;
    box-shadow: 0 26px 58px rgba(15, 28, 84, 0.28);
    margin-bottom: 26px;
}

.welcome-cityscape {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    opacity: 0.16;
    background-image:
        linear-gradient(to top, #fff 0 1px, transparent 1px),
        repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.32) 26px 28px, transparent 28px 52px);
    mask-image: linear-gradient(to top, #000 20%, transparent 100%);
    pointer-events: none;
}

.welcome-copy { position: relative; z-index: 1; }

.welcome-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--periwinkle);
    font-weight: 800;
    margin-bottom: 10px;
}

.welcome-kicker .icon { width: 14px; height: 14px; }

.welcome-copy h1 {
    color: #fff;
    font-size: clamp(30px, 3.2vw, 42px);
    margin-bottom: 8px;
}

.welcome-copy > p {
    color: #E4DFD3;
    font-size: 13.5px;
    max-width: 620px;
}

.welcome-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.welcome-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #F1EEE6;
    font-size: 10.5px;
    font-weight: 600;
}

.welcome-chips .icon { width: 13px; height: 13px; color: var(--periwinkle); }

.welcome-card {
    position: relative;
    z-index: 1;
    padding: 18px;
    border-radius: 16px;
    background: rgba(10, 14, 26, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.welcome-card-kicker {
    display: block;
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--periwinkle);
    font-weight: 800;
    margin-bottom: 4px;
}

.welcome-card strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.02em;
}

.welcome-card p {
    font-size: 11.5px;
    color: #E3CAA0;
    margin: 5px 0 12px;
}

.welcome-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
}

.welcome-link .icon { width: 14px; height: 14px; }
.welcome-link:hover { color: var(--periwinkle); }

.guest-grid {
    display: grid;
    grid-template-columns: minmax(340px, 410px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

.booking-card { position: sticky; top: 102px; }

.booking-card .card-head { margin-bottom: 10px; }
.booking-card .card-intro { margin-bottom: 16px; }

.estimate-panel {
    padding: 14px 15px;
    border-radius: 12px;
    background: linear-gradient(140deg, #0E1730, #131F44);
    color: #F0ECE4;
    border: 1px solid rgba(244, 206, 144, 0.22);
}

.estimate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11.5px;
    padding: 4px 0;
    color: #BCB4A3;
}

.estimate-row strong {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.estimate-total {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #E3CAA0;
}

.estimate-total strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--periwinkle);
}

.estimate-note {
    font-size: 9.5px;
    color: #9C927F;
    margin-top: 6px;
}

.suites-panel { min-width: 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2 { margin-top: 4px; }

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.rooms-grid--guest { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

.room-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.room-card:hover {
    transform: translateY(-3px);
    border-color: #E5E0D3;
    box-shadow: 0 20px 40px rgba(15, 23, 48, 0.13);
}

.room-art {
    position: relative;
    height: 158px;
    overflow: hidden;
    background: var(--ink-2);
}

.room-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-card:hover .room-art img { transform: scale(1.045); }

.room-tag {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.room-status {
    position: absolute;
    top: 11px;
    right: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(229, 248, 236, 0.94);
    color: #0C6A35;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.room-status .icon { width: 11px; height: 11px; }

.room-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.room-type {
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--royal);
    font-weight: 800;
}

.room-sqm {
    font-size: 10px;
    color: var(--muted-2);
    font-weight: 600;
}

.room-body h3 {
    font-size: 19px;
    line-height: 1.18;
    margin-bottom: 6px;
}

.room-desc {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 10.5px;
    color: #6C6557;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1px solid #F5F4F1;
    margin-bottom: 12px;
}

.room-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.room-meta .icon { width: 13px; height: 13px; color: var(--muted-2); }

.room-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.room-price strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    color: var(--ink);
    line-height: 1.15;
}

.room-price span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted-2);
    font-weight: 700;
}

.btn-select {
    padding: 9px 11px;
    font-size: 11px;
    border-radius: 9px;
    white-space: normal;
    max-width: 130px;
    line-height: 1.2;
}

.room-card.is-selected {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.13), var(--shadow);
}

.my-stays { margin-top: 4px; }
.my-stays .section-head { margin-bottom: 14px; }

/* ---------------------------------------------------------------------
   Admin dashboard
   ------------------------------------------------------------------ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.stat-card:hover {
    transform: translateY(-2px);
    color: var(--text);
    box-shadow: 0 22px 42px rgba(15, 23, 48, 0.12);
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.05;
}

.stat-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.stat-icon {
    width: 33px;
    height: 33px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.stat-icon .icon { width: 17px; height: 17px; }

.stat-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.stat-value small {
    font-size: 18px;
    color: var(--muted-2);
    font-weight: 400;
}

.stat-value--money { font-size: 25px; }

.stat-note {
    margin-top: 7px;
    font-size: 10.5px;
    color: var(--muted);
}

.stat-card--periwinkle .stat-icon { background: var(--periwinkle-soft); color: var(--royal); }
.stat-card--green .stat-icon { background: var(--green-soft); color: var(--green); }
.stat-card--royal .stat-icon { background: var(--royal-soft); color: var(--royal); }
.stat-card--ink .stat-icon { background: #F4F3F0; color: var(--ink); }

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.action-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 17px;
    border-radius: 15px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    position: relative;
    transition: 0.18s ease;
}

.action-card:hover {
    color: var(--text);
    transform: translateY(-2px);
    border-color: #E4DFD3;
    box-shadow: 0 18px 36px rgba(15, 23, 48, 0.11);
}

.action-card > .icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 15px;
    height: 15px;
    color: var(--muted-2);
}

.action-card:hover > .icon { color: var(--royal); }

.action-emoji {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 18px;
    flex: 0 0 auto;
}

.action-card strong {
    display: block;
    font-size: 12.5px;
    color: var(--ink-2);
    padding-right: 12px;
    line-height: 1.3;
}

.action-card span {
    display: block;
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--royal);
    font-weight: 800;
    margin: 3px 0 5px;
}

.action-card p {
    font-size: 10.5px;
    color: var(--muted);
    line-height: 1.45;
}

.dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-side .card { padding: 19px; }

.side-empty {
    font-size: 12px;
    color: var(--muted);
    padding: 8px 0 2px;
}

.arrival-list { display: flex; flex-direction: column; gap: 10px; }

.arrival-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 9px;
    border-bottom: 1px solid #F5F4F1;
}

.arrival-row:last-child { border-bottom: 0; padding-bottom: 0; }

.arrival-row .avatar { width: 32px; height: 32px; font-size: 10px; }

.arrival-row strong { display: block; font-size: 12px; color: var(--ink-2); }
.arrival-row span { display: block; font-size: 10.5px; color: var(--muted); }

.revenue-breakdown { display: flex; flex-direction: column; gap: 9px; }

.revenue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    color: var(--muted);
}

.revenue-row div { display: flex; align-items: center; gap: 7px; }
.revenue-row strong { color: var(--ink-2); font-size: 12px; }

.revenue-bar {
    height: 7px;
    border-radius: 999px;
    background: #F0E3C2;
    overflow: hidden;
    margin: 4px 0;
}

.revenue-bar-room {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--royal), var(--periwinkle));
}

.revenue-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}

.revenue-total strong {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
}

.inventory-pulse {
    background: linear-gradient(140deg, #0E1730, #101C3E);
    border-color: rgba(244, 206, 144, 0.2);
    color: #E3CAA0;
}

.inventory-pulse-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.inventory-pulse .stat-icon {
    background: rgba(244, 206, 144, 0.13);
    color: var(--periwinkle);
}

.inventory-pulse-head strong { display: block; font-size: 12px; color: #fff; line-height: 1.3; }
.inventory-pulse-head span { display: block; font-size: 10.5px; color: #AEA697; }
.inventory-pulse .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.13);
    color: #F2F0EA;
    box-shadow: none;
}

.inventory-pulse .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* Split grids for management screens */
.split-grid {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.split-grid--wide { grid-template-columns: minmax(330px, 390px) minmax(0, 1fr); }

/* Team roster */
.team-list { display: flex; flex-direction: column; gap: 5px; }

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

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

.team-row .avatar { width: 36px; height: 36px; font-size: 10.5px; border: 0; }

.team-copy { flex: 1; min-width: 0; }
.team-copy strong { display: block; font-size: 12.5px; color: var(--ink-2); }
.team-copy span { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }

.team-row.is-editing { background: #FBF5E6; border-radius: 10px; padding: 10px 12px; }

.team-actions { margin-left: 2px; }

.team-actions form { display: flex; margin: 0; }

/* ---------------------------------------------------------------------
   Auth + registration
   ------------------------------------------------------------------ */
.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(15, 23, 48, 0.16);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 44px;
    min-height: 660px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(242, 184, 75, 0.22), transparent 30%),
        linear-gradient(150deg, #090E1D 0%, #14204E 55%, #DCA63E 130%);
    color: #fff;
}

.auth-visual::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: 60px;
    border-radius: 50%;
    border: 1px solid rgba(244, 206, 144, 0.18);
    box-shadow: 0 0 0 34px rgba(244, 206, 144, 0.04), 0 0 0 70px rgba(244, 206, 144, 0.025);
    pointer-events: none;
}

.auth-cityscape {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52%;
    display: flex;
    align-items: flex-end;
    gap: 1.6%;
    padding: 0 4%;
    opacity: 0.28;
    mask-image: linear-gradient(to top, #000 30%, transparent 100%);
    pointer-events: none;
}

.auth-cityscape span {
    display: block;
    width: var(--w);
    height: var(--h);
    background: linear-gradient(to top, rgba(244, 206, 144, 0.65), rgba(244, 206, 144, 0.04));
    border-radius: 4px 4px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-visual-top { position: relative; z-index: 1; }

.auth-visual h1 {
    color: #fff;
    font-size: clamp(38px, 4.2vw, 56px);
    margin: 10px 0 14px;
}

.auth-visual em, .setup-hero em, .register-intro em {
    font-style: italic;
    color: var(--periwinkle);
}

.auth-visual-top > p {
    color: #E3CAA0;
    font-size: 14px;
    max-width: 420px;
}

.auth-proof { position: relative; z-index: 1; }

.auth-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-stats span {
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: #E3DFD5;
    font-size: 10.5px;
}

.auth-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 19px;
    color: #fff;
    line-height: 1.15;
}

.auth-visual blockquote {
    margin: 0;
    padding: 14px 16px;
    border-left: 2px solid var(--gold);
    background: rgba(255, 255, 255, 0.055);
    border-radius: 0 10px 10px 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-style: italic;
    color: #F8F6F1;
    line-height: 1.45;
}

.auth-visual cite {
    display: block;
    margin-top: 5px;
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #C2BAAB;
}

.auth-panel {
    padding: 44px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-head h2 { margin: 7px 0 8px; }
.auth-panel-head p { font-size: 12.5px; color: var(--muted); max-width: 390px; }
.auth-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }

.demo-card {
    margin-top: 20px;
    padding: 15px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.demo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.demo-tag {
    padding: 2px 7px;
    border-radius: 5px;
    background: var(--periwinkle);
    color: #0A143A;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.demo-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: left;
    cursor: pointer;
    transition: 0.16s ease;
}

.demo-chip:hover {
    border-color: var(--periwinkle);
    background: var(--periwinkle-soft);
}

.demo-chip .avatar { width: 30px; height: 30px; font-size: 9.5px; border: 0; }
.demo-chip strong { display: block; font-size: 11px; color: var(--ink-2); }
.demo-chip small { display: block; font-size: 9px; color: var(--muted); }
.demo-card > p { font-size: 10px; color: var(--muted-2); margin-top: 9px; }

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--muted);
}

.auth-links a { font-weight: 700; }
.muted-link { color: var(--muted-2); font-weight: 600 !important; }

.demo-chips .demo-chip:only-child { grid-column: 1 / -1; }

/* Staff portal variant keeps the same layout but shifts the mood to the
   internal operations desk: deeper navy, gold accent, blue-tinted panel. */
.auth-grid--staff { border-color: #EAE5D8; }

.auth-visual--staff {
    background:
        radial-gradient(circle at 10% 88%, rgba(244, 206, 144, 0.26), transparent 42%),
        radial-gradient(circle at 88% 6%, rgba(242, 184, 75, 0.18), transparent 32%),
        linear-gradient(155deg, #05070F 0%, #0C1738 52%, #8F7029 125%);
}

.auth-visual--staff::before {
    right: auto;
    left: -110px;
    top: auto;
    bottom: 40px;
    border-color: rgba(242, 184, 75, 0.16);
    box-shadow: 0 0 0 34px rgba(242, 184, 75, 0.035), 0 0 0 70px rgba(242, 184, 75, 0.02);
}

.auth-grid--staff .auth-visual h1 em { color: var(--gold); }
.auth-grid--staff .auth-visual blockquote { border-left-color: var(--periwinkle); }

.auth-panel--staff {
    background: linear-gradient(180deg, #FFFFFF 0%, #FCFBFA 100%);
    border-left: 3px solid rgba(220, 166, 62, 0.14);
}

.auth-panel--staff .input-icon { color: #DCA63E; }

/* Register */
.register-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    border-radius: 26px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(15, 23, 48, 0.15);
}

.register-intro {
    position: relative;
    padding: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(242, 184, 75, 0.2), transparent 30%),
        linear-gradient(155deg, #090E1D, #17265B 70%, #DCA63E 140%);
    color: #fff;
    overflow: hidden;
}

.register-intro::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(244, 206, 144, 0.18);
    box-shadow: 0 0 0 34px rgba(244, 206, 144, 0.04), 0 0 0 68px rgba(244, 206, 144, 0.025);
}

.register-intro h1 { color: #fff; }
.register-intro > p { color: #E3CAA0; font-size: 13.5px; max-width: 400px; }
.register-intro .btn { align-self: flex-start; margin-top: 4px; position: relative; z-index: 1; }

.tick-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.tick-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.tick-list .icon {
    width: 15px;
    height: 15px;
    color: var(--green);
    margin-top: 1px;
    flex: 0 0 auto;
}

.tick-list strong { color: var(--ink-2); }
.tick-list--light li { color: #E3CAA0; }
.tick-list--light strong { color: #fff; }
.tick-list--light .icon { color: var(--periwinkle); }

.register-form-card {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-form-card .card-head { margin-bottom: 6px; }
.register-form-card .card-intro { margin-bottom: 18px; }

/* ---------------------------------------------------------------------
   Setup engine
   ------------------------------------------------------------------ */
.setup-page { display: flex; flex-direction: column; gap: 24px; }

.setup-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 44px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 84% 20%, rgba(242, 184, 75, 0.24), transparent 32%),
        linear-gradient(115deg, #090E1D 0%, #14204E 52%, #DCA63E 120%);
    color: #fff;
    box-shadow: 0 28px 60px rgba(15, 28, 84, 0.26);
}

.setup-hero-copy { position: relative; z-index: 1; max-width: 660px; }
.setup-hero h1 { color: #fff; margin: 10px 0 12px; font-size: clamp(32px, 3.8vw, 48px); }
.setup-hero p { color: #E3CAA0; font-size: 14px; max-width: 590px; }

.setup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.setup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ECE8DF;
    font-size: 10px;
    font-weight: 600;
}

.setup-badge .icon { width: 13px; height: 13px; color: var(--periwinkle); }

.setup-orbit {
    position: relative;
    width: 200px;
    height: 200px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px solid rgba(244, 206, 144, 0.25);
}

.orbit-ring--two { inset: 0; border-style: dashed; opacity: 0.5; }

.orbit-core {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, rgba(244, 206, 144, 0.25), rgba(220, 166, 62, 0.45));
    border: 1px solid rgba(244, 206, 144, 0.4);
    color: #fff;
    box-shadow: 0 0 40px rgba(244, 206, 144, 0.3);
}

.orbit-core .icon { width: 32px; height: 32px; }

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(242, 184, 75, 0.7);
}

.orbit-dot--one { top: 6px; left: 92px; }
.orbit-dot--two { right: 20px; bottom: 46px; width: 7px; height: 7px; background: var(--periwinkle); }
.orbit-dot--three { left: 24px; bottom: 56px; width: 6px; height: 6px; background: #fff; }

.setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 22px;
    align-items: start;
}

.setup-checklist { padding: 28px; }

.setup-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.setup-state .icon { width: 14px; height: 14px; }
.setup-state.is-ready { background: var(--green-soft); border: 1px solid #B7E6C6; color: #0D6B34; }
.setup-state.is-failed { background: var(--red-soft); border: 1px solid #F3BBC2; color: var(--red-dark); }

.check-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 18px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 11px;
    border: 1px solid #F1EFEC;
    background: #FEFEFD;
}

.check-row--success { background: #FAFDFB; border-color: #DDF1E4; }
.check-row--failed { background: #FFF7F8; border-color: #F5C7CC; }

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #F6F4F0;
    color: var(--muted);
}

.check-row--success .check-icon { background: var(--green-soft); color: var(--green); }
.check-row--failed .check-icon { background: var(--red-soft); color: var(--red); }
.check-icon .icon { width: 15px; height: 15px; }

.check-copy { flex: 1; min-width: 0; }
.check-copy strong { display: block; font-size: 12.5px; color: var(--ink-2); }
.check-copy span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.check-meta {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6F6756;
    background: #F6F5F3;
    border: 1px solid #EDEBE6;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.check-row--success .check-meta { background: var(--green-soft); border-color: #C8EAD4; color: #0D6B34; }

.setup-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(110deg, #0D1530, #13214C);
    border: 1px solid rgba(244, 206, 144, 0.22);
    color: #E3CAA0;
}

.setup-launch strong { display: block; color: #fff; font-size: 13.5px; }
.setup-launch p { font-size: 11.5px; color: #BBB3A2; margin-top: 2px; }

.btn-launch {
    padding: 14px 20px;
    font-size: 12.5px;
    letter-spacing: 0.08em;
}

.setup-launch-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.setup-launch--failed {
    background: #FFF5F6;
    border-color: #F4C4C9;
    color: #7C1A26;
}

.setup-launch--failed strong { color: #94101F; }
.setup-launch--failed p { color: #A85A64; }

.setup-error {
    padding: 15px 16px;
    border-radius: 12px;
    background: #FFF3F4;
    border: 1px solid #F4C2C8;
    color: #8E1020;
    margin-bottom: 16px;
    font-size: 12px;
}

.setup-error strong { display: block; margin-bottom: 3px; }
.setup-error p { font-size: 11.5px; }
.setup-error-hint { color: #A85A64 !important; margin-top: 6px; }

.setup-rerun {
    margin-top: 12px;
    font-size: 10.5px;
    color: var(--muted-2);
    text-align: center;
}

.setup-side { display: flex; flex-direction: column; gap: 18px; }
.setup-side .card { padding: 22px; }

.credential-list { display: flex; flex-direction: column; gap: 9px; }

.credential {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.credential .avatar { width: 33px; height: 33px; font-size: 9.5px; border: 0; }
.credential strong { display: block; font-size: 11.5px; color: var(--ink-2); }
.credential span { display: block; font-size: 10px; color: var(--muted); }

.setup-notes ul { margin-top: 12px; }
.setup-note-foot {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-size: 10px;
    color: var(--muted-2);
    line-height: 1.7;
}

/* ---------------------------------------------------------------------
   Invoice + billing engine
   ------------------------------------------------------------------ */
.invoice-grid {
    display: grid;
    grid-template-columns: minmax(320px, 370px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.invoice-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 102px;
}

.invoice-controls .card { padding: 20px; }

.charge-card .card-head { margin-bottom: 12px; }

.folio-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 11px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.folio-summary span {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 800;
}

.folio-summary strong {
    display: block;
    font-size: 11.5px;
    color: var(--ink-2);
    margin-top: 1px;
    line-height: 1.3;
}

.charge-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
}

.charge-total span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #BEB6A7;
    font-weight: 700;
}

.charge-total strong {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--periwinkle);
}

.folio-mini {
    padding: 17px 19px;
}

.folio-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    font-size: 11.5px;
    color: var(--muted);
}

.folio-mini-row strong { color: var(--ink-2); font-size: 12px; }

.folio-mini-total {
    margin-top: 6px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 9.5px;
    font-weight: 800;
}

.folio-mini-total strong {
    font-family: var(--font-display);
    font-size: 21px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--royal);
}

.invoice-preview { min-width: 0; }

.invoice-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 13px;
    padding: 12px 16px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.invoice-toolbar strong { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.invoice-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 64px 30px;
    min-height: 520px;
    justify-content: center;
    background:
        linear-gradient(#fff, #fff) padding-box,
        repeating-linear-gradient(45deg, #F6F4F1 0 10px, #FDFDFC 10px 20px) border-box;
    border: 1px dashed var(--line-strong);
}

.invoice-placeholder-mark {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--periwinkle-soft);
    border: 1px solid #F1EDE5;
    color: var(--royal);
    display: grid;
    place-items: center;
}

.invoice-placeholder-mark .icon { width: 27px; height: 27px; }
.invoice-placeholder h2 { font-size: 24px; margin-top: 3px; }
.invoice-placeholder > p { max-width: 410px; font-size: 12.5px; color: var(--muted); }

.invoice-placeholder-lines {
    width: min(420px, 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 6px;
}

.invoice-placeholder-lines span {
    height: 8px;
    border-radius: 999px;
    background: #F5F4F1;
}

.invoice-placeholder-lines span:nth-child(2) { width: 82%; }
.invoice-placeholder-lines span:nth-child(3) { width: 91%; }
.invoice-placeholder-lines span:nth-child(4) { width: 64%; }

.invoice-sheet {
    background: #fff;
    border: 1px solid #EBE8E3;
    border-radius: 4px;
    box-shadow: 0 20px 48px rgba(15, 23, 48, 0.12);
    padding: 38px 40px 30px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.invoice-sheet::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--ink) 0 44%, var(--royal) 44% 76%, var(--gold) 76% 100%);
}

.inv-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
}

.inv-brand { display: flex; align-items: center; gap: 12px; }

.inv-mark {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #F9F8F5;
    border: 1px solid #EAE7E1;
    display: grid;
    place-items: center;
}

.inv-mark svg { width: 31px; height: 31px; }

.inv-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 0.08em;
    color: var(--ink);
    line-height: 1;
}

.inv-brand span {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin-top: 5px;
}

.inv-title { text-align: right; }

.inv-eyebrow {
    display: block;
    font-size: 8.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--royal);
    font-weight: 800;
    margin-bottom: 2px;
}

.inv-title h2 {
    font-size: 29px;
    letter-spacing: 0.18em;
    line-height: 1;
}

.inv-number {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 700;
    margin-top: 6px;
}

.inv-address-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.inv-parties {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 17px 0 15px;
}

.inv-party { display: flex; flex-direction: column; gap: 2px; }
.inv-party strong { font-size: 14.5px; color: var(--ink); }
.inv-party > span:not(.inv-label) { font-size: 10.5px; color: var(--muted); }
.inv-party--right { text-align: right; align-items: flex-end; }

.inv-label {
    display: block;
    font-size: 8px;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 800;
    margin-bottom: 2px;
}

.inv-status { color: var(--green); letter-spacing: 0.06em; font-size: 10px; }

.inv-stay {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 0.6fr 0.6fr;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #FAFAF8;
    border: 1px solid #EFEDE8;
    margin-bottom: 18px;
}

.inv-stay strong { display: block; font-size: 10.5px; color: var(--ink-2); line-height: 1.3; }

.inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
    table-layout: fixed;
}

.inv-table th {
    padding: 7px 8px;
    text-align: left;
    font-size: 7.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ink);
    font-weight: 800;
}

.inv-table th:first-child { width: 43%; }
.inv-table th:nth-child(2) { width: 12%; }
.inv-table .num { text-align: right; }

.inv-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #F0EEEA;
    vertical-align: top;
    color: #484134;
}

.inv-table td strong { display: block; font-size: 10.5px; color: var(--ink); }
.inv-table td span { display: block; font-size: 8.5px; color: var(--muted-2); margin-top: 1px; }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-table .num strong { font-size: 10.5px; }

.inv-lodging td { background: #FDFDFC; }

.inv-remove-col { width: 52px; padding-left: 2px !important; padding-right: 0 !important; }

.inv-row-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.inv-receipt {
    display: inline-grid;
    place-items: center;
    color: #B4A17A;
    padding: 3px;
    border-radius: 5px;
    line-height: 0;
}

.inv-receipt:hover { color: var(--royal); background: var(--royal-soft); }
.inv-receipt .icon { width: 14px; height: 14px; }

.inv-edit {
    display: inline-grid;
    place-items: center;
    color: #B4A17A;
    padding: 3px;
    border-radius: 5px;
    line-height: 0;
}

.inv-edit:hover { color: var(--royal); background: var(--royal-soft); }
.inv-edit .icon { width: 14px; height: 14px; }

.data-table tr.is-editing td { background: #FBF5E6; }

.inv-remove {
    border: 0;
    background: transparent;
    color: #D6D1C8;
    cursor: pointer;
    padding: 3px;
    border-radius: 5px;
    line-height: 0;
}

.inv-remove:hover { color: var(--red); background: var(--red-soft); }
.inv-remove .icon { width: 14px; height: 14px; }

.inv-totals {
    width: min(330px, 100%);
    margin: 18px 0 0 auto;
}

.inv-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 2px;
    font-size: 10.5px;
    color: var(--muted);
}

.inv-total-row strong { color: var(--ink-2); font-size: 11px; }

.inv-grand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 7px;
    padding: 11px 14px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
}

.inv-grand span {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
}

.inv-grand strong {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--gold);
}

.inv-foot {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.inv-note { max-width: 58%; }
.inv-note p { font-size: 8.5px; color: var(--muted); line-height: 1.55; margin-top: 2px; }

.inv-sign {
    min-width: 185px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.inv-sign-line {
    width: 150px;
    height: 1px;
    background: var(--ink);
    margin-bottom: 3px;
}

.inv-sign span:not(.inv-sign-line) {
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.inv-sign .inv-system { font-weight: 400; color: var(--muted-2); letter-spacing: 0.02em; text-transform: none; }

/* ---------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.app-footer {
    margin-top: auto;
    background: var(--ink);
    color: #ABA496;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--royal), var(--periwinkle), var(--gold)) 1;
}

.footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }

.footer-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(244, 206, 144, 0.12);
    border: 1px solid rgba(244, 206, 144, 0.22);
    color: var(--periwinkle);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-brand strong { display: block; color: #fff; font-size: 12px; letter-spacing: 0.04em; }
.footer-brand span { display: block; font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #9A9384; }

.footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 10px;
}

.footer-meta span { display: inline-flex; align-items: center; gap: 5px; }
.footer-meta .icon { width: 12px; height: 12px; color: var(--periwinkle); }

.footer-copy { font-size: 9.5px; color: #A49C8C; }

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1220px) {
    .stat-grid, .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-split { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); }
}

@media (max-width: 1100px) {
    .admin-shell {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }

    .sidebar {
        position: relative;
        top: auto;
        min-height: 0;
        padding: 18px;
    }

    .sidebar-brand { padding-bottom: 14px; margin-bottom: 12px; }
    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .sidebar-section { display: none; }
    .sidebar-foot { display: none; }

    .guest-grid { grid-template-columns: 1fr; }
    .booking-card, .form-sticky { position: static; }
    .rooms-grid--guest { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

    .invoice-grid { grid-template-columns: 1fr; }
    .invoice-controls { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .invoice-controls > .card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .heading-actions { justify-content: flex-start; }

    .auth-grid, .register-shell, .setup-grid { grid-template-columns: 1fr; }
    .auth-visual { min-height: 430px; padding: 36px; gap: 30px; }
    .auth-panel { padding: 36px; }
    .auth-proof { display: none; }
    .setup-orbit { display: none; }
    .setup-hero { padding: 32px; }

    .welcome-bar { grid-template-columns: 1fr; padding: 28px; }
    .welcome-card { max-width: 360px; }

    .dashboard-split, .split-grid, .split-grid--wide { grid-template-columns: 1fr; }
    .invoice-controls { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .topbar-inner { padding: 0 18px; min-height: 68px; gap: 12px; }
    .menu-toggle { display: inline-flex; }

    .topnav {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 16px 14px;
        background: #0A1021;
        border-bottom: 1px solid rgba(244, 206, 144, 0.15);
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        box-shadow: 0 24px 40px rgba(10, 14, 26, 0.32);
    }

    .topnav.open { display: flex; }
    .topnav a { padding: 11px 12px; }

    .page-wrap, .admin-shell { padding-left: 18px; padding-right: 18px; }
    .page-wrap { padding-top: 26px; }

    .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side-link { font-size: 12px; }

    .stat-grid, .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-value { font-size: 30px; }
    .stat-value--money { font-size: 22px; }

    .data-table { min-width: 760px; }
    .inv-stay { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .inv-stay > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .user-meta, .signout span { display: none; }
    .user-chip { padding: 4px; background: transparent; border: 0; }
    .signout { padding: 8px; }

    .form-grid { grid-template-columns: 1fr; }
    .stat-grid, .action-grid { grid-template-columns: 1fr; }
    .sidebar-nav { grid-template-columns: 1fr; }
    .rooms-grid, .rooms-grid--guest { grid-template-columns: 1fr; }
    .welcome-bar { padding: 24px; border-radius: 20px; }
    .welcome-copy h1 { font-size: 29px; }
    .card { padding: 19px; border-radius: 15px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
    .mini-stat-row { gap: 6px; }
    .mini-stat { font-size: 10.5px; padding: 7px 10px; }
    .workflow-line { display: none; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }

    .auth-panel, .register-form-card, .register-intro, .auth-visual { padding: 28px 24px; }
    .demo-chips { grid-template-columns: 1fr; }
    .setup-hero { padding: 26px 22px; }
    .setup-checklist { padding: 20px; }
    .setup-launch { flex-direction: column; align-items: stretch; }
    .btn-launch { width: 100%; }
    .check-row { align-items: flex-start; flex-wrap: wrap; }
    .check-meta { margin-left: 40px; }

    .invoice-sheet { padding: 24px 20px; }
    .inv-head { flex-direction: column; gap: 12px; }
    .inv-title { text-align: left; }
    .inv-parties { flex-direction: column; gap: 14px; }
    .inv-party--right { text-align: left; align-items: flex-start; }
    .inv-stay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inv-table { font-size: 9.5px; }
    .inv-table th:nth-child(2) { display: none; }
    .inv-table td:nth-child(2) { display: none; }
    .invoice-toolbar { flex-direction: column; align-items: stretch; }
    .inv-foot { flex-direction: column; gap: 20px; }
    .inv-note { max-width: 100%; }
    .inv-sign { align-items: flex-start; text-align: left; }
}

@media (max-width: 460px) {
    .brand-word { font-size: 17px; }
    .brand-sub { font-size: 8px; letter-spacing: 0.24em; }
    .brand-logo img { height: 29px; }
    .topbar-right { gap: 5px; }
    .flash { padding: 11px 12px; }
    .flash-icon { width: 26px; height: 26px; }
    .stat-value { font-size: 27px; }
    .inv-stay { grid-template-columns: 1fr 1fr; }
    .folio-summary { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Print - only the invoice sheet survives
   ------------------------------------------------------------------ */
@media print {
    @page { size: A4; margin: 12mm; }

    body {
        background: #fff !important;
        display: block;
        color: #000;
        font-size: 11px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .topbar,
    .sidebar,
    .app-footer,
    .no-print,
    .page-heading,
    .heading-actions,
    .flash-stack,
    .invoice-controls,
    .invoice-toolbar,
    .workflow-note {
        display: none !important;
    }

    .admin-shell {
        display: block !important;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .admin-main { padding: 0; margin: 0; }

    .invoice-grid {
        display: block;
        margin: 0;
        padding: 0;
    }

    .invoice-preview { width: 100%; }

    .invoice-sheet {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .invoice-sheet::before { display: none; }

    .inv-head { border-bottom-width: 2px; }
    .inv-table { page-break-inside: auto; }
    .inv-table tr { page-break-inside: avoid; }
    .inv-table thead { display: table-header-group; }
    .inv-foot { page-break-inside: avoid; }

    .inv-grand {
        background: #0A0E1A !important;
        color: #fff !important;
    }

    .inv-grand strong { color: #F2B84B !important; }
    .inv-remove-col { display: none !important; }

    a { color: inherit !important; text-decoration: none !important; }
}

/* ---------------------------------------------------------------------
   Hero slider manager
   ------------------------------------------------------------------ */
.input--display {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    padding: 14px 15px;
}

.input[type="file"] {
    padding: 9px 11px;
    font-size: 12.5px;
}

.hero-form-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    margin-top: 4px;
}

.hero-thumb {
    width: 84px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}

.hero-desc {
    max-width: 420px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.data-table--hero { min-width: 820px; }

/* ---------------------------------------------------------------------
   Hero video manager
   ------------------------------------------------------------------ */
.hero-video-panel {
    margin-bottom: 24px;
    scroll-margin-top: 92px;
}

.hero-video-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-video-sub {
    max-width: 720px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.hero-video-head-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-video-grid {
    display: grid;
    grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
    gap: 24px;
    margin-top: 18px;
    align-items: start;
}

.hero-video-stage {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.hero-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #05080F;
    box-shadow: var(--shadow-sm);
}

.hero-video-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #05080F;
}

.hero-video-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(10, 14, 26, 0.72);
    border: 1px solid rgba(242, 184, 75, 0.32);
    color: #F6D79B;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.hero-video-tag .icon {
    width: 12px;
    height: 12px;
}

.hero-video-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hero-video-meta strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    letter-spacing: -0.01em;
}

.hero-video-meta > div > span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
    overflow-wrap: anywhere;
}

.hero-video-copy {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.video-res-note {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.55;
}

.video-res-note--warn {
    color: #8B5305;
    background: var(--amber-soft);
    border: 1px solid #F2D69E;
    border-radius: 8px;
    padding: 6px 9px;
}

.hero-video-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-video-actions form {
    margin: 0;
}

.hero-video-empty {
    padding: 42px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: var(--surface-2);
}

.hero-poster-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.hero-poster-preview {
    width: 128px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    flex: 0 0 auto;
}

.switch-row--compact {
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.video-library {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.video-library-title {
    color: var(--muted-2);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.video-library-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.video-library-thumb {
    width: 66px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background: var(--ink);
    color: var(--periwinkle);
}

.video-library-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-library-thumb .icon {
    width: 16px;
    height: 16px;
}

.video-library-copy {
    flex: 1;
    min-width: 0;
}

.video-library-copy strong {
    display: block;
    color: var(--ink-2);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-library-copy span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-library-row .row-actions {
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .hero-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-poster-row,
    .video-library-row {
        flex-wrap: wrap;
    }

    .video-library-copy {
        flex-basis: 100%;
    }
}

/* ---------------------------------------------------------------------
   Room reservation state + staff notification bell
   ------------------------------------------------------------------ */
.badge-reserved {
    background: var(--amber-soft);
    border-color: #F3D3A0;
    color: var(--amber);
}

.notif {
    position: relative;
}

.notif-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
    color: #EFECE4;
    cursor: pointer;
    transition: 0.18s ease;
}

.notif-toggle:hover,
.notif.is-open .notif-toggle {
    background: rgba(244, 206, 144, 0.16);
    border-color: rgba(244, 206, 144, 0.35);
    color: #fff;
}

.notif-toggle .icon {
    width: 19px;
    height: 19px;
}

.notif-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--red);
    border: 2px solid var(--ink);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.notif-count.is-hidden {
    display: none;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 24px);
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10, 14, 26, 0.28);
    z-index: 220;
    overflow: hidden;
}

.notif-panel[hidden] {
    display: none;
}

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.notif-panel-head strong {
    display: block;
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--ink);
}

.notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 11px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: var(--surface-2);
}

.notif-item.is-unread {
    background: #FCFBFA;
    box-shadow: inset 3px 0 0 var(--royal);
}

.notif-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
}

.notif-icon .icon {
    width: 17px;
    height: 17px;
}

.notif-icon--reserved {
    background: var(--amber-soft);
    color: var(--amber);
}

.notif-icon--taken {
    background: var(--green-soft);
    color: var(--green);
}

.notif-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notif-copy strong {
    font-size: 12.5px;
    color: var(--ink);
}

.notif-copy span {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.45;
}

.notif-copy small {
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--muted-2);
    text-transform: uppercase;
}

.notif-empty {
    padding: 22px 16px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.notif-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.notif-panel-foot form {
    margin: 0;
}

.notif-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--royal);
    text-decoration: none;
}

.notif-link .icon {
    width: 14px;
    height: 14px;
}

.notif-mark {
    border: none;
    background: none;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.notif-mark:hover {
    color: var(--ink);
}

@media (max-width: 640px) {
    .notif-panel {
        position: fixed;
        top: 80px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }
}

/* =====================================================================
   INVENTORY & STOCK CONSOLE
   ===================================================================== */

.inventory-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 11px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.filter-tab {
    padding: 7px 11px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.filter-tab:hover { background: #fff; color: var(--ink); }

.filter-tab.is-active {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 5px 12px rgba(10, 14, 26, 0.18);
}

.inventory-search {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inventory-search .input {
    width: 190px;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}

.stock-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.stock-flag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stock-flag--ok { color: #0D6B34; }
.stock-flag--low { color: #8B5305; }
.stock-flag--out { color: var(--red-dark); }

.stock-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 7px;
}

.input--tiny {
    width: 58px;
    min-height: 30px;
    padding: 5px 7px;
    font-size: 11.5px;
    border-radius: 7px;
}

.stock-quick__note {
    width: 120px;
}

.qty-in {
    color: #0D6B34 !important;
    border-color: #B7E8C6 !important;
}

.qty-out {
    color: var(--red-dark) !important;
    border-color: #F2C0C6 !important;
}

.qty-up { color: #0D6B34; }
.qty-down { color: var(--red-dark); }

/* Per-item control bar under each stock entry */
.data-table--inventory tbody.inventory-item tr:nth-child(n) { background: transparent; }

.data-table--inventory tbody.inventory-item:nth-of-type(even) tr.inventory-main { background: #FDFCFB; }

.data-table--inventory tbody.inventory-item tr.inventory-main:hover { background: #FBFAF7; }

.data-table--inventory tbody.inventory-item tr.inventory-controls td {
    padding: 10px 14px 12px;
    background: #FAF8F3;
    border-top: 1px dashed #EDE7DC;
    border-bottom: 1px solid var(--line);
}

.data-table--inventory tbody.inventory-item:last-of-type tr.inventory-controls td { border-bottom: 0; }

.item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.item-controls form { display: flex; align-items: center; gap: 4px; margin: 0; }

.item-controls__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.item-controls__stock { justify-content: flex-end; margin-left: auto; }

.stock-quick.item-controls__stock { margin-top: 0; }

.item-controls__label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.table-empty {
    margin: 0;
    padding: 14px 4px;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

.stock-ledger {
    margin-top: 18px;
}

.movement-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.movement-in {
    background: #E9F9EF;
    border-color: #B7E8C6;
    color: #0D6B34;
}

.movement-out {
    background: var(--red-soft);
    border-color: #F2C0C6;
    color: var(--red-dark);
}

.movement-adjust {
    background: #F9F8F4;
    border-color: #E7E2D5;
    color: #7E6120;
}

.data-table--stock {
    min-width: 900px;
}

.inv-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

@media (max-width: 640px) {
    .inventory-toolbar { align-items: stretch; }
    .inventory-search { width: 100%; }
    .inventory-search .input { flex: 1 1 auto; width: auto; }
    .stock-quick { justify-content: flex-start; }
}

/* ---------------------------------------------------------------------
   Logo palette pass
   Sampled from evronmatrix_logo.jpg: logo navy #131B30, champagne gold
   #AB9248 / #D9B45C, warm ivory #EDE6D6.
   ------------------------------------------------------------------ */
:root {
    --ink: #101625;
    --ink-2: #141D31;
    --navy: #1B2439;
    --royal: #8E6C22;
    --royal-dark: #6E5214;
    --royal-soft: #F6EFDC;
    --periwinkle: #E2C583;
    --periwinkle-soft: #F9F3E3;
    --gold: #D9B45C;
    --bg: #F5F2E9;
    --surface-2: #FAF7F0;
    --line: #E7E0D0;
    --line-strong: #D8CEB8;
    --muted: #6C6759;
    --muted-2: #676253;
    --text: #1B2233;
    --shadow: 0 18px 44px rgba(16, 22, 37, 0.09);
    --shadow-sm: 0 8px 20px rgba(16, 22, 37, 0.06);
    --shadow-royal: 0 12px 24px rgba(142, 108, 34, 0.28);
}

.btn-primary {
    background: linear-gradient(135deg, #F1DCA4 0%, #DDB96B 48%, #C39B45 100%);
    color: #1B2233;
}

.btn-primary:hover {
    color: #101625;
    box-shadow: 0 16px 30px rgba(142, 108, 34, 0.34);
}

.side-link.active {
    background: linear-gradient(135deg, #E7CE93, #CDA95B 60%, #B48C3C);
    color: #131A28;
    border-color: rgba(240, 219, 167, 0.55);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.side-link.active .icon { color: #131A28; }

.badge-drink { background: #F7E8EE; border-color: #E9C3D3; color: #8C3453; }
.badge-service { background: #F2F3E4; border-color: #D8DBBE; color: #5F682C; }
.badge-checkedin { background: #E9EEF6; border-color: #C9D5E6; color: #2E4A72; }

/* Guest payment accounts banner + admin account list */
.bank-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
    padding: 26px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #131B30 0%, #1B2439 58%, #6E5214 100%);
    color: #F5F2E9;
    box-shadow: var(--shadow);
}

.bank-strip .kicker { color: #E2C583; }

.bank-strip h2 {
    margin: 6px 0 8px;
    font-size: 22px;
    color: #FFF9EC;
}

.bank-strip p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(245, 242, 233, 0.78);
}

.bank-strip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.bank-tile {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(226, 197, 131, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.bank-tile-bank {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #E2C583;
}

.bank-tile strong { font-size: 13.5px; color: #FFF9EC; }

.bank-tile-number {
    font-family: "Courier New", Consolas, monospace;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #FFF9EC;
}

.bank-number {
    font-family: "Courier New", Consolas, monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
}

@media (max-width: 860px) {
    .bank-strip { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Point of sale terminal
   ------------------------------------------------------------------ */
.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.pos-toolbar {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.pos-search {
    position: relative;
    display: flex;
    align-items: center;
}

.pos-search > .icon {
    position: absolute;
    left: 13px;
    z-index: 1;
    color: var(--muted);
    pointer-events: none;
}

.pos-search .input {
    width: 100%;
    padding-left: 38px;
}

.pos-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.pos-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pos-tab span {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 10px;
    font-weight: 800;
}

.pos-tab.is-on {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.pos-tab.is-on span {
    background: rgba(255, 255, 255, 0.16);
    border-color: transparent;
    color: #fff;
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
}

.pos-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 148px;
    padding: 14px 14px 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pos-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--line-strong);
}

.pos-tile:hover:not(:disabled):not(.is-locked) {
    transform: translateY(-2px);
    border-color: #E5D9BF;
    box-shadow: 0 16px 30px rgba(15, 23, 48, 0.10);
}

.pos-tile:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.pos-tile[hidden] { display: none; }

.pos-tile.is-locked {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.pos-tile--suite::before { background: var(--royal); }
.pos-tile--drink::before { background: #4C8FB8; }
.pos-tile--food::before { background: #C97B3C; }
.pos-tile--item::before { background: #8B7BB8; }
.pos-tile--service::before { background: #3F9C7A; }
.pos-tile--amenity::before { background: #C77B9C; }

.pos-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.pos-stock {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.pos-stock--low { color: var(--amber); }
.pos-stock--out { color: var(--red); }

.pos-tile > strong {
    font-size: 13.5px;
    line-height: 1.25;
    color: var(--ink);
}

.pos-tile--suite > strong {
    font-family: var(--font-display);
    font-size: 18px;
}

.pos-tile-sub {
    flex: 1;
    font-size: 11px;
    line-height: 1.35;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pos-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
}

.pos-price {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.pos-price small {
    margin-left: 2px;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--muted);
}

.pos-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: var(--periwinkle-soft);
    border: 1px solid #EFE2C6;
    color: var(--ink);
}

.pos-add .icon { width: 14px; height: 14px; }

.pos-grid-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 44px 20px;
    color: var(--muted);
}

.pos-grid-empty .icon { width: 26px; height: 26px; }

.pos-grid-empty-note {
    margin: 14px 2px 0;
    font-size: 12.5px;
    text-align: center;
    color: var(--muted);
}

.pos-cart {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 96px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pos-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #FFFDF8, #fff);
}

.pos-cart-head .kicker { display: block; }

.pos-cart-head strong {
    font-size: 13px;
    color: var(--ink);
}

.pos-cart-body {
    flex: 1;
    min-height: 120px;
    overflow-y: auto;
    padding: 12px 14px;
    background: var(--surface-2);
}

.pos-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 12px;
    text-align: center;
    color: var(--muted);
}

.pos-cart-empty .icon {
    width: 24px;
    height: 24px;
    color: var(--muted-2);
}

.pos-cart-empty strong {
    font-size: 13px;
    color: var(--ink);
}

.pos-cart-empty p { font-size: 11.5px; }

.pos-stay {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #E7D9B4;
    border-radius: 14px;
    background: #FFFBF0;
}

.pos-stay-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pos-stay-head strong {
    flex: 1;
    font-size: 12.5px;
    color: var(--ink);
}

.pos-stay-remove {
    padding: 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.pos-stay-remove .icon { width: 14px; height: 14px; }

.pos-stay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 64px;
    gap: 8px;
}

.pos-stay-grid label,
.pos-guest-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pos-stay-grid .input {
    padding: 8px 9px;
    font-size: 12px;
}

.pos-stay-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--muted-2);
}

.pos-stay-sum strong {
    font-size: 13px;
    color: var(--ink);
}

.pos-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pos-line {
    display: grid;
    grid-template-columns: 1fr auto auto 22px;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.pos-line-main strong {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: var(--ink);
}

.pos-line-main span {
    font-size: 10px;
    color: var(--muted);
}

.pos-qty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-2);
}

.pos-qty button {
    width: 22px;
    height: 24px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.pos-qty b {
    min-width: 18px;
    font-size: 11.5px;
    text-align: center;
}

.pos-line-total {
    font-size: 12px;
    color: var(--ink);
    white-space: nowrap;
}

.pos-line-remove {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.pos-line-remove:hover { color: var(--red); }

.pos-checkout {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line);
    background: #fff;
    overflow-y: auto;
}

.pos-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.pos-mode button {
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.pos-mode button.is-on {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 6px 14px rgba(10, 14, 26, 0.18);
}

.pos-folio {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.pos-folio label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pos-folio .input {
    padding: 9px 10px;
    font-size: 12px;
}

.pos-folio small {
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--muted);
}

.pos-guest { margin-top: 12px; }

.pos-guest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pos-guest-grid .input {
    padding: 9px 10px;
    font-size: 12px;
}

.pos-totals {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-strong);
}

.pos-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted-2);
}

.pos-totals > div strong { color: var(--ink); }

.pos-grand {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 15px !important;
    font-weight: 800;
    color: var(--ink) !important;
}

.pos-grand strong { font-size: 18px !important; }

.pos-payment { margin-top: 14px; }

.pos-label {
    display: block;
    margin-bottom: 6px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pos-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pos-methods button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.pos-methods button .icon { width: 13px; height: 13px; }

.pos-methods button.is-on {
    border-color: #DDB96B;
    background: #FFF6E3;
    color: var(--ink);
}

.pos-cash {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.pos-cash label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pos-cash .input {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pos-change {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
}

.pos-change strong { color: var(--green); }

.pos-note {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pos-note .input {
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.pos-error {
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid #F2C0C6;
    border-radius: 10px;
    background: var(--red-soft);
    color: var(--red-dark);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.pos-charge {
    margin-top: 12px;
    padding: 13px 16px;
    font-size: 14px;
}

.pos-charge span:last-child { margin-left: auto; }

.pos-charge:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-hint {
    margin-top: 7px;
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
}

.pos-reprint {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
}

.pos-reprint-note {
    margin-top: 6px;
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
}

.pos-heading .live-pill { white-space: nowrap; }

.pos-cart-empty[hidden],
.pos-stay[hidden],
.pos-folio[hidden],
.pos-guest[hidden],
.pos-payment[hidden],
.pos-cash[hidden],
.pos-error[hidden],
.pos-grid-empty-note[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .pos-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 980px) {
    .pos-layout { grid-template-columns: 1fr; }
    .pos-toolbar,
    .pos-cart { position: static; }
    .pos-cart { max-height: none; }
    .pos-cart-body { overflow: visible; }
    .pos-checkout { overflow: visible; }
}

@media (max-width: 560px) {
    .pos-stay-grid { grid-template-columns: 1fr 1fr; }
    .pos-stay-grid label:last-child { grid-column: span 2; }
    .pos-guest-grid { grid-template-columns: 1fr; }
    .pos-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
