/* ═══════════════════════════════════════════════════════════════
   Ventas — estilos compartidos de Pricing, Base de datos y Resumen General.
   El nombre del archivo se conserva para no romper la carga histórica del asset.
   Usa los tokens globales --pv-* (css/modules/desarrollo/main.css).
   ═══════════════════════════════════════════════════════════════ */

#section-ventas {
    --vd-indigo: #6366f1;
    --vd-indigo-text: #a5b4fc;
    --vd-indigo-soft: rgba(99, 102, 241, 0.12);
    --vd-indigo-strong: rgba(99, 102, 241, 0.25);
    --vd-indigo-border: rgba(99, 102, 241, 0.32);
    --vd-up: #4ade80;
    --vd-down: #f87171;
}

/* ─────────────────────────────────────────────────────────────
   Utility classes 'v-*' — mejora #7 / VNT-HAL-010 (migración
   parcial). Reemplazan los style="..." inline más repetidos en
   ventas.html. Usan tokens --pv-* del design system de Desarrollo.
   ───────────────────────────────────────────────────────────── */

/* Texto */
.v-text-muted     { color: var(--pv-text-muted, #94a3b8); }
.v-text-secondary { color: var(--pv-text-secondary, #64748b); }
.v-text-primary   { color: var(--pv-text-primary, #cbd5e1); }
.v-text-xs        { font-size: var(--pv-text-xs, 0.68rem); }
.v-text-sm        { font-size: var(--pv-text-sm, 0.78rem); }
.v-text-base      { font-size: var(--pv-text-base, 0.85rem); }

/* Etiqueta clásica (font-size:0.7rem; color:#94a3b8; font-weight:600) */
.v-label {
    font-size: 0.7rem;
    color: var(--pv-text-muted, #94a3b8);
    font-weight: 600;
}
/* Sub-celda con offset top (font-size:0.65rem; color:#64748b; margin-top:4px) */
.v-cell-sub {
    font-size: 0.65rem;
    color: var(--pv-text-secondary, #64748b);
    margin-top: 4px;
}

/* Celdas de tabla con separador inferior consistente */
.v-tcell-r   { padding: 5px 5px; text-align: right;
               border-bottom: 1px solid rgba(51, 65, 85, 0.6); }
.v-tcell-l   { padding: 8px 8px; text-align: left;
               border-bottom: 1px solid rgba(51, 65, 85, 0.6); }
.v-tcell-num { padding: 8px 6px; text-align: right;
               border-bottom: 1px solid rgba(51, 65, 85, 0.6); }

/* Layout — flex centrado con gap fijo (los combos más repetidos) */
.v-row6     { display: flex; align-items: center; gap: 6px; }
.v-row6-mb8 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.v-row8     { display: flex; align-items: center; gap: 8px; }
.v-row10    { display: flex; align-items: center; gap: 10px; }

/* Heading de sección dentro de cards (icono + texto, color primario) */
.v-section-title {
    color: var(--pv-text-primary, #e2e8f0);
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Header fijo en tablas con scroll vertical */
.v-sticky-th { position: sticky; top: 0; z-index: 2; }
.v-relative  { position: relative; }
.v-pad16     { padding: 16px; }

/* Tarjetas KPI compartidas por Pricing. */

#section-ventas .stat-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 17px;
    background: var(--pv-card-surface, rgba(18, 24, 40, 0.75));
    border: 1px solid var(--pv-card-border, rgba(56, 73, 107, 0.25));
    border-radius: var(--pv-card-radius, 16px);
    box-shadow: var(--pv-elevation, 0 4px 24px rgba(0, 0, 0, 0.25));
    backdrop-filter: var(--pv-glass-blur, blur(12px));
    -webkit-backdrop-filter: var(--pv-glass-blur, blur(12px));
    position: relative;
    overflow: hidden;
    transition: transform var(--pv-duration-fast, 0.15s) ease,
                border-color var(--pv-duration-fast, 0.15s) ease;
}

#section-ventas .stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--vd-indigo-border);
}

#section-ventas .stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pv-text-muted, #9fb0c4);
}

#section-ventas .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pv-text-primary, #e2e8f0);
    font-variant-numeric: tabular-nums;
}

.dash-toggle-btn:focus-visible,
.dash-link-btn:focus-visible {
    outline: 2px solid var(--vd-indigo-text, #a5b4fc);
    outline-offset: 2px;
}

/* Toggle segmentado compartido por Resumen General. */
.dash-toggle {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    background: var(--pv-bg-base, rgba(15, 23, 42, 0.6));
    border: 1px solid var(--pv-card-border, rgba(56, 73, 107, 0.25));
    border-radius: 999px;
}
.dash-toggle-btn {
    padding: 5px 13px;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--pv-text-secondary, #8091a7);
    cursor: pointer;
    transition: background var(--pv-duration-fast, 0.15s) ease,
                color var(--pv-duration-fast, 0.15s) ease;
}
.dash-toggle-btn:hover { color: var(--pv-text-primary, #e2e8f0); }
.dash-toggle-btn.active {
    background: var(--vd-indigo, #6366f1);
    color: #fff;
}

/* ── Tabla por plataforma / productos ─────────────────────────── */

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.dash-table thead th {
    text-align: left;
    padding: 8px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pv-text-muted, #9fb0c4);
    border-bottom: 1px solid var(--pv-card-border, rgba(56, 73, 107, 0.3));
    white-space: nowrap;
}
.dash-table thead th.num,
.dash-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dash-table tbody td {
    padding: 9px 10px;
    color: var(--pv-text-primary, #e2e8f0);
    border-bottom: 1px solid rgba(56, 73, 107, 0.16);
}
.dash-table tbody tr:hover td { background: rgba(99, 102, 241, 0.06); }
.dash-table tbody tr:last-child td { border-bottom: none; }

.dash-table .row-total td {
    font-weight: 700;
    border-top: 1px solid var(--pv-card-border, rgba(56, 73, 107, 0.4));
    border-bottom: none;
    color: var(--pv-text-primary, #e2e8f0);
}

.dash-th-sort { cursor: pointer; user-select: none; }
.dash-th-sort:hover { color: var(--pv-text-primary, #e2e8f0); }
.dash-sort-ind { opacity: 0.3; font-size: 0.8em; }
.dash-sort-on { color: var(--vd-indigo-text, #a5b4fc); font-size: 0.8em; }

/* Punto de color de plataforma */
.dash-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    margin-right: 7px;
    vertical-align: middle;
}

/* Mini-barra de participación */
.dash-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.dash-bar-track {
    flex: 1;
    height: 7px;
    min-width: 46px;
    border-radius: 999px;
    background: rgba(56, 73, 107, 0.35);
    overflow: hidden;
}
.dash-bar-fill {
    display: block;       /* span por defecto es inline e ignora width/height */
    height: 100%;
    border-radius: 999px;
    background: var(--vd-indigo, #6366f1);
    transition: width 0.4s ease;
}
.dash-bar-pct {
    font-variant-numeric: tabular-nums;
    color: var(--pv-text-secondary, #8091a7);
    min-width: 36px;
    text-align: right;
}

/* Delta en celdas */
.dash-delta-up { color: var(--vd-up); font-weight: 600; }
.dash-delta-down { color: var(--vd-down); font-weight: 600; }
.dash-delta-flat { color: var(--pv-text-secondary, #8091a7); }

/* Pie de tarjeta de productos */
.dash-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
.dash-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--vd-indigo-text, #a5b4fc);
    padding: 4px 2px;
}
.dash-link-btn:hover { text-decoration: underline; }

/* ── Panel de alertas ─────────────────────────────────────────── */

.dash-alerts-count { font-size: 0.75rem; color: var(--pv-text-secondary, #8091a7); }
.dash-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
    #section-ventas .stat-card,
    .dash-toggle-btn { transition: none; }
    #section-ventas .stat-card:hover { transform: none; }
}

/* Drill-down: dato clickeable que lleva a su detalle */
.sv-drill { cursor: pointer; transition: color .15s ease; }
.sv-drill:hover { color: #818cf8; }

/* ──────────────────────────────────────────────────────────────
   Ventas / Pricing: compact view aligned with Historico OC
   ────────────────────────────────────────────────────────────── */

#sub-ventas-pricing {
    --pricing-line: rgba(51, 65, 85, 0.28);
    --pricing-soft: rgba(30, 41, 59, 0.35);
    --pricing-surface: rgba(15, 23, 42, 0.42);
}

#sub-ventas-pricing > div:first-of-type {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    padding: 7px 12px !important;
    background: rgba(30, 41, 59, 0.65) !important;
    border: 1px solid rgba(51, 65, 85, 0.3) !important;
    border-radius: 0.5rem !important;
}

#sub-ventas-pricing > div:first-of-type h2 {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
}

#pricing-product-count {
    padding: 2px 10px !important;
    border-radius: 10px !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    background: rgba(51, 65, 85, 0.3) !important;
    border: none !important;
}

#sub-ventas-pricing > div:first-of-type .v-row8 {
    gap: 8px !important;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

#pricing-search {
    width: min(360px, 32vw) !important;
    min-width: 240px !important;
    padding: 8px 14px 8px 36px !important;
    background-color: #0f172a !important;
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
    border-radius: 0.5rem !important;
    color: #f1f5f9 !important;
    font-size: 0.82rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
}

#pricing-risk-filter,
#pricing-channel-filter {
    padding: 5px 10px !important;
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(51, 65, 85, 0.45) !important;
    border-radius: 0.4rem !important;
    font-size: 0.78rem !important;
}

#sub-ventas-pricing > div:first-of-type button {
    padding: 5px 12px !important;
    background: rgba(129, 140, 248, 0.1) !important;
    color: #a5b4fc !important;
    border: 1px solid rgba(129, 140, 248, 0.25) !important;
    border-radius: 0.4rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

#pricing-import-menu {
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

#pricing-tab-precios,
#pricing-tab-ofertas {
    padding: 7px 16px !important;
    font-size: 0.78rem !important;
    color: #94a3b8 !important;
}

#pricing-tab-precios[style*="fbbf24"],
#pricing-tab-ofertas[style*="fbbf24"] {
    color: #a5b4fc !important;
    border-bottom-color: #818cf8 !important;
}

#pricing-offers-count {
    background: rgba(51, 65, 85, 0.45) !important;
    color: #94a3b8 !important;
}

#pricing-kpi-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

#pricing-kpi-cards .stat-card {
    padding: 9px 12px !important;
    border-radius: 0.55rem !important;
    text-align: left !important;
    border: 1px solid rgba(51, 65, 85, 0.32) !important;
    background: rgba(15, 23, 42, 0.46) !important;
    box-shadow: none !important;
}

#pricing-kpi-cards .stat-card::before {
    display: none !important;
}

#pricing-kpi-cards .stat-label {
    font-size: 0.6rem !important;
    color: #94a3b8 !important;
}

#pricing-kpi-cards .stat-value {
    margin-top: 3px;
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    color: #e2e8f0 !important;
}

#sub-ventas-pricing .cv-table-container {
    max-height: calc(100vh - 270px);
    border: 1px solid rgba(51, 65, 85, 0.25);
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.4);
}

#pricing-table {
    min-width: 1180px !important;
    font-size: 0.73rem !important;
}

#pricing-table .ho-th {
    padding: 7px 8px !important;
    background: #1e293b !important;
    color: #94a3b8 !important;
    font-size: 0.62rem !important;
    border-bottom: 2px solid rgba(51, 65, 85, 0.4) !important;
}

#pricing-table .ho-th-center {
    text-align: center !important;
}

#pricing-table .ho-th-right {
    text-align: right !important;
}

#pricing-table tbody tr.pricing-row-main td {
    padding: 5px 8px !important;
    font-size: 0.73rem !important;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(51, 65, 85, 0.15) !important;
}

#pricing-table tbody tr.pricing-row-main:nth-child(even) td {
    background: rgba(30, 41, 59, 0.25);
}

#pricing-table tbody tr.pricing-row-main:hover td {
    background: rgba(99, 102, 241, 0.07) !important;
}

.pricing-platform-chip {
    display: inline-block;
    padding: 1px 5px;
    margin-right: 2px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--plat-color);
    background: rgba(51, 65, 85, 0.22);
    border: 1px solid rgba(100, 116, 139, 0.28);
}

.pricing-risk-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--risk-color);
    background: rgba(51, 65, 85, 0.18);
    border: 1px solid rgba(100, 116, 139, 0.24);
    white-space: nowrap;
}

.pricing-muted {
    color: #64748b;
    font-size: 0.66rem;
}

.pricing-motor-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.24);
}

.pricing-cost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 74px;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(15, 23, 42, 0.45);
    color: #93c5fd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.pricing-cost-btn:hover {
    color: #dbeafe;
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 41, 59, 0.72);
}

.pricing-empty-cell {
    padding: 40px;
    text-align: center;
    color: #64748b;
}

.pricing-detail-row > td {
    background: rgba(15, 23, 42, 0.66) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.18) !important;
}

.pricing-detail-inner {
    padding: 8px 12px !important;
}

.pricing-detail-title {
    margin-bottom: 7px !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    color: #cbd5e1 !important;
}

.pricing-detail-title span {
    font-size: 0.66rem !important;
}

.pricing-detail-metrics {
    gap: 5px !important;
    margin-bottom: 8px !important;
}

.pricing-detail-metric {
    min-width: 92px !important;
    padding: 4px 7px !important;
    border-radius: 5px !important;
    background: rgba(15, 23, 42, 0.48) !important;
    border-color: rgba(51, 65, 85, 0.28) !important;
}

.pricing-detail-metric-label {
    font-size: 0.52rem !important;
    letter-spacing: 0.02em !important;
}

.pricing-detail-metric-value {
    margin-top: 1px !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
}

.pricing-detail-table {
    table-layout: fixed;
    font-size: 0.67rem !important;
}

.pricing-detail-table th,
.pricing-detail-table td {
    line-height: 1.16 !important;
    vertical-align: middle !important;
}

.pricing-detail-table th {
    padding: 5px 6px !important;
    font-size: 0.57rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.38);
}

.pricing-detail-table td {
    padding: 4px 6px !important;
    font-size: 0.67rem !important;
    color: #cbd5e1;
}

.pricing-detail-table tbody tr:nth-child(even) td {
    background: rgba(30, 41, 59, 0.18);
}

.pricing-detail-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.055);
}

.pricing-detail-table th:nth-child(7),
.pricing-detail-table td:nth-child(7) {
    border-left: 1px solid rgba(99, 102, 241, 0.22) !important;
}

.pricing-detail-table td:first-child > span {
    padding: 1px 6px !important;
    border-radius: 4px !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    background: rgba(51, 65, 85, 0.2) !important;
    color: #cbd5e1 !important;
    border-color: rgba(100, 116, 139, 0.28) !important;
}

.pricing-detail-table td span {
    line-height: 1.12 !important;
}

.pricing-detail-price,
.pricing-detail-sug-price,
.pricing-detail-floor {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
    font-family: 'JetBrains Mono', monospace;
}

.pricing-detail-old-price,
.pricing-detail-sug-margin,
.pricing-detail-discount-text {
    font-size: 0.54rem !important;
}

.pricing-detail-sug-margin {
    opacity: 0.88;
}

.pricing-detail-discount {
    font-size: 0.5rem !important;
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fca5a5 !important;
}

.pricing-detail-score {
    padding: 1px 6px !important;
    border-radius: 5px !important;
    font-size: 0.58rem !important;
    background: rgba(51, 65, 85, 0.2) !important;
    border-color: rgba(100, 116, 139, 0.26) !important;
}

.pricing-detail-status,
.pricing-detail-comp {
    padding: 1px 5px !important;
    border-radius: 4px !important;
    font-size: 0.55rem !important;
}

.pricing-detail-row .pricing-cost-btn {
    min-width: 64px;
    padding: 1px 5px;
    font-size: 0.61rem;
    border-radius: 4px;
}

.pricing-cost-popover {
    position: fixed;
    width: 320px;
    z-index: 10000;
    padding: 10px;
    background: #111827;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
    color: #cbd5e1;
}

.pricing-cost-pop-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.pricing-cost-pop-head strong {
    display: block;
    margin-top: 2px;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.pricing-cost-pop-platform {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--plat-color);
}

.pricing-cost-pop-close {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 5px;
    background: rgba(51, 65, 85, 0.45);
    color: #94a3b8;
    cursor: pointer;
}

.pricing-cost-pop-product {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.32);
}

.pricing-cost-pop-product span {
    color: #818cf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.pricing-cost-pop-product small {
    color: #64748b;
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pricing-cost-pop-body {
    padding: 6px 0;
}

.pricing-cost-pop-row,
.pricing-cost-pop-total,
.pricing-cost-pop-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pricing-cost-pop-row {
    padding: 4px 0;
    color: #94a3b8;
    font-size: 0.72rem;
}

.pricing-cost-pop-row strong,
.pricing-cost-pop-total strong {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
}

.pricing-cost-pop-total {
    padding-top: 8px;
    margin-top: 2px;
    border-top: 1px solid rgba(51, 65, 85, 0.55);
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 700;
}

.pricing-cost-pop-meta {
    flex-wrap: wrap;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.64rem;
}

.pricing-cost-pop-empty {
    padding: 12px 0;
    color: #64748b;
    font-size: 0.72rem;
}

@media (max-width: 1180px) {
    #sub-ventas-pricing > div:first-of-type {
        align-items: flex-start !important;
    }

    #sub-ventas-pricing > div:first-of-type .v-row8 {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
    }

    #pricing-search {
        width: 100% !important;
        max-width: none;
    }

    #pricing-kpi-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Ventas > Base de datos */
#sub-ventas-database {
    padding-top: 2px;
}

.vdb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(51, 65, 85, 0.46);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.72);
}

.vdb-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.vdb-title {
    margin: 0;
    color: #e2e8f0;
    font-size: 1.02rem;
    font-weight: 800;
}

.vdb-count {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.45);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.vdb-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.vdb-control {
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(51, 65, 85, 0.55);
    border-radius: 7px;
    background: rgba(2, 6, 23, 0.36);
    color: #cbd5e1;
    font-size: 0.76rem;
    outline: none;
}

.vdb-control:focus {
    border-color: rgba(129, 140, 248, 0.55);
}

.vdb-date {
    width: 132px;
}

.vdb-search {
    width: 260px;
}

.vdb-btn {
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 7px;
    background: rgba(99, 102, 241, 0.10);
    color: #a5b4fc;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.vdb-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.vdb-btn-primary {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.32);
    color: #93c5fd;
}

.vdb-source-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 0.68rem;
}

.vdb-source-pill {
    padding: 3px 7px;
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.07);
    color: #94a3b8;
}

.vdb-source-pending {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(51, 65, 85, 0.22);
}

.vdb-muted {
    color: #94a3b8;
    font-weight: 700;
}

.vdb-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.vdb-kpi {
    padding: 9px 12px;
    border: 1px solid rgba(51, 65, 85, 0.45);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.52);
}

.vdb-kpi span {
    display: block;
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vdb-kpi strong {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.vdb-alert {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 0.75rem;
    color: #cbd5e1;
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(15, 23, 42, 0.75);
}

.vdb-alert-error {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.36);
    background: rgba(127, 29, 29, 0.22);
}

.vdb-alert-warn {
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(120, 53, 15, 0.20);
}

.vdb-alert-ok {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(20, 83, 45, 0.18);
}

.vdb-table-wrap {
    border-radius: 8px;
}

.vdb-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.vdb-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 8px 10px;
    background: #1f2937;
    color: #93a4ba;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.vdb-table tbody td {
    padding: 7px 10px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(30, 41, 59, 0.45);
    vertical-align: middle;
}

.vdb-main-row:nth-child(4n+1) td {
    background: rgba(15, 23, 42, 0.42);
}

.vdb-main-row:hover td {
    background: rgba(59, 130, 246, 0.055);
}

.vdb-main-row {
    cursor: pointer;
}

.vdb-order-parent td {
    background: rgba(15, 23, 42, 0.58);
}

.vdb-order-parent .vdb-product strong {
    color: #c7d2fe;
}

.vdb-num,
.vdb-mono {
    font-family: 'JetBrains Mono', monospace;
}

.vdb-num {
    text-align: right;
    white-space: nowrap;
}

.vdb-negative {
    color: #f87171 !important;
}

.vdb-mono small,
.vdb-product span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.66rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdb-product {
    max-width: 360px;
}

.vdb-product strong {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
}

.vdb-platform,
.vdb-status,
.vdb-detail-btn {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    white-space: nowrap;
}

.vdb-platform {
    background: rgba(51, 65, 85, 0.35);
    border: 1px solid rgba(100, 116, 139, 0.30);
    color: #cbd5e1;
}

.vdb-plat-mercadolibre {
    color: #93c5fd;
}

.vdb-plat-shopify {
    color: #86efac;
}

.vdb-plat-amazon {
    color: #fbbf24;
}

.vdb-plat-liverpool {
    color: #d8b4fe;
}

.vdb-plat-tiktok {
    color: #fca5a5;
}

.vdb-status-real {
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.26);
    background: rgba(20, 83, 45, 0.20);
}

.vdb-status-pending {
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.26);
    background: rgba(51, 65, 85, 0.28);
}

.vdb-detail-btn {
    border: 1px solid rgba(96, 165, 250, 0.30);
    background: rgba(30, 64, 175, 0.18);
    color: #93c5fd;
    cursor: pointer;
}

.vdb-detail-row td {
    padding: 0 8px 6px 8px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    cursor: default;
}

.vdb-detail-box {
    padding: 6px;
    border: 1px solid rgba(51, 65, 85, 0.48);
    border-radius: 8px;
    background: rgba(2, 6, 23, 0.30);
}

.vdb-flow-sections {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.45fr) minmax(220px, 0.8fr);
    gap: 6px;
    margin-bottom: 6px;
}

.vdb-flow-section {
    min-width: 0;
    padding: 6px;
    border: 1px solid rgba(51, 65, 85, 0.38);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.22);
}

.vdb-flow-section-ingreso {
    border-top-color: rgba(74, 222, 128, 0.42);
}

.vdb-flow-section-egreso {
    border-top-color: rgba(248, 113, 113, 0.40);
}

.vdb-flow-section-resultado {
    border-top-color: rgba(147, 197, 253, 0.38);
}

.vdb-flow-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 5px;
    color: #93a4ba;
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vdb-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 4px;
    margin-bottom: 0;
}

.vdb-detail-card {
    position: relative;
    min-width: 0;
    padding: 5px 7px 5px 9px;
    border-radius: 6px;
    background: rgba(30, 41, 59, 0.25);
    border-left: 2px solid rgba(100, 116, 139, 0.35);
}

.vdb-detail-grid span,
.vdb-detail-line span,
.vdb-detail-line small {
    color: #94a3b8;
    font-size: 0.58rem;
    line-height: 1.2;
}

.vdb-detail-grid strong,
.vdb-detail-line strong {
    display: block;
    margin-top: 2px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    line-height: 1.2;
}

.vdb-detail-lines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.vdb-flow-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 1px 5px;
    border-radius: 999px;
    font-size: 0.5rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-transform: uppercase;
}

.vdb-flow-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: currentColor;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.55);
}

.vdb-flow-ingreso {
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.24);
    background: rgba(20, 83, 45, 0.16);
}

.vdb-detail-card.vdb-flow-ingreso {
    border-left-color: rgba(74, 222, 128, 0.58);
}

.vdb-flow-egreso {
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.22);
    background: rgba(127, 29, 29, 0.14);
}

.vdb-detail-card.vdb-flow-egreso {
    border-left-color: rgba(248, 113, 113, 0.58);
}

.vdb-flow-neto {
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(30, 64, 175, 0.14);
}

.vdb-detail-card.vdb-flow-neto {
    border-left-color: rgba(96, 165, 250, 0.58);
}

.vdb-flow-resultado {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(51, 65, 85, 0.22);
}

.vdb-detail-card.vdb-flow-resultado {
    border-left-color: rgba(203, 213, 225, 0.5);
}

.vdb-flow-referencia {
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.22);
    background: rgba(51, 65, 85, 0.18);
}

.vdb-detail-subtitle {
    margin: 6px 0 4px;
    color: #93a4ba;
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vdb-order-lines-wrap {
    overflow-x: auto;
    margin-bottom: 6px;
    border: 1px solid rgba(51, 65, 85, 0.36);
    border-radius: 6px;
}

.vdb-order-lines {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 0.68rem;
}

.vdb-order-lines th {
    padding: 6px 8px;
    background: rgba(30, 41, 59, 0.64);
    color: #93a4ba;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.vdb-order-lines td {
    padding: 6px 8px !important;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.34) !important;
    border-bottom: 1px solid rgba(30, 41, 59, 0.55);
}

.vdb-order-lines td strong {
    display: block;
    max-width: 420px;
    overflow: hidden;
    color: #e2e8f0;
    font-size: 0.68rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdb-order-lines td small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.6rem;
}

.vdb-sku-details {
    display: grid;
    gap: 5px;
    margin-bottom: 6px;
}

.vdb-sku-detail {
    padding: 6px 7px;
    border: 1px solid rgba(51, 65, 85, 0.36);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.34);
}

.vdb-sku-detail-head {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(420px, 1fr);
    gap: 8px;
    align-items: start;
    margin-bottom: 5px;
}

.vdb-sku-title {
    min-width: 0;
}

.vdb-sku-title strong,
.vdb-sku-title span,
.vdb-sku-title small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdb-sku-title strong {
    color: #dbeafe;
    font-size: 0.72rem;
    line-height: 1.2;
}

.vdb-sku-title span {
    margin-top: 1px;
    color: #cbd5e1;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
}

.vdb-sku-title small {
    margin-top: 1px;
    color: #64748b;
    font-size: 0.56rem;
    line-height: 1.2;
}

.vdb-sku-head-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    gap: 4px;
}

.vdb-sku-head-metrics span {
    min-width: 0;
    padding: 3px 5px;
    border: 1px solid rgba(51, 65, 85, 0.34);
    border-radius: 5px;
    color: #94a3b8;
    font-size: 0.54rem;
    line-height: 1.15;
    background: rgba(2, 6, 23, 0.22);
}

.vdb-sku-head-metrics strong {
    display: block;
    margin-top: 1px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    line-height: 1.15;
}

.vdb-sku-flow-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(420px, 1.55fr) minmax(180px, 0.65fr);
    gap: 5px;
}

.vdb-sku-flow {
    min-width: 0;
    padding: 5px;
    border: 1px solid rgba(51, 65, 85, 0.34);
    border-radius: 6px;
    background: rgba(2, 6, 23, 0.18);
}

.vdb-sku-flow h5 {
    margin: 0 0 4px;
    color: #93a4ba;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.vdb-sku-flow > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 4px;
}

.vdb-sku-flow-ingreso {
    border-left-color: rgba(74, 222, 128, 0.46);
}

.vdb-sku-flow-egreso {
    border-left-color: rgba(248, 113, 113, 0.46);
}

.vdb-sku-flow-resultado {
    border-left-color: rgba(147, 197, 253, 0.42);
}

.vdb-sku-metric {
    min-width: 0;
    padding: 4px 5px;
    border-left-width: 2px;
    border-radius: 5px;
}

.vdb-sku-metric small {
    display: block;
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.54rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdb-sku-metric strong {
    display: block;
    margin-top: 1px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    line-height: 1.15;
}

.vdb-sku-concepts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 5px;
}

.vdb-sku-concept {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr) auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(2, 6, 23, 0.30);
    border-left: 2px solid rgba(100, 116, 139, 0.24);
}

.vdb-sku-concept span,
.vdb-sku-concept small {
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.55rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdb-sku-concept strong {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    line-height: 1.15;
}

.vdb-sku-concept.vdb-flow-line-ingreso {
    border-left-color: rgba(74, 222, 128, 0.50);
}

.vdb-sku-concept.vdb-flow-line-egreso {
    border-left-color: rgba(248, 113, 113, 0.50);
}

.vdb-sku-concept.vdb-flow-line-referencia {
    border-left-color: rgba(148, 163, 184, 0.34);
}

.vdb-detail-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.55);
    border-left: 2px solid rgba(100, 116, 139, 0.24);
}

.vdb-detail-line.vdb-flow-line-ingreso {
    border-left-color: rgba(74, 222, 128, 0.50);
}

.vdb-detail-line.vdb-flow-line-egreso {
    border-left-color: rgba(248, 113, 113, 0.50);
}

.vdb-detail-line.vdb-flow-line-neto {
    border-left-color: rgba(96, 165, 250, 0.50);
}

.vdb-detail-line.vdb-flow-line-referencia {
    border-left-color: rgba(148, 163, 184, 0.34);
}

.vdb-detail-concept {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.vdb-detail-empty,
.vdb-empty {
    padding: 18px;
    color: #64748b;
    font-size: 0.78rem;
    text-align: center;
}

/* Ventas > Resumen General */
#sub-ventas-resumen-nuevo {
    padding-top: 2px;
}

.vrn-toolbar {
    margin-bottom: 8px;
}

.vrn-loading-status,
.vrn-freshness {
    display: none;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 700;
}

.vrn-loading .vrn-loading-status,
.vrn-freshness:not(:empty) {
    display: inline-flex;
}

#sub-ventas-resumen-nuevo .vrn-analysis-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 14px;
    margin: 12px 0 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(71, 85, 105, 0.42);
}

#sub-ventas-resumen-nuevo .vrn-analysis-label-wrap {
    align-self: center;
}

#sub-ventas-resumen-nuevo .vrn-analysis-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(129, 140, 248, 0.28);
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.09);
    color: var(--pv-text-secondary, #94a3b8);
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vrn-period-controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.vrn-estimate-control {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px;
    cursor: pointer;
    border: 1px solid rgba(71, 85, 105, 0.48);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    transition: border-color 140ms ease, background 140ms ease;
}

.vrn-estimate-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.vrn-estimate-switch {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 18px;
    border-radius: 999px;
    background: #334155;
    transition: background 140ms ease;
}

.vrn-estimate-switch i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: transform 140ms ease;
}

.vrn-estimate-control.is-active {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(99, 102, 241, 0.1);
}

.vrn-estimate-control.is-active .vrn-estimate-switch { background: #6366f1; }
.vrn-estimate-control.is-active .vrn-estimate-switch i { transform: translateX(16px); background: #fff; }
.vrn-estimate-control input:checked + .vrn-estimate-switch { background: #6366f1; }
.vrn-estimate-control input:checked + .vrn-estimate-switch i { transform: translateX(16px); background: #fff; }
.vrn-estimate-control.is-error { border-color: rgba(248, 113, 113, 0.5); }

.vrn-estimate-control:focus-within {
    outline: 2px solid rgba(129, 140, 248, 0.6);
    outline-offset: 2px;
}

.vrn-estimate-copy { display: grid; gap: 1px; }
.vrn-estimate-copy strong { color: #e2e8f0; font-size: 0.68rem; }
.vrn-estimate-copy small { color: #64748b; font-size: 0.58rem; max-width: 220px; }

.vrn-estimation-enabled .vrn-metric-card:first-child,
.vrn-estimation-enabled #vrn-profit-after-ads-card {
    border-color: rgba(129, 140, 248, 0.35);
}

.vrn-period-field {
    display: grid;
    gap: 4px;
    min-width: 178px;
}

.vrn-period-field > span {
    color: var(--pv-text-secondary, #94a3b8);
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: var(--pv-text-xs, 0.66rem);
    font-weight: 700;
}

.vrn-period-field .vdb-control {
    width: 100%;
    min-height: 34px;
    color: var(--pv-text-primary, #e2e8f0);
    background: var(--pv-card-surface-solid, #0f172a);
    border-color: var(--pv-card-border, rgba(71, 85, 105, 0.5));
}

.vrn-custom-range {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    color: var(--pv-text-secondary, #64748b);
    font-size: var(--pv-text-xs, 0.66rem);
}

.vrn-custom-range[hidden] {
    display: none !important;
}

.vrn-period-error {
    flex-basis: 100%;
    grid-column: 1 / -1;
    max-width: 430px;
    margin: 0;
    color: #fca5a5;
    font-size: 0.75rem;
    line-height: 1.5;
}

.vrn-period-controls .vdb-control[aria-invalid="true"] {
    border-color: #f87171;
}

#vrn-month {
    width: 200px;
    min-width: 0;
    max-width: 100%;
}

.vrn-custom-apply {
    cursor: pointer;
    color: #e0e7ff;
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(129, 140, 248, 0.38);
    font-weight: 800;
}

.vrn-executive {
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--pv-text-primary, #e2e8f0);
    background: var(--pv-card-surface, rgba(18, 24, 40, 0.75));
    border: 1px solid var(--vd-indigo-border, rgba(99, 102, 241, 0.32));
    border-radius: var(--pv-card-radius, 16px);
    box-shadow: var(--pv-elevation, 0 4px 24px rgba(0, 0, 0, 0.25));
    backdrop-filter: var(--pv-glass-blur, blur(12px));
    -webkit-backdrop-filter: var(--pv-glass-blur, blur(12px));
}

.vrn-executive[hidden] {
    display: none !important;
}

.vrn-executive-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px 0;
}

.vrn-executive-head h3 {
    margin: 2px 0 0;
    font-size: 0.94rem;
    font-weight: 850;
}

.vrn-executive-eyebrow,
.vrn-executive-scope {
    color: var(--pv-text-muted, #94a3b8);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vrn-executive-scope {
    padding-top: 2px;
    color: var(--vd-indigo-text, #a5b4fc);
}

.vrn-executive-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 1px minmax(220px, 1fr);
    gap: 22px;
    padding: 14px 18px 16px;
}

.vrn-executive-actual,
.vrn-executive-projection {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.vrn-executive-divider {
    background: var(--pv-card-border, rgba(56, 73, 107, 0.3));
}

.vrn-executive-label {
    color: var(--pv-text-muted, #94a3b8);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vrn-executive-value {
    color: var(--pv-text-primary, #f8fafc);
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
}

.vrn-executive-value.is-secondary {
    font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

.vrn-executive-progress {
    height: 9px;
    margin: 2px 0 0;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(56, 73, 107, 0.35);
}

.vrn-executive-progress > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--vd-indigo, #6366f1), #818cf8);
    transition: width var(--pv-duration-slow, 0.35s) var(--pv-ease-out, ease);
}

.vrn-executive-progress.is-over > span {
    background: linear-gradient(90deg, var(--vd-up, #4ade80), #86efac);
}

.vrn-executive-note,
.vrn-executive-status {
    color: var(--pv-text-secondary, #8091a7);
    font-size: 0.7rem;
    line-height: 1.4;
}

.vrn-executive-deltas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 16px;
}

.vrn-executive-deltas small {
    color: var(--pv-text-secondary, #8091a7);
    font-size: 0.68rem;
    font-weight: 750;
}

.vrn-executive-deltas .is-up { color: var(--vd-up, #4ade80); }
.vrn-executive-deltas .is-down { color: var(--vd-down, #f87171); }
.vrn-executive-deltas .is-neutral { color: var(--pv-text-muted, #64748b); }

.vrn-executive-status {
    min-height: 26px;
    padding: 6px 18px 7px;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
    background: rgba(2, 6, 23, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .vrn-executive-progress > span {
        transition: none;
    }
}

.vrn-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.vrn-metric-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 116px;
    padding: 12px 13px;
    overflow: hidden;
    background: var(--pv-card-surface, rgba(15, 23, 42, 0.58));
    border: 1px solid var(--pv-card-border, rgba(51, 65, 85, 0.45));
    border-radius: var(--pv-card-radius, 8px);
    box-shadow: var(--pv-elevation, 0 10px 28px rgba(2, 6, 23, 0.16));
}

.vrn-metric-card.is-unavailable {
    background: rgba(15, 23, 42, 0.32);
    border-style: dashed;
}

#vrn-visits-card {
    position: relative;
    overflow: visible;
    z-index: 4;
}

.vrn-metric-label-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vrn-help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--pv-card-border, rgba(100, 116, 139, 0.55));
    border-radius: 50%;
    background: var(--pv-card-surface-solid, #0f172a);
    color: var(--pv-text-secondary, #94a3b8);
    font: 800 0.68rem/1 var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    cursor: pointer;
}

.vrn-help-button:hover,
.vrn-help-button:focus-visible,
.vrn-help-button[aria-expanded="true"] {
    border-color: var(--pv-accent, #818cf8);
    color: var(--pv-text-primary, #f8fafc);
    outline: none;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
}

.vrn-coverage-popover {
    position: absolute;
    top: 31px;
    right: -2px;
    z-index: 40;
    width: min(340px, calc(100vw - 48px));
    overflow: hidden;
    border: 1px solid var(--pv-card-border, rgba(71, 85, 105, 0.72));
    border-radius: var(--pv-input-radius, 10px);
    background: var(--pv-card-surface-solid, #0b1222);
    box-shadow: var(--pv-elevation, 0 18px 45px rgba(2, 6, 23, 0.5));
    color: var(--pv-text-primary, #e2e8f0);
}

.vrn-coverage-popover[hidden] {
    display: none;
}

.vrn-coverage-popover header,
.vrn-coverage-popover footer {
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.78);
}

.vrn-coverage-popover header {
    border-bottom: 1px solid var(--pv-card-border, rgba(51, 65, 85, 0.5));
}

.vrn-coverage-popover header strong,
.vrn-coverage-popover header small {
    display: block;
}

.vrn-coverage-popover header strong {
    font-size: 0.76rem;
    font-weight: 900;
}

.vrn-coverage-popover header small,
.vrn-coverage-popover footer {
    margin-top: 2px;
    color: var(--pv-text-muted, #64748b);
    font-size: 0.61rem;
    font-weight: 700;
}

.vrn-coverage-popover footer {
    margin-top: 0;
    border-top: 1px solid var(--pv-card-border, rgba(51, 65, 85, 0.5));
}

.vrn-coverage-list {
    display: grid;
    padding: 4px 0;
}

.vrn-coverage-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 6px 12px;
}

.vrn-coverage-item + .vrn-coverage-item {
    border-top: 1px solid rgba(51, 65, 85, 0.28);
}

.vrn-coverage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid color-mix(in srgb, var(--vrn-platform-color, #94a3b8) 55%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--vrn-platform-color, #94a3b8) 13%, transparent);
    color: var(--vrn-platform-color, #94a3b8);
    font: 900 0.58rem/1 var(--pv-font-ui, 'Inter', system-ui, sans-serif);
}

.vrn-coverage-copy strong,
.vrn-coverage-copy small {
    display: block;
}

.vrn-coverage-copy strong {
    font-size: 0.7rem;
    font-weight: 850;
}

.vrn-coverage-copy small {
    margin-top: 2px;
    color: var(--pv-text-muted, #64748b);
    font-size: 0.59rem;
    line-height: 1.3;
}

.vrn-coverage-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--pv-text-secondary, #94a3b8);
    font-size: 0.61rem;
    font-weight: 850;
    white-space: nowrap;
}

.vrn-coverage-state::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pv-text-muted, #64748b);
    content: '';
}

.vrn-coverage-item.is-available .vrn-coverage-state { color: var(--pv-green, #4ade80); }
.vrn-coverage-item.is-available .vrn-coverage-state::before { background: var(--pv-green, #4ade80); }
.vrn-coverage-item.is-partial .vrn-coverage-state { color: var(--pv-amber, #fbbf24); }
.vrn-coverage-item.is-partial .vrn-coverage-state::before { background: var(--pv-amber, #fbbf24); }
.vrn-coverage-item.is-unavailable .vrn-coverage-state { color: var(--pv-red, #f87171); }
.vrn-coverage-item.is-unavailable .vrn-coverage-state::before { background: var(--pv-red, #f87171); }

.vrn-metric-label {
    color: var(--pv-text-secondary, #94a3b8);
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: var(--pv-text-xs, 0.64rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vrn-metric-value {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: var(--pv-text-primary, #f8fafc);
    font-family: var(--pv-font-mono, 'JetBrains Mono', monospace);
    font-size: clamp(1rem, 1.35vw, 1.24rem);
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrn-metric-comparison,
.vrn-metric-note {
    display: block;
    margin-top: 5px;
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: var(--pv-text-xs, 0.62rem);
    line-height: 1.35;
}

.vrn-metric-comparison {
    min-height: 14px;
    color: var(--pv-text-secondary, #64748b);
    font-weight: 800;
}

.vrn-metric-note {
    margin-top: auto;
    padding-top: 5px;
    color: var(--pv-text-muted, #64748b);
    font-weight: 650;
}

.vrn-metric-comparison .is-up { color: #4ade80; }
.vrn-metric-comparison .is-down { color: #f87171; }
.vrn-metric-comparison .is-neutral { color: #64748b; }

.vrn-comparison-disabled [data-vrn-comparison] {
    display: none;
}

.vrn-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(129, 140, 248, 0.25);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: vrn-spin 0.8s linear infinite;
}

@keyframes vrn-spin {
    to { transform: rotate(360deg); }
}

.vrn-filter-actions {
    flex-wrap: nowrap;
    gap: 6px;
}

.vrn-platform-select {
    display: none;
}

.vrn-period-group,
.vrn-date-range {
    display: flex;
    align-items: center;
}

.vrn-period-group {
    padding: 2px;
    border: 1px solid rgba(51, 65, 85, 0.55);
    border-radius: 7px;
    background: rgba(2, 6, 23, 0.28);
}

.vrn-date-range {
    gap: 5px;
    color: #64748b;
    font-size: 0.68rem;
}

.vrn-period-btn {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
}

.vrn-period-btn.is-active,
.vrn-toggle button.is-active {
    background: rgba(99, 102, 241, 0.22);
    color: #e0e7ff;
}

.vrn-platform-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
    padding: 4px;
    border: 1px solid rgba(51, 65, 85, 0.38);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.38);
}

.vrn-platform-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    height: 30px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.vrn-platform-tabs button:hover {
    background: rgba(30, 41, 59, 0.62);
    color: #e2e8f0;
}

.vrn-platform-tabs button.is-active {
    border-color: rgba(129, 140, 248, 0.48);
    background: rgba(99, 102, 241, 0.15);
    color: #f8fafc;
}

.vrn-platform-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}

.vrn-platform-dot.is-all { background: #a5b4fc; }
.vrn-platform-dot.is-amazon { background: #f59e0b; }
.vrn-platform-dot.is-ml { background: #60a5fa; }
.vrn-platform-dot.is-shopify { background: #4ade80; }
.vrn-platform-dot.is-liverpool { background: #e879f9; }
.vrn-platform-dot.is-tiktok { background: #f87171; }

.vrn-overview {
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) repeat(4, minmax(135px, 1fr));
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.45);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.58);
}

.vrn-overview-primary,
.vrn-overview-metric {
    min-width: 0;
    padding: 12px 14px;
}

.vrn-overview-primary {
    border-right: 1px solid rgba(51, 65, 85, 0.38);
}

.vrn-overview-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(51, 65, 85, 0.28);
}

.vrn-overview-metric:last-child {
    border-right: 0;
}

.vrn-overview-metric > span,
.vrn-context-strip article > span {
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vrn-overview-metric strong {
    margin-top: 5px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.vrn-overview-metric small {
    min-height: 15px;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 700;
}

.vrn-hero-value {
    display: block;
    color: #f8fafc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 5px 0 8px;
}

.vrn-context-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 8px;
    border: 1px solid rgba(51, 65, 85, 0.38);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.38);
}

.vrn-context-strip article {
    min-width: 0;
    padding: 8px 11px;
    border-right: 1px solid rgba(51, 65, 85, 0.26);
}

.vrn-context-strip article:last-child {
    border-right: 0;
}

.vrn-context-strip strong {
    display: block;
    margin-top: 3px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.2;
}

.vrn-context-strip small,
.vrn-panel-head span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.63rem;
    font-weight: 700;
}

.vrn-overview small .is-up,
.vrn-context-strip small .is-up {
    color: #4ade80;
}

.vrn-overview small .is-down,
.vrn-context-strip small .is-down {
    color: #f87171;
}

.vrn-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.vrn-grid-bottom {
    grid-template-columns: minmax(0, 1fr);
}

.vrn-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.45);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.58);
}

.vrn-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.38);
}

.vrn-panel-head h3 {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.84rem;
    font-weight: 900;
}

.vrn-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 7px;
    color: var(--pv-accent-cyan, #22d3ee);
    font-size: 0.67rem;
    font-weight: 850;
    text-decoration: none;
    transition:
        color var(--pv-duration-fast, 140ms) var(--pv-ease-out, ease),
        background var(--pv-duration-fast, 140ms) var(--pv-ease-out, ease);
}

.vrn-panel-link:hover,
.vrn-panel-link:focus-visible {
    background: color-mix(in srgb, var(--pv-accent-cyan, #22d3ee) 10%, transparent);
    color: var(--pv-text-primary, #f8fafc);
    outline: none;
}

.vrn-panel-head > div > span {
    margin-top: 2px;
}

.vrn-toggle {
    display: flex;
    gap: 4px;
}

.vrn-trend-actions,
.vrn-chart-period-legend,
.vrn-chart-period-legend span,
.vrn-resolution-legend,
.vrn-resolution-legend span {
    display: flex;
    align-items: center;
}

.vrn-trend-actions {
    justify-content: flex-end;
    gap: 12px;
}

.vrn-chart-period-legend {
    gap: 9px;
    flex-wrap: wrap;
}

.vrn-chart-period-legend span {
    gap: 5px;
    color: var(--pv-text-muted, #64748b);
    font-size: 0.58rem;
    font-weight: 750;
    white-space: nowrap;
}

.vrn-chart-period-legend i {
    width: 18px;
    height: 0;
    border-top: 2px solid var(--pv-accent, #818cf8);
}

.vrn-chart-period-legend i.is-previous {
    border-color: var(--pv-text-secondary, #94a3b8);
    border-top-style: dashed;
}

.vrn-resolution-legend {
    gap: 9px;
    flex-wrap: wrap;
}

.vrn-resolution-legend span {
    gap: 4px;
    margin-top: 0;
    color: var(--pv-text-muted, #64748b);
    font-size: 0.58rem;
    font-weight: 750;
    white-space: nowrap;
}

.vrn-resolution-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.08);
}

.vrn-resolution-legend i.is-complete { background: var(--pv-green, #4ade80); }
.vrn-resolution-legend i.is-minor { background: var(--pv-amber, #fbbf24); }
.vrn-resolution-legend i.is-relevant { background: var(--pv-red, #f87171); }

.vrn-toggle button {
    height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.35);
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 900;
    cursor: pointer;
}

.vrn-chart-wrap {
    position: relative;
    height: 245px;
    padding: 10px 12px 12px;
}

#sub-ventas-resumen-nuevo #vrn-trend-chart:focus-visible {
    border-radius: 6px;
    outline: 2px solid rgba(129, 140, 248, 0.9);
    outline-offset: 2px;
}

.vrn-chart-platforms {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    scrollbar-width: thin;
}

.vrn-chart-platforms button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 26px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
}

.vrn-chart-platforms button:hover:not(:disabled) {
    background: rgba(30, 41, 59, 0.58);
    color: #cbd5e1;
}

.vrn-chart-platforms button.is-active {
    border-color: rgba(129, 140, 248, 0.38);
    background: rgba(99, 102, 241, 0.12);
    color: #e2e8f0;
}

.vrn-chart-platforms button:disabled {
    cursor: default;
    opacity: 0.35;
}

body.vrn-modal-open {
    overflow: hidden;
}

.vrn-day-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(3px);
}

.vrn-day-modal {
    display: flex;
    flex-direction: column;
    width: min(840px, calc(100vw - 32px));
    max-height: min(780px, calc(100vh - 32px));
    overflow: hidden;
    border: 1px solid rgba(71, 85, 105, 0.78);
    border-radius: 8px;
    background: #0b1222;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.vrn-day-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.45);
    background: #111a2e;
}

.vrn-day-modal-head span,
.vrn-day-modal-head small {
    display: block;
}

.vrn-day-modal-head > div > span {
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.vrn-day-modal-head h3 {
    margin: 3px 0 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 900;
    text-transform: capitalize;
}

.vrn-day-modal-head small {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
}

.vrn-day-modal-head button {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(71, 85, 105, 0.62);
    border-radius: 5px;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.vrn-day-modal-head button:hover,
.vrn-day-modal-head button:focus-visible {
    border-color: #818cf8;
    color: #e0e7ff;
    outline: none;
}

.vrn-day-modal-body {
    overflow-y: auto;
    padding: 14px 16px 16px;
}

.vrn-modal-platforms {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.vrn-modal-platforms button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
}

.vrn-modal-platforms button > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vrn-platform-color, #94a3b8);
}

.vrn-modal-platforms button:hover,
.vrn-modal-platforms button.is-active {
    border-color: var(--vrn-platform-color, #818cf8);
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
}

.vrn-modal-platforms button:disabled {
    cursor: default;
    opacity: 0.32;
}

.vrn-modal-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 10px;
    color: #64748b;
    font-size: 0.62rem;
}

.vrn-modal-selection strong {
    overflow: hidden;
    color: #cbd5e1;
    font-size: 0.66rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrn-amazon-reconciliation {
    overflow: hidden;
    margin: 0 0 12px;
    border: 1px solid color-mix(in srgb, var(--pv-amber) 42%, transparent);
    border-radius: var(--pv-input-radius);
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--pv-amber) 9%, transparent),
            transparent 52%
        ),
        color-mix(in srgb, var(--pv-card-surface-solid) 82%, transparent);
}

.vrn-amazon-reconciliation > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--pv-amber) 20%, transparent);
}

.vrn-amazon-reconciliation > header span,
.vrn-amazon-reconciliation > header h4 {
    display: block;
    margin: 0;
}

.vrn-amazon-reconciliation > header span {
    color: var(--pv-amber-text);
    font-size: var(--pv-text-xs);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vrn-amazon-reconciliation > header h4 {
    margin-top: 2px;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-base);
    line-height: 1.25;
}

.vrn-amazon-reconciliation > header > strong {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--pv-amber) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-amber) 10%, transparent);
    color: var(--pv-amber-text);
    font-size: var(--pv-text-xs);
}

.vrn-amazon-equation {
    margin: 0;
}

.vrn-amazon-equation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--pv-card-border);
}

.vrn-amazon-equation-operator {
    color: var(--pv-text-muted);
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-base);
    font-weight: 900;
    text-align: center;
}

.vrn-amazon-equation-row dt,
.vrn-amazon-equation-row dd {
    margin: 0;
}

.vrn-amazon-equation-row dt {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vrn-amazon-equation-label,
.vrn-amazon-equation-label > span,
.vrn-amazon-equation-label > small {
    display: block;
}

.vrn-amazon-equation-label > span {
    color: var(--pv-text-secondary);
    font-size: var(--pv-text-sm);
    font-weight: 750;
}

.vrn-amazon-equation-label > small {
    margin-top: 1px;
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
}

.vrn-amazon-equation-row dd {
    color: var(--pv-text-primary);
    font-family: var(--pv-font-mono);
    font-size: var(--pv-text-sm);
    font-weight: 800;
    text-align: right;
}

.vrn-amazon-equation-row.is-subtraction .vrn-amazon-equation-operator,
.vrn-amazon-equation-row.is-subtraction dd {
    color: var(--pv-amber-text);
}

.vrn-amazon-equation-row.is-result {
    border-top: 1px solid color-mix(in srgb, var(--pv-amber) 34%, transparent);
    border-bottom: 0;
    background: color-mix(in srgb, var(--pv-amber) 8%, transparent);
}

.vrn-amazon-equation-row.is-result .vrn-amazon-equation-operator,
.vrn-amazon-equation-row.is-result .vrn-amazon-equation-label > span,
.vrn-amazon-equation-row.is-result dd {
    color: var(--pv-amber-text);
    font-weight: 900;
}

.vrn-amazon-equation-row.is-result dd {
    font-size: var(--pv-text-base);
}

.vrn-amazon-reconciliation > p {
    margin: 0;
    padding: 8px 12px 9px 40px;
    border-top: 1px solid var(--pv-card-border);
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    line-height: 1.45;
}

.vrn-ml-order-reconciliation {
    overflow: hidden;
    margin: 0 0 12px;
    border: 1px solid color-mix(in srgb, var(--pv-accent) 42%, transparent);
    border-radius: var(--pv-input-radius);
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--pv-accent) 10%, transparent),
            transparent 52%
        ),
        color-mix(in srgb, var(--pv-card-surface-solid) 82%, transparent);
}

.vrn-ml-order-reconciliation > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--pv-accent) 22%, transparent);
}

.vrn-ml-order-reconciliation > header span,
.vrn-ml-order-reconciliation > header h4 {
    display: block;
    margin: 0;
}

.vrn-ml-order-reconciliation > header span {
    color: var(--pv-accent);
    font-size: var(--pv-text-xs);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vrn-ml-order-reconciliation > header h4 {
    margin-top: 2px;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-base);
    line-height: 1.25;
}

.vrn-ml-order-reconciliation > header > strong {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--pv-accent) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pv-accent) 10%, transparent);
    color: var(--pv-text-primary);
    font-size: var(--pv-text-xs);
}

.vrn-ml-order-breakdown .vrn-statement-row:last-child {
    border-bottom: 0;
}

.vrn-ml-order-reconciliation > p {
    margin: 0;
    padding: 8px 12px 9px;
    border-top: 1px solid var(--pv-card-border);
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    line-height: 1.45;
}

.vrn-amazon-customer-shipping {
    overflow: hidden;
    margin: 0 0 12px;
    border: 1px solid var(--pv-card-border);
    border-radius: var(--pv-input-radius);
    background: color-mix(
        in srgb,
        var(--pv-card-surface-solid) 90%,
        transparent
    );
}

.vrn-amazon-customer-shipping > header {
    padding: 9px 12px;
    border-bottom: 1px solid var(--pv-card-border);
}

.vrn-amazon-customer-shipping > header span,
.vrn-amazon-customer-shipping > header h4 {
    display: block;
    margin: 0;
}

.vrn-amazon-customer-shipping > header span {
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vrn-amazon-customer-shipping > header h4 {
    margin-top: 2px;
    color: var(--pv-text-primary);
    font-size: var(--pv-text-base);
}

.vrn-amazon-equation-row.is-shipping-net {
    border-top: 1px solid var(--pv-card-border);
    border-bottom: 0;
    background: color-mix(
        in srgb,
        var(--pv-card-border) 24%,
        transparent
    );
}

.vrn-amazon-equation-row.is-shipping-net
    :is(.vrn-amazon-equation-operator, .vrn-amazon-equation-label > span, dd) {
    color: var(--pv-text-primary);
    font-weight: 900;
}

.vrn-amazon-customer-shipping > p {
    margin: 0;
    padding: 8px 12px 9px 40px;
    border-top: 1px solid var(--pv-card-border);
    color: var(--pv-text-muted);
    font-size: var(--pv-text-xs);
    line-height: 1.45;
}

.vrn-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.vrn-income-statement {
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 6px;
}

.vrn-income-statement > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 11px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.45);
    background: rgba(34, 197, 94, 0.07);
}

.vrn-income-statement > header.is-expense {
    border-top: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(248, 113, 113, 0.06);
}

.vrn-income-statement > header span {
    color: #cbd5e1;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
}

.vrn-income-statement > header small {
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 700;
}

.vrn-statement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 34px;
    padding: 6px 11px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.24);
}

.vrn-statement-row > div {
    min-width: 0;
}

.vrn-statement-row span,
.vrn-statement-row small {
    display: block;
}

.vrn-statement-row span {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
}

.vrn-statement-row small {
    margin-top: 1px;
    color: #475569;
    font-size: 0.58rem;
}

.vrn-statement-row > strong {
    flex: 0 0 auto;
    color: #cbd5e1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    text-align: right;
}

.vrn-statement-row.is-income > strong { color: #86efac; }
.vrn-statement-row.is-paid > strong { color: #93c5fd; }
.vrn-statement-row.is-confirmed > strong { color: #93c5fd; }
.vrn-statement-row.is-expense > strong { color: #fca5a5; }
.vrn-statement-row.is-cancelled > strong { color: #94a3b8; }
.vrn-statement-row.is-pending > strong { color: #fbbf24; }
.vrn-statement-row.is-estimate {
    background: rgba(99, 102, 241, 0.08);
}

.vrn-income-statement > header.is-estimate {
    border-top: 1px solid rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.1);
}
.vrn-statement-row.is-estimate span,
.vrn-statement-row.is-estimate > strong { color: #a5b4fc; }

.vrn-statement-row.is-total {
    background: rgba(15, 23, 42, 0.5);
}

.vrn-statement-row.is-total span,
.vrn-statement-row.is-total > strong {
    color: #f8fafc;
    font-weight: 900;
}

.vrn-income-statement > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px;
    border-top: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(59, 130, 246, 0.1);
}

.vrn-income-statement > footer span,
.vrn-income-statement > footer small {
    display: block;
}

.vrn-income-statement > footer span {
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.vrn-income-statement > footer small {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.6rem;
}

.vrn-income-statement > footer > strong {
    color: #93c5fd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
}

.vrn-income-statement > footer.is-pending {
    border-top-color: rgba(100, 116, 139, 0.45);
    background: rgba(51, 65, 85, 0.16);
}

.vrn-income-statement > footer.is-estimate {
    border-top-color: rgba(129, 140, 248, 0.52);
    background: rgba(99, 102, 241, 0.14);
}

.vrn-table-wrap {
    overflow: auto;
}

.vrn-platform-panel .vrn-table-wrap {
    padding: 0 12px 12px;
}

.vrn-platform-table {
    min-width: 780px;
}

#sub-ventas-resumen-nuevo .dash-table tbody tr:nth-child(even):not(.row-total) td {
    background: rgba(30, 41, 59, 0.28);
}

#sub-ventas-resumen-nuevo .dash-table tbody tr:hover td {
    background: rgba(99, 102, 241, 0.08);
}

.vrn-platform-table td small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 600;
}

.vrn-table-muted {
    color: #64748b;
}

.vrn-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.dash-th-sort.num .vrn-sort-button {
    justify-content: flex-end;
}

.vrn-sort-button:focus-visible {
    border-radius: 3px;
    outline: 2px solid var(--vd-indigo-text, #a5b4fc);
    outline-offset: 2px;
}

.vrn-platform-table tbody tr[data-platform] {
    cursor: pointer;
    transition: background 120ms ease;
}

.vrn-platform-table tbody tr[data-platform]:hover,
.vrn-platform-table tbody tr[data-platform]:focus-visible {
    background: rgba(30, 41, 59, 0.58);
    outline: none;
}

.vrn-platform-table tbody tr.is-active {
    background: rgba(99, 102, 241, 0.11);
    box-shadow: inset 2px 0 0 #818cf8;
}

.vrn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.vrn-table th {
    padding: 8px 10px;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    background: rgba(30, 41, 59, 0.78);
}

.vrn-table td {
    padding: 8px 10px;
    border-top: 1px solid rgba(51, 65, 85, 0.22);
    color: #cbd5e1;
    vertical-align: middle;
}

.vrn-table td strong,
.vrn-mono {
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
}

.vrn-table td small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.62rem;
}

/* Product table follows Historico OC density and UI typography. */
.vrn-grid-bottom .vrn-table {
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.73rem;
}

.vrn-grid-bottom .vrn-table th {
    padding: 7px 8px;
    font-size: 0.62rem;
    font-weight: 600;
}

.vrn-grid-bottom .vrn-table td {
    padding: 6px 8px;
    font-size: 0.73rem;
}

.vrn-grid-bottom .vrn-table td:nth-child(2) strong {
    color: #e2e8f0;
    font-family: inherit;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.3;
}

.vrn-grid-bottom .vrn-table td:nth-child(2) small {
    margin-top: 2px;
    color: #64748b;
    font-family: inherit;
    font-size: 0.68rem;
}

.vrn-grid-bottom .vrn-mono,
.vrn-grid-bottom .vrn-num {
    font-size: 0.7rem;
}

.vrn-product-analysis-head {
    flex-wrap: wrap;
}

.vrn-product-analysis-head > div:first-child {
    min-width: 170px;
}

.vrn-product-toggle {
    max-width: 100%;
    overflow-x: auto;
}

.vrn-product-toggle .dash-toggle-btn {
    flex: 0 0 auto;
}

.vrn-product-toggle .dash-toggle-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.vrn-product-analysis-panel .vrn-table-wrap {
    padding: 0 12px;
}

.vrn-product-table {
    min-width: 700px;
}

.vrn-product-table td:nth-child(2) {
    max-width: 520px;
}

.vrn-product-table td:nth-child(2) strong {
    display: block;
    overflow: hidden;
    color: #e2e8f0;
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrn-product-table td:nth-child(2) small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.65rem;
}

.vrn-product-footer {
    min-height: 34px;
    margin: 0;
    padding: 6px 14px 10px;
}

.vrn-new-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(74, 222, 128, 0.32);
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    font-size: 0.64rem;
    font-weight: 800;
}

.vrn-attention-panel {
    margin-bottom: 10px;
}

.vrn-attention-list {
    gap: 8px;
    max-height: 300px;
    padding: 10px 12px 12px;
}

.vrn-attention-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    background: rgba(96, 165, 250, 0.08);
}

.vrn-attention-item.is-danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.vrn-attention-item.is-warning {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
}

.vrn-attention-item.is-actionable {
    cursor: pointer;
}

.vrn-attention-item.is-actionable:hover,
.vrn-attention-item.is-actionable:focus-visible {
    background: rgba(99, 102, 241, 0.12);
    outline: 2px solid rgba(165, 180, 252, 0.7);
    outline-offset: 1px;
}

.vrn-attention-icon {
    flex: 0 0 auto;
    color: #60a5fa;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
}

.vrn-attention-item.is-danger .vrn-attention-icon,
.vrn-attention-item.is-danger .vrn-attention-copy strong {
    color: #f87171;
}

.vrn-attention-item.is-warning .vrn-attention-icon,
.vrn-attention-item.is-warning .vrn-attention-copy strong {
    color: #fbbf24;
}

.vrn-attention-copy {
    min-width: 0;
}

.vrn-attention-copy > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.vrn-attention-copy strong {
    flex: 0 0 auto;
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 800;
}

.vrn-attention-copy span {
    overflow: hidden;
    color: #94a3b8;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrn-attention-copy p {
    margin: 3px 0 0;
    color: #e2e8f0;
    font-size: 0.76rem;
    line-height: 1.35;
}

.vrn-attention-copy small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.67rem;
}

.vrn-num {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.vrn-empty-cell {
    padding: 18px;
    color: #64748b;
    font-size: 0.74rem;
    text-align: center;
}

.vrn-status-list {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.vrn-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(51, 65, 85, 0.34);
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.42);
}

.vrn-status-item strong {
    display: block;
    color: #e2e8f0;
    font-size: 0.76rem;
}

.vrn-status-item small,
.vrn-status-values span {
    color: #64748b;
    font-size: 0.66rem;
}

.vrn-status-values {
    text-align: right;
}

.vrn-status-values strong {
    color: #93c5fd;
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 1280px) {
    .vdb-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .vdb-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .vdb-search {
        width: min(100%, 320px);
    }

    .vdb-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vdb-flow-sections {
        grid-template-columns: 1fr;
    }

    .vdb-detail-grid,
    .vdb-detail-lines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vdb-sku-detail-head,
    .vdb-sku-flow-grid {
        grid-template-columns: 1fr;
    }

    .vdb-sku-head-metrics,
    .vdb-sku-concepts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vrn-filter-actions {
        flex-wrap: wrap;
    }

    #sub-ventas-resumen-nuevo .vrn-analysis-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    #sub-ventas-resumen-nuevo .vrn-period-controls {
        justify-content: flex-start;
    }

    .vrn-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vrn-platform-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vrn-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vrn-overview-primary {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 1px solid rgba(51, 65, 85, 0.38);
    }

    .vrn-overview-metric:nth-child(3) {
        border-right: 0;
    }

    .vrn-grid,
    .vrn-grid-bottom {
        grid-template-columns: 1fr;
    }

    .vrn-context-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vrn-context-strip article:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    #sub-ventas-resumen-nuevo .vrn-analysis-head {
        gap: 9px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .vrn-executive-head {
        flex-direction: column;
        padding-inline: 13px;
    }

    .vrn-executive-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-inline: 13px;
    }

    .vrn-executive-divider {
        width: 100%;
        height: 1px;
    }

    .vrn-executive-status {
        padding-inline: 13px;
    }

    .vrn-trend-panel .vrn-panel-head,
    .vrn-trend-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .vrn-trend-actions {
        width: 100%;
        gap: 8px;
    }

    .vrn-platform-tabs {
        display: none;
    }

    .vrn-platform-select {
        display: block;
    }

    .vrn-filter-actions,
    .vrn-date-range {
        width: 100%;
    }

    .vrn-period-controls,
    .vrn-estimate-control,
    .vrn-period-field,
    .vrn-custom-range {
        width: 100%;
    }

    .vrn-custom-range {
        flex-wrap: wrap;
    }

    .vrn-custom-range .vdb-date {
        flex: 1 1 125px;
    }

    .vrn-metric-grid {
        grid-template-columns: 1fr;
    }

    .vrn-date-range .vdb-date {
        flex: 1 1 0;
        min-width: 0;
    }

    .vrn-overview,
    .vrn-context-strip {
        grid-template-columns: 1fr;
    }

    .vrn-overview-primary,
    .vrn-overview-metric,
    .vrn-context-strip article {
        border-right: 0;
        border-bottom: 1px solid rgba(51, 65, 85, 0.28);
    }

    .vrn-overview-metric:last-child,
    .vrn-context-strip article:last-child {
        border-bottom: 0;
    }

    .vrn-chart-wrap {
        height: 220px;
        padding-inline: 6px;
    }

    .vrn-day-modal-overlay {
        align-items: flex-end;
        padding: 8px;
    }

    .vrn-day-modal {
        width: 100%;
        max-height: calc(100vh - 16px);
    }

    .vrn-day-modal-body {
        padding-inline: 10px;
    }

    .vrn-modal-selection {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .vrn-modal-selection strong {
        text-align: left;
        white-space: normal;
    }

    .vrn-income-statement > footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* Commercial summary: a continuous reading surface with distinct monthly and period views. */
#sub-ventas-resumen-nuevo {
    --vrn-summary-surface: transparent;
    --vrn-summary-line: var(--pv-card-border, rgba(51, 65, 85, 0.38));
    --vrn-summary-text: var(--pv-text-primary, #e2e8f0);
    --vrn-summary-secondary: var(--pv-text-muted, #94a3b8);
    --vrn-summary-muted: var(--pv-text-secondary, #94a3b8);
    --vrn-summary-accent: var(--pv-accent, #a5b4fc);
    container: ventas-summary / inline-size;
    min-width: 0;
    padding: 0;
    background: var(--vrn-summary-surface);
    color: var(--vrn-summary-text);
}

#sub-ventas-resumen-nuevo .vrn-toolbar {
    align-items: flex-start;
    flex-direction: row;
    gap: 20px;
    margin: 0;
    padding: 8px 18px;
    border: 0;
    border-bottom: 1px solid var(--vrn-summary-line);
    border-radius: 0;
    background: transparent;
}

#sub-ventas-resumen-nuevo .vrn-toolbar .vdb-title-wrap {
    display: grid;
    gap: 3px;
    min-width: 0;
}

#sub-ventas-resumen-nuevo .vrn-toolbar .vdb-title {
    color: var(--vrn-summary-text);
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

#sub-ventas-resumen-nuevo .vrn-subtitle {
    color: var(--vrn-summary-secondary);
    font-size: 0.76rem;
}

#sub-ventas-resumen-nuevo .vrn-toolbar-meta {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 3px 12px;
    padding-top: 1px;
    text-align: right;
}

#sub-ventas-resumen-nuevo .vrn-currency {
    color: var(--vrn-summary-secondary);
    font-size: 0.73rem;
}

#sub-ventas-resumen-nuevo .vrn-toolbar .vdb-count {
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--vrn-summary-muted);
    font-size: 0.73rem;
    font-weight: 450;
}

#sub-ventas-resumen-nuevo .vrn-freshness,
#sub-ventas-resumen-nuevo .vrn-loading-status {
    color: var(--vrn-summary-muted);
    font-size: 0.73rem;
    font-weight: 450;
}

#sub-ventas-resumen-nuevo .vrn-toolbar-meta .vrn-freshness,
#sub-ventas-resumen-nuevo .vrn-toolbar-meta .vrn-loading-status { grid-column: 1 / -1; justify-content: flex-end; }

#sub-ventas-resumen-nuevo .vrn-executive {
    margin: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--vrn-summary-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#sub-ventas-resumen-nuevo .vrn-executive-head {
    align-items: center;
    flex-direction: row;
    padding: 10px 18px 0;
}

#sub-ventas-resumen-nuevo .vrn-executive-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 18px;
}

#sub-ventas-resumen-nuevo .vrn-executive-head h3,
#sub-ventas-resumen-nuevo .vrn-analysis-label,
#sub-ventas-resumen-nuevo .vrn-main-grid .vrn-panel-head h3 {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--vrn-summary-text);
    font-size: 0.96rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-transform: none;
}

#sub-ventas-resumen-nuevo .vrn-executive-eyebrow,
#sub-ventas-resumen-nuevo .vrn-executive-scope {
    padding: 0;
    color: var(--vrn-summary-secondary);
    font-size: 0.73rem;
    font-weight: 450;
    letter-spacing: normal;
    text-transform: none;
}

#sub-ventas-resumen-nuevo .vrn-executive-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    padding: 10px 18px 10px;
}

#sub-ventas-resumen-nuevo .vrn-executive-grid > article {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding-right: 20px;
}

#sub-ventas-resumen-nuevo .vrn-executive-grid > article + article {
    padding-left: 20px;
    border-left: 1px solid var(--vrn-summary-line);
}

#sub-ventas-resumen-nuevo .vrn-executive-grid > article:last-child { padding-right: 0; }

#sub-ventas-resumen-nuevo .vrn-executive-label,
#sub-ventas-resumen-nuevo .vrn-metric-label {
    color: var(--vrn-summary-secondary);
    font-size: 0.75rem;
    font-weight: 450;
    letter-spacing: normal;
    line-height: 1.4;
    text-transform: none;
}

#sub-ventas-resumen-nuevo .vrn-executive-value,
#sub-ventas-resumen-nuevo .vrn-executive-value.is-secondary {
    color: var(--vrn-summary-text);
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#sub-ventas-resumen-nuevo .vrn-executive-progress { height: 5px; margin-top: 5px; }
#sub-ventas-resumen-nuevo .vrn-executive-progress[hidden] { display: none; }

#sub-ventas-resumen-nuevo .vrn-executive-note,
#sub-ventas-resumen-nuevo .vrn-executive-status,
#sub-ventas-resumen-nuevo .vrn-executive-context > small {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vrn-summary-secondary);
    font-size: 0.72rem;
    font-weight: 450;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#sub-ventas-resumen-nuevo .vrn-executive-context { gap: 3px; }
#sub-ventas-resumen-nuevo .vrn-executive-context .vrn-executive-label { margin-bottom: 5px; }
#sub-ventas-resumen-nuevo .vrn-executive-context .is-up { color: var(--vd-up, #4ade80); }
#sub-ventas-resumen-nuevo .vrn-executive-context .is-down { color: var(--vd-down, #f87171); }
#sub-ventas-resumen-nuevo .vrn-executive-context .is-neutral { color: var(--vrn-summary-muted); }
#sub-ventas-resumen-nuevo .vrn-executive-deltas small { font-size: 0.78rem; font-weight: 650; }
#sub-ventas-resumen-nuevo .vrn-executive-deltas .vrn-delta-context { color: var(--vrn-summary-muted); font-size: 0.71rem; font-weight: 450; }

#sub-ventas-resumen-nuevo .vrn-analysis-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    margin: 0 18px;
    padding: 12px 0 10px;
    border-top: 0;
    border-bottom: 1px solid var(--vrn-summary-line);
}

#sub-ventas-resumen-nuevo .vrn-analysis-range {
    display: block;
    margin-top: 5px;
    color: var(--vrn-summary-secondary);
    font-size: 0.73rem;
    line-height: 1.5;
}

#sub-ventas-resumen-nuevo .vrn-period-controls { min-width: 0; max-width: 430px; justify-content: flex-end; gap: 12px 18px; }
#sub-ventas-resumen-nuevo .vrn-period-field { min-width: 158px; gap: 3px; }
#sub-ventas-resumen-nuevo .vrn-period-field > span { color: var(--vrn-summary-secondary); font-size: 0.71rem; font-weight: 450; }
#sub-ventas-resumen-nuevo .vrn-period-field .vdb-control { height: 30px; min-height: 30px; border-color: var(--vrn-summary-line); border-radius: 5px; background: var(--pv-card-surface-solid, #0f172a); color: var(--vrn-summary-text); font-size: 0.72rem; }
#sub-ventas-resumen-nuevo .vrn-custom-range { flex-basis: 100%; justify-content: flex-end; }

#sub-ventas-resumen-nuevo .vrn-comparison-caption {
    margin: 7px 18px 6px;
    color: var(--vrn-summary-muted);
    font-size: 0.72rem;
    line-height: 1.5;
}

#sub-ventas-resumen-nuevo .vrn-metric-grid {
    grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0 18px 13px;
    border-bottom: 1px solid var(--vrn-summary-line);
}

#sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card {
    min-height: 76px;
    padding: 1px 18px 0;
    border: 0;
    border-left: 1px solid var(--vrn-summary-line);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

#sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:first-child { padding-left: 0; border-left: 0; }
#sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:last-child { padding-right: 0; }

#sub-ventas-resumen-nuevo .vrn-metric-value {
    margin-top: 7px;
    color: var(--vrn-summary-text);
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: 1.22rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

#sub-ventas-resumen-nuevo .vrn-metric-comparison { margin-top: 5px; color: var(--vrn-summary-muted); font-size: 0.78rem; font-weight: 650; line-height: 1.4; }
#sub-ventas-resumen-nuevo .vrn-metric-note { margin-top: 5px; padding: 0; color: var(--vrn-summary-muted); font-size: 0.69rem; font-weight: 450; line-height: 1.5; }
#sub-ventas-resumen-nuevo .vrn-metric-comparison .is-neutral { color: var(--vrn-summary-muted); }

#sub-ventas-resumen-nuevo .vrn-main-grid {
    grid-template-columns: minmax(0, 2.3fr) minmax(290px, 1fr);
    gap: 0;
    margin: 0 0 14px;
    border-bottom: 1px solid var(--vrn-summary-line);
}

#sub-ventas-resumen-nuevo .vrn-main-grid > .vrn-panel {
    overflow: visible;
    padding: 10px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#sub-ventas-resumen-nuevo .vrn-main-grid > .vrn-traffic-panel { padding-left: 18px; border-left: 1px solid var(--vrn-summary-line); }
#sub-ventas-resumen-nuevo .vrn-main-grid .vrn-panel-head { align-items: center; flex-direction: row; gap: 14px; padding: 0; border: 0; }
#sub-ventas-resumen-nuevo .vrn-main-grid .vrn-panel-head > div > span { margin-top: 3px; color: var(--vrn-summary-secondary); font-size: 0.72rem; font-weight: 450; line-height: 1.5; }
#sub-ventas-resumen-nuevo .vrn-trend-actions { width: auto; align-items: center; flex-direction: row; }

#sub-ventas-resumen-nuevo .vrn-toggle { gap: 0; }
#sub-ventas-resumen-nuevo .vrn-toggle button { height: 28px; padding: 0 11px; border: 1px solid var(--vrn-summary-line); border-radius: 0 4px 4px 0; background: transparent; color: var(--vrn-summary-secondary); font-size: 0.74rem; font-weight: 500; white-space: nowrap; }
#sub-ventas-resumen-nuevo .vrn-toggle button:first-child { border-radius: 4px 0 0 4px; }
#sub-ventas-resumen-nuevo .vrn-toggle button + button { margin-left: -1px; }
#sub-ventas-resumen-nuevo .vrn-toggle button.is-active { position: relative; border-color: rgba(129, 140, 248, 0.45); background: rgba(99, 102, 241, 0.12); color: #e0e7ff; }

#sub-ventas-resumen-nuevo .vrn-chart-platforms { gap: 10px; margin-top: 4px; padding: 0; border-bottom: 1px solid var(--vrn-summary-line); }
#sub-ventas-resumen-nuevo .vrn-chart-platforms button { gap: 6px; height: 31px; padding: 0 6px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--vrn-summary-secondary); font-size: 0.71rem; font-weight: 450; }
#sub-ventas-resumen-nuevo .vrn-chart-platforms button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.03); color: var(--vrn-summary-text); }
#sub-ventas-resumen-nuevo .vrn-chart-platforms button.is-active { border-bottom-color: var(--vrn-trend-color, var(--vrn-summary-accent)); background: none; color: var(--vrn-trend-color, var(--vrn-summary-accent)); font-weight: 650; }
#sub-ventas-resumen-nuevo .vrn-chart-platforms .vrn-platform-dot { width: 5px; height: 5px; }
#sub-ventas-resumen-nuevo .vrn-chart-platforms button:focus-visible,
#sub-ventas-resumen-nuevo .vrn-toggle button:focus-visible { outline: 2px solid var(--vrn-summary-accent); outline-offset: -3px; }
#sub-ventas-resumen-nuevo .vrn-chart-wrap { height: 170px; margin-top: 6px; padding: 0; }

#sub-ventas-resumen-nuevo .vrn-chart-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
#sub-ventas-resumen-nuevo .vrn-chart-period-legend { gap: 22px; }
#sub-ventas-resumen-nuevo .vrn-chart-period-legend span { gap: 9px; color: var(--vrn-summary-muted); font-size: 0.72rem; font-weight: 450; }
#sub-ventas-resumen-nuevo .vrn-chart-period-legend i { width: 30px; border-color: var(--vrn-trend-color, var(--vrn-summary-accent)); }
#sub-ventas-resumen-nuevo .vrn-chart-period-legend i.is-previous { border-color: #cbd5e1; }
#sub-ventas-resumen-nuevo .vrn-chart-hint { color: var(--vrn-summary-muted); font-size: 0.71rem; }

#sub-ventas-resumen-nuevo #vrn-traffic-status { margin: 0; color: #fbbf24; font-size: 0.74rem; font-weight: 500; white-space: nowrap; }
#sub-ventas-resumen-nuevo #vrn-traffic-status.is-complete { color: #4ade80; }
#sub-ventas-resumen-nuevo #vrn-traffic-status.is-unavailable { color: var(--vrn-summary-muted); }

#sub-ventas-resumen-nuevo .vrn-traffic-panel > .vrn-metric-card {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-content: center;
    gap: 4px 14px;
    min-height: 66px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--vrn-summary-line);
    border-radius: 0;
    background: none;
    box-shadow: none;
}

#sub-ventas-resumen-nuevo .vrn-traffic-panel > .vrn-metric-card:first-of-type { margin-top: 5px; }
#sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-metric-label-row,
#sub-ventas-resumen-nuevo .vrn-traffic-panel > .vrn-metric-card > .vrn-metric-label { position: static; grid-column: 1; grid-row: 1 / 3; align-self: start; padding-top: 3px; }
#sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-metric-value { grid-column: 2; grid-row: 1; margin: 0; }
#sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-metric-comparison { grid-column: 2; grid-row: 2; margin: 0; font-size: 0.71rem; font-weight: 450; }
#sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-help-button { width: 21px; height: 21px; flex: 0 0 auto; background: transparent; font-size: 0.66rem; }
#sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-coverage-popover { top: 52px; left: auto; right: 0; width: min(340px, calc(100cqw - 56px)); max-width: calc(100vw - 48px); }
#sub-ventas-resumen-nuevo .vrn-traffic-note { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--vrn-summary-line); color: var(--vrn-summary-secondary); font-size: 0.71rem; line-height: 1.4; }
#sub-ventas-resumen-nuevo .vrn-traffic-coverage { display: grid; gap: 3px; padding-top: 10px; }
#sub-ventas-resumen-nuevo .vrn-traffic-coverage strong { color: var(--vrn-summary-text); font-size: 0.75rem; font-weight: 550; line-height: 1.5; }
#sub-ventas-resumen-nuevo .vrn-traffic-coverage small { margin: 0; color: var(--vrn-summary-muted); font-size: 0.71rem; font-weight: 450; line-height: 1.4; }
#sub-ventas-resumen-nuevo > .vrn-platform-panel { margin-bottom: 14px; }
#sub-ventas-resumen-nuevo.vrn-comparison-disabled [data-vrn-comparison] { display: none; }

@container ventas-summary (max-width: 1100px) {
    #sub-ventas-resumen-nuevo .vrn-toolbar,
    #sub-ventas-resumen-nuevo .vrn-executive-head { padding-inline: 18px; }
    #sub-ventas-resumen-nuevo .vrn-executive-grid { padding-inline: 18px; }
    #sub-ventas-resumen-nuevo .vrn-executive-grid > article { padding-right: 20px; }
    #sub-ventas-resumen-nuevo .vrn-executive-grid > article + article { padding-left: 20px; }
    #sub-ventas-resumen-nuevo .vrn-analysis-head { margin-inline: 18px; }
    #sub-ventas-resumen-nuevo .vrn-comparison-caption { margin-inline: 18px; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid { padding-inline: 18px; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card { padding-inline: 14px; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:first-child { padding-left: 0; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:last-child { padding-right: 0; }
    #sub-ventas-resumen-nuevo .vrn-metric-value { font-size: 1.15rem; }
    #sub-ventas-resumen-nuevo .vrn-main-grid > .vrn-panel { padding-inline: 18px; }
    #sub-ventas-resumen-nuevo .vrn-trend-panel .vrn-panel-head { align-items: center; flex-direction: row; }
    #sub-ventas-resumen-nuevo .vrn-chart-platforms { gap: 4px; }
    #sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-panel-head { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 5px; }
}

@container ventas-summary (max-width: 880px) {
    #sub-ventas-resumen-nuevo .vrn-executive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    #sub-ventas-resumen-nuevo .vrn-executive-grid > .vrn-executive-context { grid-column: 1 / -1; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--vrn-summary-line); }
    #sub-ventas-resumen-nuevo .vrn-analysis-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
    #sub-ventas-resumen-nuevo .vrn-period-controls { justify-content: flex-start; }
    #sub-ventas-resumen-nuevo .vrn-custom-range { justify-content: flex-start; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:nth-child(4) { padding-left: 0; border-left: 0; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:first-child { grid-column: 1; }
    #sub-ventas-resumen-nuevo .vrn-main-grid { grid-template-columns: minmax(0, 1fr); }
    #sub-ventas-resumen-nuevo .vrn-main-grid > .vrn-traffic-panel { border-left: 0; border-top: 1px solid var(--vrn-summary-line); }
    #sub-ventas-resumen-nuevo .vrn-main-grid .vrn-panel-head { align-items: center; flex-direction: row; }
    #sub-ventas-resumen-nuevo .vrn-chart-wrap { height: 210px; }
    #sub-ventas-resumen-nuevo .vrn-traffic-panel > .vrn-metric-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@container ventas-summary (min-width: 561px) and (max-width: 880px) {
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:first-child { grid-column: span 2; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:nth-child(3) { padding-left: 0; border-left: 0; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:nth-child(4) { padding-left: 14px; border-left: 1px solid var(--vrn-summary-line); }
}

@container ventas-summary (max-width: 560px) {
    #sub-ventas-resumen-nuevo .vrn-toolbar { flex-direction: column; gap: 12px; padding: 12px 14px; }
    #sub-ventas-resumen-nuevo .vrn-toolbar-meta { display: flex; align-items: center; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding: 0; text-align: left; }
    #sub-ventas-resumen-nuevo .vrn-executive-head { align-items: flex-start; flex-direction: column; padding: 14px 14px 0; gap: 6px; }
    #sub-ventas-resumen-nuevo .vrn-executive-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 12px 14px 16px; }
    #sub-ventas-resumen-nuevo .vrn-executive-grid > article { padding: 0; }
    #sub-ventas-resumen-nuevo .vrn-executive-grid > article + article { grid-column: auto; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--vrn-summary-line); }
    #sub-ventas-resumen-nuevo .vrn-executive-value,
    #sub-ventas-resumen-nuevo .vrn-executive-value.is-secondary { font-size: 1.3rem; }
    #sub-ventas-resumen-nuevo .vrn-analysis-head { margin-inline: 16px; padding-top: 14px; }
    #sub-ventas-resumen-nuevo .vrn-period-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    #sub-ventas-resumen-nuevo .vrn-period-field { min-width: 0; width: 100%; }
    #sub-ventas-resumen-nuevo .vrn-period-field .vdb-control { min-width: 0; padding-inline: 7px; font-size: 0.76rem; }
    #sub-ventas-resumen-nuevo .vrn-custom-range { grid-column: 1 / -1; flex-wrap: wrap; }
    #sub-ventas-resumen-nuevo .vrn-comparison-caption { margin-inline: 16px; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px 16px; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card { min-height: 0; padding: 0 0 0 16px; border-left: 1px solid var(--vrn-summary-line); }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:first-child { grid-column: 1 / -1; padding: 0 0 18px; border-left: 0; border-bottom: 1px solid var(--vrn-summary-line); }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:nth-child(even) { padding: 0 16px 0 0; border-left: 0; }
    #sub-ventas-resumen-nuevo .vrn-metric-grid > .vrn-metric-card:first-child .vrn-metric-value { font-size: 1.3rem; }
    #sub-ventas-resumen-nuevo .vrn-metric-label { font-size: 0.73rem; }
    #sub-ventas-resumen-nuevo .vrn-main-grid > .vrn-panel { padding: 14px; }
    #sub-ventas-resumen-nuevo .vrn-trend-panel .vrn-panel-head { align-items: flex-start; flex-direction: column; }
    #sub-ventas-resumen-nuevo .vrn-toggle button { height: 34px; }
    #sub-ventas-resumen-nuevo .vrn-chart-platforms button { height: 43px; padding-inline: 7px; }
    #sub-ventas-resumen-nuevo .vrn-chart-wrap { height: 230px; }
    #sub-ventas-resumen-nuevo .vrn-chart-period-legend { gap: 15px; }
    #sub-ventas-resumen-nuevo .vrn-chart-period-legend span { font-size: 0.7rem; }
    #sub-ventas-resumen-nuevo .vrn-chart-hint { flex-basis: 100%; }
    #sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-panel-head { align-items: flex-start; flex-wrap: wrap; gap: 6px 14px; }
    #sub-ventas-resumen-nuevo .vrn-traffic-panel .vrn-coverage-popover { width: calc(100cqw - 32px); }
}

/* Platform and product detail continue the summary's compact, shared surface. */
#sub-ventas-resumen-nuevo :is(.vrn-platform-panel, .vrn-product-analysis-panel) {
    min-width: 0;
    max-width: 100%;
    border: 0;
    border-bottom: 1px solid var(--vrn-summary-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#sub-ventas-resumen-nuevo > .vrn-platform-panel { margin-bottom: 12px; }
#sub-ventas-resumen-nuevo .vrn-grid-bottom { min-width: 0; margin-bottom: 0; }

#sub-ventas-resumen-nuevo :is(.vrn-platform-panel, .vrn-product-analysis-panel) .vrn-panel-head {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 18px 12px;
    border: 0;
    background: transparent;
}

#sub-ventas-resumen-nuevo :is(.vrn-platform-panel, .vrn-product-analysis-panel) .vrn-panel-head h3 {
    margin: 0;
    color: var(--vrn-summary-text);
    font-size: 0.96rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

#sub-ventas-resumen-nuevo :is(.vrn-platform-panel, .vrn-product-analysis-panel) .vrn-panel-head span {
    margin-top: 3px;
    color: var(--vrn-summary-secondary);
    font-size: 0.72rem;
    font-weight: 450;
    line-height: 1.5;
}

#sub-ventas-resumen-nuevo #vrn-platform-note { margin-top: 0; text-align: right; }

#sub-ventas-resumen-nuevo :is(.vrn-platform-panel, .vrn-product-analysis-panel) .vrn-table-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--vrn-summary-secondary) 45%, var(--pv-bg-base, #0f172a)) var(--pv-bg-base, #0f172a);
    color-scheme: dark;
}

#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) {
    width: 100%;
    border-collapse: collapse;
    color: var(--vrn-summary-text);
    font-family: var(--pv-font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.77rem;
    line-height: 1.5;
}

#sub-ventas-resumen-nuevo .vrn-platform-table { min-width: 690px; }
#sub-ventas-resumen-nuevo .vrn-product-table { min-width: 760px; table-layout: fixed; }

#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) thead th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--vrn-summary-line);
    background: transparent;
    color: var(--vrn-summary-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) tbody td {
    padding: 7px 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--vrn-summary-line) 60%, transparent);
    background: transparent;
    color: var(--vrn-summary-text);
    font-size: 0.77rem;
    font-weight: 450;
    vertical-align: middle;
}

#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) :is(th, td):first-child { padding-left: 0; }
#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) :is(th, td):last-child { padding-right: 0; }
#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) :is(th, td).num { white-space: nowrap; font-variant-numeric: tabular-nums; }

#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) tbody tr:nth-child(even):not(.row-total) td {
    background: color-mix(in srgb, var(--vrn-summary-secondary) 3%, transparent);
}

#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) tbody tr:hover td {
    background: color-mix(in srgb, var(--vrn-summary-secondary) 6%, transparent);
}

#sub-ventas-resumen-nuevo .vrn-platform-table tbody tr.is-active {
    background: color-mix(in srgb, var(--vrn-summary-secondary) 6%, transparent);
    box-shadow: none;
}

#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) tbody tr:last-child td { border-bottom: 0; }
#sub-ventas-resumen-nuevo .vrn-platform-table .row-total td { padding-block: 10px; border-top: 1px solid var(--vrn-summary-line); background: transparent; font-weight: 650; }
#sub-ventas-resumen-nuevo .vrn-platform-table td strong { font-weight: 550; }
#sub-ventas-resumen-nuevo .vrn-platform-table .dash-dot { width: 7px; height: 7px; margin-right: 9px; }
#sub-ventas-resumen-nuevo .vrn-platform-table .dash-bar-pct { min-width: 0; color: var(--vrn-summary-secondary); }
#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) .dash-sort-on { color: var(--vrn-summary-secondary); }
#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) .dash-delta-flat { color: var(--vrn-summary-secondary); }

#sub-ventas-resumen-nuevo .vrn-product-table thead th:nth-child(1) { width: 12%; }
#sub-ventas-resumen-nuevo .vrn-product-table thead th:nth-child(2) { width: 40%; }
#sub-ventas-resumen-nuevo .vrn-product-table thead th:nth-child(3) { width: 14%; }
#sub-ventas-resumen-nuevo .vrn-product-table thead th:nth-child(4) { width: 18%; }
#sub-ventas-resumen-nuevo .vrn-product-table thead th:nth-child(5) { width: 16%; }
#sub-ventas-resumen-nuevo .vrn-product-table:has(thead th:nth-child(6)) thead th:nth-child(1) { width: 11%; }
#sub-ventas-resumen-nuevo .vrn-product-table:has(thead th:nth-child(6)) thead th:nth-child(2) { width: 34%; }
#sub-ventas-resumen-nuevo .vrn-product-table:has(thead th:nth-child(6)) thead th:nth-child(3) { width: 12%; }
#sub-ventas-resumen-nuevo .vrn-product-table:has(thead th:nth-child(6)) thead th:nth-child(4) { width: 16%; }
#sub-ventas-resumen-nuevo .vrn-product-table:has(thead th:nth-child(6)) thead th:nth-child(5) { width: 13%; }
#sub-ventas-resumen-nuevo .vrn-product-table:has(thead th:nth-child(6)) thead th:nth-child(6) { width: 14%; }

#sub-ventas-resumen-nuevo .vrn-product-table .vrn-mono {
    color: var(--vrn-summary-secondary);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 450;
    overflow-wrap: anywhere;
}

#sub-ventas-resumen-nuevo .vrn-product-table .vrn-product-name strong {
    display: block;
    overflow: hidden;
    color: var(--vrn-summary-text);
    font-size: 0.77rem;
    font-weight: 500;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sub-ventas-resumen-nuevo .vrn-product-table .vrn-product-channel { color: var(--vrn-summary-secondary); font-size: 0.74rem; }
#sub-ventas-resumen-nuevo .vrn-product-table td small { display: block; margin-top: 3px; color: var(--vrn-summary-secondary); font-size: 0.67rem; font-weight: 450; white-space: normal; }
#sub-ventas-resumen-nuevo .vrn-product-table .vrn-new-badge { min-height: 20px; padding-inline: 7px; border-radius: 4px; background: rgba(74, 222, 128, 0.05); font-size: 0.67rem; font-weight: 550; }
#sub-ventas-resumen-nuevo :is(.vrn-platform-table, .vrn-product-table) .vrn-empty-cell { padding: 20px 10px; color: var(--vrn-summary-secondary); text-align: center; white-space: normal; }

#sub-ventas-resumen-nuevo .vrn-product-toggle { gap: 0; min-width: 0; max-width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; scrollbar-width: thin; }
#sub-ventas-resumen-nuevo .vrn-product-toggle .dash-toggle-btn { height: 28px; padding: 0 11px; border: 1px solid var(--vrn-summary-line); border-radius: 0; background: transparent; color: var(--vrn-summary-secondary); font-size: 0.74rem; font-weight: 500; white-space: nowrap; }
#sub-ventas-resumen-nuevo .vrn-product-toggle .dash-toggle-btn:first-child { border-radius: 4px 0 0 4px; }
#sub-ventas-resumen-nuevo .vrn-product-toggle .dash-toggle-btn:last-child { border-radius: 0 4px 4px 0; }
#sub-ventas-resumen-nuevo .vrn-product-toggle .dash-toggle-btn + .dash-toggle-btn { margin-left: -1px; }
#sub-ventas-resumen-nuevo .vrn-product-toggle .dash-toggle-btn.active { position: relative; border-color: rgba(129, 140, 248, 0.45); background: rgba(99, 102, 241, 0.12); color: #e0e7ff; }
#sub-ventas-resumen-nuevo .vrn-product-toggle .dash-toggle-btn:hover:not(:disabled) { color: var(--vrn-summary-text); }
#sub-ventas-resumen-nuevo .vrn-product-toggle .dash-toggle-btn:focus-visible { outline: 2px solid var(--vrn-summary-accent); outline-offset: -3px; }

#sub-ventas-resumen-nuevo .vrn-product-footer { align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; min-height: 38px; margin: 0; padding: 8px 18px 10px; border-top: 1px solid var(--vrn-summary-line); }
#sub-ventas-resumen-nuevo #vrn-product-visible-count { flex: 1 1 auto; color: var(--vrn-summary-secondary); font-size: 0.71rem; line-height: 1.5; }
#sub-ventas-resumen-nuevo .vrn-product-footer .dash-link-btn { flex: 0 1 auto; max-width: 100%; color: var(--vrn-summary-secondary); font-size: 0.74rem; font-weight: 500; line-height: 1.5; text-align: right; white-space: normal; overflow-wrap: anywhere; }
#sub-ventas-resumen-nuevo .vrn-product-footer .dash-link-btn:hover { color: var(--vrn-summary-text); }

@container ventas-summary (max-width: 700px) {
    #sub-ventas-resumen-nuevo .vrn-product-analysis-panel .vrn-product-analysis-head { align-items: flex-start; flex-direction: column; }
    #sub-ventas-resumen-nuevo .vrn-product-analysis-head > div:first-child { min-width: 0; }
    #sub-ventas-resumen-nuevo #vrn-platform-note { flex-basis: 100%; text-align: left; }
}

@container ventas-summary (max-width: 560px) {
    #sub-ventas-resumen-nuevo .vrn-product-toggle {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        overflow: visible;
    }

    #sub-ventas-resumen-nuevo .vrn-product-analysis-panel .vrn-product-toggle .dash-toggle-btn {
        width: 100%;
        min-width: 0;
        min-height: 36px;
        height: 36px;
        margin: 0;
        padding: 0 8px;
        border-radius: 4px;
    }
}
