@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.7t9tbfaemk.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-sqs4hk6vs8] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-sqs4hk6vs8] {
    flex: 1;
}

.sidebar[b-sqs4hk6vs8] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-sqs4hk6vs8] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-sqs4hk6vs8]  a, .top-row[b-sqs4hk6vs8]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-sqs4hk6vs8]  a:hover, .top-row[b-sqs4hk6vs8]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-sqs4hk6vs8]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-sqs4hk6vs8] {
        justify-content: space-between;
    }

    .top-row[b-sqs4hk6vs8]  a, .top-row[b-sqs4hk6vs8]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-sqs4hk6vs8] {
        flex-direction: row;
    }

    .sidebar[b-sqs4hk6vs8] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-sqs4hk6vs8] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-sqs4hk6vs8]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-sqs4hk6vs8], article[b-sqs4hk6vs8] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ariuejhbcy] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-ariuejhbcy] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ariuejhbcy] {
    font-size: 1.1rem;
}

.bi[b-ariuejhbcy] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-ariuejhbcy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-ariuejhbcy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-ariuejhbcy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-ariuejhbcy] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-ariuejhbcy] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ariuejhbcy] {
        padding-bottom: 1rem;
    }

    .nav-item[b-ariuejhbcy]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-ariuejhbcy]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ariuejhbcy]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ariuejhbcy] {
        display: none;
    }

    .collapse[b-ariuejhbcy] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-ariuejhbcy] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/CashierSession/Components/PaymentProofViewer.razor.rz.scp.css */
/* Visor de comprobantes adjuntos de la caja. Va por encima de la pantalla que lo abre,
   incluido el detalle del historial de cierres (que ya es un modal). */
.proof-viewer[b-swlrheshce] {
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1070;
}

/* Datos del movimiento a la izquierda y el comprobante, grande, a la derecha. */
.proof-viewer-layout[b-swlrheshce] {
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.proof-viewer-layout.is-single[b-swlrheshce] {
    grid-template-columns: minmax(0, 1fr);
}

.proof-viewer-content[b-swlrheshce] {
    min-width: 0;
}

.proof-viewer-facts[b-swlrheshce] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background-color: var(--bs-tertiary-bg);
}

.proof-viewer-fact[b-swlrheshce] {
    min-width: 0;
}

.proof-viewer-fact dt[b-swlrheshce] {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.proof-viewer-fact dd[b-swlrheshce] {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.proof-viewer-stage[b-swlrheshce] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: min(64vh, 720px);
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background-color: var(--bs-secondary-bg);
    padding: 0.5rem;
}

.proof-viewer-stage img[b-swlrheshce] {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 0.25rem;
}

.proof-viewer-stage.is-zoomed[b-swlrheshce] {
    justify-content: flex-start;
    align-items: flex-start;
}

.proof-viewer-stage.is-zoomed img[b-swlrheshce] {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.proof-viewer-hint[b-swlrheshce] {
    display: block;
    margin-top: 0.4rem;
    color: var(--bs-secondary-color);
}

.proof-viewer-pdf[b-swlrheshce] {
    display: block;
    width: 100%;
    height: min(64vh, 720px);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
}

.proof-viewer-state[b-swlrheshce] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 14rem;
    color: var(--bs-secondary-color);
    text-align: center;
}

/* Pantallas angostas: los datos arriba, en dos columnas, y el comprobante debajo. */
@media (max-width: 767.98px) {
    .proof-viewer-layout[b-swlrheshce] {
        grid-template-columns: minmax(0, 1fr);
    }

    .proof-viewer-facts[b-swlrheshce] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .proof-viewer-stage[b-swlrheshce],
    .proof-viewer-pdf[b-swlrheshce] {
        height: 52vh;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
/* ============================================================
   Dashboard Celex — sistema visual (theme-aware, responsive)
   Variables en la raíz .dsh (no :root) para que el CSS scoped
   de Blazor las aplique correctamente.
   ============================================================ */
.dsh[b-uumo7jmlco] {
    /* Acento de marca Celex (cian → índigo → violeta) */
    --dsh-accent-1: #0891b2;
    --dsh-accent-2: #4f46e5;
    --dsh-accent-3: #9333ea;
    --dsh-accent-grad: linear-gradient(100deg, var(--dsh-accent-1), var(--dsh-accent-2), var(--dsh-accent-3));
    --dsh-glow: rgba(79, 70, 229, 0.20);

    /* Superficies */
    --dsh-surface: #ffffff;
    --dsh-surface-2: #f8fafc;
    --dsh-border: rgba(15, 23, 42, 0.08);
    --dsh-border-strong: rgba(15, 23, 42, 0.14);
    --dsh-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -18px rgba(15, 23, 42, 0.30);
    --dsh-shadow-hover: 0 1px 2px rgba(15, 23, 42, 0.05), 0 20px 40px -20px rgba(15, 23, 42, 0.42);

    /* Texto */
    --dsh-ink: #0f172a;
    --dsh-muted: #64748b;
    --dsh-faint: #94a3b8;

    /* Estado (semántico) */
    --dsh-good: #16a34a;
    --dsh-good-bg: rgba(22, 163, 74, 0.10);
    --dsh-warn: #d97706;
    --dsh-warn-bg: rgba(217, 119, 6, 0.12);
    --dsh-bad: #dc2626;
    --dsh-bad-bg: rgba(220, 38, 38, 0.10);
    --dsh-track: rgba(15, 23, 42, 0.07);

    color: var(--dsh-ink);
}

[data-bs-theme="dark"] .dsh[b-uumo7jmlco] {
    --dsh-accent-1: #22d3ee;
    --dsh-accent-2: #818cf8;
    --dsh-accent-3: #c084fc;
    --dsh-glow: rgba(129, 140, 248, 0.28);

    --dsh-surface: #10151f;
    --dsh-surface-2: #0b0f17;
    --dsh-border: rgba(148, 163, 184, 0.13);
    --dsh-border-strong: rgba(148, 163, 184, 0.22);
    --dsh-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px -20px rgba(0, 0, 0, 0.7);
    --dsh-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 46px -22px rgba(0, 0, 0, 0.8);

    --dsh-ink: #e2e8f0;
    --dsh-muted: #94a3b8;
    --dsh-faint: #64748b;

    --dsh-good: #4ade80;
    --dsh-good-bg: rgba(74, 222, 128, 0.12);
    --dsh-warn: #fbbf24;
    --dsh-warn-bg: rgba(251, 191, 36, 0.14);
    --dsh-bad: #f87171;
    --dsh-bad-bg: rgba(248, 113, 113, 0.14);
    --dsh-track: rgba(148, 163, 184, 0.16);
}

/* ============================================================
   Animaciones
   ============================================================ */
@keyframes dsh-in-b-uumo7jmlco {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dsh-sheen-b-uumo7jmlco {
    0%   { background-position: 120% 0; }
    60%  { background-position: -20% 0; }
    100% { background-position: -20% 0; }
}

@keyframes dsh-pulse-b-uumo7jmlco {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.72); }
}

@keyframes dsh-bar-grow-b-uumo7jmlco {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ============================================================
   Header
   ============================================================ */
.dsh-head[b-uumo7jmlco] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.dsh-title[b-uumo7jmlco] {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
}

.dsh-title-mark[b-uumo7jmlco] {
    background: var(--dsh-accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.dsh-subtitle[b-uumo7jmlco] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.4rem 0 0;
    color: var(--dsh-muted);
    font-size: 0.9rem;
}

.dsh-pill[b-uumo7jmlco] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.dsh-pill-scope[b-uumo7jmlco] {
    background: color-mix(in srgb, var(--dsh-accent-2) 12%, transparent);
    color: var(--dsh-accent-2);
    border-color: color-mix(in srgb, var(--dsh-accent-2) 26%, transparent);
}

.dsh-pill-live[b-uumo7jmlco] {
    background: var(--dsh-good-bg);
    color: var(--dsh-good);
    border-color: color-mix(in srgb, var(--dsh-good) 30%, transparent);
}

.dsh-live-dot[b-uumo7jmlco] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dsh-good);
    animation: dsh-pulse-b-uumo7jmlco 1.8s ease-in-out infinite;
}

.dsh-actions[b-uumo7jmlco] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dsh-btn[b-uumo7jmlco] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--dsh-border-strong);
    background: var(--dsh-surface);
    color: var(--dsh-ink);
    border-radius: 11px;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.dsh-btn:hover:not(:disabled)[b-uumo7jmlco] {
    border-color: var(--dsh-accent-2);
    color: var(--dsh-accent-2);
}

.dsh-btn:disabled[b-uumo7jmlco] { opacity: 0.6; cursor: default; }

.dsh-btn-icon[b-uumo7jmlco] { padding: 0.55rem 0.65rem; }

.dsh-btn-primary[b-uumo7jmlco] {
    border: none;
    color: #fff;
    background: var(--dsh-accent-grad);
    background-size: 160% 100%;
    background-position: 0 0;
    box-shadow: 0 10px 24px -12px var(--dsh-glow);
    transition: background-position 0.4s ease, transform 0.15s ease, box-shadow 0.3s ease;
}

.dsh-btn-primary:hover:not(:disabled)[b-uumo7jmlco] {
    color: #fff;
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -12px var(--dsh-glow);
}

.dsh-spin[b-uumo7jmlco] {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: dsh-spin-b-uumo7jmlco 0.7s linear infinite;
}

@keyframes dsh-spin-b-uumo7jmlco { to { transform: rotate(360deg); } }

/* ============================================================
   Panel (tarjeta de sección)
   ============================================================ */
.dsh-panel[b-uumo7jmlco] {
    background: var(--dsh-surface);
    border: 1px solid var(--dsh-border);
    border-radius: 18px;
    box-shadow: var(--dsh-shadow);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    animation: dsh-in-b-uumo7jmlco 0.5s ease both;
}

.dsh-panel-title[b-uumo7jmlco] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.dsh-panel-title small[b-uumo7jmlco] {
    font-weight: 400;
    color: var(--dsh-muted);
    font-size: 0.85rem;
}

/* ============================================================
   Sección 1 — KPI stat tiles
   ============================================================ */
.dsh-kpi[b-uumo7jmlco] {
    position: relative;
    height: 100%;
    background: var(--dsh-surface);
    border: 1px solid var(--dsh-border);
    border-radius: 16px;
    padding: 1.05rem 1.1rem 1.1rem;
    box-shadow: var(--dsh-shadow);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    animation: dsh-in-b-uumo7jmlco 0.5s ease both;
    animation-delay: calc(var(--d, 0) * 60ms);
}

/* Filo superior con degradado de marca */
.dsh-kpi[b-uumo7jmlco]::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--dsh-accent-grad);
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

.dsh-kpi:hover[b-uumo7jmlco] {
    transform: translateY(-4px);
    box-shadow: var(--dsh-shadow-hover);
    border-color: var(--dsh-border-strong);
}

.dsh-kpi:hover[b-uumo7jmlco]::before { opacity: 1; }

.dsh-kpi-head[b-uumo7jmlco] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.dsh-kpi-label[b-uumo7jmlco] {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dsh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsh-kpi-icon[b-uumo7jmlco] {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    background: color-mix(in srgb, var(--dsh-accent-2) 12%, transparent);
    color: var(--dsh-accent-2);
}

.dsh-kpi-value[b-uumo7jmlco] {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--dsh-ink);
}

.dsh-kpi-value.is-money[b-uumo7jmlco] { font-size: 1.5rem; }

.dsh-kpi-foot[b-uumo7jmlco] {
    margin-top: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dsh-sub[b-uumo7jmlco] {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--dsh-muted);
}

.dsh-sub.is-good[b-uumo7jmlco] { color: var(--dsh-good); }
.dsh-sub.is-warn[b-uumo7jmlco] { color: var(--dsh-warn); }
.dsh-sub.is-bad[b-uumo7jmlco]  { color: var(--dsh-bad); }

/* Chip de variación (delta) */
.dsh-delta[b-uumo7jmlco] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    width: fit-content;
}

.dsh-delta.is-good[b-uumo7jmlco] { color: var(--dsh-good); background: var(--dsh-good-bg); }
.dsh-delta.is-bad[b-uumo7jmlco]  { color: var(--dsh-bad);  background: var(--dsh-bad-bg); }
.dsh-delta.is-flat[b-uumo7jmlco] { color: var(--dsh-muted); background: var(--dsh-track); }

/* ============================================================
   Meter (barra de progreso premium)
   ============================================================ */
.dsh-meter[b-uumo7jmlco] {
    height: 8px;
    border-radius: 999px;
    background: var(--dsh-track);
    overflow: hidden;
}

.dsh-meter.is-sm[b-uumo7jmlco] { height: 6px; }

.dsh-meter-fill[b-uumo7jmlco] {
    height: 100%;
    border-radius: 999px;
    transform-origin: left center;
    animation: dsh-bar-grow-b-uumo7jmlco 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dsh-fill-accent[b-uumo7jmlco] { background: var(--dsh-accent-grad); }
.dsh-fill-good[b-uumo7jmlco]   { background: linear-gradient(90deg, #16a34a, #22c55e); }
.dsh-fill-warn[b-uumo7jmlco]   { background: linear-gradient(90deg, #d97706, #f59e0b); }
.dsh-fill-bad[b-uumo7jmlco]    { background: linear-gradient(90deg, #dc2626, #ef4444); }
.dsh-fill-muted[b-uumo7jmlco]  { background: var(--dsh-faint); }

[data-bs-theme="dark"] .dsh-fill-good[b-uumo7jmlco] { background: linear-gradient(90deg, #22c55e, #4ade80); }
[data-bs-theme="dark"] .dsh-fill-warn[b-uumo7jmlco] { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
[data-bs-theme="dark"] .dsh-fill-bad[b-uumo7jmlco]  { background: linear-gradient(90deg, #ef4444, #f87171); }

.dsh-meter-row[b-uumo7jmlco] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.dsh-meter-row .lbl[b-uumo7jmlco] { font-size: 0.9rem; }
.dsh-meter-row .val[b-uumo7jmlco] { font-weight: 700; font-variant-numeric: tabular-nums; }

.dsh-meter-caption[b-uumo7jmlco] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.3rem;
    font-size: 0.76rem;
    color: var(--dsh-muted);
}

/* KPI meter (bajo el valor de % cobranza) */
.dsh-kpi-meter[b-uumo7jmlco] { margin-top: 0.6rem; }

/* ============================================================
   Sección 2 — Mora por antigüedad
   ============================================================ */
/* Barra de distribución (part-to-whole del monto en riesgo) */
.dsh-dist[b-uumo7jmlco] {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--dsh-track);
    gap: 2px; /* separación por superficie entre segmentos */
    margin-bottom: 1rem;
}

.dsh-dist-seg[b-uumo7jmlco] {
    height: 100%;
    min-width: 3px;
    transition: filter 0.2s ease;
    animation: dsh-in-b-uumo7jmlco 0.5s ease both;
}

.dsh-dist-seg:first-child[b-uumo7jmlco] { border-radius: 999px 0 0 999px; }
.dsh-dist-seg:last-child[b-uumo7jmlco]  { border-radius: 0 999px 999px 0; }
.dsh-dist-seg:hover[b-uumo7jmlco] { filter: brightness(1.08); }

.dsh-mora-grid[b-uumo7jmlco] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

@media (min-width: 576px) { .dsh-mora-grid[b-uumo7jmlco] { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .dsh-mora-grid[b-uumo7jmlco] { grid-template-columns: repeat(6, 1fr); } }

.dsh-mora[b-uumo7jmlco] {
    position: relative;
    border-radius: 13px;
    padding: 0.8rem 0.45rem;
    text-align: center;
    overflow: hidden;
    border: 1px solid transparent;
}

.dsh-mora-count[b-uumo7jmlco] {
    font-size: clamp(0.74rem, 1.2vw, 1.2rem);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dsh-mora-summary[b-uumo7jmlco] {
    margin: -0.25rem 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--dsh-muted, var(--bs-secondary-color));
}

.dsh-mora-label[b-uumo7jmlco] { font-size: 0.76rem; font-weight: 600; opacity: 0.95; }
.dsh-mora-amount[b-uumo7jmlco] { font-size: 0.78rem; font-weight: 600; margin-top: 0.15rem; opacity: 0.85; }

/* Escala de severidad (ámbar → rojo). Fondos suaves + texto de alto contraste. */
.dsh-sev-1[b-uumo7jmlco] { background: #fef3e2; color: #92400e; }
.dsh-sev-2[b-uumo7jmlco] { background: #fde4c0; color: #7c3d10; }
.dsh-sev-3[b-uumo7jmlco] { background: #f9cdb0; color: #7c2d12; }
.dsh-sev-4[b-uumo7jmlco] { background: #f6b0a3; color: #7f1d1d; }
.dsh-sev-5[b-uumo7jmlco] { background: #f19a9a; color: #7f1d1d; }
.dsh-sev-6[b-uumo7jmlco] { background: #dc3545; color: #ffffff; }

[data-bs-theme="dark"] .dsh-sev-1[b-uumo7jmlco] { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
[data-bs-theme="dark"] .dsh-sev-2[b-uumo7jmlco] { background: rgba(245, 158, 11, 0.24); color: #fbbf24; }
[data-bs-theme="dark"] .dsh-sev-3[b-uumo7jmlco] { background: rgba(234, 88, 12, 0.28); color: #fdba74; }
[data-bs-theme="dark"] .dsh-sev-4[b-uumo7jmlco] { background: rgba(220, 38, 38, 0.30); color: #fca5a5; }
[data-bs-theme="dark"] .dsh-sev-5[b-uumo7jmlco] { background: rgba(220, 38, 38, 0.42); color: #fecaca; }
[data-bs-theme="dark"] .dsh-sev-6[b-uumo7jmlco] { background: #b02a37; color: #ffffff; }

/* Colores de los segmentos de la barra de distribución (mismos que severidad) */
.dsh-dist-1[b-uumo7jmlco] { background: #f6b26b; }
.dsh-dist-2[b-uumo7jmlco] { background: #f59e5b; }
.dsh-dist-3[b-uumo7jmlco] { background: #ef8354; }
.dsh-dist-4[b-uumo7jmlco] { background: #e5634b; }
.dsh-dist-5[b-uumo7jmlco] { background: #dc4646; }
.dsh-dist-6[b-uumo7jmlco] { background: #b91c1c; }

/* ============================================================
   Desglose por cuota (rows con mini-meter)
   ============================================================ */
.dsh-break-row[b-uumo7jmlco] { margin-bottom: 0.7rem; }
.dsh-break-row:last-child[b-uumo7jmlco] { margin-bottom: 0; }

.dsh-break-head[b-uumo7jmlco] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
}

.dsh-break-head .lbl[b-uumo7jmlco] { font-size: 0.85rem; }
.dsh-break-head .val[b-uumo7jmlco] { font-weight: 700; font-variant-numeric: tabular-nums; }
.dsh-break-head .val.is-good[b-uumo7jmlco] { color: var(--dsh-good); }
.dsh-break-head .val.is-warn[b-uumo7jmlco] { color: var(--dsh-warn); }
.dsh-break-head .val.is-bad[b-uumo7jmlco]  { color: var(--dsh-bad); }
.dsh-break-head .val.is-muted[b-uumo7jmlco] { color: var(--dsh-faint); }

.dsh-divider[b-uumo7jmlco] {
    height: 1px;
    background: var(--dsh-border);
    margin: 1rem 0;
    border: 0;
}

/* ============================================================
   Tablas
   ============================================================ */
.dsh-tablewrap[b-uumo7jmlco] {
    overflow-x: auto;
    margin: 0 -0.35rem;
    padding: 0 0.35rem;
}

.dsh-table[b-uumo7jmlco] {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    min-width: 520px;
}

.dsh-table thead th[b-uumo7jmlco] {
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dsh-muted);
    text-align: right;
    padding: 0.5rem 0.7rem;
    white-space: nowrap;
    border-bottom: 1px solid var(--dsh-border);
}

.dsh-table thead th:first-child[b-uumo7jmlco] { text-align: left; }

.dsh-table tbody td[b-uumo7jmlco] {
    padding: 0.6rem 0.7rem;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid var(--dsh-border);
    font-variant-numeric: tabular-nums;
}

.dsh-table tbody td:first-child[b-uumo7jmlco] {
    text-align: left;
    font-weight: 600;
    font-variant-numeric: normal;
}

.dsh-table tbody tr[b-uumo7jmlco] { transition: background 0.15s ease; }
.dsh-table tbody tr:hover td[b-uumo7jmlco] { background: var(--dsh-surface-2); }
.dsh-table tbody tr:last-child td[b-uumo7jmlco] { border-bottom: none; }

/* Primera columna fija al hacer scroll horizontal */
.dsh-table thead th:first-child[b-uumo7jmlco],
.dsh-table tbody td:first-child[b-uumo7jmlco] {
    position: sticky;
    left: 0;
    background: var(--dsh-surface);
    z-index: 1;
}

.dsh-table thead th:first-child[b-uumo7jmlco] { background: var(--dsh-surface); }
.dsh-table tbody tr:hover td:first-child[b-uumo7jmlco] { background: var(--dsh-surface-2); }

.dsh-table tfoot td[b-uumo7jmlco] {
    padding: 0.6rem 0.7rem;
    text-align: right;
    font-weight: 800;
    white-space: nowrap;
    border-top: 2px solid var(--dsh-border-strong);
    font-variant-numeric: tabular-nums;
}

.dsh-table tfoot td:first-child[b-uumo7jmlco] { text-align: left; position: sticky; left: 0; background: var(--dsh-surface); }

.dsh-depot-row td[b-uumo7jmlco] { color: var(--dsh-muted); font-style: italic; background: var(--dsh-surface-2); }
.dsh-depot-row td:first-child[b-uumo7jmlco] { background: var(--dsh-surface-2); }

.dsh-num-good[b-uumo7jmlco] { color: var(--dsh-good); font-weight: 700; }
.dsh-num-warn[b-uumo7jmlco] { color: var(--dsh-warn); font-weight: 700; }
.dsh-num-bad[b-uumo7jmlco]  { color: var(--dsh-bad);  font-weight: 700; }
.dsh-num-muted[b-uumo7jmlco] { color: var(--dsh-faint); }

/* Chips de estado / badges */
.dsh-chip[b-uumo7jmlco] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.dsh-chip.is-good[b-uumo7jmlco] { color: var(--dsh-good); background: var(--dsh-good-bg); }
.dsh-chip.is-warn[b-uumo7jmlco] { color: var(--dsh-warn); background: var(--dsh-warn-bg); }
.dsh-chip.is-bad[b-uumo7jmlco]  { color: var(--dsh-bad);  background: var(--dsh-bad-bg); }
.dsh-chip.is-muted[b-uumo7jmlco] { color: var(--dsh-muted); background: var(--dsh-track); }

.dsh-foot-note[b-uumo7jmlco] {
    text-align: right;
    color: var(--dsh-faint);
    font-size: 0.78rem;
    margin: 0.25rem 0.15rem 0;
}

/* ============================================================
   Estados de carga / error
   ============================================================ */
.dsh-loading[b-uumo7jmlco] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    gap: 1rem;
    color: var(--dsh-muted);
}

.dsh-loading .dsh-spin[b-uumo7jmlco] { width: 2.2rem; height: 2.2rem; border-width: 3px; color: var(--dsh-accent-2); }

.dsh-skeleton[b-uumo7jmlco] {
    background: linear-gradient(90deg, var(--dsh-track) 25%, var(--dsh-surface-2) 50%, var(--dsh-track) 75%);
    background-size: 200% 100%;
    animation: dsh-shimmer-b-uumo7jmlco 1.4s ease infinite;
    border-radius: 8px;
}

@keyframes dsh-shimmer-b-uumo7jmlco {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

.dsh-error[b-uumo7jmlco] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--dsh-bad-bg);
    border: 1px solid color-mix(in srgb, var(--dsh-bad) 30%, transparent);
    color: var(--dsh-bad);
    border-radius: 14px;
    padding: 1rem 1.2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 575.98px) {
    .dsh-kpi-value[b-uumo7jmlco] { font-size: 1.5rem; }
    .dsh-kpi-value.is-money[b-uumo7jmlco] { font-size: 1.05rem; letter-spacing: -0.01em; }
    /* En móvil la etiqueta usa hasta 2 líneas en vez de truncarse */
    .dsh-kpi-label[b-uumo7jmlco] {
        white-space: normal;
        overflow: visible;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.15;
    }
    .dsh-panel[b-uumo7jmlco] { padding: 1rem 1rem; border-radius: 16px; }
    .dsh-mora-count[b-uumo7jmlco] { font-size: 1.05rem; }
}

/* ============================================================
   Accesibilidad: movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .dsh-kpi[b-uumo7jmlco],
    .dsh-panel[b-uumo7jmlco],
    .dsh-meter-fill[b-uumo7jmlco],
    .dsh-dist-seg[b-uumo7jmlco],
    .dsh-live-dot[b-uumo7jmlco],
    .dsh-skeleton[b-uumo7jmlco] { animation: none; }
    .dsh-meter-fill[b-uumo7jmlco] { transform: none; }
}
/* /Components/Pages/Import/ImportRuns.razor.rz.scp.css */
/* ===================== Módulo de Importación – look & feel =====================
   Theme-aware: usa variables de Bootstrap 5.3 (--bs-*) para soportar dark/light
   automáticamente vía [data-bs-theme]. No se hardcodean colores de superficie. */

.import-module[b-z1g16xmd4g] {
    --imp-border: var(--bs-border-color);
    --imp-muted: var(--bs-secondary-color);
    --imp-surface: var(--bs-body-bg);
    --imp-surface-2: var(--bs-tertiary-bg);
    --imp-surface-3: var(--bs-secondary-bg);
    --imp-primary: var(--bs-primary);
}

/* ---------- Hero ---------- */
.import-hero[b-z1g16xmd4g] {
    background: linear-gradient(120deg, rgba(var(--bs-primary-rgb), 1) 0%, rgba(var(--bs-primary-rgb), .80) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(var(--bs-primary-rgb), .25);
}

.import-hero h3[b-z1g16xmd4g] {
    color: #fff;
    font-weight: 700;
}

.import-hero .text-muted[b-z1g16xmd4g] {
    color: rgba(255, 255, 255, .82) !important;
}

.import-hero-icon[b-z1g16xmd4g] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    font-size: 1.5rem;
}

.import-hero-run .run-code[b-z1g16xmd4g] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: .25rem;
}

/* ---------- Stepper ---------- */
.stepper[b-z1g16xmd4g] {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 1rem 0;
}

.stepper-item[b-z1g16xmd4g] {
    flex: 1 1 0;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .75rem;
    border: 1px solid var(--imp-border);
    border-radius: 10px;
    background: var(--imp-surface);
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
}

.stepper-item .stepper-index[b-z1g16xmd4g] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--imp-surface-3);
    color: var(--imp-muted);
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.stepper-item .stepper-label[b-z1g16xmd4g] {
    font-size: .85rem;
    font-weight: 600;
    color: var(--bs-body-color);
    line-height: 1.1;
}

.stepper-item.is-active[b-z1g16xmd4g],
.stepper-item.current[b-z1g16xmd4g] {
    border-color: var(--imp-primary);
    background: var(--bs-primary-bg-subtle);
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), .15);
}

.stepper-item.is-active .stepper-index[b-z1g16xmd4g],
.stepper-item.current .stepper-index[b-z1g16xmd4g] {
    background: var(--imp-primary);
    color: #fff;
}

.stepper-item.done .stepper-index[b-z1g16xmd4g] {
    background: var(--bs-success);
    color: #fff;
}

.stepper-item.done .stepper-label[b-z1g16xmd4g] {
    color: var(--bs-success-text-emphasis);
}

.stepper-item.disabled[b-z1g16xmd4g] {
    opacity: .5;
    cursor: not-allowed;
    background: var(--imp-surface-2);
}

/* ---------- Wizard card ---------- */
.wizard-card[b-z1g16xmd4g] {
    position: relative;
    min-height: 260px;
}

.wizard-busy[b-z1g16xmd4g] {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: rgba(var(--bs-body-bg-rgb), .7);
    backdrop-filter: blur(1px);
    border-radius: var(--bs-card-border-radius, .5rem);
    color: var(--imp-primary);
    font-weight: 600;
}

.step-head[b-z1g16xmd4g] {
    margin-bottom: 1rem;
}

.step-head h5[b-z1g16xmd4g] {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.step-head p[b-z1g16xmd4g] {
    margin: 0;
    font-size: .875rem;
}

.step-badge[b-z1g16xmd4g] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--imp-primary);
    color: #fff;
    font-size: .9rem;
}

/* ---------- Dropzone ---------- */
.dropzone[b-z1g16xmd4g] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    padding: 2rem 1rem;
    border: 2px dashed var(--imp-border);
    border-radius: 12px;
    background: var(--imp-surface-2);
    text-align: center;
    cursor: pointer;
    transition: all .15s ease;
}

.dropzone:hover[b-z1g16xmd4g] {
    border-color: var(--imp-primary);
    background: var(--bs-primary-bg-subtle);
}

.dropzone.has-files[b-z1g16xmd4g] {
    border-color: var(--bs-success);
    background: var(--bs-success-bg-subtle);
}

.dropzone input[type="file"][b-z1g16xmd4g] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dropzone-icon[b-z1g16xmd4g] {
    font-size: 2.25rem;
    color: var(--imp-primary);
}

.dropzone-text[b-z1g16xmd4g] {
    font-weight: 600;
    color: var(--bs-body-color);
}

.dropzone-hint[b-z1g16xmd4g] {
    font-size: .8rem;
    color: var(--imp-muted);
}

.file-list[b-z1g16xmd4g] {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
}

.file-list li[b-z1g16xmd4g] {
    display: flex;
    align-items: center;
    padding: .4rem .6rem;
    border: 1px solid var(--imp-border);
    border-radius: 8px;
    margin-bottom: .35rem;
    background: var(--imp-surface);
}

.file-list .file-name[b-z1g16xmd4g] {
    font-weight: 500;
    flex: 1;
}

.file-list .file-size[b-z1g16xmd4g] {
    font-size: .8rem;
    color: var(--imp-muted);
}

/* ---------- Dataset selection toolbar ---------- */
.dataset-toolbar[b-z1g16xmd4g] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .75rem;
    margin-bottom: .5rem;
    border: 1px solid var(--imp-border);
    border-radius: 10px;
    background: var(--imp-surface-2);
}

.dataset-toolbar .selected-count[b-z1g16xmd4g] {
    font-size: .82rem;
    color: var(--imp-muted);
    font-weight: 600;
}

/* ---------- Tables ---------- */
.data-table thead th[b-z1g16xmd4g],
.mapping-table thead th[b-z1g16xmd4g],
.issues-table thead th[b-z1g16xmd4g] {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--imp-muted);
    border-bottom: 2px solid var(--imp-border);
}

.data-table code[b-z1g16xmd4g],
.mapping-table code[b-z1g16xmd4g] {
    background: var(--imp-surface-3);
    padding: .1rem .35rem;
    border-radius: 4px;
    font-size: .8rem;
}

.data-table tr.row-excluded[b-z1g16xmd4g] {
    opacity: .5;
}

/* ---------- Mapping ---------- */
.mapping-group[b-z1g16xmd4g] {
    border: 1px solid var(--imp-border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.mapping-group-head[b-z1g16xmd4g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .85rem;
    background: var(--imp-surface-2);
    border-bottom: 1px solid var(--imp-border);
}

.mapping-table[b-z1g16xmd4g] {
    margin: 0;
}

.mapping-table .target-field[b-z1g16xmd4g] {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    color: var(--bs-primary-text-emphasis);
}

.mapping-table tr.row-missing[b-z1g16xmd4g] {
    background: var(--bs-warning-bg-subtle);
}

.mapping-table tr.row-missing td[b-z1g16xmd4g] {
    box-shadow: inset 3px 0 0 var(--bs-warning);
}

/* ---------- Stat cards (resumen de ejecución) ---------- */
.stat-grid[b-z1g16xmd4g] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

@media (max-width: 575.98px) {
    .stat-grid[b-z1g16xmd4g] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card[b-z1g16xmd4g] {
    border: 1px solid var(--imp-border);
    border-radius: 12px;
    padding: .85rem;
    text-align: center;
    background: var(--imp-surface);
    position: relative;
}

.stat-card .stat-icon[b-z1g16xmd4g] {
    font-size: 1.1rem;
    position: absolute;
    top: .6rem;
    right: .7rem;
    opacity: .65;
}

.stat-card .stat-value[b-z1g16xmd4g] {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-label[b-z1g16xmd4g] {
    font-size: .78rem;
    color: var(--imp-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.stat-inserted[b-z1g16xmd4g] { border-top: 3px solid var(--bs-success); background: var(--bs-success-bg-subtle); }
.stat-inserted .stat-icon[b-z1g16xmd4g], .stat-inserted .stat-value[b-z1g16xmd4g] { color: var(--bs-success-text-emphasis); }
.stat-updated[b-z1g16xmd4g] { border-top: 3px solid var(--bs-primary); background: var(--bs-primary-bg-subtle); }
.stat-updated .stat-icon[b-z1g16xmd4g], .stat-updated .stat-value[b-z1g16xmd4g] { color: var(--bs-primary-text-emphasis); }
.stat-skipped[b-z1g16xmd4g] { border-top: 3px solid var(--bs-warning); background: var(--bs-warning-bg-subtle); }
.stat-skipped .stat-icon[b-z1g16xmd4g], .stat-skipped .stat-value[b-z1g16xmd4g] { color: var(--bs-warning-text-emphasis); }
.stat-rejected[b-z1g16xmd4g] { border-top: 3px solid var(--bs-danger); background: var(--bs-danger-bg-subtle); }
.stat-rejected .stat-icon[b-z1g16xmd4g], .stat-rejected .stat-value[b-z1g16xmd4g] { color: var(--bs-danger-text-emphasis); }

/* ---------- Issues ---------- */
.issues-head[b-z1g16xmd4g] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}

.issues-filters[b-z1g16xmd4g] {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.issue-pill[b-z1g16xmd4g] {
    font-size: .78rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--imp-border);
    background: var(--imp-surface);
    color: var(--bs-body-color);
    cursor: pointer;
    user-select: none;
    transition: all .12s ease;
}

.issue-pill:hover[b-z1g16xmd4g] { background: var(--imp-surface-3); }
.issue-pill.active[b-z1g16xmd4g] { background: var(--imp-primary); color: #fff; border-color: var(--imp-primary); }
.issue-pill.pill-error.active[b-z1g16xmd4g] { background: var(--bs-danger); border-color: var(--bs-danger); }
.issue-pill.pill-warn.active[b-z1g16xmd4g] { background: var(--bs-warning); border-color: var(--bs-warning); color: #000; }
.issue-pill.pill-info.active[b-z1g16xmd4g] { background: var(--bs-info); border-color: var(--bs-info); color: #000; }

.issues-table-wrap[b-z1g16xmd4g] {
    max-height: 340px;
    overflow: auto;
    border: 1px solid var(--imp-border);
    border-radius: 10px;
}

/* ---------- Wizard nav ---------- */
.wizard-nav[b-z1g16xmd4g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .85rem;
}

.wizard-nav-label[b-z1g16xmd4g] {
    font-size: .82rem;
    color: var(--imp-muted);
    font-weight: 600;
}

/* ---------- Historial ---------- */
.history-list[b-z1g16xmd4g] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 540px;
    overflow: auto;
}

.history-item[b-z1g16xmd4g] {
    text-align: left;
    border: 1px solid var(--imp-border);
    border-radius: 10px;
    padding: .6rem .7rem;
    background: var(--imp-surface);
    color: var(--bs-body-color);
    cursor: pointer;
    transition: all .12s ease;
}

.history-item:hover[b-z1g16xmd4g] {
    border-color: var(--imp-primary);
    background: var(--bs-primary-bg-subtle);
}

.history-item.active[b-z1g16xmd4g] {
    border-color: var(--imp-primary);
    background: var(--bs-primary-bg-subtle);
    box-shadow: inset 3px 0 0 var(--imp-primary);
}

.history-item-top[b-z1g16xmd4g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .25rem;
}

.history-name[b-z1g16xmd4g] {
    font-weight: 600;
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-meta[b-z1g16xmd4g] {
    display: flex;
    gap: .75rem;
    font-size: .76rem;
    color: var(--imp-muted);
}

.history-item-meta span[b-z1g16xmd4g] {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.history-item-stats[b-z1g16xmd4g] {
    display: flex;
    gap: .6rem;
    margin-top: .35rem;
    font-size: .76rem;
}

.history-item-stats .hs[b-z1g16xmd4g] {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    color: var(--imp-muted);
}

.history-item-stats .hs-err[b-z1g16xmd4g] { color: var(--bs-danger-text-emphasis); }
.history-item-stats .hs-warn[b-z1g16xmd4g] { color: var(--bs-warning-text-emphasis); }

.history-pager[b-z1g16xmd4g] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .75rem;
}

.history-pager-label[b-z1g16xmd4g] {
    font-size: .76rem;
    color: var(--imp-muted);
    text-align: center;
    flex: 1;
}

/* ---------- Panel de ejecución en vivo (paso 6) ---------- */
.exec-panel[b-z1g16xmd4g] {
    border: 1px solid var(--imp-border);
    background: var(--imp-surface-2);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.exec-panel-head[b-z1g16xmd4g] {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

.exec-panel-head .exec-phase[b-z1g16xmd4g] {
    font-weight: 600;
}

.exec-panel-head .exec-elapsed[b-z1g16xmd4g] {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    color: var(--imp-muted);
}

.exec-progress[b-z1g16xmd4g] {
    height: 1.25rem;
    border-radius: 8px;
}

.exec-meta[b-z1g16xmd4g] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .5rem;
    font-size: .9rem;
}
/* /Components/Pages/Reports/OwnerFinance/OwnerFinanceDashboard.razor.rz.scp.css */
/* ============================================================
   KPIs financieros (dueños) — mismo sistema visual que el Inicio
   (Home.razor.css): tokens en la raíz .ofk, redefinidos en tema
   oscuro. Series de gráficos: par categórico validado azul/naranja.
   ============================================================ */
.ofk[b-lzkxotqmn0] {
    --accent-1: #0891b2;
    --accent-2: #4f46e5;
    --accent-3: #9333ea;
    --accent-grad: linear-gradient(100deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --glow: rgba(79, 70, 229, 0.20);
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.14);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -18px rgba(15, 23, 42, 0.30);
    --ink: #0f172a;
    --muted: #64748b;
    --faint: #94a3b8;
    --good: #16a34a;
    --warn: #d97706;
    --warn-bg: rgba(217, 119, 6, 0.12);
    --bad: #dc2626;
    --track: rgba(15, 23, 42, 0.07);
    --s1: #2a78d6;
    color: var(--ink);
    padding: 1rem 0 2.5rem;
}

[data-bs-theme="dark"] .ofk[b-lzkxotqmn0] {
    --accent-1: #22d3ee;
    --accent-2: #818cf8;
    --accent-3: #c084fc;
    --glow: rgba(129, 140, 248, 0.28);
    --surface: #10151f;
    --surface-2: #0b0f17;
    --border: rgba(148, 163, 184, 0.13);
    --border-strong: rgba(148, 163, 184, 0.22);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 34px -20px rgba(0, 0, 0, 0.7);
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --faint: #64748b;
    --good: #4ade80;
    --warn: #fbbf24;
    --warn-bg: rgba(251, 191, 36, 0.14);
    --bad: #f87171;
    --track: rgba(148, 163, 184, 0.16);
    --s1: #3987e5;
}

/* ---------- Cabecera ---------- */
.head[b-lzkxotqmn0] { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.1rem; }
.title[b-lzkxotqmn0] { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.title-mark[b-lzkxotqmn0] { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.subtitle[b-lzkxotqmn0] { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; color: var(--muted); font-size: .9rem; }
.subtitle > span:first-child[b-lzkxotqmn0]::first-letter { text-transform: uppercase; }
.pill[b-lzkxotqmn0] { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; border: 1px solid transparent; }
.pill-scope[b-lzkxotqmn0] { background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 26%, transparent); }
.pill-lock[b-lzkxotqmn0] { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.actions[b-lzkxotqmn0] { display: flex; gap: .5rem; align-items: center; }
.btn-o[b-lzkxotqmn0] { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); border-radius: 11px; padding: .55rem .85rem; font-size: .9rem; font-weight: 600; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.btn-o:hover:not(:disabled)[b-lzkxotqmn0] { border-color: var(--accent-2); color: var(--accent-2); }
.btn-o:disabled[b-lzkxotqmn0] { opacity: .6; cursor: default; }
.btn-icon[b-lzkxotqmn0] { padding: .55rem .65rem; }
.btn-o.small[b-lzkxotqmn0] { padding: .35rem .7rem; font-size: .8rem; }
.btn-primary[b-lzkxotqmn0] { border: none; color: #fff; background: var(--accent-grad); box-shadow: 0 10px 24px -12px var(--glow); }
.btn-primary:hover:not(:disabled)[b-lzkxotqmn0] { color: #fff; }
.spin[b-lzkxotqmn0] { width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: ofk-spin-b-lzkxotqmn0 .7s linear infinite; }
@keyframes ofk-spin-b-lzkxotqmn0 { to { transform: rotate(360deg); } }

/* ---------- Filtros ---------- */
.flt[b-lzkxotqmn0] { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: .9rem 1.1rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr auto; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.flt label[b-lzkxotqmn0] { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.fld[b-lzkxotqmn0] { display: block; width: 100%; border: 1px solid var(--border-strong); background: var(--surface-2); border-radius: 10px; padding: .5rem .7rem; font-size: .9rem; font-weight: 600; color: var(--ink); }
.fld:disabled[b-lzkxotqmn0] { opacity: .55; }
.fld.small[b-lzkxotqmn0] { width: auto; padding: .35rem .6rem; font-size: .8rem; }
.flt-clear[b-lzkxotqmn0] { font-size: .82rem; color: var(--muted); font-weight: 600; white-space: nowrap; background: none; border: none; padding: .55rem 0; cursor: pointer; }
.flt-clear:hover[b-lzkxotqmn0] { color: var(--accent-2); }

/* ---------- Tabs ---------- */
.tabs[b-lzkxotqmn0] { display: flex; gap: .35rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 1rem; box-shadow: var(--shadow); }
.tab[b-lzkxotqmn0] { padding: .5rem 1.1rem; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--muted); white-space: nowrap; background: none; border: none; cursor: pointer; }
.tab.on[b-lzkxotqmn0] { color: #fff; background: var(--accent-grad); box-shadow: 0 8px 18px -10px var(--glow); }

/* ---------- Estados ---------- */
.loading[b-lzkxotqmn0], .error[b-lzkxotqmn0] { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; display: flex; align-items: center; gap: .75rem; color: var(--muted); flex-wrap: wrap; }
.error[b-lzkxotqmn0] { color: var(--bad); justify-content: space-between; }
.is-stale[b-lzkxotqmn0] { opacity: .6; transition: opacity .2s ease; }

/* ---------- Grilla de tarjetas ---------- */
.grid[b-lzkxotqmn0] { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi[b-lzkxotqmn0] { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.05rem 1.1rem 1rem; box-shadow: var(--shadow); overflow: hidden; grid-column: span 2; }
.kpi[b-lzkxotqmn0]::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-grad); opacity: .55; }
.kpi.span3[b-lzkxotqmn0] { grid-column: span 3; }
.kpi-head[b-lzkxotqmn0] { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .55rem; }
.kpi-label[b-lzkxotqmn0] { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-icon[b-lzkxotqmn0] { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); font-size: 1rem; }
.kpi-value[b-lzkxotqmn0] { font-size: 1.9rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi-value.money[b-lzkxotqmn0] { font-size: 1.55rem; }
.kpi-value.is-neg[b-lzkxotqmn0] { color: var(--bad); }
.kpi-caption[b-lzkxotqmn0] { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.subs[b-lzkxotqmn0] { margin-top: .7rem; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .9rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.subs.one[b-lzkxotqmn0] { grid-template-columns: 1fr; }
.sub[b-lzkxotqmn0] { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; }
.sub span:first-child[b-lzkxotqmn0] { color: var(--muted); }
.sub span:last-child[b-lzkxotqmn0] { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip[b-lzkxotqmn0] { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.chip.mt[b-lzkxotqmn0] { margin-top: .6rem; }
.chip-warn[b-lzkxotqmn0] { background: var(--warn-bg); color: var(--warn); }
.chip-info[b-lzkxotqmn0] { background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); }
.chip-muted[b-lzkxotqmn0] { background: var(--track); color: var(--muted); }
.info-btn[b-lzkxotqmn0] { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; color: var(--accent-2); margin-top: .6rem; background: none; border: none; padding: 0; cursor: pointer; }
.chips .info-btn[b-lzkxotqmn0] { margin-top: 0; }
.bar[b-lzkxotqmn0] { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; margin-top: .55rem; }
.bar > i[b-lzkxotqmn0] { display: block; height: 100%; border-radius: 999px; background: var(--accent-grad); transition: width .4s ease; }
.what[b-lzkxotqmn0] { margin-top: .7rem; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: .55rem .7rem; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.what b[b-lzkxotqmn0] { color: var(--ink); }

/* Rentabilidad (ancho completo) */
.kpi.hero[b-lzkxotqmn0] { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.9fr; column-gap: 1.6rem; align-content: start; }
.hero .kpi-head[b-lzkxotqmn0] { grid-column: 1 / -1; }
.hero .hero-row[b-lzkxotqmn0] { grid-column: 1; grid-row: 2; display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.hero .bar[b-lzkxotqmn0] { grid-column: 1; grid-row: 3; align-self: start; }
.hero .figs[b-lzkxotqmn0] { grid-column: 2; grid-row: 2 / span 2; border-left: 1px solid var(--border); padding: .2rem 0 .2rem 1.4rem; align-self: center; }
.hero .chips[b-lzkxotqmn0] { grid-column: 1 / -1; grid-row: 4; margin-top: .7rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.hero .what[b-lzkxotqmn0] { grid-column: 1 / -1; grid-row: 5; }
.hero .kpi-value[b-lzkxotqmn0] { font-size: 2.9rem; }
.figs[b-lzkxotqmn0] { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.fig b[b-lzkxotqmn0] { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; line-height: 1.2; min-height: 2.4em; }
.fig span[b-lzkxotqmn0] { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig small[b-lzkxotqmn0] { display: block; font-size: .7rem; color: var(--muted); margin-top: .1rem; }

/* ---------- Paneles, gráficos y tablas ---------- */
.panel[b-lzkxotqmn0] { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 1.15rem 1.3rem 1rem; margin-bottom: 14px; }
.panel-title[b-lzkxotqmn0] { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 1rem; font-weight: 700; margin: 0 0 .8rem; flex-wrap: wrap; }
.panel-title small[b-lzkxotqmn0] { font-weight: 400; color: var(--muted); font-size: .82rem; }
.panel-title .info-btn[b-lzkxotqmn0] { margin-top: 0; }
.res-actions[b-lzkxotqmn0] { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.chart[b-lzkxotqmn0] { width: 100%; height: 260px; }
.chart[b-lzkxotqmn0]  canvas { max-width: 100%; }
.two[b-lzkxotqmn0] { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
table[b-lzkxotqmn0] { width: 100%; border-collapse: collapse; font-size: .86rem; }
th[b-lzkxotqmn0] { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .35rem .5rem; border-bottom: 1px solid var(--border-strong); }
td[b-lzkxotqmn0] { padding: .5rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
td.num[b-lzkxotqmn0], th.num[b-lzkxotqmn0] { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num[b-lzkxotqmn0] { font-weight: 700; }
tr:last-child td[b-lzkxotqmn0] { border-bottom: none; }
tr.total td[b-lzkxotqmn0] { font-weight: 700; border-top: 1px solid var(--border-strong); }
.hbar[b-lzkxotqmn0] { height: 8px; border-radius: 999px; background: var(--track); min-width: 90px; }
.hbar > i[b-lzkxotqmn0] { display: block; height: 100%; border-radius: 999px; background: var(--s1); }
.note[b-lzkxotqmn0] { font-size: .78rem; color: var(--muted); margin: .5rem 0 0; }
.res-value[b-lzkxotqmn0] { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-note[b-lzkxotqmn0] { font-size: .78rem; color: var(--muted); }
.footer-note[b-lzkxotqmn0] { font-size: .74rem; color: var(--faint); margin-top: .6rem; }
.exp-list[b-lzkxotqmn0] { margin-top: 1rem; display: grid; gap: .35rem; }
.exp-list details[b-lzkxotqmn0] { font-size: .82rem; }
.exp-list summary[b-lzkxotqmn0] { cursor: pointer; font-weight: 600; color: var(--accent-2); }
.exp-list .what[b-lzkxotqmn0] { margin-top: .35rem; }

/* ---------- Celular ---------- */
@media (max-width: 767.98px) {
    .ofk[b-lzkxotqmn0] { padding: .5rem 0 2rem; }
    .flt[b-lzkxotqmn0] { grid-template-columns: 1fr 1fr; }
    .flt .span2[b-lzkxotqmn0] { grid-column: span 2; }
    .flt-clear[b-lzkxotqmn0] { grid-column: span 2; text-align: left; padding: 0; }
    .grid[b-lzkxotqmn0] { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi[b-lzkxotqmn0], .kpi.span3[b-lzkxotqmn0] { grid-column: span 1; padding: .85rem .85rem .8rem; }
    .kpi.hero[b-lzkxotqmn0], .kpi.balance[b-lzkxotqmn0] { grid-column: span 2; display: block; }
    .hero .figs[b-lzkxotqmn0] { border-left: none; border-top: 1px solid var(--border); padding: .7rem 0 0; margin-top: .8rem; }
    .kpi-label[b-lzkxotqmn0] { white-space: normal; line-height: 1.25; }
    .kpi-icon[b-lzkxotqmn0] { width: 28px; height: 28px; border-radius: 8px; font-size: .85rem; }
    .kpi-value[b-lzkxotqmn0] { font-size: 1.45rem; }
    .kpi-value.money[b-lzkxotqmn0] { font-size: 1.2rem; }
    .hero .kpi-value[b-lzkxotqmn0] { font-size: 2.3rem; }
    .figs[b-lzkxotqmn0] { grid-template-columns: 1fr 1fr; }
    .subs[b-lzkxotqmn0] { grid-template-columns: 1fr; }
    .sub span:first-child[b-lzkxotqmn0] { flex: 1; min-width: 0; }
    .two[b-lzkxotqmn0] { grid-template-columns: 1fr; }
    .actions .txt[b-lzkxotqmn0] { display: none; }
    .panel[b-lzkxotqmn0] { padding: .95rem 1rem .8rem; }
    .chart[b-lzkxotqmn0] { height: 220px; }
    table[b-lzkxotqmn0] { font-size: .8rem; }
    td[b-lzkxotqmn0] { padding: .42rem .35rem; }
    th[b-lzkxotqmn0] { padding: .3rem .35rem; }
    .hbar[b-lzkxotqmn0] { min-width: 60px; }
    .hide-m[b-lzkxotqmn0] { display: none; }
}

/* ---------- Impresión (resumen ejecutivo) ---------- */
@media print {
    .head .actions[b-lzkxotqmn0], .flt[b-lzkxotqmn0], .tabs[b-lzkxotqmn0], .res-actions[b-lzkxotqmn0], .info-btn[b-lzkxotqmn0] { display: none !important; }
    .panel[b-lzkxotqmn0], .kpi[b-lzkxotqmn0] { box-shadow: none; border-color: #999; break-inside: avoid; }
    .ofk[b-lzkxotqmn0] { color: #000; }
}
