/* ==============================================================================
   Data360BI — Design System & Visual Redesign (PH3A Identity)
   Cores: Coral PH3A #FF511B · Deep Navy #061838 · Slate Fundo #F8FAFC
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Poppins:wght@500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --fundo: #f8fafc;
    --superficie: #ffffff;
    --superficie-elevada: #ffffff;
    --borda: #e2e8f0;
    --borda-suave: #f1f5f9;
    --texto: #0f172a;
    --texto-suave: #475569;
    --texto-mutado: #94a3b8;
    
    /* Identidade PH3A */
    --primaria: #ff511b;       /* Laranja PH3A */
    --primaria-gradiente: linear-gradient(135deg, #ff511b 0%, #e03f0d 100%);
    --primaria-forte: #e03f0d;
    --primaria-suave: rgba(255, 81, 27, 0.1);
    --primaria-brilho: rgba(255, 81, 27, 0.25);
    
    --navy: #061838;           /* Deep Navy */
    --navy-gradiente: linear-gradient(180deg, #061838 0%, #030f24 100%);
    --navy-claro: #0e2a5e;
    
    --ok: #10b981;
    --erro: #ef4444;
    --aviso: #f59e0b;
    --info: #3b82f6;
    
    --sombra-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --sombra-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --sombra-nav: 0 4px 20px rgba(3, 15, 36, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--fundo);
    color: var(--texto);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: "Outfit", "Poppins", sans-serif;
    color: var(--navy);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: var(--primaria-gradiente);
    border-radius: 99px;
    margin-top: 8px;
}

.sub {
    color: var(--texto-suave);
    margin: 6px 0 24px;
    font-size: 0.95rem;
}

a {
    color: var(--primaria);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--primaria-forte); }

/* ---- Form Elementos ---- */
.token-row, .barra {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--superficie);
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--borda);
    box-shadow: var(--sombra-card);
}

input, textarea, select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--borda);
    background: var(--superficie);
    color: var(--texto);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}
.token-row input, .barra input, .barra select { width: auto; }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primaria);
    box-shadow: 0 0 0 3px var(--primaria-suave);
}

textarea { min-height: 60px; resize: vertical; }

label {
    display: block;
    font-size: 0.78rem;
    color: var(--texto-suave);
    margin: 10px 0 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

button {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: var(--primaria-gradiente);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: "Outfit", "Poppins", sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--primaria-suave);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--primaria-brilho);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button.sec {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--borda);
    box-shadow: none;
}

button.sec:hover {
    border-color: var(--primaria);
    color: var(--primaria);
    background: var(--primaria-suave);
    transform: translateY(-1px);
}

/* ---- Cards e Métricas ---- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.card {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--sombra-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-hover);
    border-color: color-mix(in srgb, var(--primaria) 30%, var(--borda));
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.totais {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.total {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--sombra-card);
    transition: all 0.25s ease;
}

.total::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primaria-gradiente);
}

.total:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

.total .p {
    font-size: 0.78rem;
    color: var(--texto-suave);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.total .v {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 6px;
    color: var(--navy);
    font-family: "Outfit", sans-serif;
}

/* ---- Tabelas Reformuladas ---- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--superficie);
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.88rem;
    box-shadow: var(--sombra-card);
    border: 1px solid var(--borda);
}

th {
    background: var(--navy-gradiente);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: "Outfit", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: right;
}

th:first-child, td:first-child { text-align: left; }

td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid var(--borda-suave);
    color: var(--texto);
    transition: background 0.15s ease;
}

tr:last-child td { border-bottom: none; }

tr:hover td {
    background: #f8fafc;
}

/* ---- Top Navigation Bar ---- */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 12px 28px;
    background: rgba(6, 24, 56, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--primaria);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--sombra-nav);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 26px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-produto {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.1rem;
    white-space: nowrap;
    letter-spacing: -0.02em;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-produto b { color: var(--primaria); }

/* etiqueta de versão ao lado da marca (padrão dos demais sistemas PH3A) */
.nav-versao {
    font-family: "Outfit", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
    align-self: center;
    margin-left: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    color: #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav a.ativo {
    color: #ffffff;
    background: var(--primaria-gradiente);
    box-shadow: 0 2px 10px var(--primaria-brilho);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user a {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Dropdowns Nav Topo */
.nav-drop { position: relative; }
.nav-drop > summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    color: #cbd5e1;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.nav-drop > summary::-webkit-details-marker,
.nav-drop > summary::marker { display: none; content: ""; }

.nav-drop > summary:hover, .nav-drop[open] > summary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-drop-menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 14px;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.22);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: fadeIn 0.15s ease;
}

.nav-drop-menu a {
    color: var(--navy) !important;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    padding: 9px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-drop-menu a:hover {
    color: var(--primaria) !important;
    background: rgba(99, 102, 241, 0.08) !important;
}

.nav-drop-menu a.ativo {
    color: var(--primaria) !important;
    background: rgba(99, 102, 241, 0.12) !important;
    font-weight: 700;
}

.nav-drop-menu .em-breve {
    color: var(--texto-suave);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: "Outfit", sans-serif;
    padding: 9px 14px;
    opacity: 0.65;
    cursor: default;
}

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

/* ---- Left Sidebar (Menu Esquerdo Fixo) ---- */
.app-layout {
    display: flex;
    height: calc(100vh - 58px);
    overflow: hidden;
    width: 100%;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--navy-gradiente);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    font-family: "Outfit", sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 6px 10px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--primaria);
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: "Outfit", sans-serif;
    color: #cbd5e1;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(3px);
}

.sidebar-item.ativo {
    color: #ffffff;
    background: var(--primaria-gradiente);
    box-shadow: 0 4px 14px var(--primaria-brilho);
    font-weight: 800;
}

.sidebar-drop > summary { list-style: none; cursor: pointer; }
.sidebar-drop > summary::-webkit-details-marker,
.sidebar-drop > summary::marker { display: none; content: ""; }

.sidebar-sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 14px;
    margin-top: 6px;
    margin-bottom: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    margin-left: 14px;
}

.sidebar-sub a {
    padding: 9px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    color: #94a3b8;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.sidebar-sub a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-sub a.ativo {
    color: #ffffff;
    background: rgba(255, 81, 27, 0.25);
    border: 1px solid rgba(255, 81, 27, 0.4);
    font-weight: 700;
}

.sidebar-item.em-breve {
    opacity: 0.55;
    cursor: default;
}
.sidebar-item.em-breve:hover {
    background: transparent;
    color: #cbd5e1;
    transform: none;
}

.sidebar-op {
    padding: 7px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: "Outfit", sans-serif;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-op.disabled {
    opacity: 0.45;
    cursor: default;
}

.badge-breve {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.conteudo {
    flex: 1;
    min-width: 0;
    padding: 32px 36px;
    height: 100%;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .app-layout { flex-direction: column; height: auto; overflow: visible; }
    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
    .conteudo { padding: 20px 16px; height: auto; overflow: visible; }
    /* nav topo no celular: quebra em linhas SEM estourar a largura (antes 9 itens em flex
       sem wrap geravam scroll horizontal da página). Dropdowns seguem funcionando (sem overflow:hidden). */
    .nav { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 4px 4px; }
    .nav a, .nav-drop summary, .theme-toggle-btn { padding: 7px 10px; font-size: .84rem; }
    .nav-produto { font-size: .98rem; padding-left: 10px; }
    .nav-user-nome { display: none; }   /* no mobile mostra só o 👤 (poupa espaço) */
    /* faixa de filtros/coleta: cada controle ocupa a linha toda em telas bem estreitas */
    .barra { padding: 12px 14px; }
}
@media (max-width: 430px) {
    .barra select, .barra input { flex: 1 1 100%; max-width: none; }
}

.tabbar { display: none; }
.app-scroll { display: block; }

/* ==============================================================================
   Tema Escuro (Dark Mode) & Estilos de Impressão PDF
   ============================================================================== */
[data-theme="dark"] {
    --fundo: #090d16;
    --superficie: #111827;
    --superficie-elevada: #1f2937;
    --borda: #1f2937;
    --borda-suave: #374151;
    --texto: #f3f4f6;
    --texto-suave: #9ca3af;
    --texto-mutado: #6b7280;
    --navy: #f9fafb;
    --sombra-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --sombra-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] input, 
[data-theme="dark"] select, 
[data-theme="dark"] textarea {
    background-color: #1f2937;
    color: #f3f4f6;
    border-color: #374151;
}

[data-theme="dark"] .kpi .v {
    color: #f9fafb;
}

/* Botão alternador de tema na Navbar */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

/* Estilos de Impressão / PDF */
@media print {
    .nav, .sidebar, .btn-acao, .theme-toggle-btn, .sino-btn, #navSino, .fonte-drop { 
        display: none !important; 
    }
    .app-layout { 
        display: block !important; 
        height: auto !important; 
    }
    .conteudo { 
        padding: 0 !important; 
        overflow: visible !important;
    }
    body { 
        background: white !important; 
        color: black !important; 
    }
    .rcard, .kpi { 
        break-inside: avoid; 
        border: 1px solid #ccc !important; 
        box-shadow: none !important; 
        background: white !important;
    }
    h1::after {
        display: none;
    }
}

/* ==============================================================================
   Novos Recursos Avançados — Filtros Fixos, Skeleton, Tooltips Ricas e Layout Custom
   ============================================================================== */

/* Barra de Filtros Fixa Sticky */
.barra.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 35;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--superficie) 92%, transparent);
    border-bottom: 1px solid var(--borda);
    box-shadow: 0 4px 18px -4px rgba(6, 24, 56, 0.08);
}

/* Skeleton Loader Animado */
@keyframes skeleton-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.skeleton {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    background: color-mix(in srgb, var(--borda) 60%, transparent);
    border-radius: 8px;
}

.skeleton-text {
    height: 16px;
    width: 80%;
    margin-bottom: 8px;
}

.skeleton-card {
    height: 120px;
    width: 100%;
}

/* Tooltips Ricas */
.tip-rich {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -10px);
    background: var(--navy);
    color: #ffffff;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.82rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
    z-index: 50;
    transition: opacity 0.15s ease, transform 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tip-rich.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Card Container de Tabela (rcard) */
.rcard {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: var(--sombra-card);
    margin-bottom: 24px;
}

.rcard-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--borda);
}

.rcard-h h2 {
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

/* Cards KPI e Grids (Data360BI) */
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--sombra-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
}

.kpi::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--k, var(--primaria));
}

.kpi-icon {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.4rem;
    opacity: 0.25;
}

.kpi .v {
    font-family: "Outfit", sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.kpi .l {
    font-family: "Poppins", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.kpi .s {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--texto-suave);
    margin-top: 2px;
}

/* Tabela de Dados e Indicadores (.ind-tbl) */
.ind-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.ind-tbl th {
    background: rgba(99, 102, 241, 0.05);
    color: var(--navy);
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    border-bottom: 2px solid var(--borda);
    white-space: nowrap;
}

.ind-tbl td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--borda);
    color: var(--texto);
    vertical-align: middle;
}

.ind-tbl tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

.card-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.card-btn {
    background: var(--superficie);
    border: 1px solid var(--borda);
    color: var(--texto);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.card-btn:hover {
    border-color: var(--primaria);
    color: var(--primaria);
    background: rgba(99, 102, 241, 0.06);
}

.card-btn:hover {
    background: var(--primaria-suave);
    color: var(--primaria);
    border-color: var(--primaria);
}

/* Modal de Exportação Avançada */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 24, 56, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-box {
    background: var(--superficie);
    border: 1px solid var(--borda);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

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

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
}

/* Barra de progresso de Coleta com percentual (padrão Data360BI) */
.coleta-prog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
}
.cp-trilho {
    width: 140px;
    height: 10px;
    background: var(--borda);
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.cp-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--primaria-gradiente);
    border-radius: 6px;
    transition: width 0.3s ease;
}
.cp-pct {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.82rem;
    white-space: nowrap;
}
.cp-txt {
    color: var(--texto-suave);
    font-size: 0.8rem;
    white-space: nowrap;
}
