/* ==============================================================================
   🌐 iNERD UNIFIED MASTER STYLESHEET (theme.css)
   Hardware-Accelerated Dark Architecture • Zero Layout Shift • Single Source of Truth
   Covers: Header, Nav Drawer, Omni-Search, Modals, Toasts, Footer,
           CRM Directory, Client Profiles, Master Workbench, POS Terminal,
           Workshop Board, Intake Wizard, Staff Directory, Inventory Suite,
           Public Tracker, Customer Hub & Portal
   ============================================================================== */

:root { 
    --dark: #0f172a; 
    --dark-surface: #1e293b;
    --dark-card: #151f32;
    --primary: #ea580c; 
    --primary-hover: #c2410c; 
    --cyan: #38bdf8;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #ef4444;
    --purple: #8b5cf6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --surface-header: #0f172a;
    --surface-card: #1e293b;
    --surface-inset: #0b1120;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);
}

*, *::before, *::after { 
    box-sizing: border-box !important; 
}

/* ==============================================================================
   🌍 1. GLOBAL BASE & DOCUMENT RESETS
   ============================================================================== */
html, body { 
    margin: 0 !important; 
    padding: 0 !important; 
    background-color: #070b14 !important;
    background-image: 
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 88% 85%, rgba(139, 92, 246, 0.07) 0%, transparent 45%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    color: var(--text-main) !important; 
    width: 100% !important; 
    max-width: 100vw !important;
    overflow-x: hidden !important; 
    -webkit-font-smoothing: antialiased;
}

a { 
    color: var(--cyan); 
    text-decoration: none; 
}

/* Hard-Lock Elements to Prevent Flash of Unstyled / Unrendered DOM */
.modal-backdrop, 
#softGateModal, 
#omni-overlay, 
.profile-dropdown-card, 
#profileDropdown, 
.drawer-overlay,
.header-search-wrapper,
.header-search-box {
    display: none !important;
}

/* ==============================================================================
   💎 2. CORE PRIMITIVES (CARDS, BUTTONS, FORMS)
   ============================================================================== */
.glass-card { 
    background: #1e293b !important; 
    border: 1px solid var(--border-subtle) !important; 
    border-top: 1.5px solid var(--border-highlight) !important; 
    border-radius: 16px !important; 
    padding: 20px; 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important; 
    margin-bottom: 16px; 
    color: var(--text-main) !important;
    contain: content;
}

.zone-customer  { border-top: 4px solid #0284c7 !important; }
.zone-hardware  { border-top: 4px solid var(--amber) !important; }
.zone-worksheet { border-top: 4px solid var(--emerald) !important; }
.zone-logistics { border-top: 4px solid var(--purple) !important; }

.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    font-weight: 800; 
    border-radius: 10px; 
    cursor: pointer; 
    border: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-highlight); 
    text-decoration: none; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: background 0.12s ease, transform 0.12s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-small  { padding: 7px 12px; font-size: 0.82rem; }
.btn-medium { padding: 10px 16px; font-size: 0.90rem; }

.bg-primary { background: #0284c7 !important; color: #ffffff !important; border-color: var(--cyan) !important; }
.bg-success { background: var(--emerald) !important; color: #ffffff !important; border-color: #34d399 !important; }
.bg-danger  { background: #dc2626 !important; color: #ffffff !important; border-color: #f87171 !important; }
.bg-warning { background: var(--primary) !important; color: #ffffff !important; border-color: #fb923c !important; }
.bg-glass   { background: rgba(255, 255, 255, 0.06) !important; color: #f8fafc !important; border: 1px solid var(--border-subtle) !important; }
.bg-glass:hover { background: rgba(255, 255, 255, 0.12) !important; }

.btn-primary { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); color: white; border-color: var(--cyan); }
.btn-success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border-color: #34d399; }
.btn-warning { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); color: white; border-color: #fb923c; }
.btn-outline { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.14); }
.btn-outline.active { background: #3b82f6; border-color: var(--cyan); box-shadow: 0 0 12px rgba(59,130,246,0.5); }

.form-group { position: relative; display: flex; flex-direction: column; z-index: 1; margin-bottom: 12px; }
.form-label { display: block; font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.form-control, .form-input {
    width: 100%; 
    padding: 11px 13px; 
    border: 1.5px solid var(--border-subtle) !important;
    border-top: 1.5px solid var(--border-highlight) !important; 
    border-radius: 8px;
    background: #0f172a !important; 
    color: #ffffff !important; 
    font-size: 0.95rem; 
    font-weight: 600; 
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.form-control:focus, .form-input:focus { border-color: var(--cyan) !important; }
.form-control:read-only, .form-control:disabled, .form-input:read-only, .form-input:disabled { background: rgba(15, 23, 42, 0.35) !important; color: var(--text-muted) !important; }

/* ==============================================================================
   💎 3. MASTER STICKY HEADER & INTERACTIVE AVATAR (header.php)
   ============================================================================== */
.main-header { 
    position: sticky !important; 
    top: 0 !important; 
    z-index: 3000 !important; 
    height: 62px !important; 
    padding: 0 16px !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    background: #0f172a !important; 
    border-bottom: 1px solid var(--border-subtle) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    transform: translateZ(0);
}
.header-left, .header-right { display: flex !important; align-items: center !important; gap: 12px !important; }

.menu-toggle-btn { 
    background: none; border: none; cursor: pointer; padding: 5px; 
    display: flex; flex-direction: column; justify-content: space-around; 
    height: 24px; width: 28px; 
}
.hamburger-line { width: 100%; height: 2px; background: #ffffff; border-radius: 2px; }

.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; height: 34px; }
.header-logo-img { width: 34px; height: 34px; object-fit: contain; }
.header-logo-text { font-size: 2rem; font-weight: bold; color: #ffffff !important; font-style: italic; letter-spacing: -1.5px; line-height: 34px; }
.header-logo-text span { color: var(--primary) !important; }

.login-btn-minimal { 
    color: #ffffff; font-size: 0.88rem; font-weight: 800; background: rgba(255, 255, 255, 0.08); 
    padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-highlight); transition: background 0.12s; 
}
.login-btn-minimal:hover { background: rgba(255, 255, 255, 0.16); }

/* Standout Clickable Profile Avatar */
.profile-avatar { 
    width: 38px !important; 
    height: 38px !important; 
    min-width: 38px !important; 
    max-width: 38px !important; 
    min-height: 38px !important; 
    max-height: 38px !important; 
    border-radius: 50% !important; 
    background: var(--surface-card); 
    color: #ffffff; 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-weight: 900; 
    font-size: 0.85rem; 
    border: 2px solid var(--cyan) !important; 
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden !important; 
    cursor: pointer !important; 
    padding: 0 !important;
    transform: translateZ(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}
.profile-avatar:hover { 
    transform: scale(1.08) !important; 
    border-color: #ffffff !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.75), 0 0 0 3px var(--cyan) !important;
}
.profile-avatar:active { 
    transform: scale(0.94) !important; 
}
.profile-avatar-customer { 
    background: var(--emerald) !important; 
    border-color: #34d399 !important; 
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}
.profile-avatar-customer:hover {
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.75), 0 0 0 3px var(--emerald) !important;
}
.profile-avatar img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    display: block !important; 
    pointer-events: none !important;
}

.global-cart-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-subtle); color: #ffffff; padding: 4px 12px; border-radius: 20px; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; }
.cart-badge { position: absolute; top: -5px; right: -5px; background: var(--primary); color: #ffffff; font-size: 0.7rem; font-weight: 900; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--dark); }

.nav-drawer { 
    position: fixed !important; top: 0 !important; left: 0 !important; width: 320px !important; height: 100vh !important; 
    background: #0f172a !important; z-index: 9500 !important; transform: translate3d(-100%, 0, 0) !important; 
    transition: transform 0.22s ease !important; box-shadow: 6px 0 24px rgba(0, 0, 0, 0.75); overflow-y: auto; display: flex !important; flex-direction: column; border-right: 1px solid var(--border-subtle); 
    will-change: transform;
}
.nav-drawer.open { transform: translate3d(0, 0, 0) !important; }
.drawer-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background: rgba(0, 0, 0, 0.75) !important; z-index: 9000 !important; }
.drawer-overlay.open { display: block !important; }
.drawer-header { padding: 18px 20px; background: #1e293b; border-bottom: 1px solid var(--border-subtle); display: flex; justify-content: space-between; align-items: center; }
.nav-group { padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.nav-group label { display: block; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; color: #64748b; letter-spacing: 1px; margin-bottom: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; color: #cbd5e1 !important; padding: 10px 12px; border-radius: 8px; font-weight: 700; font-size: 0.92rem; border-left: 3px solid transparent; margin-bottom: 2px; }
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff !important; border-left-color: var(--cyan); }
.nav-link.active { background: rgba(56, 189, 248, 0.12); color: var(--cyan) !important; border-left-color: var(--cyan); font-weight: 900; }
.nav-icon { width: 20px; text-align: center; font-size: 1.1rem; }

/* Profile Dropdown (.show class) */
.user-avatar-menu { position: relative; display: inline-flex; align-items: center; z-index: 3100; }
.profile-dropdown-card {
    display: none !important;
    position: absolute; 
    right: 0; 
    top: calc(100% + 8px); 
    background: #1e293b !important; 
    border: 1.5px solid var(--border-highlight) !important; 
    border-radius: 14px; 
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85); 
    width: 240px; 
    z-index: 99999; 
    overflow: hidden; 
    text-align: left;
}
.profile-dropdown-card.show,
#profileDropdown.show {
    display: block !important;
}

.dropdown-identity-box { padding: 12px 16px; background: #0f172a; border-bottom: 1px solid var(--border-subtle); }
.dropdown-name { display: block; color: #ffffff; font-size: 0.95rem; font-weight: 900; }
.dropdown-email { display: block; color: var(--text-muted); font-size: 0.75rem; margin-top: 1px; }
.dropdown-role-tag { display: inline-block; margin-top: 5px; padding: 2px 7px; border-radius: 5px; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.tag-admin { background: rgba(56, 189, 248, 0.2); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.4); }
.tag-staff { background: rgba(16, 185, 129, 0.2); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.4); }
.tag-customer { background: rgba(16, 185, 129, 0.2); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.4); }
.dropdown-link-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: #cbd5e1; font-size: 0.88rem; font-weight: 700; }
.dropdown-link-item:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.dropdown-link-item.link-logout { color: #f87171; border-top: 1px solid var(--border-subtle); }

.modal-backdrop { position: fixed !important; inset: 0 !important; background: rgba(0, 0, 0, 0.8) !important; z-index: 99999 !important; align-items: center !important; justify-content: center !important; padding: 20px !important; }
.modal-box { background: #1e293b; width: 100%; max-width: 420px; border-radius: 16px; padding: 26px; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7); border: 1px solid var(--border-highlight); position: relative; }
.modal-icon { font-size: 3rem; margin-bottom: 8px; line-height: 1; }
.modal-title { font-size: 1.35rem; font-weight: 900; color: #ffffff; margin: 0 0 8px 0; }
.modal-text { font-size: 0.95rem; color: #cbd5e1; margin: 0 0 20px 0; line-height: 1.5; }
.modal-btn-primary { display: block; width: 100%; background: #0284c7; color: #ffffff; padding: 13px; border-radius: 10px; font-weight: 900; font-size: 1.05rem; border: none; cursor: pointer; }
.modal-btn-secondary { display: block; width: 100%; background: rgba(255, 255, 255, 0.08); color: #cbd5e1; padding: 13px; border-radius: 10px; font-weight: bold; font-size: 0.95rem; margin-top: 10px; border: 1px solid var(--border-subtle); cursor: pointer; }

#omni-overlay { position: fixed !important; inset: 0 !important; background: rgba(0, 0, 0, 0.8) !important; z-index: 99999 !important; align-items: flex-start !important; justify-content: center !important; padding-top: 10vh !important; }
#omni-modal { background: #1e293b; width: 100%; max-width: 650px; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8); overflow: hidden; border: 1px solid var(--border-highlight); }
#omni-input { width: 100%; background: transparent; border: none; padding: 18px 22px; font-size: 1.25rem; color: #ffffff; outline: none; border-bottom: 1px solid var(--border-subtle); font-weight: bold; }
#omni-results { max-height: 400px; overflow-y: auto; }
.omni-item { display: flex; align-items: center; gap: 15px; padding: 12px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); text-decoration: none; cursor: pointer; }
.omni-item:hover, .omni-item.active { background: rgba(56, 189, 248, 0.15); }
.omni-icon { font-size: 1.3rem; background: rgba(255, 255, 255, 0.08); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.omni-title { color: #ffffff; font-weight: bold; font-size: 0.98rem; margin-bottom: 2px; }
.omni-desc { color: var(--text-muted); font-size: 0.82rem; }
.omni-category { background: #0f172a; padding: 8px 22px; color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; font-weight: 800; letter-spacing: 1px; }

.side-chat-widget-tab {
    position: fixed; right: 0; top: 50%; transform: translate3d(0, -50%, 0); background: #1e293b; border: 1.5px solid rgba(234, 88, 12, 0.75);
    border-right: none; color: #ffffff; padding: 14px 7px; border-radius: 12px 0 0 12px; display: flex; flex-direction: column; align-items: center; gap: 7px; z-index: 9998; cursor: pointer;
}
.side-chat-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.side-chat-status-dot { position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background-color: var(--emerald); border: 1.5px solid #0f172a; }
.side-chat-icon { font-size: 1.25rem; line-height: 1; }
.side-chat-text { writing-mode: vertical-rl; text-orientation: mixed; font-size: 0.76rem; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-main); }
.side-chat-badge { display: none; position: absolute; top: -8px; left: -8px; background: var(--rose); color: #ffffff; font-size: 0.72rem; font-weight: 900; min-width: 20px; height: 20px; line-height: 16px; text-align: center; border-radius: 10px; padding: 0 4px; border: 2px solid #0f172a; }

.smart-glass-toast {
    position: fixed; bottom: 20px; left: 20px; z-index: 8999; width: 100%; max-width: 460px; min-height: 70px; max-height: 75px; 
    background: #1e293b; border: 1.5px solid var(--toast-border, #38bdf8); border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 
    display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: var(--text-main); overflow: hidden;
}
.toast-content-wrapper { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; min-width: 0; height: 100%; overflow: hidden; }
.toast-beacon-container { position: relative; width: 36px; height: 36px; background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.status-pulse-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; }
.toast-emoji { font-size: 1.25rem; line-height: 1; }
.toast-text-body { display: flex; flex-direction: column; justify-content: center; line-height: 1.3; font-size: 0.82rem; min-width: 0; overflow: hidden; }
.toast-title { color: var(--toast-title-color, #38bdf8); font-size: 0.88rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-message { color: #cbd5e1; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.78rem; }
.toast-close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1rem; font-weight: bold; cursor: pointer; padding: 4px 6px; margin-left: 10px; border-radius: 6px; flex-shrink: 0; }

/* Unified Modals */
.modal-box, .glass-modal-content, .glass-modal-box, .crm-modal-content {
    background: #1e293b; border: 1px solid var(--border-highlight); border-radius: 18px; width: 100%; max-width: 520px; 
    padding: 24px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); position: relative; max-height: 90vh; overflow-y: auto; contain: content;
}
.glass-modal, .modal-overlay, .crm-modal {
    display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px);
    z-index: 999999; align-items: center; justify-content: center; padding: 16px;
}

/* ==============================================================================
   👥 4. CRM PROFILE & EDIT SCREEN (admin_edit_customer.php)
   ============================================================================== */
.crm-profile-wrapper { max-width: 1400px; margin: 0 auto; padding: 16px 16px 110px 16px; box-sizing: border-box; }
.top-action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.btn-nav-back {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-subtle); color: #f8fafc;
    font-weight: 800; font-size: 0.85rem; text-decoration: none; transition: background 0.12s;
}
.btn-nav-back:hover { background: rgba(255, 255, 255, 0.16); color: var(--cyan); }

.crm-alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: bold; border: 1px solid transparent; }
.crm-alert-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: var(--emerald); }
.crm-alert-error   { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: var(--rose); }

.hero-glass-card {
    background: #1e293b; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 22px;
    margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); border-bottom: 3px solid var(--cyan); contain: content;
}
.hero-flex-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.hero-identity { display: flex; align-items: center; gap: 16px; }
.avatar-hero-badge {
    width: 68px; height: 68px; border-radius: 50%; background: rgba(56, 189, 248, 0.15); color: var(--cyan);
    border: 2px solid rgba(56, 189, 248, 0.4); display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.8rem; flex-shrink: 0; overflow: hidden;
}
.avatar-hero-badge img { width: 100%; height: 100%; object-fit: cover; }
.avatar-hero-badge.frozen { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: #93c5fd; }
.avatar-hero-badge.banned { background: rgba(239, 68, 68, 0.2); border-color: var(--rose); color: #fca5a5; }
.hero-name-title { margin: 0; font-size: 1.55rem; font-weight: 900; color: #ffffff; letter-spacing: -0.5px; }
.hero-badges-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.badge-pill { font-size: 0.72rem; font-weight: 900; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; text-transform: uppercase; }
.badge-id      { background: rgba(56, 189, 248, 0.12); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.3); font-family: monospace; }
.badge-company { background: rgba(234, 88, 12, 0.15); color: #fb923c; border: 1px solid rgba(234, 88, 12, 0.3); }
.badge-xero    { background: rgba(14, 165, 233, 0.2); color: var(--cyan); border: 1px solid #0ea5e9; }
.badge-active  { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid var(--emerald); }
.badge-frozen  { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid #3b82f6; }
.badge-banned  { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid var(--rose); }

.quick-comms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; min-width: 280px; }
@media (min-width: 600px) { .quick-comms-grid { grid-template-columns: repeat(5, 1fr); } }
.comm-pill-btn {
    height: 38px; padding: 0 12px; border-radius: 10px; font-weight: 800; font-size: 0.8rem; text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; transition: filter 0.15s; white-space: nowrap;
}
.comm-pill-btn:hover { filter: brightness(1.1); }
.comm-primary   { background: var(--cyan); color: #0f172a; }
.comm-wa        { background: #25d366; color: #0f172a; font-weight: 900; }
.comm-credit    { background: var(--emerald); color: #ffffff; font-weight: 900; }
.comm-secondary { background: rgba(255, 255, 255, 0.08); color: #ffffff; border: 1px solid var(--border-subtle); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi-card { background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.kpi-val { font-size: 1.4rem; font-weight: 900; font-family: monospace; color: #ffffff; }
.kpi-lbl { font-size: 0.72rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.crm-tabs-nav {
    display: flex; gap: 6px; background: #0f172a; padding: 5px; border-radius: 12px;
    border: 1px solid var(--border-subtle); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none;
}
.crm-tabs-nav::-webkit-scrollbar { display: none; }
.crm-tab-btn {
    flex: 1 0 auto; height: 38px; padding: 0 14px; border: none; background: transparent;
    color: var(--text-muted); font-weight: 800; font-size: 0.85rem; border-radius: 8px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.crm-tab-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.06); }
.crm-tab-btn.active { background: var(--cyan); color: #0f172a; font-weight: 900; }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.section-head { border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; margin-bottom: 16px; }
.section-title { margin: 0; font-size: 1.15rem; font-weight: 900; color: #ffffff; display: flex; align-items: center; gap: 8px; }
.section-desc { margin: 4px 0 0 0; font-size: 0.82rem; color: var(--text-muted); }

.crm-kpi-strip {
    background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 12px;
    padding: 16px 20px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.crm-kpi-sub { font-size: 0.72rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.crm-kpi-big { font-size: 1.8rem; font-weight: 900; font-family: monospace; margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-group.full-width { grid-column: 1 / -1; }

.pref-switch-card {
    background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 12px;
    padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.push-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.push-switch input { opacity: 0; width: 0; height: 0; }
.push-slider { position: absolute; cursor: pointer; inset: 0; background-color: #475569; transition: .25s; border-radius: 26px; }
.push-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: #ffffff; transition: .25s; border-radius: 50%; }
input:checked + .push-slider { background-color: var(--emerald); }
input:checked + .push-slider:before { transform: translateX(22px); }

.ticket-table { width: 100%; border-collapse: collapse; }
.ticket-table th { background: #0f172a; text-align: left; padding: 11px 14px; font-size: 0.72rem; text-transform: uppercase; font-weight: 900; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); }
.ticket-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; font-size: 0.88rem; }
.ticket-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.danger-zone-card { border: 1.5px dashed var(--rose); background: rgba(239, 68, 68, 0.06); }

.crm-modal {
    display: none !important; position: fixed !important; inset: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important; z-index: 99999 !important;
    align-items: center !important; justify-content: center !important; padding: 16px !important;
}
.crm-modal-content {
    background: #1e293b; border: 1px solid var(--border-highlight); border-radius: 16px;
    width: 100%; max-width: 500px; padding: 22px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7); contain: content;
}

.sticky-save-bar {
    position: fixed; bottom: 0; left: 0; right: 0; background: #0f172a;
    border-top: 1px solid var(--border-subtle); padding: 10px 20px; display: flex;
    justify-content: center; z-index: 1000; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
}
.save-bar-content { display: flex; gap: 12px; width: 100%; max-width: 1400px; justify-content: flex-end; }
.btn-save-master {
    background: var(--emerald); color: #ffffff; border: none; padding: 11px 26px;
    border-radius: 10px; font-size: 0.95rem; font-weight: 900; cursor: pointer;
}

/* ==============================================================================
   🛠️ 5. WORKBENCH & POS (admin_edit_booking.php)
   ============================================================================== */
.pos-container { width: 100%; max-width: 1540px; margin: 0 auto; padding: 14px 12px 120px 12px; box-sizing: border-box; }
.responsive-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pos-header-actions { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; align-items: center; }

.master-control-bar {
    position: sticky; top: 12px; z-index: 99; background: #1e293b !important;
    border: 1px solid var(--border-subtle) !important; border-top: 1.5px solid var(--border-highlight) !important;
    border-radius: 18px; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 12px;
    align-items: center; justify-content: space-between; margin-bottom: 18px; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.ticket-id-display { font-size: 1.7rem; font-weight: 900; color: var(--cyan); font-family: monospace; letter-spacing: 1px; }

.pos-tabs { display: flex; gap: 8px; overflow-x: auto; background: #0f172a !important; padding: 6px; border-radius: 16px; margin-bottom: 18px; border: 1px solid var(--border-subtle) !important; scrollbar-width: none; }
.pos-tabs::-webkit-scrollbar { display: none; }
.pos-tab-btn {
    flex: 1 0 auto; min-width: 130px; padding: 12px 16px; background: transparent; border: none; font-weight: 800;
    font-size: 0.85rem; color: var(--text-muted); border-radius: 11px; cursor: pointer; transition: all 0.15s ease;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pos-tab-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.pos-tab-btn.active { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important; color: #ffffff !important; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important; }
.pos-tab-content { display: none; }
.pos-tab-content.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.tab-badge-pill { background: var(--rose); color: #ffffff; font-size: 0.68rem; font-weight: 900; padding: 2px 7px; border-radius: 10px; margin-left: 4px; line-height: 1; }

.buyback-triage-card {
    background: #1e293b !important; border: 1px solid rgba(250, 204, 21, 0.35) !important;
    border-left: 8px solid #facc15 !important; border-radius: 18px; padding: 22px; margin-bottom: 20px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6); contain: content;
}
.triage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-left: 0; margin-right: 0; margin-top: 14px; margin-bottom: 14px; }
.triage-node { background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; }
.triage-btn { padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 900; cursor: pointer; border: 1.5px solid transparent; transition: 0.15s; }
.triage-btn.pass { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border-color: var(--emerald); }
.triage-btn.fail { background: rgba(239, 68, 68, 0.25); color: #fca5a5; border-color: var(--rose); }

.testing-guide-card { background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.testing-guide-card h4 { margin: 0 0 6px 0; color: var(--cyan); font-size: 0.95rem; }
.testing-guide-card p { margin: 0; font-size: 0.84rem; color: #cbd5e1; line-height: 1.45; }

.tax-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tax-picker-group { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tax-label { font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.pos-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #0f172a; 
    border: 1.5px solid var(--cyan); border-radius: 12px; z-index: 999999 !important; 
    max-height: 240px; overflow-y: auto; display: none; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
}
.pos-dropdown-item, .pos-item { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.pos-dropdown-item:hover, .pos-item:hover { background: rgba(56, 189, 248, 0.2); color: var(--cyan); }

.glass-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px);
    z-index: 999999; align-items: center; justify-content: center; padding: 16px;
}
.glass-modal-content, .glass-modal-box {
    background: #1e293b; border: 1px solid var(--border-highlight);
    border-radius: 18px; max-width: 540px; width: 100%; padding: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); max-height: 90vh; overflow-y: auto;
}

.dropdown { position: relative; display: inline-block; }
.dropdown-item-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 12px 16px; color: #ffffff; font-weight: 700; font-size: 0.88rem; cursor: pointer; text-decoration: none; border-bottom: 1px solid var(--border-subtle); transition: background 0.15s ease; }
.dropdown-item-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--cyan); }
.dropdown-item-btn:last-child { border-bottom: none; }

.xero-sync-glaring-alert {
    background: #1e293b; border: 2px solid var(--rose); border-left: 8px solid var(--rose);
    border-radius: 16px; padding: 18px 22px; margin-bottom: 20px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 14px; box-shadow: 0 0 24px rgba(239, 68, 68, 0.35);
}

/* ==============================================================================
   📱 6. PUBLIC REPAIR TRACKER & SERVICE PASS (track.php)
   ============================================================================== */
.app-top-bar {
    background: #0f172a !important; padding: 0 16px; display: flex; justify-content: space-between; 
    align-items: center; border-bottom: 1px solid var(--border-subtle); position: sticky; top: 0; 
    z-index: 3000; height: 52px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); transform: translateZ(0);
}
.app-bar-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #ffffff !important; font-weight: 900; font-size: 1.05rem; font-style: italic; }
.app-bar-brand .brand-cyan { color: var(--cyan) !important; }
.app-bar-ticket-pill { font-family: monospace; font-size: 0.82rem; font-weight: 900; color: var(--cyan) !important; background: rgba(56, 189, 248, 0.15) !important; border: 1px solid rgba(56, 189, 248, 0.35) !important; padding: 3px 9px; border-radius: 8px; }
.btn-app-close { background: rgba(255, 255, 255, 0.08) !important; border: 1px solid var(--border-subtle) !important; color: #cbd5e1 !important; font-size: 0.8rem; font-weight: 800; border-radius: 8px; padding: 5px 12px; cursor: pointer; transition: background 0.12s ease; }
.btn-app-close:hover { background: rgba(239, 68, 68, 0.25) !important; color: #ffffff !important; }

.app-wrapper { width: 100%; max-width: 860px; margin: 12px auto 80px auto; padding: 0 12px; }

.app-tab-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #0f172a !important; 
    padding: 6px; border-radius: 14px; margin-bottom: 16px; position: sticky; top: 58px; z-index: 800; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); border: 1px solid var(--border-subtle); transform: translateZ(0);
}
.app-tab-btn {
    padding: 10px 4px; border: none; border-radius: 10px; font-weight: 800; font-size: 0.8rem; 
    color: #94a3b8 !important; background: transparent; cursor: pointer; display: flex; align-items: center; 
    justify-content: center; gap: 4px; white-space: nowrap; transition: background 0.12s ease, color 0.12s ease;
}
.app-tab-btn:hover { color: #ffffff !important; background: rgba(255, 255, 255, 0.08); }
.app-tab-btn.active { background: #0284c7 !important; color: #ffffff !important; }
.tab-count-pill { background: rgba(255, 255, 255, 0.12); color: #cbd5e1; font-size: 0.65rem; padding: 2px 6px; border-radius: 10px; font-weight: 900; }
.app-tab-btn.active .tab-count-pill { background: rgba(255, 255, 255, 0.25); color: #ffffff; }

.btn-action-pill {
    padding: 11px 16px; border-radius: 10px; font-weight: 800; font-size: 0.88rem; border: 1px solid var(--border-subtle);
    cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.12s ease;
}
.btn-green-action { background: #10b981 !important; color: #ffffff !important; }
.btn-light-action { background: rgba(255, 255, 255, 0.08) !important; color: #ffffff !important; }
.btn-action-locked { background: rgba(255, 255, 255, 0.04) !important; color: #64748b !important; border: 1.5px dashed rgba(255, 255, 255, 0.15) !important; cursor: not-allowed !important; }

.collection-pass-box {
    background: #1e293b !important; border: 2px solid var(--cyan); border-radius: 16px; padding: 20px 16px;
    text-align: center; margin-bottom: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); contain: content;
}
.barcode-card-wrap { background: #ffffff !important; border-radius: 10px; padding: 10px; max-width: 300px; margin: 0 auto 12px auto; }
.barcode-img { width: 100%; height: 60px; object-fit: contain; display: block; }

.pass-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 16px;
    font-size: 0.72rem; font-weight: 900; text-transform: uppercase; margin-bottom: 8px;
}
.badge-ready      { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid var(--emerald); }
.badge-buyback    { background: rgba(202, 138, 4, 0.2);  color: #fde047; border: 1px solid var(--amber); }
.badge-unrepaired { background: rgba(245, 158, 11, 0.2); color: #fde047; border: 1px solid var(--amber); }
.badge-scrap      { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid var(--purple); }

.pass-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 14px; }
.btn-pass-action {
    padding: 11px 8px; border-radius: 10px; font-weight: 800; font-size: 0.85rem; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 6px; transition: background 0.12s ease;
}
.btn-action-dark { background: #0284c7 !important; color: #ffffff !important; border: 1px solid var(--cyan); }

.stepper { display: flex; justify-content: space-between; position: relative; margin: 20px 0; }
.stepper::before { content: ''; position: absolute; top: 16px; left: 20px; right: 20px; height: 3px; background: rgba(255, 255, 255, 0.08); z-index: 1; }
.step-node { position: relative; z-index: 2; text-align: center; width: 68px; }
.step-circle {
    width: 32px; height: 32px; border-radius: 50%; background: #0f172a; border: 3px solid #475569;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 5px auto;
    font-weight: 900; font-size: 0.75rem; color: #94a3b8;
}
.step-node.active .step-circle { background: var(--cyan); border-color: var(--cyan); color: #0f172a; }
.step-node.done .step-circle { background: var(--emerald); border-color: var(--emerald); color: #ffffff; }
.step-label { font-size: 0.68rem; font-weight: 800; color: #94a3b8 !important; }
.step-node.active .step-label { color: var(--cyan) !important; font-weight: 900; }
.step-node.done .step-label { color: #6ee7b7 !important; }

.quote-hero-box {
    background: #1e293b !important; border: 2px solid var(--amber); border-radius: 16px;
    padding: 18px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2); contain: content;
}
.btn-approve-huge { width: 100%; padding: 14px; background: var(--emerald); color: #ffffff; border: none; border-radius: 12px; font-size: 1.05rem; font-weight: 900; cursor: pointer; }
.btn-decline-link { background: none; border: none; color: #f87171; font-weight: 800; font-size: 0.82rem; text-decoration: underline; cursor: pointer; margin-top: 10px; display: inline-block; }

.specs-tray-wrap { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.specs-badge-pill { background: #0f172a; border: 1px solid var(--border-subtle); color: #cbd5e1; font-size: 0.74rem; padding: 3px 8px; border-radius: 6px; font-weight: 700; }

.triage-checkpoint-card { background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.triage-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); font-size: 0.82rem; }
.triage-row:last-child { border-bottom: none; }

.bacs-bank-card { background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.bacs-field { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.bacs-field:last-child { border-bottom: none; }
.bacs-copy-btn { background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid var(--border-subtle); padding: 4px 8px; border-radius: 5px; font-size: 0.72rem; font-weight: 800; cursor: pointer; }

.timeline-entry { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); margin-top: 5px; flex-shrink: 0; }

.media-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.media-filter-pill {
    padding: 6px 12px; border-radius: 18px; font-size: 0.76rem; font-weight: 800; border: 1px solid var(--border-subtle);
    background: #0f172a; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.media-filter-pill.active { background: #0284c7; color: #ffffff; border-color: var(--cyan); }
.media-filter-count { background: rgba(0, 0, 0, 0.28); padding: 1px 6px; border-radius: 10px; font-size: 0.7rem; }

.media-card-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(130px, 150px)) !important; gap: 10px !important; margin-top: 10px !important; }
.media-card-thumb {
    position: relative !important; width: 100% !important; aspect-ratio: 1 / 1 !important; border-radius: 12px !important;
    overflow: hidden !important; border: 1px solid var(--border-subtle) !important; background: #090d16 !important;
    cursor: pointer !important; display: flex !important; flex-direction: column !important; transform: translateZ(0);
}
.media-card-img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }
.media-card-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 100%); pointer-events: none; z-index: 2; }
.media-card-badge-mini { position: absolute !important; top: 6px !important; left: 6px !important; padding: 3px 6px !important; border-radius: 4px !important; font-size: 0.64rem !important; font-weight: 900; text-transform: uppercase !important; z-index: 3 !important; }
.media-card-footer-meta { position: absolute; bottom: 6px; left: 6px; right: 6px; z-index: 3; display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 800; color: #f1f5f9; }

.badge-intake     { background: var(--purple) !important; color: #ffffff !important; }
.badge-diagnostic { background: var(--primary) !important; color: #ffffff !important; }
.badge-completed  { background: var(--emerald) !important; color: #ffffff !important; }

.chat-box { height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 12px 10px; background: #0f172a; border-radius: 12px; border: 1px solid var(--border-subtle); contain: content; }
.msg-bubble { padding: 8px 12px; border-radius: 12px; max-width: 88%; font-size: 0.85rem; line-height: 1.4; }
.msg-staff { align-self: flex-start; background: #1e293b; border: 1px solid var(--border-subtle); color: #ffffff; }
.msg-cust  { align-self: flex-end; background: #0284c7; color: #ffffff; }
.chat-media-wrapper { margin-top: 6px; border-radius: 8px; overflow: hidden; background: #0f172a; }
.chat-media-img { width: 100%; max-height: 200px; object-fit: cover; display: block; cursor: pointer; }

.status-open-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: 900; }
.status-open   { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid var(--emerald); }
.status-closed { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid var(--rose); }

.retention-option-card { background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; text-align: left; cursor: pointer; transition: background 0.12s ease; }
.retention-option-card:hover { border-color: var(--cyan); background: rgba(56, 189, 248, 0.1); }

/* ==============================================================================
   📋 7. WORKSHOP JOB BOARD & OPERATIONS (admin_bookings.php)
   ============================================================================== */
.job-container { width: 100%; max-width: 1820px; margin: 0 auto; padding: 14px 12px 90px 12px; box-sizing: border-box; }

.header-banner {
    position: relative; background: #1e293b; border: 1px solid var(--border-subtle);
    border-top: 1.5px solid var(--border-highlight); border-radius: 18px; padding: 18px 22px;
    margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid var(--primary);
}
.header-banner h1 { color: #fff; margin: 0; font-size: 1.65rem; font-weight: 900; letter-spacing: -0.5px; }
.header-banner p { color: var(--text-muted); margin: 3px 0 0 0; font-size: 0.85rem; }

.header-actions-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }

.hdr-action-btn {
    height: 38px; padding: 0 15px; border-radius: 10px; font-weight: 800; font-size: 0.82rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
    white-space: nowrap; border: 1px solid var(--border-subtle); border-top: 1px solid var(--border-highlight);
    transition: background 0.12s ease; box-sizing: border-box; cursor: pointer;
}
.hdr-action-btn:hover { filter: brightness(1.1); }

.health-checker-card {
    background: #1e293b; border: 1px solid var(--border-subtle); border-top: 1.5px solid var(--border-highlight);
    border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; display: flex; flex-direction: column;
    gap: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.health-header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.health-stat-grid { display: grid; grid-template-columns: 1fr; gap: 8px; width: 100%; }
.health-stat-chip {
    background: #0f172a; border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 14px;
    font-size: 0.8rem; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    text-decoration: none; color: #cbd5e1; min-height: 42px; box-sizing: border-box;
}
.health-stat-chip:hover { border-color: var(--cyan); }

.period-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.period-chip {
    padding: 7px 14px; border-radius: 10px; font-weight: 800; font-size: 0.76rem; text-decoration: none;
    border: 1px solid var(--border-subtle); background: #0f172a; color: #cbd5e1; transition: background 0.12s;
}
.period-chip:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.period-chip.active { background: #0284c7; color: white; border-color: var(--cyan); }

.reset-active-btn {
    background: var(--primary) !important; color: #ffffff !important; border: 1px solid var(--border-highlight) !important;
    border-radius: 10px; padding: 7px 14px; font-size: 0.78rem; font-weight: 900; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
}

.metrics-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 16px; }
.metric-card {
    background: #1e293b; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--border-subtle);
    border-top: 1.5px solid var(--border-highlight); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: inherit;
    transition: border-color 0.12s ease; contain: content;
}
.metric-card:hover { border-color: var(--cyan); }
.metric-card.active-filter { border-color: var(--primary); background: rgba(234, 88, 12, 0.15); }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.metric-title { font-size: 0.68rem; font-weight: 900; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; }
.metric-amount { font-size: 1.35rem; font-weight: 900; color: #ffffff; line-height: 1.1; margin-top: 4px; font-family: monospace; }
.metric-sub { font-size: 0.66rem; color: #64748b; margin-top: 5px; font-weight: 700; }

.card-net           { border-left: 4px solid var(--emerald); }
.card-card          { border-left: 4px solid #3b82f6; }
.card-official-cash { border-left: 4px solid #059669; }
.card-local-cash    { border-left: 4px solid #14b8a6; }
.card-bacs          { border-left: 4px solid #0284c7; }
.card-buyback       { border-left: 4px solid var(--rose); background: rgba(239, 68, 68, 0.08); }
.card-xero          { border-left: 4px solid var(--cyan); }

.channel-filter-bar { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.channel-filter-bar::-webkit-scrollbar { display: none; }
.channel-chip {
    height: 34px; padding: 0 14px; border-radius: 18px; font-weight: 800; font-size: 0.78rem; text-decoration: none;
    border: 1px solid var(--border-subtle); background: #1e293b; color: #cbd5e1; transition: background 0.12s;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
}
.channel-chip:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.channel-chip.active { background: #0284c7; color: white; border-color: var(--cyan); }

.filter-bar {
    background: #1e293b; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border-subtle);
    border-top: 1.5px solid var(--border-highlight); display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
    margin-bottom: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.filter-group { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 170px; }
.filter-input {
    padding: 9px 12px; border: 1.5px solid var(--border-subtle); border-top: 1.5px solid var(--border-highlight);
    border-radius: 8px; font-size: 0.88rem; background: #0f172a; color: #fff; font-weight: 600; outline: none;
}
.filter-input:focus { border-color: var(--cyan); }

.static-status-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 900; letter-spacing: 0.3px; width: 100%; box-sizing: border-box; user-select: none;
}

.dropoff-schedule-banner {
    background: #0f172a; border: 1px solid var(--border-subtle); border-left: 4px solid var(--cyan);
    border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; gap: 6px;
}
.dropoff-schedule-banner.is-today { border-left-color: var(--amber); background: rgba(245, 158, 11, 0.12); }
.dropoff-schedule-banner.is-tomorrow { border-left-color: var(--cyan); background: rgba(56, 189, 248, 0.12); }

.job-card {
    position: relative; background: #1e293b; border: 1px solid var(--border-subtle); border-top: 1.5px solid var(--border-highlight);
    border-radius: 16px; transition: transform 0.15s ease, border-color 0.15s ease; color: inherit; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    box-sizing: border-box; contain: content;
}
.job-card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.job-card.card-stage-completed     { border-left: 5px solid #64748b !important; opacity: 0.9; }
.job-card.card-stage-cancelled     { border-left: 5px solid var(--rose) !important; opacity: 0.85; }
.job-card.card-stage-pending       { border-left: 5px solid var(--amber) !important; }
.job-card.card-stage-awaiting-cust { border-left: 5px solid var(--primary) !important; }
.job-card.card-stage-parts         { border-left: 5px solid var(--purple) !important; }
.job-card.card-stage-repairing     { border-left: 5px solid var(--cyan) !important; }
.job-card.card-stage-ready         { border-left: 5px solid var(--emerald) !important; }
.job-card.card-stage-weborder      { border-left: 5px solid var(--emerald) !important; }
.job-card.card-stage-directsale    { border-left: 5px solid var(--cyan) !important; }
.job-card.card-stage-active        { border-left: 5px solid #3b82f6 !important; }
.job-card.card-stage-buyback       { border-left: 5px solid #f43f5e !important; }

.sla-breach-badge {
    display: inline-flex; align-items: center; gap: 4px; background: rgba(239, 68, 68, 0.25);
    border: 1px solid var(--rose); color: #fca5a5; padding: 2px 7px; border-radius: 6px; font-size: 0.68rem; font-weight: 900; text-transform: uppercase;
}

.pill-jobtype { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.pill-instore     { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--border-subtle); }
.pill-onsite      { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid #3b82f6; }
.pill-mailin      { background: rgba(245, 158, 11, 0.2); color: #fde047; border: 1px solid var(--amber); }
.pill-buyback     { background: rgba(244, 63, 94, 0.2); color: #fda4af; border: 1px solid #f43f5e; }
.pill-store-sale  { background: rgba(16, 185, 129, 0.25); color: #6ee7b7; border: 1.5px solid var(--emerald); }
.pill-direct-sale { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid var(--cyan); }

.pill-dev-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 800; background: #0f172a; border: 1px solid var(--border-subtle); color: #e2e8f0; }
.passcode-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; font-size: 0.72rem; font-family: monospace; font-weight: 900; background: rgba(254, 243, 199, 0.15); color: #fde047; border: 1px solid rgba(253, 224, 71, 0.4); }

.issue-fixed-box {
    font-size: 0.76rem; color: #cbd5e1; line-height: 1.35; height: 2.7em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-overflow: ellipsis; background: #0f172a;
    padding: 5px 9px; border-radius: 6px; border: 1px solid var(--border-subtle);
}
.issue-empty-placeholder { color: var(--text-muted); font-style: italic; }
.btn-copy-device { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 0.85rem; padding: 0; flex-shrink: 0; }

.layout-grid { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; }
.layout-grid .job-card { display: flex; flex-direction: column; justify-content: space-between; padding: 18px; gap: 10px; min-width: 0; }
.card-top-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 8px; }
.card-device-block { display: flex; flex-direction: column; gap: 4px; background: #0f172a; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-subtle); }
.card-device-top, .card-device-model { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card-financial-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0f172a; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-subtle); }
.grid-footer-row { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--border-subtle); padding-top: 10px; margin-top: auto; }
.layout-grid .grid-action-btn { width: 100%; height: 38px; padding: 0 10px; font-size: 0.88rem; font-weight: 800; text-align: center; justify-content: center; }

.layout-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.bulk-toolbar {
    background: #0f172a; border: 1.5px solid var(--cyan); color: white; padding: 12px 20px;
    border-radius: 14px; display: none; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ==============================================================================
   📥 8. INTAKE WIZARD & COUNTER TERMINAL (admin_intake.php)
   ============================================================================== */
.intake-wrapper { max-width: 1100px; margin: 25px auto 80px auto; padding: 0 15px; }

.glass-panel {
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    border-top: 1.5px solid var(--border-highlight);
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 22px;
    position: relative;
    contain: content;
}

.channel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.channel-card {
    background: #0f172a; border: 2px solid var(--border-subtle);
    border-radius: 14px; padding: 14px 10px; text-align: center; cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease; user-select: none;
}
.channel-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.channel-card.active { border-color: var(--primary); background: rgba(234, 88, 12, 0.18); box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35); }
.channel-card.active.onsite { border-color: var(--emerald); background: rgba(16, 185, 129, 0.18); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); }
.channel-card.active.buyback { border-color: var(--amber); background: rgba(250, 204, 21, 0.18); box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35); }

.channel-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.channel-title { font-weight: 900; font-size: 0.95rem; color: #fff; margin: 0; white-space: nowrap; }
.channel-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.device-quick-select { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.device-quick-btn {
    background: #0f172a; border: 1.5px solid var(--border-subtle);
    color: #e2e8f0; padding: 7px 12px; border-radius: 10px; font-size: 0.8rem;
    font-weight: 800; cursor: pointer; transition: all 0.15s ease; display: inline-flex;
    align-items: center; gap: 6px;
}
.device-quick-btn:hover { border-color: var(--cyan); color: #fff; background: rgba(56, 189, 248, 0.15); }

.tax-glass-input-wrapper { position: relative; display: flex; align-items: center; }
.tax-clear-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 0.75rem;
    font-weight: 900; cursor: pointer; display: none; align-items: center; justify-content: center;
    transition: 0.15s; z-index: 5;
}
.tax-clear-btn:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.tax-clear-btn.active { display: flex; }

.tax-dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #0f172a; border: 1.5px solid var(--primary); border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85); z-index: 999999 !important;
    max-height: 250px; overflow-y: auto; display: none;
}
.tax-dropdown-item {
    padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #cbd5e1;
    font-size: 0.88rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; transition: all 0.15s ease;
}
.tax-dropdown-item:hover { background: rgba(255, 255, 255, 0.08); color: var(--primary); padding-left: 18px; }

.service-search-item {
    padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: background 0.15s ease;
}
.service-search-item:hover { background: rgba(56, 189, 248, 0.15); }
.service-item-title { font-weight: 800; color: #ffffff; font-size: 0.95rem; }
.service-item-cat { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; margin-top: 2px; }
.service-item-price { font-family: monospace; font-size: 1.1rem; font-weight: 900; color: #6ee7b7; white-space: nowrap; }

.service-selected-pill {
    display: none; align-items: center; justify-content: space-between;
    background: rgba(16, 185, 129, 0.15); border: 1.5px solid var(--emerald);
    border-radius: 12px; padding: 12px 16px; margin-top: 10px;
}

.quick-add-panel {
    display: none; background: #0f172a; border: 1.5px solid var(--cyan);
    border-radius: 14px; padding: 16px; margin-top: 10px; margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.triage-box {
    background: #0f172a; border: 1px solid var(--border-subtle);
    border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.triage-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px dashed var(--border-subtle);
}
.triage-item:last-child { border-bottom: none; }
.triage-label-wrap { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 700; color: #e2e8f0; }
.triage-status-btn {
    padding: 5px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 900; cursor: pointer;
    border: 1.5px solid transparent; transition: 0.2s; white-space: nowrap;
}

.grade-selector-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.grade-pill {
    flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; border: 1.5px solid var(--border-subtle);
    background: #0f172a; color: #cbd5e1; font-size: 0.82rem; font-weight: 800; cursor: pointer; transition: 0.2s;
}
.grade-pill:hover { border-color: var(--amber); }
.grade-pill.active { background: var(--amber); color: #0f172a; border-color: var(--amber); font-weight: 900; }

.quick-preset-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.preset-chip-btn {
    background: #0f172a; border: 1.5px solid var(--border-subtle);
    color: #cbd5e1; padding: 7px 12px; border-radius: 10px; font-weight: 800; font-size: 0.8rem;
    cursor: pointer; transition: all 0.15s ease; display: inline-flex; align-items: center; gap: 6px;
}
.preset-chip-btn:hover { border-color: var(--cyan); background: rgba(56, 189, 248, 0.12); color: #fff; transform: translateY(-2px); }
.preset-chip-btn.selected { border-color: var(--emerald); background: var(--emerald); color: #fff; font-weight: 900; }

.handover-btn {
    background: transparent; border: none; color: var(--text-muted); padding: 7px 16px;
    font-size: 0.85rem; font-weight: 800; border-radius: 8px; cursor: pointer; transition: all 0.15s ease;
}
.handover-btn.active { background: var(--purple); color: #fff; }

.date-quick-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.date-chip {
    background: #0f172a; border: 1px solid var(--border-subtle);
    color: #cbd5e1; padding: 6px 12px; border-radius: 8px; font-size: 0.8rem;
    font-weight: 700; cursor: pointer; transition: 0.15s;
}
.date-chip:hover { background: rgba(56, 189, 248, 0.15); border-color: var(--cyan); color: #fff; }
.date-chip.active { background: rgba(16, 185, 129, 0.2); border-color: var(--emerald); color: #6ee7b7; }

.estimate-strip {
    background: #0f172a; border: 1.5px solid var(--border-subtle);
    border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; display: flex;
    justify-content: space-between; align-items: center;
}
.estimate-total { font-size: 1.6rem; font-weight: 900; color: #6ee7b7; font-family: monospace; }

.btn-submit {
    background: var(--primary); color: white; border: none; padding: 18px; width: 100%;
    font-size: 1.2rem; font-weight: 900; border-radius: 12px; cursor: pointer;
    transition: 0.15s; margin-top: 10px;
}
.btn-submit:hover { background: var(--primary-hover); transform: translateY(-2px); }

.channel-prompt-box {
    background: rgba(15, 23, 42, 0.6); border: 2px dashed var(--border-subtle);
    border-radius: 18px; padding: 24px 20px; text-align: center; color: var(--text-muted); margin-bottom: 20px;
}

/* ==============================================================================
   👥 11. STAFF & TEAM DIRECTORY (admin_staff.php)
   ============================================================================== */
.staff-dir-wrap {
    max-width: 1550px;
    margin: 0 auto;
    padding: 16px 16px 160px 16px;
    box-sizing: border-box;
}

.notice-box {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: bold;
    font-size: 0.92rem;
}
.notice-success { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid var(--emerald); }
.notice-error   { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid var(--rose); }
.notice-warn    { background: rgba(245,158,11,0.15); color: #fde047; border: 1px solid var(--amber); }

.dir-header-card {
    background: #1e293b;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-bottom: 3px solid var(--cyan);
}
.dir-header-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.dir-title h1 {
    margin: 0; font-size: 1.65rem; font-weight: 900; color: #ffffff;
    letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px;
}
.dir-title p { margin: 4px 0 0 0; font-size: 0.86rem; color: var(--text-muted); }

.dir-controls-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
}
@media (min-width: 860px) {
    .dir-controls-row { grid-template-columns: 1fr 340px; }
}

.search-input-wrap { position: relative; width: 100%; display: flex; gap: 8px; }
.search-input-field {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border-radius: 12px;
    border: 1.5px solid var(--border-highlight);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
    transition: 0.2s;
}
.search-input-field:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}
.search-icon-badge {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.6;
    pointer-events: none;
}

.top-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}
.top-action-btn {
    height: 46px;
    padding: 0 10px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}
.top-action-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.bulk-controls-strip {
    background: #0f172a;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toolbar-top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.bulk-buttons-cluster { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn-bulk-cmd {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    transition: 0.15s;
    white-space: nowrap;
}
.btn-bulk-cmd:hover { filter: brightness(1.15); transform: translateY(-1px); }

.staff-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) { .staff-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .staff-cards-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }

.staff-card {
    background: #1e293b;
    border: 1.5px solid var(--border-subtle);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-top: 4px solid var(--emerald);
}
.staff-card.is-selected {
    border-color: var(--cyan) !important;
    background: rgba(56, 189, 248, 0.15) !important;
    box-shadow: 0 0 0 2px var(--cyan), 0 12px 30px rgba(56, 189, 248, 0.3) !important;
}
.staff-card.is-root { border-top-color: var(--amber); }
.staff-card.is-admin { border-top-color: var(--cyan); }
.staff-card.is-deactivated { border-top-color: var(--rose); opacity: 0.75; }

.staff-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}
.checkbox-touch-target { padding: 6px; margin: -6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.item-checkbox { width: 22px; height: 22px; cursor: pointer; accent-color: var(--cyan); }

.staff-avatar-badge, .avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    color: var(--cyan);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    flex-shrink: 0;
    overflow: hidden;
}
.staff-avatar-badge img, .avatar-badge img { width: 100%; height: 100%; object-fit: cover; }

.tag-badge {
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
}
.tag-root { background: rgba(245, 158, 11, 0.2); color: #fde047; border: 1px solid var(--amber); }
.tag-deactivated { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid var(--rose); }

.info-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.85rem; color: #cbd5e1; }
.info-line a { color: #f8fafc; text-decoration: none; font-weight: 700; word-break: break-all; }
.info-line a:hover { color: var(--cyan); text-decoration: underline; }

.card-metrics-box {
    background: #0f172a;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 8px 12px;
    margin: 10px 0 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-actions-dock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
    margin-top: 6px;
}
.card-action-btn {
    height: 38px;
    padding: 0 4px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.card-action-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--cyan); }

.page-nav-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-num-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #0f172a;
    border: 1px solid var(--border-subtle);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}
.page-num-btn:hover { background: rgba(255, 255, 255, 0.15); color: var(--cyan); border-color: var(--cyan); }
.page-num-btn.active {
    background: var(--cyan);
    color: #0f172a;
    font-weight: 900;
    border-color: var(--cyan);
}
.page-num-btn.disabled { opacity: 0.35; pointer-events: none; }

.glass-modal-box {
    background: #1e293b;
    border: 1px solid var(--border-highlight);
    border-radius: 18px;
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
}

/* ==============================================================================
   📱 12. CUSTOMER HUB & AUTHENTICATION PORTAL (my_account.php & login.php)
   ============================================================================== */
.portal-scene {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.glass-auth-card {
    width: 100%; max-width: 440px; background: #1e293b;
    border: 1px solid var(--border-subtle); border-radius: 20px; padding: 35px 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); text-align: center; box-sizing: border-box; border-bottom: 4px solid var(--cyan);
}

.brand-icon, .brand-icon-wrap {
    width: 60px; height: 60px; border-radius: 16px; background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3); display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem; margin: 0 auto 16px auto;
}

.portal-title { color: #ffffff; font-size: 1.7rem; font-weight: 900; margin: 0 0 6px 0; letter-spacing: -0.5px; }
.portal-subtitle { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 22px 0; line-height: 1.45; }

.glass-form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.glass-field-group { text-align: left; width: 100%; }
.glass-label {
    display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 800;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px;
}
.glass-input {
    width: 100%; padding: 13px 16px; background: #0f172a; border: 1.5px solid var(--border-subtle);
    border-radius: 12px; font-size: 0.98rem; color: #ffffff; font-weight: 700; outline: none;
    box-sizing: border-box; transition: border-color 0.2s;
}
.glass-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25); }

.glass-otp {
    font-family: monospace; font-size: 2.2rem; text-align: center; letter-spacing: 10px;
    color: var(--cyan); border-color: var(--cyan);
}

.btn-brand-primary, .glass-btn-primary {
    width: 100%; padding: 14px; background: var(--cyan); border: none; border-radius: 12px;
    color: #0f172a; font-size: 0.98rem; font-weight: 900; cursor: pointer; transition: 0.2s;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3); margin-top: 8px;
}
.btn-brand-primary:hover, .glass-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.glass-btn-staff { background: #3b82f6; color: #ffffff; }

.glass-alert { padding: 12px 16px; border-radius: 12px; font-size: 0.88rem; font-weight: 700; margin-bottom: 18px; text-align: left; line-height: 1.4; }
.alert-error { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--rose); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--emerald); color: #6ee7b7; }

.role-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; }
.badge-cust { background: rgba(234, 88, 12, 0.2); color: #fdba74; border: 1px solid rgba(234, 88, 12, 0.4); }

.portal-wrap { max-width: 1100px; margin: 25px auto; padding: 0 15px 100px 15px; box-sizing: border-box; }
.dash-header {
    display: flex; justify-content: space-between; align-items: center; background: #1e293b;
    padding: 20px 25px; border-radius: 18px; border: 1px solid var(--border-subtle); border-left: 5px solid var(--cyan);
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 22px; }
.hub-btn {
    background: #1e293b; border: 1px solid var(--border-subtle); border-radius: 14px;
    padding: 16px 12px; text-align: center; cursor: pointer; transition: 0.2s; display: flex;
    flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}
.hub-btn:hover { border-color: var(--cyan); transform: translateY(-2px); }
.hub-btn.active-btn { border-color: var(--cyan); background: var(--cyan); color: #0f172a !important; box-shadow: 0 0 15px rgba(56, 189, 248, 0.35); }
.hub-btn.active-btn .hub-btn-title { color: #0f172a !important; font-weight: 900; }
.hub-btn-title { font-weight: 800; color: #ffffff; font-size: 0.88rem; margin-top: 5px; }

.app-view { display: none; }
.app-view.active { display: block; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 15px; margin-bottom: 30px; }
.ticket-card {
    background: #1e293b; border: 1px solid var(--border-subtle); border-radius: 18px;
    padding: 20px; display: flex; flex-direction: column; transition: 0.2s; box-shadow: 0 6px 20px rgba(0,0,0,0.25); position: relative;
}
.ticket-card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.ticket-card.active-card { border-left: 5px solid var(--cyan); }
.ticket-card.quote-pending-card { border-left: 5px solid var(--amber); }
.ticket-card.past-card { border-left: 5px solid var(--emerald); }

.btn-outline-action {
    background: rgba(255, 255, 255, 0.06); color: #ffffff; text-align: center; padding: 10px 14px;
    border-radius: 10px; font-weight: 800; text-decoration: none; border: 1px solid var(--border-subtle);
    font-size: 0.88rem; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-outline-action:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--cyan); }

.quote-action-box { background: rgba(245, 158, 11, 0.12); border: 1.5px solid var(--amber); border-radius: 12px; padding: 14px; margin: 10px 0; }
.btn-approve-quote { background: var(--emerald); color: #ffffff; border: none; border-radius: 10px; padding: 11px; font-weight: 900; font-size: 0.9rem; cursor: pointer; width: 100%; transition: 0.2s; }
.btn-approve-quote:hover { background: #059669; }
.btn-decline-quote { background: transparent; color: #fca5a5; border: none; font-weight: 800; font-size: 0.8rem; cursor: pointer; margin-top: 6px; width: 100%; text-decoration: underline; }

/* ==============================================================================
   📦 13. MASTER INVENTORY (admin_inventory.php)
   ============================================================================== */
.inv-container { max-width: 1440px; margin: 0 auto; padding: 12px 14px 100px 14px; box-sizing: border-box; }

.page-header { 
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; 
    background: #1e293b; padding: 16px 20px; border-radius: 18px; color: white; border: 1px solid var(--border-subtle); 
    border-bottom: 3px solid var(--cyan); gap: 10px; flex-wrap: wrap;
}
.page-header h1 { margin: 0; font-size: 1.5rem; font-weight: 900; }

.filter-pills-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.tab-pill {
    background: #1e293b; border: 1px solid var(--border-subtle); color: var(--text-muted);
    padding: 8px 14px; border-radius: 10px; font-weight: 800; font-size: 0.8rem;
    cursor: pointer; text-decoration: none; transition: 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.tab-pill:hover { color: #fff; background: rgba(255,255,255,0.1); }
.tab-pill.active { background: var(--cyan); color: #0f172a; border-color: var(--cyan); font-weight: 900; }

.toolbar-wrapper {
    display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
    align-items: center; background: #1e293b; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border-subtle);
}
.search-box { flex: 1 1 260px; max-width: 500px; }
.search-form-inner { display: flex; gap: 6px; }

.btn-action { 
    height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 800; font-size: 0.82rem;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    text-decoration: none; border: 1px solid var(--border-subtle); background: #1e293b; color: #fff; transition: 0.2s;
}
.btn-action:hover { background: #334155; }
.btn-green { background: #059669; border-color: var(--emerald); }

.view-mode-toggle { display: inline-flex; background: rgba(0,0,0,0.4); padding: 3px; border-radius: 10px; border: 1px solid var(--border-subtle); }
.view-btn { background: transparent; border: none; color: var(--text-muted); padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 0.8rem; cursor: pointer; transition: 0.2s; }
.view-btn.active { background: var(--cyan); color: #0f172a; font-weight: 900; }

.alpha-checkered {
    background-color: #0b1120 !important;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%) !important;
    background-size: 16px 16px !important; background-position: 0 0, 0 8px, 8px -8px, -8px 0px !important;
}

.inv-fluid-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; width: 100%;
}
.inv-card {
    background: #1e293b; border: 1px solid var(--border-subtle); border-radius: 16px; padding: 16px;
    display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-left: 4px solid var(--emerald); transition: transform 0.2s ease, border-color 0.2s ease; position: relative;
}
.inv-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.inv-card.stock-out { border-left-color: var(--rose); opacity: 0.72; }
.inv-card.stock-low { border-left-color: var(--amber); }
.inv-card.stock-service { border-left-color: var(--cyan); }

.card-top-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.item-thumb {
    width: 60px; height: 60px; border-radius: 12px; border: 1px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; cursor: pointer;
}
.item-thumb img { width: 100%; height: 100%; object-fit: contain; }

.card-title-box { flex: 1; min-width: 0; }
.card-item-name { 
    font-size: 0.98rem; font-weight: 900; color: #fff; margin: 0 0 3px 0; 
    line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.card-item-name:hover { color: var(--cyan); }

.card-spec-subtitle {
    font-size: 0.76rem; color: var(--text-muted); font-weight: 600; line-height: 1.35;
    margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.meta-pills-row { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.m-pill { font-size: 0.7rem; font-family: monospace; font-weight: 700; padding: 2px 7px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
.m-sku { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.m-bin { background: rgba(245, 158, 11, 0.18); color: #fde047; border-color: rgba(245, 158, 11, 0.35); }
.m-sn { background: rgba(148, 163, 184, 0.18); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.35); }
.m-coll { background: rgba(234, 88, 12, 0.18); color: #fb923c; border-color: rgba(234, 88, 12, 0.4); }

.financials-stepper-box {
    background: rgba(0,0,0,0.35); border: 1px solid var(--border-subtle); border-radius: 12px;
    padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.price-large { font-size: 1.3rem; font-weight: 900; color: #6ee7b7; font-family: monospace; }
.stepper-controls { display: flex; align-items: center; gap: 6px; }
.btn-step {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-subtle);
    background: #1e293b; color: #fff; font-weight: 900; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.btn-step:hover { background: #334155; }
.stock-val-pill { font-size: 0.95rem; font-weight: 900; font-family: monospace; min-width: 28px; text-align: center; }

.card-footer-actions { display: flex; gap: 6px; width: 100%; }
.btn-card-action {
    height: 38px; padding: 0 10px; border-radius: 10px; font-weight: 800; font-size: 0.78rem;
    border: 1px solid var(--border-subtle); cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; gap: 4px; text-transform: uppercase; white-space: nowrap; transition: 0.2s;
}
.btn-card-action.primary { flex: 2; background: #0284c7; color: #fff; border-color: var(--cyan); }
.btn-card-action.primary:hover { background: #0369a1; }
.btn-card-action.print { flex: 2; background: rgba(56, 189, 248, 0.15); color: var(--cyan); border-color: rgba(56, 189, 248, 0.3); }
.btn-card-action.print:hover { background: rgba(56, 189, 248, 0.25); }
.btn-card-action.icon-only { width: 38px; padding: 0; background: rgba(255, 255, 255, 0.06); color: #cbd5e1; }
.btn-card-action.icon-only:hover { background: rgba(255, 255, 255, 0.14); }
.btn-card-action.danger:hover { background: rgba(239, 68, 68, 0.25); color: #fca5a5; border-color: var(--rose); }

.bulk-sticky-bar {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95); border: 2px solid var(--cyan);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); backdrop-filter: blur(20px);
    border-radius: 16px; padding: 10px 18px; display: none; align-items: center;
    gap: 12px; z-index: 9999; flex-wrap: wrap;
}
.bulk-checkbox { width: 18px; height: 18px; accent-color: var(--cyan); cursor: pointer; }

.modal-header { 
    padding: 14px 20px; background: rgba(30, 41, 59, 0.85); border-bottom: 1px solid var(--border-subtle); 
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; 
}
.modal-nav-dock {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: rgba(15, 23, 42, 0.8);
    padding: 5px; border-radius: 12px; margin: 12px 18px 0 18px; border: 1px solid var(--border-subtle); flex-shrink: 0;
}
.modal-nav-btn {
    width: 100%; padding: 9px 4px; border-radius: 8px; border: none; background: transparent; color: var(--text-muted);
    font-weight: 800; font-size: 0.8rem; cursor: pointer; transition: 0.2s; white-space: nowrap; text-align: center;
}
.modal-nav-btn.active { background: var(--cyan); color: #0f172a; font-weight: 900; }

.modal-form-wrapper { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; overflow: hidden; }
.modal-body { 
    padding: 18px; overflow-y: scroll; -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain; display: flex; flex-direction: column; gap: 16px; flex: 1 1 auto; min-height: 0; 
}
.modal-tab-pane { display: none; }
.modal-tab-pane.active { display: block; }
.modal-footer { padding: 14px 20px; background: rgba(30, 41, 59, 0.85); border-top: 1px solid var(--border-subtle); flex-shrink: 0; }

.form-group-block { display: flex; flex-direction: column; gap: 6px; position: relative; width: 100%; margin-bottom: 14px; }
.field-badge-label { font-size: 0.74rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.section-box { 
    background: rgba(30, 41, 59, 0.45); border: 1px solid var(--border-subtle); 
    border-radius: 16px; padding: 18px; backdrop-filter: blur(12px); 
}
.section-title { 
    font-size: 0.98rem; color: #fff; font-weight: 900; margin: 0 0 14px 0; 
    border-bottom: 1px solid var(--border-subtle); padding-bottom: 8px; display: flex; align-items: center; gap: 8px; 
}

.inline-tax-box {
    background: rgba(56, 189, 248, 0.12); border: 1.5px solid var(--cyan);
    border-radius: 10px; padding: 8px; margin-top: 6px;
}

.matrix-section { background: rgba(0,0,0,0.35); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 14px; margin-top: 10px; display: none; }
.matrix-section.active { display: block; }
.matrix-tier-card {
    background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px; padding: 12px; margin-bottom: 10px;
}
.matrix-tier-header { font-size: 0.85rem; font-weight: 900; color: #f8fafc; margin-bottom: 8px; display: flex; justify-content: space-between; }
.matrix-inputs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.matrix-inp-wrap { display: flex; flex-direction: column; gap: 3px; }
.matrix-inp-wrap span { font-size: 0.65rem; color: var(--text-muted); font-weight: 800; text-transform: uppercase; }
.matrix-inp {
    padding: 8px 10px; border: 1.5px solid rgba(255, 255, 255, 0.15) !important; border-radius: 8px !important;
    font-weight: 800; font-family: monospace; width: 100%; box-sizing: border-box;
    background: rgba(15, 23, 42, 0.95) !important; color: #6ee7b7 !important; font-size: 0.9rem; outline: none;
    -webkit-appearance: none;
}
.matrix-inp:focus { border-color: var(--cyan) !important; }

.cutout-style-pill {
    background: rgba(15, 23, 42, 0.7) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-muted) !important; border-radius: 10px !important; padding: 7px 14px !important;
    font-size: 0.8rem !important; font-weight: 800 !important; cursor: pointer !important;
    display: inline-flex !important; align-items: center !important; gap: 6px !important; transition: all 0.2s ease !important;
}
.cutout-style-pill:hover { background: rgba(255, 255, 255, 0.1) !important; color: #f8fafc !important; }
.cutout-style-pill.active {
    background: rgba(16, 185, 129, 0.25) !important; border-color: var(--emerald) !important;
    color: #6ee7b7 !important;
}

.gallery-preview-box {
    width: 100% !important; height: 180px !important; max-height: 180px !important;
    border-radius: 14px !important; border: 1.5px dashed rgba(56, 189, 248, 0.4) !important;
    display: flex !important; flex-direction: column !important; align-items: center !important;
    justify-content: center !important; position: relative !important; overflow: hidden !important;
    margin-bottom: 10px !important; background-color: #0b1120 !important;
}
.gallery-preview-box img {
    max-width: 100% !important; max-height: 160px !important; height: auto !important;
    width: auto !important; object-fit: contain !important; border-radius: 8px !important;
}

.active-photo-toolbar { display: flex; gap: 6px; margin-bottom: 12px; justify-content: center; flex-wrap: wrap; }
.btn-photo-tool {
    padding: 7px 12px; border-radius: 8px; font-size: 0.76rem; font-weight: 800; cursor: pointer;
    background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1;
    transition: 0.2s; display: inline-flex; align-items: center; gap: 4px;
}
.btn-photo-tool:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.btn-photo-tool.tool-danger:hover { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border-color: var(--rose); }

.gallery-filmstrip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px; margin-bottom: 8px; scrollbar-width: thin; }
.filmstrip-thumb-card {
    width: 76px; height: 76px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0; position: relative; overflow: hidden; cursor: pointer; background: #090d16;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.filmstrip-thumb-card.active { border-color: var(--cyan); }
.filmstrip-thumb-card img { width: 100%; height: 56px; object-fit: contain; }
.filmstrip-thumb-name {
    width: 100%; font-size: 8px; color: var(--text-muted); background: rgba(0,0,0,0.8);
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 2px;
}
.cover-badge-tag {
    position: absolute; top: 2px; left: 2px; background: rgba(16, 185, 129, 0.9);
    color: white; font-size: 8px; font-weight: 900; padding: 1px 4px; border-radius: 4px;
}
.thumb-quick-delete {
    position: absolute; top: 2px; right: 2px; background: rgba(239, 68, 68, 0.85);
    color: white; border: none; border-radius: 50%; width: 16px; height: 16px;
    font-size: 9px; cursor: pointer; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.thumb-quick-delete:hover { background: var(--rose); }

.online-img-card { border-radius: 8px; border: 1px solid var(--border-subtle); overflow: hidden; cursor: pointer; aspect-ratio: 1/1; position: relative; }
.online-img-card img { width: 100%; height: 100%; object-fit: contain; }
.online-img-card:hover { border-color: var(--cyan); transform: scale(1.04); }

.inv-list-wrap { width: 100%; overflow-x: auto; background: var(--surface-card); border-radius: 14px; border: 1px solid var(--border-subtle); margin-bottom: 20px; }
.inv-table { width: 100%; border-collapse: collapse; text-align: left; }
.inv-table th { padding: 12px 14px; background: var(--dark); font-size: 0.72rem; text-transform: uppercase; font-weight: 900; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); }
.inv-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.85rem; }

/* ==============================================================================
   📱 14. RESPONSIVE BREAKPOINTS
   ============================================================================== */
@media (max-width: 1024px) { 
    .main-header { height: 55px !important; } 
    .logo-container { height: 28px; } 
    .header-logo-text { font-size: 1.8rem; } 
    .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) { 
    .app-wrapper { flex-direction: column; }
    .till-panel { width: 100vw; height: 100dvh; }
    .catalog-panel { display: none; }
    .channel-grid { grid-template-columns: repeat(2, 1fr); } 
    .metrics-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) {
    .pos-container { padding: 10px 8px 80px 8px; }
    .responsive-grid-2, .form-grid { grid-template-columns: 1fr !important; }
    .master-control-bar { position: static; flex-direction: column; align-items: stretch; padding: 14px 12px; }
    .glass-modal-content, .glass-modal-box { padding: 16px 14px; border-radius: 14px; }
    #inerd-cookie-banner { flex-direction: column; text-align: center; bottom: 0; left: 0; right: 0; border-radius: 14px 14px 0 0; padding: 20px 16px; }
    .cookie-buttons { width: 100%; flex-direction: column; }
    .btn-cookie { width: 100%; padding: 10px; }
}

@media (max-width: 680px) {
    .channel-grid { grid-template-columns: 1fr; }
    .tax-picker-grid { grid-template-columns: 1fr; gap: 10px; }
    .responsive-grid-2, .responsive-grid-3 { grid-template-columns: 1fr !important; gap: 10px !important; }
    .grade-selector-bar { flex-wrap: wrap; }
    .grade-pill { min-width: 45%; }
    .triage-item { padding-right: 48px; }
}

@media (max-width: 640px) {
    .inv-container { padding: 8px; }
    .page-header { padding: 12px 14px; }
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-content { height: 95vh; max-height: 95vh; border-radius: 20px 20px 0 0; }
    .modal-body { padding: 14px; }
    .modal-nav-dock { margin: 8px 14px 0 14px; }
    .smart-glass-toast { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
    .side-chat-widget-tab { padding: 10px 5px; }
    .metrics-grid { grid-template-columns: 1fr; } 
}
