/* Vista previa + selector HTML5 para colores de la barra superior (Diseño) */
.vf-nav-theme-preview-wrap {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.375rem;
}
.vf-nav-theme-preview-checker {
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(#dee2e6 0% 25%, #fff 0% 50%) 50% / 10px 10px;
}
.vf-nav-theme-preview-swatch {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    pointer-events: none;
}
input.vf-nav-theme-color-input {
    width: 2.75rem;
    height: 2.5rem;
    min-width: 2.75rem;
    cursor: pointer;
    padding: 0.15rem;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    /* Importante para que el hijo con overflow pueda scrollear dentro del viewport (flex + min-height:auto). */
    height: 100vh;
    overflow: hidden;
}

.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1d21 0%, #212529 48%, #1e2228 100%);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Scroll en toda la barra lateral (cabecera, menú, estado y pie). */
.sidebar-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: #fff;
}

.sidebar-nav {
    padding: 0.75rem 0.85rem 0.5rem;
}

.sidebar-section {
    margin-bottom: 0.35rem;
}

.sidebar-section-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    padding: 0.65rem 0.85rem 0.35rem;
}

.sidebar-section-footer {
    margin-top: 0.25rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav-group {
    margin: 0.15rem 0 0.5rem;
}

.sidebar-nav-group-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.65rem;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav-group-toggle:hover,
.sidebar-nav-group-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.sidebar-nav-group-toggle[aria-expanded="false"] .sidebar-nav-group-chevron {
    transform: rotate(-90deg);
}

.sidebar-nav-group-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.sidebar-subnav {
    padding: 0.15rem 0 0.25rem 0.35rem;
}

.sidebar-subnav .nav-link-sub {
    padding-left: 2.35rem;
    font-size: 0.88rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.72);
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 2px;
    border-left: 3px solid transparent;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: rgba(13, 110, 253, 0.18);
    color: #fff;
    border-left-color: #6ea8fe;
    font-weight: 600;
}

.sidebar-nav .nav-link-logout {
    color: rgba(255, 182, 193, 0.92);
}

.sidebar-nav .nav-link-logout:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #ffb3bd;
}

.sidebar-nav i {
    width: 1.15rem;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 0;
    opacity: 0.92;
}

.sidebar-sse-status {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-sse-text {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.35;
}

.sidebar-footer {
    padding: 0.65rem 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer-version {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
}

/* Menú lateral superpuesto (siempre oculto por defecto; no comprime el contenido principal). */
.dashboard-sidebar:not(.d-none) {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    max-width: min(280px, 88vw);
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.35);
}

.vf-dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.vf-dashboard-sidebar-backdrop.d-none {
    display: none !important;
}

.sidebar-nav {
    flex: none;
    min-height: auto;
    overflow: visible;
}

.dashboard-content {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.stat-card {
    transition: transform 0.3s;
}

/* Donut indicator (notifications retention) */
.vf-donut {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: relative;
    flex: 0 0 26px;
}
.vf-donut .vf-donut-inner {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #fff;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.font-monospace {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

#salesChart {
    max-height: 400px;
}

/* Configuración: subtabs — scroll horizontal solo si hace falta; sin barra vertical “fantasma” */
#store-settings-subtabs.vf-store-settings-subtabs {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* Altura según contenido; evita caja con scroll vertical innecesario */
    max-height: none;
    align-items: center;
}
#store-settings-subtabs.vf-store-settings-subtabs .nav-item {
    flex-shrink: 0;
}
/* Píldoras tipo botón: redondeo completo (nav-pills ya redondea; refuerzo coherente con btn) */
#store-settings-subtabs .nav-link {
    border-radius: var(--bs-border-radius-pill);
    white-space: nowrap;
}
#store-settings-subtabs .nav-link:not(.active) {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.dashboard-tab.d-none {
    display: none !important;
}

.vf-media-webp-tree .vf-media-webp-folder {
    margin-bottom: 0.75rem;
}
.vf-media-webp-tree .vf-media-webp-folder > summary {
    cursor: pointer;
    list-style: none;
}
.vf-media-webp-tree .vf-media-webp-row {
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.4rem;
    background: var(--bs-body-bg);
}
.vf-media-webp-tree .vf-media-webp-row.is-processed {
    border-color: var(--bs-success-border-subtle, #a3cfbb);
    background: var(--bs-success-bg-subtle, #d1e7dd);
}
.vf-media-webp-processed {
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    background: rgba(25, 135, 84, 0.12);
    word-break: break-all;
}
.vf-media-webp-cb-spacer {
    display: inline-block;
    width: 1rem;
    flex-shrink: 0;
}
.vf-media-webp-scan-list {
    max-height: 28rem;
    overflow: auto;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: var(--bs-body-bg, #fff);
}
.vf-media-webp-scan-item {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.06));
}
.vf-media-webp-scan-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.vf-media-webp-scan-thumb {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.4rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    flex-shrink: 0;
}
.vf-media-webp-scan-thumb--empty {
    display: inline-block;
}
.vf-media-webp-usage .vf-usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.75rem;
}
.vf-media-webp-usage .vf-usage-metric {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
}
.vf-media-webp-usage .vf-usage-metric .vf-usage-value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}
.vf-media-webp-usage .vf-usage-metric .vf-usage-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-top: 0.15rem;
}
.vf-media-webp-usage .vf-usage-scheme {
    margin-top: 0.85rem;
    font-size: 0.875rem;
}

.cursor-pointer {
    cursor: pointer;
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.user-badge {
    transition: background-color 0.2s;
}

.user-badge:hover {
    background-color: #e9ecef !important;
}

.dropdown-menu {
    animation: fadeInDropdown 0.3s ease-out;
}

/* Períodos de venta (OC): menú Acciones fuera del recorte de table-responsive / scroll */
.vf-sales-periods-table-wrap {
    overflow: visible;
}
.vf-sales-periods-table-wrap .dropdown-menu {
    z-index: 1055;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calendar & Modal Polish */
.fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.fc .fc-button-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    border-radius: 8px;
}

.bg-light-subtle {
    background-color: #f8f9fa !important;
}

.border-dashed {
    border-style: dashed !important;
}

.x-small {
    font-size: 0.75rem;
}

.cs-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 250px;
    overflow-y: auto;
}

.cs-search-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.cs-search-item:last-child {
    border-bottom: none;
}

.cs-search-item:hover {
    background: #f0f7ff;
}

.cs-search-item .name {
    font-weight: 600;
    display: block;
    font-size: 0.85rem;
}

.cs-search-item .email {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Por encima de #vfImageCropModal (2005), overlay de renovación (10800) y stack Bootstrap */
.modal.vf-modal-stack-top {
    z-index: 10900 !important;
}

/* Confirmaciones y pasos críticos encima de otro modal abierto (p. ej. Gestión de producto) */
.modal.vf-modal-stack-confirm-top {
    z-index: 11050 !important;
}

/* Renovar sesión (core-bundle): por encima de TPV cobro y otros modales abiertos */
.modal.vf-modal-stack-session-renew,
#vf-session-renew-modal.modal.show {
    z-index: 11100 !important;
}

#vf-session-renew-modal .modal-content {
    background: #fff !important;
    color: #212529 !important;
}
#vf-session-renew-modal .modal-header {
    color: #664d03 !important;
}
#vf-session-renew-modal .modal-title,
#vf-session-renew-modal .modal-body,
#vf-session-renew-modal .form-check-label {
    color: #212529 !important;
}
#vf-session-renew-modal .text-muted {
    color: #6c757d !important;
}

body > .modal-backdrop {
    z-index: 10890 !important;
}

/* Promociones: simple-datatables (búsqueda, paginación, orden) */
.vf-promotions-datatable-wrap .datatable-wrapper {
    width: 100%;
}
.vf-promotions-datatable-wrap .datatable-top,
.vf-promotions-datatable-wrap .datatable-bottom {
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.vf-promotions-datatable-wrap .datatable-top .datatable-input {
    border-radius: 999px;
    border: 1px solid #dee2e6;
    padding: 0.35rem 0.95rem;
    min-width: 12rem;
}
.vf-promotions-datatable-wrap .datatable-pagination .datatable-active a {
    border-radius: 999px;
}

/* Pestañas banners por clasificación: cuatro esquinas redondeadas (nav-tabs por defecto solo redondea arriba) */
#cb-class-tabs-nav .nav-link.cb-class-tab-btn {
    border-radius: 1rem !important;
}

/* Banners por clasificación: pestaña sin banner completo vs completa */
#cb-class-tabs-nav .nav-link.cb-class-tab-btn.cb-tab-missing {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #664d03;
}
#cb-class-tabs-nav .nav-link.cb-class-tab-btn.cb-tab-complete {
    background-color: rgba(25, 135, 84, 0.12);
    border: 1px solid rgba(25, 135, 84, 0.32);
    color: #0f5132;
}
#cb-class-tabs-nav .nav-link.cb-class-tab-btn.active.cb-tab-missing {
    background-color: rgba(255, 193, 7, 0.35);
    color: #523e02;
}
#cb-class-tabs-nav .nav-link.cb-class-tab-btn.active.cb-tab-complete {
    background-color: rgba(25, 135, 84, 0.22);
    color: #0a3622;
}

/* Configuración General y Diseño: acordeón independiente (varios paneles abiertos; sin data-bs-parent) */
.vf-store-design-accordion .accordion-button:not(.collapsed) {
    box-shadow: none;
    background-color: rgba(13, 110, 253, 0.06);
}
.vf-store-design-accordion .accordion-item .accordion-body {
    background-color: #fff;
}

/* TR — árbol de inventario en resumen */
.vf-tr-inv-tree-root .vf-tr-inv-class-head {
    cursor: pointer;
    user-select: none;
}
.vf-tr-inv-tree-root .vf-tr-inv-class-head:hover {
    background-color: rgba(13, 110, 253, 0.06);
}
.vf-tr-inv-tree-root .vf-tr-inv-prod-row,
.vf-tr-inv-tree-root .vf-tr-inv-var-row {
    border-left: 3px solid rgba(13, 110, 253, 0.25);
}
.vf-tr-inv-tree-root .vf-tr-inv-prod-with-variants > .vf-tr-inv-prod-expand-head {
    border-left: 3px solid rgba(13, 110, 253, 0.25);
}
.vf-tr-inv-tree-root .vf-tr-inv-var-panel .vf-tr-inv-var-row {
    margin-left: 0;
    padding-left: 0.75rem;
    border-left-color: rgba(108, 117, 125, 0.35);
}
.vf-tr-inv-tree-root button[data-bs-toggle="collapse"] .vf-tr-inv-var-chevron {
    transition: transform 0.15s ease;
}
.vf-tr-inv-tree-root button[data-bs-toggle="collapse"][aria-expanded="false"] .vf-tr-inv-var-chevron {
    transform: rotate(-90deg);
}
.vf-tr-inv-tree-root .vf-tr-inv-actions .btn {
    min-width: 2.25rem;
}

/* Catálogo — vista árbol (solo consulta, Mis Productos) */
.vf-catalog-tree-root .vf-catalog-class-head {
    cursor: pointer;
    user-select: none;
}
.vf-catalog-tree-root .vf-catalog-class-head:hover {
    background-color: rgba(13, 110, 253, 0.06);
}
.vf-catalog-tree-root .vf-catalog-prod-row {
    border-left: 3px solid rgba(13, 110, 253, 0.2);
}
.vf-catalog-tree-root button[data-bs-toggle="collapse"] .vf-catalog-class-chevron {
    transition: transform 0.15s ease;
}
.vf-catalog-tree-root button[data-bs-toggle="collapse"][aria-expanded="false"] .vf-catalog-class-chevron {
    transform: rotate(-90deg);
}

/* Clientes — panel notificaciones colapsable */
#btn-customer-notifs-toggle:hover {
    background-color: rgba(13, 110, 253, 0.06) !important;
}
#btn-customer-notifs-toggle .customer-notifs-chevron {
    transition: transform 0.2s ease;
}
#btn-customer-notifs-toggle:not(.collapsed) .customer-notifs-chevron {
    transform: rotate(180deg);
}

/* Compras a proveedor — papelera colapsable */
#btn-po-trash-toggle:hover {
    background-color: rgba(108, 117, 125, 0.08) !important;
}
#btn-po-trash-toggle .po-trash-chevron {
    transition: transform 0.2s ease;
}
#btn-po-trash-toggle:not(.collapsed) .po-trash-chevron {
    transform: rotate(180deg);
}

/* Conector Android — códigos de campo alineados con la app (píldora morada) */
.vf-field-code-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fff;
    background: #6d28d9;
    padding: 0.12rem 0.42rem;
    border-radius: 9999px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Portada / buscador — historial de destacados comprados (panel dueño) */
.vf-dir-boost-purchase {
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.65rem 0.75rem;
}
.vf-dir-boost-pending {
    background-color: #cfe8ff;
}
.vf-dir-boost-active {
    background-color: #c6e9cf;
}
.vf-dir-boost-expired {
    background-color: #eceff1;
    color: #5c636a;
}

/* Temporadas de precios — modal a pantalla completa */
#pricingSeasonsModal .vf-pricing-seasons-modal-body {
    min-height: 0;
    flex: 1 1 auto;
}

#pricingSeasonsModal [data-ps-wizard-step="1"]:not(.d-none) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#pricingSeasonsModal .vf-ps-seasons-table-scroll {
    max-height: calc(100vh - 14rem);
    overflow: auto;
}

#pricingSeasonsModal .vf-ps-step-matrix:not(.d-none) {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#pricingSeasonsModal .vf-ps-matrix-scroll {
    flex: 1 1 auto;
    min-height: 12rem;
    max-height: calc(100vh - 11rem);
    overflow: auto;
}

#pricingSeasonsModal .vf-ps-matrix-scroll .table {
    font-size: 0.875rem;
}

#pricingSeasonsModal .vf-ps-step-matrix .row.g-2 {
    flex-shrink: 0;
}

#pricingSeasonsModal .vf-ps-matrix-scroll .table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-table-bg, #fff);
    box-shadow: inset 0 -1px 0 var(--bs-border-color, #dee2e6);
}

/* Orden de compra — vista imprimible (print.js) */
.vf-po-print-sheet {
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    padding: 0.5rem;
}

.vf-po-print-sheet .vf-po-print-header {
    border-bottom: 2px solid #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.vf-po-print-sheet .vf-po-print-meta {
    font-size: 0.8rem;
    color: #495057;
}

.vf-po-print-sheet table.vf-po-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.vf-po-print-sheet table.vf-po-print-table th,
.vf-po-print-sheet table.vf-po-print-table td {
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.5rem;
    text-align: left;
}

.vf-po-print-sheet table.vf-po-print-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.vf-po-print-sheet .vf-po-print-total {
    margin-top: 0.75rem;
    font-weight: 600;
}

/* Reporte entregas por cliente — vista imprimible (print.js) */
.vf-school-report-print-sheet {
    font-size: 0.9rem;
    color: #212529;
    background: #fff;
    padding: 0.5rem;
}

.vf-school-report-print-sheet .vf-school-report-print-header {
    border-bottom: 2px solid #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.vf-school-report-print-sheet .vf-school-report-print-meta {
    font-size: 0.8rem;
    color: #495057;
}

.vf-school-report-print-sheet table.vf-school-report-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.vf-school-report-print-sheet table.vf-school-report-print-table th,
.vf-school-report-print-sheet table.vf-school-report-print-table td {
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.5rem;
    text-align: left;
}

.vf-school-report-print-sheet table.vf-school-report-print-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.vf-school-report-print-sheet table.vf-school-report-print-table td.text-end,
.vf-school-report-print-sheet table.vf-school-report-print-table th.text-end {
    text-align: right;
}

.vf-school-report-print-sheet .vf-school-report-print-footer {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6c757d;
}

/* Conciliación pasarela: autorización manual del dueño */
tr.vf-pay-recon-manual > td {
    background-color: rgba(255, 193, 7, 0.18) !important;
}

/* Contenedores off-screen solo en pantalla (no cargar dashboard.css en print.js) */
.vf-print-offscreen {
    position: absolute !important;
    left: -9999px !important;
    top: 0;
    width: 8.5in;
    max-width: 8.5in;
    pointer-events: none;
}

/* Reportes — área off-screen para print.js (hoja carta, layout compacto) */
#reports-print-area {
    background: #fff;
    color: #212529;
    font-size: 8.5pt;
    line-height: 1.25;
}

.vf-reports-print-sheet .vf-reports-print-header {
    text-align: center;
    border-bottom: 1.5px solid #212529;
    padding-bottom: 0.35rem;
    margin-bottom: 0.45rem;
}

.vf-reports-print-sheet .vf-reports-print-brand {
    font-size: 12pt;
    font-weight: 700;
}

.vf-reports-print-sheet .vf-reports-print-title {
    font-size: 10pt;
    font-weight: 600;
}

.vf-reports-print-sheet .vf-reports-print-period {
    font-size: 8.5pt;
    color: #495057;
}

.vf-reports-print-sheet .vf-reports-print-meta {
    font-size: 7.5pt;
    color: #6c757d;
}

.vf-reports-print-sheet .vf-reports-print-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px 5px;
    margin: 0 0 0.45rem 0;
}

.vf-reports-print-sheet .vf-reports-print-kpi {
    border: 1px solid #ced4da;
    border-radius: 2px;
    padding: 3px 6px;
    background: #f8f9fa;
}

.vf-reports-print-sheet .vf-reports-print-kpi-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.vf-reports-print-sheet .vf-reports-print-kpi-line p {
    margin: 0;
    font-size: 7pt;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.15;
}

.vf-reports-print-sheet .vf-reports-print-kpi-line h4 {
    margin: 0;
    font-size: 8.5pt;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.vf-reports-print-sheet .vf-reports-print-chart-img {
    max-width: 100%;
    max-height: 110px;
    height: auto;
    display: block;
    margin: 0 auto 0.15rem;
    object-fit: contain;
}

/* Ventas y Resumen — área off-screen para print.js */
#stats-print-area {
    background: #fff;
    color: #212529;
    font-size: 8.5pt;
    line-height: 1.25;
}

.vf-stats-print-sheet .vf-stats-print-header {
    text-align: center;
    border-bottom: 1.5px solid #212529;
    padding-bottom: 0.35rem;
    margin-bottom: 0.45rem;
}

.vf-stats-print-sheet .vf-stats-print-brand {
    font-size: 12pt;
    font-weight: 700;
}

.vf-stats-print-sheet .vf-stats-print-title {
    font-size: 10pt;
    font-weight: 600;
}

.vf-stats-print-sheet .vf-stats-print-period {
    font-size: 8.5pt;
    color: #495057;
}

.vf-stats-print-sheet .vf-stats-print-meta {
    font-size: 7.5pt;
    color: #6c757d;
}

.vf-stats-print-sheet .vf-stats-print-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0 0 0.45rem 0;
}

.vf-stats-print-sheet .vf-stats-print-kpi {
    border: 1px solid #ced4da;
    border-radius: 2px;
    padding: 4px 8px;
    background: #f8f9fa;
}

.vf-stats-print-sheet .vf-stats-print-kpi-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.vf-stats-print-sheet .vf-stats-print-kpi-line p {
    margin: 0;
    font-size: 7pt;
    font-weight: 600;
    color: #6c757d;
}

.vf-stats-print-sheet .vf-stats-print-kpi-line h3,
.vf-stats-print-sheet .vf-stats-print-kpi-line h4 {
    margin: 0;
    font-size: 10pt;
    font-weight: 700;
    white-space: nowrap;
}

.vf-stats-print-sheet .vf-stats-print-chart-img {
    max-width: 100%;
    max-height: 110px;
    height: auto;
    display: block;
    margin: 0 auto 0.15rem;
    object-fit: contain;
}

@media print {
    .dashboard-sidebar,
    #reports-filters-card,
    .sidebar-toggle,
    #sse-status,
    .sidebar-footer {
        display: none !important;
    }
    .dashboard-content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    .vf-reports-print-root .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    #reports-print-area {
        position: static;
        left: auto;
        width: auto;
        max-width: none;
        pointer-events: auto;
    }
}
