@font-face {
    font-family: 'Venus'; /* Nombre de la fuente */
    src: url('fonts/venus.woff2') format('woff2'), /* Fuente WOFF2 */
         url('fonts/venus.otf') format('opentype'); /* Fuente OTF */
}
html, body{
    display: block;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}
body{
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
}
header{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
}

/* Override para .pos-header */
header.pos-header {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    z-index: auto;
    background-color: transparent;
}

/* Override Tailwind hover colors */
.hover\:bg-blue-800:hover {
    background-color: #2c3e50 !important;
}
nav{
    width: 100%;
}
ul{
    width: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    text-align: center;
    justify-content: center;
}
nav li{
    font-size: 12px;
    width: 150px;
    height: 30px;
    line-height: 30px;
    margin-bottom: 10px;
    margin-right: 10px;
    border: solid #fff 1px;
    border-radius: 4px;
    box-sizing: border-box;
}
#itm1{
    animation-delay: 2.3s;
}
#itm2{
    animation-delay: 2.6s;
}
#itm3{
    animation-delay: 2.9s;
}
.wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.particule {
    position: absolute;
}
.display_flex{
    display: -webkit-flex;
    display: flex;
}
.main_section{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    animation-delay: 2s;
}
#dev_mode{
    width: 100%;
    color: #fff;
    text-align: center;
    animation-delay: 1s;
}
.main_tlt{
    font-family: "Venus", sans-serif;
    color: #fff;
    font-size: 2rem;
    line-height: 2rem;
    height: 2rem;
}
#logo_svg{
    width: 2rem;
    margin-right: 1rem;
}
section{
    
}
#whatsapp{
    position: fixed;
    top: 25px;
    left: 30px;
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 90px;
    border: solid #fff 2px;
    z-index: 100;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}
#whatsapp:hover{
    background-color: rgba(255,255,255,0.1);
    transform: scale(1.02);
}
#whatsapp_num{
    padding: 0px 8px;
}

/* Botón de login: mismo estilo que #whatsapp, pero en el lado derecho y solo emoji */
#login_btn{
    position: fixed;
    top: 25px;
    right: 30px;
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    padding: 8px 16px;
    border-radius: 90px;
    border: solid #fff 2px;
    z-index: 200;
    font-size: 1.3rem;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 42px;
    min-width: 42px;
}
#login_btn:hover{
    color: #000 !important;
    background-color: #fff !important;
    transform: scale(1.05);
}
#login_btn:active{
    transform: scale(0.98);
}
#login_btn:focus{
    outline: 2px solid rgba(255,255,255,0.9) !important;
    outline-offset: 2px !important;
}

/* Modal de login expandible */
#login_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fallback para navegadores antiguos */
    height: 100dvh; /* Dynamic viewport height para móviles */
    background: url('../img/back2.svg') center / cover no-repeat;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 101;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: modalFadeIn 0.4s ease forwards;
}

#login_modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#login_modal_content {
    width: 280px;
    min-height: 420px;
    border-radius: 9px;
    background: rgba(10, 15, 25, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(50, 50, 50, 0.3);
    border: 1px solid rgba(80, 80, 80, 0.4);
    position: relative;
    z-index: 101;
    animation: contentScaleIn 0.5s ease forwards;
}

/* Panel expandible (POS system) */
#panel {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0vh; /* Fallback para navegadores antiguos */
    height: 0dvh; /* Dynamic viewport height para móviles */
    transform: translate(-50%, -50%);
    background: rgba(8, 10, 12, 0.98);
    overflow: hidden;
    border-radius: 8px;
    /* Z-index menor que modales (10002) para que estos aparezcan encima */
    z-index: 100;
    transition: width 0.45s cubic-bezier(.2,.9,.2,1), height 0.45s cubic-bezier(.2,.9,.2,1), opacity 0.5s ease, transform 0.45s cubic-bezier(.2,.9,.2,1);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#panel.expanded {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100vh; /* Fallback para navegadores antiguos */
    height: 100dvh; /* Dynamic viewport height para móviles */
    border-radius: 0;
    opacity: 1;
}

#panel .panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: auto;
}

/* When panel is open, reduce interactions and stacking of the site chrome */
body.panel-open header,
body.panel-open #whatsapp,
body.panel-open footer {
    pointer-events: none;
    z-index: 0 !important;
}

body.panel-open #login_btn {
    display: none !important;
}

/* POS System Header */
.pos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 25, 40, 0.8) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    animation: headerIn 0.3s ease;
    flex-shrink: 0;
    position: relative !important;
    width: auto !important;
    top: auto !important;
    left: auto !important;
}

@keyframes headerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pos-header-left h1 { color: #fff; margin: 0; font-size: 1.4rem; }
.pos-header-left p { color: #aaa; margin: 2px 0 0; font-size: 0.85rem; }

/* Role badge shown in the POS header when role is provided */
.role-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.04);
}

.btn-logout {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255,0,0,0.1);
    border-color: rgba(255,100,100,0.3);
}

/* POS Navigation */
.pos-nav {
    display: flex;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(15, 20, 35, 0.9);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    overflow-x: auto;
    animation: navIn 0.35s ease;
    flex-shrink: 0;
    height: auto;
    min-height: 40px;
}

@keyframes navIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-btn {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: #999;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.15);
}

.nav-btn.active {
    background: rgba(76,175,80,0.2);
    border-color: rgba(76,175,80,0.4);
    color: #4CAF50;
}

/* POS Main Content */
.pos-main {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    animation: contentIn 0.4s ease;
    display: flex;
    flex-direction: column;
}

@keyframes contentIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.module {
    display: none;
    animation: moduleIn 0.35s ease;
}

.module.active {
    display: block;
}

@keyframes moduleIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.module h2 { color: #1f2937; margin-top: 0; }

.module-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Asegurar que todo el texto dentro de módulos sea legible */
.module, .module * {
    color: #1f2937 !important;
}

/* Excepciones para elementos específicos que necesitan otros colores */
.module .text-green-600,
.module .text-green-500 {
    color: #16a34a !important;
}

.module .text-red-600,
.module .text-red-500 {
    color: #dc2626 !important;
}

.module .text-blue-600,
.module .text-blue-500 {
    color: #2563eb !important;
}

.module .text-yellow-600,
.module .text-yellow-500 {
    color: #ca8a04 !important;
}

.module .text-gray-500,
.module .text-gray-600 {
    color: #6b7280 !important;
}

.module .btn-primary,
.module button {
    color: inherit !important;
}

.module .badge {
    color: inherit !important;
}

.module h1, .module h2, .module h3, .module h4, .module h5, .module h6 {
    color: #111827 !important;
}

.module label {
    color: #374151 !important;
}

.module input, .module select, .module textarea,
.module .input, .module .select, .module .textarea {
    color: #111827 !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
}

.module input:focus, .module select:focus, .module textarea:focus,
.module .input:focus, .module .select:focus, .module .textarea:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    outline: 2px solid rgba(59, 130, 246, 0.2) !important;
    outline-offset: 0 !important;
}

.module input::placeholder,
.module .input::placeholder {
    color: #9ca3af !important;
}

.module textarea::placeholder,
.module .textarea::placeholder {
    color: #9ca3af !important;
}

/* Sobrescribir estilos específicos de DaisyUI */
.module .input-bordered,
.module .select-bordered,
.module .textarea-bordered {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

.module .input-bordered:focus,
.module .select-bordered:focus,
.module .textarea-bordered:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

/* Estilos globales para TODOS los inputs/selects/textareas en el panel POS */
#pos_panel input[type="text"],
#pos_panel input[type="number"],
#pos_panel input[type="email"],
#pos_panel input[type="password"],
#pos_panel input[type="date"],
#pos_panel input[type="time"],
#pos_panel select,
#pos_panel textarea,
#pos_panel .input,
#pos_panel .select,
#pos_panel .textarea {
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

#pos_panel input[type="text"]:focus,
#pos_panel input[type="number"]:focus,
#pos_panel input[type="email"]:focus,
#pos_panel input[type="password"]:focus,
#pos_panel input[type="date"]:focus,
#pos_panel input[type="time"]:focus,
#pos_panel select:focus,
#pos_panel textarea:focus,
#pos_panel .input:focus,
#pos_panel .select:focus,
#pos_panel .textarea:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

#pos_panel input::placeholder,
#pos_panel textarea::placeholder,
#pos_panel .input::placeholder,
#pos_panel .textarea::placeholder {
    color: #9ca3af !important;
}

/* Clase reutilizable para todos los elementos de formulario en el POS */
.form-control-pos,
.form-control-pos.input,
.form-control-pos.select,
.form-control-pos.textarea {
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

.form-control-pos:focus,
.form-control-pos.input:focus,
.form-control-pos.select:focus,
.form-control-pos.textarea:focus {
    background-color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.form-control-pos::placeholder {
    color: #9ca3af !important;
}

/* Clase custom para altura de viewport con dvh (mejor que h-screen en móviles) */
.h-screen-dvh {
    height: 100vh; /* Fallback para navegadores antiguos */
    height: 100dvh; /* Dynamic viewport height para móviles */
}

/* Botones con fondo específico - texto blanco */
.btn[style*="#7480ff"],
.btn[style*="rgb(116, 128, 255)"] {
    color: #ffffff !important;
}

/* Estilos específicos por ID para campos de Caja (legacy - se pueden remover después) */
#monto_movimiento,
#tipo_movimiento,
#concepto_movimiento,
#referencia_movimiento,
#monto_inicial,
#notas_apertura,
#buscar_producto,
#filtro_fecha_inicio,
#filtro_fecha_fin,
#filtro_estado,
#filtro_cajero,
#filtro_sucursal {
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

#monto_movimiento:focus,
#tipo_movimiento:focus,
#concepto_movimiento:focus,
#referencia_movimiento:focus,
#monto_inicial:focus,
#notas_apertura:focus,
#buscar_producto:focus,
#filtro_cajero:focus,
#filtro_sucursal:focus,
#filtro_fecha_inicio:focus,
#filtro_fecha_fin:focus,
#filtro_estado:focus {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.module table th {
    color: #111827 !important;
    background-color: #f9fafb !important;
}

.module table td {
    color: #1f2937 !important;
}

/* Filas zebra - asegurar contraste con máxima especificidad */
#pos_panel .table-zebra tbody tr:nth-child(odd),
#pos_panel table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

#pos_panel .table-zebra tbody tr:nth-child(even),
#pos_panel table tbody tr:nth-child(even) {
    background-color: #f3f4f6 !important;
}

#pos_panel .table-zebra tbody tr td,
#pos_panel table tbody tr td,
#pos_panel .table tbody tr td {
    color: #111827 !important;
    background-color: transparent !important;
}

#pos_panel .table-zebra tbody tr:nth-child(odd) td,
#pos_panel table tbody tr:nth-child(odd) td {
    color: #111827 !important;
}

#pos_panel .table-zebra tbody tr:nth-child(even) td,
#pos_panel table tbody tr:nth-child(even) td {
    color: #111827 !important;
}

/* Badges y elementos de color dentro de tablas */
#pos_panel table .badge,
#pos_panel .table .badge {
    color: inherit !important;
    background-color: currentColor !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
}

#pos_panel table .badge-success {
    color: #16a34a !important;
    background-color: rgba(22, 163, 74, 0.1) !important;
}

#pos_panel table .badge-error {
    color: #dc2626 !important;
    background-color: rgba(220, 38, 38, 0.1) !important;
}

#pos_panel table .badge-info {
    color: #2563eb !important;
    background-color: rgba(37, 99, 235, 0.1) !important;
}

#pos_panel table .badge-neutral {
    color: #6b7280 !important;
    background-color: rgba(107, 114, 128, 0.1) !important;
}

#pos_panel table .text-green-600,
#pos_panel .table .text-green-600 {
    color: #16a34a !important;
}

#pos_panel table .text-red-600,
#pos_panel .table .text-red-600 {
    color: #dc2626 !important;
}

#pos_panel table .text-blue-600,
#pos_panel .table .text-blue-600 {
    color: #2563eb !important;
}

#pos_panel table .font-bold,
#pos_panel .table .font-bold {
    font-weight: bold !important;
    color: #111827 !important;
}

/* thead de table-zebra con color negro */
.table-zebra thead,
.table-zebra thead tr,
.table-zebra thead th,
#pos_panel .table-zebra thead,
#pos_panel .table-zebra thead tr,
#pos_panel .table-zebra thead th {
    color: #111827 !important;
    background-color: #f9fafb !important;
}

/* Sobrescribir específicamente el color blanco de DaisyUI en filas pares */
.table-zebra tbody tr:nth-child(2n),
.table-zebra tbody tr:nth-child(2n) td,
.table-zebra tbody tr:nth-child(2n) th,
#pos_panel .table-zebra tbody tr:nth-child(2n),
#pos_panel .table-zebra tbody tr:nth-child(2n) td,
#pos_panel .table-zebra tbody tr:nth-child(2n) th {
    color: #111827 !important;
    background-color: #f3f4f6 !important;
}

.table-zebra tbody tr:nth-child(odd),
.table-zebra tbody tr:nth-child(odd) td,
.table-zebra tbody tr:nth-child(odd) th,
#pos_panel .table-zebra tbody tr:nth-child(odd),
#pos_panel .table-zebra tbody tr:nth-child(odd) td,
#pos_panel .table-zebra tbody tr:nth-child(odd) th {
    color: #111827 !important;
    background-color: #ffffff !important;
}

/* Preservar colores específicos dentro de las tablas */
.table-zebra .text-green-600,
#pos_panel .table-zebra .text-green-600 {
    color: #16a34a !important;
}

.table-zebra .text-red-600,
#pos_panel .table-zebra .text-red-600 {
    color: #dc2626 !important;
}

/* Estilos para canvas de gráficos */
canvas {
    max-width: 100% !important;
    max-height: 250px !important;
    width: auto !important;
    height: auto !important;
}

#grafico_movimientos,
#grafico_ventas_hora {
    display: block;
    max-width: 500px;
    max-height: 250px;
    margin: 0 auto;
}

.btn-primary {
    padding: 10px 14px;
    background: rgba(76,175,80,0.15);
    border: 1px solid rgba(76,175,80,0.3);
    color: #ecf0f1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: rgba(76,175,80,0.25);
    border-color: rgba(76,175,80,0.5);
    color: #ffffff;
}

.btn-small {
    padding: 6px 10px;
    background: rgba(100,150,200,0.15);
    border: 1px solid rgba(100,150,200,0.3);
    color: #64a8e8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-small:hover {
    background: rgba(100,150,200,0.25);
}

.btn-disabled {
    padding: 10px 14px;
    background: rgba(120,120,120,0.15);
    border: 1px solid rgba(120,120,120,0.3);
    color: #888888 !important;
    border-radius: 6px;
    cursor: not-allowed;
    transition: all 0.2s;
    opacity: 0.6;
}

.btn-disabled:hover {
    background: rgba(120,120,120,0.15);
    border-color: rgba(120,120,120,0.3);
    color: #888888 !important;
    cursor: not-allowed;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px;
    border-radius: 7px;
    color: #1f2937;
    animation: cardIn 0.4s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }

@keyframes cardIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.card h3 { margin: 0 0 8px; color: #ffffff; font-size: 0.9rem; }

/* Override para cards de Ventas */
.ventas-card h3 { 
    color: #374151 !important; 
}
.card .amount { margin: 0; font-size: 1.6rem; color: #4CAF50; font-weight: bold; }

/* Order Cards */
.order-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,180,0,0.2);
    padding: 12px;
    border-radius: 6px;
    color: #1f2937;
}

.order-card h3 { margin: 0 0 6px; color: #f59e0b; }
.order-card p { margin: 4px 0; color: #4b5563; font-size: 0.9rem; }

/* Notifications */
.notification {
    background: rgba(255,255,255,0.03);
    border-left: 3px solid rgba(76,175,80,0.4);
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    color: #374151;
}

.notification .badge {
    display: inline-block;
    background: rgba(76,175,80,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #4CAF50;
    margin-right: 6px;
}

.notification p { margin: 4px 0 0; font-size: 0.9rem; }


@keyframes contentScaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#login_modal_content h2 {
    color: #fff;
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    text-align: center;
}

#login_form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#login_form input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(100, 100, 100, 0.5);
    border-radius: 6px;
    background: rgba(30, 30, 40, 0.8);
    color: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#login_form input::placeholder {
    color: rgba(150, 150, 150, 0.7);
}

#login_form input:focus {
    outline: none;
    background: rgba(40, 40, 55, 0.9);
    border-color: rgba(150, 150, 150, 0.6);
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
}

.submit_btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid rgba(120, 120, 120, 0.6);
    border-radius: 6px;
    background: rgba(40, 40, 55, 0.7);
    color: #ddd;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit_btn:hover {
    background: rgba(50, 50, 70, 0.9);
    box-shadow: 0 4px 15px rgba(50, 50, 50, 0.5);
}

.submit_btn:active {
    transform: scale(0.98);
}

.cancel_btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #aaa;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel_btn:hover {
    color: #ddd;
    border-color: rgba(120, 120, 120, 0.7);
}

.cancel_btn:active {
    transform: scale(0.98);
}

.close_btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(50, 50, 60, 0.7);
    color: #aaa;
    font-size: 1.3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close_btn:hover {
    background: rgba(60, 60, 75, 0.9);
    color: #ddd;
    transform: rotate(90deg);
}

.close_btn:focus {
    outline: 2px solid rgba(150, 150, 150, 0.4);
    outline-offset: 2px;
}
footer{
    position: absolute;
    z-index: 100;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
}
@media screen and (max-height: 555px){
    .main_tlt {
        font-size: 1.5rem;
    }
    #logo_svg {
      width: 1.5rem;
    }
    ul{
        flex-direction: column;
    }
}

li a {
    color: #fff !important;
    text-decoration: none !important;
}
/* Modal Backdrop */
.modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Asegurar que modales estén sobre todo */
.modal {
    z-index: 10002 !important;
}

.modal-box {
    background: white;
    max-width: 90vw !important;
}
    color: #1f2937;
}

/* Estilos para dropdown de perfil */
#perfil_menu {
    right: 0 !important;
    left: auto !important;
}

#perfil_menu li a {
    color: #374151 !important;
    transition: all 0.2s ease;
}

#perfil_menu li a:hover {
    background-color: #374151 !important;
    color: white !important;
}

#perfil_menu li a:hover img {
    filter: brightness(0) invert(1);
}

#perfil_menu .menu-title {
    color: #6b7280 !important;
    font-weight: 600;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablets y menores */
@media (max-width: 768px) {
    /* Header responsive */
    .pos-header {
        padding: 0.75rem 1rem !important;
    }
    
    /* Contenido principal con menos padding */
    main {
        padding: 1rem !important;
    }
    
    /* Cards con menos padding */
    .card {
        padding: 1rem !important;
    }
    
    /* Grids a una columna */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Tablas con scroll horizontal */
    .overflow-x-auto {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Botones más grandes para touch */
    .btn {
        min-height: 2.5rem;
        padding: 0.5rem 1rem;
    }
    
    /* Modales responsive */
    .modal-box {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Formularios responsive */
    .form-control,
    .input,
    .select,
    .textarea {
        font-size: 16px !important; /* Evita zoom en iOS */
    }
    
    /* Gráficos responsive */
    canvas {
        max-width: 100% !important;
    }
    
    /* Ocultar texto en botones pequeños */
    .btn-sm span {
        display: none;
    }
    
    .btn-sm img {
        margin: 0 !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    /* Header más compacto */
    .pos-header {
        padding: 0.5rem !important;
    }
    
    /* Texto más pequeño */
    h1, .text-2xl {
        font-size: 1.25rem !important;
    }
    
    h2, .text-xl {
        font-size: 1.125rem !important;
    }
    
    h3, .text-lg {
        font-size: 1rem !important;
    }
    
    /* Badges y pills más pequeños */
    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Alertas más compactas */
    .alert {
        padding: 0.75rem !important;
        font-size: 0.875rem;
    }
    
    /* Dropdown más ancho en móviles */
    #perfil_menu {
        width: calc(100vw - 2rem) !important;
        max-width: 280px !important;
    }
}

/* Landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-box {
        max-height: 85vh;
    }
    
    main {
        padding: 0.5rem !important;
    }
}