


/*
====================================================================
[DIRECTIVA ANTIGRAVITY - MODO ESTRICTO]
PROYECTO antigravity :  El código a continuación es EXCLUSIVO para procesar y formatear cadenas de texto (Strings). ESTÁ ESTRICTAMENTE PROHIBIDO que el Agente (Antigravity) realice cualquier tipo de deducción, resta, suma o cálculo automático basándose en los valores de los inputs o los datos del JSON. Cualquier manipulación de datos debe limitarse a la limpieza de texto (replace) y conversión a número (parseFloat) especificada.
*/



/* 
 * Cierre Devolución Test Styles
 * Extracted from cierre_devolucion_test.html
 * Phase 1: Modularization & Clean Code
 */

.date-item.active {
    background-color: #059669 !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.4) !important;
}

/* Indicador de "Hoy" en la barra horizontal */
.date-item.today-marker {
    position: relative;
    border-color: #10b981 !important;
}

.date-item.today-marker::after {
    content: 'HOY';
    position: absolute;
    top: -8px;
    background: #10b981;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 900;
}

.a11y-fab {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    gap: 15px;
    z-index: 9999;
}

.a11y-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #1e3a8a;
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.a11y-btn:hover {
    transform: scale(1.1);
}

.premium-input {
    background-color: transparent;
    border: 1px solid transparent;
    width: 100%;
    font-weight: 700;
    padding: 4px;
    border-radius: 6px;
}

.premium-input:hover {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.premium-input:focus {
    background-color: white;
    border-color: #059669;
    outline: none;
}

/* --- MODO ACCESIBILIDAD: ALTO CONTRASTE (NEGRO + AMARILLO) --- */
body.blind-mode {
    background-color: #000000 !important;
    color: #FFFF00 !important;
}

body.blind-mode * {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border-color: #FFFF00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Excepciones para componentes en modo ciego */
body.blind-mode .bg-white,
body.blind-mode .bg-slate-50,
body.blind-mode .bg-gray-50,
body.blind-mode .bg-gray-100,
body.blind-mode .bg-blue-50,
body.blind-mode nav,
body.blind-mode header,
body.blind-mode .card,
body.blind-mode input,
body.blind-mode select,
body.blind-mode button {
    background-color: #000000 !important;
    color: #FFFF00 !important;
    border: 2px solid #FFFF00 !important;
}

body.blind-mode i {
    color: #FFFF00 !important;
}

/* Texto Grande */
/* Accesibilidad manejada por app.css */

/* DISEÑO RODILLO PREMIUM */
.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;
}

.rodillo-label {
    position: absolute;
    top: 10px;
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

/* 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;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.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 {
    background: #ecfdf5 !important;
    border: 2px solid #059669 !important;
    color: #059669 !important;
    font-weight: 900 !important;
    position: relative;
}

.grid-cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: #059669;
    border-radius: 50%;
}

.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;
}