/* ========================================== 
   ESTRUCTURA GENERAL - ADN INK SERVICE v3.1
   Fondo: Gris Metalizado | Escritura: NATURAL 
   ========================================== */

/* 1. LEY MARCIAL DE ORTOGRAFÍA: Se elimina cualquier forzado de mayúsculas */
*, h1, h2, h3, h4, h5, h6, .btn, .badge, .label-header, .stat-titulo, .form-control, .form-select, thead th, span, div, td { 
    text-transform: none !important; 
    letter-spacing: normal !important; 
}

body { 
    background-color: #3a3f44 !important; /* Gris Metalizado unificado */
    color: #ffffff; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
}

/* BARRA DE HERRAMIENTAS (TOOLBAR) - OPTIMIZADA */
.toolbar-container { 
    background-color: #3a3f44; 
    padding: 5px; 
    display: flex; 
    justify-content: center; 
    gap: 5px; 
    flex-wrap: nowrap; 
    overflow: hidden; 
    border-bottom: 3px solid #0d6efd; 
}

/* BOTONES DE LA TOOLBAR */
.btn-box { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background-color: transparent; 
    border: none;
    border-radius: 10px; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    min-width: 60px;
    padding: 6px; 
}

.btn-box i { 
    font-size: 1.85rem; 
    margin-bottom: 2px; 
    color: #fff;
    -webkit-text-stroke: 0.4px currentColor; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); 
}

.btn-box span { 
    color: rgba(255,255,255,0.6) !important; 
    font-weight: 700; 
    font-size: 0.55rem; 
    text-align: center; 
    text-transform: uppercase !important; /* Solo las etiquetas del menú en mayúsculas por diseño */
}

.btn-box:hover { 
    background-color: rgba(255,255,255,0.1); 
    transform: translateY(-2px); 
}

.btn-box:hover i { 
    filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.8)); 
}

.btn-box:hover span {
    color: #fff !important;
}

/* CAJONES DE ESTADÍSTICAS Y CALENDARIO */
.cajon-stat, .cal-box { 
    background-color: #1a1c1e !important; 
    border: 1px solid #4e555b !important; 
    border-radius: 15px !important; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important; 
}

/* ========================================== 
   TABLAS CONTABLES (CEBRITA VERDE INTACTA) 
   ========================================== */
.tabla-contable { 
    background-color: white !important; 
    border-radius: 12px !important; 
    overflow: hidden !important; 
    border: 1px solid #1a1c1e !important; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important; 
}

.tabla-contable thead th { 
    background-color: #e9ecef !important; 
    color: #000000 !important; 
    padding: 12px !important; 
    font-weight: 800 !important; 
    font-size: 0.8rem !important; 
    border-bottom: 2px solid #333 !important; 
    text-transform: uppercase !important; /* Encabezados en mayúsculas para seriedad */
}

.tabla-contable td { 
    border-bottom: 1px solid #dee2e6 !important; 
    padding: 10px !important; 
    color: #000 !important; 
    font-weight: 500 !important; 
    vertical-align: middle !important; 
    text-transform: none !important; /* Contenido de tabla RESPETA TU ORTOGRAFÍA */
}

.tabla-contable tbody tr:nth-child(even) td { background-color: #e8f5e9 !important; }
.tabla-contable tbody tr:nth-child(odd) td { background-color: #ffffff !important; }
.tabla-contable tbody tr:hover td { background-color: #d1e7dd !important; }

/* ========================================== 
   ADN FORMULARIOS: ANCHOS Y COMPACTOS 
   ========================================== */
.form-estandar {
    background-color: #e0e0e0 !important;
    border: 1px solid #1a1c1e !important; 
    padding: 20px 40px !important; 
    border-radius: 15px !important; 
    color: #333 !important; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; 
}

.label-header { 
    font-size: 0.72rem !important; 
    font-weight: 800 !important; 
    color: #555 !important; 
    margin-bottom: 3px !important; 
    display: block; 
    text-transform: uppercase !important; /* Etiquetas de campo en mayúsculas por diseño técnico */
}

.row-cebra-blanca, .row-cebra-verde { 
    padding: 8px 15px !important; 
    border-radius: 8px !important; 
    margin-bottom: 6px !important; 
    border: 1px solid #dee2e6 !important; 
}

.row-cebra-blanca { background-color: #e0e0e0 !important; }
.row-cebra-verde { background-color: #adc9ad !important; border-color: #98b898 !important; }

.input-flat { 
    background-color: #ffffff !important; 
    border: 1px solid #bbb !important; 
    color: #000 !important; 
    font-weight: 500 !important; 
    font-size: 0.95rem !important; 
    height: 36px !important; 
    border-radius: 6px !important; 
    text-transform: none !important; /* Lo que escribes se queda como lo escribes */
}

textarea.form-control { 
    height: auto !important; 
    min-height: 100px !important; 
    text-transform: none !important; 
}

/* ========================================== 
   REGLAS DE IMPRESIÓN PROFESIONAL 
   ========================================== */
@media print { 
    html, body { background-color: white !important; color: black !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .header-top { display: block !important; background-color: white !important; border-bottom: 2px solid black !important; margin-bottom: 20px !important; padding: 10px 0 !important; }
    .toolbar-container, .btn, .no-print, #reloj-sesion, .cal-box { display: none !important; }
    .titulo-empresa { color: black !important; font-size: 20pt !important; text-transform: uppercase !important; }
    .tabla-contable td { text-transform: none !important; }
}

/* ==========================================
   UTILIDADES COMPARTIDAS (antes inline)
   ========================================== */

.contenedor-80 { max-width: 80% !important; margin: 0 auto; }
.contenedor-90 { max-width: 90% !important; margin: 0 auto; }
.contenedor-95 { max-width: 95% !important; margin: 0 auto; }

.ficha-unica {
    background: #e0e0e0;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.header-ficha {
    background-color: #c8c8c8;
    border-bottom: 2px solid #0dcaf0;
    padding: 12px 20px;
}

.search-console {
    background: #000 !important;
    border: 2px solid #0dcaf0 !important;
    color: #00ff00 !important;
    font-family: monospace;
    font-size: 1.2rem !important;
    text-align: center;
}

.search-console::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 400;
    font-style: italic;
}

.win-table { font-size: 0.95rem; background: #e0e0e0; }
.win-table thead th {
    background-color: #c8c8c8 !important;
    color: #1a1a1a !important;
    padding: 15px 12px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid #dee2e6;
}
.win-table td { padding: 10px 12px; border-bottom: 1px solid #eee; color: #212529 !important; }
.win-table tbody tr:nth-child(even) td { background-color: #adc9ad !important; }
.win-table tbody tr:hover td { background-color: #98b898 !important; }

.stock-alerta {
    color: #d32f2f !important;
    font-weight: 800;
    background: #ffebee;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ffcdd2;
}
