/*
[REGLA DE ORO V11.2] PROHIBIDO: Inventar, suponer o crear campos, tablas o lógicas inexistentes.
Solo se actúa bajo el esquema real verificado. [FECHAS]: UI=DD/MM/AAAA, API=ISO.
*/



/* Venta Diaria Test Styles - El Cuaderno del Vendedor */

/* Bloqueo de saltos verticales */
html,
body {
    scroll-behavior: auto !important;
    margin: 0;
    padding: 0;
}

body {
    overflow-y: auto !important;
    background-color: #fff1f2;
    /* Color ligeramente rojizo para identificar TEST */
}

/* Centrado de iconos en botones FAB */
.a11y-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.a11y-btn:hover {
    transform: scale(1.1);
    background: #334155;
}

/* Colores específicos de esta página */
.date-item.active {
    background-color: #2563eb !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4) !important;
    transform: scale(1.05);
    border-color: transparent !important;
}

/* Accesibilidad: Centralizada en accessibility.css */


.test-badge {
    background: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* DISEÑO RODILLO PREMIUM (Emerald for Premium look) */
.rodillo-wrap {
    display: flex;
    justify-content: center;
    gap: 12px;
    height: 220px;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 1.5rem;
    border: 2px solid #e2e8f0;
    position: relative;
    padding: 0 10px;
}

.rodillo-col {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: y mandatory;
    padding: 90px 0;
}

.rodillo-col::-webkit-scrollbar {
    display: none;
}

.rodillo-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
    scroll-snap-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.rodillo-item.active {
    color: white !important;
    font-size: 1.75rem;
    font-weight: 900;
    transform: scale(1.1);
    z-index: 10;
}

.rodillo-indicator {
    position: absolute;
    top: 90px;
    left: 10px;
    right: 10px;
    height: 40px;
    background: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    pointer-events: none;
    border-radius: 8px;
    z-index: 5;
}

/* GRID CALENDAR PREMIUM */
.grid-cal-container {
    padding: 1rem;
    background: white;
    border-radius: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grid-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.grid-cal-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px !important;
    text-align: center !important;
}

.grid-cal-weekday {
    font-size: 10px;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
}

.grid-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.grid-cal-day:hover:not(.empty) {
    background: #f1f5f9;
    color: #059669;
    transform: translateY(-2px);
}

.grid-cal-day.active {
    background: #059669 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    border-color: #059669 !important;
}

.grid-cal-day.today {
    border-color: #059669;
    color: #059669;
}

.grid-cal-day.empty {
    cursor: default;
}

.grid-cal-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s;
}

.grid-cal-btn:hover {
    background: #059669;
    color: white;
}