/* ========================================================
   LassO Digital Incident Register & Live Ops - Core CSS
   True Night-Vision OLED-Friendly Theme & Cross-Platform Engine
   iOS, Android, Tablet & Foldable Responsive Framework
   ======================================================== */

:root,
body.theme-tactical {
    /* Safe Area Insets (iOS Notches, Dynamic Island, Android WindowInsets & Home Gestures) */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);

    /* Unified Proportional Scaling & Layout Constraints */
    --app-max-width: 680px;
    --header-height: 168px;
    --nav-dock-height: 54px;
    --min-touch-target: 44px;
    --border-radius-card: 14px;
    --border-radius-header: 13px;

    /* Theme Colors */
    --primary-orange: #f77f00;
    --primary-hover: #d96d00;
    --danger-red: #ef4444;
    --danger-dark: #dc2626;
    --success-green: #10b981;
    --success-dark: #059669;
    --accent-blue: #38bdf8;
    --warning-amber: #f59e0b;

    /* Tactical Dark Surfaces (Standardized across all screens) */
    --bg-color: #0b0f19;
    --bg-dark: #070a12;
    --card-bg: #0f172a;
    --input-bg: #1e293b;
    --border-color: #334155;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Daylight / Audit Mode Theme */
body.theme-daylight {
    --bg-color: #f1f5f9;
    --bg-dark: #e2e8f0;
    --card-bg: #ffffff;
    --input-bg: #f8fafc;
    --border-color: #cbd5e1;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
}

body.theme-daylight .card,
body.theme-daylight .app-shell,
body.theme-daylight .app-viewport-wrapper {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

body.theme-daylight input[type="text"],
body.theme-daylight select,
body.theme-daylight textarea {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.theme-daylight .nav-dock {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

body.theme-daylight .nav-tab {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

body.theme-daylight .nav-tab.active {
    background: var(--primary-orange) !important;
    color: #ffffff !important;
}

/* Daylight Theme: High-Contrast Neutral Card Surface for Infractions */
body.theme-daylight .infraction-wrap {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}
body.theme-daylight .infraction-heading {
    color: #334155 !important;
    font-weight: 800;
}
body.theme-daylight .cat-chip {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-daylight .cat-chip:hover {
    border-color: var(--primary-orange) !important;
    background: #fff7ed !important;
    color: #c2410c !important;
}
body.theme-daylight .cat-chip.selected {
    background: var(--primary-orange) !important;
    color: #ffffff !important;
    border-color: var(--primary-hover) !important;
    box-shadow: 0 2px 8px rgba(247, 127, 0, 0.35) !important;
}
body.theme-daylight .see-more-btn {
    background: #f0f9ff !important;
    border: 1px solid #0284c7 !important;
    color: #0369a1 !important;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.1);
}
body.theme-daylight .see-more-btn:hover {
    background: #e0f2fe !important;
    border-color: #0369a1 !important;
    color: #075985 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

/* Daylight Theme: Helper Chips */
body.theme-daylight .helper-row-label {
    color: #475569 !important;
}
body.theme-daylight .helper-chip {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    backdrop-filter: none;
}
body.theme-daylight .helper-chip:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: none;
}
body.theme-daylight .helper-chip:active,
body.theme-daylight .helper-chip.active,
body.theme-daylight .helper-chip.selected {
    background: #fff7ed !important;
    border-color: var(--primary-orange) !important;
    color: #c2410c !important;
    box-shadow: 0 0 8px rgba(247, 127, 0, 0.25) !important;
    font-weight: 700;
}
body.theme-daylight .helper-chip.chip-danger {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}
body.theme-daylight .helper-chip.chip-danger:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
}
body.theme-daylight .helper-chip.chip-danger:active,
body.theme-daylight .helper-chip.chip-danger.active,
body.theme-daylight .helper-chip.chip-danger.selected {
    background: #fecaca !important;
    border-color: #dc2626 !important;
    color: #991b1b !important;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.3) !important;
}

/* ========================================================
   1. RESPONSIVE SCALING & ASPECT RATIO LOCK WRAPPER
   ======================================================== */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    margin: 0;
    padding-top: max(12px, var(--safe-area-top));
    padding-right: max(12px, var(--safe-area-right));
    padding-left: max(12px, var(--safe-area-left));
    padding-bottom: max(115px, calc(var(--safe-area-bottom) + 95px));
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Log Screen Specific Scroll Padding (Accounts for Compliance Warning above Nav Dock) */
body.log-screen {
    padding-bottom: max(135px, calc(var(--safe-area-bottom) + 115px));
}

/* Unified Responsive Container Wrapper across all Phone & Tablet Devices */
.app-viewport-wrapper,
.app-shell,
.container,
.card {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    padding: 18px;
    border-radius: var(--border-radius-card);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: var(--app-max-width);
    box-sizing: border-box;
    margin: 0 auto 16px auto;
}

/* Proportional Aspect Ratio Lock for Tablets, iPad, Galaxy Tab & Foldables */
@media (min-width: 768px) {
    body {
        padding-top: max(20px, var(--safe-area-top));
        background-color: #070a12;
    }
    .app-viewport-wrapper,
    .app-shell,
    .container,
    .card {
        max-width: 700px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    }
}

@media (min-width: 1024px) {
    .app-viewport-wrapper,
    .app-shell,
    .container,
    .card {
        max-width: 720px;
    }
}

/* ========================================================
   2. STANDARDIZED GLOBAL HEADER & "LASS" LOGO COMPONENT
   ======================================================== */
.venue-header,
.app-global-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f19;
    width: calc(100% + 36px);
    height: var(--header-height);
    min-height: var(--header-height);
    margin: -18px -18px 18px -18px;
    padding: 0;
    border-radius: var(--border-radius-header) var(--border-radius-header) 0 0;
    border-bottom: 3px solid var(--primary-orange);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
}

.venue-header img,
.app-global-header img,
.header-logo-banner {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Proportional scaling without distortion across tablet screens */
    object-position: center center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Operational Stat Counters Strip */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.stat-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 9px 4px;
    text-align: center;
    color: var(--text-dark);
}
.stat-val {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-orange);
}
.stat-lbl {
    font-size: 8.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 2px;
}

/* ========================================================
   STANDARDIZED BOTTOM NAVIGATION DOCK & SAFE INSETS
   ======================================================== */
.nav-dock {
    position: fixed;
    bottom: max(12px, calc(var(--safe-area-bottom) + 6px));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px - var(--safe-area-left) - var(--safe-area-right)), 650px);
    max-width: 650px;
    height: var(--nav-dock-height);
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px;
    border-radius: 35px;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}
.nav-tab {
    flex: 1;
    min-height: var(--min-touch-target);
    background: #1f2937;
    color: var(--text-muted);
    border: 1px solid #374151;
    padding: 7px 2px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
    user-select: none;
    white-space: nowrap;
}
.nav-tab:hover {
    background: var(--primary-orange);
    color: #ffffff;
}
.nav-tab.active {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-hover);
    font-weight: 900;
    box-shadow: 0 2px 8px rgba(247, 127, 0, 0.4);
}

/* Header Utilities: Theme Toggle & Offline Queue Badges */
.header-top-actions {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.theme-toggle-btn {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid #475569;
    color: #f8fafc;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    transition: all 0.15s ease;
    touch-action: manipulation;
}
.theme-toggle-btn:hover {
    border-color: var(--primary-orange);
}
.theme-toggle-btn:active {
    transform: scale(0.95);
}
body.theme-daylight .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Header Compliance Micro-Notice (Statutory Register Subtitle) */
.header-license-notice {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f8fafc;
    opacity: 0.92;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    padding: 0 10px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
body.theme-daylight .header-license-notice {
    color: #f8fafc;
    opacity: 0.92;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
@media (max-width: 480px) {
    .header-license-notice {
        font-size: 9px;
        letter-spacing: 0.06em;
        bottom: 3px;
    }
}

.offline-sync-badge {
    background: #7c2d12;
    border: 1px solid #ea580c;
    color: #ffedd5;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 4px;
    animation: pulseOffline 1.8s infinite alternate;
    touch-action: manipulation;
}
@keyframes pulseOffline {
    from { opacity: 0.85; transform: scale(1); }
    to { opacity: 1; transform: scale(1.03); }
}

/* ========================================================
   COMPLIANCE WARNING & STATUTORY FOOTER COMPONENT
   ======================================================== */
.compliance-warning-banner,
.legal-notice-card {
    margin-top: 22px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
    border: 1px solid rgba(247, 127, 0, 0.35);
    border-top: 3px solid var(--primary-orange);
    border-radius: 12px;
    padding: 16px 18px;
    color: #cbd5e1;
    font-size: 10.5px;
    line-height: 1.55;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 14px rgba(247, 127, 0, 0.12);
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    transition: all 0.2s ease;
    overflow: hidden;
}
.compliance-footer {
    padding-bottom: 18px;
}
.compliance-footer .compliance-logo-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.07;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: grayscale(100%) contrast(150%);
    z-index: 1;
}
.compliance-footer .compliance-logo-watermark img {
    max-width: 82%;
    max-height: 95px;
    object-fit: contain;
}
.compliance-footer .compliance-skyline-backdrop {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95px;
    background-image: url('skyline.svg');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom center;
    opacity: 0.15;
    color: #f77f00;
    pointer-events: none;
    z-index: 1;
}
.compliance-footer .compliance-content-wrap {
    position: relative;
    z-index: 2;
}
.compliance-footer-meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 9.5px;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.compliance-warning-banner .legal-notice-header,
.legal-notice-card .legal-notice-header {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 7px;
}
.compliance-warning-banner .legal-notice-body,
.legal-notice-card .legal-notice-body {
    font-size: 10.5px;
    color: #cbd5e1;
    font-weight: 450;
    line-height: 1.55;
    max-width: 620px;
    margin: 0 auto;
}
.compliance-warning-banner .legal-notice-body strong,
.legal-notice-card .legal-notice-body strong {
    color: #ffffff;
    font-weight: 700;
}

/* Daylight Theme for Compliance Warning & Footer */
body.theme-daylight .compliance-warning-banner,
body.theme-daylight .legal-notice-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #cbd5e1 !important;
    border-top: 3px solid var(--primary-orange) !important;
    color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}
body.theme-daylight .compliance-footer .compliance-logo-watermark {
    opacity: 0.06 !important;
    mix-blend-mode: multiply !important;
    filter: grayscale(100%) contrast(120%) !important;
}
body.theme-daylight .compliance-footer .compliance-skyline-backdrop {
    opacity: 0.22 !important;
    color: #0f172a !important;
}
body.theme-daylight .compliance-warning-banner .legal-notice-header,
body.theme-daylight .legal-notice-card .legal-notice-header {
    color: #0f172a !important;
}
body.theme-daylight .compliance-warning-banner .legal-notice-body,
body.theme-daylight .legal-notice-card .legal-notice-body {
    color: #334155 !important;
    font-weight: 450;
}
body.theme-daylight .compliance-warning-banner .legal-notice-body strong,
body.theme-daylight .legal-notice-card .legal-notice-body strong {
    color: #0f172a !important;
}
body.theme-daylight .compliance-footer-meta {
    border-top-color: #e2e8f0 !important;
    color: #64748b !important;
}

/* Daylight Theme: High-Contrast Light Neutral Surface for Empty Placeholders */
body.theme-daylight .empty-placeholder,
body.theme-daylight .hub-empty-box {
    background: #ffffff !important;
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 10px !important;
    color: #1e293b !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}
body.theme-daylight .empty-placeholder .empty-text,
body.theme-daylight .hub-empty-box .hub-empty-title {
    color: #1e293b !important;
}
body.theme-daylight .empty-placeholder .empty-sub,
body.theme-daylight .hub-empty-box .hub-empty-sub {
    color: #475569 !important;
}
body.theme-daylight .empty-placeholder .empty-icon {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

/* Shared Active Escalation / Hub Alert Cards: Tactical Dark (Default) */
.hub-alert-card {
    background: #0f172a;
    border: 1.5px solid #334155;
    border-left: 5px solid var(--danger-red);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.15s ease;
    color: #f8fafc;
}
.hub-alert-card.acknowledged {
    background: #0b1120;
    border-color: #1e293b;
    border-left-color: #64748b;
    opacity: 0.88;
}
.hub-alert-card .meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #cbd5e1;
    background: #1e293b;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    margin: 8px 0;
}
.hub-alert-card .meta-strip strong { color: #f8fafc; }
.hub-alert-card .narrative-body {
    font-size: 12px;
    color: #f8fafc;
    line-height: 1.5;
    margin-top: 6px;
    background: rgba(15, 23, 42, 0.55);
    padding: 6px 8px;
    border-left: 2px solid var(--border-color);
    border-radius: 4px;
}
.hub-alert-card .hub-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #334155;
}
.hub-alert-card .hub-btn {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
    color: #f8fafc;
    transition: all 0.15s ease;
}
.hub-alert-card .hub-btn:hover { background: #334155; }
.hub-alert-card .hub-btn-ack {
    background: var(--danger-red);
    color: #ffffff;
    border-color: var(--danger-dark);
}
.hub-alert-card .hub-btn-ack:hover { background: var(--danger-dark); }

/* Hub Alert Cards: Daylight Mode Theme */
body.theme-daylight .hub-alert-card {
    background: #fff5f5 !important;
    border: 1.5px solid #fecaca !important;
    border-left: 5px solid var(--danger-red) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08) !important;
    color: #0f172a !important;
}
body.theme-daylight .hub-alert-card.acknowledged {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    border-left-color: #64748b !important;
    opacity: 1 !important;
}
body.theme-daylight .hub-alert-card .meta-strip {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}
body.theme-daylight .hub-alert-card .meta-strip strong {
    color: #0f172a !important;
}
body.theme-daylight .hub-alert-card .narrative-body {
    background: #f8fafc !important;
    border-left-color: #cbd5e1 !important;
    color: #1e293b !important;
}
body.theme-daylight .hub-alert-card .hub-card-actions {
    border-top-color: #fecaca !important;
}
body.theme-daylight .hub-alert-card .hub-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
body.theme-daylight .hub-alert-card .hub-btn:hover {
    background: #f1f5f9 !important;
}

/* POI Bans Drawer: Daylight Overrides */
body.theme-daylight .poi-bans-drawer {
    background: #fff5f5 !important;
    border-color: #fecaca !important;
    border-left-color: var(--danger-red) !important;
}
body.theme-daylight .poi-bans-header {
    color: #991b1b !important;
}
body.theme-daylight .poi-bans-content {
    border-top-color: #fecaca !important;
    color: #1e293b !important;
}
body.theme-daylight .poi-ban-item {
    border-bottom-color: #fee2e2 !important;
}

/* Ops View Tabs: Daylight Overrides */
body.theme-daylight .ops-view-tab {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}
body.theme-daylight .ops-view-tab:hover {
    background: #f1f5f9 !important;
}
body.theme-daylight .ops-view-tab.active {
    background: #ffffff !important;
    border-color: var(--primary-orange) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(247, 127, 0, 0.2) !important;
}
body.theme-daylight .ops-view-tab.active.tab-ejections {
    border-color: #ea580c !important;
}
body.theme-daylight .ops-view-tab.active.tab-bans {
    border-color: #f97316 !important;
}
body.theme-daylight .ops-view-tab .tab-count {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}
body.theme-daylight .ops-view-tab.active .tab-count {
    background: var(--primary-orange) !important;
    color: #ffffff !important;
}

/* Common Modal Styles */
.modal-overlay, .audit-dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.82);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 14px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}
.modal-content, .audit-dialog-content {
    background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

/* High-Contrast Semantic Alert Badges */
.badge-intox { background: #3b2308; color: #fbbf24; border: 1px solid #78350f; }
.badge-refusal { background: #3f1a1a; color: #f87171; border: 1px solid #991b1b; }
.badge-violence { background: #450a0a; color: #ef4444; border: 1px solid #b91c1c; font-weight: 900; }
.badge-medical { background: #064e3b; color: #34d399; border: 1px solid #059669; }
.badge-drugs { background: #4c1d95; color: #c084fc; border: 1px solid #6b21a8; }
.badge-minors { background: #0c4a6e; color: #38bdf8; border: 1px solid #0284c7; }
.badge-general { background: #1e293b; color: #94a3b8; border: 1px solid #334155; }

/* High-Contrast Semantic Alert Badges: Daylight Theme */
body.theme-daylight .badge-intox { background: #fef3c7 !important; color: #b45309 !important; border-color: #fde68a !important; }
body.theme-daylight .badge-refusal { background: #fee2e2 !important; color: #b91c1c !important; border-color: #fca5a5 !important; }
body.theme-daylight .badge-violence { background: #fee2e2 !important; color: #dc2626 !important; border-color: #f87171 !important; }
body.theme-daylight .badge-medical { background: #dcfce7 !important; color: #15803d !important; border-color: #86efac !important; }
body.theme-daylight .badge-drugs { background: #f3e8ff !important; color: #7e22ce !important; border-color: #d8b4fe !important; }
body.theme-daylight .badge-minors { background: #e0f2fe !important; color: #0369a1 !important; border-color: #7dd3fc !important; }
body.theme-daylight .badge-general { background: #f1f5f9 !important; color: #475569 !important; border-color: #cbd5e1 !important; }

/* Toast Notifications: Daylight Theme */
body.theme-daylight .lasso-toast {
    background: #ffffff !important;
    border-color: var(--primary-orange) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Compliance & Part B Incident Cards: Core Daylight Theme */
body.theme-daylight .comp-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-left: 5px solid var(--primary-orange) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
}
body.theme-daylight .comp-card.is-emergency {
    border-left: 5px solid var(--danger-red) !important;
    border-color: #fca5a5 !important;
    background: #fffafa !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12) !important;
}
body.theme-daylight .comp-incident-title {
    color: #0f172a !important;
}
body.theme-daylight .comp-emergency-badge {
    color: #dc2626 !important;
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}
body.theme-daylight .comp-time-badge {
    color: #64748b !important;
}
body.theme-daylight .comp-meta-grid {
    color: #475569 !important;
}
body.theme-daylight .comp-meta-grid strong {
    color: #0f172a !important;
}
body.theme-daylight .comp-narrative {
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
}
body.theme-daylight .comp-actions {
    border-top-color: #e2e8f0 !important;
}
body.theme-daylight .comp-hash-label {
    color: #64748b !important;
}
body.theme-daylight .endorsement-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
body.theme-daylight .endorsement-title {
    color: #0f172a !important;
}

/* Toast Notifications */
.lasso-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    border: 1.5px solid var(--primary-orange);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

/* Door Turn-Away Bar (3-Option Instant Grid) */
.door-turnaway-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0 12px 0;
}
.door-turnaway-pill {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1.5px solid #475569;
    color: #f8fafc;
    padding: 9px 4px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.15s ease;
    touch-action: manipulation;
}
.door-turnaway-pill:hover {
    border-color: var(--primary-orange);
}
.door-turnaway-pill:active {
    transform: scale(0.96);
    background: var(--primary-orange);
    color: #ffffff;
    border-color: var(--primary-hover);
}
.door-turnaway-pill span.pill-sub {
    font-size: 8.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Quick Physical Description Chips Row */
.quick-desc-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 10px 0;
}
.quick-desc-chip {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 7px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: all 0.15s ease;
}
.quick-desc-chip:hover {
    color: var(--text-dark);
    border-color: var(--primary-orange);
}
.quick-desc-chip:active {
    transform: scale(0.94);
    background: var(--primary-orange);
    color: #ffffff;
}

/* Universal touch-action manipulation prevention of double-tap delay */
button, input, select, textarea, .nav-tab, .quick-btn, .cat-chip, .helper-chip, .quick-desc-chip, .door-turnaway-pill, .floating-ptt, .floating-mgmt {
    touch-action: manipulation;
}

.door-turnaway-btn {
    width: 100%;
    background: linear-gradient(135deg, #f77f00 0%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid #fdba74;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(247, 127, 0, 0.4);
    transition: transform 0.15s ease, filter 0.15s ease;
    touch-action: manipulation;
}
.door-turnaway-btn:active {
    transform: scale(0.98);
}

/* Ops Screen View Switcher Tabs */
.ops-view-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.ops-view-tab {
    flex: 1;
    min-width: 105px;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 8px;
    padding: 8px 10px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}
.ops-view-tab:hover {
    background: #334155;
    color: #ffffff;
}
.ops-view-tab.active {
    background: #0f172a;
    border-color: var(--primary-orange);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(247, 127, 0, 0.25);
}
.ops-view-tab.active.tab-ejections {
    border-color: #ea580c;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.25);
}
.ops-view-tab.active.tab-bans {
    border-color: #f97316;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.25);
}
.ops-view-tab .tab-count {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    color: #94a3b8;
}
.ops-view-tab.active .tab-count {
    background: var(--primary-orange);
    color: #ffffff;
}
.ops-view-tab.active.tab-ejections .tab-count {
    background: #ea580c;
    color: #ffffff;
}
.ops-view-tab.active.tab-bans .tab-count {
    background: #f97316;
    color: #ffffff;
}

/* Interactive Tally Cards */
.stat-card.interactive {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.stat-card.interactive:hover {
    transform: translateY(-2px);
    border-color: var(--primary-orange);
}

/* Active POI / Ejections Drawer */
.poi-bans-drawer {
    background: #181216;
    border: 1.5px solid #7f1d1d;
    border-left: 4px solid var(--danger-red);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.poi-bans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    color: #fca5a5;
}
.poi-bans-content {
    border-top: 1px solid #7f1d1d;
    padding: 8px 12px;
    max-height: 220px;
    overflow-y: auto;
    font-size: 11px;
}
.poi-ban-item {
    padding: 6px 0;
    border-bottom: 1px dashed #450a0a;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.poi-ban-item:last-child {
    border-bottom: none;
}

/* ========================================================
   FLOATING THUMB-ZONE ACTION BUTTONS & SAFE-AREA INSETS
   ======================================================== */
.floating-ptt,
.floating-add-btn {
    position: fixed;
    bottom: max(82px, calc(var(--safe-area-bottom) + 74px));
    right: max(18px, calc(var(--safe-area-right) + 14px));
    z-index: 1500;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-hover) 100%);
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(247, 127, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    touch-action: manipulation;
    text-decoration: none;
}
.floating-ptt:active,
.floating-add-btn:active {
    transform: scale(0.92);
}
.floating-ptt .fab-icon,
.floating-add-btn span:first-child {
    font-size: 22px;
    line-height: 1;
}
.floating-ptt .fab-text,
.floating-add-btn .floating-add-text {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.3px;
    color: #ffffff;
}
.floating-ptt.recording {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.25), 0 6px 22px rgba(239, 68, 68, 0.6);
    animation: pulseFab 1.2s infinite alternate;
}
@keyframes pulseFab {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* 3D Bold Dynamic Iconography Component */
.icon-3d {
    display: inline-block;
    vertical-align: middle;
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    user-select: none;
    pointer-events: none;
}
.action-bubble-btn .icon-3d {
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
}
.action-bubble-btn:hover .icon-3d,
.floating-ptt:hover .icon-3d,
.roster-snap-btn:hover .icon-3d {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.38));
}
.action-bubble-btn:active .icon-3d,
.floating-ptt:active .icon-3d,
.roster-snap-btn:active .icon-3d {
    transform: scale(0.92) translateY(1px);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22));
}
.floating-ptt .icon-3d {
    width: 28px;
    height: 28px;
}
.action-bubble-btn.recording .icon-3d,
.floating-ptt.recording .icon-3d {
    animation: micWavePulse 1.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes micWavePulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6)); }
    50% { transform: scale(1.12); filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.95)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.6)); }
}

/* Floating Hot-Button Left (Management Console Shortcut) */
.floating-mgmt {
    position: fixed;
    bottom: max(82px, calc(var(--safe-area-bottom) + 74px));
    left: max(18px, calc(var(--safe-area-left) + 14px));
    z-index: 1500;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid var(--primary-orange);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(247, 127, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    touch-action: manipulation;
    text-decoration: none;
}
.floating-mgmt:hover {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border-color: #fb923c;
    transform: scale(1.05);
}
.floating-mgmt:active {
    transform: scale(0.92);
}
.floating-mgmt .fab-icon {
    font-size: 22px;
    line-height: 1;
}
.floating-mgmt .fab-text {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.3px;
    color: #f8fafc;
}

body.theme-daylight .floating-mgmt {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    border: 2px solid var(--primary-orange) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(247, 127, 0, 0.25) !important;
    color: #0f172a !important;
}
body.theme-daylight .floating-mgmt .fab-text {
    color: #0f172a !important;
}
body.theme-daylight .floating-mgmt:hover {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-color: var(--primary-hover) !important;
}

/* ========================================================
   Multi-Tenant Venue Switcher & True Hub Overview Styles
   ======================================================== */
.hub-nav-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 8px 0 12px 0;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

.hub-tabs-bar {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 10px 10px 0 0;
    padding: 6px 8px;
    gap: 8px;
    overflow: hidden;
}

.hub-tabs-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.hub-tabs-list::-webkit-scrollbar {
    display: none;
}

.hub-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 10px;
    background: #111827;
    border: 1px solid #1f293d;
    border-radius: 6px;
    color: #94a3b8;
    font-size: clamp(10px, 1.3vw, 11.5px);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
}

.hub-tab:hover {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
    transform: translateY(-1px);
}

.hub-tab.active {
    background: rgba(247, 127, 0, 0.16);
    border-color: #f77f00;
    color: #f97316;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(247, 127, 0, 0.28);
}

.hub-tab.active.hub-tab-newcastle {
    background: rgba(0, 180, 216, 0.16);
    border-color: #00b4d8;
    color: #38bdf8;
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.28);
}

.hub-tab.active.hub-tab-merewether {
    background: rgba(244, 63, 94, 0.16);
    border-color: #f43f5e;
    color: #fb7185;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.28);
}

.hub-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    font-size: 9.5px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

.venue-switcher-bar {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 6px 8px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.venue-switcher-bar::-webkit-scrollbar {
    display: none;
}

.venue-pills-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
}
.venue-pills-list::-webkit-scrollbar {
    display: none;
}

.venue-switcher-bar.venue-switcher-locked {
    border-top: 1px solid #1e293b;
    border-radius: 10px;
    background: #0b1120;
}

.venue-switcher-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding-left: 2px;
}
.hub-switcher-label {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding-left: 2px;
}
.venue-pill {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 6px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: clamp(9.5px, 1.25vw, 11px);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    box-sizing: border-box;
}
.venue-pill .venue-pill-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.venue-pill:hover {
    background: #334155;
    color: #ffffff;
}
.venue-pill.active {
    background: var(--primary-orange);
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 0 10px rgba(247, 127, 0, 0.4);
}
.venue-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.venue-badge-LASS { background: rgba(247, 127, 0, 0.2); color: #f97316; border: 1px solid rgba(247, 127, 0, 0.4); }
.venue-badge-EXCHANGE { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.venue-badge-KENT { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.4); }
.venue-badge-STATION { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.4); }
.venue-badge-SJS { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.venue-badge-GREENROOF { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.venue-badge-QUEENS_WHARF { background: rgba(14, 165, 233, 0.2); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.4); }
.venue-badge-PREMIER_HOTEL { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.venue-badge-ADAMSTOWN_BOWLING { background: rgba(132, 204, 22, 0.2); color: #84cc16; border: 1px solid rgba(132, 204, 22, 0.4); }
.venue-badge-BEACHES_HOTEL { background: rgba(244, 63, 94, 0.2); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.4); }
.venue-badge-KING_ST { background: rgba(0, 180, 216, 0.2); color: #00b4d8; border: 1px solid rgba(0, 180, 216, 0.4); }
.venue-badge-COMMONWEALTH_HOTEL { background: rgba(6, 182, 212, 0.2); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.4); }

/* Daylight Theme: Venue Switcher & True Hub Bar */
body.theme-daylight .hub-nav-wrapper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
body.theme-daylight .hub-tabs-bar {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}
body.theme-daylight .hub-switcher-label {
    color: #475569 !important;
}
body.theme-daylight .hub-tab {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}
body.theme-daylight .hub-tab:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}
body.theme-daylight .hub-tab.active {
    background: rgba(247, 127, 0, 0.12) !important;
    border-color: #ea580c !important;
    color: #c2410c !important;
    box-shadow: 0 1px 4px rgba(247, 127, 0, 0.2) !important;
}
body.theme-daylight .hub-tab.active.hub-tab-newcastle {
    background: rgba(0, 180, 216, 0.12) !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
    box-shadow: 0 1px 4px rgba(0, 180, 216, 0.2) !important;
}
body.theme-daylight .hub-tab.active.hub-tab-merewether {
    background: rgba(244, 63, 94, 0.12) !important;
    border-color: #e11d48 !important;
    color: #be123c !important;
    box-shadow: 0 1px 4px rgba(244, 63, 94, 0.2) !important;
}
body.theme-daylight .hub-tab-count {
    background: rgba(0, 0, 0, 0.07) !important;
}
body.theme-daylight .venue-switcher-bar {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
body.theme-daylight .venue-switcher-label {
    color: #475569 !important;
}
body.theme-daylight .venue-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.theme-daylight .venue-pill:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}
body.theme-daylight .venue-pill.active {
    background: var(--primary-orange) !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
    box-shadow: 0 2px 6px rgba(247, 127, 0, 0.35) !important;
}
body.theme-daylight .venue-switcher-locked {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
body.theme-daylight .venue-restricted-badge {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
}

/* Uniform Form Control Class (Regular font, same size and styling) */
.form-control-regular {
    width: 100%;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid var(--border-color, #334155);
    background: var(--input-bg, #0f172a);
    color: var(--text-dark, #f8fafc);
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: inherit;
    line-height: normal;
    outline: none;
    transition: all 0.2s ease;
}
.form-control-regular:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(247, 127, 0, 0.15);
}
body.theme-daylight .form-control-regular {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.multi-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.site-card {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 12px;
    position: relative;
    transition: all 0.2s ease;
}
.site-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.site-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 6px;
}
.site-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-card-status {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.site-card-status.active {
    background: #14532d;
    color: #4ade80;
}
.site-card-metrics {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}
.site-metric-box {
    text-align: center;
}
.site-metric-val {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-orange);
}
.site-metric-lbl {
    font-size: 8.5px;
    color: #94a3b8;
    text-transform: uppercase;
}
.site-deep-dive-btn {
    width: 100%;
    margin-top: 8px;
    padding: 7px 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}
.site-deep-dive-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Operator Testing Lab styles removed */

/* Operator Test Drawer Modal Overlay */
.operator-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 10, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}
.operator-drawer-card {
    background: #0f172a;
    border: 1.5px solid #818cf8;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(129, 140, 248, 0.25);
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f8fafc;
}
.operator-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px 14px 20px;
    border-bottom: 1px solid #1e293b;
    background: #131d36;
}
.operator-drawer-title-group h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}
.operator-drawer-title-group p {
    margin: 4px 0 0 0;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.4;
}
.operator-drawer-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.operator-drawer-close:hover {
    color: #f8fafc;
}
.operator-drawer-filter-bar {
    display: flex;
    gap: 6px;
    padding: 10px 18px;
    background: #0b1120;
    border-bottom: 1px solid #1e293b;
    overflow-x: auto;
    scrollbar-width: none;
}
.operator-filter-pill {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.operator-filter-pill:hover {
    background: #334155;
    color: #ffffff;
}
.operator-filter-pill.active {
    background: #4f46e5;
    border-color: #818cf8;
    color: #ffffff;
}
.operator-drawer-body {
    padding: 16px 18px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.test-user-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.15s ease;
}
.test-user-card:hover {
    border-color: #818cf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.test-user-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}
.test-user-name {
    font-size: 14px;
    font-weight: 800;
    color: #f8fafc;
}
.test-user-title {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.role-badge {
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.role-SYSTEM_ADMIN { background: rgba(247, 127, 0, 0.2); color: #f97316; border: 1px solid rgba(247, 127, 0, 0.5); }
.role-HUB_COMMANDER { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.5); }
.role-VENUE_MANAGER { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.5); }
.role-OPERATIVE_SLED { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.5); }
.role-RSA_MARSHALL { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.5); }

.test-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10.5px;
    margin: 8px 0;
    color: #cbd5e1;
}
.test-meta-pill {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 2px 6px;
    border-radius: 4px;
}
.pin-code-badge {
    font-family: monospace;
    font-size: 12px;
    font-weight: 900;
    color: #38bdf8;
    background: #0f172a;
    border: 1px dashed #0284c7;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.test-user-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.test-btn-signon {
    flex: 1;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.test-btn-signon:hover {
    background: #4338ca;
}
.test-btn-copy {
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.test-btn-copy:hover {
    color: #f8fafc;
    border-color: #64748b;
}

/* BOLO Dispatch Modal & Button Styles */
.hub-bolo-btn {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #b91c1c;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.hub-bolo-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}
.bolo-form-group {
    margin-bottom: 12px;
}
.bolo-form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 5px;
}
.bolo-form-input, .bolo-form-select, .bolo-form-textarea {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 9px 12px;
    color: #f8fafc;
    font-size: 12.5px;
    outline: none;
    box-sizing: border-box;
}
.bolo-form-input:focus, .bolo-form-select:focus, .bolo-form-textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

/* ========================================================
   Vector Floor Plan SVG Renderer & Centroid Snapping
   ======================================================== */
.vector-floor-plan-svg {
    border-radius: 8px;
    background: #0b1120;
    transition: opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}
.svg-zone-rect {
    transition: fill 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;
}
.svg-zone-group:hover .svg-zone-rect {
    filter: brightness(1.25);
    stroke-width: 3.5px;
}
.svg-zone-group:active .svg-zone-rect {
    filter: brightness(1.45);
}






.venue-pill.hub-pill {
    background: #0f172a !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.35) !important;
    cursor: default;
}
.venue-pill.hub-pill:hover {
    background: #1e293b !important;
    border-color: #60a5fa !important;
    color: #bfdbfe !important;
}
body.theme-daylight .venue-pill.hub-pill {
    background: #eff6ff !important;
    border: 1px solid #93c5fd !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2) !important;
}

/* Floating Hot-Button Left (Management Screen: Dedicated Onboarding Side Button) */
.floating-onboard {
    border-color: #38bdf8 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(56, 189, 248, 0.35) !important;
}
.floating-onboard:hover {
    border-color: #7dd3fc !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(56, 189, 248, 0.5) !important;
}
.floating-onboard .fab-text {
    color: #38bdf8 !important;
    font-size: 8px !important;
}
body.theme-daylight .floating-onboard {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(2, 132, 199, 0.25) !important;
}
body.theme-daylight .floating-onboard .fab-text {
    color: #0369a1 !important;
}
