/* ==========================================================================
   abast-modern.css — Tanque & Combustível UI/UX 2.0
   Topbar executiva, pílulas com badge, cápsula de telemetria, cards de
   destino, chips de mês e grade de gráficos.

   SOMENTE APRESENTAÇÃO + classes novas. Nenhum ID, função ou evento do
   módulo antigo depende deste arquivo. Reversão: remover o <link> no
   topo de #view-abastecimento (index.php) e os <script> abast-modern.js /
   abast-charts.js.

   Regras:
   1. Nunca definir `display` em elemento que o JS mostra/esconde
      (.abast-tab-content, .abast-view-pane, #abast-cal-dia-detalhes...).
   2. `!important` só para vencer estilos inline já existentes.
   3. Cores por variáveis de tema; paleta semafórica fixa:
      verde #10b981 · amarelo #f59e0b · vermelho #ef4444 · azul #38bdf8.
   4. Movimento: 160–220ms ease-out, nada em loop; respeita
      prefers-reduced-motion.
   ========================================================================== */

#view-abastecimento {
    --ab-radius: 12px;
    --ab-radius-sm: 8px;
    --ab-glass: rgba(255, 255, 255, 0.04);
    --ab-glass-strong: rgba(255, 255, 255, 0.08);
    --ab-border: var(--border, rgba(255, 255, 255, 0.10));
    --ab-text: var(--text-color, #e2e8f0);
    --ab-muted: var(--muted, var(--text-muted, #94a3b8));
    --ab-ok: #10b981;
    --ab-warn: #f59e0b;
    --ab-bad: #ef4444;
    --ab-info: #38bdf8;
    --ab-accent: #f59e0b;
    --ab-ease: cubic-bezier(.22, .61, .36, 1);
    --ab-dur: 180ms;
}

html[data-theme="light"] #view-abastecimento,
body.theme-light #view-abastecimento {
    --ab-glass: rgba(15, 23, 42, 0.035);
    --ab-glass-strong: rgba(15, 23, 42, 0.07);
    --ab-text: var(--text-color, #0f172a);
}

@media (prefers-reduced-motion: reduce) {
    #view-abastecimento * { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ─── 1. Topbar executiva ─────────────────────────────────────────────────── */
#view-abastecimento .ab-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
#view-abastecimento .ab-topbar h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
#view-abastecimento .ab-topbar h2 i { color: var(--ab-accent); }
#view-abastecimento .ab-topbar .ab-sub {
    margin: 3px 0 0;
    color: var(--ab-muted);
    font-size: 0.82rem;
}
#view-abastecimento .ab-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
#view-abastecimento .ab-search {
    position: relative;
    min-width: 230px;
    flex: 1 1 230px;
    max-width: 340px;
}
#view-abastecimento .ab-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ab-muted);
    font-size: 0.8rem;
    pointer-events: none;
}
#view-abastecimento .ab-search input {
    width: 100%;
    height: 38px;
    padding: 0 34px 0 32px;
    border-radius: 999px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    color: var(--ab-text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--ab-dur) var(--ab-ease), box-shadow var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-search input:focus {
    border-color: var(--ab-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
#view-abastecimento .ab-search .ab-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--ab-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-search.has-value .ab-search-clear { opacity: 1; }

#view-abastecimento .ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    color: var(--ab-text);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--ab-dur) var(--ab-ease), background var(--ab-dur) var(--ab-ease), box-shadow var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-btn:hover { background: var(--ab-glass-strong); transform: translateY(-1px); }
#view-abastecimento .ab-btn:active { transform: translateY(0); }
#view-abastecimento .ab-btn:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .ab-btn-primary {
    border: none;
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #d97706);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.32);
}
#view-abastecimento .ab-btn-primary:hover { box-shadow: 0 8px 22px rgba(245, 158, 11, 0.42); background: linear-gradient(135deg, #fcd34d, #f59e0b 55%, #d97706); }
#view-abastecimento .ab-btn-secondary {
    border-color: rgba(16, 185, 129, 0.45);
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}
#view-abastecimento .ab-btn-secondary:hover { background: rgba(16, 185, 129, 0.16); }
#view-abastecimento .ab-btn-icon { width: 38px; padding: 0; justify-content: center; }

/* Menu compacto (⋯) */
#view-abastecimento .ab-menu { position: relative; }
#view-abastecimento .ab-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 240px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--ab-border);
    background: var(--card-bg, #0f172a);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 60;
    opacity: 0;
    transform: translateY(-4px) scale(.98);
    pointer-events: none;
    transition: opacity var(--ab-dur) var(--ab-ease), transform var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-menu.open .ab-menu-list { opacity: 1; transform: none; pointer-events: auto; }
html[data-theme="light"] #view-abastecimento .ab-menu-list,
body.theme-light #view-abastecimento .ab-menu-list { background: #ffffff; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14); }
#view-abastecimento .ab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--ab-text);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
#view-abastecimento .ab-menu-item i { width: 18px; text-align: center; color: var(--ab-muted); }
#view-abastecimento .ab-menu-item:hover { background: var(--ab-glass-strong); }
#view-abastecimento .ab-menu-sep { height: 1px; margin: 4px 6px; background: var(--ab-border); }

/* ─── 2. Pílulas com badge (sobre .abast-tabs existente) ───────────────────── */
#view-abastecimento .abast-tabs {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap;
    padding: 5px !important;
    margin-bottom: 18px !important;
    border: 1px solid var(--ab-border) !important;
    border-bottom: 1px solid var(--ab-border) !important;
    border-radius: 999px;
    background: var(--ab-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
#view-abastecimento .abast-tab-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: var(--ab-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: background var(--ab-dur) var(--ab-ease), color var(--ab-dur) var(--ab-ease), transform var(--ab-dur) var(--ab-ease) !important;
}
#view-abastecimento .abast-tab-btn::after { display: none !important; }
#view-abastecimento .abast-tab-btn:hover { background: var(--ab-glass-strong) !important; color: var(--ab-text) !important; }
#view-abastecimento .abast-tab-btn.active {
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: rgba(245, 158, 11, 0.55) !important;
    color: var(--ab-accent) !important;
}
#view-abastecimento .abast-tab-btn:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .abast-tab-btn .ab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--ab-glass-strong);
    color: var(--ab-text);
    transition: transform var(--ab-dur) var(--ab-ease), background var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .abast-tab-btn .ab-badge:empty { display: none; }
#view-abastecimento .abast-tab-btn .ab-badge.is-ok { background: rgba(16, 185, 129, 0.18); color: var(--ab-ok); }
#view-abastecimento .abast-tab-btn .ab-badge.is-warn { background: rgba(245, 158, 11, 0.2); color: var(--ab-warn); }
#view-abastecimento .abast-tab-btn .ab-badge.is-bad { background: rgba(239, 68, 68, 0.2); color: var(--ab-bad); }
#view-abastecimento .abast-tab-btn .ab-badge.is-info { background: rgba(56, 189, 248, 0.18); color: var(--ab-info); }
#view-abastecimento .abast-tab-btn .ab-badge.bump { animation: ab-bump 320ms var(--ab-ease); }
@keyframes ab-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
#view-abastecimento .abast-tab-btn .ab-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--ab-muted);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}
#view-abastecimento .abast-tab-btn .ab-dot.is-ok { background: var(--ab-ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
#view-abastecimento .abast-tab-btn .ab-dot.is-warn { background: var(--ab-warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22); }
#view-abastecimento .abast-tab-btn .ab-dot.is-bad { background: var(--ab-bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.22); }
#view-abastecimento .abast-tab-btn .ab-dot.is-info { background: var(--ab-info); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22); }
#view-abastecimento .abast-tab-btn.ab-tab-shortcut { margin-left: auto; }
#view-abastecimento .abast-tab-btn .ab-ext { font-size: 0.7rem; opacity: 0.7; }

/* ─── 3. Cápsula de telemetria (substitui o círculo) ──────────────────────── */
#view-abastecimento .abast-dash { align-items: stretch; }
#view-abastecimento .abast-dash .tank-container { display: none !important; } /* círculo antigo fica no DOM para o JS */
#view-abastecimento .ab-telemetria {
    flex: 1 1 380px;
    min-width: 300px;
    position: relative;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--ab-border);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(245, 158, 11, 0.12), transparent 55%),
        var(--card-bg, #1e293b);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-telemetria:hover { transform: translateY(-2px); border-color: rgba(245, 158, 11, 0.45); }
#view-abastecimento .ab-telemetria:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .ab-tel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
#view-abastecimento .ab-tel-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    color: var(--ab-muted);
}
#view-abastecimento .ab-tel-title i { color: var(--ab-accent); }
#view-abastecimento .ab-status {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 800;
    border: 1px solid transparent;
}
#view-abastecimento .ab-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
#view-abastecimento .ab-status.is-ok { color: var(--ab-ok); background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); }
#view-abastecimento .ab-status.is-warn { color: var(--ab-warn); background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); }
#view-abastecimento .ab-status.is-bad { color: var(--ab-bad); background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); }
#view-abastecimento .ab-status.is-info { color: var(--ab-info); background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.35); }

#view-abastecimento .ab-tel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
#view-abastecimento .ab-tel-kpi { min-width: 0; }
#view-abastecimento .ab-tel-kpi .lbl { font-size: 0.72rem; font-weight: 700; color: var(--ab-muted); text-transform: uppercase; letter-spacing: 0.4px; }
#view-abastecimento .ab-tel-kpi .val {
    font-size: 1.55rem; font-weight: 800; line-height: 1.15;
    font-variant-numeric: tabular-nums;
    color: var(--ab-text);
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
#view-abastecimento .ab-tel-kpi .val small { font-size: 0.8rem; font-weight: 700; color: var(--ab-muted); margin-left: 3px; }
#view-abastecimento .ab-tel-kpi .hint { font-size: 0.72rem; color: var(--ab-muted); margin-top: 2px; }
#view-abastecimento .ab-tel-kpi.is-warn .val { color: var(--ab-warn); }
#view-abastecimento .ab-tel-kpi.is-bad .val { color: var(--ab-bad); }

#view-abastecimento .ab-tel-bar {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid var(--ab-border);
}
html[data-theme="light"] #view-abastecimento .ab-tel-bar,
body.theme-light #view-abastecimento .ab-tel-bar { background: rgba(15, 23, 42, 0.08); }
#view-abastecimento .ab-tel-bar .fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #d97706, #f59e0b 60%, #fbbf24);
    transition: width 700ms var(--ab-ease), background 300ms;
}
#view-abastecimento .ab-tel-bar .fill.is-bad { background: linear-gradient(90deg, #b91c1c, #ef4444); }
#view-abastecimento .ab-tel-bar .fill.is-warn { background: linear-gradient(90deg, #d97706, #f59e0b 60%, #fbbf24); }
#view-abastecimento .ab-tel-bar .fill.is-ok { background: linear-gradient(90deg, #059669, #10b981 60%, #34d399); }
#view-abastecimento .ab-tel-bar .fill.is-info { background: linear-gradient(90deg, #0284c7, #38bdf8); }
#view-abastecimento .ab-tel-bar .tick {
    position: absolute; top: -2px; bottom: -2px; width: 2px;
    background: rgba(255, 255, 255, 0.35);
}
#view-abastecimento .ab-tel-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 8px;
    font-size: 0.76rem; color: var(--ab-muted);
}
#view-abastecimento .ab-tel-foot strong { color: var(--ab-text); font-variant-numeric: tabular-nums; }
#view-abastecimento .ab-tel-spark { height: 54px; margin: 10px -8px -10px; }
#view-abastecimento .ab-tel-spark:empty { display: none; }

/* Stats ao lado da cápsula: tabular e mais leves */
#view-abastecimento .abast-stats { flex: 1 1 420px; }
@media (min-width: 901px) {
    #view-abastecimento .abast-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
#view-abastecimento .abast-stat-card { border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16); }
#view-abastecimento .abast-stat-value { font-variant-numeric: tabular-nums; font-size: 1.55rem; }

/* ─── 4. Cards de destino (modal) ─────────────────────────────────────────── */
#modal-abast-destino {
    max-width: 760px;
    width: 95vw;
    border-radius: 18px;
    padding: 0;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    background: var(--card-bg, #0f172a);
    color: var(--text-color, #e2e8f0);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
#modal-abast-destino::backdrop { background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
#modal-abast-destino .ab-dest-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 18px 22px 10px;
}
#modal-abast-destino .ab-dest-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
#modal-abast-destino .ab-dest-head h3 i { color: #f59e0b; }
#modal-abast-destino .ab-dest-head p { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted, #94a3b8); }
#modal-abast-destino .ab-dest-close {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border, rgba(255,255,255,.1));
    background: transparent; color: var(--muted, #94a3b8); cursor: pointer;
}
#modal-abast-destino .ab-dest-group { padding: 6px 22px 4px; }
#modal-abast-destino .ab-dest-group-title {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
    color: var(--muted, #94a3b8); margin: 8px 0 8px;
    display: flex; align-items: center; gap: 8px;
}
#modal-abast-destino .ab-dest-group-title::after { content: ''; flex: 1; height: 1px; background: var(--border, rgba(255,255,255,.1)); }
#modal-abast-destino .ab-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}
#modal-abast-destino .ab-dest-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border, rgba(255,255,255,.1));
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 180ms cubic-bezier(.22,.61,.36,1), border-color 180ms, background 180ms, box-shadow 180ms;
}
#modal-abast-destino .ab-dest-card:hover,
#modal-abast-destino .ab-dest-card:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--c, #f59e0b);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    outline: none;
}
#modal-abast-destino .ab-dest-card .ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--c, #f59e0b);
    background: color-mix(in srgb, var(--c, #f59e0b) 16%, transparent);
}
#modal-abast-destino .ab-dest-card .ttl { font-size: 1rem; font-weight: 800; }
#modal-abast-destino .ab-dest-card .dsc { font-size: 0.78rem; color: var(--muted, #94a3b8); line-height: 1.4; }
#modal-abast-destino .ab-dest-card .key {
    margin-top: auto; font-size: 0.68rem; font-weight: 700; color: var(--muted, #94a3b8);
    padding: 2px 7px; border: 1px solid var(--border, rgba(255,255,255,.1)); border-radius: 6px;
}
#modal-abast-destino .ab-dest-foot { padding: 10px 22px 18px; font-size: 0.76rem; color: var(--muted, #94a3b8); }
html[data-theme="light"] #modal-abast-destino,
body.theme-light #modal-abast-destino { background: #ffffff; color: #0f172a; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
html[data-theme="light"] #modal-abast-destino .ab-dest-card,
body.theme-light #modal-abast-destino .ab-dest-card { background: #f8fafc; }
html[data-theme="light"] #modal-abast-destino .ab-dest-card:hover,
body.theme-light #modal-abast-destino .ab-dest-card:hover { background: #ffffff; }

/* ─── 5. Chips de mês semafóricos (sobre #abast-guia-organizacao-box) ─────── */
#view-abastecimento #abast-guia-organizacao-box.ab-guia {
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ab-border) !important;
    background: var(--card-bg, #1e293b) !important;
}
html[data-theme="light"] #view-abastecimento #abast-guia-organizacao-box.ab-guia,
body.theme-light #view-abastecimento #abast-guia-organizacao-box.ab-guia { background: var(--card, #ffffff) !important; }
#view-abastecimento .ab-guia-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-bottom: 10px;
}
#view-abastecimento .ab-guia-head h3 { margin: 0; font-size: 0.95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
#view-abastecimento .ab-guia-head h3 i { color: var(--ab-info); }
#view-abastecimento .ab-guia-head .ab-guia-sub { font-size: 0.76rem; color: var(--ab-muted); }
#view-abastecimento .ab-chips { display: flex; gap: 8px; flex-wrap: wrap; }
#view-abastecimento .ab-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    color: var(--ab-text);
    font-size: 0.8rem; font-weight: 700;
    cursor: pointer;
    transition: transform var(--ab-dur) var(--ab-ease), background var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-chip:hover { background: var(--ab-glass-strong); transform: translateY(-1px); }
#view-abastecimento .ab-chip:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .ab-chip .ab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ab-muted); flex-shrink: 0; }
#view-abastecimento .ab-chip.is-ok .ab-dot { background: var(--ab-ok); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
#view-abastecimento .ab-chip.is-warn .ab-dot { background: var(--ab-warn); box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
#view-abastecimento .ab-chip.is-bad .ab-dot { background: var(--ab-bad); box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
#view-abastecimento .ab-chip.is-info .ab-dot { background: var(--ab-info); box-shadow: 0 0 0 3px rgba(56,189,248,.2); }
#view-abastecimento .ab-chip.is-empty { opacity: 0.6; }
#view-abastecimento .ab-chip .ab-chip-note { font-weight: 600; color: var(--ab-muted); font-size: 0.74rem; }
#view-abastecimento .ab-chip.active { border-color: var(--ab-accent); background: rgba(245, 158, 11, 0.14); color: var(--ab-accent); }
#view-abastecimento .ab-chip.active .ab-chip-note { color: inherit; opacity: .85; }
#view-abastecimento .ab-guia-explica {
    margin-top: 10px;
    display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--ab-border);
    border-left: 4px solid var(--c, var(--ab-info));
    background: var(--ab-glass);
    font-size: 0.82rem; line-height: 1.5;
}
#view-abastecimento .ab-guia-explica .txt { flex: 1 1 260px; }
#view-abastecimento .ab-guia-explica .txt strong { color: var(--c, var(--ab-info)); }
#view-abastecimento .ab-guia-explica .nums { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.76rem; color: var(--ab-muted); font-variant-numeric: tabular-nums; }
#view-abastecimento .ab-guia-explica .nums b { color: var(--ab-text); }
#view-abastecimento .ab-guia-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
#view-abastecimento .ab-guia-acoes .btn-act { border-radius: 8px; }

/* ─── 6. Grade de gráficos (aba Consumo) ──────────────────────────────────── */
#view-abastecimento .ab-charts {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}
#view-abastecimento .ab-chart-card {
    grid-column: span 6;
    min-width: 0;
    padding: 16px 16px 8px;
    border-radius: 14px;
    border: 1px solid var(--ab-border);
    background: var(--card-bg, #1e293b);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    animation: ab-rise 260ms var(--ab-ease) both;
}
#view-abastecimento .ab-chart-card.span-12 { grid-column: span 12; }
#view-abastecimento .ab-chart-card.span-4 { grid-column: span 4; }
#view-abastecimento .ab-chart-card.span-8 { grid-column: span 8; }
@media (max-width: 1100px) {
    #view-abastecimento .ab-chart-card, #view-abastecimento .ab-chart-card.span-4, #view-abastecimento .ab-chart-card.span-8 { grid-column: span 12; }
}
@keyframes ab-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#view-abastecimento .ab-chart-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap;
    margin-bottom: 6px;
}
#view-abastecimento .ab-chart-head h4 { margin: 0; font-size: 0.95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
#view-abastecimento .ab-chart-head h4 i { color: var(--ab-accent); }
#view-abastecimento .ab-chart-head .ab-chart-sub { font-size: 0.74rem; color: var(--ab-muted); margin-top: 2px; }
#view-abastecimento .ab-chart-hint {
    font-size: 0.72rem; color: var(--ab-muted);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px; border-radius: 999px; background: var(--ab-glass);
}
#view-abastecimento .ab-chart-body { min-height: 230px; position: relative; }
#view-abastecimento .ab-chart-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 200px; color: var(--ab-muted); font-size: 0.82rem; text-align: center;
}
#view-abastecimento .ab-chart-empty i { font-size: 1.4rem; opacity: .6; }
#view-abastecimento .apexcharts-tooltip { border-radius: 10px !important; box-shadow: 0 10px 28px rgba(0,0,0,.35) !important; }
#view-abastecimento .apexcharts-menu { border-radius: 8px !important; }

/* ─── 7. Responsivo ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    #view-abastecimento .ab-topbar { align-items: stretch; }
    #view-abastecimento .ab-actions { width: 100%; }
    #view-abastecimento .ab-search { max-width: none; flex-basis: 100%; order: 10; }
    #view-abastecimento .ab-tel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #view-abastecimento .ab-tel-kpi .val { font-size: 1.25rem; }
    #view-abastecimento .abast-tab-btn.ab-tab-shortcut { margin-left: 0; }
}
@media (max-width: 560px) {
    #view-abastecimento .ab-btn span.lbl { display: none; }
    #view-abastecimento .ab-btn { padding: 0 12px; }
    #view-abastecimento .ab-tel-grid { grid-template-columns: 1fr 1fr; }
    #view-abastecimento .abast-tabs { border-radius: 16px; }
}

/* ─── 8. Painel Mestre de Encerrante da Bomba (Início do Mês) ─────────────── */
#view-abastecimento #abast-painel-bomba {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px !important;
    margin: 0 0 20px !important;
    border-radius: 16px !important;
    border: 1px solid var(--ab-border) !important;
    background: var(--card-bg, #1e293b) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
    transition: transform var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease);
}
html[data-theme="light"] #view-abastecimento #abast-painel-bomba,
body.theme-light #view-abastecimento #abast-painel-bomba {
    background: var(--card, #ffffff) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
}

#view-abastecimento .ab-bomba-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
#view-abastecimento .ab-bomba-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ab-text);
    letter-spacing: 0.02em;
}
#view-abastecimento .ab-bomba-title i { color: var(--ab-accent); }
#view-abastecimento .ab-bomba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
#view-abastecimento .ab-bomba-kpi {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-bomba-kpi:hover { background: var(--ab-glass-strong); transform: translateY(-1px); }
#view-abastecimento .ab-bomba-kpi .lbl {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ab-muted);
}
#view-abastecimento .ab-bomba-kpi .val {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ab-text);
}
#view-abastecimento .ab-bomba-kpi .sub {
    font-size: 0.73rem;
    color: var(--ab-muted);
}
#view-abastecimento .ab-bomba-banner {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
#view-abastecimento .ab-bomba-banner.is-warn {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--ab-warn);
}
#view-abastecimento .ab-bomba-banner.is-ok {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--ab-ok);
}
#view-abastecimento .ab-bomba-banner.is-info {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--ab-info);
}
#view-abastecimento .ab-bomba-banner.is-bad {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--ab-bad);
}
#view-abastecimento .ab-bomba-acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#modal-abast-bomba-mestre {
    max-width: 520px;
    width: 96vw;
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    background: var(--card-bg, #0f172a);
    color: var(--text-color, #e2e8f0);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
html[data-theme="light"] #modal-abast-bomba-mestre,
body.theme-light #modal-abast-bomba-mestre {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* ─── 9. Barra de Navegação Temporal (Ano & Meses) ────────────────────────── */
#view-abastecimento #abast-nav-temporal {
    margin: 0 0 14px 0 !important;
    padding: 14px 18px !important;
    border-radius: 16px !important;
    border: 1px solid var(--ab-border) !important;
    background: var(--card-bg, #1e293b) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--ab-dur) var(--ab-ease), box-shadow var(--ab-dur) var(--ab-ease);
}
html[data-theme="light"] #view-abastecimento #abast-nav-temporal,
body.theme-light #view-abastecimento #abast-nav-temporal {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

#view-abastecimento .ab-nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
#view-abastecimento .ab-nav-ano-destaque {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
#view-abastecimento .ab-nav-ano-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    color: var(--ab-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-nav-ano-btn:hover {
    background: var(--ab-glass-strong);
    border-color: var(--ab-accent);
    color: var(--ab-accent);
    transform: translateY(-1px);
}
#view-abastecimento .ab-nav-ano-val {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ab-text);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}
#view-abastecimento .ab-nav-ano-val i {
    color: var(--ab-accent);
    font-size: 1.1rem;
}
#view-abastecimento .ab-nav-sep {
    width: 1px;
    height: 24px;
    background: var(--ab-border);
    margin: 0 2px;
}
#view-abastecimento .ab-nav-mes-extenso {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ab-text);
    letter-spacing: 0.01em;
}
#view-abastecimento .ab-nav-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
#view-abastecimento .ab-nav-picker {
    background: var(--ab-glass);
    border: 1px solid var(--ab-border);
    color: var(--ab-text);
    padding: 4px 8px;
    font-size: 0.78rem;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}
#view-abastecimento .ab-nav-meses {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
}
@media (max-width: 960px) {
    #view-abastecimento .ab-nav-meses {
        grid-template-columns: repeat(6, 1fr);
        gap: 6px;
    }
}
@media (max-width: 540px) {
    #view-abastecimento .ab-nav-meses {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}
#view-abastecimento .ab-nav-mes-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 10px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    color: var(--ab-muted);
    cursor: pointer;
    transition: all var(--ab-dur) var(--ab-ease);
    position: relative;
    user-select: none;
}
#view-abastecimento .ab-nav-mes-btn:hover {
    background: var(--ab-glass-strong);
    color: var(--ab-text);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}
#view-abastecimento .ab-nav-mes-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.38)) !important;
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    font-weight: 800;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35) !important;
    transform: translateY(-2px);
}
#view-abastecimento .ab-nav-mes-btn.is-current-month:not(.active) {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.05);
}
#view-abastecimento .ab-nav-mes-btn .ab-mes-num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}
#view-abastecimento .ab-nav-mes-btn .ab-mes-abrev {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
#view-abastecimento .ab-nav-mes-btn.active .ab-mes-num,
#view-abastecimento .ab-nav-mes-btn.active .ab-mes-abrev {
    color: #f59e0b;
}
#view-abastecimento .ab-nav-mes-btn .ab-mes-hoje-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: #38bdf8;
    color: #000;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 1px;
    line-height: 1.1;
}
#view-abastecimento .ab-nav-mes-btn.active .ab-mes-hoje-tag {
    background: #f59e0b;
    color: #000;
}
#view-abastecimento .ab-nav-mes-btn .ab-mes-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 2px;
}
#view-abastecimento .ab-nav-mes-btn .ab-mes-dot.is-ok { background: #10b981; box-shadow: 0 0 6px #10b981; }
#view-abastecimento .ab-nav-mes-btn .ab-mes-dot.is-warn { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
#view-abastecimento .ab-nav-mes-btn .ab-mes-dot.is-bad { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
#view-abastecimento .ab-nav-mes-btn .ab-mes-dot.is-info { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }

/* ─── 10. Tabela Moderna F&A 2.0 (Densidade, Células, Menu e Drawer) ─────── */
#view-abastecimento .ab-tabela-wrap {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid var(--ab-border);
    background: var(--card-bg, #1e293b);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
html[data-theme="light"] #view-abastecimento .ab-tabela-wrap,
body.theme-light #view-abastecimento .ab-tabela-wrap {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

#view-abastecimento .ab-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--ab-border);
    background: rgba(255, 255, 255, 0.02);
    flex-wrap: wrap;
    gap: 10px;
}
#view-abastecimento .ab-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
#view-abastecimento .ab-toolbar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ab-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
#view-abastecimento .ab-toolbar-title i {
    color: var(--ab-accent);
}
#view-abastecimento .ab-density-switcher {
    display: flex;
    background: var(--ab-glass);
    border: 1px solid var(--ab-border);
    border-radius: 8px;
    padding: 2px;
}
#view-abastecimento .ab-density-btn {
    border: none;
    background: transparent;
    color: var(--ab-muted);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-density-btn:hover {
    color: var(--ab-text);
}
#view-abastecimento .ab-density-btn.active {
    background: var(--ab-accent);
    color: #000;
    font-weight: 700;
}

/* ─── Tabela Base e Densidades ─── */
#view-abastecimento .ab-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
#view-abastecimento .ab-table-modern thead th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--ab-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-bottom: 1px solid var(--ab-border);
    white-space: nowrap;
}
html[data-theme="light"] #view-abastecimento .ab-table-modern thead th,
body.theme-light #view-abastecimento .ab-table-modern thead th {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

#view-abastecimento .ab-table-modern tbody tr {
    transition: background 0.15s ease;
}
#view-abastecimento .ab-table-modern tbody tr:hover td {
    background: rgba(245, 158, 11, 0.04) !important;
}

/* Densidade Confortável (Padrão) */
#view-abastecimento .ab-table-modern.density-comfortable tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--ab-border);
    vertical-align: middle;
}
/* Densidade Compacta (Modo Planilha) */
#view-abastecimento .ab-table-modern.density-compact tbody td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--ab-border);
    vertical-align: middle;
    font-size: 0.82rem;
}
#view-abastecimento .ab-table-modern.density-compact .ab-cell-sub {
    display: none;
}
#view-abastecimento .ab-table-modern.density-compact .ab-sub-arla,
#view-abastecimento .ab-table-modern.density-compact .ab-sub-enc {
    display: none;
}

/* ─── Tipografia das Células ─── */
#view-abastecimento .ab-cell-dt {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--ab-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#view-abastecimento .ab-cell-sub {
    font-size: 0.74rem;
    color: var(--ab-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}
#view-abastecimento .ab-cell-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ab-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}
#view-abastecimento .ab-cell-vol {
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#view-abastecimento .ab-cell-vol small {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
}
#view-abastecimento .ab-cell-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ab-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#view-abastecimento .ab-cell-km {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ab-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ─── Pílulas de Tipo Semafóricas ─── */
#view-abastecimento .ab-tipo-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
}
#view-abastecimento .ab-tipo-pill.is-entrada {
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
#view-abastecimento .ab-tipo-pill.is-saida {
    background: rgba(244, 63, 94, 0.14);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
#view-abastecimento .ab-tipo-pill.is-direto {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
#view-abastecimento .ab-tipo-pill.is-terceiro {
    background: rgba(139, 92, 246, 0.14);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

#view-abastecimento .ab-micro-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}
#view-abastecimento .ab-micro-icon {
    font-size: 0.75rem;
    color: var(--ab-ok);
}
#view-abastecimento .ab-micro-tag {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
#view-abastecimento .ab-micro-tag.is-bad {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}
#view-abastecimento .ab-micro-tag.is-warn {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
}
#view-abastecimento .ab-micro-tag.is-purple {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
}

#view-abastecimento .ab-sub-arla {
    font-size: 0.70rem;
    font-weight: 700;
    color: #06b6d4;
    margin-top: 2px;
}
#view-abastecimento .ab-sub-enc {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--ab-accent);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
#view-abastecimento .ab-fin-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ─── Ações de Linha ─── */
#view-abastecimento .ab-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
#view-abastecimento .ab-action-trigger-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    color: var(--ab-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}
#view-abastecimento .ab-action-trigger-btn:hover {
    background: var(--ab-glass-strong);
    color: var(--ab-text);
    border-color: var(--ab-accent);
}
#view-abastecimento .ab-anexo-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}
#view-abastecimento .ab-anexo-icon-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* ─── Menu Flutuante de Ações da Linha (Context Menu) ─── */
.ab-row-dropdown-menu {
    position: fixed;
    z-index: 9999;
    min-width: 200px;
    border-radius: 12px;
    border: 1px solid var(--ab-border, rgba(255, 255, 255, 0.12));
    background: var(--card-bg, #0f172a);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: abDropFade 0.12s ease-out;
}
html[data-theme="light"] .ab-row-dropdown-menu,
body.theme-light .ab-row-dropdown-menu {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
@keyframes abDropFade {
    from { opacity: 0; transform: translateY(-4px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.ab-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--ab-text, #f8fafc);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease;
}
html[data-theme="light"] .ab-dropdown-item,
body.theme-light .ab-dropdown-item {
    color: #0f172a;
}
.ab-dropdown-item:hover {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.ab-dropdown-item.is-danger:hover {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
}
.ab-dropdown-item i {
    width: 16px;
    text-align: center;
}
.ab-dropdown-divider {
    height: 1px;
    background: var(--ab-border, rgba(255, 255, 255, 0.08));
    margin: 4px 6px;
}
html[data-theme="light"] .ab-dropdown-divider,
body.theme-light .ab-dropdown-divider {
    background: #e2e8f0;
}

/* ─── Drawer Lateral de Inspeção Rápida (Quick Inspector) ─── */
.ab-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.ab-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.ab-drawer-inspector {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 95vw;
    background: var(--card-bg, #0f172a);
    border-left: 1px solid var(--ab-border, rgba(255, 255, 255, 0.12));
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--ab-text, #f8fafc);
}
html[data-theme="light"] .ab-drawer-inspector,
body.theme-light .ab-drawer-inspector {
    background: #ffffff;
    border-left-color: #cbd5e1;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
    color: #0f172a;
}
.ab-drawer-inspector.is-open {
    transform: translateX(0);
}
.ab-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ab-border);
    background: rgba(255, 255, 255, 0.02);
}
.ab-drawer-title {
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ab-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--ab-border);
    background: transparent;
    color: var(--ab-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.15s ease;
}
.ab-drawer-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ab-text);
}
.ab-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ab-drawer-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ab-drawer-tile {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ab-drawer-tile .lbl {
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ab-muted);
}
.ab-drawer-tile .val {
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ab-drawer-sec {
    border-radius: 12px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ab-drawer-sec-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ab-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ab-drawer-sec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    font-size: 0.82rem;
}
.ab-drawer-field .k {
    font-size: 0.72rem;
    color: var(--ab-muted);
}
.ab-drawer-field .v {
    font-weight: 700;
    color: var(--ab-text);
    margin-top: 1px;
}
.ab-drawer-img-card {
    border-radius: 12px;
    border: 1px solid var(--ab-border);
    overflow: hidden;
    background: #000;
    text-align: center;
    cursor: pointer;
    max-height: 220px;
    position: relative;
}
.ab-drawer-img-card img {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    transition: transform 0.2s ease;
}
.ab-drawer-img-card:hover img {
    transform: scale(1.03);
}
.ab-drawer-foot {
    padding: 14px 22px;
    border-top: 1px solid var(--ab-border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}





/* ═══════════════════════════════════════════════════════════════════
   TABELA 2.0 — complementos (2026-11-17): pílulas de filtro, exportar,
   faixa de mês no tema claro, consumo, gaveta (hint/foco)
   ═══════════════════════════════════════════════════════════════════ */
#view-abastecimento .ab-filtro-select-legado { display: none; }
#view-abastecimento .ab-filtro-pills {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
#view-abastecimento .ab-fpill {
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--ab-border);
    background: var(--ab-glass);
    color: var(--ab-muted);
    font-size: 0.8rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: background var(--ab-dur) var(--ab-ease), color var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease), transform var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-fpill:hover { color: var(--ab-text); background: var(--ab-glass-strong); transform: translateY(-1px); }
#view-abastecimento .ab-fpill:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .ab-fpill.active { color: var(--ab-accent); border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.14); }
#view-abastecimento .ab-fpill .n {
    min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 800; font-variant-numeric: tabular-nums;
    background: var(--ab-glass-strong); color: inherit;
}
#view-abastecimento .ab-fpill .n:empty { display: none; }
#view-abastecimento .ab-fpill .dot { width: 8px; height: 8px; border-radius: 50%; }
#view-abastecimento .ab-fpill .dot.is-saida { background: #f43f5e; }
#view-abastecimento .ab-fpill .dot.is-entrada { background: #10b981; }
#view-abastecimento .ab-fpill .dot.is-direto { background: #f59e0b; }
#view-abastecimento .ab-fpill .dot.is-terceiro { background: #a78bfa; }
#view-abastecimento .ab-fpill.is-alert.has-items { color: #f59e0b; border-color: rgba(245, 158, 11, 0.4); }
#view-abastecimento .ab-fpill.is-alert.has-items .n { background: rgba(245, 158, 11, 0.22); }
#view-abastecimento .ab-fpill.is-ghost { border-style: dashed; height: 28px; font-size: 0.75rem; }
#view-abastecimento .ab-fpill.is-hidden { display: none; }

#view-abastecimento .ab-btn-export {
    display: inline-flex; align-items: center; gap: 7px;
    height: 32px; padding: 0 12px; border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.08);
    color: #10b981; font-weight: 700; font-size: 0.8rem; cursor: pointer;
    transition: background var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-btn-export:hover { background: rgba(16, 185, 129, 0.16); }

#view-abastecimento .ab-consumo { color: #38bdf8 !important; font-weight: 700; }

/* Faixa do mês no tema claro (o JS grava cores escuras inline) */
html[data-theme="light"] #view-abastecimento tr.abast-month-header,
body.theme-light #view-abastecimento tr.abast-month-header {
    background: #f8fafc !important;
    border-top-color: rgba(245, 158, 11, 0.45) !important;
    border-bottom-color: rgba(245, 158, 11, 0.45) !important;
}
html[data-theme="light"] #view-abastecimento tr.abast-month-header td,
body.theme-light #view-abastecimento tr.abast-month-header td { background: #f8fafc !important; }
html[data-theme="light"] #view-abastecimento tr.abast-month-header td > div > div:first-child,
body.theme-light #view-abastecimento tr.abast-month-header td > div > div:first-child { color: #0f172a !important; }

/* Gaveta: dica sob o tile e foco */
.ab-drawer-tile .hint { display: block; margin-top: 2px; font-size: 0.72rem; font-weight: 700; color: #38bdf8; }
.ab-drawer-inspector:focus { outline: none; }
.ab-drawer-close:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

@media (max-width: 700px) {
    #view-abastecimento .ab-filtro-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}


/* ═══ Padrão do veículo (antiga "trava de bomba") — textos explicativos ═══ */
#modal-config-media-veiculo .ab-padrao-intro {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; margin-bottom: 14px;
    border-radius: 10px; border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.07);
    font-size: 0.84rem; line-height: 1.5;
}
#modal-config-media-veiculo .ab-padrao-intro > i { color: #38bdf8; margin-top: 3px; }
#modal-config-media-veiculo .ab-padrao-intro a { color: #f97316; font-weight: 700; font-size: 0.8rem; }
#modal-config-media-veiculo .ab-padrao-modo {
    margin: 8px 0 6px; padding: 6px 10px; border-radius: 8px;
    background: rgba(245, 158, 11, 0.1); color: #f59e0b; font-size: 0.8rem;
}
#modal-config-media-veiculo .ab-padrao-ajuda { display: block; margin-top: 4px; color: var(--muted, #94a3b8); font-size: 0.78rem; line-height: 1.45; }
#modal-config-media-veiculo .ab-padrao-ajuda.is-ativo { color: #f59e0b; }
#modal-config-media-veiculo .ab-padrao-sempre {
    margin: 4px 0 16px; padding: 8px 10px; border-radius: 8px;
    border: 1px dashed var(--border, rgba(255,255,255,.12));
    font-size: 0.78rem; color: var(--muted, #94a3b8); line-height: 1.45;
}
#modal-config-media-veiculo .ab-padrao-sempre i { color: #10b981; margin-right: 4px; }

.ab-explica-padrao { max-width: 620px; width: 95vw; }
.ab-explica-padrao .ab-explica-body { padding: 4px 20px 14px; font-size: 0.86rem; line-height: 1.55; }
.ab-explica-padrao .ab-explica-item { display: flex; gap: 12px; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border, rgba(255,255,255,.1)); }
.ab-explica-padrao .ab-explica-item .num {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(249, 115, 22, 0.16); color: #f97316; font-weight: 800;
}
.ab-explica-padrao .ab-explica-modo,
.ab-explica-padrao .ab-explica-hist { display: flex; gap: 10px; margin: 10px 0; padding: 10px 12px; border-radius: 10px; }
.ab-explica-padrao .ab-explica-modo { background: rgba(245, 158, 11, 0.1); border-left: 4px solid #f59e0b; }
.ab-explica-padrao .ab-explica-modo > i { color: #f59e0b; margin-top: 3px; }
.ab-explica-padrao .ab-explica-hist { background: rgba(239, 68, 68, 0.07); border-left: 4px solid #ef4444; }
.ab-explica-padrao .ab-explica-hist > i { color: #ef4444; margin-top: 3px; }
.ab-explica-padrao .ab-explica-dica { margin-top: 10px; font-size: 0.8rem; color: var(--muted, #94a3b8); }
html[data-theme="light"] .ab-explica-padrao .ab-explica-item, body.theme-light .ab-explica-padrao .ab-explica-item { background: #f8fafc; }

.ab-padrao-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; cursor: help;
}
.ab-padrao-badge.is-on { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.35); }
.ab-padrao-badge.is-off { background: rgba(148, 163, 184, 0.1); color: var(--muted, #94a3b8); border: 1px dashed rgba(148, 163, 184, 0.35); }


/* ═══ Antiga aba Empresas realocada (2026-11-17) ═══ */
.ab-oculto { display: none !important; }
#abast-sec-fornecedores { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border, rgba(255,255,255,.1)); }
#abast-sec-consumo-fornecedor { margin-top: 8px; }

/* ═══ Mini-calendário de dias da barra de meses ═══ */
.ab-dia-picker {
    position: fixed; z-index: 1200; width: 300px; padding: 12px;
    border-radius: 14px; border: 1px solid var(--border, rgba(255,255,255,.12));
    background: var(--card-bg, #0f172a); color: var(--text-color, #e2e8f0);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none;
    transition: opacity 180ms cubic-bezier(.22,.61,.36,1), transform 180ms cubic-bezier(.22,.61,.36,1);
}
.ab-dia-picker.open { opacity: 1; transform: none; pointer-events: auto; }
html[data-theme="light"] .ab-dia-picker, body.theme-light .ab-dia-picker { background: #ffffff; color: #0f172a; box-shadow: 0 18px 44px rgba(0,0,0,.16); }
.ab-dia-picker .ab-dp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.92rem; }
.ab-dia-picker .ab-dp-x { width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: var(--muted, #94a3b8); cursor: pointer; }
.ab-dia-picker .ab-dp-x:hover { background: rgba(148,163,184,.15); }
.ab-dia-picker .ab-dp-semana, .ab-dia-picker .ab-dp-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ab-dia-picker .ab-dp-semana span { text-align: center; font-size: 0.68rem; font-weight: 800; color: var(--muted, #94a3b8); padding: 2px 0; }
.ab-dia-picker .ab-dp-dia {
    position: relative; height: 36px; border-radius: 9px; border: 1px solid transparent;
    background: rgba(148, 163, 184, 0.06); color: inherit; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    font-variant-numeric: tabular-nums; transition: background 140ms, border-color 140ms, transform 140ms;
}
.ab-dia-picker .ab-dp-dia .n { font-size: 0.82rem; font-weight: 700; line-height: 1; }
.ab-dia-picker .ab-dp-dia .q { font-size: 0.6rem; font-weight: 800; color: #f59e0b; line-height: 1; margin-top: 2px; }
.ab-dia-picker .ab-dp-dia:hover { background: rgba(245, 158, 11, 0.14); transform: translateY(-1px); }
.ab-dia-picker .ab-dp-dia:focus-visible { outline: 2px solid #f59e0b; outline-offset: 1px; }
.ab-dia-picker .ab-dp-dia.is-futuro { opacity: 0.4; }
.ab-dia-picker .ab-dp-dia.is-hoje { border-color: #38bdf8; box-shadow: inset 0 0 0 1px #38bdf8; }
.ab-dia-picker .ab-dp-dia.is-hoje::after { content: 'hoje'; position: absolute; top: -7px; font-size: 0.5rem; font-weight: 800; background: #38bdf8; color: #0f172a; padding: 0 4px; border-radius: 4px; }
.ab-dia-picker .ab-dp-dia.is-sel { background: #f59e0b; color: #0f172a; border-color: #f59e0b; }
.ab-dia-picker .ab-dp-dia.is-sel .q { color: #0f172a; }
.ab-dia-picker .ab-dp-foot { display: flex; gap: 6px; margin-top: 10px; }
.ab-dia-picker .ab-dp-btn {
    flex: 1; height: 32px; border-radius: 8px; border: 1px solid var(--border, rgba(255,255,255,.12));
    background: rgba(148,163,184,.06); color: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer;
}
.ab-dia-picker .ab-dp-btn:hover { background: rgba(148,163,184,.14); }
.ab-dia-picker .ab-dp-btn.is-on { border-color: rgba(245,158,11,.55); color: #f59e0b; background: rgba(245,158,11,.12); }
.ab-dia-picker .ab-dp-carregando { margin-top: 8px; font-size: 0.74rem; color: var(--muted, #94a3b8); text-align: center; }
@media (prefers-reduced-motion: reduce) { .ab-dia-picker, .ab-dia-picker .ab-dp-dia { transition: none; } }

/* chip do dia filtrado na barra de meses */
#view-abastecimento .ab-dia-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 4px 3px 10px; border-radius: 999px;
    background: rgba(245, 158, 11, 0.16); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.45);
    font-size: 0.76rem; font-weight: 800;
}
#view-abastecimento .ab-dia-chip button { width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(245,158,11,.2); color: inherit; cursor: pointer; font-size: 0.7rem; }
#view-abastecimento .ab-dia-chip button:hover { background: rgba(245,158,11,.35); }


/* ═══ Período personalizado (2026-11-17) ═══ */
#view-abastecimento .ab-nav-periodo-btn { font-size: 0.75rem; padding: 5px 12px; border-radius: 8px; font-weight: 700; }
#view-abastecimento .ab-nav-periodo-btn.active { background: #f59e0b !important; color: #000 !important; border-color: #f59e0b !important; }
#view-abastecimento .ab-nav-mes-btn.in-periodo { border-color: rgba(245, 158, 11, 0.55) !important; background: rgba(245, 158, 11, 0.1) !important; }
#view-abastecimento .ab-periodo-x {
    width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(56, 189, 248, 0.18); color: #38bdf8; font-size: 0.72rem;
}
#view-abastecimento .ab-periodo-x:hover { background: rgba(56, 189, 248, 0.32); }

.ab-dia-picker { width: 316px; }
.ab-dia-picker .ab-dp-modos { display: flex; gap: 4px; align-items: center; margin-bottom: 10px; padding: 3px; border-radius: 10px; background: rgba(148,163,184,.08); }
.ab-dia-picker .ab-dp-modos [data-modo] {
    flex: 1; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--muted, #94a3b8);
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.ab-dia-picker .ab-dp-modos [data-modo].is-on { background: #f59e0b; color: #0f172a; }
.ab-dia-picker .ab-dp-head { justify-content: center; gap: 10px; }
.ab-dia-picker .ab-dp-head strong { min-width: 150px; text-align: center; }
.ab-dia-picker .ab-dp-nav { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border, rgba(255,255,255,.12)); background: transparent; color: inherit; cursor: pointer; }
.ab-dia-picker .ab-dp-nav:hover { background: rgba(148,163,184,.14); }
.ab-dia-picker .ab-dp-nav[hidden] { visibility: hidden; display: inline-block; }
.ab-dia-picker .ab-dp-dia.is-entre { background: rgba(245, 158, 11, 0.18); border-radius: 4px; }
.ab-dia-picker .ab-dp-dia.is-ini, .ab-dia-picker .ab-dp-dia.is-fim { background: #f59e0b; color: #0f172a; border-color: #f59e0b; }
.ab-dia-picker .ab-dp-dia.is-ini .q, .ab-dia-picker .ab-dp-dia.is-fim .q { color: #0f172a; }
.ab-dia-picker .ab-dp-dica { margin-top: 10px; font-size: 0.76rem; line-height: 1.45; color: var(--muted, #94a3b8); }
.ab-dia-picker .ab-dp-dica strong { color: var(--text-color, #e2e8f0); }
html[data-theme="light"] .ab-dia-picker .ab-dp-dica strong, body.theme-light .ab-dia-picker .ab-dp-dica strong { color: #0f172a; }
.ab-dia-picker .ab-dp-datas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.ab-dia-picker .ab-dp-datas label { display: flex; flex-direction: column; gap: 2px; font-size: 0.68rem; font-weight: 800; color: var(--muted, #94a3b8); text-transform: uppercase; }
.ab-dia-picker .ab-dp-datas input {
    height: 30px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border, rgba(255,255,255,.12));
    background: rgba(148,163,184,.06); color: inherit; font-size: 0.78rem; color-scheme: dark;
}
html[data-theme="light"] .ab-dia-picker .ab-dp-datas input, body.theme-light .ab-dia-picker .ab-dp-datas input { color-scheme: light; }
.ab-dia-picker .ab-dp-atalhos { display: flex; gap: 4px; margin-top: 8px; }
.ab-dia-picker .ab-dp-atalhos button {
    flex: 1; height: 26px; border-radius: 999px; border: 1px dashed var(--border, rgba(255,255,255,.15));
    background: transparent; color: var(--muted, #94a3b8); font-size: 0.7rem; font-weight: 700; cursor: pointer;
}
.ab-dia-picker .ab-dp-atalhos button:hover { color: #f59e0b; border-color: rgba(245,158,11,.5); }
.ab-dia-picker .ab-dp-btn.is-primario { background: #f59e0b; color: #0f172a; border-color: #f59e0b; }
.ab-dia-picker .ab-dp-btn.is-primario:disabled { opacity: 0.45; cursor: not-allowed; }


/* ═══ Período com mais de um mês: faixa animada ligando os meses ═══
   --per-i = posição do mês no intervalo → animação em cascata (início → fim). */
#view-abastecimento .ab-nav-mes-btn.per-multi {
    border-color: rgba(245, 158, 11, 0.6) !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.06)) !important;
    color: var(--ab-text) !important;
    overflow: visible;
    animation: ab-per-pop 420ms cubic-bezier(.22,.61,.36,1) both;
    animation-delay: calc(var(--per-i, 0) * 110ms);
}
#view-abastecimento .ab-nav-mes-btn.per-multi .ab-mes-abrev { color: #f59e0b; }
#view-abastecimento .ab-nav-mes-btn.per-ini,
#view-abastecimento .ab-nav-mes-btn.per-fim {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(217, 119, 6, 0.4)) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important;
}
/* trilho que liga um mês ao próximo (atravessa o espaço de 6px entre os botões) */
#view-abastecimento .ab-nav-mes-btn.per-multi::after {
    content: '';
    position: absolute;
    left: -1px;
    right: -8px;
    bottom: -3px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    transform-origin: left center;
    transform: scaleX(0);
    animation: ab-per-trilho 260ms cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: calc(var(--per-i, 0) * 110ms + 80ms);
    pointer-events: none;
    z-index: 1;
}
#view-abastecimento .ab-nav-mes-btn.per-ini::after { left: 50%; border-radius: 2px 0 0 2px; }
#view-abastecimento .ab-nav-mes-btn.per-fim::after { right: 50%; }
/* pontos de início e fim sobre o trilho */
#view-abastecimento .ab-nav-mes-btn.per-ini::before,
#view-abastecimento .ab-nav-mes-btn.per-fim::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px; height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
    z-index: 2;
    transform: scale(0);
    animation: ab-per-ponto 300ms cubic-bezier(.34,1.56,.64,1) forwards;
    animation-delay: calc(var(--per-i, 0) * 110ms + 120ms);
}
#view-abastecimento .ab-nav-mes-btn .ab-per-tag {
    font-size: 0.58rem; font-weight: 800; letter-spacing: 0.03em;
    padding: 1px 5px; border-radius: 4px;
    background: #f59e0b; color: #0f172a;
    animation: ab-per-tag 300ms ease-out both;
    animation-delay: calc(var(--per-i, 0) * 110ms + 160ms);
}
#view-abastecimento .ab-nav-mes-btn .ab-per-tag.is-meio { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
/* quando a grade quebra linha (telas estreitas) o trilho não sai do botão */
@media (max-width: 960px) {
    #view-abastecimento .ab-nav-mes-btn.per-multi::after { right: -1px; }
    #view-abastecimento .ab-nav-mes-btn.per-fim::after { right: 50%; }
}
@keyframes ab-per-pop {
    0% { transform: translateY(0) scale(1); }
    45% { transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35); }
    100% { transform: translateY(0) scale(1); }
}
@keyframes ab-per-trilho { to { transform: scaleX(1); } }
@keyframes ab-per-ponto { to { transform: scale(1); } }
@keyframes ab-per-tag { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    #view-abastecimento .ab-nav-mes-btn.per-multi,
    #view-abastecimento .ab-nav-mes-btn .ab-per-tag { animation: none; }
    #view-abastecimento .ab-nav-mes-btn.per-multi::after,
    #view-abastecimento .ab-nav-mes-btn.per-ini::before,
    #view-abastecimento .ab-nav-mes-btn.per-fim::before { animation: none; transform: none; }
}

#view-abastecimento .ab-nav-meses { padding-bottom: 6px; }


/* ═══ Topo limpo (2026-11-17): Excel/PDF na barra do extrato, link de capacidade ═══ */
#view-abastecimento .ab-hub-export-slot { display: inline-flex; }
#view-abastecimento .ab-hub-export-slot .btn-hub-export { height: 32px; padding: 0 10px !important; font-size: 0.78rem !important; }
#view-abastecimento .ab-tel-link { color: #f59e0b; font-weight: 700; text-decoration: none; }
#view-abastecimento .ab-tel-link:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════════
   SUB-NAVEGAÇÃO DO TANQUE · ABASTECIMENTOS DIRETOS · FROTAS (2026-11-17)
   Apenas classes novas. Nenhum display é definido em elemento que o JS
   mostra/esconde: a visibilidade das sub-visões usa .ab-oculto.
   ═══════════════════════════════════════════════════════════════════ */
#view-abastecimento .ab-subnav {
    display: flex; flex-wrap: wrap; gap: 4px; padding: 4px;
    width: fit-content; max-width: 100%; margin: 0 0 14px;
    border: 1px solid var(--ab-border); border-radius: 12px; background: var(--ab-glass);
}
#view-abastecimento .ab-subnav-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 9px; background: transparent;
    color: var(--ab-muted); font-size: 0.84rem; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: background var(--ab-dur) var(--ab-ease), color var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-subnav-btn:hover { color: var(--ab-text); background: var(--ab-glass-strong); }
#view-abastecimento .ab-subnav-btn:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .ab-subnav-btn.active { color: var(--ab-accent); background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.45); }
#view-abastecimento .ab-subnav-btn.is-saida.active { color: #f43f5e; background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.4); }
#view-abastecimento .ab-subnav-btn.is-entrada.active { color: #10b981; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4); }
#view-abastecimento .ab-subnav-btn .n {
    min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 800; font-variant-numeric: tabular-nums;
    background: var(--ab-glass-strong); color: inherit;
}
#view-abastecimento .ab-subnav-btn .n:empty { display: none; }

/* sub-visões (Saídas / Entradas) dentro do card do extrato: sem 2º cartão */
#view-abastecimento .ab-subpane { padding: 2px 0 0; }

/* cabeçalho padrão das abas novas */
#view-abastecimento .ab-sec-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
#view-abastecimento .ab-sec-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
#view-abastecimento .ab-sec-head p { margin: 4px 0 0; max-width: 64ch; color: var(--ab-muted); font-size: 0.85rem; line-height: 1.45; }
#view-abastecimento .ab-sec-acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#view-abastecimento .ab-busca { width: 270px; max-width: 100%; padding: 7px 12px; font-size: 0.82rem; border-radius: 8px; }
#view-abastecimento .ab-link-acento { color: #f97316; font-weight: 700; white-space: nowrap; }
#view-abastecimento .ab-periodo-tag {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
    border-radius: 999px; border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.1); color: #38bdf8; font-size: 0.78rem; font-weight: 700;
}
#view-abastecimento .ab-periodo-tag:empty { display: none; }

/* KPIs */
#view-abastecimento .ab-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
#view-abastecimento .ab-kpi { background: var(--ab-glass); border: 1px solid var(--ab-border); border-radius: 10px; padding: 10px 14px; }
#view-abastecimento .ab-kpi .lbl { font-size: 0.72rem; color: var(--ab-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.03em; }
#view-abastecimento .ab-kpi .val { font-size: 1.25rem; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
#view-abastecimento .ab-kpi .sub { display: block; margin-top: 1px; font-size: 0.72rem; color: var(--ab-muted); }
#view-abastecimento .ab-kpi .sub:empty { display: none; }

/* fornecedores (Abastecimentos Diretos) */
#view-abastecimento .ab-chips-forn { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#view-abastecimento .ab-chips-forn:empty { display: none; }
#view-abastecimento .ab-chip-forn {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
    border-radius: 10px; border: 1px solid rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08);
    font-size: 0.8rem; color: var(--ab-text);
}
#view-abastecimento .ab-chip-forn strong { color: #f59e0b; font-weight: 800; }
#view-abastecimento .ab-chip-forn small { color: var(--ab-muted); font-size: 0.74rem; }

/* tabela de frotas */
#view-abastecimento .ab-frota-cell { display: flex; align-items: center; gap: 10px; }
#view-abastecimento .ab-frota-ico {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
    background: rgba(249, 115, 22, 0.12); color: #f97316;
}
#view-abastecimento .ab-frota-ico.is-terceiro { background: rgba(139, 92, 246, 0.14); color: #a78bfa; }
#view-abastecimento .ab-frota-ico.is-fora { background: rgba(148, 163, 184, 0.14); color: #94a3b8; }
#view-abastecimento .ab-placa {
    display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 0.7rem; font-weight: 800;
    letter-spacing: 0.04em; background: var(--ab-glass-strong); color: var(--ab-text);
}
#view-abastecimento .ab-cat-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px;
    font-size: 0.72rem; font-weight: 700; background: var(--ab-glass-strong); color: var(--ab-muted); white-space: nowrap;
}
#view-abastecimento .ab-cat-pill.is-fora { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
#view-abastecimento .ab-muted { color: var(--ab-muted); font-size: 0.8rem; }
#view-abastecimento .ab-cons { font-weight: 800; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
#view-abastecimento .ab-cons.is-ok { color: #10b981; }
#view-abastecimento .ab-cons.is-warn { color: #f59e0b; }
#view-abastecimento .ab-cons.is-bad { color: #ef4444; }
#view-abastecimento .ab-frotas-vazio { text-align: center; color: var(--ab-muted); padding: 26px 16px; }
#view-abastecimento .ab-frotas-vazio i { display: block; font-size: 1.8rem; opacity: 0.5; margin-bottom: 8px; }
#view-abastecimento .ab-mini-btn {
    width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--ab-border); background: var(--ab-glass);
    color: var(--ab-muted); cursor: pointer; font-size: 0.82rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: color var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-mini-btn:hover:not(:disabled) { color: var(--ab-text); border-color: var(--ab-accent); }
#view-abastecimento .ab-mini-btn:disabled { opacity: 0.35; cursor: not-allowed; }
#view-abastecimento .ab-mini-btn:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .ab-acoes-linha { display: inline-flex; gap: 6px; }
#view-abastecimento .ab-sec-terceiros { margin-top: 24px; }
#view-abastecimento .ab-sec-sub { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
#view-abastecimento .ab-sec-sub h4 { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
#view-abastecimento .ab-sec-sub span { font-size: 0.8rem; color: var(--ab-muted); }
#view-abastecimento .ab-maq-tag {
    display: inline-block; margin: 0 4px 3px 0; padding: 1px 8px; border-radius: 5px;
    font-size: 0.72rem; background: rgba(139, 92, 246, 0.12); color: #a78bfa; font-weight: 700;
}

@media (max-width: 700px) {
    #view-abastecimento .ab-subnav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    #view-abastecimento .ab-busca { width: 100%; }
}


/* ═══ Barra de ações ancorada abaixo da aba "Tanque" (2026-11-17) ═══ */
#view-abastecimento .abast-tabs { margin-bottom: 0 !important; }
#view-abastecimento .ab-tanque-acoes-bar {
    position: relative;
    display: flex; gap: 10px; flex-wrap: wrap;
    margin: 12px 0 18px; padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    animation: ab-rise 220ms var(--ab-ease) both;
}
/* setinha apontando para a aba Tanque (1ª pílula) */
#view-abastecimento .ab-tanque-acoes-bar::before {
    content: ''; position: absolute; top: -7px; left: 44px;
    width: 12px; height: 12px; transform: rotate(45deg);
    background: rgba(245, 158, 11, 0.12);
    border-left: 1px solid rgba(245, 158, 11, 0.35);
    border-top: 1px solid rgba(245, 158, 11, 0.35);
    backdrop-filter: blur(6px);
}
#view-abastecimento .ab-acao-btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 6px 16px 6px 12px;
    border-radius: 11px; cursor: pointer; text-align: left;
    font-size: 0.86rem; color: var(--ab-text);
    border: 1px solid var(--ab-border); background: var(--ab-glass);
    transition: transform var(--ab-dur) var(--ab-ease), box-shadow var(--ab-dur) var(--ab-ease), background var(--ab-dur) var(--ab-ease), border-color var(--ab-dur) var(--ab-ease);
}
#view-abastecimento .ab-acao-btn > i {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
#view-abastecimento .ab-acao-btn > span { display: flex; flex-direction: column; line-height: 1.2; }
#view-abastecimento .ab-acao-btn strong { font-weight: 800; }
#view-abastecimento .ab-acao-btn small { font-size: 0.72rem; color: var(--ab-muted); font-weight: 600; }
#view-abastecimento .ab-acao-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
#view-abastecimento .ab-acao-btn:focus-visible { outline: 2px solid var(--ab-accent); outline-offset: 2px; }
#view-abastecimento .ab-acao-btn.is-entrada > i { background: rgba(16, 185, 129, 0.16); color: #10b981; }
#view-abastecimento .ab-acao-btn.is-entrada:hover { border-color: rgba(16, 185, 129, 0.55); }
#view-abastecimento .ab-acao-btn.is-saida { border: none; background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #d97706); color: #0f172a; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3); }
#view-abastecimento .ab-acao-btn.is-saida > i { background: rgba(15, 23, 42, 0.14); color: #0f172a; }
#view-abastecimento .ab-acao-btn.is-saida small { color: rgba(15, 23, 42, 0.7); }
#view-abastecimento .ab-acao-btn.is-terceiro > i { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }
#view-abastecimento .ab-acao-btn.is-terceiro:hover { border-color: rgba(167, 139, 250, 0.55); }
#view-abastecimento .ab-acao-btn .ab-badge {
    position: absolute; top: -8px; right: -8px;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800; font-variant-numeric: tabular-nums;
    background: #f59e0b; color: #0f172a; box-shadow: 0 0 0 2px var(--card-bg, #0f172a);
}
#view-abastecimento .ab-acao-btn .ab-badge:empty { display: none; }
@media (max-width: 700px) {
    #view-abastecimento .ab-acao-btn { flex: 1 1 100%; }
}


/* ═══ Entrada no tanque: fornecedor vinculado ao cadastro (2026-11-17) ═══ */
#modal-abast-entrada .ab-forn-linha { display: flex; gap: 8px; align-items: stretch; }
#modal-abast-entrada .ab-forn-linha input { flex: 1; min-width: 0; }
#modal-abast-entrada .ab-forn-buscar {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 0 14px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.82rem;
    border: 1px solid rgba(2, 132, 199, 0.55); background: rgba(2, 132, 199, 0.12); color: #38bdf8;
}
#modal-abast-entrada .ab-forn-buscar:hover { background: rgba(2, 132, 199, 0.22); }
#modal-abast-entrada .ab-forn-status {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 6px; padding: 7px 10px; border-radius: 8px;
    font-size: 0.78rem; line-height: 1.4; color: var(--muted, #94a3b8);
    background: rgba(148, 163, 184, 0.08); border: 1px solid rgba(148, 163, 184, 0.18);
}
#modal-abast-entrada .ab-forn-status > span { flex: 1 1 220px; }
#modal-abast-entrada .ab-forn-status.is-ok { color: #10b981; background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.3); }
#modal-abast-entrada .ab-forn-status.is-ok strong { color: inherit; }
#modal-abast-entrada .ab-forn-status.is-warn { color: #f59e0b; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.3); }
#modal-abast-entrada .ab-forn-status button {
    display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
    border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit;
    font-size: 0.74rem; font-weight: 700; cursor: pointer;
}
#modal-abast-entrada .ab-forn-status button:hover { background: rgba(148, 163, 184, 0.12); }
@media (max-width: 560px) { #modal-abast-entrada .ab-forn-linha { flex-direction: column; } #modal-abast-entrada .ab-forn-buscar { height: 36px; justify-content: center; } }


/* ═══════════════════════════════════════════════════════════════════
   Fichas/janelas do módulo Combustível: cabeçalho em linha + botão
   de fechar moderno (2026-11-17). Escopo: dialog[id^="modal-abast"]
   (inclui modal-abastecimento-foto) e #modal-config-media-veiculo.
   Só CSS — nenhum id/onclick alterado.
   ═══════════════════════════════════════════════════════════════════ */
dialog[id^="modal-abast"] .modal-header,
#modal-config-media-veiculo .modal-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
dialog[id^="modal-abast"] .modal-header > h3,
#modal-config-media-veiculo .modal-header > h3 { flex: 1 1 auto; min-width: 0; margin: 0; }

dialog[id^="modal-abast"] .modal-close,
#modal-config-media-veiculo .modal-close,
#view-abastecimento .ab-drawer-close,
#modal-abast-destino .ab-dest-close,
.ab-dia-picker .ab-dp-x {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: rgba(148, 163, 184, 0.08) !important;
    color: var(--muted, #94a3b8) !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: background 160ms cubic-bezier(.22,.61,.36,1), color 160ms, border-color 160ms, transform 220ms cubic-bezier(.34,1.56,.64,1);
}
dialog[id^="modal-abast"] .modal-close i,
#modal-config-media-veiculo .modal-close i,
#view-abastecimento .ab-drawer-close i,
#modal-abast-destino .ab-dest-close i,
.ab-dia-picker .ab-dp-x i { pointer-events: none; }
dialog[id^="modal-abast"] .modal-close:hover,
#modal-config-media-veiculo .modal-close:hover,
#view-abastecimento .ab-drawer-close:hover,
#modal-abast-destino .ab-dest-close:hover,
.ab-dia-picker .ab-dp-x:hover {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #ef4444 !important;
    transform: rotate(90deg);
}
dialog[id^="modal-abast"] .modal-close:active,
#modal-config-media-veiculo .modal-close:active,
#view-abastecimento .ab-drawer-close:active,
#modal-abast-destino .ab-dest-close:active,
.ab-dia-picker .ab-dp-x:active { transform: rotate(90deg) scale(0.92); }
dialog[id^="modal-abast"] .modal-close:focus-visible,
#modal-config-media-veiculo .modal-close:focus-visible,
#view-abastecimento .ab-drawer-close:focus-visible,
#modal-abast-destino .ab-dest-close:focus-visible,
.ab-dia-picker .ab-dp-x:focus-visible { outline: none !important; border-color: rgba(245, 158, 11, 0.7) !important; }
/* a janela abre com o foco no X (comportamento do navegador): sem anel, só a borda âmbar discreta */
dialog[id^="modal-abast"] .modal-close:focus,
#modal-config-media-veiculo .modal-close:focus,
#view-abastecimento .ab-drawer-close:focus,
#modal-abast-destino .ab-dest-close:focus,
.ab-dia-picker .ab-dp-x:focus { outline: none !important; }
/* mini-calendário: versão menor */
.ab-dia-picker .ab-dp-x { width: 28px !important; height: 28px !important; font-size: 0.8rem !important; }

html[data-theme="light"] dialog[id^="modal-abast"] .modal-close,
body.theme-light dialog[id^="modal-abast"] .modal-close,
html[data-theme="light"] #modal-config-media-veiculo .modal-close,
body.theme-light #modal-config-media-veiculo .modal-close,
html[data-theme="light"] #view-abastecimento .ab-drawer-close,
body.theme-light #view-abastecimento .ab-drawer-close,
html[data-theme="light"] #modal-abast-destino .ab-dest-close,
body.theme-light #modal-abast-destino .ab-dest-close,
html[data-theme="light"] .ab-dia-picker .ab-dp-x,
body.theme-light .ab-dia-picker .ab-dp-x {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #64748b !important;
}
html[data-theme="light"] dialog[id^="modal-abast"] .modal-close:hover,
body.theme-light dialog[id^="modal-abast"] .modal-close:hover,
html[data-theme="light"] #modal-config-media-veiculo .modal-close:hover,
body.theme-light #modal-config-media-veiculo .modal-close:hover,
html[data-theme="light"] #view-abastecimento .ab-drawer-close:hover,
body.theme-light #view-abastecimento .ab-drawer-close:hover,
html[data-theme="light"] #modal-abast-destino .ab-dest-close:hover,
body.theme-light #modal-abast-destino .ab-dest-close:hover,
html[data-theme="light"] .ab-dia-picker .ab-dp-x:hover,
body.theme-light .ab-dia-picker .ab-dp-x:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}
@media (prefers-reduced-motion: reduce) {
    dialog[id^="modal-abast"] .modal-close, #modal-config-media-veiculo .modal-close,
    #view-abastecimento .ab-drawer-close, #modal-abast-destino .ab-dest-close, .ab-dia-picker .ab-dp-x { transition: none; transform: none !important; }
}
