/* ===========================
   Base (tokens en css/theme.css)
   =========================== */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html { -webkit-text-size-adjust: 100%; }

        body {
            font-family: var(--font-sans);
            font-size: var(--text-base);
            line-height: 1.5;
            letter-spacing: -0.01em;
            background:
                radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
                radial-gradient(900px 480px at 100% 0%, color-mix(in srgb, var(--gasohol) 10%, transparent), transparent 50%),
                var(--surface-muted);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ===========================
           LOGIN OVERLAY
        =========================== */
        #loginOverlay {
            position: fixed; inset: 0;
            background:
                radial-gradient(ellipse 80% 50% at 50% -20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent),
                linear-gradient(155deg, var(--primary) 0%, #0c1a3a 42%, #0a1628 100%);
            display: flex; align-items: center; justify-content: center;
            z-index: 9999;
            padding: 24px;
        }

        .login-card {
            background: color-mix(in srgb, var(--surface) 94%, transparent);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid color-mix(in srgb, #fff 55%, transparent);
            border-radius: var(--radius-lg);
            padding: 2.25rem 2rem;
            width: min(100%, 420px);
            box-shadow: var(--elevation-lg);
            text-align: center;
            animation: fadeIn .45s ease;
        }
        .login-card img { height: 56px; margin-bottom: 1.25rem; }
        .login-card h2 { font-size: var(--text-xl); font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; letter-spacing: -0.02em; }
        .login-card p.sub { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: 1.5rem; line-height: var(--leading-snug); }

        .login-card input {
            width: 100%; padding: 12px 14px;
            border: 1.5px solid var(--border); border-radius: var(--radius-sm);
            font-size: .95rem; margin-bottom: 12px;
            transition: border-color .2s, box-shadow .2s;
            font-family: inherit;
        }
        .login-card input:focus-visible {
            outline: none; border-color: var(--accent);
            box-shadow: var(--ring);
        }

        .force-change-msg {
            background: var(--warning-lt); border: 1px solid #fde68a;
            color: #92400e; border-radius: var(--radius-sm);
            padding: 10px 14px; font-size: .82rem; margin-bottom: 14px;
            text-align: left;
        }

        /* ===========================
           BUTTONS
        =========================== */
        .btn {
            display: inline-flex; align-items: center; justify-content: center;
            gap: 6px; cursor: pointer; border: none; border-radius: var(--radius-sm);
            font-family: var(--font-sans); font-weight: 600; font-size: .875rem;
            padding: 10px 18px; transition: all .18s; text-decoration: none;
            white-space: nowrap; line-height: 1;
        }
        .btn:disabled { opacity: .6; cursor: not-allowed; }
        .btn-primary  { background: var(--accent);     color: #fff; }
        .btn-primary:hover:not(:disabled)  { background: var(--accent-hover); }
        .btn-success  { background: var(--success);    color: #fff; }
        .btn-success:hover:not(:disabled)  { background: #047857; }
        .btn-excel    { background: #166534;            color: #fff; }
        .btn-excel:hover:not(:disabled)    { background: #14532d; }
        .btn-danger   { background: var(--danger);     color: #fff; }
        .btn-danger:hover:not(:disabled)   { background: #b91c1c; }
        .btn-ghost    { background: #e2e8f0;            color: var(--text); }
        .btn-ghost:hover:not(:disabled)    { background: #cbd5e1; }
        .btn-green    { background: var(--acp-green);  color: #fff; }
        .btn-green:hover:not(:disabled)    { background: #006229; }
        .btn-sm       { padding: 6px 12px; font-size: .78rem; }
        .btn-full     { width: 100%; }

        /* ===========================
           LAYOUT
        =========================== */
        #mainContent { display: none; }

        .app-header {
            background: linear-gradient(180deg, var(--primary-soft) 0%, var(--primary) 100%);
            color: #fff;
            padding: 0.875rem clamp(1rem, 3vw, 1.75rem);
            display: flex; align-items: center; justify-content: space-between;
            gap: 1rem; flex-wrap: wrap;
            position: sticky; top: 0; z-index: 100;
            border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
            box-shadow: var(--shadow-md);
        }
        .app-header-brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
        .app-header-brand img { height: 44px; width: auto; border-radius: 10px; }
        .app-header-brand h1 { font-size: clamp(0.95rem, 1.5vw, 1.1rem); font-weight: 700; line-height: var(--leading-tight); letter-spacing: -0.02em; }
        .app-header-brand .sub { font-size: .72rem; color: #94a3b8; font-weight: 400; }
        .app-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

        .dashboard {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: clamp(14px, 2vw, 22px);
            max-width: 1440px;
            margin: 0 auto;
            padding: clamp(16px, 2.5vw, 28px);
            min-width: 0;
        }
        .dashboard > .card { min-width: 0; }

        /* ===========================
           CARDS
        =========================== */
        .card {
            background: var(--surface);
            border-radius: var(--radius);
            padding: clamp(1.1rem, 2vw, 1.5rem);
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border);
            position: relative;
        }
        .card::before {
            content: "";
            position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
            box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 70%, transparent);
        }
        .card-title {
            font-size: var(--text-lg); font-weight: 700; color: var(--ink);
            margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.5rem;
            letter-spacing: -0.02em;
        }
        .card-title .icon { font-size: 1.1rem; }
        .full-width { grid-column: span 2; }

        /* ===========================
           FORM ELEMENTS
        =========================== */
        .field-group { margin-bottom: 12px; }
        .field-label {
            display: block; font-size: .72rem; font-weight: 700;
            color: var(--text-muted); text-transform: uppercase;
            letter-spacing: .04em; margin-bottom: 5px;
        }
        input, select, textarea {
            width: 100%; padding: 10px 12px;
            border: 1.5px solid var(--border); border-radius: var(--radius-sm);
            font-size: .9rem; font-family: inherit; color: var(--text);
            background: var(--surface); transition: border-color .2s, box-shadow .2s;
        }
        input:focus-visible, select:focus-visible {
            outline: none; border-color: var(--accent);
            box-shadow: var(--ring);
        }

        /* ===========================
           MONITOR / STOCK BADGES
        =========================== */
        .monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
        .stock-badge {
            border-radius: var(--radius); padding: 16px;
            border: 1.5px solid transparent;
        }
        .stock-badge.diesel { background: var(--diesel-lt); border-color: var(--diesel-bd); }
        .stock-badge.gasohol { background: var(--gasohol-lt); border-color: var(--gasohol-bd); }
        .stock-label-sm { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
        .stock-value { font-size: clamp(1.5rem, 4vw, 1.85rem); font-weight: 800; font-family: var(--font-mono); line-height: 1; margin-bottom: 12px; letter-spacing: -0.03em; }
        .stock-badge.diesel .stock-label-sm { color: var(--diesel); }
        .stock-badge.diesel .stock-value    { color: var(--diesel); }
        .stock-badge.gasohol .stock-label-sm { color: var(--gasohol); }
        .stock-badge.gasohol .stock-value    { color: var(--gasohol); }

        .desglose-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .desglose-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
        .desglose-val { font-size: var(--text-sm); font-weight: 700; font-family: var(--font-mono); }
        .iso-input {
            width: 100px !important; padding: 5px 8px !important;
            font-size: .82rem !important; font-weight: 700;
            border-color: var(--accent) !important; margin: 0 !important;
        }

        /* ===========================
           ANNUAL / CHART SECTION
        =========================== */
        .annual-bar {
            display: flex; align-items: center; justify-content: space-between;
            background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
            padding: 10px 16px; margin: 14px 0 10px;
        }
        .annual-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
        .kpi-box {
            display: flex; justify-content: space-between; align-items: center;
            padding: 10px 14px; border-radius: var(--radius-sm);
            border: 1px solid var(--border); background: var(--surface-2);
        }
        .kpi-box.diesel-kpi { border-left: 4px solid var(--diesel); }
        .kpi-box.gasohol-kpi { border-left: 4px solid var(--gasohol); }
        .kpi-value { font-size: 1.1rem; font-weight: 800; font-family: var(--font-mono); }
        .kpi-value.diesel  { color: var(--diesel); }
        .kpi-value.gasohol { color: var(--gasohol); }

        select.year-picker {
            width: auto !important; padding: 6px 28px 6px 12px !important;
            font-size: .82rem !important; font-weight: 700; cursor: pointer;
            background: var(--accent); color: #fff; border: none;
            border-radius: var(--radius-sm);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 4px center; background-size: 18px;
            -webkit-appearance: none; appearance: none;
        }

        .chart-toolbar {
            display: flex; align-items: center; justify-content: space-between;
            flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
        }
        .chart-title { font-size: .9rem; font-weight: 700; color: var(--primary); }
        .chart-wrap  { position: relative; height: 220px; }

        /* ===========================
           FILTER STOCK WIDGET
        =========================== */
        .filtros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
        .filtro-box {
            text-align: center; padding: 12px;
            background: var(--surface); border-radius: var(--radius-sm);
            border: 1px solid var(--border);
        }
        .filtro-box .f-label { font-size: .65rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 4px; }
        .filtro-box .f-val { font-size: 1.5rem; font-weight: 800; color: var(--acp-green); display: block; margin-bottom: 8px; }

        /* ===========================
           TABLES
        =========================== */
        .tbl-wrap {
            max-height: min(460px, 55vh);
            overflow-y: auto;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: var(--surface);
            scrollbar-gutter: stable;
        }
        table { width: 100%; border-collapse: collapse; font-size: .875rem; }
        thead th {
            background: linear-gradient(180deg, var(--primary-soft) 0%, var(--primary) 100%);
            color: #fff;
            padding: 11px 14px; text-align: left;
            font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--tracking-wide);
            position: sticky; top: 0; z-index: 2;
        }
        thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
        thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
        tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
        tbody tr:hover { background: var(--surface-2); }
        tbody td { padding: 10px 14px; }
        .badge {
            display: inline-block; padding: 3px 9px; border-radius: 999px;
            font-size: .72rem; font-weight: 700; white-space: nowrap;
        }
        .badge-ok      { background: var(--success-lt); color: var(--success); }
        .badge-warn    { background: var(--warning-lt); color: var(--warning); }
        .badge-danger  { background: var(--danger-lt);  color: var(--danger); }
        .badge-ingreso { background: #dcfce7; color: #166534; }
        .badge-salida  { background: #fee2e2; color: #991b1b; }

        /* ===========================
           FILTER BAR
        =========================== */
        .filter-bar {
            display: flex; gap: 10px; flex-wrap: wrap;
            background: var(--surface-2); padding: 14px;
            border-radius: var(--radius-sm); border: 1px solid var(--border);
            margin-bottom: 14px; align-items: flex-end;
        }
        .filter-bar .field-group { margin: 0; flex: 1; min-width: 140px; }
        .filter-bar input { margin: 0; }

        /* ===========================
           SIMULATOR
        =========================== */
        .sim-wrap {
            background: var(--surface-2); border: 1.5px dashed var(--accent);
            border-radius: var(--radius); padding: 18px; margin-top: 18px;
        }
        .sim-header {
            display: flex; align-items: center; justify-content: space-between;
            padding-bottom: 12px; margin-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }
        .sim-title { font-size: .92rem; font-weight: 700; color: var(--primary); }

        .input-sim {
            width: 66px !important; padding: 4px 6px !important;
            text-align: center; font-size: .78rem; font-weight: 600;
            border-radius: 6px !important; margin: 0 !important;
        }
        .input-cons { background: #f0f9ff; color: #0369a1; border-color: #bae6fd !important; }
        .input-ing  { background: #f0fdf4; color: #15803d; border-color: #bbf7d0 !important; }
        .input-sim:focus { box-shadow: 0 0 0 3px rgba(59,130,246,.2) !important; border-color: var(--accent) !important; }

        .sim-table {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-x: contain;
            margin-inline: 0;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: var(--surface);
            scrollbar-gutter: stable;
        }
        .sim-table::-webkit-scrollbar { height: 8px; }
        .sim-table::-webkit-scrollbar-thumb {
            background: color-mix(in srgb, var(--ink) 18%, transparent);
            border-radius: 999px;
        }
        .sim-table table { font-size: .75rem; min-width: 560px; margin: 0; }
        .sim-table thead th {
            font-size: .65rem; padding: 8px 6px; background: var(--surface-2);
            color: var(--primary); border-bottom: 2px solid var(--border);
            position: static;
        }
        .sim-table tbody td { padding: 4px 6px; border-bottom: 1px solid var(--border); }
        .sim-table tfoot td { padding: 8px 6px; background: var(--surface-2); font-weight: 700; }

        /* ===========================
           MODAL
        =========================== */
        .modal-backdrop {
            display: none; position: fixed; inset: 0; z-index: 2000;
            background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
            align-items: center; justify-content: center;
        }
        .modal-backdrop.open { display: flex; }
        .modal-box {
            background: #fff; border-radius: 18px; padding: 28px;
            width: 92%; max-width: 420px; box-shadow: var(--shadow-lg);
            animation: slideUp .25s ease;
        }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .modal-title  { font-size: 1rem; font-weight: 700; }
        .modal-close  { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--text-muted); padding: 0; }

        /* ===========================
           FAB BUTTON
        =========================== */
        #fabVarilla {
            position: fixed;
            bottom: 24px;
            right: 24px;
            width: 56px;
            height: 56px;
            background: var(--acp-green); color: #fff;
            border: none; border-radius: 50%;
            box-shadow: 0 4px 18px rgba(0,0,0,.3);
            cursor: pointer; z-index: 500;
            font-size: 1.4rem;
            display: none; /* shown after login */
            align-items: center; justify-content: center;
            transition: transform .18s;
        }
        #fabVarilla:hover { transform: scale(1.08); }

        /* ===========================
           STATUS INDICATOR
        =========================== */
        .sync-bar {
            display: flex; align-items: center; gap: 8px;
            font-size: .72rem; color: #94a3b8;
        }
        .sync-dot {
            width: 7px; height: 7px; border-radius: 50%;
            background: #22c55e;
            animation: pulse 2s infinite;
        }

        /* ===========================
           ALERTS
        =========================== */
        .alert-box {
            border-radius: var(--radius-sm); padding: 10px 14px;
            font-size: .82rem; font-weight: 600; margin-bottom: 10px;
            display: flex; gap: 8px; align-items: flex-start;
        }
        .alert-warn  { background: var(--warning-lt); color: #92400e; border: 1px solid #fde68a; }
        .alert-danger{ background: var(--danger-lt);  color: #991b1b; border: 1px solid #fecaca; }

        /* ===========================
           VARILLA RESULT
        =========================== */
        .varilla-result {
            text-align: center; padding: 18px;
            background: var(--success-lt); border-radius: var(--radius-sm);
            border: 1px dashed var(--acp-green); margin-top: 16px;
        }
        .varilla-result small { font-size: .7rem; font-weight: 700; color: #166534; text-transform: uppercase; }
        .varilla-result .val  { font-size: 2rem; font-weight: 800; font-family: var(--font-mono); color: var(--acp-green); display: block; margin-top: 4px; }

        /* ===========================
           RESPONSIVE — tablet / mobile (desktop sin media queries arriba)
        =========================== */

        /* Tablet: más aire y bloques que no desborden; layout desktop de 2 cols se mantiene */
        @media (max-width: 1024px) {
            .dashboard {
                padding: clamp(14px, 2.5vw, 24px);
                gap: clamp(14px, 2.2vw, 20px);
            }

            .annual-bar {
                flex-wrap: wrap;
                gap: 0.75rem;
            }
            .chart-toolbar {
                flex-wrap: wrap;
                gap: 0.65rem;
            }
            .chart-toolbar > div:last-child {
                display: flex;
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .tbl-wrap {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            .sim-table table {
                min-width: 560px;
            }
        }

        @media (max-width: 768px) {
            html {
                scroll-padding-top: 0.5rem;
            }

            #mainContent {
                overflow-x: clip;
            }

            .app-header {
                flex-direction: column;
                align-items: stretch;
                gap: 0.75rem;
                padding: 0.75rem var(--page-inline);
                padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
            }
            .app-header-brand {
                gap: 0.65rem;
            }
            .app-header-brand img {
                height: 40px;
            }
            .app-header-brand h1 {
                font-size: clamp(0.9rem, 4vw, 1rem);
                word-break: break-word;
            }
            .sync-bar {
                font-size: clamp(0.7rem, 2.8vw, 0.78rem);
                flex-wrap: wrap;
            }

            .app-header-actions {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.625rem;
                width: 100%;
            }
            .app-header-actions .btn {
                min-height: var(--touch-target);
                padding: 0.55rem 0.65rem;
                font-size: max(0.78rem, 12px);
                white-space: normal;
                line-height: 1.25;
                justify-content: center;
                text-align: center;
            }

            .dashboard {
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: var(--page-inline);
                padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--fab-clearance) + 0.5rem);
            }
            .full-width { grid-column: 1 / -1; }

            .card {
                padding: clamp(1rem, 3.5vw, 1.25rem);
            }
            .card-title {
                flex-wrap: wrap;
                font-size: clamp(1rem, 4vw, 1.15rem);
            }

            .field-group {
                margin-bottom: 1rem;
            }
            .field-label {
                font-size: max(0.7rem, 11px);
                margin-bottom: 0.4rem;
            }

            .card .field-group input:not(.input-sim),
            .card .field-group select,
            .card .field-group textarea,
            .filter-bar input,
            .filter-bar select,
            #loginOverlay input {
                min-height: var(--touch-target);
                font-size: 1rem;
                padding: 0.65rem 0.75rem;
            }

            .sim-wrap {
                min-width: 0;
                padding: clamp(0.85rem, 3vw, 1.1rem);
            }
            .sim-header {
                flex-direction: column;
                align-items: stretch;
                gap: 0.65rem;
            }
            .sim-header .btn {
                width: 100%;
                min-height: var(--touch-target);
            }
            .sim-table table {
                min-width: 620px;
                font-size: max(0.75rem, 12px);
            }
            .sim-table thead th {
                font-size: max(0.65rem, 11px);
                padding: 0.45rem 0.35rem;
                white-space: nowrap;
            }
            .sim-table tbody td {
                padding: 0.35rem 0.3rem;
            }
            .input-sim {
                width: 58px !important;
                min-height: 36px;
                font-size: max(0.75rem, 12px) !important;
            }

            .monitor-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .desglose-row {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 0.35rem 0.75rem;
            }
            .desglose-label {
                flex: 1 1 8rem;
                min-width: 0;
            }
            .desglose-val {
                font-size: max(0.8rem, 13px);
                margin-left: auto;
            }
            .iso-input {
                width: min(140px, 100%) !important;
                flex: 1 1 auto;
                min-height: 40px !important;
            }

            .annual-kpis {
                grid-template-columns: 1fr;
                gap: 0.65rem;
            }
            .filtros-grid {
                grid-template-columns: 1fr;
            }

            .chart-wrap {
                height: min(240px, 45vh);
            }

            .filter-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 0.75rem;
            }
            .filter-bar .field-group {
                min-width: 0;
                width: 100%;
            }
            .filter-bar .btn {
                min-height: var(--touch-target);
                width: 100%;
            }

            /* Historial / mantenimiento: tarjetas en lugar de tabla ancha */
            .tbl-wrap {
                max-height: none;
                overflow-x: auto;
                overflow-y: visible;
                -webkit-overflow-scrolling: touch;
            }
            .tbl-wrap thead {
                display: none;
            }
            .tbl-wrap tbody tr {
                display: block;
                margin-bottom: 1rem;
                border: 1px solid var(--border);
                border-radius: var(--radius-sm);
                background: var(--surface);
                padding: 0.85rem 1rem;
                box-shadow: var(--shadow-xs);
            }
            .tbl-wrap tbody td {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                gap: 0.75rem;
                padding: 0.5rem 0 !important;
                border: none !important;
                border-bottom: 1px solid var(--surface-muted) !important;
                font-size: max(0.8rem, 13px);
            }
            .tbl-wrap tbody td:last-child {
                border-bottom: none !important;
            }
            .tbl-wrap tbody td::before {
                content: attr(data-label);
                font-weight: 700;
                font-size: max(0.65rem, 10px);
                text-transform: uppercase;
                letter-spacing: var(--tracking-wide);
                color: var(--text-muted);
                margin-right: 0;
                white-space: nowrap;
                flex-shrink: 0;
            }

            #fabVarilla {
                bottom: max(14px, env(safe-area-inset-bottom, 0px) + 10px);
                right: max(12px, env(safe-area-inset-right, 0px) + 8px);
                width: 52px;
                height: 52px;
                z-index: 400;
            }

            .modal-box {
                max-height: min(92dvh, 640px);
                overflow-y: auto;
                padding: 1.25rem;
            }
        }

        @media (max-width: 480px) {
            .app-header-actions .btn {
                font-size: max(0.72rem, 11px);
                padding: 0.5rem 0.45rem;
            }

            .sim-table table {
                min-width: 580px;
            }

            .stock-value {
                font-size: clamp(1.35rem, 8vw, 1.75rem);
            }
        }

        /* ===========================
           ANIMATIONS
        =========================== */
        @keyframes fadeIn  { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
        @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

        /* hidden admin items shown after login */
        .admin-only { display: none; }

        /* saldo colored spans */
        .saldo-critico { color: #dc2626 !important; background: #fee2e2; padding: 2px 6px; border-radius: 4px; }
        .saldo-alerta  { color: #ea580c !important; background: #ffedd5; padding: 2px 6px; border-radius: 4px; }
        .saldo-exceso  { color: #7e22ce !important; background: #f3e8ff; padding: 2px 6px; border-radius: 4px; }
