/* ==========================================
   DESIGN SYSTEM & GLOBAL VARIABLES (ONYX ENTERPRISE - LIGHT CHROME)
   ========================================== */
:root {
    --color-bg-dark: #f1f5f9;

    /* Chrome Silver Light Glass Styling Parameters */
    --color-glass-bg: rgba(255, 255, 255, 0.38);
    --color-glass-bg-hover: rgba(255, 255, 255, 0.62);
    --color-glass-bg-active: rgba(255, 255, 255, 0.78);
    --color-glass-border: rgba(255, 255, 255, 0.72);
    --color-glass-border-hover: rgba(255, 255, 255, 0.95);
    --color-glass-border-focus: rgba(0, 139, 229, 0.55);

    /* Matte light panels */
    --color-dark-panel: rgba(241, 245, 249, 0.85);

    /* Softer Light Theme Accents */
    --color-cyan: #008be5;
    --color-cyan-glow: rgba(0, 139, 229, 0.22);
    --color-teal: #0284c7;
    --color-teal-dark: #0369a1;
    --color-purple: #6d28d9;
    --color-purple-glow: rgba(109, 40, 217, 0.22);
    --color-pink: #db2777;
    --color-green: #15803d;
    --color-green-glow: rgba(21, 128, 61, 0.15);
    --color-red: #b91c1c;
    --color-red-glow: rgba(185, 28, 28, 0.15);
    --color-amber: #b45309;

    /* Typography Colors (Dark text) */
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-text-dim: #64748b;

    /* Layout Sizes */
    --sidebar-width: 270px;
    --header-height: 70px;

    /* Soft shadows representing physical chrome reflections */
    --backdrop-blur: blur(35px) saturate(160%);
    --box-shadow-glass: 0 20px 45px 0 rgba(100, 116, 139, 0.11), 0 8px 20px 0 rgba(100, 116, 139, 0.05);
    --box-shadow-inset: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 1px rgba(0, 0, 0, 0.03);

    /* Premium Fonts declaration */
    --font-main: 'Inter', sans-serif;
    --font-title: 'Plus Jakarta Sans', sans-serif;
}

/* BASE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-cyan);
}

/* Background Softener Overlay (Pure White) */
.glass-bg-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    background-image: 
        radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.03), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(124, 58, 237, 0.03), transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Floating light orbs for SaaS background landing */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    width: 380px;
    height: 380px;
    background: var(--color-cyan);
    top: 15%;
    left: 10%;
    animation: orbMove 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 480px;
    height: 480px;
    background: var(--color-purple);
    bottom: 15%;
    right: 10%;
    animation: orbMove 20s infinite alternate-reverse ease-in-out;
}

@keyframes orbMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 40px) scale(1.1);
    }
}

/* ==========================================
     A. KEYNOTE LANDING PAGE STYLES (LIGHT CHROME)
     ========================================== */
.landing-page-container {
    width: 100vw;
    min-height: 100vh;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    justify-content: flex-start;
    align-items: center;
}

/* Event topbar */
.keynote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    /* Aligns perfectly with the flyer card grid */
    width: 100%;
    margin: 15px auto 35px auto;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.42);
    /* Matches cards opacity */
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    /* Clean white chrome border */
    border-radius: 50px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow:
        0 15px 35px rgba(100, 116, 139, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(6, 182, 212, 0.04);
    /* Soft water-cyan neon aura */
    z-index: 100;
}

.keynote-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-text);
}

.keynote-brand span strong {
    color: var(--color-cyan);
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

.keynote-links {
    display: flex;
    gap: 30px;
}

.link-item {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 700;
    /* Clean premium bold weights */
    transition: all 0.3s ease;
}

.link-item:hover {
    color: var(--color-cyan);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
}

/* Hero Keynote Callout */
.hero-unified-flyer {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1080px;
    /* Aligns perfectly with the login card below */
    margin: 20px auto 40px auto;
    padding: 40px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.42);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 25px 55px rgba(100, 116, 139, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform-style: preserve-3d;
}

/* Background image slideshow for hero */
.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1.0;
    /* Fully visible, maximum sharpness and realism */
    transition: transform 15s linear;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1.1);
    /* Slow cinematic zoom panning */
}

/* Glass shield overlay - Hidden to display images with absolute clarity */
.hero-glass-shield {
    display: none;
}

.keynote-hero {
    position: relative;
    z-index: 3;
    /* Rendered above the glass shield and background slides! */
    max-width: 860px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--color-text);
    text-shadow: 0 2px 15px rgba(255, 255, 255, 0.95), 0 1px 4px rgba(255, 255, 255, 0.9);
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple), var(--color-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 15px;
    max-width: 600px;
    margin: 10px auto 0 auto;
    color: var(--color-text-muted);
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(255, 255, 255, 0.9);
}

.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.btn-large {
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* DYNAMIC PANORAMIC 3D CANVAS ENCLOSURE */
.ai-molecule-container {
    position: relative;
    width: 210px;
    /* More compact and elegant circular shape */
    height: 210px;
    margin: 30px auto 0 auto;
    background: rgba(255, 255, 255, 0.28);
    /* Highly transparent futuristic glass */
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    /* Circle shape */
    overflow: hidden;
    box-shadow:
        0 20px 45px rgba(6, 182, 212, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        0 0 25px rgba(6, 182, 212, 0.08);
    /* Soft blue energy halo */
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-molecule-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.95);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 8px;
    /* Slightly smaller for circular space constraints */
    font-weight: 700;
    color: var(--color-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--box-shadow-inset);
    z-index: 10;
    white-space: nowrap;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
    animation: simplePulse 2s infinite ease-in-out;
}

@keyframes simplePulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.landing-content-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 50px auto 0 auto;
    padding: 0 24px;
}

/* UNIFIED INTERACTIVE AUTH & BENEFIT CARD */
.unified-auth-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    /* Flyer column is slightly wider than login */
    width: 100%;
    max-width: 1080px;
    /* Wider layout */
    border-radius: 24px;
    overflow: hidden;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 25px 55px rgba(100, 116, 139, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform-style: preserve-3d;
    margin: 0 auto;
}

.auth-slideshow-pane {
    position: relative;
    width: 100%;
    height: 500px;
    /* Taller slideshow pane for better structure */
    border-right: 1.2px solid rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

.auth-form-pane {
    position: relative;
    overflow: hidden;
    padding: 16px;
    /* Margin surrounding the floating glass panel */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
}

.auth-pane-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.unified-auth-card:hover .auth-pane-bg {
    transform: scale(1.06);
    /* Clean interactive parallax pan */
}

.auth-form-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.42);
    /* Transparent glass */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(6, 182, 212, 0.52);
    /* Thin cyan neon border */
    border-radius: 20px;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.65),
        0 0 15px rgba(6, 182, 212, 0.15);
    /* Sleek neon light reflection */
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.auth-form-overlay:hover {
    border-color: rgba(6, 182, 212, 0.85);
    /* Border lights up on hover */
    box-shadow:
        0 20px 45px rgba(6, 182, 212, 0.18),
        inset 0 1px 1px rgba(255, 255, 255, 0.75),
        0 0 25px rgba(6, 182, 212, 0.35);
    /* Neon glow intensifies */
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.flyer-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease-in-out, visibility 0.7s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.flyer-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    width: 100%;
    height: 100%;
    /* Cover the entire slide container */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 12s linear;
}

.flyer-slide.active .slide-bg {
    transform: scale(1.12);
    /* Smooth panning zoom */
}

.slide-overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: calc(100% - 48px);
    height: auto;
    /* Auto wrap text contents */
    background: rgba(255, 255, 255, 0.42);
    /* Transparent glass */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    /* Clean white chrome border */
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    z-index: 3;
    box-sizing: border-box;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.slide-overlay h3 {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
    margin: 2px 0 0 0;
}

.slide-overlay p {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
}

.slide-badge {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.bg-cyan-light {
    background: rgba(0, 139, 229, 0.08);
    color: #008be5;
}

.bg-purple-light {
    background: rgba(109, 40, 217, 0.08);
    color: #6d28d9;
}

.bg-green-light {
    background: rgba(21, 128, 61, 0.08);
    color: #15803d;
}

.slide-action {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-cyan);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin-top: 2px;
    align-self: flex-start;
}

.slide-action i {
    transition: transform 0.2s;
}

.slide-action:hover i {
    transform: translateX(4px);
}

/* SLIDESHOW NAVIGATION DOTS */
.slideshow-navigation {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.slide-dot.active {
    background: var(--color-cyan);
    width: 20px;
    border-radius: 10px;
    box-shadow: 0 0 8px var(--color-cyan-glow);
}

/* 3D TILT EFFECT STRUCT */
.card-hover-3d {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.card-hover-3d:hover {
    box-shadow: 0 30px 60px rgba(100, 116, 139, 0.16);
}

/* PORTAL SIGN IN CARD (REPLACED BY UNIFIED AUTH CARD PANES) */

.preset-logins-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-divider {
    position: relative;
    color: var(--color-text-muted);
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20%;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

/* PRICING GRID */
.pricing-section {
    max-width: 1200px;
    width: 100%;
    margin: 80px auto 40px auto;
}

.pricing-section h2 {
    color: var(--color-text);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    position: relative;
    overflow: hidden;
    padding: 14px;
    /* Space around the floating glass overlay */
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 45px rgba(100, 116, 139, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.85);
    box-shadow:
        0 30px 60px rgba(6, 182, 212, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.85);
}

.pricing-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1.0;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pricing-card:hover .pricing-card-bg {
    transform: scale(1.08);
    /* Interactive zooming background */
}

.pricing-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    /* Translucent water-blue glass */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(100, 116, 139, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    flex-grow: 1;
}

.pricing-card.active-standard {
    border-color: rgba(6, 182, 212, 0.6);
}

.pricing-card.active-enterprise {
    border-color: rgba(6, 182, 212, 0.8);
}

/* Pulse highlight for activated login card */
@keyframes pulseHighlightGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.75), 0 15px 35px rgba(100, 116, 139, 0.1);
    }

    70% {
        box-shadow: 0 0 25px 12px rgba(6, 182, 212, 0), 0 15px 35px rgba(100, 116, 139, 0.1);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0), 0 15px 35px rgba(100, 116, 139, 0.1);
    }
}

.pulse-highlight {
    animation: pulseHighlightGlow 2.2s ease-in-out;
    border-color: rgba(6, 182, 212, 0.8) !important;
}

.pricing-card h3 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.pricing-card .price {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-cyan);
    margin-top: 6px;
    display: block;
}

.pricing-card .price small {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 16px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-tag,
.enterprise-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.popular-tag {
    background: var(--color-purple);
    color: white;
}

.enterprise-tag {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    color: white;
}

/* ==========================================
     B. POST-LOGIN PORTAL APP STYLES (PURE WHITE ENTERPRISE)
     ========================================== */
.glass-tablet-container {
    width: 100vw;
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: #ffffff !important;
    display: flex;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Tablet gloss shine */
.glass-tablet-container::after {
    display: none;
}

.glass-tablet-surface {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 16px 28px 40px 28px;
    gap: 16px;
    max-width: 1680px;
    margin: 0 auto;
    background: #ffffff;
}

/* ==========================================
   TOP RIBBON DOCK NAVIGATION (PURE WHITE ENTERPRISE)
   ========================================== */
#main-sidebar.top-dock-card {
    width: 100%;
    height: 68px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.02);
    position: relative;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-direction: row;
}

#main-sidebar.top-dock-card:hover {
    border-color: #cbd5e1;
    box-shadow: 
        0 8px 25px -4px rgba(15, 23, 42, 0.08);
}

.top-dock-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.top-dock-brand .brand-logo {
    width: 42px;
    height: 42px;
    background: #f0f9ff;
    border: 1.2px solid #bae6fd;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan);
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.top-dock-brand .brand-info h2 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0f172a 0%, #008be5 60%, #6d28d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.top-dock-brand .brand-info span {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* COMPRESSED NAV BUTTONS DOCK */
.top-dock-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 5px 10px;
    flex-wrap: nowrap;
}

.top-dock-nav .nav-item {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.top-dock-nav .nav-item span {
    display: none !important;
}

.top-dock-nav .nav-item i {
    font-size: 17px;
    width: auto;
    margin: 0;
}

.top-dock-nav .nav-item:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.top-dock-nav .nav-item.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transform: translateY(-1px);
}

.top-dock-nav .nav-item.active i {
    color: #ffffff;
}

/* USER PROFILE COMPACT BADGE */
.top-dock-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin: 0;
    flex-shrink: 0;
}

.top-dock-user .user-details-compact h4 {
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.top-dock-user .user-details-compact span {
    font-size: 10px;
    color: var(--color-text-muted);
}

/* MAIN CONTENT FULL WIDTH EXPANSION */
.main-content {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
    flex-shrink: 0;
}

/* COMPRESSED / COLLAPSED SIDEBAR RULES (MATCHING DESIGN PATTERN) */
.sidebar.collapsed {
    width: 78px;
    padding: 26px 10px;
}

.sidebar.collapsed .sidebar-toggle-btn {
    right: 50%;
    transform: translate(50%, -50%) rotate(180deg);
}

.sidebar.collapsed .sidebar-toggle-btn:hover {
    transform: translate(50%, -50%) rotate(180deg) scale(1.1);
}

.sidebar.collapsed .brand {
    justify-content: center;
    padding: 8px 0;
    margin-bottom: 28px;
    gap: 0;
}

.sidebar.collapsed .brand-info,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .sidebar-user .user-details {
    opacity: 0;
    width: 0;
    height: 0;
    display: none !important;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, width 0.35s ease;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;
    width: 100%;
    border-radius: 16px;
    gap: 0;
}

.sidebar.collapsed .nav-item:hover {
    padding-left: 0;
}

.sidebar.collapsed .nav-item i {
    font-size: 17px;
    margin: 0;
}

.sidebar.collapsed .nav-item.active {
    background: linear-gradient(135deg, var(--color-cyan), #0284c7);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 139, 229, 0.35);
    border-color: transparent;
}

.sidebar.collapsed .nav-item.active i {
    color: #ffffff;
    text-shadow: none;
}

.sidebar.collapsed .sidebar-user {
    justify-content: center;
    padding: 10px 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
}

.user-details h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.user-details span {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* MAIN CONTENT VIEWPORTS */
.main-content {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    padding: 24px 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.topbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    background: #ffffff;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.company-badge,
.currency-badge,
.system-time {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.company-badge i {
    color: var(--color-cyan);
}

.fiscal-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    box-shadow: 0 1px 2px rgba(21, 128, 61, 0.05);
}

.currency-select-inline {
    background: transparent;
    border: none;
    padding: 0;
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-main);
}

.currency-select-inline:focus {
    outline: none;
}

.btn-pos-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.06);
}

.btn-pos-shortcut:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(180, 83, 9, 0.12);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-green);
    cursor: pointer;
}

.status-indicator.offline {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--color-red);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-green-glow);
}

.status-indicator.offline .status-dot {
    background: var(--color-red);
    box-shadow: 0 0 8px var(--color-red-glow);
}

.btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    color: #475569;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-icon.btn-logout {
    color: #ef4444;
}

.btn-icon.btn-logout:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    border: 1.5px solid var(--color-bg-dark);
}

/* SUBSCRIPTION BADGES */
.sub-badge-basic {
    background: rgba(71, 85, 105, 0.08) !important;
    border: 1px solid rgba(71, 85, 105, 0.2) !important;
    color: #475569 !important;
}

.sub-badge-standard {
    background: rgba(109, 40, 217, 0.08) !important;
    border: 1px solid rgba(109, 40, 217, 0.2) !important;
    color: #6d28d9 !important;
}

.sub-badge-enterprise {
    background: linear-gradient(135deg, rgba(0, 139, 229, 0.08), rgba(109, 40, 217, 0.08)) !important;
    border: 1px solid var(--color-cyan) !important;
    color: var(--color-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 139, 229, 0.1);
}

/* ENTERPRISE WHITE CARD SPECIFICATION */
.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.03);
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: #cbd5e1;
    box-shadow: 
        0 12px 30px -4px rgba(15, 23, 42, 0.08),
        0 4px 10px -2px rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 10px;
}

.card-header h3 {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
}

.border-none {
    border: none !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

/* COMPACT ZERO-SCROLL TAB PANEL VIEWPORT */
.tab-viewport {
    flex-grow: 1;
    height: calc(100vh - 105px);
    overflow-y: auto;
    padding-right: 4px;
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.tab-panel.active {
    display: flex;
    animation: fadeIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.panel-title h1 {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #0f172a 0%, #008be5 60%, #6d28d9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-title p {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================
   3D CARD HIERARCHY & FUNCTIONAL DIFFERENTIATION
   ========================================== */

/* 1. PRIMARY HERO CARD */
.glass-card.main-primary-card,
.dashboard-hero-grid>.glass-card:first-child,
.tab-panel>.glass-card:first-child {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.03);
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card.main-primary-card:hover,
.dashboard-hero-grid>.glass-card:first-child:hover,
.tab-panel>.glass-card:first-child:hover {
    border-color: #cbd5e1;
    box-shadow: 
        0 12px 30px -4px rgba(15, 23, 42, 0.08),
        0 4px 10px -2px rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
}

/* 2. FUNCTIONAL ACTION CARDS (FORMS, CART, USER MANAGEMENT) */
.glass-card.functional-card,
.glass-form,
.cart-summary,
.configs-grid>.glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3.5px solid var(--color-cyan);
    border-radius: 18px;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.03);
    padding: 18px 22px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card.functional-card:hover,
.configs-grid>.glass-card:hover {
    border-color: #cbd5e1;
    border-top-color: var(--color-cyan);
    box-shadow: 
        0 12px 30px -4px rgba(15, 23, 42, 0.08),
        0 4px 10px -2px rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
}

/* 3. INFORMATIONAL & KPI CARDS */
.kpi-mini-card,
.kpi-card-3d,
.hero-val-item {
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(18px);
    border: 1.2px solid rgba(255, 255, 255, 0.75);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.75);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.kpi-mini-card:hover,
.kpi-card-3d:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 12px 28px rgba(0, 139, 229, 0.12);
    transform: translateY(-3px);
}

/* DARK INDIGO 3D KPI CARD (MATCHING REFERENCE UI DESIGN) */
.glass-card-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 1.5px solid rgba(6, 182, 212, 0.6);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 0 20px rgba(6, 182, 212, 0.3);
    color: #ffffff;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card-dark:hover {
    border-color: rgba(6, 182, 212, 0.9);
    box-shadow:
        0 22px 55px rgba(0, 139, 229, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.35),
        0 0 30px rgba(6, 182, 212, 0.5);
    transform: translateY(-4px);
}

/* TEAL GRADIENT FEATURE CARD (MATCHING REFERENCE UI DESIGN) */
.glass-card-gradient-teal {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    box-shadow:
        0 16px 40px rgba(6, 182, 212, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(6, 182, 212, 0.3);
    color: #ffffff;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card-gradient-teal:hover {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 22px 55px rgba(6, 182, 212, 0.45),
        inset 0 1px 3px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(6, 182, 212, 0.5);
    transform: translateY(-4px);
}

/* SCROLLABLE TABLE CONTAINERS INSIDE CARDS (PREVENTS FULL PAGE SCROLL) */
.table-scroll-container {
    max-height: 280px;
    overflow-y: auto;
}

/* ==========================================
   3D FLOATING VISA CORPORATE CREDIT CARD SIMULATOR
   ========================================== */
.visa-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visa-card-3d {
    width: 320px;
    height: 195px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0ea5e9 100%);
    border: 1.6px solid rgba(6, 182, 212, 0.75);
    box-shadow:
        0 20px 50px rgba(0, 139, 229, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.85),
        0 0 30px rgba(6, 182, 212, 0.4);
    padding: 20px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.visa-card-3d:hover {
    border-color: rgba(6, 182, 212, 1);
    box-shadow:
        0 28px 70px rgba(0, 139, 229, 0.45),
        inset 0 1px 3px rgba(255, 255, 255, 1),
        0 0 45px rgba(6, 182, 212, 0.6);
    transform: translateY(-8px) rotateY(10deg) scale(1.03);
}

.visa-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.15) 50%, transparent 55%);
    pointer-events: none;
    transition: transform 0.6s;
}

.visa-card-3d:hover .visa-card-shine {
    transform: translate(30%, 30%);
}

.visa-card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

.visa-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visa-chip-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visa-chip {
    width: 40px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #fbbf24 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
}

.visa-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
}

.visa-contactless {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    transform: rotate(90deg);
}

.visa-brand-badge {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.visa-number {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    margin: 8px 0;
}

.visa-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.visa-holder .lbl,
.visa-exp .lbl {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.visa-holder strong,
.visa-exp strong {
    font-family: var(--font-title);
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.visa-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.visa-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 139, 229, 0.6);
}

.visa-sub {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-cyan);
    text-transform: uppercase;
}

/* 1. DASHBOARD HERO GRID STYLING */
.dashboard-hero-grid {
    display: grid;
    grid-template-columns: 2.6fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

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

.hero-val-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-val-item strong {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.hero-val-item .lbl {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.chart-legend-top {
    display: flex;
    gap: 8px;
    font-size: 10px;
}

.leg {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
}

.bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Total Revenue (Circular Ring card) */
.hero-ring-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ring-chart-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 10px auto;
}

.ring-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.ring-center-info span {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.ring-center-info h2 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
}

/* Teal solid categories list card (Lightened) */
.teal-solid-card {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.92) 0%, rgba(186, 230, 253, 0.92) 100%);
    border: 1.2px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: var(--box-shadow-glass), inset 0 1px 2px rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: 20px;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.teal-card-header h1 {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--color-text);
}

.teal-card-header span {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.teal-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.teal-progress-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.teal-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.teal-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.teal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    border-radius: 10px;
}

/* DASHBOARD MID ROW */
.dashboard-mid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.years-filter-pill {
    display: flex;
    gap: 4px;
}

.p-12 {
    padding: 6px 10px !important;
}

.year-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.year-btn.active {
    background: var(--color-cyan);
    color: white;
    box-shadow: 0 2px 8px var(--color-cyan-glow);
}

.kpi-mini-grid {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kpi-mini-card {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.kpi-label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.kpi-val {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-cyan);
}

/* DASHBOARD BOTTOM GRID */
.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 139, 229, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 139, 229, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.65);
    border: 1.2px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--box-shadow-inset);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-glass-bg-hover);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background: transparent;
    border: 1.2px solid rgba(0, 0, 0, 0.08);
    color: var(--color-text);
}

.btn-red {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: white;
}

.btn-red-outline {
    background: transparent;
    border: 1px solid rgba(185, 28, 28, 0.25);
    color: #b91c1c;
}

.btn-mini {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

/* METRICS PANELS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1.2px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--box-shadow-glass), var(--box-shadow-inset);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.metric-data h3 {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.metric-value {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
}

.trend {
    font-size: 10px;
    font-weight: 600;
}

.trend.up {
    color: var(--color-green);
}

.trend.down {
    color: var(--color-red);
}

.trend-neutral {
    color: var(--color-text-muted);
    font-size: 10px;
}

/* DATA TABLES (WHITE ENTERPRISE PRECISION) */
.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.glass-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 2px solid #e2e8f0;
    border-top: 1px solid #f1f5f9;
    text-align: left;
}

.glass-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-family: var(--font-main);
    color: #0f172a;
    background: #ffffff;
}

.glass-table tbody tr:hover td {
    background: #f8fafc;
}

/* Badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    display: inline-block;
}

.status-badge.pago {
    background: rgba(21, 128, 61, 0.08);
    color: var(--color-green);
    border: 1px solid rgba(21, 128, 61, 0.15);
}

.status-badge.pendente {
    background: rgba(180, 83, 9, 0.08);
    color: var(--color-amber);
    border: 1px solid rgba(180, 83, 9, 0.15);
}

.status-badge.anulado {
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-red);
    border: 1px solid rgba(185, 28, 28, 0.15);
}

.segment-badge {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.segment-badge.vip {
    background: rgba(180, 83, 9, 0.08);
    color: var(--color-amber);
    border: 1px solid rgba(180, 83, 9, 0.2);
}

.segment-badge.regular {
    background: rgba(0, 139, 229, 0.08);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 139, 229, 0.2);
}

.segment-badge.devedor {
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-red);
    border: 1px solid rgba(185, 28, 28, 0.2);
}

/* POS LAYOUT */
.pos-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    height: calc(100vh - var(--header-height) - 150px);
}

.pos-catalog {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.pos-catalog-header {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    flex-grow: 1;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--color-text);
    width: 100%;
    font-size: 13px;
}

.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text-muted);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-btn.active {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 139, 229, 0.15);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 4px;
}

/* PRODUCT CARD */
.product-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1.2px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-inset);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 139, 229, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 139, 229, 0.05);
}

.product-image-container {
    height: 80px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container i {
    font-size: 28px;
    color: var(--color-text-dim);
    opacity: 0.5;
    transition: all 0.3s;
}

.product-card:hover .product-image-container i {
    opacity: 0.9;
    color: var(--color-cyan);
}

.stock-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 5px;
}

.stock-tag.in-stock {
    background: rgba(21, 128, 61, 0.08);
    color: var(--color-green);
}

.stock-tag.low-stock {
    background: rgba(180, 83, 9, 0.08);
    color: var(--color-amber);
}

.stock-tag.out-stock {
    background: rgba(185, 28, 28, 0.08);
    color: var(--color-red);
}

.product-details h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    color: var(--color-text);
}

.product-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-cyan);
}

.btn-add-fast {
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 11px;
    transition: all 0.2s;
}

.product-card:hover .btn-add-fast {
    background: var(--color-cyan);
    color: white;
    box-shadow: 0 0 8px var(--color-cyan-glow);
}

/* POS CART */
.pos-cart {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pos-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cart-client-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1.2px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 5px 12px;
    margin-bottom: 12px;
    box-shadow: var(--box-shadow-inset);
}

.cart-items-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
    opacity: 0.6;
    text-align: center;
    padding: 30px 16px;
}

/* CART ITEM */
.cart-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--box-shadow-inset);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
}

.cart-item-info h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.cart-item-info span {
    font-size: 10px;
    color: var(--color-text-muted);
}

.btn-qty {
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    font-size: 10px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input {
    width: 28px;
    background: transparent;
    border: none;
    color: var(--color-text);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
}

.cart-item-discount-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--color-text-muted);
}

.cart-item-discount-row input {
    width: 38px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--color-text);
    padding: 1px 3px;
    border-radius: 4px;
    font-size: 10px;
    text-align: center;
}

.cart-item-price {
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-cyan);
}

/* CART SUMMARY */
.cart-summary {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

.summary-row.total {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
    padding-top: 8px;
}

.summary-row.total span:last-child {
    color: var(--color-cyan);
}

.cart-doc-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
}

.cart-actions {
    display: flex;
    gap: 10px;
}

/* FORMS AND USER INTERFACES */
.glass-input,
.glass-select,
.glass-textarea,
.glass-select-large,
.glass-select-mini,
.glass-number-input,
.glass-input-large {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    padding: 9px 13px;
    font-family: var(--font-main);
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.glass-input:focus,
.glass-select:focus,
.glass-textarea:focus,
.glass-input-large:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: #ffffff;
}

.glass-select-large {
    flex-grow: 1;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    padding: 0;
}

.glass-select-mini {
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 11px;
}

.glass-number-input {
    width: 50px;
    padding: 3px 4px;
    border-radius: 6px;
    text-align: center;
}

.glass-input-large {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.glass-textarea {
    width: 100%;
}

.glass-input-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border: 1.2px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow-inset);
}

.glass-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.col-6 {
    flex: 1;
}

.col-12 {
    width: 100%;
}

/* COPILOTO IA LAYOUT */
.copiloto-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 20px;
}

.copiloto-interactive-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.canvas-chat-molecule-wrapper {
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 139, 229, 0.08) 0%, transparent 70%);
}

.ai-response-box {
    background: rgba(248, 250, 252, 0.65);
    border: 1.2px solid rgba(226, 232, 240, 0.85);
    border-radius: 14px;
    padding: 24px;
    height: 310px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--box-shadow-inset);
}

.ai-welcome-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-text-muted);
}

.suggested-audits-row {
    display: flex;
    gap: 10px;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(241, 245, 249, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 60px rgba(100, 116, 139, 0.15);
}

.max-w-450 {
    max-width: 450px;
}

.max-w-500 {
    max-width: 500px;
}

.max-w-750 {
    max-width: 750px;
}

.modal-header h2 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

/* METODO PAGAMENTOS MODAL */
.checkout-total-banner {
    background: linear-gradient(135deg, rgba(0, 139, 229, 0.06), rgba(109, 40, 217, 0.06));
    border: 1.2px solid rgba(0, 139, 229, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.checkout-total-banner h1 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-cyan);
    text-shadow: 0 0 10px var(--color-cyan-glow);
}

.payment-method-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.payment-type-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--box-shadow-inset);
}

.payment-type-btn.active {
    background: linear-gradient(135deg, rgba(0, 139, 229, 0.12), rgba(109, 40, 217, 0.12));
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.payment-type-btn i {
    font-size: 18px;
}

.payment-type-btn span {
    font-size: 10px;
    font-weight: 600;
}

.checkout-change-panel {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 12px;
}

.change-row h2 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-green);
    text-shadow: 0 0 8px var(--color-green-glow);
}

/* DOCUMENT PREVIEW */
.doc-preview-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.preview-layout-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 8px;
}

.invoice-container-a4 {
    display: none;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--box-shadow-inset);
}

.invoice-container-a4.active {
    display: block;
}

.invoice-a4-header {
    display: flex;
    justify-content: space-between;
}

.company-info h2 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
}

.company-info p {
    font-size: 11px;
    color: var(--color-text-muted);
}

.doc-badge-info {
    text-align: right;
}

.doc-badge-info h3 {
    font-family: var(--font-title);
    font-size: 14px;
    color: var(--color-cyan);
    font-weight: 700;
}

.doc-badge-info h2 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text);
}

.doc-badge-info p {
    font-size: 11px;
    color: var(--color-text-muted);
}

.glass-hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 16px 0;
}

.customer-info-box h4 {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 700;
}

.customer-info-box p {
    font-size: 12px;
    color: var(--color-text);
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.invoice-items-table th {
    background: rgba(0, 0, 0, 0.02);
    padding: 8px;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.invoice-items-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    color: var(--color-text);
}

.invoice-a4-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.digital-sign-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 8px;
    border-radius: 8px;
    max-width: 300px;
}

.qrcode-wrapper {
    background: white;
    padding: 3px;
    border-radius: 6px;
    width: 70px;
    height: 70px;
}

.sign-hash-text p {
    font-size: 10px;
    color: var(--color-text);
}

.sign-hash-text span {
    font-family: monospace;
    font-size: 8px;
    color: var(--color-text-muted);
    word-break: break-all;
}

.invoice-summary-totals {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 220px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
}

.totals-row.total-grand {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 6px;
}

.totals-row.total-grand span:last-child {
    color: var(--color-cyan);
}

/* THERMAL RECEIPT */
.invoice-container-thermal {
    display: none;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.01);
}

.invoice-container-thermal.active {
    display: flex;
}

.thermal-receipt {
    background: #ffffff;
    color: #1e293b;
    width: 260px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    line-height: 1.3;
}

.receipt-header {
    text-align: center;
}

.receipt-header h3 {
    font-size: 12px;
    font-weight: 700;
}

.receipt-header h4 {
    font-size: 11px;
}

/* RECURSOS HUMANOS MODAL PAYSTUB */
.paystub-body {
    padding: 10px;
}

.paystub-employee-details p {
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--color-text);
}

/* UTILS */
.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 12px;
}

.mt-4 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 20px;
}

.text-green {
    color: var(--color-green) !important;
}

.text-red {
    color: var(--color-red) !important;
}

.text-amber {
    color: var(--color-amber) !important;
}

.text-cyan {
    color: var(--color-cyan) !important;
}

.text-white {
    color: white !important;
}

.text-center {
    text-align: center;
}

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

.font-size-md {
    font-size: 14px;
}

.font-size-sm {
    font-size: 12px;
}

.font-size-xs {
    font-size: 11px;
}

.font-size-xxs {
    font-size: 9px;
}

.font-weight-500 {
    font-weight: 500;
}

.font-weight-bold {
    font-weight: 700;
}

.font-family-title {
    font-family: var(--font-title);
}

.hidden {
    display: none !important;
}

.w-100 {
    width: 100%;
}

.w-300 {
    width: 300px;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.gap-15 {
    gap: 15px;
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .landing-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-card {
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .glass-tablet-container {
        width: 100vw;
        height: 100vh;
        max-height: none;
        max-width: none;
        border-radius: 0;
        border: none;
    }

    .sidebar {
        width: 68px;
        padding: 20px 8px;
    }

    .brand-info,
    .sidebar-user .user-details,
    .nav-item span {
        display: none;
    }

    .brand {
        justify-content: center;
        padding: 0;
        margin-bottom: 20px;
    }

    .main-content {
        padding: 15px;
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-mid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-bottom-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pos-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .products-grid {
        max-height: 350px;
    }

    .clients-layout {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .topbar {
        flex-direction: column;
        height: auto;
        gap: 8px;
    }

    .dashboard-mid-row {
        grid-template-columns: 1fr;
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

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

    .col-6 {
        width: 100%;
    }

    .payment-method-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flex-column-mobile {
        flex-direction: column;
    }
}

/* ==========================================================================
   ONYX ENTERPRISE - NOVO MOTOR DE FATURAÇÃO & GESTÃO FINANCEIRA
   ========================================================================== */

.max-w-850 {
    max-width: 850px;
}

.max-w-950 {
    max-width: 950px;
}

.max-w-1050 {
    max-width: 1050px;
}

/* Dynamic Invoice Builder Table */
.invoice-builder-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 12px;
}

.invoice-builder-table th {
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
}

.invoice-builder-table td {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

.invoice-builder-table td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 8px 0 0 8px;
}

.invoice-builder-table td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 0 8px 8px 0;
}

.btn-remove-line {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-line:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
}

.btn-whatsapp:hover {
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45) !important;
    transform: translateY(-2px);
}

/* Financial summary cards in modals */
.doc-totals-panel {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
    border: 1.2px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-totals-panel .calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

.doc-totals-panel .calc-row.grand {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-text);
    border-top: 1.5px dashed rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    margin-top: 4px;
}

.doc-totals-panel .calc-row.grand span:last-child {
    color: var(--color-cyan);
}

.bank-coords-box {
    background: rgba(248, 250, 252, 0.85);
    border: 1px dashed rgba(0, 139, 229, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--color-text);
}

.bank-coords-box strong {
    color: var(--color-cyan);
}

/* Cashier Drawer Balance Count Table */
.cash-count-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

.cash-count-table th,
.cash-count-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-sobra {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-quebra {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Kardex stock movements table */
.kardex-type-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.kardex-type-badge.entrada {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.kardex-type-badge.saida {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.kardex-type-badge.ajuste {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

/* Tax breakdown box in A4 invoice */
.tax-breakdown-table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    font-size: 10px;
}

.tax-breakdown-table th {
    background: rgba(0, 0, 0, 0.03);
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tax-breakdown-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   PRINT STYLES (@media print) - EMISSÃO LIMPA PROFISSIONAL
   ========================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 15mm;
    }

    html,
    body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: 'Inter', -apple-system, sans-serif !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Ocultar elementos desnecessários na impressão */
    .glass-bg-blur,
    .landing-page-container,
    .sidebar,
    .topbar,
    .panel-header,
    .preview-layout-tabs,
    .modal-header,
    .modal-footer,
    .btn,
    .btn-close,
    header,
    .floating-orb,
    .tab-panel:not(.active),
    .modal:not(.active) {
        display: none !important;
    }

    .modal.active {
        position: static !important;
        display: block !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    .modal-content {
        background: #ffffff !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .invoice-container-a4 {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #0f172a !important;
    }

    .invoice-container-a4.active {
        display: block !important;
    }

    .invoice-items-table th {
        background: #f1f5f9 !important;
        color: #334155 !important;
        border-bottom: 2px solid #cbd5e1 !important;
    }

    .invoice-items-table td {
        border-bottom: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
    }

    .digital-sign-box {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
    }

    .bank-coords-box {
        background: #f8fafc !important;
        border: 1px dashed #94a3b8 !important;
    }

    /* Formato térmico na impressora de talão */
    .invoice-container-thermal.active {
        display: flex !important;
        justify-content: flex-start !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .thermal-receipt {
        width: 76mm !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ==========================================
   EXECUTIVE BILLING WORKSPACE & BENTO SUITE (LIGHT THEME)
   ========================================== */

/* 1. SYMMETRICAL 4-CARD EXECUTIVE BENTO GRID */
.billing-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.executive-bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.executive-bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px -4px rgba(15, 23, 42, 0.08),
        0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

/* Color theme variations */
.executive-bento-card.bento-cyan {
    border-top: 3.5px solid #0284c7;
}

.executive-bento-card.bento-amber {
    border-top: 3.5px solid #d97706;
}

.executive-bento-card.bento-green {
    border-top: 3.5px solid #059669;
}

.executive-bento-card.bento-purple {
    border-top: 3.5px solid #7c3aed;
}

/* Card Top Section: Icon badge & Micro status pill */
.bento-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.bento-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: transform 0.3s ease;
}

.executive-bento-card:hover .bento-icon-badge {
    transform: scale(1.08);
}

.bento-cyan .bento-icon-badge {
    background: #e0f2fe;
    color: #0284c7;
}

.bento-amber .bento-icon-badge {
    background: #fef3c7;
    color: #d97706;
}

.bento-green .bento-icon-badge {
    background: #dcfce7;
    color: #059669;
}

.bento-purple .bento-icon-badge {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Micro Status Pill */
.bento-micro-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

.bento-micro-pill.pill-cyan {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.bento-micro-pill.pill-amber {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.bento-micro-pill.pill-green {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.bento-micro-pill.pill-purple {
    background: #faf5ff;
    color: #6d28d9;
    border: 1px solid #e9d5ff;
}

/* Card Body: Label, Value, Footer */
.bento-card-body {
    display: flex;
    flex-direction: column;
}

.bento-kpi-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 4px;
}

.bento-kpi-val {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.bento-kpi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #64748b;
}

.bento-subtext {
    font-weight: 500;
    color: #64748b;
}

.bento-trend {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

/* Progress track line */
.bento-progress-track {
    width: 100%;
    height: 5px;
    background: #f1f5f9;
    border-radius: 999px;
    margin-top: 14px;
    overflow: hidden;
}

.bento-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}

.bento-progress-fill.fill-cyan {
    background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.bento-progress-fill.fill-amber {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.bento-progress-fill.fill-green {
    background: linear-gradient(90deg, #059669, #34d399);
}

.bento-progress-fill.fill-purple {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
}

/* 2. INNOVATIVE SALES & BILLING LIFECYCLE FLOW TRACK */
.doc-lifecycle-flow {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px 22px;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.04),
        0 2px 6px -1px rgba(15, 23, 42, 0.02);
    margin-bottom: 18px;
}

.lifecycle-track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.lifecycle-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lifecycle-hint {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lifecycle-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.lifecycle-step-node {
    flex: 1;
    min-width: 145px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lifecycle-step-node:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-num-cert {
    background: #dcfce7;
    color: #15803d;
}

.step-icon {
    font-size: 16px;
    color: #0284c7;
    flex-shrink: 0;
}

.step-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.step-info strong {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.step-info span {
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
}

.lifecycle-arrow {
    color: #cbd5e1;
    font-size: 11px;
    flex-shrink: 0;
    padding: 0 2px;
}

/* 3. MINIMALIST UNIFIED WORKSPACE CONTROL TOOLBAR */
.workspace-command-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.02);
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.command-bar-pills {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.doc-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.doc-pill {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.doc-pill.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
    font-weight: 700;
}

.doc-pill.active i {
    color: #ffffff;
}

/* Tier 2: Dynamic Full-Width Search & Filter Controls */
.command-bar-inputs {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.unified-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px 10px 38px;
    font-size: 13px;
    color: #0f172a;
    font-family: var(--font-main);
    transition: all 0.25s ease;
}

.unified-search-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.filter-controls-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.compact-select-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
    height: 42px;
    transition: all 0.2s ease;
}

.compact-select-box:focus-within {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.compact-select {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    font-family: var(--font-main);
    padding: 8px 4px;
}

.compact-select:focus {
    outline: none;
}

.btn-ghost-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-ghost-compact:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* TABLE CONTAINER ELEVATION */
.glass-card.table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 
        0 4px 20px -2px rgba(15, 23, 42, 0.05),
        0 2px 6px -1px rgba(15, 23, 42, 0.02);
}

.glass-card.table-card .card-body {
    padding: 0;
    overflow-x: auto;
}

/* ==========================================
   PANEL HEADER STYLING (VENDAS & FATURAÇÃO)
   ========================================== */
.panel-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.panel-title-row h1 {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    margin: 0;
}

.fiscal-series-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.02em;
}

.panel-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    font-weight: 500;
}

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

.btn-cta-main {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-cta-main:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38) !important;
}

.btn-cta-secondary {
    background: #ffffff !important;
    color: #0284c7 !important;
    border: 1.5px solid #0284c7 !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-cta-secondary:hover {
    background: #f0f9ff !important;
    border-color: #0369a1 !important;
    color: #0369a1 !important;
    transform: translateY(-2px) !important;
}

.btn-cta-saft {
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.btn-cta-saft:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
}

/* ==========================================
   COMMAND BAR & SEGMENTED PILLS ENHANCEMENT
   ========================================== */
.doc-pill .pill-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 12px;
    margin-left: 3px;
    transition: all 0.2s ease;
}

.doc-pill.active .pill-badge {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s ease;
}

.search-clear-btn:hover {
    color: #0f172a;
}

.results-badge-indicator {
    height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.results-badge-indicator span {
    color: #0284c7;
    font-weight: 800;
    margin-right: 4px;
}

/* ==========================================
   ENTERPRISE DATA TABLE
   ========================================== */
.enterprise-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.enterprise-data-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.enterprise-data-table tbody td {
    padding: 14px 18px;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.enterprise-data-table tbody tr {
    transition: background 0.15s ease;
}

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

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

/* Document Type Micro-Badges */
.doc-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    font-family: var(--font-mono, monospace);
}

.doc-type-badge.type-ft {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.doc-type-badge.type-fr {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.doc-type-badge.type-rc {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.doc-type-badge.type-cot,
.doc-type-badge.type-or {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.doc-type-badge.type-pf {
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.doc-type-badge.type-gt {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.doc-type-badge.type-nc {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Empty State Modern */
.empty-state-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

.empty-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

@media (max-width: 1280px) {
    .billing-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .billing-bento-grid {
        grid-template-columns: 1fr;
    }
    .lifecycle-steps {
        flex-direction: column;
        align-items: stretch;
    }
    .lifecycle-arrow {
        transform: rotate(90deg);
        align-self: center;
    }
}

/* ==========================================================================
   GLASSMORPHISM PLASMA LIQUID GLASS SUITE (ONYX ENTERPRISE FUTURISTIC)
   ========================================================================== */

/* 1. LIQUID GLASS & PLASMA CORE TOKENS */
:root {
    --plasma-cyan: #008be5;
    --plasma-cyan-glow: rgba(0, 139, 229, 0.28);
    --plasma-purple: #7c3aed;
    --plasma-purple-glow: rgba(124, 58, 237, 0.25);
    --plasma-emerald: #10b981;
    --plasma-emerald-glow: rgba(16, 185, 129, 0.25);
    --plasma-amber: #f59e0b;
    --plasma-amber-glow: rgba(245, 158, 11, 0.25);
    --plasma-rose: #f43f5e;
    --plasma-rose-glow: rgba(244, 63, 94, 0.25);
    
    --liquid-glass-bg: rgba(255, 255, 255, 0.72);
    --liquid-glass-bg-hover: rgba(255, 255, 255, 0.88);
    --liquid-glass-border: rgba(255, 255, 255, 0.9);
    --liquid-glass-border-subtle: rgba(226, 232, 240, 0.8);
    --liquid-glass-shadow: 
        0 12px 35px -5px rgba(15, 23, 42, 0.07),
        0 4px 12px -2px rgba(15, 23, 42, 0.03),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    --liquid-glass-shadow-hover: 
        0 20px 45px -8px rgba(0, 139, 229, 0.14),
        0 6px 16px -2px rgba(15, 23, 42, 0.05),
        inset 0 1.5px 2px 0 rgba(255, 255, 255, 1);
}

/* 2. LIQUID PLASMA CARD BASE */
.plasma-glass-card {
    background: var(--liquid-glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--liquid-glass-border-subtle);
    border-radius: 20px;
    box-shadow: var(--liquid-glass-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.plasma-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 25%, rgba(0, 139, 229, 0.4) 50%, rgba(255, 255, 255, 0.9) 75%, transparent);
    z-index: 2;
    pointer-events: none;
}

.plasma-glass-card:hover {
    background: var(--liquid-glass-bg-hover);
    box-shadow: var(--liquid-glass-shadow-hover);
    transform: translateY(-3px);
    border-color: rgba(0, 139, 229, 0.35);
}

/* 3. VIEW MODE SWITCHER & SEGMENTED CONTROLS */
.view-mode-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 16px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.view-mode-toggle {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}

.view-mode-btn {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.view-mode-btn:hover {
    color: #0f172a;
}

.view-mode-btn.active {
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 4. LIQUID FILTER BAR & SEGMENTED PILLS */
.liquid-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.liquid-filter-bar::-webkit-scrollbar {
    display: none;
}

.liquid-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.liquid-filter-pill:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
    transform: translateY(-1px);
}

.liquid-filter-pill.active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.liquid-filter-pill .pill-count {
    background: #e2e8f0;
    color: #334155;
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.liquid-filter-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 5. CARDS GRID CONTAINER */
.plasma-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

/* 6. CLIENT PLASMA CARD */
.client-plasma-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.client-plasma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -6px rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.4);
    background: #ffffff;
}

.client-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.client-avatar-halo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.client-avatar-halo.vip {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.client-avatar-halo.regular {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
}

.client-avatar-halo.devedor {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}

.client-card-info {
    flex-grow: 1;
    overflow: hidden;
}

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

.client-card-name {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.client-nuit-badge {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.client-segment-chip {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.client-segment-chip.vip {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.client-segment-chip.regular {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.client-segment-chip.devedor {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Financial Dual Gauge in Client Card */
.client-financial-cockpit {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.client-gauge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}

.client-gauge-label {
    color: #64748b;
    font-weight: 600;
}

.client-gauge-value {
    font-weight: 800;
    color: #0f172a;
}

.client-gauge-track {
    width: 100%;
    height: 7px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.client-gauge-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.fill-safe {
    background: linear-gradient(90deg, #10b981, #059669);
}

.fill-warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.fill-danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.client-debt-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px dashed #cbd5e1;
    font-size: 12px;
}

.client-debt-indicator .debt-title {
    font-weight: 600;
    color: #64748b;
}

.client-debt-indicator .debt-amount {
    font-weight: 800;
}

/* Floating Action Dock inside cards */
.card-action-dock {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.dock-btn {
    border: none;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.dock-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.dock-btn.dock-primary {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.dock-btn.dock-primary:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.dock-btn.dock-green {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.dock-btn.dock-green:hover {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

.dock-btn.dock-icon-only {
    padding: 7px 9px;
    color: #64748b;
}

.dock-btn.dock-icon-only:hover {
    color: #0f172a;
}

.dock-btn.dock-danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* 7. PRODUCT PLASMA CARD (ARTIGOS & STOCK) */
.product-plasma-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.product-plasma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -6px rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.4);
    background: #ffffff;
}

.prod-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.prod-holo-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.9), 0 4px 10px rgba(2, 132, 199, 0.1);
    transition: transform 0.3s ease;
}

.product-plasma-card:hover .prod-holo-icon {
    transform: scale(1.08) rotate(-3deg);
}

.prod-card-meta {
    flex-grow: 1;
    overflow: hidden;
}

.prod-card-title {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-code-chip {
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
}

.prod-financial-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.prod-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.prod-price-main {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 800;
    color: #0284c7;
    letter-spacing: -0.5px;
}

.prod-cost-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.prod-margin-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Stock Gauge Bar in Card */
.prod-stock-meter {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
}

.stock-meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.stock-badge-live {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.stock-badge-live.in-stock {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.stock-badge-live.low-stock {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.stock-badge-live.out-stock {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.stock-meter-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.stock-meter-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Quick Stock Adjust Buttons */
.quick-stock-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-stock-delta {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-stock-delta:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    transform: scale(1.08);
}

/* 8. SUPPLIER PLASMA CARD (COMPRAS & FORNECEDORES) */
.supplier-plasma-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.supplier-plasma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -6px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
    background: #ffffff;
}

.supplier-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.supplier-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.12);
}

.supplier-title {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-metric-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supplier-metric-box {
    display: flex;
    flex-direction: column;
}

.supplier-metric-box span {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.supplier-metric-box strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
}

/* 9. POS BALCÃO LIQUID TERMINAL COCKPIT */
.pos-cockpit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
    gap: 12px;
}

.pos-cockpit-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pos-terminal-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.pos-terminal-tag .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

.pos-hotkey-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pos-hotkey-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
}

.pos-hotkey-chip kbd {
    background: #e2e8f0;
    color: #0f172a;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    font-weight: 800;
}

/* Quick Cash Payment Chips in POS Cart */
.pos-cash-shortcuts {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.pos-cash-shortcuts-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.pos-cash-chips-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-cash-chip {
    flex: 1;
    min-width: 58px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.btn-cash-chip:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-1px);
}

.pos-client-credit-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 6px 10px;
    margin-top: 6px;
    font-size: 11px;
    color: #0369a1;
    font-weight: 700;
}

.pos-client-credit-banner.warning {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Suspended Sales Drawer Chip */
.btn-suspended-sales {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-suspended-sales:hover {
    background: #fde68a;
}

/* 10. FISCALIDADE & SAF-T AT COCKPIT */
.fiscal-holo-seal {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fiscal-holo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed #008be5;
    animation: rotateRing 12s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fiscal-holo-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 20px rgba(0, 139, 229, 0.4);
}

.rsa-audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
}

.rsa-audit-badge.valid {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.btn-rsa-verify {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-rsa-verify:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

.suspended-sale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.suspended-sale-item:hover {
    border-color: #008be5;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 139, 229, 0.08);
}

/* ==========================================
   ONYX MODERN GLASS TOAST NOTIFICATION SUITE
   ========================================== */
.onyx-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
    pointer-events: none;
}

.onyx-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 1px rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.onyx-toast.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.96));
    border: 1px solid rgba(110, 231, 183, 0.5);
}

.onyx-toast.toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.94), rgba(217, 119, 6, 0.98));
    border: 1px solid rgba(253, 230, 138, 0.5);
}

.onyx-toast.toast-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.94), rgba(220, 38, 38, 0.98));
    border: 1px solid rgba(252, 165, 165, 0.5);
}

.onyx-toast.toast-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(2, 132, 199, 0.96));
    border: 1px solid rgba(125, 211, 252, 0.5);
}

.onyx-toast .toast-icon {
    font-size: 17px;
    flex-shrink: 0;
}

.onyx-toast .toast-body {
    flex-grow: 1;
}

.onyx-toast .toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.onyx-toast .toast-close:hover {
    color: #ffffff;
}

.onyx-toast.fade-out {
    opacity: 0;
    transform: translateX(30px);
}