.dashboard-page-container {
    padding: 20px;
    color: var(--cor-texto);
    max-width: 1600px;
    margin: auto;
}

.dashboard-page-container h1 {
    text-align: center;
    color: var(--cor-destaque);
    margin-bottom: 30px;
}

/* =========================================
   TOP ALERTS - CONTAINER
========================================= */
.top-alerts-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

/* =========================================
   CARD BASE
========================================= */
.alert-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 16px 18px;

    border-radius: 10px;
    border: 1px solid #2a2a2a;

    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);

    position: relative;
    overflow: hidden;

    transition: all 0.25s ease;
}

/* Glow sutil */
.alert-card::before {
    content: '';
    position: absolute;
    inset: 0;

    background: radial-gradient(circle at left, rgba(255,0,0,0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-card:hover::before {
    opacity: 1;
}

/* Hover com elevação */
.alert-card:hover {
    transform: translateY(-3px);

    border-color: rgba(255, 0, 0, 0.4);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.6),
        0 0 15px rgba(255,0,0,0.15);
}

/* =========================================
   TIPOS DE ALERTA
========================================= */

/* 🔴 CRÍTICO */
.alert-card.critical {
    border-left: 4px solid #ff1a1a;
}

.alert-card.critical::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left, rgba(255,0,0,0.12), transparent 60%);
}

/* 🟠 BAIXO */
.alert-card.low {
    border-left: 4px solid #ff6a00;
}

/* =========================================
   ÍCONE
========================================= */
.alert-icon svg {
    width: 26px;
    height: 26px;

    flex-shrink: 0;
}

/* cores dos ícones */
.alert-card.critical .alert-icon svg {
    color: #ff1a1a;
}

.alert-card.low .alert-icon svg {
    color: #ff6a00;
}

/* =========================================
   TEXTO
========================================= */
.alert-message {
    flex: 1;

    font-size: 0.95rem;
    color: #e0e0e0;

    line-height: 1.4;
}

.alert-message strong {
    color: #fff;
}

/* =========================================
   BOTÃO DE AÇÃO (se usar depois)
========================================= */
.alert-action-btn {
    background: linear-gradient(135deg, #ff1a1a, #8b0000);
    border: none;

    color: #fff;

    padding: 8px 14px;
    border-radius: 6px;

    cursor: pointer;

    font-size: 0.85rem;
    font-weight: 600;

    transition: all 0.25s ease;
}

.alert-action-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 4px 12px rgba(255,0,0,0.4),
        0 0 10px rgba(255,0,0,0.2);
}

/* =========================================
   ANIMAÇÃO PARA ALERTA CRÍTICO
========================================= */
@keyframes pulse-alert {
    0% { box-shadow: 0 0 0 rgba(255,0,0,0); }
    50% { box-shadow: 0 0 20px rgba(255,0,0,0.25); }
    100% { box-shadow: 0 0 0 rgba(255,0,0,0); }
}

.alert-card.critical {
    animation: pulse-alert 2.5s infinite;
}

/* --- Dashboard Grid --- */
/* ================================
   💳 CARD MODERNO
================================ */

.dashboard-card.alerts-summary {
    position: relative;
    background: linear-gradient(145deg, #1f1f1f, #262626);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Glow sutil */
.dashboard-card.alerts-summary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}

/* Hover premium */
.dashboard-card.alerts-summary:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ================================
   🧠 HEADER
================================ */

.dashboard-card.alerts-summary h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.health-summary-text {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 15px;
}

/* ================================
   📊 BARRA DE SAÚDE (GAMIFICADA)
================================ */

.stock-health-bar {
    display: flex;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #111;
    margin: 15px 0 20px;
}

/* segmentos */
.bar-segment {
    height: 100%;
    transition: width 0.6s ease, filter 0.3s ease;
}

/* cores com glow */
.bar-segment.critico {
    background: linear-gradient(90deg, #ff4d4d, #ff1a1a);
    box-shadow: 0 0 10px rgba(255,0,0,0.4);
}

.bar-segment.baixo {
    background: linear-gradient(90deg, #ffb84d, #ff9800);
    box-shadow: 0 0 10px rgba(255,152,0,0.3);
}

.bar-segment.normal {
    background: linear-gradient(90deg, #4CAF50, #2ecc71);
    box-shadow: 0 0 10px rgba(76,175,80,0.3);
}

/* efeito leve ao passar mouse */
.stock-health-bar:hover .bar-segment {
    filter: brightness(1.2);
}

/* ================================
   🏷️ LEGENDA MODERNA
================================ */

.health-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #ccc;
}

/* bolinhas */
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.legend-dot.critico {
    background: #ff4d4d;
}

.legend-dot.baixo {
    background: #ff9800;
}

.legend-dot.normal {
    background: #4CAF50;
}

/* layout interno */
.legend-item span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================
   🎮 GAMIFICAÇÃO (efeito de vida)
================================ */

/* animação leve da barra */
@keyframes barPulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

.bar-segment.normal {
    animation: barPulse 2.5s infinite ease-in-out;
}










/* =========================================
   KPI GERAL - CARD PRINCIPAL
========================================= */
.kpi-general-card {
    grid-column: 1 / -1;
    margin-bottom: 20px;

    text-align: center;

    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #2a2a2a;
    border-radius: 14px;

    position: relative;
    overflow: hidden;

    transition: all 0.3s ease;
}

/* Glow premium de fundo */
.kpi-general-card::before {
    content: '';
    position: absolute;
    inset: 0;

    background: radial-gradient(circle at center, rgba(15, 15, 15, 0.08), transparent 70%);
    pointer-events: none;
}

/* =========================================
   TÍTULO
========================================= */
.kpi-general-card h2 {
    justify-content: center;
    font-size: 1.4rem;

    letter-spacing: 0.5px;
    color: #eaeaea;
}

/* =========================================
   INDICADOR CENTRAL
========================================= */
.health-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin: 25px 0 15px;
    position: relative;
}

/* =========================================
   VALOR PRINCIPAL (NÚMERO)
========================================= */
.health-value {
    font-size: 4.5rem;
    font-weight: 700;

    background: linear-gradient(135deg, #ff1a1a, #8b0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    line-height: 1;

    transition: all 0.3s ease;
}

/* Glow animado leve */
.health-value {
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

/* =========================================
   STATUS (TEXTO)
========================================= */
.health-status {
    font-size: 1.1rem;
    color: #ccc;

    margin-top: 8px;

    letter-spacing: 0.3px;
}

/* =========================================
   PREVISÃO
========================================= */
.health-prediction {
    font-size: 0.95rem;
    color: #999;

    margin-top: 10px;

    padding: 8px 12px;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;

    display: inline-block;
}

/* =========================================
   ESTADOS (DINÂMICOS VIA JS)
========================================= */

/* OK (alto desempenho) */
.kpi-general-card.status-ok .health-value {
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    -webkit-background-clip: text;
}

/* Atenção */
.kpi-general-card.status-warning .health-value {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    -webkit-background-clip: text;
}

/* Crítico (🔥 destaque forte) */
.kpi-general-card.status-critical {
    animation: pulse-critical 2s infinite;
}

.kpi-general-card.status-critical .health-value {
    background: linear-gradient(135deg, #ff1a1a, #8b0000);
    -webkit-background-clip: text;
}

/* =========================================
   ANIMAÇÕES
========================================= */
@keyframes pulse-critical {
    0% {
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* =========================================
   HOVER (INTERATIVO)
========================================= */
.kpi-general-card:hover {
    transform: translateY(-3px);

    border-color: rgba(255, 0, 0, 0.4);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 0, 0, 0.1);
}











/* =========================================
   CARD - ATALHOS RÁPIDOS (PREMIUM)
========================================= */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;

    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #2a2a2a;
    border-radius: 12px;

    position: relative;
    overflow: hidden;
}

/* Glow sutil vermelho no card */
.quick-actions::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.08), transparent 60%);
    pointer-events: none;
}

/* =========================================
   GRID DE ATALHOS
========================================= */
.quick-actions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* =========================================
   BOTÃO DE ATALHO (ITEM)
========================================= */
.shortcut-btn {
    background: linear-gradient(145deg, #202020, #141414);
    border: 1px solid #2f2f2f;

    border-radius: 10px;

    padding: 12px;
    height: 50px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: #eaeaea;
    text-decoration: none;

    position: relative;
    overflow: hidden;

    transition: all 0.25s ease;
}

/* Hover com elevação */
.shortcut-btn:hover {
    transform: translateY(-3px) scale(1.01);

    border-color: rgba(255, 0, 0, 0.6);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 0, 0, 0.15);
}

/* Glow animado ao passar mouse */
.shortcut-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,0,0,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* ESSENCIAL: Impede que o brilho bloqueie os cliques */
}

.shortcut-btn:hover::after {
    opacity: 1;
}

/* =========================================
   ÍCONE
========================================= */
.shortcut-icon {
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ff1a1a;
}

/* =========================================
   TEXTO
========================================= */
.shortcut-btn span {
    font-size: 0.95rem;
    font-weight: 500;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    flex: 1;
}

/* =========================================
   AÇÕES (EDITAR / EXCLUIR)
========================================= */
.shortcut-actions {
    position: absolute;
    top: 0;
    right: 0;

    height: 100%;

    display: flex;
    align-items: center;

    background: linear-gradient(to left, rgba(0,0,0,0.9), transparent);

    transform: translateX(100%);
    transition: transform 0.25s ease;
}

.shortcut-btn:hover .shortcut-actions {
    transform: translateX(0);
}

.shortcut-actions button {
    background: none;
    border: none;

    color: #ccc;

    cursor: pointer;

    padding: 0 10px;
    height: 100%;

    display: flex;
    align-items: center;

    transition: all 0.2s;
}

.shortcut-actions button:hover {
    color: #fff;
    background: rgba(255, 0, 0, 0.2);
}

/* =========================================
   BOTÃO PRINCIPAL (+ ADICIONAR)
========================================= */
.add-shortcut-btn {
    width: 100%;
    margin-top: 10px;

    padding: 12px;

    font-weight: bold;
    letter-spacing: 0.5px;

    border-radius: 10px;

    background: linear-gradient(135deg, #ff1a1a, #8b0000);
    border: none;

    color: #fff;

    cursor: pointer;

    transition: all 0.25s ease;
}

/* Hover premium */
.add-shortcut-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(255, 0, 0, 0.4),
        0 0 12px rgba(255, 0, 0, 0.25);
}

/* Click */
.add-shortcut-btn:active {
    transform: scale(0.97);
}

/* =========================================
   RESPONSIVO
========================================= */
/* =========================================
   RESPONSIVO GERAL (MOBILE & TABLET)
========================================= */
@media (max-width: 768px) {
    /* 1. Estrutura base */
    .dashboard-page-container {
        padding: 10px;
    }

    /* 2. Cards */
    .dashboard-card, .ops-summary, .ranking-summary, .financial-value, .quick-actions {
        padding: 15px;
    }

    /* 3. Indicador de Saúde (O número gigante) */
    .health-value {
        font-size: 3.2rem;
    }

    /* 4. Listas (OPs, Ranking, Tarefas) - empilhar informações */
    .ops-summary ul li, .ranking-list li, .tasks-modal-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }

    .tasks-modal-list li .resolve-task-btn {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    /* 5. Alertas no topo */
    .alert-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    /* 6. Abas (Mais consumidos x Itens parados) */
    .card-header-tabs .tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
    }

    /* 7. Atalhos Rápidos (Hover não funciona bem no celular, botões devem ficar visíveis) */
    .quick-actions-container {
        grid-template-columns: 1fr; /* 1 atalho por linha */
    }
    
    .shortcut-btn {
        height: auto;
        padding-bottom: 35px; /* Espaço pro botão editar/excluir no rodapé do item */
    }
    
    .shortcut-actions {
        transform: translateX(0); /* Sempre visível no mobile */
        background: transparent;
        position: absolute;
        bottom: 5px;
        right: 10px;
        height: auto;
    }
    
    .shortcut-actions button {
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
        padding: 4px 8px;
        margin-left: 5px;
        color: #fff;
    }
}






/* --- Estilos para o Modal de Tarefas --- */
.modal-content.large {
    max-width: 800px; /* Um modal um pouco maior para a lista */
}

.tasks-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.tasks-modal-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tasks-modal-list li .task-text {
    flex-grow: 1;
    margin-right: 15px;
}

.tasks-modal-list li .resolve-task-btn {
    background-color: var(--cor-destaque);
    color: var(--cor-texto);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Evita que o texto quebre */
}

.tasks-modal-list li .resolve-task-btn:hover {
    background-color: #ff5252;
}

/* Estilo para tarefa resolvida */
.tasks-modal-list li.task-resolved {
    background-color: #2E7D32; /* Verde escuro para o fundo */
    color: #c8e6c9; /* Texto em verde claro */
}

.tasks-modal-list li.task-resolved .task-text {
    text-decoration: line-through;
}

.tasks-modal-list li.task-resolved .resolve-task-btn {
    background-color: #66BB6A; /* Verde mais claro */
    border-color: #66BB6A;
    color: #fff;
    cursor: default;
}

/* ================================
   💳 CARD BASE (HERDA PADRÃO PREMIUM)
================================ */

.dashboard-card.tasks-summary {
    position: relative;
    background: linear-gradient(145deg, #1f1f1f, #262626);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Glow sutil */
.dashboard-card.tasks-summary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    pointer-events: none;
}

/* Hover */
.dashboard-card.tasks-summary:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.dashboard-card {
    margin-bottom: 20px;
}

/* ================================
   🧠 HEADER
================================ */

.dashboard-card.tasks-summary h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

/* ================================
   📦 CONTEÚDO CENTRAL
================================ */

.tasks-summary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 25px 0;
    text-align: center;
    flex-grow: 1;
}

/* Ícone */
.tasks-summary-content svg {
    width: 42px;
    height: 42px;
    transition: all 0.3s ease;
}

/* Texto */
.tasks-summary-content p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ddd;
    margin: 0;
}

/* ================================
   🎮 ESTADOS GAMIFICADOS
================================ */

/* 🔴 Pendente (atenção) */
.tasks-summary.tasks-pending {
    border: 1px solid rgba(255,152,0,0.3);
    background: linear-gradient(145deg, rgba(255,152,0,0.08), rgba(0,0,0,0));
}

/* glow leve no ícone */
.tasks-summary.tasks-pending svg {
    color: #FF9800;
    filter: drop-shadow(0 0 8px rgba(255,152,0,0.5));
}

/* animação leve (respiração) */
@keyframes pulse-warning {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.tasks-summary.tasks-pending svg {
    animation: pulse-warning 2s infinite ease-in-out;
}


/* 🟢 Sem tarefas (estado positivo) */
.tasks-summary.tasks-clear {
    border: 1px solid rgba(76,175,80,0.3);
    background: linear-gradient(145deg, rgba(76,175,80,0.08), rgba(0,0,0,0));
}

.tasks-summary.tasks-clear svg {
    color: #4CAF50;
    filter: drop-shadow(0 0 8px rgba(76,175,80,0.5));
}

/* glow suave (reward feeling) */
@keyframes glow-success {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

.tasks-summary.tasks-clear svg {
    animation: glow-success 2.5s infinite ease-in-out;
}

/* ================================
   🔘 BOTÃO MODERNO
================================ */

/* BOTÃO PRINCIPAL DO CARD */
.tasks-summary .view-all-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    letter-spacing: 0.5px;

    /* Gradiente moderno */
    background: linear-gradient(135deg, var(--cor-destaque), #9c9c9c27);
    border: none;
    color: #fff;

    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);

    transition: all 0.25s ease;
}

/* HOVER */
.tasks-summary .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
}

/* ACTIVE (clique) */
.tasks-summary .view-all-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

/* hover elegante */
#view-all-tasks-btn:hover {
    background: var(--cor-destaque);
    color: #000;
    border-color: var(--cor-destaque);
    transform: translateY(-1px);
}

/* clique (feedback físico) */
#view-all-tasks-btn:active {
    transform: scale(0.97);
}






/* ---- ESTILO PARA O CARD OPs Em Andamento ---- */

/* =========================================
   CARD OPs EM ANDAMENTO (Gamificado)
========================================= */
.ops-summary {
    position: relative;
    overflow: hidden;
    padding: 20px;

    background: linear-gradient(145deg, rgba(41, 41, 41, 0.644), rgba(20, 20, 20, 0.678));
    border: 1px solid rgba(78, 6, 6, 0.2);
    border-radius: 12px;

    transition: all 0.3s ease;
}

/* Glow leve no hover */
.ops-summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(53, 53, 53, 0.473);
    border-color: rgba(61, 61, 61, 0.534);
}

/* Linha decorativa topo (efeito fintech) */
.ops-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cor-destaque), transparent);
    opacity: 0.6;
}

/* =========================================
   TOTAL DE OPs (KPI)
========================================= */
.ops-summary p {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 10px;
}

.ops-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cor-destaque);
    margin-left: 5px;
}

/* =========================================
   LISTA DE OPs
========================================= */
.ops-summary ul {
    margin-top: 10px;
}

.ops-summary ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;
    border-radius: 8px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);

    font-size: 0.95rem;

    transition: all 0.25s ease;
}

/* Hover nas linhas */
.ops-summary ul li:hover {
    background: rgba(0,198,255,0.08);
    border-color: rgba(54, 54, 54, 0.2);
    transform: translateX(3px);
}

/* Indicador visual de "em andamento" */
.ops-summary ul li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;

    margin-right: 10px;

    box-shadow: 0 0 8px rgba(76,175,80,0.6);

    animation: pulse-dot 2s infinite;
}

/* Animação do ponto ativo */
@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================
   BOTÃO (HERDA PADRÃO PREMIUM)
========================================= */
.ops-summary .view-all-btn {
    margin-top: 20px;
    width: 100%;
    padding: 12px 18px;

    font-size: 1rem;
    font-weight: 600;

    border-radius: 10px;

    background: linear-gradient(135deg, var(--cor-destaque), #11111136);
    color: #fff;
    border: none;

    box-shadow: 0 4px 12px rgba(112, 5, 5, 0.25);

    transition: all 0.25s ease;
}

.ops-summary .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(112, 5, 5, 0.25);
}

.ops-summary .view-all-btn:active {
    transform: scale(0.97);
}


/* =========================================
   CARD RANKING (ANÁLISE DE ESTOQUE)
========================================= */
.ranking-summary {
    position: relative;
    overflow: hidden;

    padding: 22px;

    background: linear-gradient(145deg, rgba(59, 59, 59, 0.212), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(192, 192, 192, 0.15);
    border-radius: 12px;

    transition: all 0.3s ease;
}

.ranking-summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(109, 109, 109, 0.15);
}

/* Linha topo estilo fintech */
.ranking-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cor-destaque), transparent);
    opacity: 0.6;
}

/* =========================================
   HEADER + TABS
========================================= */
.card-header-tabs {
    margin-bottom: 15px;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    width: fit-content;
}

/* Botões das abas */
.tab-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;

    background: transparent;
    color: #aaa;

    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* Aba ativa (pill style) */
.tab-btn.active {
    background: linear-gradient(135deg, var(--cor-destaque), #000000);
    color: #fff;

    box-shadow: 0 4px 10px rgba(49, 49, 49, 0.25);
}

/* Hover */
.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.08);
    color: var(--cor-texto);
}

/* =========================================
   CONTEÚDO DAS ABAS
========================================= */
.tab-content {
    display: none;
    margin-top: 10px;
}

.tab-content.active {
    display: block;
}

/* =========================================
   LISTA RANKING (GAMIFICADA)
========================================= */
.ranking-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    counter-reset: ranking-counter;
}

/* ITEM */
.ranking-list li {
    counter-increment: ranking-counter;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 12px;
    border-radius: 8px;

    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);

    font-size: 0.95rem;

    transition: all 0.25s ease;
}

/* Hover com vida */
.ranking-list li:hover {
    background: rgba(151, 151, 151, 0.08);
    border-color: rgba(179, 179, 179, 0.473);
    transform: translateX(3px);
}

/* NUMERAÇÃO (TOP RANK) */
.ranking-list li::before {
    content: counter(ranking-counter);

    font-weight: 700;
    font-size: 0.9rem;

    color: #fff;

    background: linear-gradient(135deg, var(--cor-destaque), #0000004d);

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    margin-right: 12px;

    box-shadow: 0 3px 8px rgba(190, 190, 190, 0.3);
}

/* TOP 1,2,3 destaque especial */
.ranking-list li:nth-child(1)::before {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #000;
}

.ranking-list li:nth-child(2)::before {
    background: linear-gradient(135deg, #C0C0C0, #9E9E9E);
    color: #000;
}

.ranking-list li:nth-child(3)::before {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
}

/* TEXTO SECUNDÁRIO */
.ranking-list li span {
    color: #aaa;
    font-size: 0.85rem;
}

/* =========================================
   BOTÃO (PADRÃO PREMIUM)
========================================= */
.ranking-summary .view-all-btn {
    margin-top: 18px;
    width: 100%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;

    padding: 12px 18px;

    font-size: 1rem;
    font-weight: 600;

    border-radius: 10px;

    background: linear-gradient(135deg, var(--cor-destaque), #00000044);
    color: #fff;
    border: none;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    transition: all 0.25s ease;
}

.ranking-summary .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
}

.ranking-summary .view-all-btn:active {
    transform: scale(0.97);
}

/* =========================================
   CARD FINANCEIRO (VALOR DO ESTOQUE)
========================================= */
.financial-value {
    position: relative;
    overflow: hidden;

    padding: 22px;

    background: linear-gradient(145deg, rgba(83, 83, 83, 0.185), rgba(0, 0, 0, 0.733));
    border: 1px solid rgba(197, 197, 197, 0.247);
    border-radius: 12px;

    transition: all 0.3s ease;
}

.financial-value:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 59, 59, 0.274);
}

/* Linha topo premium */
.financial-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cor-destaque), transparent);
    opacity: 0.7;
}

/* =========================================
   CONTAINER DO GRÁFICO
========================================= */
.financial-chart-container {
    position: relative;

    width: 85%;
    max-width: 260px;

    margin: 20px auto;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow suave atrás do gráfico */
.financial-chart-container::after {
    content: '';
    position: absolute;

    width: 140px;
    height: 140px;

    background: radial-gradient(circle, rgba(255,0,0,0.15), transparent 70%);
    border-radius: 50%;

    z-index: 0;
}

/* Canvas acima do glow */
#financial-donut-chart {
    position: relative;
    z-index: 2;
}

/* =========================================
   TEXTO CENTRAL DO GRÁFICO (KPI)
========================================= */
.chart-center-text {
    position: absolute;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* VALOR PRINCIPAL */
.chart-center-text .total-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;

    text-shadow: 0 0 10px rgba(255,0,0,0.25);
}

/* LABEL */
.chart-center-text .total-label {
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.5px;
}

/* =========================================
   TEXTO RESUMO
========================================= */
.financial-summary-text {
    text-align: center;

    font-size: 0.95rem;
    color: #bbb;

    margin-top: 12px;
    line-height: 1.4;
}

/* Destaque em vermelho elegante */
.financial-summary-text strong {
    color: #ff4d4d;
    font-weight: 600;
}

/* =========================================
   BOTÃO (PADRÃO PREMIUM VERMELHO)
========================================= */
.financial-value .view-all-btn {
    margin-top: 18px;

    width: 100%;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;

    padding: 12px 18px;

    font-size: 1rem;
    font-weight: 600;

    border-radius: 10px;

    background: linear-gradient(135deg, #ff2a2a, #4100007c);
    color: #fff;
    border: none;

    box-shadow: 0 4px 14px rgba(65, 0, 0, 0.3);

    transition: all 0.25s ease;
}

.financial-value .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(85, 0, 0, 0.45);
}

.financial-value .view-all-btn:active {
    transform: scale(0.97);
}

/* =========================================
   MICROINTERAÇÃO (RESPIRAÇÃO DO KPI)
========================================= */
@keyframes pulse-financial {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.chart-center-text .total-value {
    animation: pulse-financial 3s ease-in-out infinite;
}






/* --- Estilos para o Modal de Atalhos --- */
#shortcut-modal .modal-content {
    max-width: 500px;
}

#shortcut-modal .form-group small {
    color: #aaa;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}
