/* ===================================================================
   MIDAS BI — APPLE LIQUID GLASS & BRAND IDENTITY SYSTEM
   Palette: Midas Brand Green (#76D800), Rei Midas Gold (#F59E0B),
            Obsidian Gray (#080B11), Titanium Slate & Pure White
   Design Language: Apple Human Interface Guidelines (HIG) Liquid Glass
   =================================================================== */

:root {
    /* Brand Colors */
    --brand-green: #76D800;
    --brand-green-hover: #8BE50A;
    --brand-green-dark: #58A700;
    --brand-green-light: rgba(118, 216, 0, 0.16);
    --brand-green-glow: rgba(118, 216, 0, 0.35);

    --brand-gold: #F59E0B;
    --brand-gold-hover: #FBBF24;
    --brand-gold-light: rgba(245, 158, 11, 0.16);
    --brand-gold-glow: rgba(245, 158, 11, 0.35);
    --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #FDE047 50%, #D97706 100%);
    --green-gradient: linear-gradient(135deg, #76D800 0%, #A3E635 50%, #58A700 100%);

    /* Primary Accent (Midas Green) */
    --primary: #76D800;
    --primary-hover: #8BE50A;
    --primary-light: rgba(118, 216, 0, 0.16);
    --primary-dark: #58A700;

    /* Semantics */
    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.16);
    --warning: #F59E0B;
    --warning-light: rgba(245, 158, 11, 0.16);
    --danger: #FF4757;
    --danger-light: rgba(255, 71, 87, 0.16);

    /* Apple Obsidian & Liquid Glass Palette */
    --bg-main: #080B11;
    --bg-surface: rgba(18, 24, 38, 0.72);
    --bg-card: rgba(24, 32, 50, 0.65);
    --bg-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);

    /* Glassmorphism Specs */
    --glass-blur: blur(24px) saturate(190%);
    --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);

    /* Typography */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-sub: #64748B;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --sidebar-width: 260px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", 'Segoe UI', Roboto, sans-serif;
}

/* ===================================================================
   RESET & SCROLLBAR GLOBAL
   =================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    height: 100%;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(118, 216, 0, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(118, 216, 0, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #0A0E17 0%, #06080E 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbar Apple Style */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(8px);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(118, 216, 0, 0.5);
}

/* ===================================================================
   TELA DE LOGIN (LIQUID GLASS ELEVATED)
   =================================================================== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: 
        radial-gradient(circle at 35% 25%, rgba(118, 216, 0, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 65% 75%, rgba(245, 158, 11, 0.10) 0%, transparent 45%),
        #070A10;
    overflow-y: auto;
}

.login-card {
    background: linear-gradient(135deg, rgba(25, 33, 50, 0.75) 0%, rgba(14, 18, 29, 0.85) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-highlight);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 44px);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--glass-specular), 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(118, 216, 0, 0.08);
    animation: loginFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

@keyframes loginFade {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header h2 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 800;
    margin-top: 16px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 6px;
}

.login-logo {
    height: 52px;
    max-width: 220px;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-sub);
}

/* ===================================================================
   LAYOUT DO PAINEL PRINCIPAL
   =================================================================== */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

/* Sidebar Overlay Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Sidebar Liquid Glass */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(14, 19, 29, 0.78);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 10px 0 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    flex-shrink: 0;
}

.sidebar-logo {
    height: 48px;
    max-width: 210px;
    width: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-logo:hover {
    transform: scale(1.03);
}

.sidebar-nav {
    padding: 18px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    transform: translateX(3px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(118, 216, 0, 0.18) 0%, rgba(118, 216, 0, 0.06) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(118, 216, 0, 0.4);
    box-shadow: 0 4px 18px rgba(118, 216, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 8px rgba(118, 216, 0, 0.6));
}

.nav-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: rgba(10, 14, 22, 0.6);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-gradient);
    color: #080B11;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(118, 216, 0, 0.35);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
    color: var(--text-muted);
}

.btn-logout:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ===================================================================
   MAIN CONTENT & TOPBAR
   =================================================================== */
.main-content {
    flex: 1;
    height: 100vh;
    padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 40px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 20px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}

.btn-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.topbar h1 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===================================================================
   KPIS GRID (APPLE LIQUID GLASS CARDS)
   =================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: linear-gradient(135deg, rgba(26, 34, 52, 0.70) 0%, rgba(15, 20, 32, 0.80) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--glass-specular), 0 16px 36px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.kpi-card:hover {
    border-color: rgba(118, 216, 0, 0.4);
    box-shadow: var(--glass-specular), 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 24px rgba(118, 216, 0, 0.12);
    transform: translateY(-2px);
}

.kpi-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

/* Semantics Icon Badges with Glass Vibrancy */
.bg-blue { 
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.1) 100%); 
    color: #38BDF8; 
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.18);
}
.bg-green { 
    background: linear-gradient(135deg, rgba(118, 216, 0, 0.22) 0%, rgba(88, 167, 0, 0.1) 100%); 
    color: #76D800; 
    border: 1px solid rgba(118, 216, 0, 0.35);
    box-shadow: 0 0 16px rgba(118, 216, 0, 0.25);
}
.bg-purple { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(147, 51, 234, 0.1) 100%); 
    color: #C084FC; 
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.18);
}
.bg-gold { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24) 0%, rgba(217, 119, 6, 0.12) 100%); 
    color: #FBBF24; 
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
}

.kpi-info {
    min-width: 0;
    flex: 1;
}

.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.kpi-value {
    font-size: clamp(18px, 2.5vw, 23px);
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 4px;
    letter-spacing: -0.3px;
}

#kpiFaturamentoGeral {
    font-size: clamp(15px, 1.7vw, 21px);
    white-space: nowrap;
}

.kpi-subtext {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
    line-height: 1.25;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ===================================================================
   CONTENT CARDS & TABELAS (LIQUID GLASS PANELS)
   =================================================================== */
.content-card {
    background: linear-gradient(135deg, rgba(22, 29, 44, 0.70) 0%, rgba(14, 18, 29, 0.80) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 3vw, 26px);
    margin-bottom: 24px;
    box-shadow: var(--glass-specular), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-header h3, .card-header h4 {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.badge-live {
    background: rgba(118, 216, 0, 0.18);
    color: #76D800;
    border: 1px solid rgba(118, 216, 0, 0.35);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(118, 216, 0, 0.2);
}

.badge-live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #76D800;
    border-radius: 50%;
    animation: pulseLive 1.5s infinite;
}

@keyframes pulseLive {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

.data-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

/* ===================================================================
   BADGES & STATUS
   =================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-basic { 
    background: rgba(59, 130, 246, 0.15); 
    color: #60A5FA; 
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-premium, .badge-pro { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.12) 100%); 
    color: #FDE047; 
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green { background: #76D800; box-shadow: 0 0 10px rgba(118, 216, 0, 0.8); }
.dot-yellow { background: var(--warning); box-shadow: 0 0 10px rgba(245, 158, 11, 0.8); }
.dot-red { background: var(--danger); box-shadow: 0 0 10px rgba(255, 71, 87, 0.8); }

/* ===================================================================
   FORMS, BUTTONS & INPUTS (APPLE LIQUID CONTROLS)
   =================================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

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

.col-6 { 
    flex: 1 1 200px; 
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

select.form-select,
select {
    width: 100%;
    padding: 12px 42px 12px 16px;
    background-color: #141A28;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376D800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

select.form-select option,
select option {
    background-color: #0E131F !important;
    color: #FFFFFF !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

select.form-select option:checked,
select option:checked {
    background-color: #1A2338 !important;
    color: #76D800 !important;
    font-weight: 700 !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

input:focus,
select.form-select:focus,
select:focus {
    background-color: #182032;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(118, 216, 0, 0.25), 0 0 15px rgba(118, 216, 0, 0.2);
}

.checkbox-group-container {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-green);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #76D800 0%, #58A700 100%);
    color: #06090E;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 4px 18px rgba(118, 216, 0, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8BF30A 0%, #64BD00 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 6px 24px rgba(118, 216, 0, 0.5);
    transform: translateY(-1px);
    color: #000000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: #E2E8F0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.alert-error {
    background: var(--danger-light);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #FFA5A5;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}

/* ===================================================================
   MODALS LIQUID GLASS (APPLE FROSTED GLASSMORPHYSM)
   =================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 14, 0.75);
    backdrop-filter: blur(16px) saturate(190%);
    -webkit-backdrop-filter: blur(16px) saturate(190%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: clamp(10px, 3vw, 24px);
    overflow: hidden;
    transition: opacity 0.25s ease;
}

.modal-box {
    background: linear-gradient(135deg, rgba(24, 32, 52, 0.85) 0%, rgba(12, 16, 28, 0.92) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 22px;
    width: min(550px, 100%);
    max-height: min(92vh, 860px);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.8),
        0 0 35px rgba(118, 216, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
}

.modal-box > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-box > form > .modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 24px;
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
}

.modal-box.modal-lg {
    width: min(920px, 96vw);
    max-height: min(94vh, 900px);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    flex-shrink: 0;
}

.modal-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(118, 216, 0, 0.18);
    border: 1px solid rgba(118, 216, 0, 0.35);
    font-size: 16px;
}

.modal-header h3 {
    font-size: clamp(16px, 2.5vw, 19px);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.btn-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close:hover {
    color: #FFFFFF;
    background: rgba(255, 71, 87, 0.25);
    border-color: rgba(255, 71, 87, 0.5);
    transform: rotate(90deg);
}

.modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
    flex-wrap: wrap;
}

/* Input CNPJ Glass */
.input-with-action {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-action input {
    padding-right: 48px !important;
}

.btn-input-action {
    position: absolute;
    right: 6px;
    background: rgba(118, 216, 0, 0.2);
    border: 1px solid rgba(118, 216, 0, 0.35);
    color: #76D800;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
    padding: 0;
}

.btn-input-action:hover {
    background: rgba(118, 216, 0, 0.45);
    border-color: rgba(118, 216, 0, 0.6);
    color: #FFFFFF;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(118, 216, 0, 0.4);
}

.cnpj-status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.cnpj-status-loading {
    background: rgba(118, 216, 0, 0.2);
    color: #A3E635;
    border: 1px solid rgba(118, 216, 0, 0.4);
}

.cnpj-status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.cnpj-status-error {
    background: rgba(255, 71, 87, 0.2);
    color: #FFA5A5;
    border: 1px solid rgba(255, 71, 87, 0.4);
}

.spin-anim {
    display: inline-block;
    animation: spinIcon 1s linear infinite;
}

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

/* ===================================================================
   BI MODAL STYLES & PERIOD FILTER (APPLE GLASS BUTTONS)
   =================================================================== */
.period-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.period-buttons {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 6px;
}

.btn-period {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-period:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-period.active {
    background: linear-gradient(135deg, rgba(118, 216, 0, 0.25) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(118, 216, 0, 0.5);
    color: #FFFFFF;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 2px 10px rgba(118, 216, 0, 0.25);
}

/* Botão Personalizar Dourado Brilhante (Destaque sutil sem competir com a seleção ativa verde) */
.btn-period[data-dias="custom"]:not(.active),
#btnPeriodCustomClient:not(.active),
#btnCustomPeriodAdmin:not(.active) {
    border: 1px solid rgba(245, 158, 11, 0.75) !important;
    background: rgba(245, 158, 11, 0.08) !important;
    color: #FDE68A !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35), inset 0 0 4px rgba(245, 158, 11, 0.15) !important;
}

.btn-period[data-dias="custom"]:not(.active):hover,
#btnPeriodCustomClient:not(.active):hover,
#btnCustomPeriodAdmin:not(.active):hover {
    border-color: rgba(251, 191, 36, 0.95) !important;
    background: rgba(245, 158, 11, 0.16) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.55), inset 0 0 6px rgba(245, 158, 11, 0.25) !important;
}

/* ===================================================================
   SUB-NAVEGAÇÃO DE MÓDULOS DE BI (SEGMENTED CONTROL APPLE LIQUID GLASS)
   =================================================================== */
.bi-subtabs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 20, 32, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    width: 100%;
}

.bi-subtabs-nav::-webkit-scrollbar {
    display: none;
}

.bi-subtab-btn {
    flex: 1 1 0;
    min-width: 130px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
}

.bi-subtab-btn .subtab-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.bi-subtab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.bi-subtab-btn:hover:not(.active) .subtab-icon {
    transform: scale(1.15);
}

.bi-subtab-btn.active {
    background: linear-gradient(135deg, #76D800 0%, #8BE50A 50%, #58A700 100%) !important;
    color: #06090E !important;
    font-weight: 800 !important;
    border: 1px solid #9EF01A !important;
    box-shadow: 0 4px 18px rgba(118, 216, 0, 0.40), inset 0 1px 1px rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px);
}

.bi-subtab-btn.active .subtab-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.bi-subtab-btn:active {
    transform: scale(0.98);
}

.bi-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ranking-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    flex-wrap: wrap;
}

.ranking-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(118, 216, 0, 0.2);
}

.ranking-rank {
    width: 26px;
    font-weight: 800;
    color: var(--brand-green);
    font-size: 14px;
    flex-shrink: 0;
}

.ranking-info {
    flex: 1 1 200px;
    min-width: 0;
}

.ranking-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-bar-bg {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.ranking-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #76D800 0%, #F59E0B 100%);
    box-shadow: 0 0 10px rgba(118, 216, 0, 0.4);
    border-radius: 999px;
}

.ranking-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-green);
    white-space: nowrap;
}

.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.clickable-row:hover td {
    background: rgba(118, 216, 0, 0.08) !important;
}

/* ===================================================================
   MONITOR DE SINCRONIZAÇÃO AGRUPADO POR LOJA
   =================================================================== */
.store-sync-groups-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.store-sync-card {
    background: linear-gradient(135deg, rgba(22, 29, 44, 0.70) 0%, rgba(14, 18, 29, 0.80) 100%);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.store-sync-card:hover {
    border-color: rgba(118, 216, 0, 0.4);
    box-shadow: 0 0 20px rgba(118, 216, 0, 0.1);
}

.store-sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    background: transparent;
    user-select: none;
    transition: background 0.15s;
    flex-wrap: wrap;
}

.store-sync-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.store-sync-title-area {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.store-sync-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(118, 216, 0, 0.2) 0%, rgba(88, 167, 0, 0.1) 100%);
    border: 1px solid rgba(118, 216, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.store-sync-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.store-sync-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    word-break: break-all;
}

.store-sync-stats-area {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.store-stat-label {
    font-size: 10px;
    color: var(--text-sub);
    text-transform: uppercase;
    font-weight: 700;
}

.store-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
    white-space: nowrap;
}

.store-chevron {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.store-sync-card.open .store-chevron {
    transform: rotate(180deg);
}

.store-sync-details {
    display: none;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    padding: 16px 20px;
}

.store-sync-card.open .store-sync-details {
    display: block;
}

/* ===================================================================
   TABS & HELPERS
   =================================================================== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

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

/* ===================================================================
   MEDIA QUERIES RESPONSIVAS (TABLET, MOBILE & ZOOM)
   =================================================================== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 240px;
    }

    .btn-menu-toggle {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.85);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        padding: 20px 24px;
    }

    .topbar {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .topbar-actions {
        justify-content: flex-end;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .content-card {
        padding: 16px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .store-sync-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .store-sync-stats-area {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .store-stat-item {
        align-items: flex-start;
    }

    .modal-box {
        padding: 0;
        max-height: 96vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 16px 20px;
    }

    .modal-footer {
        padding: 14px 20px;
    }

    .period-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

/* ===================================================================
   STATUS DO BI & ESTEIRA DE PROCESSAMENTO (MONITOR DE SYNC)
   =================================================================== */
.badge-bi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.badge-bi-processando {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    animation: pulseGlow 2s infinite ease-in-out;
}

.badge-bi-fila {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-bi-recebendo {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-bi-pronto {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-bi-pendente {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-bi-vazio {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    font-weight: 500;
}

.bi-spinner {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: biSpin 0.75s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

.bi-pulse-dot {
    width: 7px;
    height: 7px;
    background: #c084fc;
    border-radius: 50%;
    display: inline-block;
    animation: biPulse 1.2s infinite ease-in-out;
    flex-shrink: 0;
}

.bi-queue-banner {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bi-queue-banner.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.07) 100%);
    border-color: rgba(245, 158, 11, 0.35);
    color: var(--text-main);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
}

.bi-queue-banner.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.06) 100%);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--text-main);
}

@keyframes biSpin {
    to { transform: rotate(360deg); }
}

@keyframes biPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.45); }
}

/* ===================================================================
   ÁREA DEDICADA: ANÁLISE COMPARATIVA DE FATURAMENTO (REDE E LOJAS)
   =================================================================== */
.apple-comparativo-card {
    background: #151821;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 24px;
    position: relative;
    overflow: visible;
}

.apple-comparativo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
    opacity: 0.8;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.comparativo-header {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.comparativo-badge-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.comparativo-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
}

.comparativo-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 3px 0 0 0;
}

.comp-period-indicator {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px 0;
    width: fit-content;
}

.comp-date-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 14px;
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.comp-date-card.card-atual {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.04) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.08);
}

.comp-date-card.card-base {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1) 0%, rgba(100, 116, 139, 0.03) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.comp-date-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comp-date-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.comp-date-dot.green {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.comp-date-dot.gray {
    background: #94a3b8;
}

.comp-date-tag {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comp-date-card.card-atual .comp-date-tag {
    color: #34d399;
}

.comp-date-card.card-base .comp-date-tag {
    color: #94a3b8;
}

.comp-date-range {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 0.1px;
    font-feature-settings: "tnum";
}

.comp-date-card.card-atual .comp-date-range {
    color: #ffffff;
}

.comp-date-card.card-base .comp-date-range {
    color: #f1f5f9;
}

.comp-date-vs-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comparativo-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.comp-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comp-control-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.comp-view-pills {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.comparativo-pills {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
    gap: 4px;
}

.btn-comp-pill {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-comp-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-comp-pill.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.btn-comp-pill .pill-short {
    display: none;
}
.btn-comp-pill .pill-full {
    display: inline;
}

body.in-comparativo #globalPeriodButtons,
body.in-comparativo #customPeriodBoxClient {
    display: none !important;
}

/* Caixa Customizada */
.comp-custom-box {
    background: rgba(17, 20, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    animation: fadeIn 0.2s ease;
}

.comp-custom-grid {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.comp-custom-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comp-custom-label {
    font-size: 11px;
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-custom-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comp-input {
    background: #11141c;
    color: #fff;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12.5px;
}

.comp-sep {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Métricas Consolidadas (Parte A) */
.comp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.comp-metric-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.comp-metric-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.035);
}

.comp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comp-metric-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-metric-tag.atual {
    color: #34d399;
}

.comp-metric-tag.anterior {
    color: #94a3b8;
}

.comp-metric-tag.var {
    color: #60a5fa;
}

.comp-card-date-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.comp-metric-value {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.comp-metric-delta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comp-metric-delta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comp-metric-sub {
    font-size: 11.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* Suporte Desktop para blocos estruturados de comparativo */
.comp-sub-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11.5px;
    color: #64748b;
}

.comp-sub-badge .comp-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comp-sub-badge .comp-badge-item .val {
    color: #cbd5e1;
    font-weight: 700;
}

.comp-sub-badge .comp-badge-sep {
    opacity: 0.35;
    margin: 0 2px;
}

.comp-pessoas-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
}

.comp-pessoas-badge .comp-pessoas-row-top,
.comp-pessoas-badge .comp-pessoas-row-bottom {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comp-pessoas-badge .tkt-pess-item {
    color: #94a3b8;
}

.comp-pessoas-badge .tkt-pess-item .val {
    color: #e2e8f0;
}

.comp-delta-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.comp-delta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
}

.comp-delta-chip .comp-chip-lbl {
    color: #64748b;
    font-weight: 600;
}

.comp-delta-chip .comp-chip-val {
    font-weight: 700;
}

.comp-delta-chip .comp-chip-val.pos {
    color: #34d399;
}

.comp-delta-chip .comp-chip-val.neg {
    color: #f87171;
}

.comp-delta-chip .comp-chip-pct {
    margin-left: 2px;
    opacity: 0.85;
}

.comp-badge-pill {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    letter-spacing: -0.2px;
}

.comp-badge-pill.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.comp-badge-pill.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-metric-card.card-delta.positive {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.comp-metric-card.card-delta.negative {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.02) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Lista e Tabela de Lojas (Parte B & C) */
.comp-stores-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
}

.comp-stores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.comp-stores-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-stores-hint {
    font-size: 12px;
    color: #64748b;
    margin-left: 10px;
}

/* TABELA EXECUTIVA DESKTOP */
.comp-table-desktop {
    display: block;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.comp-data-table {
    width: 100%;
    border-collapse: collapse;
}

.comp-data-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comp-table-row {
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-table-row:last-child {
    border-bottom: none;
}

.comp-table-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.comp-table-row td {
    padding: 12px 14px;
    vertical-align: middle;
}

.comp-cell-store {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comp-cell-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.comp-cell-sub {
    font-size: 11px;
    color: #64748b;
}

.comp-cell-val {
    font-size: 13.5px;
}

.comp-cell-val.font-bold {
    font-weight: 700;
}

/* MINI BARS NA TABELA */
.comp-table-mini-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 2px 0;
    max-width: 190px;
    margin: 0 auto;
}

.mini-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-bar-lbl {
    width: 32px;
    font-size: 9.5px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
}

.mini-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mini-bar-fill.atual {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 4px rgba(52, 211, 153, 0.3);
}

.mini-bar-fill.anterior {
    background: rgba(148, 163, 184, 0.45);
}

/* NO DESKTOP, OCULTA A LISTA DE CARDS */
.comp-stores-list {
    display: none;
}

/* ===================================================================
   MOTOR DE VISUALIZAÇÕES COMPARATIVAS (SWITCHER + 3 OPÇÕES DE GRÁFICO)
   =================================================================== */

/* Switcher Bar */
.comp-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 16px;
    margin: 18px 0 16px 0;
}

.comp-switcher-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-switcher-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-comp-view {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-comp-view:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-comp-view.active {
    background: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* Card Visual Base */
.comp-visual-box {
    margin-bottom: 20px;
}

.comp-visual-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px 20px;
    animation: fadeIn 0.25s ease;
}

.comp-visual-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comp-visual-title {
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.comp-visual-desc {
    font-size: 11.5px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

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

.timeline-granularity-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}

.btn-granularity {
    background: transparent;
    border: none;
    border-radius: 16px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-granularity:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-granularity.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.comp-visual-legend {
    display: flex;
    align-items: center;
    gap: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #cbd5e1;
    font-weight: 600;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.green {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.legend-dot.gray {
    background: #94a3b8;
}

.legend-line {
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

.legend-line.solid-green {
    background: #10b981;
}

.legend-line.dashed-gray {
    background: repeating-linear-gradient(90deg, #94a3b8, #94a3b8 3px, transparent 3px, transparent 6px);
}

/* -------------------------------------------------------------
   OPÇÃO 3: COLUNAS VERTICAIS COM PONTE DE DELTA
   ------------------------------------------------------------- */
.comp-columns-grid {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    overflow-x: auto;
    padding: 10px 4px 6px 4px;
    -webkit-overflow-scrolling: touch;
}

.comp-col-card {
    flex: 1;
    min-width: 155px;
    max-width: 190px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.comp-col-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(255, 255, 255, 0.035);
}

.comp-bridge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    min-height: 36px;
}

.comp-col-bridge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

.comp-col-bridge.pos {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.comp-col-bridge.neg {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-bridge-diff {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}

.comp-col-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 120px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.comp-col-pillar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.comp-col-val {
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.comp-col-pillar {
    width: 28px;
    border-radius: 4px 4px 0 0;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.comp-col-pillar.atual {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.comp-col-pillar.comp {
    background: rgba(148, 163, 184, 0.35);
}

.comp-col-sub-lbl {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 4px;
}

.comp-col-store-info {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.comp-col-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
}

.comp-col-rank.first {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #f59e0b;
}

.comp-col-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------------
   OPÇÃO 2: BARRAS DIVERGENTES (0%) & TERMÔMETRO
   ------------------------------------------------------------- */
.bullet-thermometer-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.bullet-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.bullet-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.bullet-sub {
    font-size: 11px;
    color: #94a3b8;
}

.bullet-pct-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.bullet-pct-badge.super {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.bullet-track {
    position: relative;
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: visible;
    margin: 6px 0;
}

.bullet-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.bullet-fill.super {
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.bullet-marker {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 18px;
    background: #ffffff;
    box-shadow: 0 0 4px #000;
    border-radius: 1px;
    transform: translateX(-50%);
}

.bullet-legend-row {
    display: flex;
    justify-content: space-between;
    font-size: 10.5px;
    color: #64748b;
    margin-top: 4px;
}

.diverg-table-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.diverg-header-row {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding: 0 10px 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.diverg-col-store-hdr {
    width: 160px;
}

.diverg-col-diff-hdr {
    width: 110px;
    text-align: right;
}

.diverg-header-axis-labels {
    flex: 1;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 10px;
}

.diverg-rows-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diverg-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.diverg-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

.diverg-store-label {
    width: 160px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.diverg-store-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.diverg-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    height: 20px;
    position: relative;
    padding: 0 10px;
}

.diverg-axis {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.diverg-side {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.diverg-side.neg {
    justify-content: flex-end;
}

.diverg-side.pos {
    justify-content: flex-start;
}

.diverg-bar {
    height: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    transition: width 0.4s ease;
}

.diverg-bar.pos {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    color: #064e3b;
    justify-content: flex-start;
}

.diverg-bar.neg {
    background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
    color: #450a0a;
    justify-content: flex-end;
}

.diverg-bar-val {
    font-size: 9.5px;
    font-weight: 800;
}

.diverg-diff-val {
    width: 110px;
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.diverg-diff-val.pos {
    color: #34d399;
}

.diverg-diff-val.neg {
    color: #f87171;
}

/* -------------------------------------------------------------
   OPÇÃO 1: LINHA DE EVOLUÇÃO TEMPORAL DIÁRIA
   ------------------------------------------------------------- */
.svg-timeline-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 12px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.comp-timeline-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Tooltip Interativo Flutuante Apple VisionOS */
.timeline-interactive-tooltip {
    position: absolute;
    pointer-events: none;
    z-index: 40;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 9px 13px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 1px rgba(255, 255, 255, 0.25);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-width: 195px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity 0.12s ease, transform 0.08s ease, visibility 0.12s;
}

.timeline-interactive-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tl-tt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tl-tt-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -0.2px;
}

.tl-tt-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.tl-tt-badge.positive {
    background: rgba(16, 185, 129, 0.18);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.tl-tt-badge.negative {
    background: rgba(239, 68, 68, 0.18);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.tl-tt-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tl-tt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
}

.tl-tt-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94A3B8;
    font-weight: 600;
}

.tl-tt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.tl-tt-dot.green {
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.tl-tt-dot.gray {
    background: #94A3B8;
}

.tl-tt-val {
    font-weight: 800;
    font-size: 11.5px;
}

.tl-tt-val.green {
    color: #34D399;
}

.tl-tt-val.gray {
    color: #E2E8F0;
}

.tl-tt-footer {
    margin-top: 6px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
}

.tl-tt-diff-lbl {
    color: #64748B;
    font-weight: 600;
}

.tl-tt-diff-val {
    font-weight: 800;
    font-size: 11px;
}

.timeline-quick-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tl-kpi-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
}

.tl-lbl {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.tl-val {
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
}

/* -------------------------------------------------------------
   SELETOR COMPACTO DE VISUAIS (DROPDOWN + BOTÃO DE AJUDA)
   ------------------------------------------------------------- */
.comp-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comp-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 12px;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 175px;
    box-sizing: border-box;
}

#compPeriodTrigger {
    min-width: 220px;
}

#compPeriodMenu {
    min-width: 325px;
}

.comp-dropdown-trigger:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.comp-dropdown-trigger.open {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.comp-trigger-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
}

.comp-trigger-arrow {
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.comp-dropdown-trigger.open .comp-trigger-arrow {
    transform: rotate(180deg);
    color: #38bdf8;
}

.comp-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 290px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.7), 0 8px 16px -4px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comp-dropdown-item {
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border: 1px solid transparent;
}

.comp-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.comp-dropdown-item.active {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

.comp-opt-header {
    display: flex;
    align-items: center;
    gap: 7px;
}

.comp-opt-header .view-icon {
    font-size: 14px;
}

.comp-opt-header .view-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
}

.comp-dropdown-item.active .view-name {
    color: #60a5fa;
}

.comp-opt-badge-default {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: auto;
    letter-spacing: 0.3px;
}

.comp-opt-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    padding-left: 21px;
}

/* BOTÃO DE AJUDA (?) */
.btn-comp-help {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-comp-help:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* -------------------------------------------------------------
   MODAL DE AJUDA: EXPLICAÇÃO DOS 4 ESTILOS
   ------------------------------------------------------------- */
.comp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: compFadeIn 0.2s ease;
}

@keyframes compFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.comp-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.comp-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.comp-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comp-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.comp-modal-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin: 2px 0 0 0;
}

.comp-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.comp-modal-close:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.comp-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
}

.comp-help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.comp-help-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.comp-help-card:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
}

.comp-help-card.active {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.comp-help-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comp-help-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #f1f5f9;
}

.comp-help-card.active .comp-help-card-title {
    color: #60a5fa;
}

.comp-help-card-desc {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
}

.comp-help-card-bullets {
    margin: 0;
    padding-left: 18px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comp-help-card-bullets strong {
    color: #e2e8f0;
}

.comp-help-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 11.5px;
    color: #38bdf8;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.comp-help-card.active .comp-help-card-footer span {
    color: #34d399;
}

.comp-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

/* ===================================================================
 * FEEDBACK VISUAL DE CARREGAMENTO (KPIs, BOTÕES E CALCULANDO)
 * =================================================================== */
@keyframes pulseLoadingShimmer {
    0% {
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
    50% {
        opacity: 0.35;
        filter: brightness(1.25) blur(0.6px);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0px);
    }
}

@keyframes spinButtonLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.val-loading {
    animation: pulseLoadingShimmer 1.1s ease-in-out infinite !important;
    pointer-events: none !important;
    user-select: none !important;
    color: #94a3b8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
}

.btn-period.btn-loading {
    position: relative !important;
    opacity: 0.9 !important;
    pointer-events: none !important;
}

.btn-period.btn-loading::after {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spinButtonLoader 0.6s linear infinite;
    vertical-align: middle;
}

.calculando-pulse {
    animation: pulseLoadingShimmer 1.2s ease-in-out infinite !important;
    font-weight: 700;
    color: #eab308;
}

.table-loading-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulseLoadingShimmer 1.2s ease-in-out infinite;
    font-weight: 600;
}

/* ===================================================================
   SELETOR DE ESCOPO EXECUTIVO: TODA A REDE vs POR LOJA (VISIONOS)
   =================================================================== */
.comp-scope-bar {
    position: relative !important;
    z-index: 60 !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.comp-scope-bar.dropdown-open,
.comp-scope-bar:has(.comp-store-dropdown-menu[style*="display: block"]) {
    z-index: 2100 !important;
}

.comp-scope-pill-group {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 3px;
    gap: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    position: relative !important;
    z-index: 61 !important;
}

.comp-scope-bar.dropdown-open .comp-scope-pill-group,
.comp-scope-bar:has(.comp-store-dropdown-menu[style*="display: block"]) .comp-scope-pill-group {
    z-index: 2101 !important;
}

.comp-scope-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 24px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.comp-scope-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.comp-scope-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.45));
    border: 1px solid rgba(96, 165, 250, 0.45);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    font-weight: 700;
}

.comp-scope-btn .scope-icon {
    font-size: 13px;
    line-height: 1;
}

.comp-scope-btn .scope-arrow {
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.comp-scope-btn.dropdown-open .scope-arrow {
    transform: rotate(180deg);
}

.comp-scope-store-wrapper {
    position: relative !important;
    display: inline-flex;
    z-index: 62 !important;
}

.comp-scope-store-wrapper.dropdown-open,
.comp-scope-bar.dropdown-open .comp-scope-store-wrapper,
.comp-scope-bar:has(.comp-store-dropdown-menu[style*="display: block"]) .comp-scope-store-wrapper {
    z-index: 2102 !important;
}

.comp-store-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    min-width: 260px !important;
    max-width: 360px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    padding: 6px !important;
    z-index: 2500 !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
}

.comp-store-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.comp-store-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.comp-store-dropdown-item.active {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    font-weight: 700;
}

.comp-store-item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-store-item-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

/* ===================================================================
   TABELA DIÁRIA DA LOJA & DESTAQUES DE MIX (PRODUTOS EM ALTA E QUEDA)
   =================================================================== */
.comp-daily-store-section,
.comp-store-movers-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.comp-daily-mobile-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.comp-daily-card-mobile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
}

.comp-daily-card-mobile .card-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comp-daily-card-mobile .card-day-badge {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.comp-daily-card-mobile .card-weekday {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 6px;
}

.comp-daily-card-mobile .card-row-values {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.comp-daily-card-mobile .val-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.comp-daily-card-mobile .val-num {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.comp-daily-card-mobile .val-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* GRID DE PRODUTOS EM ALTA E QUEDA */
.comp-movers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}

.comp-movers-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.comp-movers-card.card-altas {
    border-top: 2px solid #10b981;
}

.comp-movers-card.card-quedas {
    border-top: 2px solid #ef4444;
}

.comp-movers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.comp-movers-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comp-movers-title-row .mover-icon {
    font-size: 12px;
    font-weight: 800;
}

.comp-movers-title-row .mover-icon.green { color: #34d399; }
.comp-movers-title-row .mover-icon.red { color: #f87171; }

.comp-movers-title-row .mover-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.mover-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mover-tag.green {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.mover-tag.red {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.comp-movers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comp-mover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}

.comp-mover-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mover-rank {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    width: 16px;
    text-align: center;
}

.mover-info {
    flex: 1;
    min-width: 0;
}

.mover-name {
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.mover-sub {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
    display: block;
}

.mover-delta-box {
    text-align: right;
    white-space: nowrap;
}

.mover-delta-pct {
    font-size: 12px;
    font-weight: 700;
    display: block;
}

.mover-delta-pct.pos { color: #34d399; }
.mover-delta-pct.neg { color: #f87171; }

.mover-delta-diff {
    font-size: 10px;
    color: #94a3b8;
    display: block;
}

@media (max-width: 768px) {
    .comp-movers-grid {
        grid-template-columns: 1fr;
    }
    .comp-daily-mobile-list {
        display: flex;
    }
}

/* ===================================================================
   CONTROLES DE GRANULARIDADE (MÊS vs DIA) NA ANÁLISE POR UNIDADE
   =================================================================== */
.comp-granularity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-gran-pill-group {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}

.comp-gran-btn {
    background: transparent;
    border: none;
    border-radius: 16px;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.comp-gran-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.comp-gran-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0.12));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.comp-month-filter-wrap {
    display: flex;
    align-items: center;
}

.comp-month-select {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.comp-month-select:hover, .comp-month-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.comp-month-select option {
    background: #0f172a;
    color: #f1f5f9;
    padding: 6px;
}

.comp-btn-drilldown {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.comp-btn-drilldown:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-1px);
}

.comp-card-btn-drill {
    margin-top: 10px;
    width: 100%;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.comp-card-btn-drill:hover, .comp-card-btn-drill:active {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
}

/* =======================================================
   SUGESTÕES DO MIDAS (TOQUE DE MIDAS) - ESTILOS GERAIS
   ======================================================= */

/* Botão no Header (Mobile & Desktop) */
.btn-sugestoes-midas-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1px solid rgba(245, 158, 11, 0.55);
    border-top: 1px solid rgba(253, 230, 138, 0.7);
    border-radius: 999px;
    color: #FDE68A;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-sugestoes-midas-top:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.5) 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-sugestoes-midas-top:active {
    transform: scale(0.95);
}

.btn-sugestoes-midas-top .btn-midas-sparkle {
    font-size: 13px;
    animation: sparklePulse 2s ease-in-out infinite;
}

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

/* Linha de Ações do Card de Loja (Desktop e Geral) */
.store-bi-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 14px;
}

.store-bi-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.store-bi-refresh-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botão na Linha de Ações do Card de Loja (Desktop) */
.btn-sugestoes-midas-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1px solid rgba(245, 158, 11, 0.55);
    border-top: 1px solid rgba(253, 230, 138, 0.7);
    border-radius: 9999px;
    color: #FDE68A;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.btn-sugestoes-midas-card:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(217, 119, 6, 0.5) 100%);
    border-color: rgba(245, 158, 11, 0.7);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.btn-sugestoes-midas-card:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.btn-sugestoes-midas-card .btn-midas-sparkle {
    font-size: 13px;
    animation: sparklePulse 2s ease-in-out infinite;
}

/* Modal Backdrop & Container */
.modal-backdrop-midas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 15, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.modal-box-midas {
    background: linear-gradient(160deg, #111726 0%, #0a0d16 100%);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-top: 2px solid #f59e0b;
    border-radius: 20px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.12);
    display: flex;
    flex-direction: column;
    animation: modalMidasPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalMidasPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-midas-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 16px;
}

.modal-midas-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f59e0b;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.modal-midas-title {
    font-size: 19px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.3px;
}

.modal-midas-sub {
    font-size: 12px;
    color: #94a3b8;
    margin: 4px 0 0;
}

.modal-midas-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-midas-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-midas-refresh:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FDE68A;
}

.btn-modal-close-midas {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-modal-close-midas:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.modal-midas-body {
    padding: 20px 24px 24px;
}

/* Grid com os 2 Cards de Sugestão */
.modal-midas-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-midas-sugestao {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card-midas-sugestao:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.25);
}

.card-midas-clima {
    border-left: 3px solid #38bdf8;
}

.card-midas-dias {
    border-left: 3px solid #f59e0b;
}

.card-midas-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge-midas {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-frio {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.badge-mes {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.badge-queda {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.card-midas-h4 {
    font-size: 15.5px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.2px;
}

.card-midas-desc {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Caixa Destaque da Dica de Ação */
.card-midas-dica-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.dica-box-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #FDE68A;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.dica-box-content {
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.45;
}

.card-midas-impacto {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.impacto-label {
    color: #94a3b8;
    font-weight: 600;
}

.impacto-val {
    color: #10b981;
    font-weight: 700;
}

/* Footer do Modal */
.modal-midas-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.midas-cache-info {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Spinner Midas */
.midas-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-top: 3px solid #f59e0b;
    border-radius: 50%;
    animation: midasSpin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes midasSpin {
    to { transform: rotate(360deg); }
}

/* ===================================================================
   USUÁRIOS & PERMISSÕES: FILTROS, BADGES COMPACTOS E POPOVER
   =================================================================== */
.badge-more-stores {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
    vertical-align: middle;
}
.badge-more-stores:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.user-stores-popover {
    position: fixed;
    z-index: 99999;
    background: #1e2433;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
    padding: 12px 14px;
    width: 290px;
    max-height: 280px;
    overflow-y: auto;
    font-size: 12.5px;
    animation: popoverFadeIn 0.15s ease-out;
}
@keyframes popoverFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.user-stores-popover-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-close-popover {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.btn-close-popover:hover {
    color: #fff;
}
.user-stores-popover-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-stores-popover-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    color: #f1f5f9;
    font-size: 12px;
}
.user-stores-popover-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ===================================================================
   MONITORAMENTO DE ACESSOS AO VIVO (SUPERVISOR)
   =================================================================== */

/* Pulsing Badge na Sidebar */
.live-pulse-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: auto;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    transition: all 0.2s ease;
}

/* Indicador de radar verde pulsante */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseRadar 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes livePulseRadar {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Barra de ação do topo */
.live-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.live-status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-updated-at {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
}

.live-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Switch estilizado para Auto-refresh */
.auto-refresh-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auto-refresh-switch input {
    display: none;
}

.auto-refresh-switch .slider {
    width: 36px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    position: relative;
    transition: background-color 0.2s;
}

.auto-refresh-switch .slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
}

.auto-refresh-switch input:checked + .slider {
    background-color: #10b981;
}

.auto-refresh-switch input:checked + .slider::before {
    transform: translateX(16px);
}

/* Barra de proporção Mobile vs Desktop */
.device-ratio-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    margin-top: 10px;
    width: 100%;
}

.ratio-fill-mobile {
    background: #3b82f6;
    height: 100%;
    transition: width 0.4s ease;
}

.ratio-fill-desktop {
    background: #a855f7;
    height: 100%;
    transition: width 0.4s ease;
}

/* Grid de cards de usuários online */
.live-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.live-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
}

.live-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    border-color: rgba(16, 185, 129, 0.4);
}

.live-user-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.live-user-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.live-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.live-user-avatar::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    bottom: -2px;
    right: -2px;
}

.live-user-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.live-user-names strong {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-user-names span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-badge-tela {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
}

.live-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.live-card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-badge-device {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
}

.live-badge-device.mobile {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.live-badge-device.desktop {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.live-badge-device.tablet {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.live-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.live-empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.live-empty-state h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.live-empty-state p {
    font-size: 13px;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}







