
:root {
    --ger-border: #e2e8f0;
    --ger-card-bg: #ffffff;
    --ger-text-main: #0f172a;
    --ger-text-muted: #64748b;
    --ger-bar-green-top: #10b981;
    --ger-bar-green-bottom: #059669;
    --ger-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.35);
}

.gerencial-container {
    background-color: #0b0f17;

    background-image: radial-gradient(circle at 50% 0%, #161f2e 0%, #0b0f17 75%);
    min-height: calc(100vh - 65px);
    padding: 1.2rem clamp(0.8rem, 1.6vw, 1.8rem) 3rem clamp(0.8rem, 1.6vw, 1.8rem);
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gerencial-filter-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 1rem 1.6rem;
    box-shadow: var(--ger-shadow);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.gerencial-filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gerencial-select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gerencial-select-wrapper label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.gerencial-select {
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background-color: #1e293b;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
    min-width: 150px;
    cursor: pointer;
    transition: all 0.2s;
}

.gerencial-select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.gerencial-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #1f2937;
}

.gerencial-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gerencial-section-step {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
    flex-shrink: 0;
}

.gerencial-section-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.gerencial-section-subtitle {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.gerencial-cockpit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(0.75rem, 1.2vw, 1.5rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1360px) {
    .gerencial-cockpit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gerencial-chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(0.9rem, 1.2vw, 1.4rem) clamp(0.75rem, 1.1vw, 1.4rem);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    container-type: inline-size;
}

.gerencial-chart-card:hover {
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.08);
}

.cockpit-card-header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 0.6rem;
}

.cockpit-card-badge {
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cockpit-card-badge.badge-vendas {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.cockpit-card-badge.badge-cupons {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.cockpit-card-badge.badge-ticket {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.gerencial-chart-main-title {
    font-size: clamp(0.85rem, 1vw, 1.02rem);
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.8rem 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-chart-title {
    font-size: 0.95rem;
    margin: 0 !important;
    text-align: left !important;
}

.gerencial-chart-board {
    width: 100%;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.chart-grid-lines {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
}

.chart-grid-line {
    width: 100%;
    height: 1px;
    background-color: #f1f5f9;
}

.chart-bars-area {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: clamp(0.25rem, 1.2cqi, 0.75rem);
    align-items: flex-end;
    height: 310px;
    position: relative;
    z-index: 2;
    padding: 0 clamp(2px, 1cqi, 8px);
    border-bottom: 2px solid #334155;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    min-width: 0;
    width: 100%;
    overflow: visible;
}

.col-val-top {
    font-size: clamp(0.68rem, 2.9cqi, 1.05rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    white-space: nowrap;
    letter-spacing: -0.025em;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    width: auto;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
    line-height: 1.1;
    z-index: 3;
}

.col-center .col-val-top {
    font-size: clamp(0.78rem, 3.4cqi, 1.22rem);
    font-weight: 800;
    color: #047857;
}

.col-val-blue {
    color: #1e40af !important;
}

.col-val-purple {
    color: #6b21a8 !important;
}

.col-bar-green {
    width: clamp(34px, 14cqi, 76px);
    max-width: 85%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
}

.col-bar-green:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

.col-center .col-bar-green {
    width: clamp(58px, 6.8vw, 108px);
    max-width: 90%;
    background: linear-gradient(180deg, #059669 0%, #047857 100%);
    box-shadow: 0 5px 14px rgba(4, 120, 87, 0.3);
}

.col-center .col-bar-green:hover {
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
}

.col-bar-blue {
    width: clamp(44px, 5.2vw, 84px);
    max-width: 85%;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.25);
}

.col-bar-blue:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.col-bar-blue.col-bar-blue-center {
    width: clamp(58px, 6.8vw, 108px);
    max-width: 90%;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 5px 14px rgba(29, 78, 216, 0.3);
}

.col-bar-blue.col-bar-blue-center:hover {
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
}

.col-bar-purple {
    width: clamp(44px, 5.2vw, 84px);
    max-width: 85%;
    background: linear-gradient(180deg, #c084fc 0%, #9333ea 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
    box-shadow: 0 3px 8px rgba(147, 51, 234, 0.25);
}

.col-bar-purple:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, #d8b4fe 0%, #7e22ce 100%);
}

.col-bar-purple.col-bar-purple-center {
    width: clamp(58px, 6.8vw, 108px);
    max-width: 90%;
    background: linear-gradient(180deg, #9333ea 0%, #7e22ce 100%);
    box-shadow: 0 5px 14px rgba(126, 34, 206, 0.3);
}

.col-bar-purple.col-bar-purple-center:hover {
    background: linear-gradient(180deg, #a855f7 0%, #6b21a8 100%);
}

.col-center-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
}

.pct-indicator {
    position: absolute;
    font-size: clamp(0.68rem, 0.78vw, 0.92rem);
    font-weight: 800;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    z-index: 5;
    transition: transform 0.2s ease;
}

.pct-indicator:hover {
    transform: scale(1.06);
}

.pct-indicator.pct-pos {
    color: #15803d;
    background: #ecfdf5;
    border: 1px solid #86efac;
}

.pct-indicator.pct-neg {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fca5a5;
}

.pct-indicator {
    position: absolute;
    font-size: clamp(0.62rem, 2cqi, 0.82rem);
    font-weight: 800;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    padding: 2px 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    z-index: 5;
    transition: transform 0.2s ease;
}

.pct-left {
    right: calc(50% + clamp(20px, 5.5cqi, 45px));
}

.pct-right {
    left: calc(50% + clamp(20px, 5.5cqi, 45px));
}

.chart-labels-area {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: clamp(0.25rem, 1.2cqi, 0.75rem);
    padding: 10px clamp(2px, 1cqi, 8px) 0 clamp(2px, 1cqi, 8px);
    z-index: 2;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.chart-col-label {
    text-align: center;
    font-size: clamp(0.68rem, 2.3cqi, 0.88rem);
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.15;
}

.col-lbl-month {
    font-size: inherit;
    font-weight: 800;
    white-space: nowrap;
}

.col-lbl-year {
    font-size: 0.85em;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

@container (max-width: 350px) {
    .col-val-top {
        font-size: 0.72rem !important;
        letter-spacing: -0.035em !important;
    }
    .col-center .col-val-top {
        font-size: 0.82rem !important;
    }
    .pct-indicator {
        font-size: 0.6rem !important;
        padding: 1px 3px !important;
    }
    .pct-left {
        right: calc(50% + 18px) !important;
    }
    .pct-right {
        left: calc(50% + 18px) !important;
    }
    .chart-col-label {
        font-size: 0.65rem !important;
    }
}

.gerencial-cockpit-2col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .gerencial-cockpit-2col-grid {
        grid-template-columns: 1fr;
    }
}

.annual-chart-card,
.line-chart-card,
.ytd-chart-card {
    max-width: 100%;
    width: 100%;
    padding: 1.4rem 1.6rem;
    box-sizing: border-box;
}

.annual-chart-board {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.chart-bars-area-2col {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 1.2rem;
    align-items: flex-end;
    height: 300px;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    border-bottom: 2px solid #334155;
}

.chart-center-indicator-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.pct-indicator-center {
    font-size: 1.05rem;
    font-weight: 800;
    white-space: nowrap;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    z-index: 5;
    transition: transform 0.2s ease;
}

.pct-indicator-center:hover {
    transform: scale(1.08);
}

.chart-labels-area-2col {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    gap: 1.2rem;
    padding: 14px 1rem 0 1rem;
    z-index: 2;
}

.store-ticket-card {
    background: #ffffff;
    border: 1px solid var(--ger-border);
    border-radius: 12px;
    box-shadow: var(--ger-shadow);
    padding: 1.4rem 1.6rem;
    box-sizing: border-box;
    width: 100%;
}

.gerencial-store-ticket-board {
    width: 100%;
    margin-top: 1rem;
    box-sizing: border-box;
}

.store-ticket-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.25fr;
    gap: 1.5rem;
    align-items: flex-end;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .store-ticket-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 640px) {
    .store-ticket-grid {
        grid-template-columns: 1fr;
    }
}

.store-ticket-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 0.8rem 0.8rem 0.8rem;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.store-ticket-unit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.store-ticket-unit.store-unit-highlight {
    background: #f5f3ff;
    border: 2px solid #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.store-ticket-unit.store-unit-rede {
    background: linear-gradient(180deg, #f8fafc 0%, #ede9fe 100%);
    border: 2px solid #6366f1;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.18);
}

.store-unit-evol {
    font-size: 0.84rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.store-bars-cluster {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    width: 100%;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 2px;
}

.store-single-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.store-bar-val {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    white-space: nowrap;
}

.store-val-mes {
    color: #7c3aed;
}

.store-val-ano {
    color: #d97706;
}

.store-bar-fill {
    width: 38px;
    border-radius: 5px 5px 0 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
    cursor: pointer;
}

.store-bar-fill:hover {
    transform: translateY(-3px);
}

.store-bar-mes {
    background: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

.store-bar-mes:hover {
    background: linear-gradient(180deg, #c084fc 0%, #7c3aed 100%);
}

.store-bar-ano {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.store-bar-ano:hover {
    background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
}

.store-unit-label {
    margin-top: 10px;
    font-size: 0.92rem;
    color: #1e293b;
    text-align: center;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.store-label-rede {
    color: #4338ca;
    font-weight: 800;
}

.line-chart-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.line-chart-top-bar .cockpit-card-badge {
    margin-bottom: 0;
}

.cockpit-card-badge.badge-line {
    background: #fdf4ff;
    color: #a21caf;
    border: 1px solid #f5d0fe;
}

.line-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.legend-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.legend-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    border-color: #94a3b8;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-fat {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.dot-cup {
    background-color: #2563eb;
    box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
}

.dot-ticket {
    background-color: #9333ea;
    box-shadow: 0 0 6px rgba(147, 51, 234, 0.5);
}

.dot-trend {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.gerencial-line-chart-board,
.ytd-chart-board {
    width: 100%;
    height: 300px;
    position: relative;
    box-sizing: border-box;
}

.gerencial-line-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.chart-svg-grid-line {
    stroke: #f1f5f9;
    stroke-dasharray: 4, 4;
    stroke-width: 1;
}

.chart-svg-axis-label {
    fill: #64748b;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    text-anchor: middle;
}

.chart-curve {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.25s, stroke-width 0.2s;
}

.chart-curve-fat {
    stroke: #10b981;
}

.chart-curve-cup {
    stroke: #2563eb;
}

.chart-curve-ticket {
    stroke: #9333ea;
}

.chart-trend-line {
    stroke: #f59e0b;
    stroke-width: 2.5;
    stroke-dasharray: 6, 4;
    transition: opacity 0.25s ease;
}

.chart-data-point {
    transition: r 0.2s, stroke-width 0.2s;
    cursor: pointer;
}

.chart-data-point:hover {
    r: 7;
}

.chart-tooltip-floating {
    position: absolute;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -115%);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    display: none;
}

.chart-tooltip-floating::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.ytd-trend-indicator.trend-up {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.ytd-trend-indicator.trend-down {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.chart-trend-line {
    stroke: #f59e0b;
    stroke-width: 2.5;
    stroke-dasharray: 6, 4;
    transition: opacity 0.25s ease;
}

.chart-data-val-label {
    fill: #0f172a;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 0 4px #ffffff;
}

.chart-data-val-label.label-fat {
    fill: #047857;
}

.chart-data-val-label.label-cup {
    fill: #1d4ed8;
}

.chart-data-val-label.label-ticket {
    fill: #7e22ce;
}

.gerencial-table-toggle-card {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.btn-toggle-table {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.6rem;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-toggle-table:hover {
    background: #273549;
    border-color: #475569;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-toggle-table svg {
    transition: transform 0.25s ease;
}

.btn-toggle-table.active svg.toggle-arrow {
    transform: rotate(180deg);
}

.gerencial-table-card {
    background: #ffffff;
    border: 1px solid var(--ger-border);
    border-radius: 12px;
    box-shadow: var(--ger-shadow);
    overflow: hidden;
    display: none;

    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gerencial-table-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--ger-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gerencial-table-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.gerencial-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.gerencial-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--ger-border);
    white-space: nowrap;
}

.gerencial-table th.th-group-main {
    background: #eff6ff;
    color: #1e40af;
    border-left: 2px solid #bfdbfe;
    border-right: 2px solid #bfdbfe;
    text-align: center;
}

.gerencial-table th.th-group-mes-ant {
    background: #f1f5f9;
    color: #334155;
    text-align: center;
}

.gerencial-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--ger-border);
    color: #0f172a;
    white-space: nowrap;
    vertical-align: middle;
}

.gerencial-table tr:hover td {
    background-color: #f8fafc;
}

.gerencial-table tr.row-total {
    background: #f1f5f9;
    font-weight: 700;
    border-top: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
}

.gerencial-table tr.row-total td {
    font-size: 0.95rem;
    color: #0f172a;
}

.gerencial-table .td-store-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.store-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.table-pct-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    margin-left: 6px;
}

.table-pct-up {
    background: #dcfce7;
    color: #15803d;
}

.table-pct-down {
    background: #fee2e2;
    color: #b91c1c;
}

.presentation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #090d16;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
    animation: presFadeIn 0.2s ease-out;
}

@keyframes presFadeIn {
    from {
        opacity: 0;
        transform: scale(0.99);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.presentation-top-bar {
    height: 52px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-shrink: 0;
    z-index: 100;
}

.presentation-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.presentation-badge {
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.presentation-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.presentation-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pres-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pres-btn:hover {
    background: #334155;
    border-color: #475569;
    color: #ffffff;
    transform: scale(1.05);
}

.pres-btn-close {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    margin-left: 6px;
}

.pres-btn-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.presentation-stage {
    flex: 1;
    width: 100%;
    height: calc(100vh - 96px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #080c14;
}

.stage-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.stage-nav-btn:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #3b82f6;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.8);
}

.stage-nav-prev {
    left: 1rem;
}

.stage-nav-next {
    right: 1rem;
}

.presentation-slide-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.presentation-slide-card {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    padding: 1rem 2.5rem;
    box-shadow: none;
    color: #f8fafc;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.presentation-bottom-bar {
    height: 44px;
    background: #111827;
    border-top: 1px solid #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-shrink: 0;
    z-index: 100;
}

.presentation-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pres-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pres-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.pres-dot.active {
    width: 28px;
    border-radius: 6px;
    background: #2563eb;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
}

.presentation-shortcuts-tip {
    font-size: 0.74rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.presentation-shortcuts-tip kbd {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
    .stage-nav-btn {
        width: 38px;
        height: 38px;
    }

    .stage-nav-prev {
        left: 0.2rem;
    }

    .stage-nav-next {
        right: 0.2rem;
    }

    .presentation-slide-card {
        padding: 0.5rem 1rem;
    }
}

.pres-slide-wrapper {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(0.5rem, 1.5vh, 1.5rem) clamp(0.5rem, 1.5vw, 2rem);
}

.pres-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 16px);
    margin-bottom: clamp(0.8rem, 2vh, 1.8rem);
    flex-shrink: 0;
    flex-wrap: wrap;
    text-align: center;
}

.pres-header-title {
    font-size: clamp(1.4rem, 2.2vw, 2.3rem);
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.cockpit-3col-chart {
    display: grid;
    grid-template-columns: 1fr 1.35fr 1fr;
    gap: clamp(1.2rem, 3vw, 3.5rem);
    width: 100%;
    max-width: 1300px;
    height: clamp(400px, 60vh, 540px);
    align-items: stretch;
    box-sizing: border-box;
    padding: 0 clamp(0.5rem, 2vw, 2rem);
}

.cockpit-2col-chart {
    display: grid;
    grid-template-columns: 1fr clamp(110px, 15vw, 220px) 1fr;
    gap: clamp(1.2rem, 3vw, 3.5rem);
    width: 100%;
    max-width: 1250px;
    height: clamp(400px, 60vh, 540px);
    align-items: stretch;
    box-sizing: border-box;
    padding: 0 clamp(0.5rem, 2vw, 2rem);
}

.cockpit-unified-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.pres-slide .col-val-top,
.cockpit-3col-chart .col-val-top,
.cockpit-2col-chart .col-val-top {
    font-size: clamp(1.4rem, 2.3vw, 2.5rem);
    font-weight: 900;
    margin-bottom: clamp(8px, 1.4vh, 18px);
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.col-val-muted {
    color: #cbd5e1;
}

.col-val-highlight-green {
    font-size: clamp(1.7rem, 2.8vw, 3.1rem);
    color: #34d399 !important;
    text-shadow: 0 0 25px rgba(52, 211, 153, 0.4);
}

.col-val-highlight-blue {
    font-size: clamp(1.7rem, 2.8vw, 3.1rem);
    color: #60a5fa !important;
    text-shadow: 0 0 25px rgba(96, 165, 250, 0.4);
}

.col-val-highlight-purple {
    font-size: clamp(1.7rem, 2.8vw, 3.1rem);
    color: #c084fc !important;
    text-shadow: 0 0 25px rgba(192, 132, 252, 0.4);
}

.col-bar-slot {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.col-bar-shape {
    width: clamp(100px, 14vw, 200px);
    border-radius: 12px 12px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 24px;
    box-sizing: border-box;
}

.col-bar-shape-center {
    width: clamp(120px, 17vw, 250px);
}

.col-bar-shape-2col {
    width: clamp(120px, 17vw, 250px);
}

.col-bar-green {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.col-bar-green-glow {
    box-shadow: 0 14px 40px rgba(5, 150, 105, 0.55);
}

.col-bar-blue {
    background: linear-gradient(180deg, #60a5fa 0%, #1d4ed8 100%);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.4);
}

.col-bar-blue-glow {
    box-shadow: 0 14px 40px rgba(29, 78, 216, 0.55);
}

.col-bar-purple {
    background: linear-gradient(180deg, #c084fc 0%, #7e22ce 100%);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
}

.col-bar-purple-glow {
    box-shadow: 0 14px 40px rgba(126, 34, 206, 0.55);
}

.col-pct-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-size: clamp(1rem, 1.4vw, 1.5rem);
    padding: clamp(0.4rem, 0.9vh, 0.6rem) clamp(0.7rem, 1.1vw, 1.2rem);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.col-pct-badge-left {
    right: calc(50% + clamp(65px, 9vw, 140px));
}

.col-pct-badge-right {
    left: calc(50% + clamp(65px, 9vw, 140px));
}

.col-baseline-bar {
    width: 100%;
    height: 3px;
    background: #475569;
    flex-shrink: 0;
    border-radius: 2px;
}

.col-lbl-text {
    font-size: clamp(1.1rem, 1.5vw, 1.65rem);
    font-weight: 700;
    color: #cbd5e1;
    margin-top: clamp(10px, 1.6vh, 20px);
    text-align: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.col-lbl-center {
    font-size: clamp(1.25rem, 1.7vw, 1.9rem);
    font-weight: 900;
    color: #f8fafc;
}

.cockpit-center-indicator-col {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-bottom: clamp(20px, 4vh, 45px);
}

.store-ticket-cards-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.6rem, 1.4vw, 1.8rem);
    width: 100%;
    max-width: 1450px;
    height: clamp(380px, 58vh, 500px);
    box-sizing: border-box;
}

.store-pres-unit-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: clamp(0.6rem, 1.2vh, 1.2rem) clamp(0.4rem, 0.8vw, 0.8rem);
    box-sizing: border-box;
}

.store-pres-rede-card {
    flex: 1.15;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.28) 0%, rgba(30, 27, 75, 0.45) 100%);
    border: 2px solid #818cf8;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.25);
}

.store-pres-bars-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 20px);
    width: 100%;
    flex: 1;
    height: 100%;
    border-bottom: 3px solid #475569;
    padding-bottom: 4px;
    box-sizing: border-box;
}

.store-pres-bars-wrap-rede {
    border-bottom: 3px solid #818cf8;
}

.store-pres-single-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.store-pres-bar-val {
    font-size: clamp(1.05rem, 1.35vw, 1.55rem);
    font-weight: 800;
    margin-bottom: 8px;
    white-space: nowrap;
}

.val-ano-ant {
    color: #fde68a;
    text-shadow: 0 0 14px rgba(253, 230, 138, 0.4);
}

.val-ano-atual {
    color: #d8b4fe;
    text-shadow: 0 0 14px rgba(216, 180, 254, 0.4);
}

.val-rede-ant {
    font-size: clamp(1.15rem, 1.5vw, 1.65rem);
    font-weight: 900;
    color: #fde68a;
    text-shadow: 0 0 16px rgba(253, 230, 138, 0.5);
}

.val-rede-atual {
    font-size: clamp(1.15rem, 1.5vw, 1.65rem);
    font-weight: 900;
    color: #a78bfa;
    text-shadow: 0 0 16px rgba(167, 139, 250, 0.5);
}

.store-pres-bar-fill {
    border-radius: 8px 8px 0 0;
    min-height: 16px;
    box-sizing: border-box;
}

.bar-fill-ano-ant {
    width: clamp(38px, 4.5vw, 62px);
    background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.45);
}

.bar-fill-ano-atual {
    width: clamp(38px, 4.5vw, 62px);
    background: linear-gradient(180deg, #c084fc 0%, #7e22ce 100%);
    box-shadow: 0 8px 25px rgba(147, 51, 234, 0.45);
}

.bar-fill-rede-ant {
    width: clamp(44px, 5.2vw, 72px);
    background: linear-gradient(180deg, #fcd34d 0%, #ea580c 100%);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.6);
}

.bar-fill-rede-atual {
    width: clamp(44px, 5.2vw, 72px);
    background: linear-gradient(180deg, #a78bfa 0%, #6366f1 100%);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

.store-pres-name {
    margin-top: clamp(8px, 1.2vh, 14px);
    font-size: clamp(0.95rem, 1.25vw, 1.35rem);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
    text-align: center;
}

.store-ticket-legend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vw, 40px);
    margin-top: clamp(0.6rem, 1.5vh, 1.2rem);
    font-weight: 800;
    font-size: clamp(0.95rem, 1.15vw, 1.25rem);
    flex-shrink: 0;
}
