/* ============================================================
   styles.css — Estilos personalizados del sistema
   SGT Fiscal & IT - ALR Sistemas y Proyectos C.A.
   ============================================================ */

/* Animación sutil para transiciones de pestañas */
.tab-content {
    animation: fadeIn 0.15s ease-in-out;
}

/* Accesibilidad y legibilidad móvil en Dashboard (control remoto gerencial) */
@media (max-width: 640px) {
    #tab-dashboard p,
    #tab-dashboard span,
    #tab-dashboard td,
    #tab-dashboard th,
    #tab-dashboard div {
        font-size: max(12.5px, 1em);
    }
    #tab-dashboard .text-\[9px\],
    #tab-dashboard .text-\[10px\],
    #tab-dashboard .text-\[11px\] {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
    }
    #tab-dashboard button {
        min-height: 44px;
        min-width: 44px;
        font-size: 13px !important;
    }
}

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

/* ============================================================
   ESTILOS DE IMPRESIÓN DIRECTA (TICKETS TÉRMICOS 80mm / 58mm)
   ============================================================ */
@media print {
    /* Ocultar todo el sitio web excepto el área de ticket */
    body * {
        visibility: hidden;
    }

    #ticket-modal,
    #printable-ticket-content,
    #printable-ticket-content * {
        visibility: visible;
    }

    /* Posicionar el ticket en la parte superior sin márgenes de navegador */
    #ticket-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white !important;
        backdrop-filter: none !important;
        z-index: 9999;
    }

    #printable-ticket-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 78mm !important; /* Estándar rollo térmico 80mm */
        max-width: 78mm !important;
        margin: 0 !important;
        padding: 4mm !important;
        background: white !important;
        border: none !important;
        box-shadow: none !important;
        font-size: 11px !important;
        color: black !important;
        line-height: 1.3 !important;
    }

    /* Ocultar botones y encabezados decorativos del modal */
    #ticket-modal .border-b,
    #ticket-modal button,
    #ticket-modal .flex.justify-between {
        display: none !important;
    }
}
