/* ═════════════════════════════════════════════════════════════════════════
   🏛️ ULTRA-MAX ENTERPRISE DESIGN SYSTEM (TITANIUM OBSIDIAN ARCHITECTURE)
   Industry-Leading Heavy Industrial, Fleet & Quarry Cloud ERP
   ═════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Noto+Sans+Gujarati:wght@400;500;600;700;800;900&display=swap');

:root {
    --quarry-blur: 4px;
    --quarry-brightness: 0.38;
    --sidebar-width: 280px;
    --font-eng: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-gu: 'Noto Sans Gujarati', sans-serif;
    
    /* 🌌 Deep Obsidian & Titanium Palette */
    --bg-base: #040711;
    --bg-surface: rgba(11, 17, 32, 0.82);
    --bg-surface-hover: rgba(18, 27, 50, 0.92);
    --bg-elevated: rgba(15, 23, 42, 0.85);
    
    /* Luxury Radiant Accents */
    --brand-primary: #00f0ff;
    --brand-secondary: #0ea5e9;
    --brand-gradient: linear-gradient(135deg, #00f0ff 0%, #0284c7 50%, #1e40af 100%);
    --brand-glow: 0 0 35px rgba(0, 240, 255, 0.35);
    --brand-glow-lg: 0 0 60px rgba(0, 240, 255, 0.45);
    
    /* High-Precision Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);
    --border-cyan-glow: rgba(0, 240, 255, 0.35);
    
    /* Crisp Typography */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Status Beacons */
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #f43f5e;
}

/* 🎨 THEME PRESETS */
body.theme-neon-gold {
    --brand-primary: #fbbf24;
    --brand-gradient: linear-gradient(135deg, #fde047 0%, #d97706 60%, #78350f 100%);
    --brand-glow: 0 0 35px rgba(251, 191, 36, 0.40);
    --border-cyan-glow: rgba(251, 191, 36, 0.35);
}

body.theme-neon-lime {
    --brand-primary: #84cc16;
    --brand-gradient: linear-gradient(135deg, #bef264 0%, #65a30d 60%, #365314 100%);
    --brand-glow: 0 0 35px rgba(132, 204, 22, 0.40);
    --border-cyan-glow: rgba(132, 204, 22, 0.35);
}

body.theme-neon-magenta {
    --brand-primary: #f43f5e;
    --brand-gradient: linear-gradient(135deg, #fb7185 0%, #e11d48 60%, #881337 100%);
    --brand-glow: 0 0 35px rgba(244, 63, 94, 0.40);
    --border-cyan-glow: rgba(244, 63, 94, 0.35);
}

body.theme-daylight {
    --bg-base: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-surface-hover: #f1f5f9;
    --bg-elevated: #e2e8f0;
    --border-subtle: #cbd5e1;
    --border-highlight: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --brand-primary: #0284c7;
    --brand-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --brand-glow: 0 8px 25px rgba(2, 132, 199, 0.20);
}

/* 🌐 GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-gu), var(--font-eng), sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    letter-spacing: -0.015em;
}

/* 💎 LUXURY ULTRA-FINE SCROLLBAR */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* 🌌 LIVE QUARRY WALLPAPER EFFECTS */
.quarry-bg-layer {
    position: fixed;
    inset: -40px;
    z-index: -3;
    background-size: cover;
    background-position: center;
    filter: blur(var(--quarry-blur)) brightness(var(--quarry-brightness));
    transform: scale(1.05);
    transition: background-image 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.bg-fx-zoom { animation: bgZoom 35s infinite alternate ease-in-out; }
.bg-fx-pan { animation: bgPan 45s infinite alternate linear; }
.bg-fx-pulse { animation: bgPulse 15s infinite alternate ease-in-out; }

@keyframes bgZoom { 0% { transform: scale(1.02); } 100% { transform: scale(1.12); } }
@keyframes bgPan { 0% { transform: scale(1.05) translateX(-2%); } 100% { transform: scale(1.05) translateX(2%); } }
@keyframes bgPulse {
    0% { filter: blur(var(--quarry-blur)) brightness(var(--quarry-brightness)); }
    100% { filter: blur(var(--quarry-blur)) brightness(calc(var(--quarry-brightness) + 0.12)); }
}

.quarry-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(circle at 50% 10%, rgba(4, 7, 17, 0.25) 0%, rgba(4, 7, 17, 0.92) 85%);
    pointer-events: none;
}

/* 💎 ULTRA-SLICK DIAMOND GLASS CARDS */
.glass-card, .stock-card, .kpi-box, .panel-card {
    background: var(--bg-surface);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-highlight);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover, .stock-card:hover, .kpi-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--brand-glow), 0 30px 60px -10px rgba(0, 0, 0, 0.85);
    border-color: var(--border-cyan-glow);
}

/* 🔘 BUTTONS & MICRO-INTERACTIONS */
.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 800;
    padding: 11px 22px;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 240, 255, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    filter: brightness(1.1);
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.95); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    padding: 9px 16px;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
}
.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

/* 🎬 🔐 CINEMATIC ULTRA-MAX LOGIN SCREEN */
#login-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #020408;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.login-hero-left {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none !important;
    border: none;
    background: transparent;
}

.login-photo-showcase-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 0;
    background: #020408;
    overflow: hidden;
    pointer-events: none !important; /* 👈 ક્લિક બ્લોક ન થાય તે માટે */
}

.login-photo-showcase-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(4, 7, 17, 0.35) 0%, rgba(2, 4, 8, 0.90) 100%);
    z-index: 2;
    pointer-events: none !important; /* 👈 ક્લિક બ્લોક ન થાય તે માટે */
}

.slideshow-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 12s linear;
    pointer-events: none !important;
}
.slideshow-img.active { opacity: 1; transform: scale(1.08); }

.login-hero-left > div:first-child > div:first-child {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}
.login-title-bold {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 50%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.showcase-badge {
    position: absolute;
    top: 28px;
    right: 32px;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 800;
    padding: 7px 18px;
    border-radius: 30px;
    z-index: 5;
    pointer-events: auto;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.login-contact-card { display: none; }

.login-hero-left > div:last-child {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    font-size: 12px;
}

/* 💎 FLOATING TITANIUM LOGIN CAPSULE */
.login-form-right {
    position: relative;
    z-index: 100 !important; /* 👈 સૌથી ઉપર જેથી ક્લિક તરત થાય */
    width: 100%;
    max-width: 500px;
    padding: 24px;
    margin: auto;
    pointer-events: auto !important;
}

.login-box-full {
    width: 100%;
    background: rgba(9, 14, 28, 0.88) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.35) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95), var(--brand-glow) !important;
    border-radius: 28px !important;
    padding: 46px 40px !important;
    pointer-events: auto !important;
}

.login-box-full h2 {
    font-size: 24px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em;
}

.login-box-full p {
    font-size: 13.5px !important;
    color: var(--text-secondary);
    margin-top: 6px !important;
}

.login-box-full .input-group { margin-bottom: 18px !important; }
.login-box-full .input-label { font-size: 12.5px !important; margin-bottom: 7px !important; color: var(--text-secondary); font-weight: 700; }
.login-box-full .input-field {
    padding: 14px 18px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
    background: rgba(18, 26, 48, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: auto !important;
}
.login-box-full .input-field:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.4), inset 0 2px 4px rgba(0,0,0,0.5) !important;
    background: rgba(24, 35, 64, 0.98) !important;
}
.login-box-full .password-toggle-eye { top: 40px !important; right: 16px !important; font-size: 18px !important; cursor: pointer !important; pointer-events: auto !important; }
.login-box-full .btn-primary {
    padding: 14px 22px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    border-radius: 14px !important;
    margin-top: 10px !important;
    width: 100%;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* 🚨 SWEETALERT POPUP ALWAYS ON TOP */
.swal2-container, .swal-top-layer {
    z-index: 10000000 !important; /* 👈 કોઈપણ એરર પોપ-અપ સૌથી ઉપર દેખાશે */
}

/* ═════════════════════════════════════════════════════════════════════════
   🏢 🌟 APPLE BENTO-STYLE COMPANY SELECTION PORTAL (THE SHOWPIECE)
   ═════════════════════════════════════════════════════════════════════════ */

#company-select-screen {
    position: fixed;
    inset: 0;
    z-index: 100000; /* 👈 લોગિન સ્ક્રીન કરતાં ઊંચો લેવલ */
    background: radial-gradient(circle at 50% 10%, rgba(0, 240, 255, 0.14) 0%, rgba(4, 7, 17, 0.98) 85%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    overflow-y: auto;
    backdrop-filter: blur(25px);
}

.company-portal-card {
    width: 100%;
    max-width: 1040px;
    padding: 42px 48px;
    border-radius: 34px;
    background: rgba(10, 16, 30, 0.88) !important;
    backdrop-filter: blur(50px) !important;
    -webkit-backdrop-filter: blur(50px) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95), 0 0 70px rgba(0, 240, 255, 0.15);
    animation: portalSpringIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes portalSpringIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.portal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding-bottom: 24px;
    margin-bottom: 26px;
}

.portal-top-bar h2 {
    font-size: 22px !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 60%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.portal-top-bar p {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.company-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 26px;
    margin: 26px 0 14px;
}

/* 💎 LUXURY BENTO COMPANY WORKSPACE CARDS */
.company-box-btn {
    background: linear-gradient(155deg, rgba(22, 34, 60, 0.85) 0%, rgba(12, 18, 34, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 24px !important;
    padding: 30px 28px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-box-btn:hover {
    border-color: rgba(0, 240, 255, 0.55) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 240, 255, 0.4) !important;
    background: linear-gradient(155deg, rgba(30, 46, 82, 0.95) 0%, rgba(15, 24, 46, 0.98) 100%) !important;
}

/* 3D Glass Capsule for Company Icon */
.company-box-btn span[style*="font-size:26px"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
    font-size: 30px !important;
}

.company-box-btn h3 {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    margin-top: 18px !important;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.company-box-btn p {
    font-size: 13px !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    margin-top: 6px !important;
    opacity: 0.95;
}

.company-box-btn .btn-primary {
    width: 100% !important;
    margin-top: 22px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    border-radius: 14px !important;
}

.company-del-x {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(244, 63, 94, 0.22);
    border: 1px solid rgba(244, 63, 94, 0.45);
    color: #fda4af;
    border-radius: 9px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.2s ease;
}
.company-del-x:hover {
    background: rgba(244, 63, 94, 0.55);
    color: #fff;
    transform: scale(1.08);
}

/* 📝 FORM INPUTS & LABELS */
.input-group { text-align: left; margin-bottom: 15px; position: relative; }
.input-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.input-field {
    width: 100%;
    padding: 12px 16px;
    background: rgba(18, 26, 44, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    pointer-events: auto !important;
}
.input-field:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
    background: rgba(22, 34, 58, 0.98);
}
.password-toggle-eye {
    position: absolute;
    right: 14px;
    top: 36px;
    cursor: pointer !important;
    pointer-events: auto !important;
    color: var(--text-muted);
    user-select: none;
}

/* 🧭 SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(9, 14, 25, 0.90);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    margin-top: 14px;
    background: rgba(18, 26, 44, 0.75);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.user-role-tag {
    font-size: 10px;
    font-weight: 800;
    background: rgba(0, 240, 255, 0.18);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}
.nav-section-title {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 16px 8px 6px;
    letter-spacing: 0.06em;
}
.nav-scroll-wrapper { flex: 1; overflow-y: auto; margin: 10px 0; }
.nav-list { display: flex; flex-direction: column; gap: 4px; list-style: none; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.nav-link.active {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.38);
}
.nav-svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.app-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
}

/* 💎 TOPBAR */
.topbar {
    min-height: 66px;
    background: rgba(10, 16, 29, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    position: sticky;
    top: 0;
    z-index: 99;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
}
.topbar-badge-box { display: flex; flex-direction: column; }
.topbar-page-title { font-size: 17px; font-weight: 900; color: #fff; letter-spacing: -0.015em; }
.topbar-sub-badge {
    font-size: 10.5px;
    color: #38bdf8;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 240, 255, 0.12);
    padding: 2px 10px;
    border-radius: 14px;
    border: 1px solid rgba(0, 240, 255, 0.28);
    width: fit-content;
    margin-top: 2px;
}

.topbar-controls-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-evening-summary {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}
.btn-evening-summary:hover { transform: translateY(-1px); filter: brightness(1.1); }

.btn-switch-company {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.btn-switch-company:hover { background: rgba(16, 185, 129, 0.24); color: #fff; transform: translateY(-1px); }

.lang-select-box {
    background: rgba(18, 26, 44, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}
.user-initials-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12.5px;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
}
.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(18, 26, 44, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.btn-icon:hover { border-color: var(--brand-primary); transform: translateY(-1px); }

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--status-danger);
    color: #fff;
    font-size: 9.5px;
    font-weight: 900;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #040711;
}

/* 📦 DASHBOARD BODY & HERO KPI */
.content-body { padding: 22px; max-width: 1400px; width: 100%; margin: 0 auto; flex: 1; }
.hero-action-banner {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.12) 0%, rgba(217, 70, 239, 0.08) 100%);
    border: 1.5px dashed rgba(0, 240, 255, 0.35);
    border-radius: 18px;
    padding: 16px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-dashboard-grid {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 20px;
    margin-bottom: 22px;
}
.diesel-gauge-card { padding: 18px; display: flex; align-items: center; gap: 18px; cursor: pointer; }
.tank-capsule {
    width: 70px;
    height: 98px;
    border: 2px solid #475569;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: #020617;
    flex-shrink: 0;
    box-shadow: inset 0 0 14px rgba(0,0,0,0.9);
}
.liquid-wave-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #f59e0b, #d97706);
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.tank-pct-readout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px #000;
}

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 16px; }
.kpi-box { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.kpi-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.kpi-val { font-size: 26px; font-weight: 900; color: var(--text-primary); margin-top: 4px; letter-spacing: -0.02em; }

.search-wrap { position: relative; display: flex; align-items: center; width: 100%; max-width: 360px; }
.category-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; }
.cat-btn {
    background: rgba(18, 26, 44, 0.75);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cat-btn.active, .cat-btn:hover {
    background: var(--brand-primary);
    color: #000;
    font-weight: 800;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.45);
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    max-height: 560px;
    overflow-y: auto;
}
.stock-card {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 128px;
}
.stock-card.is-low {
    border-color: rgba(244, 63, 94, 0.4);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.16) 0%, var(--bg-surface) 100%);
}

.pill-tag { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 14px; display: inline-block; }
.pill-ok { background: rgba(16, 185, 129, 0.16); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.pill-low { background: rgba(244, 63, 94, 0.16); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.perm-badge-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin: 1px; background: rgba(0, 240, 255, 0.14); color: #38bdf8; }

.stock-stepper { display: flex; gap: 6px; }
.step-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.step-btn:hover { border-color: var(--brand-primary); background: rgba(0, 240, 255, 0.18); color: #38bdf8; }

.grid-split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 20px; }
.panel-card { padding: 24px; }
.panel-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; letter-spacing: -0.01em; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 📊 FINTECH-GRADE CRISP DATA TABLES */
.table-responsive {
    width: 100%;
    max-height: 490px;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 14, 25, 0.65);
}
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; text-align: left; }
th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(18, 26, 44, 0.96);
    backdrop-filter: blur(12px);
    color: var(--text-secondary);
    padding: 12px 14px;
    font-weight: 800;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.09);
    white-space: nowrap;
}
td { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-primary); vertical-align: middle; }
tbody tr { transition: background-color 0.15s ease; }
tbody tr:hover { background: rgba(0, 240, 255, 0.07); }

.photo-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease;
}
.photo-thumb:hover { transform: scale(1.1); border-color: var(--brand-primary); }

.quick-chips-bar { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.q-chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.q-chip-btn:hover { color: #fff; border-color: var(--brand-primary); }

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 7px;
    background: rgba(14, 20, 36, 0.8);
    padding: 14px;
    border-radius: 12px;
    margin: 6px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.perm-check-item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-primary); cursor: pointer; }

.util-tabs-bar { display: flex; gap: 7px; overflow-x: auto; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 8px; margin-bottom: 16px; }
.util-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.util-tab-btn.active { background: var(--brand-primary); color: #000; font-weight: 800; border-color: var(--brand-primary); }
.util-tab-content { display: none; }
.util-tab-content.active { display: block; }

/* 📱 MODALS & DRAWERS */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(2, 4, 8, 0.88);
    backdrop-filter: blur(18px);
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.modal-body {
    padding: 28px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
}
.wallpaper-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; max-height: 160px; overflow-y: auto; }
.wall-pick-item { border-radius: 10px; overflow: hidden; height: 58px; cursor: pointer; border: 2px solid rgba(255, 255, 255, 0.1); }
.wall-pick-item img { width: 100%; height: 100%; object-fit: cover; }

.setting-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin: 3px;
}
.setting-tag-del { color: var(--status-danger); cursor: pointer; font-size: 14px; font-weight: 900; line-height: 1; }

.drawer-backdrop, .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(2, 4, 8, 0.72); backdrop-filter: blur(8px); z-index: 99998; }
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 370px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(10, 16, 30, 0.95);
    backdrop-filter: blur(40px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.drawer-panel.open { transform: translateX(0); }
.drawer-header { padding: 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 16, 29, 0.94);
    backdrop-filter: blur(28px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    z-index: 9998;
    justify-content: space-around;
}
.b-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.b-nav-btn.active { color: var(--brand-primary); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeInPane 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeInPane { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* 🖨️ PRINT STYLING */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .sidebar, .topbar, .hero-action-banner, .topbar-controls-group, .bottom-nav, .btn-primary, .btn-ghost, .cat-btn, .search-wrap, .drawer-panel, .modal-overlay { display: none !important; }
    .app-main { margin: 0 !important; width: 100% !important; }
    .panel-card, .glass-card { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; color: #000 !important; }
    th { background: #f1f5f9 !important; color: #000 !important; border: 1px solid #000 !important; font-size: 11px; }
    td { color: #000 !important; border: 1px solid #ccc !important; font-size: 10.5px; }
    .print-only-header { display: block !important; }
}
.print-only-header { display: none; text-align: center; margin-bottom: 16px; border-bottom: 2px solid #000; padding-bottom: 8px; }

/* 📱 RESPONSIVE ADAPTATIONS */
@media (max-width: 1024px) { .grid-split, .hero-dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
    .login-hero-left > div:last-child { display: none; }
    .login-title-bold { font-size: 18px; }
    .login-form-right { max-width: 92%; padding: 12px; }
    .login-box-full { padding: 36px 24px !important; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .app-main { margin-left: 0; width: 100%; padding-bottom: 70px; }
    .mobile-menu-toggle, .bottom-nav { display: flex; }
    .form-row-2 { grid-template-columns: 1fr; }
    .content-body { padding: 14px; }
    
    .company-portal-card { padding: 24px 18px !important; border-radius: 24px !important; }
    .company-grid-view { grid-template-columns: 1fr; gap: 16px; }
    .portal-top-bar { flex-direction: column; align-items: flex-start; }
}