/**
 * TG Glam — Hair | Beauty | Style
 * Aesthetic: Haute Luxury Salon & Spa Engine
 * Canvas: Pure Crisp White (#ffffff)
 * Typography:
 *   - The entire interface strictly follows the logo font: Futura PT
 *   - Bold Display Style: Futura PT (700 Bold / 800 ExtraBold) matching "TG" & "GLAM"
 *   - Narrow / Condensed Style: Futura PT (300 Light / 400 Book) with wide tracking matching "HAIR | BEAUTY | STYLE"
 * Color Touches: Metallic Champagne Gold (#c8a03c), Deep Noir (#121110), Warm Ivory (#faf8f5)
 * Framework: BeraLytics Varnetix Salon Engine v2.0
 */

/* ==========================================================================
   Universal Futura PT Font Faces (100% Self-Hosted Local Web Fonts)
   Dual-registered as 'Futura PT' and 'Futura' for 100% cross-platform coverage
   ========================================================================== */
@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 300;
    src: local('Futura PT Light'), local('FuturaPT-Light'), local('Futura-Light'), local('Futura Light'),
         url('../fonts/FuturaPT-Light.woff2') format('woff2'),
         url('../fonts/FuturaPT-Light.woff') format('woff'),
         url('../fonts/FuturaPT-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    font-style: normal;
    font-weight: 300;
    src: local('Futura PT Light'), local('FuturaPT-Light'), local('Futura-Light'), local('Futura Light'),
         url('../fonts/FuturaPT-Light.woff2') format('woff2'),
         url('../fonts/FuturaPT-Light.woff') format('woff'),
         url('../fonts/FuturaPT-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 400;
    src: local('Futura PT Book'), local('FuturaPT-Book'), local('Futura'), local('Futura-Medium'),
         url('../fonts/FuturaPT-Book.woff2') format('woff2'),
         url('../fonts/FuturaPT-Book.woff') format('woff'),
         url('../fonts/FuturaPT-Book.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    font-style: normal;
    font-weight: 400;
    src: local('Futura PT Book'), local('FuturaPT-Book'), local('Futura'), local('Futura-Medium'),
         url('../fonts/FuturaPT-Book.woff2') format('woff2'),
         url('../fonts/FuturaPT-Book.woff') format('woff'),
         url('../fonts/FuturaPT-Book.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 450;
    src: local('Futura PT Medium'), local('FuturaPT-Medium'), local('Futura-Medium'),
         url('../fonts/FuturaPT-Medium.woff2') format('woff2'),
         url('../fonts/FuturaPT-Medium.woff') format('woff'),
         url('../fonts/FuturaPT-Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    font-style: normal;
    font-weight: 450;
    src: local('Futura PT Medium'), local('FuturaPT-Medium'), local('Futura-Medium'),
         url('../fonts/FuturaPT-Medium.woff2') format('woff2'),
         url('../fonts/FuturaPT-Medium.woff') format('woff'),
         url('../fonts/FuturaPT-Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 500;
    src: local('Futura PT Demi'), local('FuturaPT-Demi'),
         url('../fonts/FuturaPT-Demi.woff2') format('woff2'),
         url('../fonts/FuturaPT-Demi.woff') format('woff'),
         url('../fonts/FuturaPT-Demi.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    font-style: normal;
    font-weight: 500;
    src: local('Futura PT Demi'), local('FuturaPT-Demi'),
         url('../fonts/FuturaPT-Demi.woff2') format('woff2'),
         url('../fonts/FuturaPT-Demi.woff') format('woff'),
         url('../fonts/FuturaPT-Demi.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 600;
    src: local('Futura PT Heavy'), local('FuturaPT-Heavy'), local('Futura-Bold'),
         url('../fonts/FuturaPT-Heavy.woff2') format('woff2'),
         url('../fonts/FuturaPT-Heavy.woff') format('woff'),
         url('../fonts/FuturaPT-Heavy.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    font-style: normal;
    font-weight: 600;
    src: local('Futura PT Heavy'), local('FuturaPT-Heavy'), local('Futura-Bold'),
         url('../fonts/FuturaPT-Heavy.woff2') format('woff2'),
         url('../fonts/FuturaPT-Heavy.woff') format('woff'),
         url('../fonts/FuturaPT-Heavy.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 700;
    src: local('Futura PT Bold'), local('FuturaPT-Bold'), local('Futura-Bold'), local('Futura Bold'),
         url('../fonts/FuturaPT-Bold.woff2') format('woff2'),
         url('../fonts/FuturaPT-Bold.woff') format('woff'),
         url('../fonts/FuturaPT-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    font-style: normal;
    font-weight: 700;
    src: local('Futura PT Bold'), local('FuturaPT-Bold'), local('Futura-Bold'), local('Futura Bold'),
         url('../fonts/FuturaPT-Bold.woff2') format('woff2'),
         url('../fonts/FuturaPT-Bold.woff') format('woff'),
         url('../fonts/FuturaPT-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura PT';
    font-style: normal;
    font-weight: 800;
    src: local('Futura PT ExtraBold'), local('FuturaPT-ExtraBold'), local('Futura-CondensedExtraBold'), local('Futura-Bold'),
         url('../fonts/FuturaPT-ExtraBold.woff2') format('woff2'),
         url('../fonts/FuturaPT-ExtraBold.woff') format('woff'),
         url('../fonts/FuturaPT-ExtraBold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Futura';
    font-style: normal;
    font-weight: 800;
    src: local('Futura PT ExtraBold'), local('FuturaPT-ExtraBold'), local('Futura-CondensedExtraBold'), local('Futura-Bold'),
         url('../fonts/FuturaPT-ExtraBold.woff2') format('woff2'),
         url('../fonts/FuturaPT-ExtraBold.woff') format('woff'),
         url('../fonts/FuturaPT-ExtraBold.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* Base Surfaces - Pure White & Warm Alabaster */
    --bg-white: #ffffff;
    --bg-ivory: #faf8f5;
    --bg-warm: #f6f3ed;
    --bg-card: #ffffff;
    --bg-card-hover: #faf9f6;
    --bg-input: #fcfbf9;

    /* Deep Luxury Noir */
    --noir-950: #0a0908;
    --noir-900: #121110;
    --noir-800: #201e1c;
    --noir-700: #32302d;
    --noir-600: #484541;
    --text-primary: var(--noir-900);
    --text-secondary: var(--noir-700);
    --text-muted: #767066;
    --text-dim: #9e978b;

    /* Champagne & Metallic Gold Touches (Derived from Logo Ribbon) */
    --gold-primary: #c8a03c;
    --gold-light: #e8c764;
    --gold-pale: #fbf6e8;
    --gold-dark: #9e7b24;
    --gold-deep: #83651c;
    --gold-soft: rgba(200, 160, 60, 0.08);
    --gold-soft-hover: rgba(200, 160, 60, 0.15);
    --gold-border: rgba(200, 160, 60, 0.36);
    --gold-border-strong: #c8a03c;
    --gold-gradient: linear-gradient(135deg, #c59b27 0%, #ecd38c 30%, #fef3c7 50%, #c59b27 75%, #a27a18 100%);
    --gold-gradient-subtle: linear-gradient(135deg, rgba(200, 160, 60, 0.12) 0%, rgba(236, 211, 140, 0.04) 100%);
    --gold-shadow: 0 8px 24px rgba(200, 160, 60, 0.22);
    --gold-glow-sm: 0 2px 10px rgba(200, 160, 60, 0.2);

    /* Hairline Luxury Borders */
    --border-hairline: #eae5dc;
    --border-subtle: #ded8cb;
    --border-medium: #c8c0b2;

    /* Typography System Derived from Logo (Futura PT) */
    --font-logo: 'Futura PT', 'Futura', 'Futura-Medium', 'Century Gothic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Futura PT', 'Futura', -apple-system, BlinkMacSystemFont, monospace;

    /* Elevation & Curves */
    --card-shadow: 0 4px 20px rgba(18, 17, 16, 0.04);
    --card-shadow-hover: 0 12px 32px rgba(18, 17, 16, 0.08);
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-logo);
}

html, body, button, input, select, textarea, optgroup, option,
h1, h2, h3, h4, h5, h6, p, span, div, a, label, table, th, td,
strong, b, em, i, small, form, nav, header, footer, section,
ul, ol, li, aside, article, main, code, pre, kbd, samp, var, time {
    font-family: var(--font-logo);
}

body.theme-white-glam,
body.theme-white-luxury {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-logo);
    line-height: 1.55;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Gold Pipe Divider - Replicating "HAIR | BEAUTY | STYLE" */
.gold-pipe {
    color: var(--gold-primary);
    font-weight: 300;
    margin: 0 0.45rem;
    display: inline-block;
    vertical-align: baseline;
    opacity: 0.9;
}

/* Top Utility Bar - Active Outlet Info & Logged-In User Profile */
.top-announcement-bar {
    position: relative;
    z-index: 350;
    width: 100%;
    max-width: 100%;
    background: var(--bg-ivory);
    border-bottom: 1px solid var(--border-hairline);
    padding: 0.45rem 2rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    min-height: 42px;
    box-sizing: border-box;
}

/* Outlet Selector Pill in Top Utility Bar */
.outlet-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 0.28rem 0.85rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(18, 17, 16, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.outlet-selector-wrapper:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow-sm);
    background: #fffdf9;
}

.outlet-label {
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--gold-dark);
    text-transform: uppercase;
}

.gold-select {
    background: transparent;
    border: none;
    color: var(--noir-950);
    font-family: var(--font-logo);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    outline: none;
    text-align: center;
    text-align-last: center;
}

/* Logged-In User Name-Only Button & Dropdown Menu */
.top-user-session-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-user-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.35rem 2.2rem 0.35rem 1.25rem;
    color: var(--noir-950);
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(18, 17, 16, 0.04);
    outline: none;
    user-select: none;
    white-space: nowrap;
}

.top-user-btn * {
    pointer-events: none;
}

.top-user-btn:hover,
.top-user-btn.active {
    border-color: var(--gold-primary);
    background: #fffdf9;
    box-shadow: var(--gold-glow-sm);
}

.user-display-name {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.user-dropdown-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: var(--gold-dark);
    transition: transform 0.2s ease;
    line-height: 1;
}

.top-user-btn.active .user-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* User Account Dropdown Menu Overlay */
.top-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gold-border);
    border-top: 2px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px rgba(18, 17, 16, 0.16), 0 2px 10px rgba(200, 160, 60, 0.15);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s;
    overflow: hidden;
    will-change: transform, opacity;
}

.top-user-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.dropdown-user-header {
    padding: 0.85rem 1rem 0.65rem;
    background: var(--bg-ivory);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dropdown-user-name {
    font-family: var(--font-logo);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--noir-950);
}

.dropdown-user-meta {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dropdown-user-phone {
    font-family: var(--font-logo);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-hairline);
    margin: 0.25rem 0;
}

.user-dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    font-family: var(--font-logo);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--noir-900);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-dropdown-item:hover {
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.dropdown-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.dropdown-item-icon svg {
    width: 100%;
    height: 100%;
}

/* Authentic Realistic Vector Iconography System */
.glam-svg-icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
    transition: transform 0.2s ease, stroke 0.2s ease, color 0.2s ease;
}

.glam-svg-icon path,
.glam-svg-icon circle,
.glam-svg-icon rect,
.glam-svg-icon line,
.glam-svg-icon polyline,
.glam-svg-icon polygon {
    vector-effect: non-scaling-stroke;
}

.icon-gold {
    color: var(--gold-primary);
}

.icon-gold-deep {
    color: var(--gold-deep);
}

.icon-noir {
    color: var(--noir-950);
}

.icon-muted {
    color: var(--text-muted);
}

.icon-danger {
    color: #c93b16;
}

.icon-success {
    color: #2e7d32;
}

.btn-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}


.user-dropdown-item.item-signout {
    color: #c93b16;
}

.user-dropdown-item.item-signout:hover {
    background: rgba(224, 86, 36, 0.08);
    color: #e0441a;
}

/* Main Luxury Navigation Bar */
.luxury-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-hairline);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0.55rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

/* Logo Sits Pristinely on White Canvas */
.brand-box {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand-link:hover {
    opacity: 0.92;
}

.glam-logo {
    height: 48px;
    max-height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* Header Right Group - Side-by-Side on Desktop, Stacked on Mobile */
.header-right-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

/* Header Controls & Status */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-family: var(--font-logo);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.gold-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-primary);
    animation: goldPulse 2s infinite ease-in-out;
}

@keyframes goldPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.role-selector-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
}

.role-select {
    background: transparent;
    border: none;
    color: var(--noir-900);
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    outline: none;
    cursor: pointer;
}

/* Haute Luxury Action Buttons - Futura PT Bold Display Style */
.gold-btn {
    background: var(--noir-950);
    color: #ffffff;
    border: 1px solid var(--gold-primary);
    padding: 0.6rem 1.45rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-logo);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gold-btn:hover {
    background: var(--gold-gradient);
    color: var(--noir-950);
    border-color: var(--gold-light);
    box-shadow: var(--gold-shadow);
    transform: translateY(-1px);
}

.gold-btn-outline {
    background: var(--bg-white);
    color: var(--noir-900);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-logo);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.gold-btn-outline:hover {
    border-color: var(--gold-primary);
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.btn-danger {
    background: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25) !important;
}

.btn-danger:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
}

.btn-text-mobile {
    display: none;
}

/* Main Salon Viewport */
.glam-viewport {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.5rem 2rem 4rem;
    flex: 1;
    box-sizing: border-box;
}

/* Hero Section */
.glam-hero {
    margin-bottom: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Salon Metrics Cards Grid on Pure White Canvas */
.glam-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .glam-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .top-announcement-bar { padding: 0.45rem 1rem; }
}

@media (max-width: 600px) {
    .glam-stats-grid { grid-template-columns: 1fr; }
    .top-outlet-bar-info {
        font-size: 0.75rem;
    }
}

.gold-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gold-card:hover {
    border-color: var(--gold-border-strong);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    height: 100%;
    padding: 1.35rem 1.4rem;
}

.stat-icon-gold {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-dark);
}

.stat-icon-gold svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}


.stat-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

/* Narrow condensed label style - Futura PT */
.stat-label {
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Bold heavy display number style - Futura PT ExtraBold / Bold */
.stat-number {
    font-family: var(--font-logo);
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--noir-950);
    margin: 0.1rem 0 0.25rem 0;
    white-space: nowrap !important;
    display: flex;
    align-items: baseline;
    height: 2.4rem;
}

.stat-number-currency {
    font-size: 2rem;
}

.stat-number .inr-symbol {
    font-size: 1.3rem !important;
    font-weight: 500;
    margin-right: 0.2rem;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
}

.stat-footer-text {
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Dropdown Backdrop Blur Overlay */
.menu-backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 17, 16, 0.22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s;
    will-change: opacity;
}

.menu-backdrop-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Salon Atelier Menu Button & Dropdown in Header Ribbon */
.salon-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.salon-menu-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ffffff;
    border: 1.5px solid var(--gold-primary);
    border-radius: var(--radius-sm);
    padding: 0.45rem 1.15rem;
    color: var(--noir-950);
    font-family: var(--font-logo);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(200, 160, 60, 0.15);
    outline: none;
    user-select: none;
    white-space: nowrap;
}

.salon-menu-btn * {
    pointer-events: none;
}

.salon-menu-btn:hover,
.salon-menu-btn.active {
    border-color: var(--gold-dark);
    background: var(--gold-pale);
    box-shadow: 0 4px 14px rgba(200, 160, 60, 0.25);
    transform: translateY(-1px);
}

.menu-btn-icon {
    font-size: 1rem;
    line-height: 1;
}

.menu-btn-title {
    white-space: nowrap;
}

.menu-btn-arrow {
    font-size: 0.72rem;
    color: var(--gold-dark);
    transition: transform 0.2s ease;
    line-height: 1;
}

.salon-menu-btn.active .menu-btn-arrow {
    transform: rotate(180deg);
}

/* Salon Atelier Dropdown Menu Overlay */
.salon-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    transform-origin: top center;
    width: 340px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--gold-border-strong);
    border-top: 2px solid var(--gold-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(18, 17, 16, 0.18), 0 0 0 1px rgba(200, 160, 60, 0.25);
    z-index: 400;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.24s;
    overflow: hidden;
    will-change: transform, opacity;
}

.salon-menu-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

.salon-dropdown-header {
    padding: 0.75rem 1rem 0.6rem;
    background: var(--bg-ivory);
    border-bottom: 1px solid var(--border-hairline);
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.salon-dropdown-list {
    display: flex;
    flex-direction: column;
}

.salon-dropdown-item {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f6f2ec;
    border-left: 3px solid transparent;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    font-family: var(--font-logo);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

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

.salon-dropdown-item:hover {
    background: var(--gold-soft);
}

.salon-dropdown-item.active {
    background: rgba(200, 160, 60, 0.1);
    border-left-color: var(--gold-primary);
}

.salon-dropdown-item.active .dropdown-item-title {
    color: var(--gold-deep);
}

.dropdown-item-icon {
    font-size: 1.25rem;
    line-height: 1;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.dropdown-item-title {
    font-family: var(--font-logo);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--noir-950);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dropdown-item-desc {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Management Panes */
.glam-pane {
    display: none;
    animation: glamFade 0.25s ease;
}

.glam-pane.active {
    display: block;
}

@keyframes glamFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pane-headline {
    font-family: var(--font-logo);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--noir-950);
    margin-bottom: 0.25rem;
}

.pane-subline {
    font-family: var(--font-logo);
    font-size: 0.92rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* High-Fashion Salon Table on Pure White Canvas */
.gold-table-container {
    background: var(--bg-white);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2.5rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 320px; /* Ample vertical space so dropdowns never trigger scrollbars or clip on short tables */
}

.glam-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--font-logo);
}

.glam-table thead {
    background: var(--bg-ivory);
    border-bottom: 1px solid var(--border-hairline);
}

.glam-table th {
    padding: 0.85rem 0.85rem;
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
}

.glam-table tbody tr {
    border-bottom: 1px solid #f3eee6;
    transition: background 0.15s ease;
}

.glam-table tbody tr:hover {
    background: #faf8f5;
}

.glam-table td {
    padding: 0.95rem 0.85rem;
    font-size: 0.92rem;
    vertical-align: middle;
}

/* Explicit Column Sizing & Alignments */
.th-time, .td-time {
    width: 110px;
    white-space: nowrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    white-space: nowrap;
}

.start-time {
    font-family: var(--font-logo);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--noir-950);
    line-height: 1.2;
    white-space: nowrap;
}

.end-time {
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    white-space: nowrap;
}

.date-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    width: fit-content;
    margin-top: 0.2rem;
    line-height: 1.2;
}

.date-tag-today {
    background: rgba(201, 162, 77, 0.15);
    color: var(--gold-dark);
    border: 1px solid rgba(201, 162, 77, 0.35);
}

.date-tag-yesterday {
    background: rgba(180, 130, 60, 0.12);
    color: #92601c;
    border: 1px solid rgba(180, 130, 60, 0.3);
}

.date-tag-tomorrow {
    background: rgba(46, 125, 85, 0.12);
    color: #216e47;
    border: 1px solid rgba(46, 125, 85, 0.3);
}

.date-tag-other {
    background: rgba(140, 140, 140, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(140, 140, 140, 0.25);
}

.th-guest, .td-guest {
    min-width: 175px;
    white-space: nowrap;
}

.guest-details-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
}

.guest-name {
    font-family: var(--font-logo);
    font-size: 0.96rem;
    color: var(--noir-950);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    line-height: 1.25;
    white-space: nowrap;
}

.guest-phone {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-logo);
    line-height: 1.2;
    white-space: nowrap;
}

.guest-tier-wrap {
    display: inline-flex;
    align-items: center;
    margin-top: 0.12rem;
}

.th-tier, .td-tier {
    width: 130px;
    text-align: center;
    white-space: nowrap;
}

/* VIP Badges */
.vip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vip-badge-sm {
    padding: 0.16rem 0.5rem;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    line-height: 1.1;
    border-radius: var(--radius-full);
}

.vip-standard {
    background: #f8f6f0;
    color: #6c757d;
    border: 1px solid #e2ddd5;
}

.vip-silver {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
}

.vip-gold {
    background: #fcf6e8;
    color: var(--gold-deep);
    border: 1px solid #e8ca73;
}

.vip-diamond {
    background: var(--noir-950);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.vip-crown-vip, .vip-crown_vip {
    background: linear-gradient(135deg, #181511 0%, #292214 100%);
    color: #ffd700;
    border: 1px solid #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.th-stylist, .td-stylist {
    min-width: 195px;
}

.stylist-info {
    display: flex;
    flex-direction: column;
}

.stylist-name {
    font-family: var(--font-logo);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--noir-900);
    white-space: nowrap;
}

.stylist-title {
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.15rem;
    white-space: nowrap;
}

.th-code, .td-code {
    width: 150px;
    text-align: center;
    white-space: nowrap;
}

.gold-code {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-xs);
    color: var(--noir-800);
    white-space: nowrap;
    letter-spacing: 0.04em;
    display: inline-block;
}

.th-status, .td-status {
    width: 120px;
    text-align: center;
    white-space: nowrap;
}

.apt-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-confirmed, .status-completed {
    background: #eaf8f0;
    color: #0b8a4f;
    border: 1px solid #a8e5c4;
}

.status-scheduled {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.status-pending {
    background: #fef7e6;
    color: #b27300;
    border: 1px solid #fed88b;
}

.status-in_service, .status-in-service {
    background: #fdf2f8;
    color: #9d174d;
    border: 1px solid #fbcfe8;
}

.status-cancelled, .status-no_show, .status-no-show {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.th-amount, .td-amount {
    width: 135px;
    text-align: right;
    white-space: nowrap;
}

.amount-nowrap {
    display: inline-flex !important;
    align-items: baseline !important;
    white-space: nowrap !important;
    vertical-align: baseline;
}

.gold-price {
    font-family: var(--font-logo);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--noir-950);
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    white-space: nowrap !important;
}

.gold-price .inr-symbol {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--noir-900);
    margin-right: 0.2em;
    display: inline;
    line-height: 1;
    vertical-align: baseline;
    white-space: nowrap;
}

.th-action, .td-action {
    width: 175px;
    min-width: 175px;
    text-align: right;
    white-space: nowrap;
    padding-right: 1.25rem;
}

/* Haute Service Ritual Column */
.th-service, .td-service {
    min-width: 175px;
    max-width: 250px;
}
.ritual-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}
.ritual-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--noir-900);
    line-height: 1.25;
}
.ritual-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.service-cat-pill {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    background: rgba(200, 160, 60, 0.1);
    color: var(--gold-deep);
    border: 1px solid rgba(200, 160, 60, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ritual-duration {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.btn-subtle-gold {
    background: transparent;
    border: 1px solid rgba(200, 160, 60, 0.25);
    color: var(--gold-deep);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-subtle-gold:hover {
    background: rgba(200, 160, 60, 0.15);
    border-color: var(--gold-primary);
}

/* Atelier Contextual Action Buttons & Dropdown */
.apt-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    width: 160px;
    box-sizing: border-box;
    vertical-align: middle;
}

.table-btn-action {
    height: 32px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.65rem;
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-xs);
    white-space: nowrap !important;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    border: 1px solid transparent;
    background: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.table-btn-action:not(.btn-view-invoice-direct):not(.btn-view-receipt-trigger) {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.table-btn-action span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Haute Tax Invoice Action Buttons */
.table-btn-action.btn-view-invoice-direct,
.table-btn-action.btn-view-invoice,
.table-btn-action.btn-view-receipt-trigger {
    width: auto !important;
    min-width: 126px !important;
    max-width: none !important;
    padding: 0 0.85rem !important;
    overflow: visible !important;
    text-overflow: clip !important;
    border: 1.5px solid #111111 !important;
    background: #FFFFFF !important;
    color: #111111 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    cursor: pointer !important;
    letter-spacing: 0.06em !important;
}

.table-btn-action.btn-view-invoice-direct:hover,
.table-btn-action.btn-view-invoice:hover,
.table-btn-action.btn-view-receipt-trigger:hover {
    background: #111111 !important;
    color: #FFFFFF !important;
    border-color: #111111 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-1px);
}

.table-btn-action.btn-view-invoice-direct:active,
.table-btn-action.btn-view-invoice:active,
.table-btn-action.btn-view-receipt-trigger:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.btn-confirm-apt {
    border: 1px solid #3b82f6;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
}
.btn-confirm-apt:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-start-ritual {
    border: 1px solid #c026d3;
    color: #a21caf;
    background: rgba(217, 70, 239, 0.08);
}
.btn-start-ritual:hover {
    background: #c026d3;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(192, 38, 211, 0.25);
}

.table-btn-action.btn-checkout-trigger,
.table-btn-gold {
    border: 1px solid var(--gold-primary);
    color: var(--gold-deep);
    background: rgba(200, 160, 60, 0.06);
}
.table-btn-action.btn-checkout-trigger:hover,
.table-btn-gold:hover {
    background: var(--gold-gradient);
    color: var(--noir-950);
    box-shadow: 0 2px 8px rgba(200, 160, 60, 0.25);
}

.status-settled-btn {
    border: 1px solid rgba(200, 160, 60, 0.35);
    color: var(--gold-dark);
    background: rgba(201, 162, 77, 0.12);
    cursor: default;
}

.apt-cancelled-tag {
    border: 1px solid #fecaca;
    color: #dc2626;
    background: #fef2f2;
    cursor: default;
    font-size: 0.72rem;
    font-weight: 700;
}

.table-btn-disabled {
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Action Dropdown Menu */
.apt-menu-wrapper {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-apt-menu-trigger {
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-hairline);
    color: var(--text-muted);
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.btn-apt-menu-trigger:hover,
.btn-apt-menu-trigger.active {
    background: rgba(200, 160, 60, 0.1);
    color: var(--gold-deep);
    border-color: var(--gold-primary);
}

.apt-menu-placeholder {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    display: inline-block;
    visibility: hidden;
    box-sizing: border-box;
}

.apt-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 195px;
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 100;
    padding: 0.35rem 0;
    backdrop-filter: blur(10px);
}
.apt-menu-dropdown.dropup {
    top: auto;
    bottom: calc(100% + 4px);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15), 0 -2px 6px rgba(0, 0, 0, 0.08);
}
.apt-menu-dropdown.show {
    display: block;
    animation: fadeInDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.apt-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.9rem;
    border: none;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--noir-900);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}
.apt-menu-item:hover {
    background: rgba(200, 160, 60, 0.08);
    color: var(--gold-deep);
}
.apt-menu-item.item-danger {
    color: #dc2626;
}
.apt-menu-item.item-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Modal Context & Live Preview */
.modal-context-banner {
    background: rgba(200, 160, 60, 0.06);
    border: 1px solid rgba(200, 160, 60, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.modal-context-banner.warning-banner {
    background: #fef2f2;
    border-color: #fecaca;
}
.modal-context-banner .summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}
.modal-context-banner .summary-line:last-child {
    margin-bottom: 0;
}

.ritual-recalc-preview {
    background: rgba(248, 245, 238, 0.8);
    border: 1px dashed rgba(200, 160, 60, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin-top: 1rem;
}
.ritual-recalc-preview .preview-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-deep);
    margin-bottom: 0.5rem;
}
.ritual-recalc-preview .preview-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--noir-800);
    margin-bottom: 0.3rem;
}
.ritual-recalc-preview .preview-row.total-highlight {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(200, 160, 60, 0.2);
    font-size: 0.95rem;
    font-weight: 700;
}

.table-btn-gold {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-deep);
    font-family: var(--font-logo);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.42rem 0.95rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.table-btn-gold:hover {
    background: var(--gold-gradient);
    color: var(--noir-950);
    box-shadow: 0 2px 8px rgba(200, 160, 60, 0.25);
}

/* Haute Service Menu Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.service-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.service-media-wrap {
    width: 100%;
    height: 165px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FDFCFA 0%, #F5EFE6 100%);
    border-bottom: 1px solid var(--border-hairline);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-card:hover .service-preview-img {
    transform: scale(1.05);
}

.service-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.service-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.22rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.video-badge {
    background: rgba(17, 17, 17, 0.8);
    color: var(--gold-primary);
    border: 1px solid rgba(200, 160, 60, 0.4);
}

.photo-badge {
    background: rgba(255, 255, 255, 0.85);
    color: var(--noir-900);
    border: 1px solid var(--border-gold-subtle);
}

.service-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.placeholder-icon {
    font-size: 2.2rem;
    opacity: 0.8;
}

.placeholder-tag {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.service-card-body {
    padding: 1.35rem 1.35rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-actions {
    padding: 0.5rem 1.35rem 1.35rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.service-action-icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-hairline);
    background: #FFFFFF;
    color: var(--noir-700);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.service-action-icon-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    background: var(--bg-ivory);
    transform: translateY(-1px);
}

.service-action-icon-btn.text-danger:hover {
    border-color: #E05624;
    color: #E05624;
    background: rgba(224, 86, 36, 0.08);
}

.service-cat-pill {
    padding: 0.4rem 0.95rem;
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-hairline);
    background: #FFFFFF;
    color: var(--noir-700);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.service-cat-pill:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
}

.service-cat-pill.active {
    background: var(--noir-950);
    color: #FFFFFF;
    border-color: var(--noir-950);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.service-dropzone.dragover {
    border-color: var(--gold-primary) !important;
    background: rgba(184, 150, 90, 0.12) !important;
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.category-tag {
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 450;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.signature-tag {
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9c7a28;
    background: #fbf6ea;
    border: 1px solid #ebd498;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
}

.service-title {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--noir-950);
    margin-bottom: 0.5rem;
}

.service-desc {
    font-family: var(--font-logo);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.service-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f3eee6;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.service-duration {
    font-family: var(--font-logo);
    font-size: 0.85rem;
    font-weight: 450;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.service-price {
    text-align: right;
}

.service-price span {
    font-family: var(--font-logo);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--noir-950);
}

.service-price small {
    display: block;
    font-family: var(--font-logo);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

/* VIP Membership Plans Grid */
.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.membership-tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}

.membership-tier-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 12px 36px rgba(200, 160, 60, 0.14);
    transform: translateY(-3px);
}

.tier-crown {
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.tier-name {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 450;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.tier-title {
    font-family: var(--font-logo);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--noir-950);
    margin: 0.35rem 0 1rem;
}

.tier-pricing {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.inr-symbol {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 500;
    font-style: normal;
    display: inline;
    margin-right: 0.15em;
    letter-spacing: normal;
    vertical-align: baseline;
    white-space: nowrap;
}

.gold-symbol {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-deep);
    margin-right: 0.15rem;
}

.tier-price-val {
    font-family: var(--font-logo);
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--noir-950);
}

.tier-period {
    font-family: var(--font-logo);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.35rem;
}

.tier-desc {
    font-family: var(--font-logo);
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.perks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex: 1;
}

.perk-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-family: var(--font-logo);
    font-size: 0.92rem;
    font-weight: 450;
    letter-spacing: 0.02em;
    color: var(--noir-800);
}

.gold-check {
    color: var(--gold-primary);
    font-weight: 800;
}

/* Guest CRM Cards Grid */
.customer-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.customer-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cust-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cust-code {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    color: var(--gold-deep);
}

.cust-name {
    font-family: var(--font-logo);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--noir-950);
}

.cust-phone {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cust-stats-row {
    display: flex;
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.cust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.c-label {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 450;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.c-val {
    font-family: var(--font-logo);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--noir-950);
}

.cust-notes {
    border-top: 1px solid #f3eee6;
    padding-top: 0.75rem;
}

.notes-label {
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: block;
    margin-bottom: 0.2rem;
}

.notes-text {
    font-family: var(--font-logo);
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.customer-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.customer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 160, 60, 0.12);
    border-color: rgba(200, 160, 60, 0.45);
}

.guest-tab-nav {
    transition: color 0.18s ease, border-color 0.18s ease;
}

.guest-tab-nav:hover {
    color: var(--gold-deep) !important;
}

/* Master Stylists Cards Grid & Perfectly Aligned Anatomy */
.stylist-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.stylist-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem 1.15rem;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    overflow: hidden;
}

.stylist-card:hover {
    border-color: var(--gold-border-strong);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.stylist-card-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    min-height: 28px;
    flex-shrink: 0;
}

.stylist-code-badge {
    font-family: var(--font-mono, monospace);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--gold-soft);
    color: var(--gold-deep);
    padding: 0.18rem 0.45rem;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(200, 160, 60, 0.25);
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Duty Status Badges & Indicators */
.stylist-duty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    font-family: var(--font-logo);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.stylist-duty-badge.duty-available {
    background: #eaf8f0;
    color: #0b8a4f;
    border: 1px solid #a8e5c4;
}

.stylist-duty-badge.duty-available .duty-dot {
    background: #0b8a4f;
}

.stylist-duty-badge.duty-busy {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.28);
}

.stylist-duty-badge.duty-busy .duty-dot {
    background: #d97706;
}

.stylist-duty-badge.duty-off {
    background: rgba(156, 163, 175, 0.1);
    color: #6b7280;
    border: 1px solid rgba(156, 163, 175, 0.25);
}

.stylist-duty-badge.duty-off .duty-dot {
    background: #9ca3af;
}

.duty-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.duty-dot.pulse {
    animation: stylistPulse 1.8s infinite ease-in-out;
}

@keyframes stylistPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(217, 119, 6, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.stylist-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    flex: 1 0 auto;
}

.stylist-avatar-gold {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--noir-950);
    color: var(--gold-light);
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-logo);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0.2rem 0 0.75rem;
    box-shadow: 0 4px 14px rgba(200, 160, 60, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}

.staff-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.stylist-full-name {
    font-family: var(--font-logo);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--noir-950);
    margin: 0 0 0.25rem;
    line-height: 1.25;
    text-align: center;
    width: 100%;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.stylist-rank {
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 0.4rem;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    min-height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--gold-dark);
    font-size: 0.8rem;
    margin: 0 0 0.65rem;
    height: 20px;
    flex-shrink: 0;
}

.rating-num {
    color: var(--noir-900);
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 0.86rem;
    margin-left: 0.25rem;
}

.stylist-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin-bottom: 0.75rem;
}

.stylist-chip {
    font-size: 0.68rem;
    font-weight: 500;
    background: var(--bg-ivory);
    color: var(--noir-800);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xs);
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
    line-height: 1.2;
}

.stylist-chip.more {
    background: var(--gold-soft);
    color: var(--gold-deep);
    font-weight: 600;
    border-color: rgba(200, 160, 60, 0.25);
}

.stylist-card-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.stylist-stats-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    background: rgba(250, 247, 242, 0.65);
    border-radius: var(--radius-xs);
    box-sizing: border-box;
}

.stylist-stat-item {
    text-align: center;
    flex: 1;
}

.stylist-stat-item .stat-value {
    font-family: var(--font-logo);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--noir-900);
    line-height: 1.15;
}

.stylist-stat-item .stat-value.gold-accent {
    color: var(--gold-deep);
}

.stylist-stat-item .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.stylist-stats-strip .stat-divider {
    width: 1px;
    height: 24px;
    background: var(--border-hairline);
}

.stylist-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35rem;
    width: 100%;
    box-sizing: border-box;
}

.stylist-card-actions .btn-view-stylist-dossier,
.stylist-card-actions .duty-toggle-btn,
.stylist-card-actions .btn-quick-book-stylist {
    height: 36px;
    padding: 0 0.2rem;
    font-family: var(--font-logo);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stylist-card-actions .btn-view-stylist-dossier {
    background: var(--bg-white);
    color: var(--noir-900);
    border: 1px solid var(--border-subtle);
}

.stylist-card-actions .btn-view-stylist-dossier:hover {
    border-color: var(--gold-primary);
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.stylist-card-actions .duty-toggle-btn {
    background: var(--bg-white);
    color: var(--noir-800);
    border: 1px solid var(--border-subtle);
}

.stylist-card-actions .duty-toggle-btn:hover {
    background: var(--gold-soft);
    border-color: var(--gold-primary);
    color: var(--gold-deep);
}

.stylist-card-actions .duty-toggle-btn.is-off {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.3);
}

.stylist-card-actions .duty-toggle-btn.is-off:hover {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.3);
}

.stylist-card-actions .btn-quick-book-stylist {
    background: var(--noir-950);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
}

.stylist-card-actions .btn-quick-book-stylist:hover {
    background: var(--gold-gradient);
    color: var(--noir-950);
    border-color: var(--gold-light);
}

.stylist-card-actions .btn-quick-book-stylist[disabled] {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    border-color: var(--border-hairline);
    background: var(--bg-ivory);
    color: var(--text-muted);
}

.dossier-tab-btn {
    transition: all 0.2s ease;
}

.dossier-tab-btn:hover {
    color: var(--gold-deep) !important;
}

/* Modals */
.glam-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vh, 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    box-sizing: border-box;
}

.glam-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 13, 12, 0.55);
    backdrop-filter: blur(6px);
}

.modal-box {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-md);
    width: 94%;
    max-width: 560px;
    max-height: calc(100vh - 2.5rem);
    max-height: calc(100dvh - 2.5rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.glam-modal.active .modal-box {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem 1.5rem;
    background: var(--bg-ivory);
    border-bottom: 1px solid var(--border-hairline);
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: var(--font-logo);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--noir-950);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--noir-900);
}

.glam-form, .checkout-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.modal-scroll-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.35rem 1.5rem;
    min-height: 0;
    box-sizing: border-box;
}

/* Graceful fallback for modals without .modal-scroll-content wrapper */
.glam-form:not(:has(.modal-scroll-content)),
.checkout-body:not(:has(.modal-scroll-content)) {
    padding: 1.35rem 1.5rem;
    overflow-y: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--noir-800);
}

.glam-input {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    padding: 0.65rem 0.85rem;
    color: var(--noir-900);
    font-family: var(--font-logo);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    transition: border-color 0.2s;
}

.glam-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px var(--gold-soft);
}

/* Haute Ritual & Modal Form Elements Alignment */
.glam-modal-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.15rem;
    align-items: flex-end;
}

.glam-modal-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 0;
}

.glam-modal-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    margin-bottom: 0.45rem;
    font-family: var(--font-logo);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--noir-900);
    white-space: nowrap;
    line-height: 20px;
}

.glam-modal-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    background: var(--bg-ivory);
    color: var(--noir-950);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 42px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.glam-modal-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px var(--gold-soft);
    background: #FFFFFF;
}

select.glam-modal-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bg-ivory);
    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='%23C8A03C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}

select.glam-modal-input:focus {
    background-color: #FFFFFF;
}

/* Category Management Modal Styles */
.cat-mgmt-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.cat-mgmt-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, background-color 0.15s;
}

.cat-mgmt-card:hover {
    border-color: var(--gold-primary);
    background: #FFFFFF;
}

.cat-mgmt-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cat-mgmt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(200, 160, 60, 0.15);
    border: 1px solid rgba(200, 160, 60, 0.3);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
}

.cat-mgmt-badge svg {
    width: 18px;
    height: 18px;
    color: var(--gold-deep);
}

.cat-mgmt-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-cat-action {
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xs);
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--noir-800);
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-cat-action:hover {
    border-color: var(--gold-primary);
    color: var(--gold-dark);
}

.btn-cat-action.delete:hover {
    border-color: #c93b16;
    color: #c93b16;
}

.btn-cat-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border-hairline);
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 1rem;
}


.col-6 {
    flex: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-ivory);
    border-top: 1px solid var(--border-hairline);
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: auto;
    box-sizing: border-box;
}

.modal-footer .gold-btn,
.modal-footer .gold-btn-outline {
    white-space: nowrap;
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    min-height: 40px;
}

/* POS Checkout Styles */
.checkout-summary-box {
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-logo);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-line strong {
    color: var(--noir-900);
}

.total-line {
    border-top: 1px solid var(--border-hairline);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

.gold-total {
    font-family: var(--font-logo);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--gold-deep);
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.gold-total .inr-symbol {
    font-size: 1.45rem;
    margin-right: 0.25rem;
    display: inline;
}

.pm-title {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--noir-800);
    display: block;
    margin-bottom: 0.75rem;
}

.pm-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.pm-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xs);
    padding: 0.75rem 0.85rem;
    cursor: pointer;
    font-family: var(--font-logo);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.pm-option:hover {
    border-color: var(--gold-primary);
}

.pm-option.active {
    background: #ffffff;
    border-color: var(--gold-primary);
    box-shadow: 0 2px 10px rgba(200, 160, 60, 0.15);
    color: var(--noir-900);
    font-weight: 600;
}

/* REST API Terminal */
.api-console-box {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.api-buttons-row {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-ivory);
    border-bottom: 1px solid var(--border-hairline);
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
}

.api-endpoint-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-logo);
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.api-endpoint-btn:hover {
    color: var(--noir-900);
}

.api-endpoint-btn.active {
    background: var(--noir-950);
    color: var(--gold-light);
}

.api-screen {
    padding: 1.25rem;
}

.api-screen-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.method-badge {
    background: #0b8a4f;
    color: #ffffff;
    font-family: var(--font-logo);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-xs);
}

.endpoint-label {
    font-family: var(--font-logo);
    font-size: 0.85rem;
    color: var(--noir-900);
    flex: 1;
}

.api-code-terminal {
    background: #141312;
    color: #dfb758;
    border-radius: var(--radius-xs);
    padding: 1.25rem;
    font-family: var(--font-logo);
    font-size: 0.8rem;
    line-height: 1.6;
    min-height: 240px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Luxury White Footer - Full Screen Width */
.luxury-footer {
    width: 100%;
    background: var(--bg-ivory);
    border-top: 1px solid var(--border-hairline);
    padding: 2.25rem 2rem;
    margin-top: auto;
    box-sizing: border-box;
}

.footer-inner {
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    box-sizing: border-box;
}

/* Footer Store Address (replaces TG Glam Logo) */
.footer-store-address {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 520px;
}

.footer-store-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-pin-badge {
    font-size: 0.95rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(184, 150, 90, 0.4));
}

.store-outlet-name {
    font-family: var(--font-logo);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--noir-900);
}

.footer-store-details {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.store-address-line {
    margin: 0;
    color: var(--noir-800);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.store-meta-line {
    margin: 0.2rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.79rem;
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.store-dot-sep {
    color: var(--gold-primary);
    font-weight: 700;
}

.store-phone-link {
    color: var(--gold-dark);
    font-weight: 600;
}

.store-hours {
    color: var(--text-muted);
}

/* Footer Right Block: Rotating Flipper & Specifications */
.footer-right-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.85rem;
}

@media (max-width: 992px) {
    .footer-right-block {
        align-items: flex-start;
    }
}

/* 3D Rotating Flipper: Alternates between Engine Online and Varnetix Logo */
.footer-flipper-wrapper {
    perspective: 1000px;
    display: inline-block;
    cursor: pointer;
}

.footer-flipper-inner {
    position: relative;
    width: 320px;
    height: 42px;
    transform-style: preserve-3d;
    animation: rotateEngineVarnetix 8s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.footer-flipper-wrapper:hover .footer-flipper-inner {
    animation-play-state: paused;
}

.footer-flipper-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.face-engine {
    transform: rotateX(0deg);
}

.face-varnetix {
    transform: rotateX(180deg);
}

/* Side A: Engine Status Pill */
.face-engine .status-badge {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #FFFFFF;
    border: 1px solid rgba(184, 150, 90, 0.45);
    box-shadow: 0 2px 10px rgba(184, 150, 90, 0.12), 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-full);
    font-family: var(--font-logo);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--noir-900);
}

/* Side B: Varnetix Logo Pill */
.varnetix-flipper-badge {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #FFFFFF;
    border: 1px solid rgba(184, 150, 90, 0.45);
    box-shadow: 0 2px 10px rgba(184, 150, 90, 0.12), 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-full);
    padding: 0 1.25rem;
}

.varnetix-footer-logo {
    height: 22px;
    width: auto;
    max-width: 165px;
    object-fit: contain;
    display: block;
}

.varnetix-pipe {
    color: var(--gold-primary);
    font-weight: 300;
    font-size: 0.9rem;
}

.varnetix-flipper-tag {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

/* Continuous 3D Vertical Rotation Animation */
@keyframes rotateEngineVarnetix {
    0%, 42% {
        transform: rotateX(0deg);
    }
    48%, 92% {
        transform: rotateX(180deg);
    }
    98%, 100% {
        transform: rotateX(360deg);
    }
}

/* Mobile App View Simulator Frame */
.w-100 { width: 100%; }

/* ============================================================
   REPORTING & ANALYTICS DASHBOARD (HAUTE LUXURY AESTHETIC)
   ============================================================ */
.mb-4 {
    margin-bottom: 1.75rem !important;
}

.analytics-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .analytics-two-col {
        grid-template-columns: 1fr;
    }
}

.analytics-panel {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-hairline);
}

.panel-title {
    font-family: var(--font-logo);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--noir-950);
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.panel-subtitle {
    font-family: var(--font-logo);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.channel-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.channel-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed #f0ebe1;
}

.channel-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.channel-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.channel-name {
    font-family: var(--font-logo);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--noir-900);
}

.channel-count {
    font-family: var(--font-logo);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.channel-amount-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.channel-val {
    font-family: var(--font-logo);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--noir-950);
}

.channel-pct {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-deep);
}

.progress-bar-bg {
    height: 7px;
    background: #f4efe6;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #181511 0%, #3a3224 100%);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.progress-bar-fill.fill-gold {
    background: var(--gold-gradient);
}

.table-header-box {
    padding: 1.25rem 1.5rem;
    background: var(--bg-ivory);
    border-bottom: 1px solid var(--border-hairline);
}

.text-gold {
    color: var(--gold-deep) !important;
}
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

/* Top Utility Bar Sign Out Button */
.top-signout-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(184, 150, 90, 0.45);
    color: var(--noir-900);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}

.top-signout-btn:hover {
    background: rgba(224, 86, 36, 0.08);
    border-color: rgba(224, 86, 36, 0.4);
    color: #c93b16;
}

/* Master Admin Privacy Boundary Firewall Notice */
.privacy-boundary-notice {
    margin-bottom: 2.5rem;
}

.privacy-guard-card {
    padding: 2.5rem 2rem;
    border: 1px solid rgba(184, 150, 90, 0.5);
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    box-shadow: 0 10px 30px rgba(184, 150, 90, 0.1);
}

.privacy-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.privacy-icon-shield {
    font-size: 2.5rem;
    line-height: 1;
}

.privacy-badge {
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(184, 150, 90, 0.12);
    border: 1px solid rgba(184, 150, 90, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 0.4rem;
}

.privacy-title {
    font-family: var(--font-logo);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--noir-950);
    letter-spacing: 0.02em;
    margin: 0;
}

.privacy-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 860px;
    margin-bottom: 1.75rem;
}

.privacy-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.pt-item {
    background: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pt-label {
    font-family: var(--font-logo);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.pt-val {
    font-family: var(--font-logo);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--noir-900);
}

.pt-val.pt-masked {
    color: #c93b16;
    letter-spacing: 0.05em;
}

.privacy-footer-note {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-hairline);
    padding-top: 1rem;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   TG GLAM NATIVE MOBILE APP SYSTEM (APP VIEWPORT, BOTTOM NAV & BOTTOM SHEETS)
   ========================================================================== */

/* Base Mobile App Styles (<= 768px) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Input zoom prevention on iOS (16px rule) */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Content viewport spacing */
    .glam-viewport {
        padding: 1.25rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Top Announcement & Utility Bar: Stack Branch (Full Width Single Line) and User Session Button Below */
    .top-announcement-bar {
        padding: 0.45rem 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        background: #ffffff;
        border-bottom: 1px solid var(--border-hairline);
        min-height: auto;
    }

    .outlet-selector-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.38rem 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-sm);
    }

    .gold-select {
        flex: 1 1 auto;
        padding: 0.15rem 0.25rem;
        font-size: 0.82rem;
        font-family: var(--font-logo);
        font-weight: 700;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        min-width: 0;
        border: none;
        background: transparent;
        color: var(--noir-950);
        text-align: center;
        text-align-last: center;
    }

    .outlet-locked-badge {
        flex: 1 1 auto;
        font-family: var(--font-logo) !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        color: var(--gold-dark) !important;
        letter-spacing: 0.04em !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        min-width: 0 !important;
        display: block !important;
        text-align: center !important;
    }

    /* Below the Branch Info: Logged-in User Session Button */
    .top-user-session-wrap {
        width: 100%;
        position: relative;
        display: flex;
    }

    .top-user-btn {
        width: 100%;
        box-sizing: border-box;
        padding: 0.38rem 2.2rem 0.38rem 1.25rem;
        font-size: 0.82rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: var(--bg-ivory);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-sm);
    }

    .user-display-name {
        max-width: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
        text-align: center;
    }

    .user-dropdown-arrow {
        position: absolute;
        right: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.72rem;
        color: var(--gold-dark);
        line-height: 1;
        pointer-events: none;
    }

    .top-user-dropdown {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
        transform: translateY(-6px) scale(0.98);
        transform-origin: top center;
    }

    .top-user-dropdown.show {
        transform: translateY(0) scale(1) !important;
    }

    /* Compact Sticky Header */
    .luxury-header {
        position: sticky;
        top: 0;
        z-index: 300 !important;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(200, 160, 60, 0.22);
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03);
    }

    .header-inner {
        padding: 0.45rem 0.85rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.65rem;
        min-height: 66px;
    }

    .brand-box {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 54%;
    }

    .brand-link {
        display: flex;
        align-items: center;
        max-width: 100%;
    }

    /* Logo sized to match the vertical height occupied by the two stacked buttons */
    .glam-logo {
        height: 44px;
        max-height: 48px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

    @media (max-width: 380px) {
        .glam-logo {
            height: 38px;
            max-height: 40px;
        }
    }

    /* Header Right Group: Stack the two buttons vertically on top of each other */
    .header-right-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0.35rem;
        flex-shrink: 0;
        width: 142px;
        max-width: 44%;
    }

    .salon-menu-wrapper {
        width: 100%;
        position: relative;
    }

    .salon-menu-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 28px !important;
        padding: 0.25rem 0.55rem !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.3rem !important;
        white-space: nowrap !important;
        border-radius: var(--radius-sm) !important;
    }

    .salon-menu-btn .menu-btn-icon {
        font-size: 0.82rem !important;
        line-height: 1 !important;
    }

    .salon-menu-btn .menu-btn-title {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
    }

    .salon-menu-btn .menu-btn-arrow {
        font-size: 0.62rem !important;
        line-height: 1 !important;
    }

    .header-actions {
        width: 100%;
        display: flex;
    }

    .header-actions .gold-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 28px !important;
        padding: 0.25rem 0.55rem !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        border-radius: var(--radius-sm) !important;
    }

    .btn-text-full {
        display: inline !important;
    }

    .btn-text-mobile {
        display: none !important;
    }

    /* Metric Cards Grid */
    .glam-hero {
        margin-bottom: 1.25rem;
    }

    .glam-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    @media (max-width: 380px) {
        .glam-stats-grid {
            grid-template-columns: 1fr;
        }
    }

    .stat-card {
        padding: 0.9rem 0.85rem;
        gap: 0.65rem;
        border-radius: 12px;
    }

    .stat-icon-gold {
        font-size: 1.35rem;
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .stat-meta .stat-label {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .stat-number {
        font-size: 1.45rem !important;
        height: 1.8rem;
    }

    .stat-number-currency {
        font-size: 1.35rem !important;
    }

    .stat-footer-text {
        font-size: 0.68rem;
    }


    /* Pane Header & Buttons */
    .pane-action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .pane-headline {
        font-size: 1.35rem;
        letter-spacing: 0.02em;
        line-height: 1.2;
    }

    .pane-subline {
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }

    .pane-action-bar .btn-group {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .pane-action-bar .btn-group button {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.78rem;
    }

    .pane-action-bar .pane-actions-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .pane-action-bar .pane-actions-group button {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.78rem;
    }

    /* Catalog, Membership, Stylist Grids on Mobile */
    .service-catalog-grid,
    .membership-grid,
    .stylists-grid,
    .customer-crm-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* ==========================================================================
       MOBILE CARD TRANSFORMATION FOR DATA TABLES
       ========================================================================== */
    .gold-table-container {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .glam-table {
        min-width: 100% !important;
        display: block;
        width: 100%;
    }

    .glam-table thead {
        display: none; /* Hide header labels on phone */
    }

    .glam-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
    }

    .glam-table tbody tr {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid var(--border-hairline);
        border-radius: 14px;
        padding: 1rem 1.1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        position: relative;
        gap: 0.55rem;
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .glam-table tbody tr:active {
        transform: scale(0.99);
        border-color: var(--gold-primary);
    }

    .glam-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.15rem 0 !important;
        border: none !important;
        font-size: 0.88rem;
        width: 100% !important;
    }

    /* Table row header (Time + Status) */
    .glam-table td.td-time {
        order: 1;
        border-bottom: 1px dashed #eee8dd !important;
        padding-bottom: 0.5rem !important;
        margin-bottom: 0.25rem;
    }

    .glam-table td.td-status {
        order: 2;
        margin-top: -2.35rem;
        justify-content: flex-end;
    }

    /* Guest details with integrated VIP Badge */
    .glam-table td.td-guest {
        order: 3;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
    }

    .glam-table td.td-guest .guest-details-cell {
        width: 100%;
    }

    .glam-table td.td-tier {
        order: 4;
    }

    .glam-table td.td-stylist {
        order: 4;
    }

    .glam-table td.td-code {
        order: 5;
        font-size: 0.78rem;
        color: var(--text-muted);
    }

    .glam-table td.td-amount {
        order: 6;
        border-top: 1px solid #f2ede4 !important;
        padding-top: 0.55rem !important;
        margin-top: 0.35rem;
    }

    .glam-table td.td-action {
        order: 7;
        width: 100% !important;
        padding-top: 0.65rem !important;
        margin-top: 0.35rem !important;
        border-top: 1px dashed #eee8dd !important;
    }

    .glam-table td.td-action .apt-action-group {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
    }

    .glam-table td.td-action .table-btn-action {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-height: 42px !important;
        font-size: 0.86rem !important;
        border-radius: var(--radius-sm) !important;
    }

    .glam-table td.td-action .apt-menu-wrapper {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        flex-shrink: 0 !important;
    }

    .glam-table td.td-action .btn-apt-menu-trigger {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.15rem !important;
        border-radius: var(--radius-sm) !important;
    }

    .glam-table td.td-action .apt-menu-dropdown {
        right: 0 !important;
        left: auto !important;
        min-width: 220px !important;
        max-width: calc(100vw - 32px) !important;
    }

    .glam-table td.td-action .btn-pos-bill,
    .glam-table td.td-action .btn-view-invoice {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
        min-height: 44px;
        border-radius: var(--radius-sm);
    }

    /* ==========================================================================
       SLIDE-UP BOTTOM SHEETS FOR MODALS (NATIVE APP FEEL)
       ========================================================================== */
    .glam-modal {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    .modal-box {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 24px 24px 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        max-height: 88dvh !important;
        display: flex;
        flex-direction: column;
        margin: 0 !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22) !important;
        transform: translateY(100%) !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        background: #ffffff !important;
    }

    .glam-modal.active .modal-box {
        transform: translateY(0) !important;
    }

    .sheet-drag-handle {
        display: block;
        width: 44px;
        height: 5px;
        background: #ded5c5;
        border-radius: 99px;
        margin: 10px auto 4px auto;
        flex-shrink: 0;
    }

    .modal-header {
        padding: 0.85rem 1.25rem;
        background: #ffffff;
        border-bottom: 1px solid var(--border-hairline);
        flex-shrink: 0;
    }

    .modal-header h3 {
        font-size: 1.05rem;
    }

    .modal-close {
        font-size: 1.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .glam-form, .checkout-body {
        padding: 1.15rem 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-footer {
        padding: 0.75rem 1.25rem 0.5rem;
        margin-top: 0.5rem;
        flex-direction: column-reverse;
        gap: 0.65rem;
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 0.9rem;
    }

    /* ==========================================================================
       RESPONSIVE SALON ATELIER MENU DROPDOWN ON MOBILE
       ========================================================================== */
    .salon-menu-dropdown {
        left: auto !important;
        right: 0 !important;
        transform: translateY(-8px) scale(0.97) !important;
        transform-origin: top right !important;
        width: min(310px, calc(100vw - 1.5rem)) !important;
    }

    .salon-menu-dropdown.show {
        transform: translateY(0) scale(1) !important;
    }

    /* Footer on mobile */
    .luxury-footer {
        padding: 2.5rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-store-address {
        align-items: center;
        text-align: center;
    }

    .store-address-line, .store-meta-line {
        justify-content: center;
        text-align: center;
    }

    .footer-flipper-inner {
        width: 290px;
        height: 38px;
    }
}

/* ==========================================================================
   TG Glam Luxury Atelier Settings & Store Configuration
   ========================================================================== */
.modal-box.modal-box-wide {
    max-width: 860px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.settings-modal-header {
    background: linear-gradient(135deg, #fffdfa 0%, #faf5ea 100%);
    border-bottom: 1px solid var(--gold-border);
    padding: 1.25rem 1.75rem 0.75rem;
}

.settings-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.settings-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--border-hairline, #E5E1D8);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.65rem;
    background: var(--bg-ivory, #F8F6F2);
    flex-wrap: wrap;
    align-items: center;
}

.settings-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-logo, inherit);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--noir-700, #4B5563);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    white-space: nowrap;
}

.settings-tab-btn:hover {
    color: var(--noir-900, #111827);
    background: rgba(0, 0, 0, 0.04);
}

.settings-tab-btn.active {
    background: #ffffff !important;
    color: var(--gold-deep, #9A7B38) !important;
    border: 1px solid rgba(200, 160, 60, 0.38) !important;
    border-bottom: 2px solid var(--gold-primary, #C8A03C) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    font-weight: 800 !important;
}

.settings-tab-btn .tab-badge {
    background: rgba(0, 0, 0, 0.08);
    color: var(--noir-700, #374151);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.settings-tab-btn.active .tab-badge {
    background: var(--gold-primary, #C8A03C) !important;
    color: #ffffff !important;
}

.settings-tab-btn .tab-badge.badge-new-pulse {
    background: var(--gold-deep, #9A7B38);
    color: #ffffff;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 2px 6px;
}

/* Action Buttons on Settings Page */
.btn-save-store-settings,
#btn-dispatch-broadcast {
    height: 44px;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.btn-save-store-settings .btn-text-desktop,
#btn-dispatch-broadcast .btn-text-desktop {
    display: inline;
}

.btn-save-store-settings .btn-text-mobile,
#btn-dispatch-broadcast .btn-text-mobile {
    display: none;
}

/* ==========================================================================
   Mobile Responsive Navigation & Settings Layout (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Globally adjust button tracking on mobile so text never overflows */
    .gold-btn {
        letter-spacing: 0.05em !important;
        box-sizing: border-box !important;
    }
    .settings-tabs-nav {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
        padding: 0.55rem !important;
        border-radius: 8px !important;
    }

    .settings-tab-btn {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.04em !important;
        white-space: nowrap !important;
        background: rgba(255, 255, 255, 0.6) !important;
        border: 1px solid var(--border-hairline, #E5E1D8) !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    .settings-tab-btn:hover {
        background: #ffffff !important;
    }

    .settings-tab-btn.active {
        background: #ffffff !important;
        color: var(--gold-deep, #9A7B38) !important;
        border: 1.5px solid var(--gold-primary, #C8A03C) !important;
        border-bottom: 1.5px solid var(--gold-primary, #C8A03C) !important;
        box-shadow: 0 3px 12px rgba(200, 160, 60, 0.16), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        font-weight: 800 !important;
    }

    .settings-tab-btn .tab-label-wrap {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.55rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .broadcast-workspace-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .broadcast-form-two-col {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* Settings Page & Card Containers on Mobile */
    .settings-page-form {
        padding: 1.15rem 0.9rem !important;
        border-radius: var(--radius-sm, 8px) !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .settings-section-card {
        padding: 1.15rem 0.85rem !important;
        border-radius: var(--radius-sm, 8px) !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .settings-section-title {
        font-size: 0.95rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.4 !important;
    }

    .settings-section-desc {
        font-size: 0.78rem !important;
        line-height: 1.45 !important;
        word-break: break-word !important;
    }

    /* Store Logo Upload & Preview Box Responsive Flow */
    .store-logo-config-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
        padding: 1rem 0.85rem !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .store-logo-config-box > div {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .store-logo-config-box .logo-preview-center {
        margin: 0 auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .store-logo-config-box input[type="file"] {
        max-width: 100% !important;
        width: 100% !important;
        font-size: 0.72rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0.35rem 0.4rem !important;
    }

    /* Form Rows: Stack horizontally paired inputs vertically on mobile */
    .settings-page-form .form-row,
    .settings-pane .form-row {
        flex-direction: column !important;
        gap: 0.85rem !important;
        margin-bottom: 0.85rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-page-form .form-row > .form-group,
    .settings-pane .form-row > .form-group {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Inputs within Settings */
    .settings-page-form input,
    .settings-page-form select,
    .settings-page-form textarea,
    .settings-pane input,
    .settings-pane select,
    .settings-pane textarea,
    .settings-page-form .glam-input,
    .settings-pane .glam-input {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Footer Action Button: Full-width thumb friendly button */
    .settings-footer-actions {
        flex-direction: column !important;
        width: 100% !important;
        justify-content: stretch !important;
        padding-top: 1rem !important;
        margin-top: 1.25rem !important;
        box-sizing: border-box !important;
    }

    .settings-footer-actions button[type="submit"],
    .settings-footer-actions .gold-btn,
    .btn-save-store-settings,
    #btn-dispatch-broadcast {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        height: 46px !important;
        font-size: 0.82rem !important;
        letter-spacing: 0.05em !important;
        padding: 0 0.85rem !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .btn-save-store-settings .btn-text-desktop,
    #btn-dispatch-broadcast .btn-text-desktop {
        display: none !important;
    }

    .btn-save-store-settings .btn-text-mobile,
    #btn-dispatch-broadcast .btn-text-mobile {
        display: inline !important;
    }

    /* Workforce Directory Header & Toolbar on Mobile */
    .settings-staff-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .settings-staff-title-text {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.45rem !important;
        font-size: 0.92rem !important;
        line-height: 1.35 !important;
        white-space: normal !important;
    }

    .btn-add-staff-action {
        width: 100% !important;
        justify-content: center !important;
        height: 42px !important;
        font-size: 0.82rem !important;
        letter-spacing: 0.05em !important;
        box-sizing: border-box !important;
    }

    .settings-staff-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
        margin: 0.85rem 0 !important;
        padding-bottom: 0.85rem !important;
    }

    .settings-staff-filters {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
        gap: 0.4rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-staff-filters::-webkit-scrollbar {
        display: none !important;
    }

    .staff-filter-pill {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 0.35rem 0.75rem !important;
        font-size: 0.72rem !important;
        border-radius: 9999px !important;
    }

    .settings-staff-search-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #settings-staff-search {
        width: 100% !important;
        height: 40px !important;
        font-size: 0.82rem !important;
        box-sizing: border-box !important;
    }

    .settings-staff-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .settings-staff-card {
        width: 100% !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

.settings-scroll-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    background: var(--bg-white);
}

.settings-pane {
    display: none;
}

.settings-pane.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

.settings-section-card {
    background: #fffdfa;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(18, 17, 16, 0.02);
}

.settings-section-title {
    font-family: var(--font-logo);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--noir-950);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.staff-card-item {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.staff-card-item:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow-sm);
}

.staff-avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), #fff);
    border: 1.5px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-deep);
    flex-shrink: 0;
}

.staff-details {
    flex: 1;
    min-width: 0;
}

.staff-name {
    font-family: var(--font-logo);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--noir-950);
    margin: 0 0 0.15rem 0;
}

.staff-role-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.staff-meta-row {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.staff-specialties-tag {
    font-size: 0.7rem;
    color: var(--text-dim);
    background: var(--pearl-100);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.3rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Store Workforce & Personnel Roster (Settings Modal)
   ========================================================================== */
.staff-filter-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    border-radius: 9999px;
    color: var(--noir-800);
    cursor: pointer;
    transition: all 0.15s ease;
}

.staff-filter-pill:hover {
    border-color: var(--gold-primary);
    color: var(--gold-deep);
}

.staff-filter-pill.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: #111111;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(200, 160, 60, 0.3);
}

.settings-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.settings-staff-card {
    background: #ffffff;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
}

.settings-staff-card:hover {
    border-color: rgba(200, 160, 60, 0.45);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.settings-staff-card.is-card-suspended {
    opacity: 0.8;
    background: #FAFAFA;
    border-style: dashed;
    border-color: rgba(245, 158, 11, 0.4);
}

.settings-staff-card-header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
}

.settings-staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
    overflow: hidden;
}

.staff-modal-avatar-uploader {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1.15rem;
    background: var(--bg-ivory);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
}

.staff-modal-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background: var(--noir-950);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 1.35rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.staff-modal-scroll-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.staff-modal-scroll-body::-webkit-scrollbar {
    width: 6px;
}

.staff-modal-scroll-body::-webkit-scrollbar-track {
    background: transparent;
}

.staff-modal-scroll-body::-webkit-scrollbar-thumb {
    background: rgba(200, 160, 60, 0.35);
    border-radius: 999px;
}

.staff-modal-scroll-body::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

.settings-staff-avatar.avatar-stylist {
    background: linear-gradient(135deg, var(--gold-soft), #ffffff);
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-deep);
}

.settings-staff-avatar.avatar-receptionist {
    background: linear-gradient(135deg, #EFF6FF, #ffffff);
    border: 1.5px solid #3B82F6;
    color: #1D4ED8;
}

.settings-staff-avatar.avatar-housekeeping {
    background: linear-gradient(135deg, #ECFDF5, #ffffff);
    border: 1.5px solid #10B981;
    color: #047857;
}

.settings-staff-avatar.avatar-primary-owner {
    background: linear-gradient(135deg, #FEF3C7, #ffffff);
    border: 1.5px solid #D97706;
    color: #92400E;
}

.settings-staff-avatar.avatar-owner {
    background: linear-gradient(135deg, #FAF5FF, #ffffff);
    border: 1.5px solid #9333EA;
    color: #6B21A8;
}

.settings-staff-avatar.avatar-outlet_manager,
.settings-staff-avatar.avatar-branch_admin {
    background: linear-gradient(135deg, #F1F5F9, #ffffff);
    border: 1.5px solid #475569;
    color: #0F172A;
}

.settings-staff-header-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.settings-staff-header-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    min-width: 0;
}

.settings-staff-role-pill {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.settings-staff-status-pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.settings-staff-status-pill.status-active {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.settings-staff-status-pill.status-suspended {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.settings-staff-status-pill.status-inactive {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

.role-badge-primary-owner {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    color: #92400E;
    border: 1px solid rgba(217, 119, 6, 0.45);
    font-weight: 700;
}

.role-badge-owner {
    background: #FAF5FF;
    color: #6B21A8;
    border: 1px solid rgba(147, 51, 234, 0.35);
    font-weight: 600;
}

.role-badge-stylist {
    background: var(--gold-soft);
    color: var(--gold-deep);
    border: 1px solid rgba(200, 160, 60, 0.3);
}

.role-badge-frontdesk {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-badge-housekeeping {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-badge-manager {
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid rgba(71, 85, 105, 0.3);
}

.role-badge-default {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.settings-staff-name {
    font-family: var(--font-logo);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--noir-950);
    margin: 0 0 0.15rem 0;
    line-height: 1.25;
    word-break: break-word;
}

.settings-staff-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.settings-staff-code {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--gold-deep);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.meta-dot {
    color: var(--border-subtle);
    flex-shrink: 0;
}

.settings-staff-desig {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.settings-staff-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    min-width: 0;
}

.staff-contact-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.staff-contact-row .contact-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.staff-contact-row .contact-text {
    min-width: 0;
}

.staff-contact-row .contact-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-staff-metrics-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin: 0.25rem 0;
}

.staff-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 9999px;
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    color: var(--noir-800);
    white-space: nowrap;
}

.staff-mini-pill.pill-floor-avail {
    background: #ECFDF5;
    color: #047857;
    border-color: rgba(16, 185, 129, 0.3);
}

.staff-mini-pill.pill-floor-off {
    background: #FEF2F2;
    color: #B91C1C;
    border-color: rgba(239, 68, 68, 0.3);
}

.mini-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.mini-status-dot.avail {
    background: #10B981;
}

.mini-status-dot.off {
    background: #EF4444;
}

.settings-staff-specialties {
    font-size: 0.72rem;
    color: var(--noir-800);
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.settings-staff-dept-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: var(--bg-ivory);
    border: 1px solid var(--border-hairline);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.settings-staff-card-footer {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-hairline);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.staff-footer-btn {
    height: 34px;
    padding: 0 0.35rem;
    font-family: var(--font-logo);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
    background: #FFFFFF;
    color: var(--noir-900);
}

/* Dossier button: elegant gold accent */
.staff-footer-btn.btn-settings-floor-dossier {
    border-color: rgba(200, 160, 60, 0.45);
    color: var(--gold-deep);
    background: #FFFFFF;
}

.staff-footer-btn.btn-settings-floor-dossier:hover {
    border-color: var(--gold-primary);
    background: var(--gold-soft);
    color: var(--gold-deep);
}

/* Edit button: crisp luxury outline */
.staff-footer-btn.btn-edit-staff-member {
    border-color: var(--border-subtle);
    color: var(--noir-900);
    background: #FFFFFF;
}

.staff-footer-btn.btn-edit-staff-member:hover {
    border-color: var(--gold-primary);
    background: var(--gold-soft);
    color: var(--gold-deep);
}

/* Suspend button: refined danger outline */
.staff-footer-btn.btn-toggle-suspend-staff {
    border-color: rgba(220, 38, 38, 0.3);
    color: #DC2626;
    background: #FFFFFF;
}

.staff-footer-btn.btn-toggle-suspend-staff:hover {
    background: #FEF2F2;
    border-color: #DC2626;
    color: #B91C1C;
}

/* Restore button (when suspended): refined emerald outline */
.staff-footer-btn.btn-toggle-suspend-staff.is-suspended {
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
    background: #FFFFFF;
}

.staff-footer-btn.btn-toggle-suspend-staff.is-suspended:hover {
    background: #ECFDF5;
    border-color: #059669;
    color: #047857;
}

/* ==========================================================================
   TG Glam In-Portal Notification Window & Toast System
   ========================================================================== */
.glam-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 440px;
    width: calc(100vw - 48px);
    pointer-events: none;
}

@media (max-width: 640px) {
    .glam-toast-container {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
        max-width: none;
    }
}

.glam-toast {
    pointer-events: auto;
    background: rgba(22, 20, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 1px rgba(212, 175, 55, 0.2);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    animation: glamToastEntrance 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.glam-toast.is-leaving {
    animation: glamToastExit 0.25s ease forwards;
}

@keyframes glamToastEntrance {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glamToastExit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}

.glam-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
}

.glam-toast-body {
    flex: 1;
    min-width: 0;
}

.glam-toast-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
    font-family: inherit;
}

.glam-toast-msg {
    font-size: 0.88rem;
    color: #f0eee9;
    line-height: 1.45;
    word-break: break-word;
}

.glam-toast-close {
    background: transparent;
    border: none;
    color: #999590;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    margin-top: -2px;
    margin-right: -4px;
    transition: color 0.15s ease;
}

.glam-toast-close:hover {
    color: #FFFFFF;
}

.glam-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: left;
    background: rgba(255, 255, 255, 0.08);
}

.glam-toast-progress-bar {
    height: 100%;
    width: 100%;
}

/* TG Glam Toast Variants */
.glam-toast-success {
    border-left: 4px solid #D4AF37;
}
.glam-toast-success .glam-toast-icon {
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.glam-toast-success .glam-toast-title {
    color: #D4AF37;
}
.glam-toast-success .glam-toast-progress-bar {
    background: #D4AF37;
}

.glam-toast-error {
    border-left: 4px solid #FF5252;
}
.glam-toast-error .glam-toast-icon {
    background: rgba(255, 82, 82, 0.15);
    color: #FF5252;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.3);
}
.glam-toast-error .glam-toast-title {
    color: #FF5252;
}
.glam-toast-error .glam-toast-progress-bar {
    background: #FF5252;
}

.glam-toast-warning {
    border-left: 4px solid #FFA726;
}
.glam-toast-warning .glam-toast-icon {
    background: rgba(255, 167, 38, 0.15);
    color: #FFA726;
    box-shadow: 0 0 10px rgba(255, 167, 38, 0.3);
}
.glam-toast-warning .glam-toast-title {
    color: #FFA726;
}
.glam-toast-warning .glam-toast-progress-bar {
    background: #FFA726;
}

.glam-toast-info {
    border-left: 4px solid #40C4FF;
}
.glam-toast-info .glam-toast-icon {
    background: rgba(64, 196, 255, 0.15);
    color: #40C4FF;
    box-shadow: 0 0 10px rgba(64, 196, 255, 0.3);
}
.glam-toast-info .glam-toast-title {
    color: #40C4FF;
}
.glam-toast-info .glam-toast-progress-bar {
    background: #40C4FF;
}

/* ==========================================================================
   TG GLAM TENANT SUBSCRIPTION NOTIFICATION BANNERS & LICENSE LOCKOUTS
   ========================================================================== */

.subscription-banner-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.subscription-banner-icon-col {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.35rem;
}

.subscription-banner-body {
    flex: 1;
    min-width: 0;
}

.subscription-banner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.subscription-banner-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subscription-banner-title {
    font-family: var(--font-logo, 'Cinzel', serif);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.subscription-banner-desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #4a4845;
}

.subscription-banner-desc strong {
    font-weight: 700;
    color: #1a1918;
}

.subscription-banner-actions {
    flex-shrink: 0;
}

.banner-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Variant 1: Approaching Renewal Warning (Gold/Amber) */
.subscription-banner-wrap.banner-warning {
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-left: 5px solid #c59b27;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(197, 155, 39, 0.08);
}
.subscription-banner-wrap.banner-warning .subscription-banner-icon-col {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.subscription-banner-wrap.banner-warning .subscription-banner-badge {
    background: rgba(212, 175, 55, 0.18);
    color: #7c5e10;
    border: 1px solid rgba(212, 175, 55, 0.35);
}
.subscription-banner-wrap.banner-warning .subscription-banner-title {
    color: #6a4f08;
}
.banner-btn-warning {
    background: #ffffff;
    color: #8c6809;
    border: 1.5px solid #c59b27;
}
.banner-btn-warning:hover {
    background: #c59b27;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
}

/* Variant 2: Grace Period Active (Orange/Vibrant Amber) */
.subscription-banner-wrap.banner-grace {
    border: 1px solid rgba(230, 126, 34, 0.45);
    border-left: 5px solid #e67e22;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.14);
}
.subscription-banner-wrap.banner-grace .subscription-banner-icon-col {
    background: rgba(230, 126, 34, 0.16);
    border: 1px solid rgba(230, 126, 34, 0.35);
}
.subscription-banner-wrap.banner-grace .subscription-banner-badge {
    background: rgba(230, 126, 34, 0.2);
    color: #a04900;
    border: 1px solid rgba(230, 126, 34, 0.4);
}
.subscription-banner-wrap.banner-grace .subscription-banner-title {
    color: #a04900;
}
.banner-btn-grace {
    background: #e67e22;
    color: #ffffff;
    border: 1.5px solid #d35400;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}
.banner-btn-grace:hover {
    background: #d35400;
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.4);
}

/* Variant 3: License Suspended (Crimson Red) */
.subscription-banner-wrap.banner-suspended {
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-left: 5px solid #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.09) 0%, #ffffff 100%);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.16);
}
.subscription-banner-wrap.banner-suspended .subscription-banner-icon-col {
    background: rgba(220, 38, 38, 0.16);
    border: 1px solid rgba(220, 38, 38, 0.35);
}
.subscription-banner-wrap.banner-suspended .subscription-banner-badge {
    background: rgba(220, 38, 38, 0.2);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.4);
}
.subscription-banner-wrap.banner-suspended .subscription-banner-title {
    color: #991b1b;
}
.banner-btn-suspended {
    background: #dc2626;
    color: #ffffff;
    border: 1.5px solid #b91c1c;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.35);
}
.banner-btn-suspended:hover {
    background: #b91c1c;
    box-shadow: 0 5px 18px rgba(220, 38, 38, 0.45);
}

/* Disabled and locked controls */
.btn-suspended-locked {
    opacity: 0.65;
    cursor: not-allowed !important;
    background: #e8e8e8 !important;
    color: #71717a !important;
    border: 1px solid #d4d4d8 !important;
    box-shadow: none !important;
    pointer-events: none;
}

.table-btn-disabled {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f4f4f5;
    color: #a1a1aa;
    border: 1px dashed #d4d4d8;
    cursor: not-allowed;
    user-select: none;
}

/* Responsive adjustments for notification banners */
@media (max-width: 768px) {
    .subscription-banner-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    .subscription-banner-actions {
        width: 100%;
    }
    .banner-action-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Luxury Schedule Date Toolbar & Historical Filter
   ========================================================================== */
.schedule-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.schedule-title-group {
    flex: 1;
    min-width: 260px;
}

.schedule-date-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 77, 0.35);
    border-radius: 9999px;
    padding: 0.35rem 0.65rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(201, 162, 77, 0.08);
}

.date-quick-chips {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(245, 240, 232, 0.65);
    padding: 0.2rem;
    border-radius: 9999px;
    border: 1px solid rgba(220, 210, 195, 0.4);
}

.date-chip {
    background: transparent;
    border: none;
    font-family: var(--font-logo);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--noir-800);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.date-chip:hover {
    color: var(--gold-dark);
    background: rgba(255, 255, 255, 0.85);
}

.date-chip.active {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    color: var(--gold-dark);
    box-shadow: 0 2px 6px rgba(201, 162, 77, 0.22);
    border: 1px solid rgba(201, 162, 77, 0.4);
    font-weight: 700;
}

.date-picker-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.date-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 77, 0.35);
    background: #ffffff;
    color: var(--noir-900);
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
}

.date-nav-btn:hover {
    background: var(--gold-dark);
    color: #ffffff;
    border-color: var(--gold-dark);
    transform: scale(1.06);
    box-shadow: 0 2px 8px rgba(201, 162, 77, 0.3);
}

.date-nav-btn:active {
    transform: scale(0.95);
}

.date-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.gold-date-input {
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--noir-900);
    background: #FAF7F2;
    border: 1px solid rgba(201, 162, 77, 0.38);
    border-radius: 9999px;
    padding: 0.32rem 0.85rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gold-date-input:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.18);
    background: #ffffff;
}

/* Empty Schedule State */
.empty-schedule-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    text-align: center;
    gap: 0.45rem;
}

.empty-schedule-state .empty-icon {
    font-size: 2.2rem;
    margin-bottom: 0.35rem;
    opacity: 0.75;
}

.empty-schedule-state .empty-main-text {
    font-family: var(--font-logo);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--noir-900);
    letter-spacing: 0.02em;
    margin: 0;
}

.empty-schedule-state .empty-hint-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.empty-schedule-state .gold-link {
    color: var(--gold-dark);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease;
}

.empty-schedule-state .gold-link:hover {
    color: var(--gold-deep);
}

@media (max-width: 900px) {
    .schedule-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .schedule-date-toolbar {
        width: 100%;
        border-radius: 16px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .date-quick-chips {
        width: 100%;
        justify-content: space-between;
    }
    .date-chip {
        flex: 1;
        text-align: center;
    }
    .date-picker-group {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.35rem;
    }
    .date-input-wrapper {
        flex: 1;
    }
    .gold-date-input {
        width: 100%;
        text-align: center;
    }
}

/* VIP Privilege Badges & Service Consumption Ledger Styles */
#btn-open-vip-ledger {
    height: 38px;
    padding: 0 1.25rem;
    font-family: var(--font-logo);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(200, 160, 60, 0.45);
    color: var(--gold-dark);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
}

#btn-open-vip-ledger:hover {
    border-color: var(--gold-primary);
    background: var(--gold-soft);
    color: var(--gold-deep);
    box-shadow: 0 2px 8px rgba(200, 160, 60, 0.15);
}

.btn-delete-plan:hover,
#btn-delete-plan-modal:hover {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.vip-benefit-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.badge-benefit-discount {
    background: rgba(30, 64, 175, 0.08);
    color: #1e40af;
    border: 1px solid rgba(30, 64, 175, 0.25);
}

.badge-benefit-quota {
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-benefit-both {
    background: rgba(200, 160, 60, 0.12);
    color: var(--gold-deep);
    border: 1px solid rgba(200, 160, 60, 0.35);
}

.badge-benefit-credits {
    background: rgba(139, 92, 246, 0.08);
    color: #5b21b6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.vip-ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.vip-ledger-table th {
    background: rgba(200, 160, 60, 0.06);
    color: var(--gold-deep);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-hairline);
    text-align: left;
}

.vip-ledger-table td {
    padding: 0.85rem 0.85rem;
    border-bottom: 1px solid var(--border-hairline);
    vertical-align: middle;
}

.vip-ledger-table tr:hover {
    background: rgba(200, 160, 60, 0.03);
}

.action-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}
.action-pill-service_redeemed {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.action-pill-discount_applied {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.action-pill-wallet_debit {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
.action-pill-enrollment {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* Autocomplete Dropdown for Reservation Autofill */
.pos-relative {
    position: relative;
}

.glam-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1.5px solid #000000;
    border-radius: 6px;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    max-height: 230px;
    overflow-y: auto;
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.glam-autocomplete-dropdown::-webkit-scrollbar {
    width: 5px;
}
.glam-autocomplete-dropdown::-webkit-scrollbar-track {
    background: #FAFAFA;
}
.glam-autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 3px;
}

.glam-autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #F0F0F0;
    cursor: pointer;
    transition: background 0.15s ease;
}

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

.glam-autocomplete-item:hover,
.glam-autocomplete-item.active {
    background: #000000;
    color: #FFFFFF;
}

.glam-autocomplete-item:hover .glam-ac-name,
.glam-autocomplete-item.active .glam-ac-name {
    color: #FFFFFF;
}

.glam-autocomplete-item:hover .glam-ac-sub,
.glam-autocomplete-item.active .glam-ac-sub {
    color: #CCCCCC;
}

.glam-autocomplete-item:hover .glam-ac-badge,
.glam-autocomplete-item.active .glam-ac-badge {
    background: #333333;
    color: #FFFFFF;
    border-color: #555555;
}

.glam-ac-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.glam-ac-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #000000;
}

.glam-ac-sub {
    font-size: 0.74rem;
    color: #666666;
    letter-spacing: 0.02em;
}

.glam-ac-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.glam-ac-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #F3F4F6;
    color: #111111;
    border: 1px solid #E5E7EB;
}

.glam-ac-empty {
    padding: 12px 14px;
    font-size: 0.8rem;
    color: #888888;
    text-align: center;
    font-style: italic;
}

/* Haute Tax Invoice Modal & Print Styling */
#receipt-modal #receipt-details-box {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

.invoice-preview-sheet {
    font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #111111;
    width: 100%;
    box-sizing: border-box;
}

.inv-brand-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #111111;
    margin-bottom: 1rem;
}

.inv-logo-header {
    text-align: center;
    margin-bottom: 0.75rem;
}

.inv-logo-img {
    height: 48px;
    max-width: 220px;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.06));
}

.inv-brand-title {
    font-family: var(--font-logo, 'Futura PT', 'Futura', sans-serif);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 0.25rem;
}

.inv-brand-sub {
    font-size: 0.76rem;
    color: #555555;
    line-height: 1.4;
}

.inv-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.inv-meta-block strong {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 2px;
}

.inv-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.inv-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    font-size: 0.82rem;
    table-layout: auto;
}

.inv-items-table th {
    background: #111111;
    color: #FFFFFF;
    text-align: left;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inv-items-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #E5E7EB;
}

.inv-items-table .td-rate {
    text-align: right;
    font-weight: 600;
}

.inv-items-table .col-desc {
    text-align: left;
}

.inv-items-table .col-qty {
    text-align: center;
    width: 44px;
    white-space: nowrap;
}

.inv-items-table .col-rate {
    text-align: right;
    width: 85px;
    white-space: nowrap;
}

.inv-items-table .col-amt {
    text-align: right;
    width: 90px;
    white-space: nowrap;
}

.inv-totals-box {
    margin-left: auto;
    width: 260px;
    font-size: 0.82rem;
    line-height: 1.6;
}

.inv-total-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}

.inv-grand-total {
    border-top: 2px solid #111111;
    border-bottom: 2px solid #111111;
    padding: 6px 0;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 800;
}

.inv-tender-row {
    margin-top: 0.75rem;
    padding: 8px 12px;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #065F46;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 640px) {
    #receipt-modal .checkout-body {
        padding: 0.75rem 0.5rem !important;
    }
    #receipt-modal #receipt-details-box {
        padding: 0.85rem 0.6rem !important;
    }
}

@media (max-width: 520px) {
    .inv-brand-title {
        font-size: 1.05rem !important;
        letter-spacing: 0.08em !important;
    }
    .inv-brand-sub {
        font-size: 0.7rem !important;
    }
    .inv-logo-img {
        height: 38px !important;
        max-width: 170px !important;
    }
    .inv-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 0.55rem !important;
        padding: 0.65rem 0.75rem !important;
        font-size: 0.78rem !important;
    }
    .inv-items-table th,
    .inv-items-table td {
        padding: 6px 4px !important;
        font-size: 0.76rem !important;
    }
    .inv-items-table .col-rate {
        display: none !important;
    }
    .inv-items-table .mobile-unit-rate {
        display: inline !important;
    }
    .inv-items-table .col-qty {
        width: 30px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .inv-items-table .col-amt {
        width: 80px !important;
        font-weight: 700 !important;
    }
    .inv-totals-box {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        font-size: 0.8rem !important;
    }
    .inv-tender-row {
        flex-wrap: wrap !important;
        gap: 0.4rem !important;
        padding: 8px 10px !important;
        font-size: 0.74rem !important;
    }
}

@media print {
    @page {
        margin: 12mm 15mm;
        size: A4 portrait;
    }
    html, body {
        background: #FFFFFF !important;
        color: #111111 !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body * {
        visibility: hidden !important;
    }
    #receipt-modal,
    #receipt-modal * {
        visibility: visible !important;
    }
    #receipt-modal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #FFFFFF !important;
        display: block !important;
        z-index: 999999 !important;
    }
    #receipt-modal .modal-backdrop,
    #receipt-modal .sheet-drag-handle,
    #receipt-modal .modal-close,
    #receipt-modal .modal-header,
    #receipt-modal .receipt-badge-row,
    #receipt-modal .modal-footer {
        display: none !important;
    }
    #receipt-modal .modal-box {
        max-width: 720px !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: #FFFFFF !important;
        color: #111111 !important;
    }
    #receipt-modal .checkout-body {
        padding: 0 !important;
        margin: 0 !important;
    }
    #receipt-modal .modal-scroll-content {
        padding: 0 !important;
        margin: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
    #receipt-modal .checkout-summary-box {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    .invoice-preview-sheet {
        border: 1.5px solid #E5E7EB !important;
        border-radius: 8px !important;
        padding: 24px !important;
        background: #FFFFFF !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .inv-brand-header {
        text-align: center !important;
        padding-bottom: 0.85rem !important;
        border-bottom: 2px solid #111111 !important;
        margin-bottom: 1rem !important;
    }
    .inv-logo-header {
        text-align: center !important;
        margin-bottom: 0.5rem !important;
    }
    .inv-logo-img {
        height: 48px !important;
        max-width: 220px !important;
        object-fit: contain !important;
        display: inline-block !important;
    }
    .inv-brand-title {
        color: #000000 !important;
        font-size: 1.3rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.15em !important;
        text-transform: uppercase !important;
        margin-bottom: 0.25rem !important;
    }
    .inv-brand-sub {
        color: #555555 !important;
        font-size: 0.76rem !important;
        line-height: 1.4 !important;
    }
    .inv-meta-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        background: #F9FAFB !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 6px !important;
        padding: 0.75rem 1rem !important;
        margin-bottom: 1rem !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .inv-items-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 1rem !important;
    }
    .inv-items-table .col-rate {
        display: table-cell !important;
    }
    .inv-items-table .mobile-unit-rate {
        display: none !important;
    }
    .inv-items-table th {
        background: #111111 !important;
        color: #FFFFFF !important;
        padding: 7px 10px !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .inv-items-table td {
        padding: 8px 10px !important;
        border-bottom: 1px solid #E5E7EB !important;
    }
    .inv-totals-box {
        margin-left: auto !important;
        width: 260px !important;
        font-size: 0.82rem !important;
    }
    .inv-grand-total {
        border-top: 2px solid #111111 !important;
        border-bottom: 2px solid #111111 !important;
        padding: 6px 0 !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
    }
    .inv-tender-row {
        margin-top: 0.75rem !important;
        padding: 8px 12px !important;
        background: #ECFDF5 !important;
        border: 1px solid #A7F3D0 !important;
        border-radius: 6px !important;
        color: #065F46 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

