:root {
    --color-primary: #1a5276;
    --color-secondary: #3d8bbb;
    --color-tertiary: #000000;
    --font-family: 'Poppins-Regular', Arial, sans-serif;
    --color-white: white;
    --color-black: black;
    --color-red: #e53935;
}

@font-face {
    font-family: "Poppins-Regular";
    src: url("../fonts/poppins/Poppins-Regular.otf");
}

@font-face {
    font-family: "Poppins-Medium";
    src: url("../fonts/poppins/Poppins-Medium.otf");
}

@font-face {
    font-family: "Poppins-SemiBold";
    src: url("../fonts/poppins/Poppins-SemiBold.otf");
}

@font-face {
    font-family: "Poppins-Bold";
    src: url("../fonts/poppins/Poppins-Bold.otf");
}

font {
    font-family: var(--font-family) !important;
    color: #73879C !important;
}

body {
    font-family: var(--font-family) !important;
}

/* Estilos para la barra de desplazamiento */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Estilos para el riel de la barra de desplazamiento */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Estilos para el pulgar de la barra de desplazamiento */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Estilos para el pulgar de la barra de desplazamiento al pasar el mouse */
::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Cambiar el color al pasar el mouse sobre el pulgar */
}

.capitalize {
    text-transform: capitalize !important;
}

.lowercase {
    text-transform: lowercase !important;
}


p {
    font-family: var(--font-family) !important;
    font-size: 1rem;
    color: #73879C;
    /* Igual a 16px */
}

h1 {
    font-family: var(--font-family) !important;
    font-size: 2.25rem;
    color: #73879C;
    /* Igual a 36px */
}

h2 {
    font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1.875rem;
    /* Igual a 30px */
}

h3 {
    font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1.5rem;
    /* Igual a 24px */
}

h4 {
    font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1.25rem;
    /* Igual a 20px */
}

h5 {
    font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1.125rem;
    /* Igual a 18px */
}

h6 {
    font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1rem;
    /* Igual a 16px */
}

hr {
    border: 2px solid;
    /* color y grosor */
    border-radius: 5px;
    /* bordes redondeados opcional */
    margin: 20px 0;
}

/* label {
    font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1.125rem;
} */

/* tables custom */
/* th{
    color: #6d8aa8 !important;
    font-weight: bold;
    text-transform: capitalize;
    font-size: 13px;
}
td{
    color: #4b4b4b !important;
    font-weight: normal;
    text-transform: capitalize;
    font-size: 13px;
}
 */

/* Estilo Elegante en Modales  */

.modal-content {
    background-color: #f9f9f9;
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);


}


.modal-header {
    background-color: #2c3e50;
    color: #ffffff;
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-header .modal-title {
    color: #ffffff !important;
}

.modal-title {
    font-weight: 600;
    font-size: 1rem;
    text-align: center !important;
}


/* Opcional: Centrar el modal de forma más moderna */
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

.modal-grande {
    max-width: 35%;
    /* o 100%, 1200px, etc. */
    width: 35%;
    height: 50%;
    max-height: 50%;
    bottom: 26px;
    padding: 17px;
}

.modal-retiro {
    max-width: 39%;
    /* o 100%, 1200px, etc. */
    width: 39%;
    height: 50%;
    max-height: 50%;
    bottom: 26px;
    padding: 17px;
}

.modal-footer {
    background-color: transparent;
    border-top: none;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.btn-both {
    background: #f1f3f5e0;
    color: #000;
}

.btn-both span {
    background: #f1f3f5e0;
    color: #000;
}


.modal-body {
    /* width: calc(100% - 30px);
    
    margin: 0 15px; */
    margin: 20px;
    /* margen externo */
    padding: 15px;
    /* espacio interno */

}

/* Estilo normal del botón cerrar */
.btn-close {
    filter: invert(1);
    opacity: 0.8;
    color: #ffffff !important;
    transition: background-color 0.3s ease, filter 0.3s ease;
    /* transición suave */
    border-radius: 10%;
    /* para que el hover se vea con fondo redondo */
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1rem !important;
}

/* Estilo al pasar el mouse: fondo rojo y tachita blanca */
.btn-close:hover {
    background-color: #b22222 !important;
    filter: invert(0) brightness(1.2) !important;
    opacity: 1;
    color: #ffffff !important;
}


.card-header-zt {
    background-color: #2c3e50 !important;
    /* gris azulado suave */
    color: white !important;
    border-bottom: none !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    padding: 1rem !important;
    white-space: nowrap;
}

.card-header-zt2 {
    background: linear-gradient(90deg, #405269 0%, #6a7c99 100%);
    color: #f0f4f8 !important;
    /* texto muy claro */
    border-bottom: none !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    text-align: center !important;
    padding: 1.2rem 1rem !important;
    box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo gris general para secciones */
.bg-light-gray {
    background-color: #f5f5f5;
    /* gris clarito */
    padding: 20px;
    /* espacio alrededor de los cards */
}

.card {
    background-color: #ffffff;
    font-family: var(--font-family) !important;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
    width: 100%;
}

/* Efecto hover */
.card:hover {
    /* transform: translateY(-4px); */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-custom-zt {
    background-color: #ffffff;
    font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1.5rem;
    /* todo el texto en blanco */
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: auto;
}

/* Efecto hover */
.card-custom-zt:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Si hay enlaces, que también salgan blancos */
.card-custom-zt a {
    color: #ffffff;
    text-decoration: underline;
    /* font-family: var(--font-family) !important;
    color: #73879C;
    font-size: 1.5rem; */
}

.card-custom-zt a:hover {
    color: #d1d1d1;
}

.nota-amarilla {
    background-color: #fff3cd !important;
    /* color amarillo suave */
    border: 1px solid #ffeeba !important;
    color: #856404 !important;
    font-weight: bold;
    font-size: 0.9rem;
    max-width: 320px;
    margin: 0 auto 16px auto;
    /* centrado con margen inferior */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nota-amarilla span {
    vertical-align: middle;
}

/* .btn-outline-danger,
.btn-outline-success,
.btn-outline-primary,
.btn-outline-warning {
    border-radius: 12px;
    padding: 12px;
    min-width: 100px;
    font-size: 0.9rem;
    opacity: 0.9;
    border-color: #2980b9 !important;
    /* color: #ffffff !important; /
    
} */



.btn-outline-danger:hover,
.btn-outline-success:hover,
.btn-outline-primary:hover,
.btn-outline-warning:hover {
    color: #ffffff !important;
    opacity: 1;
    transform: scale(1.03);
    transition: all 0.2s ease-in-out;
}

.btn-secondary {
    background-color: #95a5a6 !important;
    border-color: #8d9b9c !important;
    border-radius: 12px;
    font-size: 1rem;
    color: #ffffff !important;

}

.botones-derecha {
    text-align: right;
}

.btn-secondary:hover {
    background-color: #7f8c8d !important;
    border-color: #7f8c8d !important;
    color: #ffffff !important;

}

.btn-primary {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
    border-radius: 12px !important;
    /* padding: 12px 24px; */
    font-size: 1rem;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #2471a3 !important;
    border-color: #2471a3 !important;
    color: #ffffff !important;
}

.btn-success {
    background-color: #28b97a !important;
    border-color: #28b97a !important;
    border-radius: 12px;
    /* padding: 12px 24px; */
    font-size: 1rem;
    color: #ffffff !important;
}


.btn-verde {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 1rem;

}

.btn-verde:hover {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}


.btn-nota {
    background-color: #c7aa07 !important;
    ;
    border-color: #E4CE4F !important;
    ;
    border-radius: 8px;
    color: #ffffff !important;
    /* padding: 12px 24px; */
    font-size: 1rem;
}

.btn-nota:hover {
    background-color: #c7aa07 !important;
    border-color: #E4CE4F !important;
    color: #ffffff !important;
}

.btn-print {
    background-color: #565d64dc !important;
    border-color: #343a40 !important;
    border-radius: 12px;
    color: #ffffff !important;

}

.btn-print:hover {
    background-color: #252a2e;
    border-color: #24282c;
    border-radius: 12px;
    color: #ffffff !important;

}

/* Botón Warning personalizado */
.btn-warning {
    background-color: #e67e22 !important;
    /* naranja dorado */
    border-color: #e67e22 !important;
    color: #fff !important;
    /* texto blanco para mejor contraste */
}

/* Hover */
.btn-warning:hover {
    background-color: #d35400 !important;
    /* más oscuro al pasar */
    border-color: #d35400 !important;
    color: #ffffff !important;
}

/* Focus */
.btn-warning:focus,
.btn-warning:active {
    background-color: #ca4a00 !important;
    border-color: #ca4a00 !important;
    box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.5) !important;
}

.btn-info {
    color: #ffffff !important;
    background-color: #09b1d3 !important;
    border: 1px solid #09b6d8 !important;
}

.btn-info:hover {
    color: #e6f7ff !important;
    background-color: #0bb7da !important;
}

.btn-danger {
    background-color: rgba(192, 27, 27, 1) !important;
    /* Rojo brillante que combina con el azul */
    border-color: #b92929 !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 1rem;
}

.btn-danger:hover {
    background-color: #a52323 !important;
    /* Un poco más oscuro para hover */
    border-color: #a52323 !important;
}

.btn {
    border-radius: 12px !important;
    ;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    background: #f1f3f5;
    color: #000000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

}

/* Boton de datatable los de exp,copy etx*/
.dt-button {
    border-radius: 12px !important;
    font-size: 1rem !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    /* border: none !important; */
    background: #f1f3f5;
    border: #2980b9 !important;
    color: #2980b9 !important;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    margin-top: 10px;
}

.dt-button:hover {
    color: #2980b9 !important;
    /* color de texto original */
    border-color: #ced4da !important;
    border: #2980b9 !important;
    background: #f1f3f5e0 !important;
    /* color del borde */
    transition: all 0.3s ease !important;
    /* transición suave */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}


/* Botón pequeño adaptable */
.btn-sm {
    display: inline-flex;
    /* permite centrar y adaptarse */
    align-items: center;
    /* centra verticalmente */
    justify-content: center;
    /* centra horizontalmente */
    min-width: 32px;
    /* tamaño mínimo si solo hay ícono */
    height: 32px;
    /* altura fija pequeña */
    padding: 0 8px;
    /* espacio horizontal si hay texto */
    border-radius: 12px;
    color: white;
    border: none;
    font-size: 16px;
    /* tamaño ícono/texto */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button a {
    color: white !important;
    /* ¡Usa !important para anular estilos de Bootstrap o del tema! */
}

/* Todos los botones del grupo sin bordes por defecto */
.btn-group>.btn {
    border-radius: 0 !important;
}

/* Primer botón → esquinas izquierdas redondeadas */
.btn-group>.btn:first-child {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

/* Último botón → esquinas derechas redondeadas */
.btn-group>.btn:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Opcional: unir botones sin huecos */
.btn-group>.btn+.btn {
    margin-left: -1px;
}



.btn-sin-clase {
    background: transparent !important;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;

    display: flex !important;
    /* para acomodar bien el span y el input */
    align-items: center !important;
    /* centra verticalmente */
    justify-content: flex-start !important;
    /* o center si quieres centrar */

    width: 100% !important;
    /* ocupa todo el ancho del td */
    height: 100% !important;
    /* ocupa todo el alto del td */
    box-sizing: border-box !important;
    /* que respete bordes/padding */
    padding: 4px !important;
    /* pequeño espacio interno */
}

.btn-sin-clase input {
    flex: 1 !important;
    /* el input se expande dentro del botón */
    border: none !important;
    background: transparent !important;
    font: inherit;
    color: inherit;
    outline: none !important;
    min-width: 0 !important;
    /* evita desbordes si el td es chico */
}

.form-control:focus {
    border-color: #ced4da;
    /* border-color: #6d6981b9; */
    /* Color al enfocar (ej. morado elegante) */
    box-shadow: 0 0 6px rgba(91, 78, 177, 0.5) !important;
    background-color: #fff;
    /* Fondo limpio al focus */
}

/* Input de búsqueda global de DataTables */
.dataTables_filter input[type="search"],
.dt-search input[type="search"],
.dt-input {
    border-radius: 12px !important;
    border: 1px solid #ced4da !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    background-color: #fdfdfd !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    /* evita que se corte */
    min-width: 200px !important;
    /* aseguras un tamaño decente */
    margin-right: 8px !important;
    /* lo separas del borde */
    margin-bottom: 3px;
}

/* Efecto al hacer focus */
.dataTables_filter input[type="search"]:focus,
.dt-search input[type="search"]:focus,
.dt-input:focus {
    border-color: #ced4da;
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5) !important;
    background-color: #fff;
}


.dt-search label {
    /* color: #424147; */
    color: #2C3E50;
    font-weight: 500;
    /* seminegrita para mejor legibilidad */
    /* font-size: 0.95rem; */
    font-size: 15px;
    /* margin-bottom: 0.3rem; */
    margin-bottom: 0.3rem;
    /* o el valor que prefieras */
    display: block;
    transition: color 0.3s ease;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #ced4da;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #fdfdfd;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}



/* Aplica a cualquier input file con .form-control */
input[type="file"].form-control {
    border-radius: 12px;
    overflow: hidden;
    /* recorta lo que sobresale */
    cursor: pointer;
}

/* El botón de seleccionar archivo (Chrome, Edge, Opera) */
input[type="file"].form-control::-webkit-file-upload-button {
    border-right: 1px solid #afb6bd;
    /* línea divisoria */
    margin-right: 8px;
    /* separa un poquito */
    border: none;
    border-radius: 12px 0 0 12px;
    /* mismo radio que el input */
    background: #f8f9fa;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Hover sobre el botón */
input[type="file"].form-control::-webkit-file-upload-button:hover {
    background: #e9ecef;
}

/* Focus del input file */
input[type="file"].form-control:focus {
    border-color: #6d6981b9;
    box-shadow: 0 0 6px rgba(91, 78, 177, 0.5);
    outline: none;
}

.input-sin-borde {
    border: none;
    /* quita el borde */
    outline: none;
    /* quita el contorno al enfocar */
    background: transparent;
    /* fondo transparente */
}

.input-sin-borde-izquierda {
    border: none;
    /* Sin borde */
    outline: none;
    /* Sin contorno al enfocar */
    background: transparent;
    /* Fondo transparente */
    width: 60%;
    /* Ancho del input */
    margin-left: 27px;
    /* Separación a la izquierda */
    float: left;
    /* Alinear a la izquierda */
    text-align: left;
    /* Texto alineado a la izquierda */
    color: #000;
    /* Color del texto */
    font-size: 16px;
    /* Tamaño del texto */
}

span[hidden],
input[hidden] {
    display: none;
}

input[type="hidden"] {
    display: none;
    /* No ocupan espacio */
}

.contenedor {
    display: inline-block;
    /* hace que el span pueda tener ancho y alto */
    width: 100%;
    /* opcional: que ocupe todo el espacio disponible */
}

.contenedor input {
    width: 100%;
    /* el input ocupa todo el ancho del span */
    box-sizing: border-box;
    /* incluye padding y borde dentro del ancho */
}

.oculto-sin-espacio {
    display: none;
}

.w10 {
    width: 10px;
}

.w15 {
    width: 15px;
}

.w20 {
    width: 20px;
}

.w30 {
    width: 30px;
}

.w40 {
    width: 40px;
}

.w50 {
    width: 50px;
}

.w70 {
    width: 70px;
}

.w80 {
    width: 80px;
}

.w90 {
    width: 90px;
}

.w100 {
    width: 100px;
}

.s11 {
    font-size: 11px;
}

.centrado {
    display: flex;
    /* Activa flexbox */
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */
    /* height: 100%; */
    width: 100%;
    /* Ocupa todo el alto del td */
    text-align: center;
    /* Por si hay texto */
}

/* Contenedor del select2 multiple */
.select2-container--default .select2-selection--multiple,
.select2-selection--single {

    border-radius: 12px !important;
    border: 1px solid #ced4da !important;
    background-color: #fdfdfd;
    font-size: 12px;
    display: flex !important;
    flex-wrap: wrap !important;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;


}

/* switch */
/* contenedor label arriba + switch */
/* Contenedor */
.switch-container {
    display: flex;
    flex-direction: column;
    /* Label arriba */
    align-items: flex-start;
    /* Alineado a la izquierda */
    gap: 4px;
    /* Separación entre texto y switch */
}

/* Label del switch */
.switch-label {
    /* font-weight: 500;
    font-size: 0.85rem;
    color: #333; */
    /* color: #424147; */
    color: #2C3E50;
    font-weight: 500;
    /* seminegrita para mejor legibilidad */
    /* font-size: 0.95rem; */
    font-size: 15px;
    /* margin-bottom: 0.3rem; */
    margin-bottom: 0.3rem;
    margin-top: 5px;
    /* o el valor que prefieras */
    ;
    display: block;
    transition: color 0.3s ease;
}



/* Switch base */
.switch-zt {
    appearance: none;
    /* Oculta checkbox nativo */
    width: 45px;
    /* ancho */
    height: 22px;
    /* alto */
    background-color: #b8b6b6d5;
    /* color inactivo */
    border-radius: 22px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.25s ease;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.12);
}

/* Círculo */
.switch-zt::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Estado activado */
.switch-zt:checked {
    background-color: #2980b9;
    /* verde activo */
}

.switch-zt:checked:disabled {
    background-color: #2980b9;
    /* conserva el azul */
    opacity: 0.6;
    /* se nota que está bloqueado */
}

.switch-zt:checked:disabled::before {
    background-color: #ffffff;
    /* círculo más claro */
}

/* Movimiento del círculo */
.switch-zt:checked::before {
    transform: translateX(23px);
}


/* Estado deshabilitado */
.switch-zt:disabled {
    background-color: #d6d5d5c5;
    /* gris claro */
    cursor: not-allowed;
    /* icono de prohibido */
    opacity: 0.7;
    /* apariencia apagada */
}



/* centrar columnas */
.row.g-3>[class*="col-"] {
    display: flex;
    justify-content: center;
}

/* responsivo aún más pequeño */
@media (max-width: 576px) {
    .switch {
        width: 40px;
        height: 20px;
    }

    .slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }

    .switch input:checked+.slider:before {
        transform: translateX(20px);
    }

    .switch-label {
        font-size: 0.8rem;
    }
}

/* Fondo rojo cuando está apagado */
/*  */

.switch input:checked+.slider {
    background-color: #2980b9;
    /* verde al activarse */
}

.switch input:disabled+.slider {
    background-color: #2980b9;
    /* Azul petróleo */
    opacity: 0.6;
    cursor: not-allowed;
}

.switch input:disabled:not(:checked)+.slider {
    background-color: #95a5a6;
    opacity: 0.6;
    cursor: not-allowed;
}

/*  Cuando está disabled y apagado (no checked) */


/* Estado normal (apagado y activo) */
.switch input:not(:checked):not(:disabled)+.slider {
    background-color: #95a5a6;
}

/* .select2-selection--single {
    border-radius: 12px !important;
    border: 1px solid #ced4da !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    background-color: #fdfdfd !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
  
} */

/* 
.select2-selection.select2-selection--single {
    border-radius: 12px !important;
    border: 1px solid #ced4da !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    background-color: #fdfdfd !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    min-height: 38px !important;
} */


/* .select2-dropdown--above {
    margin-bottom: 4px;
    margin-top: 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
} */

.icon-whatsapp {
    color: #25D366;
    /* Verde WhatsApp */
}

/*Clases para campos requeridos se marquen en rojo*/
/* ESTILO DEL ASTERISCO - Solo se activa si el SPAN está visible/no tiene 'display: none' */
.requerido {
    color: #e63946;
    margin-left: 4px;
    font-weight: bold;
}

/* Clase que pinta el borde rojo */
.input-error {
    border: 1px solid #e63946 !important;
    box-shadow: 0 0 4px rgba(230, 57, 70, 0.4);
}

/* ESTILO DE ERROR DEL INPUT - SOLO se activa si es :required Y está :invalid (vacío) */
input:required:invalid,
textarea:required:invalid,
select:required:invalid {
    border: 1px solid #e63946 !important;
    box-shadow: 0 0 4px rgba(230, 57, 70, 0.4);
}

/* MENSAJE DE ERROR - SOLO se muestra si el input es requerido e inválido */
.mensaje-obligatorio {
    font-size: 12px;
    color: #e63946;
    margin-top: 0px;
    margin-bottom: 4px;
    /* Opcional: añade un poco de espacio debajo si hay más elementos */
    display: none;
}

input:required:invalid+.mensaje-obligatorio,
textarea:required:invalid+.mensaje-obligatorio,
select:required:invalid+.mensaje-obligatorio {
    display: block;
}

label.obligatorio::after {
    content: '*';
    color: #e63946;
    margin-left: 4px;
    font-weight: bold;
}


/* Este selector dice: Si el input-group CONTIENE un input:required:invalid,
   entonces muestra el hermano adyacente (.mensaje-obligatorio). */
.input-group:has(input:required:invalid)+.mensaje-obligatorio {
    display: block;
}

/* 3. Borde rojo para el input (opcional, si no lo has definido para :invalid en general) */
#cBarras:required:invalid {
    border: 1px solid #e63946 !important;
    box-shadow: 0 0 4px rgba(230, 57, 70, 0.4);
}


.input-group {
    margin-bottom: 0 !important;
    display: flex;
    align-items: stretch;
    border-radius: 12px !important;
    margin-left: 0px;
}

/* Quita separación entre input y botón */
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Evita que el input hidden de Flatpickr afecte el layout */
.input-group input[type="hidden"],
.input-group .flatpickr-input[type="hidden"],
.input-group input.flatpickr-input[hidden],
.input-group input.flatpickr-input:not([type]),
.input-group .flatpickr-hidden {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    visibility: hidden !important;
    position: absolute !important;
}

/* .input-group > input.form-control:not([type="hidden"]),
.input-group > .form-control:not(.flatpickr-input[hidden]) {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
} */

/* Si Flatpickr mete un input hidden al inicio, ignóralo visualmente */
.input-group>input[type="hidden"]:first-child+.form-control {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}


.input-group .btn {
    border-radius: 0;
    border-left: 0;

}



.input-group .btn:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}



.input-group span+input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 0 !important;
}

.input-group .btn {
    border-radius: 0 !important;
    /* reset general */
}

.input-group input:last-child {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* Ajuste visual del botón */
.input-group .btn {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #2471a3;
    padding: 0.5rem 0.75rem;
}

.input-group .btn i,
.input-group-text i,
.input-group-addon i {
    font-size: 14px;
    /* mismo tamaño exacto */
    line-height: 1;
    /* elimina espacios extra arriba/abajo */
}

/* span Caracteristicas input-group-text */
.input-group .btn,
.input-group-addon,
.input-group-text {
    border-radius: 12px;
    background-color: #f8f9fa;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    /* border-radius: 12px 0 0 12px; */
    /* color base */
    border-color: #ced4da;
    /* gris base */
    color: #2471a3;
    margin-bottom: 0px;
    /* color del ícono */
    /* mismo que tu input */
}

/* cuando un input va seguido de un botón */
.input-group .form-control+.btn {
    margin-left: -1px;
    /* solapa 1px */
    border-left: none;
    /* elimina borde doble */
}

/* Ajuste opcional para que no sobresalga el borde */
.input-group .form-control,
.input-group .btn {
    border: 1px solid #ced4da !important;

}

.input-group:focus-within .input-group-text,
.input-group-addon:focus {
    background-color: #f8f9fa;
    /* evita el cambio al verde */
    border-color: #ced4da;
    color: #2471a3;
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5) !important;
}

/* Cuando el select ya tiene un valor válido */
.form-select:valid {
    border-color: #ced4da;
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5) !important;
    background-color: #fff;
    /* fondo suave */
}

.form-select:focus:invalid {
    border-color: #d1d1d1 !important;
    /* gris suave */
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5) !important;
}

.form-select option::content .form-select option:checked {
    background-color: #6a5acd !important;
    /* morado */
    color: #fff;
}

.form-select:focus {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    /* Morado elegante */
    border-color: #ced4da;
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5) !important;
    background-color: #fff;
}

.form-control:focus {
    /* Morado elegante */
    border-color: #ced4da;
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5) !important;
    background-color: #fff;
}

.form-wrapper {
    width: 50%;
    margin: 0 auto;
}


/* Estilo general de los labels */
form label,
.form-label {
    /* color: #424147; */
    color: #2C3E50;
    font-weight: 500;
    /* seminegrita para mejor legibilidad */
    /* font-size: 0.95rem; */
    font-size: 15px;
    /* margin-bottom: 0.3rem; */
    margin-bottom: 0.3rem;
    margin-top: 5px;
    /* o el valor que prefieras */
    ;
    display: block;
    transition: color 0.3s ease;
}

/* Autofill / Chrome */
input:-webkit-autofill,
select:-webkit-autofill {
    box-shadow: 0 0 0px 1000px #fdfdfd inset !important;
    /* fondo blanco */
    -webkit-text-fill-color: #000 !important;
    /* texto negro */
}

.nav-item {
    font-size: 14px;
    /* Bordes redondeados */
}

.nav-link {
    color: #73879C;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.nav-link {
    color: #73879C;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    background-color: #f0f0f0;
    color: #2470a3d8;
    text-decoration: none;
}

.nav-link.active {
    /* background-color: #9d9fa193 !important; */
    color: #73879C !important;
    box-shadow: none;
    outline: none;
    margin-bottom: none;
}

/* Estilo para textarea grande y elegante */
.textarea-grande {
    width: 100%;
    min-height: 150px;
    max-height: 400px;
    padding: 10px;
    font-size: 14px;
    border-radius: 12px;
    resize: vertical;
    background-color: #fff;
    outline: none !important;
    /* Borde gris suave */
    border: 1px solid #d1d1d1;
    /* Sombra interna suave */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Sombra externa muy leve para margen visual */
    /* Puedes descomentar si quieres efecto de margen */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.textarea-mediano {
    width: 100%;
    min-height: 75px;
    max-height: 200px;
    padding: 10px;
    font-size: 14px;
    border-radius: 12px;
    resize: vertical;
    background-color: #fff;
    outline: none !important;
    /* Borde gris suave */
    border: 1px solid #d1d1d1;
    /* Sombra interna suave */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Sombra externa muy leve para margen visual */
    /* Puedes descomentar si quieres efecto de margen */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.textarea-chico {
    width: 100%;
    min-height: 50px;
    max-height: 200px;
    padding: 10px;
    font-size: 14px;
    border-radius: 12px;
    resize: vertical;
    background-color: #fff;
    outline: none !important;
    /* Borde gris suave */
    border: 1px solid #d1d1d1;
    /* Sombra interna suave */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Sombra externa muy leve para margen visual */
    /* Puedes descomentar si quieres efecto de margen */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.textarea-mini {
    width: 100%;
    min-height: 25px;
    max-height: 200px;
    padding: 10px;
    font-size: 14px;
    border-radius: 12px;
    resize: vertical;
    background-color: #fff;
    outline: none !important;
    /* Borde gris suave */
    border: 1px solid #d1d1d1;
    /* Sombra interna suave */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Sombra externa muy leve para margen visual */
    /* Puedes descomentar si quieres efecto de margen */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Estilo cuando el textarea está enfocado */
.textarea-grande:focus,
.textarea-mediano:focus {
    border-color: #ced4da !important;
    box-shadow: 0 0 6px rgba(106, 90, 205, 0.5) !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    /* <-- clave */
    -webkit-overflow-scrolling: touch;
}


/* ===============================
Tabla Blanca tipo hoja de libreta
   =============================== */

.table-zt-v {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    color: #000;
    table-layout: fixed;
    font-size: 30px;
    align-items: center !important;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-zt-v td {
    padding: 15px;
    /* Espaciado interno (alto + ancho) */
    font-size: 30px;
    /* Texto más grande */
    height: 50px;
    /* Alto mínimo de cada celda */
    text-align: center;
    /* Centra horizontalmente */
    vertical-align: middle;
    /* Centra verticalmente */

}

.table-zt-v tr:first-child td:last-child {
    border-top-right-radius: 12px;
}

.table-zt-v tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.table-zt-v tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.table-zt-v body {
    display: flex;
    /* centra horizontal */
    align-items: center;
    /* centra vertical */
    min-height: 100vh;
    /* asegura altura de pantalla completa */
    margin: 0;
    /* quita márgenes por defecto */

}

.table-zt-v td {
    padding: 10px 10px;
    vertical-align: middle;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    white-space: nowrap;
}

.table-zt-v td.flex {
    display: flex;
    align-items: center;
    vertical-align: middle !important;
    gap: 4px;
    border: none;
    width: 100%;
    margin-left: 5px;
    font-size: 18px;
    padding: 6px 10px;
    font-weight: bold;
    color: #2C3E50;
    border-radius: 6px;
    background: none !important;
    height: 75px !important;
    vertical-align: middle;


}


.table-zt-v td,
.table-zt-v th {
    vertical-align: middle !important;
}

.table-zt-v td.flex .input-group,
.table-zt-v td.flex select {
    width: 84% !important;
}

.table-zt-v td.flex button {
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: bottom !important;
}


.table-zt-v h4 {
    margin: 0;
    /* quita espacios extra */
    font-size: 16px;
    font-weight: normal;
}

.table-zt-v td:first-child {
    padding: 15px;
    font-size: 18px;
    color: #2C3E50;
    text-align: left !important;
    vertical-align: middle;
    justify-content: flex-start !important;
}

.table-zt-v td:first-child h4 {
    font-weight: bold;
}

.table-zt-v td:last-child {
    text-align: right;
}

/* Total destacado */
.table-zt-v tr:last-child {
    border-top: 2px solid #0e0d0de3;
    border-bottom: none !important;
    /* border-radius: 6px; */
}

/* linia segunda fila */
.table-zt-v tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table-zt-v tr:last-child h4 {
    font-size: 20px;
    font-weight: bold;
}

@media print {
    .table-zt {
        border: 1px solid #000 !important;
        border-radius: 0 !important;
        border-collapse: collapse !important;
        /* junta los bordes al imprimir */
        background-color: #fff !important;
        width: 100% !important;
        font-size: 12pt;
    }

    .table-zt th,
    .table-zt td {
        border: 1px solid #000 !important;
        padding: 6px !important;
        font-size: 12px !important;
    }

    .table-zt th {
        background-color: #f0f0f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .card {
        border: none;
        box-shadow: none;
        margin: 0;
    }

    .card-body {
        padding: 0;
    }

    /* Evitar que la tabla tenga scroll horizontal */
    .table-responsive {
        overflow: visible;
    }

    /* Quitar elementos que no quieres imprimir */
    .no-print {
        display: none;
    }


}

.tableProductOrden td:nth-child(13) {
    display: none !important;
    visibility: collapse;
    /* para asegurar que desaparezca de la tabla */
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

#tableProductOrden th:last-child,
#tableProductOrden td:last-child {
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
    /* evitar salto de línea */
}

#tableProductOrden {
    width: 100% !important;
    table-layout: fixed !important;
}

#tableProductOrden td:last-child {
    width: auto;
    min-width: 0 !important;
}

#posTable th:last-child {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    padding: 14px !important;
    min-width: 40px;

}

/*Clase de tabla para que se pueda cortar texto si trae mucho*/
/* Aplica a todos menos el último */
.table-zt-wrap td:not(:last-child) {
    white-space: normal !important;
    word-wrap: break-word;
    word-break: keep-all;
    max-width: 250px;
}

/* Última celda: estilo diferente */
.table-zt-wrap td:last-child {
    white-space: nowrap !important;
}

/* Título de la celda */
.td-titulo {
    font-size: 30px;
    color: #333;
}

/* ===============================
   Estilo base de la tabla .table-zt Principal
   =============================== */
/* Hover de filas */
.table-zt-hover tbody tr:hover {
    background-color: #b3c4d5af !important;
    /* Fondo gris azulado al pasar el mouse */
    color: #000;
    /* Texto negro */
}

/* Usar especificamente en celdas que lo necesitan*/
.table-zt tbody td:empty::before {
    content: "\00a0";
    /* evita colapso en celdas vacías */
}

.table-zt-danger {
    color: #cc1c1c !important;
    /* Texto rojo fuerte */
}

/* Hover sobre las filas .table-danger */
.table-zt-hover .table-zt-danger:hover {

    background-color: #b11212e5 !important;
    /* Fondo rojo oscuro al hover */
    color: #fff !important;
    /* Texto blanco en hover */
}

/* Texto verde fuerte */
.table-zt-success {
    color: #198754 !important;
    /* Bootstrap success verde */
}

/* Hover sobre las filas .table-zt-success */
.table-zt-hover .table-zt-success:hover {
    background-color: #157347b0 !important;
    /* Verde oscuro en hover */
    color: #fff !important;
    /* Texto blanco en hover */
}

.table-zt-pdv {
    border-spacing: 0;
    border: 1px solid rgba(109, 109, 109, 0.2) !important;
    border-radius: 8px;
    /* border-collapse: collapse !important; */
    border-collapse: separate !important;
    overflow: hidden;
    background-color: #ffffffa8 !important;
    color: #000000;
    width: 100% !important;
    table-layout: auto !important;
    /* text-align: left !important; */
    text-align: left !important;
    /* border: 1px solid #bb0707 !important;  */
    /* border-right: 1px solid rgb(0, 0, 0) !important;
    border-left: 1px solid rgba(109, 109, 109) !important;
    border-bottom: 1px solid rgb(109, 109, 109) !important; */
}

.table-zt-pdv thead th {
    background-color: #2C3E50 !important;
    /* Fondo azul oscuro */
    color: #ffffff;
    /* Texto blanco */
    padding: 10px 15px;
    /* Espaciado interno */
    text-align: left;
    /* Alineación del texto a la izquierda */

}

.table-zt-pdv tbody tr {
    border-bottom: 1px solid rgba(109, 109, 109, 0.11) !important;
    padding: 0 !important;
    /* border-bottom: 1px solid rgba(109, 109, 109, 0.3) !important; */
}

.table-zt-pdv td,
.table-zt-pdv th {
    position: relative;
    border: 1px solid rgba(109, 109, 109, 0.2) !important;
    white-space: nowrap;
    overflow: hidden;
    text-align: left !important;
    padding: 8px;
    vertical-align: middle;
    /*  text-overflow: ellipsis;
  
    width: auto !important; */
}

/* Última columna "Acciones" */
.table-zt-pdv th:last-child {
    position: relative;
    border: 1px solid rgba(109, 109, 109, 0.2) !important;
    white-space: nowrap;
    overflow: hidden;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    gap: 3px;
    /* <- Agrega espacio entre botones */
    min-width: 80px;
    /* <- ajusta el ancho mínimo */
    flex-wrap: nowrap;
    /* evita que los botones salten de línea */
    padding: 8px;

}

.table-zt-pdv td:last-child {
    position: relative;
    border: 1px solid rgba(109, 109, 109, 0.2) !important;
    white-space: nowrap;
    overflow: hidden;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    gap: 3px;
    /* <- Agrega espacio entre botones */
    min-width: 100px;
    /* <- ajusta el ancho mínimo */
    flex-wrap: nowrap;
    /* evita que los botones salten de línea */
    padding: 8px;

    vertical-align: middle;
}


.table-zt-pdv th i {
    font-size: 14px;
    /* más grande */
    line-height: 1;
    /* evita que se “suba” */
    align-items: center;
}

.table-zt-pdv tbody tr {
    border-bottom: 1px solid rgba(109, 109, 109, 0.11);
    transition: background-color 0.3s ease;
}


/* ===============================
   Estilo base de la tabla .table-zt2
   =============================== */
.table-zt {
    font-size: 13px;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid rgba(109, 109, 109, 0.2);
    border-radius: 8px;
    background-color: #ffffffa8;
    color: #000000;
    table-layout: auto;
    text-align: left;
    overflow: hidden;
}



/* ===============================
   Encabezado
   =============================== */
.table-zt thead th {
    background-color: #2C3E50;
    color: #ffffff;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
    /* importante */
    line-height: 1.2;
    /* consistente */
    border: 1px solid rgba(109, 109, 109, 0.2);
    white-space: nowrap;
    display: table-cell;
    /* aseguramos que no se rompa el flujo de la tabla */
}

/* ===============================
   Cuerpo de la tabla
   =============================== */
.table-zt tbody tr {
    border-bottom: 1px solid rgba(109, 109, 109, 0.11);
    transition: background-color 0.3s ease;
}


/* ===============================
   Celdas
   =============================== */
.table-zt td,
.table-zt th {
    padding: 8px 12px;
    vertical-align: middle;
    border: 1px solid rgba(109, 109, 109, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    /* position: relative; */

}

.table-zt th {
    padding: 8px 12px;
    vertical-align: middle;
    border: 1px solid rgba(109, 109, 109, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-align: center !important;
    /* position: relative; */

}


.table-zt th:last-child,
.table-zt td:last-child {
    width: auto;
    min-width: 80px;
    max-width: none;
    white-space: nowrap;
    /* opcional para evitar que el contenido se rompa */
}





/* ===============================
   General Tablas
   =============================== */

/* Links dentro de la tabla */
td a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    color: #5a738e;
}

.table-zt-pdv a {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    color: #5a738e;
}



/* Íconos en encabezados */
th i {
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}


/* ===============================
   Responsive para pantallas pequeñas
   =============================== */


/* Solo afecta a la tabla con id=tableinv */
#tableinv td:nth-child(5) {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    border-collapse: collapse;
}



#tabla .btn {
    border-radius: 8px !important;
}

#tabla_filter {
    display: flex;
    justify-content: flex-end;
    /* derecha */
}


/* Tabla Punto de Venta -Acomoda de 4 productos */
/* #tablaProductos_length {
    display: none;
} */

#tablaProductos.dataTable tbody tr {
    background-color: #fff;
    float: left;
}

#tablaProductos.dataTable tbody td {
    padding: 1px 1px !important;

}




#table_paginate {
    width: 100%;
}

/* body>div.container.body>div.right_col>div>div:nth-child(2)>div>div>div>div:nth-child(1) {
    margin: 10px;
    text-align: center;
} */

#table_length>label {
    display: none;
}

.dt-buttons {
    display: flex !important;
    /* muestra como flex contenedor */
    flex-wrap: nowrap !important;
    /* no dejar que los botones salten de línea */
    align-items: center !important;
    /* centra verticalmente si son de diferentes alturas */
    gap: 8px;
    /* espacio entre botones */
}

#tablaProductos_length {
    display: flex;
    /* coloca elementos en fila */
    align-items: center;
    /* centra verticalmente */
    gap: 8px;
    /* espacio entre label y select */
    padding: 10px 0;
    /* espacio arriba y abajo */
}

#tablaProductos_length label {
    margin: 0;
    /* elimina márgenes predeterminados */
    font-weight: 600;
    /* negrita opcional */
    font-size: 14px;
}

.tablaProductos dt-buttons {
    display: none;
}


div.dataTables_wrapper .dataTables_filter,
div.dataTables_wrapper .dataTables_length {
    display: inline-block;
    margin: 0.5rem 0;
}

/* .dataTables_length select {
    width: auto;

} */

div.dataTables_wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* para que no se encimen en pantallas chicas */
    align-items: center;
}

.cierre {
    position: relative;

}

.cierre2 {
    position: relative;

}


/* Botón estilo outline-dark con hover azul petróleo */
.btn-outline-dark {
    color: #2980b9 !important;
    /* color de texto original */
    border-color: #ced4da !important;
    /* color del borde */
    transition: all 0.3s ease;
    /* transición suave */
}

.btn-outline-primary {
    color: #2980b9 !important;
    border-color: #ced4da !important;
    /* color de texto original */
    /* border-color: #2980b9 !important; */
    border: #2980b9 !important;
    background: #f1f3f5e1;
    /* color del borde */
    transition: all 0.3s ease;
    /* transición suave */
}

.btn-outline-primary:hover,
.btn-outline-dark:hover,
.dt-button:hover {
    background-color: #2471a3 !important;
    /* 🔹 azul petróleo */
    color: #ced4da !important;
    /* texto blanco al pasar */

    /* border-color: #0d588a !important; */
    /* borde igual al fondo */
    border-color: #ced4da !important;

    /* background-color: #fff; */
}

.btn-default {
    color: #333 !important;
    background-color: #fff !important;
    border-color: #ccc !important;
}

.btn-default:hover {
    background-color: #e6e6e6 !important;
    border-color: #adadad !important;
}

/* PUNTO DE VENTAS Contenedor del total y subtotales */
#totaldiv {
    /* max-width: 400px;
                                margin: 10px auto; */
    padding: 10px;
    border-radius: 12px;
    size: 13.5px !important;
    /* background-color: #f1f3f5; */
    /* Fondo gris suave */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */

}


/* Tabla de subtotales */
#totaltbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    /* Espacio entre filas */
}

/* Filas de subtotal / descuentos */
#totaltbl tr {
    background-color: #f1f3f5;
    border-radius: 8px;
    color: #5b6b7cff;
    font-size: 1rem;
}

#totaltbl tr td {
    padding: 10px 12px;
    font-weight: 500;
    color: #5b6b7cff;
}

#totaltbl input.totalprecio,
#totaltbl input[name="descuentoprodi"] {
    background-color: #73879C;
    /* Color de fondo gris */
    color: white;
    /* Color de texto blanco */
    border: none;
    /* Eliminar el borde */
    text-align: right;
    box-shadow: none !important;
}

/* Enlaces dentro de los subtotales */
/* #totaltbl tr td a {
    color: #5b6b7cff;
    text-decoration: none;
    font-weight: 500;

} */


#totaltbl tr td a:hover {
    color: #73879C;
    text-decoration: underline;
}

/* Inputs de subtotales */
#totaltbl input.totalcantidad,
#totaltbl input.totaliva,
#totaltbl input.totalprecio,
#totaltbl input[name="descuentoprodi"] {
    width: 100%;
    text-align: right;
    border: none;
    background-color: transparent;
    color: #73879C;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: none !important;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
}

/* Inputs ocultos */
#totaltbl input[type="hidden"] {
    display: none;
}

/* Texto alineado a la derecha */
.text-end {
    text-align: right;
}


/* Responsive: ajusta tamaños en móviles */
@media (max-width: 480px) {
    #totaldiv {
        max-width: 100%;
        padding: 8px;
    }

    #totaltbl tr td {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    #totaltbl input.totalcantidad,
    #totaltbl input.totalprecio,
    #totaltbl input[name="descuentoprodi"] {
        font-size: 0.9rem;
    }
}

/* .botonera {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    /* 4 columnas por fila /
    gap: 15px;
} */
.botonera {
    display: grid;
    grid-template-columns: repeat(6, minmax(100px, 1fr));
    /* 6 columnas con un ancho mínimo */
    gap: 15px;
}

/* Tablet (máx 992px) → 3 botones por fila */
@media (max-width: 992px) {
    .botonera {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Celular (máx 576px) → 2 botones por fila */
@media (max-width: 576px) {
    .botonera {
        grid-template-columns: repeat(2, 1fr);
    }
}

.botonera .btn {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: #f1f3f5;
    color: #ffffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 8px; */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.botonera .btn i {
    padding: 5px;
    font-size: 16px;

}

.botonera .btn {
    padding: 5px;
    font-size: 16px;
    justify-content: center;
    justify-items: center;

}

.botonera .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.botonera .btn.accion {
    background: #007bff;
    color: white;
}

.botonera .btn.peligro {
    background: #dc3545;
    color: white;
}

.botonera .btn.pagar {
    background: #28a745;
    color: white;
    font-size: 18px;
    font-weight: bold;
    grid-column: span 2;

    /* ⬅ ocupa 2 columnas */
}



.botonera .btn.cerrar {
    background: #474c52ff;
    grid-column: span 2;
    /* ⬅ ocupa 2 columnas */
}

.botonera .btn.porcentaje {
    background: #e6b106ff;

    /* ⬅ ocupa 2 columnas */
}

.botonera .btn.otros {
    background: #6c757d;

    /* ⬅ ocupa 2 columnas */
}

.estatus-activo {
    color: #28a745;
    /* Verde personalizado */
    font-weight: bold;
}

.estatus-cancelado {
    color: #b6202f;
    /* Rojo personalizado */
    font-weight: bold;
}

.estatus-nota {
    color: #e0a800;
    /* Amarillo dorado */
    font-weight: bold;
}

.estatus-desconocido {
    color: #55626d;
    /* Gris */
    font-weight: bold;
}

.texto-blanco {
    color: white;
    font-weight: bold;
}

.input-sin-estilo {
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
    align-items: flex-end !important;
    flex: auto;
}

.texto-azulzt {
    color: #73879C;
    font-weight: bold;
}

.finalizado {
    color: green;
    font-weight: bold;
}

.aprobado {
    color: #01be2d;
    font-weight: bold;
}

.firmado {
    color: #0670b8;
    font-weight: bold;
}

.iniciado {
    color: rgb(25, 25, 175);
    font-weight: bold;
}

.pendiente {
    color: orange;
    font-weight: bold;
}

.guardado {
    color: #2781b9;
}

.cancelado,
.rechazado {
    color: red;
    font-weight: bold;
}

/* Clase del visor de documentos para contraer pestalla*/
.contarrow {
    width: 40px;
    height: 35px;
    border-radius: 50%;
    /* box-shadow: 0px 0px 2px 4px rgba(0, 0, 0, 0.2); */
    margin-bottom: 15px;
    transition: all 1s;
}

.contarrow:hover {
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
    transform: scale(1.2);
    transition: all 1s;
}

.desaparecer {
    transform: translateY(-100%);
    transition: all 1s;
    /* opacity: 0; */
}

.aparecer {
    transform: translateY(0);
    transition: all 1s;
    /* opacity: 1; */
}


.imgedit {
    width: 45px;
    height: 45px;

}

.imgedit:hover {
    transform: scaleX(-1);
}

.formPoliza {
    display: flex;
    flex-direction: row;
    padding: 0;
    max-height: 80px;
    height: 45px;
    width: 120px;
}

.spsummary {
    position: absolute;
    right: 10px;
    width: 70%;
    font-size: 1rem;
    display: inline;
    text-align: right;
}

.spsummtitle {
    width: 30%;
    font-size: 13px;
    display: inline;
    float: left;
}

.fontc tr td {
    font-size: 10pt;
}

.thead-dark th {
    font-size: 11pt;
}

.fontc tr td .smalltxt {
    font-size: 8pt;
    color: #595959;
}

.blk {
    margin: 0;
    display: block;
    align-items: center;
    justify-items: center;
    position: relative;
}

.tabdesgloce {
    /* padding-left:50px; 
            width:90%; 
            margin-left: 5%;  */
    border-radius: 10px;
    font-family: "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
    font-size: 8px;
    /* background: #E3E3E3; */
    background: none;
    opacity: 1;
    /* z-index: 999; */
}

.tabdesgloce tr td {
    font-size: 11px;
}

.tabdesgloce thead tr th {
    /* 2C497C */
    background-color: #FFF;
    color: #2A2A2A;
    text-align: center;
}

.tabdesgloce thead tr th span {
    font-size: 11px;
}

/* *{
            font-family: "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif;
            font-size: 13px;
        } */
.condesg {
    width: 90%;
    margin-left: 10%;
    /* opacity: 0; */
    background: #FFF;
}

.condesg thead,
.condesg tbody {
    background: #FFF;
    /* opacity: 0; */
}

.tdmon {
    text-align: right;
}

.tdcent {
    text-align: center;
}

.contenedortab {
    overflow: auto;
    position: relative;
    margin-top: 15px;
}

.marbt5 {
    margin: 0px 5px 5px 0px;
}

.cwrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0px;
    grid-auto-rows: auto;
}

.input80 {
    grid-column: 1 / 4;
    grid-row: 1;
}

.input20 {
    grid-column: 4;
    grid-row: 1;
}

.abs {
    position: relative;
    display: inline;
    float: right;
}

.btndownload img {
    /* width: 100%;
        height: 100%; */
    object-fit: fill;
}

.btndownload {
    position: relative;
    width: 50px;
    height: 50px;
    align-items: center;
    padding: 0;
}

.btndownload::after {
    content: url('https://img.icons8.com/fluency/20/000000/circled-down-2.png');
    position: absolute;
    right: 0;
    bottom: -20px;
}



.up {
    transform: rotate(0deg);
    transition: all 1s;
}

.down {
    transform: rotate(180deg);
    transition: all 1s;
}

.contarrow:hover {
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, 0.2);
    transform: scale(1.2);
    transition: all 1s;
}

.contarrow {
    width: 40px;
    height: 35px;
    border-radius: 50%;
    /* box-shadow: 0px 0px 2px 4px rgba(0, 0, 0, 0.2); */
    margin-bottom: 15px;
    transition: all 1s;
}

.desaparecer {
    transform: translateY(-100%);
    transition: all 1s;
    /* opacity: 0; */
}

.aparecer {
    transform: translateY(0);
    transition: all 1s;
    /* opacity: 1; */
}

.moveup {
    transition: all 1s;
}

.movedown {
    transform: translateY(0);
    transition: all 1s;
}

/* border-top: 2px solid #00B908; */

#rowofhidden {
    height: auto;
    border-top: 2px solid #B90000;
    transition: all 1s;
    overflow: visible;
    position: relative;
    z-index: 99;
}

.descargarcfdi {
    width: 90%;
    margin-left: 10%;
}

.descargarcfdi tr td {
    background-color: darkred;
    color: #fff;
    font-weight: bold;
}

.relCobro {
    position: relative;
    /* right: 10px; */
    display: inline-block;
}

.relCobro:hover {
    color: #005A91;
    transform: translateX(-5px);
    transition: all 1s;
}

td.highlight {
    font-weight: bold;
    color: white;
    /*color: #d70e0e;*/
    background-color: red;
}

#nESol_FolioInt {
    border: none !important;
    box-shadow: none !important;
    /* también quita el resplandor al enfocar */
}


/* Punto de Ventas Cabecera */
.header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    /* espacio entre items */
    padding: 10px 15px;
    font-size: 18px;
    flex-wrap: wrap;
}

.header-info .item {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #34495e;
    /* gris azulado elegante */
}

.header-info i {
    margin-right: 6px;
    color: #2980b9;
    /* azul Bootstrap */
    font-size: 18px;
}

/* Escritorio normal */
@media screen and (min-width: 980px) {
    body {
        zoom: 100%;
        /* 100% */
    }
}


@media screen and (min-width: 980px) {
    #table_paginate {
        zoom: .90;
    }
}


@media screen and (max-width: 979px)
/* Tablet */
    {
    body {
        zoom: .45;
    }
}

@media screen and (max-width: 500px)
/* Mobile */
    {
    body {
        zoom: .40;
    }
}


@media screen and (min-width: 980px) {
    #table_paginate {
        zoom: .90;
    }
}

@media screen and (min-width: 980px) {
    body {
        zoom: .90;
    }
}

/* En tablets como 912px */
@media (max-width: 1199px) and (min-width: 768px) {
    .modal-dialog {
        max-width: 85% !important;
        /* casi toda la pantalla */
    }
}

@media (max-width: 768px) {

    .table-zt th,
    .table-zt td {
        padding: 6px 8px;
    }

    .table-zt th:last-child,
    .table-zt td:last-child {
        min-width: 80px;
        gap: 2px;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95% !important;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95% !important;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .table-zt {
        font-size: 12px;
        width: 80%;
        /* reduce tamaño del texto */
    }

    .table-zt th,
    .table-zt td {
        padding: 4px 6px;
        /* reduce espacio entre celdas */
    }
}


/* Folio en Carta Porte */

.folio-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    /* equivalente a SIZE=6 */
    font-weight: 600;
    color: #333;
}

#nESol_FolioInt {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid #d3ceceff;
}


/*Estilo Calculadora*/

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    border-bottom: 2px solid #000;
    padding-bottom: 6px;
    width: 100%;
    /* Ensures the black line spans the full width */
}

.actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #333;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.actions button:hover {
    color: #007BFF;
}

.actions button.clear,
.actions button.equals,
.actions button.backspace {
    background: inherit;
    color: inherit;
}

.btn {
    background: inherit;
    color: inherit;
}

/* Calculator Modal */
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.calculator {
    background-color: #f9f9f9ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 300px;
    border: 1px solid #ddd;
    position: relative;
}

.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calculator-logo {
    width: 68px;
    height: 56px;
    object-fit: contain;
}

.close-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background: #cc0000;
}

#display {
    width: 100%;
    height: 50px;
    font-size: 24px;
    text-align: right;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.operator {
    background-color: #4CAF50;
    color: white;
}

.operator:hover {
    background-color: #45a049;
    color: white !important;
}

.clear {
    background-color: #ff4444;
    color: white;
}

.clear:hover {
    background-color: #cc0000;
    color: white;
}

.equals {
    background-color: #2196F3;
    color: white;
    grid-row: span 2;
}

.equals:hover {
    background-color: #1976D2;
    color: white;
}

.zero {
    grid-column: span 2;
}

#calculatorToggle,
#postitToggle {
    /* padding: 10px; */
    color: #333;
    /* font-size: 18px; */
}

#calculatorToggle:hover,
#postitToggle:hover {
    color: #4CAF50;
}

/* Responsive design */
@media (max-width: 400px) {
    .calculator {
        width: 90%;
        max-width: 250px;
    }

    /* .btn {
      padding: 10px;
      font-size: 16px;
    } */

    .calculator-logo {
        width: 25px;
        height: 25px;
    }
}

.btn.backspace {
    background-color: #ffc107;
    color: #fff;
}

.btn.backspace:hover {
    background-color: #e0a800;
}

/* ----   Swal     ----*/
/* Fondo del modal */
.swal2-popup {
    background: #f9fafb !important;
    /* fondo claro */
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    padding: 25px !important;
}


/* Botón principal */
.swal2-confirm {
    border-radius: 12px !important;
    background-color: #3085d6 !important;
}

/* Botón cancelar */
.swal2-cancel {

    border-radius: 12px !important;
    background-color: #d33 !important;

}

/* Íconos */
.swal2-icon {
    border-width: 5px !important;
}

/* Animación suave */
.swal2-show {
    animation: fadeInScale 0.3s ease-in-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* dropzone-zt.css */

.dropzone-zt:hover {
    border-color: #ced4da;
    /* border-color: #6d6981b9; */
    /* Color al enfocar (ej. morado elegante) */
    box-shadow: 0 0 6px rgba(91, 78, 177, 0.5) !important;
    background-color: #fff;
    /* Fondo limpio al focus */
}

/* .grupo-almacen td {
    padding-left: 0.5rem;
    padding-top: 0.5rem;
    font-weight: 700;
    color: #1f2d3d;
    border-top: 2px solid #dee2e6;
    background: linear-gradient(90deg, #f8f9fa, #e9ecef);
}

.grupo-piso td {
    padding-left: 3rem;
    font-weight: 600;
    color: #2b2b2b;
    background-color: #ffffff;
    border-top: 1px dashed #dee2e6;
} */
.grupo-almacen td {
    text-align: left !important;
    vertical-align: bottom !important;
    padding-left: 0.5rem;
    padding-top: 0.5rem;
    font-weight: 700;
    color: #1f2d3d;
    border-top: 2px solid #dee2e6;
    background: linear-gradient(90deg, #f8f9fa, #e9ecef);
}

.grupo-piso td {
    text-align: left !important;
    vertical-align: bottom !important;
    padding-left: 3rem;
    font-weight: 600;
    color: #2b2b2b;
    background-color: #ffffff;
    border-top: 1px dashed #dee2e6;
}

/* Cambiar color de las flechas del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(128, 128, 128, 0.5);
    /* gris semi-transparente */
    border-radius: 50%;
    /* opcional, redondea el fondo */
}


 .text-primary {
    color: #4d637aff !important;
  }