: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;
}

.card-fondo {
    background: rgba(115, 111, 111, 0.109);
    /* sombra suave */
    font-family: var(--font-family) !important;
    border-radius: 16px;
    padding: 20px;
    width: 100%;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.08);

    border: 1px solid (115, 111, 111, 0.109);
}

/* 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.btn-primary.form-control {
    background-color: #2980b9 !important;
    border-color: #2980b9 !important;
    border-radius: 12px !important;
    /* padding: 12px 24px; */
    font-size: 1rem;
    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-whatsapp {
    background-color: #25D366 !important;
    /* Verde WhatsApp */
    border-color: #25D366 !important;
    border-radius: 12px !important;
    font-size: 1rem;
    color: #ffffff !important;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d !important;
    /* Un poquito más oscuro */
    border-color: #1ebe5d !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;
}

div.dataTables_wrapper .dt-search,
div.dataTables_wrapper .dataTables_filter {
    align-items: center !important;
}

div.dataTables_wrapper .dt-search label,
div.dataTables_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

div.dataTables_wrapper .dt-search input,
div.dataTables_wrapper .dataTables_filter input {
    margin: 0 !important;
}

.form-control,
.form-select {
    border-radius: 12px;
    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;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f1f1f1 !important;
    color: #9aa0a6 !important;
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.8;
}

span .select2-selection select2-selection--single,
.select2-container--disabled .select2-selection {
    background-color: #ffffff !important;
    color: #9aa0a6 !important;
    border-color: #e0e0e0 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.form-select+button {
    border-radius: 12px !important;
}



/* 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 {
    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;

}

.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 14.8px !important;
    margin-top: 8px !important;
    margin-left: 10px !important;
    padding: 10;
    max-width: 100%;
    resize: none;
    height: 25px !important;

    vertical-align: bottom;
    overflow: hidden;
    word-break: keep-all
}

.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;
    width: 100% !important;
}

/* Select2 normal */
.select2-container--default .select2-selection--single {
    border-radius: 12px !important;
}

/* Pero si está dentro de input-group, ajusta bordes */
.input-group .select2-container--default .select2-selection--single {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-container--default .select2-selection--single {
    border-radius: 12px !important;
}

.input-group .select2-container--default .select2-selection--single {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px;
    min-height: 26px;
    margin-bottom: 0 !important;
    padding: 4px 14px 4px 10px !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f7f9fc, #edf2f7) !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    box-shadow: 0 1px 2px rgba(51, 65, 85, 0.08) !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    border-color: #b9c6d6 !important;
    background: linear-gradient(180deg, #f2f5f9, #e6edf5) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    width: 18px;
    height: 18px;
    margin-left: -2px !important;
    margin-right: 12px !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    border-radius: 50%;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: rgba(100, 116, 139, 0.14) !important;
    color: #334155 !important;
}


/* Redondear el campo visual del Select2 */
.select2-container--default .select2-selection--single {
    border-radius: 12px !important;
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    height: 38px;
    /* opcional: ajusta la altura */
    display: flex;
    align-items: center;
    /* centra verticalmente el texto */
}


/* 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;
}


.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-xl {
    width: 100%;
    min-height: 220px;
    /* igual al mapa */
    max-height: 300px;
    /* para que no se dispare */
    font-size: 14px;
    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-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 */
   }

#table_productos tbody tr.tabla-zt-seleccionP:not(.tabla-zt-sinexistencia-seleccionada) > td,
#table_productos tbody tr.fila-seleccionada:not(.tabla-zt-sinexistencia-seleccionada) > td {
    background-color: #e8f7ee !important;
    color: inherit !important;
}

#table_productos tbody tr.tabla-zt-seleccionP:hover:not(.tabla-zt-sinexistencia-seleccionada) > td,
#table_productos tbody tr.fila-seleccionada:hover:not(.tabla-zt-sinexistencia-seleccionada) > td {
    background-color: #ddf1e5 !important;
}

#table_productos tbody tr.tabla-zt-sinexistencia-seleccionada > td {
    background-color: #fde9e9 !important;
    color: inherit !important;
}

#table_productos tbody tr.tabla-zt-sinexistencia-seleccionada:hover > td {
    background-color: #fbdcdc !important;
}

#table_productos tbody tr.tabla-zt-seleccionP .btn,
#table_productos tbody tr.fila-seleccionada .btn,
#table_productos tbody tr.tabla-zt-sinexistencia-seleccionada .btn {
    color: unset !important;
}

#table_productos tbody tr.tabla-zt-seleccionP .btn i,
#table_productos tbody tr.fila-seleccionada .btn i,
#table_productos tbody tr.tabla-zt-sinexistencia-seleccionada .btn i {
    color: #fff !important;
}

#table_productos thead th.sorting,
#table_productos thead th.sorting_asc,
#table_productos thead th.sorting_desc,
#table_productos thead th.dt-orderable-asc,
#table_productos thead th.dt-orderable-desc,
#table_productos thead th.dt-ordering-asc,
#table_productos thead th.dt-ordering-desc {
    position: relative;
    padding-right: 0.75rem !important;
    cursor: pointer;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
}

#table_productos thead th .dt-column-order,
#table_productos thead th .dt-column-order::before,
#table_productos thead th .dt-column-order::after,
#table_productos thead th.sorting::before,
#table_productos thead th.sorting::after,
#table_productos thead th.sorting_asc::before,
#table_productos thead th.sorting_asc::after,
#table_productos thead th.sorting_desc::before,
#table_productos thead th.sorting_desc::after,
#table_productos thead th.dt-orderable-asc::before,
#table_productos thead th.dt-orderable-asc::after,
#table_productos thead th.dt-orderable-desc::before,
#table_productos thead th.dt-orderable-desc::after,
#table_productos thead th.dt-ordering-asc::before,
#table_productos thead th.dt-ordering-asc::after,
#table_productos thead th.dt-ordering-desc::before,
#table_productos thead th.dt-ordering-desc::after {
    display: none !important;
    content: none !important;
}

#table_productos thead .dt-order-btn-productos {
    color: #334155;
    text-decoration: none;
    vertical-align: middle;
    box-shadow: none !important;
    min-width: 1.45rem;
    text-align: center;
    position: relative;
    border-radius: 999px;
    background-color: #eef2f7;
    padding: 0.12rem 0.35rem !important;
    line-height: 1.1;
}

#table_productos thead .dt-order-btn-productos:hover,
#table_productos thead .dt-order-btn-productos:focus {
    color: #1d4ed8;
    background-color: #dbeafe;
    box-shadow: none !important;
}

#table_productos thead .dt-order-btn-productos.is-active {
    color: #ffffff;
    background-color: #2563eb;
}

#table_productos thead .dt-order-btn-productos i {
    display: none;
}

#table_productos thead .dt-order-btn-productos::before {
    content: "⇅";
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
}

#table_productos thead .dt-order-btn-productos[data-order="asc"]::before {
    content: "▲";
}

#table_productos thead .dt-order-btn-productos[data-order="desc"]::before {
    content: "▼";
}

/* 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;
}



/* Contenedor de los botones (copy, excel, pdf, print) */
/* .dt-buttons {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px;
    width: 50%;
    margin-bottom: 10px;
} */

.dt-length label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.dt-length select {
    font-size: 13px !important;
    border-radius: 12px;
    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;

}

.dt-search {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 1 !important;
    width: auto;
}

.dt-input {
    min-width: 20px !important;
    font-size: 13px !important;
    border-radius: 12px;
    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;
}

.dt-input {
    transition: background-color 0.3s ease;
}

/* #tablaProductos_length {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

#tablaProductos_length label {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
} */

.tablaProductos dt-buttons {
    display: none;
}

#tablaCostos th,
#tablaCostos td {
    padding: 4px 6px;
    /* Reduce espacio interno */
    font-size: 12px;
    /* Letra más pequeña */
    white-space: nowrap;
    /* Evita saltos de línea */
}

#tablaCostos th {
    font-weight: 600;
}


.dataTables_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.75rem;
    width: 100%;
}

div.dataTables_wrapper>.dt-buttons,
div.dataTables_wrapper>div.dt-buttons,
div.dataTables_wrapper>.dataTables_length,
div.dataTables_wrapper>.dataTables_filter,
div.dataTables_wrapper>.dataTables_info,
div.dataTables_wrapper>.dataTables_paginate,
div.dataTables_wrapper>.dataTables_scroll,
div.dataTables_wrapper>.dataTables_scrollHead,
div.dataTables_wrapper>.dataTables_scrollBody,
div.dataTables_wrapper>.dataTables_scrollFoot,
div.dataTables_wrapper>.dataTables_processing,
div.dataTables_wrapper>table {
    box-sizing: border-box;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter,
div.dataTables_wrapper .dt-buttons,
div.dataTables_wrapper div.dt-buttons {
    margin: 0;
}

div.dataTables_wrapper .dt-buttons,
div.dataTables_wrapper div.dt-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

div.dataTables_wrapper .dataTables_length,
div.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

div.dataTables_wrapper .dataTables_length label,
div.dataTables_wrapper .dataTables_filter label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

div.dataTables_wrapper .dataTables_length select,
div.dataTables_wrapper .dataTables_filter input {
    margin: 0 !important;
}

div.dataTables_wrapper>.dt-buttons,
div.dataTables_wrapper>div.dt-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
    float: none !important;
    clear: both !important;
}

div.dataTables_wrapper>.dataTables_length,
div.dataTables_wrapper>.dataTables_filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 0.75rem;
    float: none !important;
    clear: none !important;
}

div.dataTables_wrapper>.dataTables_length {
    justify-content: flex-start;
}

div.dataTables_wrapper>.dataTables_filter {
    justify-content: flex-end;
    margin-left: auto;
    text-align: right;
}

div.dataTables_wrapper>.dataTables_filter label,
div.dataTables_wrapper>.dataTables_length label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

div.dataTables_wrapper::after {
    content: "";
    display: block;
    clear: both;
}

div.dataTables_wrapper>table,
div.dataTables_wrapper>.dataTables_scroll,
div.dataTables_wrapper>.dataTables_info,
div.dataTables_wrapper>.dataTables_paginate {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
}

div.dataTables_wrapper .row,
div.dataTables_wrapper .dt-layout-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0.75rem;
    width: 100%;
}

div.dataTables_wrapper .row:first-child,
div.dataTables_wrapper .dt-layout-row:first-child {
    margin-bottom: 0.75rem;
}

div.dataTables_wrapper .top {
    width: 100%;
}

div.dataTables_wrapper .top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

div.dataTables_wrapper .dt-layout-row:first-child .dt-layout-cell,
div.dataTables_wrapper .dt-layout-row:first-child .dt-layout-cell.dt-layout-start,
div.dataTables_wrapper .dt-layout-row:first-child .dt-layout-cell.dt-layout-end {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-layout-cell.dt-layout-start,
div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-layout-cell.dt-layout-end {
    display: flex;
    align-items: center;
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
}

div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-layout-cell.dt-layout-start {
    justify-content: flex-start;
}

div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-layout-cell.dt-layout-end {
    justify-content: flex-end;
    margin-left: auto;
}

div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-length,
div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-length-0,
div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-search {
    display: flex;
    align-items: center;
    width: 100%;
}

div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-search {
    justify-content: flex-end;
}

div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-length,
div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-length-0 {
    justify-content: flex-start;
}

div.dataTables_wrapper .dataTables_filter {
    justify-content: flex-end;
}

div.dataTables_wrapper .dataTables_length {
    justify-content: flex-start;
}

@media (max-width: 768px) {

    div.dataTables_wrapper .row,
    div.dataTables_wrapper .dt-layout-row,
    div.dataTables_wrapper .top,
    div.dataTables_wrapper>.dt-buttons,
    div.dataTables_wrapper>div.dt-buttons,
    div.dataTables_wrapper>.dataTables_length,
    div.dataTables_wrapper>.dataTables_filter,
    div.dataTables_wrapper .dataTables_length,
    div.dataTables_wrapper .dataTables_filter,
    div.dataTables_wrapper .dataTables_length label,
    div.dataTables_wrapper .dataTables_filter label {
        justify-content: flex-start;
    }

    div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-layout-cell.dt-layout-start,
    div.dataTables_wrapper .dt-layout-row:not(:first-child) .dt-layout-cell.dt-layout-end {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    div.dataTables_wrapper>.dataTables_length,
    div.dataTables_wrapper>.dataTables_filter {
        flex: 0 0 100%;
        max-width: 100%;
    }

    div.dataTables_wrapper .dataTables_filter input[type="search"],
    div.dataTables_wrapper .dt-search input[type="search"],
    div.dataTables_wrapper .dt-input {
        min-width: 100% !important;
        width: 100% !important;
    }
}

.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;
}

.ajuste-section {
    background: #f9fafc;
    border-radius: 16px;
    padding: 2rem;
}

.ajuste-card {
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centra contenido vertical */
    flex: 1;
    /* rellena todo el espacio disponible */
    border-radius: 16px;
    /* mismo contorno */
}

.ajuste-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ajuste-title {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

#personanom {
    border-radius: 12px !important;
    height: auto;
    width: 100%;
    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;

}

#folionom {
    border-radius: 12px !important;
    height: auto;
    width: 100%;
    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;
}

#personaven {
    border-radius: 12px !important;
    height: auto;
    width: 100%;
    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;

}

.sticky-footer {
    margin-top: auto;
    padding: 1rem 0;
}


/* Style for the autocomplete suggestion list */
.autoComplete_wrapper {
    display: inline-block;
    position: relative;
}

.autoComplete_wrapper>ul {
    font-size: 12px;
    /* Smaller font size for suggestions */
    max-height: 150px;
    /* Smaller list height */
    width: 200px;
    /* Match input width */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.autoComplete_wrapper>ul>li {
    padding: 5px 8px;
    /* Smaller padding for list items */
}

.autoComplete_wrapper>ul>li:hover {
    background-color: #f0f0f0;
}

.no_result {
    font-size: 12px;
    /* Smaller font for no results message */
    padding: 5px;
    color: #888;
}

#personaven::before,
#personaven::after {
    display: none !important;
}

#personanom::before,
#personanom::after {
    display: none !important;
}

#personanom {
    background-image: none !important;
    /* Adjust padding if needed */
}

#folionom::before,
#folionom::after {
    display: none !important;
}

#folionom {
    background-image: none !important;
    padding-left: 8px !important;
    /* Adjust padding if needed */
}

/* Hide magnifying glass if it's on a wrapper element */
.autoComplete_wrapper::before,
.autoComplete_wrapper::after {
    display: none !important;
}

/* Hide any specific icon class added by autoComplete.js */
.autoComplete_icon,
.autocomplete-icon {
    display: none !important;
}

/* If the icon is a background image */
#personaven {
    background-image: none !important;

}

.bg-primary {
    background: #2980b9;
    background-color: #2980b9 !important;
}

.info-bubble {
    position: relative;
    background-color: #e8f3ff;
    border-left: 5px solid #1f3658ff;
    color: #297fb9a1;
    font-size: 0.95rem;
    border-radius: 10px;
}

/* Piquito del globo */
.info-bubble::before {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -10px;
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #e8f3ff transparent transparent transparent;
}

/* Fila de grupo (Modelo) */
tr.grupo-relacion td {
    background-color: #f2f2f2;
    /* Gris claro */
    color: #333;
    font-weight: 600;
    text-align: left;
    /* Alineado izquierda */
    padding: 8px 12px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Ícono y texto un poco más suaves */
tr.grupo-relacion strong {
    color: #555;
}

/* Opcional: hover desactivado */
table.dataTable tbody tr.grupo-relacion:hover {
    background-color: #f2f2f2 !important;
}

tr.grupo-relacion td {
    border-left: 4px solid #b0b0b0;
}

tr.grupo-relacion td {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Buscador AutoAcompletar compras */
.resultado {
    position: absolute;
    top: 70px;
    width: 100%;
    z-index: 999;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.resultado .list-group-item {
    cursor: pointer;
}

/* ===== Dropdown Typeahead estilo list-group ===== */

.typeahead.dropdown-menu {
    width: 100% !important;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 6px;
    padding: 0;
    margin-top: 5px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Cada item */
.typeahead.dropdown-menu>li>a {
    display: block;
    padding: 8px 12px;

    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
}

/* Hover */
.typeahead.dropdown-menu>li>a:hover,
.typeahead.dropdown-menu>.active>a {
    background-color: #f8f9fa;
    color: #000;
}

/* Cursor */
.typeahead.dropdown-menu {
    cursor: pointer;
}

/* ===== Dropdown Bootstrap 5 autocomplete ===== */

.bs5-autocomplete-menu {
    width: 100% !important;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 6px;
    padding: 0;
    margin-top: 5px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.bs5-autocomplete-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    text-decoration: none;
    border: 0;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
    color: #495057;
}

.bs5-autocomplete-item:last-child {
    border-bottom: 0;
}

.bs5-autocomplete-item:hover,
.bs5-autocomplete-item:focus,
.bs5-autocomplete-item.active {
    background-color: #f8f9fa;
    color: #000;
}

.bs5-autocomplete-empty {
    padding: 8px 12px;
    background: #fff;
}


NARANJA .bg-orange {
    background-color: #fb7406 !important;
    /* naranja bootstrap-like */
    color: #212529 !important;
}

/* LILA / MORADO */
.bg-lila {
    background-color: #6f42c1 !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-primary {
    background-color: #004ef6 !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-rojo {
    background-color: #9e1313 !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-rojoo {
    background-color: #830000 !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-azul {
    background-color: rgb(0, 30, 164) !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-rosa {
    background-color: rgb(182, 26, 135) !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-negro {
    background-color: rgb(9, 7, 8) !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-rosa2 {
    background-color: rgb(157, 80, 134) !important;
    /* lila bootstrap */
    color: #fff !important;
}

.bg-gris {
    background-color: rgb(118, 118, 118) !important;
    /* lila bootstrap */
    color: #fff !important;
}

.sticky-container {
    padding: 0px;
    margin: 0px;
    position: fixed;
    right: -130px;
    top: 230px;
    width: 210px;
    z-index: 1100;
}


.sticky li {
    list-style-type: none;
    background-color: #fff;
    color: #efefef;
    height: 43px;
    padding: 0px;
    margin: 0px 0px 1px 0px;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    -o-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.sticky li:hover {
    margin-left: -115px;
}

.sticky li img {
    float: left;
    margin: 5px 4px;
    margin-right: 5px;
}

.sticky li p {
    padding-top: 5px;
    margin: 0px;
    line-height: 16px;
    font-size: 11px;
}

.sticky li p a {
    text-decoration: none;
    color: #2C3539;
}

.sticky li p a:hover {
    text-decoration: underline;
}

.info-card {
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}


.info-card.primary {
    background-color: #1652abc9;
    color: white;
}

.info-card.primary .label {
    color: rgba(255, 255, 255, 0.8);
}

.info-card.primary .value {
    color: white;
}

.info-card .icon-circle {
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-card .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.info-card .value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

/* Diseño de imagenes con boton para quitar  */
/* .preview-container {
    position: relative;
    margin-top: 10px;
    display: none;
}

.preview-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
} */
/* Vista previa 2
  .preview-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
} */
.preview-container {
    width: 100%;
    height: 200px;
    /* altura del banner preview */
    display: flex;
    /* activa centrado */
    align-items: center;
    /* centra vertical */
    justify-content: center;
    /* centra horizontal */
    background: #f5f5f5;
    /* opcional */
    overflow: hidden;
    position: relative;
}

.preview-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* muestra imagen completa */
}


.btn-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    text-align: center;
    line-height: 22px;
    cursor: pointer;
    z-index: 10;
}

/* iframe */
.mapa-vista {
    height: 220px;
    max-height: 220px;
    overflow: hidden;
}

.mapa-vista iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


.preview-container.banner img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.info-tabla-box {
    padding: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa, #eef1f4);
    border-left: 5px solid #70035e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.info-tabla-titulo {
    font-weight: 600;
    color: #70035e;
    margin-bottom: 4px;
    margin-top: 12px;
    font-size: 15px;
}

.info-tabla-titulo:first-child {
    margin-top: 0;
}

.info-tabla-texto {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}


/* CONTENEDOR DE LOS TABS */
.nav-zt {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

/* BOTONES DE LOS TABS */
.nav-zt .nav-link {
    border: none;
    background: #f3f4f6;
    color: #374151;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
    padding: 8px 18px;
    font-weight: 500;
    transition: all 0.25s ease;
}

/* HOVER */
.nav-zt .nav-link:hover {
    background: #e5e7eb;
    color: #111827;
}

/* TAB ACTIVO */
.nav-zt .nav-link.active {
    background: #2980b9;
    color: #fff !important;
    border-bottom: 3px solid #2980b9;
}

/* EFECTO SUAVE */
.nav-zt .nav-link.active:hover {
    background: #236592;
}


.detalle-agrupado-wrap {
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    border: 1px solid #d9e2ec;
    border-radius: 14px;
    padding: 14px;
}

.detalle-agrupado-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.detalle-agrupado-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #243b53;
}

.detalle-agrupado-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #486581;
    background: #d9eaf7;
    border-radius: 999px;
    padding: 5px 10px;
}

.detalle-agrupado-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detalle-agrupado-row {
    display: grid;
    grid-template-columns: 110px 110px 140px minmax(220px, 1.5fr) 140px 95px 120px 140px minmax(180px, 1.3fr);
    gap: 10px;
    align-items: center;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.detalle-agrupado-row.detalle-head {
    background: #eaf2fb;
    border-color: #c9d8e8;
    box-shadow: none;
    padding-top: 10px;
    padding-bottom: 10px;
}

.detalle-agrupado-col {
    min-width: 0;
}

.detalle-agrupado-col-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #627d98;
    font-weight: 700;
}

.detalle-agrupado-col-value {
    font-size: 0.9rem;
    color: #243b53;
    font-weight: 500;
    word-break: break-word;
}

.detalle-agrupado-col-producto .detalle-agrupado-col-value {
    font-weight: 700;
    color: #102a43;
}

.detalle-agrupado-col-observacion .detalle-agrupado-col-value {
    color: #486581;
}

#tablaListaPaquetes tbody tr.child td {
    background: #f8fbff !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding: 14px !important;
}

#tablaListaPaquetes tbody tr.shown>td {
    border-bottom: 0 !important;
}

#tablaListaPaquetes tbody tr.child:hover td {
    background: #f8fbff !important;
}

@media (max-width: 1200px) {

    .detalle-agrupado-row,
    .detalle-agrupado-row.detalle-head {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .detalle-agrupado-row,
    .detalle-agrupado-row.detalle-head {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}



/* CONTENIDO DEL TAB */
/* .tab-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 8px 8px;
} */

.order-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9e5f1;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(18, 120, 212, 0.18), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 58%, #ffffff 100%);
    box-shadow: 0 18px 42px rgba(32, 64, 96, 0.11);
}

.order-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18)),
        repeating-linear-gradient(-35deg, rgba(18, 120, 212, 0.045) 0, rgba(18, 120, 212, 0.045) 14px, transparent 14px, transparent 28px);
    pointer-events: none;
}

.order-hero .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.order-hero-title {
    margin: 0 0 1rem;
    color: #5d7389;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.order-stat {
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(130, 155, 182, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(4px);
}

.order-stat-label {
    margin-bottom: 0.35rem;
    color: #74879a;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-stat-value {
    color: #1f3348;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
    word-break: break-word;
}

.order-stat-meta {
    min-height: 36px;
    margin-top: 0.55rem;
    color: #53687d;
    font-size: 0.93rem;
    display: flex;
    align-items: center;
}

.order-inline-summary {
    display: flex;
    justify-content: center;
}

.order-summary-bar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid #dde7f1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

.order-summary-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    min-width: 180px;
}

.order-summary-item-status {
    margin-left: auto;
}

.order-summary-label {
    color: #7a8c9f;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.order-summary-value {
    margin: 0;
    color: #18344c;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.order-summary-value.is-empty {
    color: #8da0b2;
}

.order-summary-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, rgba(193, 208, 223, 0) 0%, rgba(193, 208, 223, 0.95) 18%, rgba(193, 208, 223, 0.95) 82%, rgba(193, 208, 223, 0) 100%);
}

#estatus.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #e7f0fb 0%, #dcecff 100%);
    color: #175b9d;
    font-size: 0.96rem;
    font-weight: 800;
    text-transform: capitalize;
    box-shadow: inset 0 0 0 1px rgba(23, 91, 157, 0.12);
}

#estatus.status-chip::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(23, 91, 157, 0.12);
}

#estatus.status-chip.status-no-guardado {
    background: linear-gradient(135deg, #f0f4f8 0%, #dfe7ef 100%);
    color: #56687a;
    box-shadow: inset 0 0 0 1px rgba(86, 104, 122, 0.14);
}

#estatus.status-chip.status-no-guardado::before {
    box-shadow: 0 0 0 4px rgba(86, 104, 122, 0.14);
}

#estatus.status-chip.status-guardado {
    background: linear-gradient(135deg, #fff6cf 0%, #ffe39a 100%);
    color: #8c6400;
    box-shadow: inset 0 0 0 1px rgba(140, 100, 0, 0.16);
}

#estatus.status-chip.status-guardado::before {
    box-shadow: 0 0 0 4px rgba(140, 100, 0, 0.14);
}

#estatus.status-chip.status-iniciado {
    background: linear-gradient(135deg, #dff7eb 0%, #bff0d2 100%);
    color: #177245;
    box-shadow: inset 0 0 0 1px rgba(23, 114, 69, 0.14);
}

#estatus.status-chip.status-iniciado::before {
    box-shadow: 0 0 0 4px rgba(23, 114, 69, 0.14);
}

#estatus.status-chip.status-finalizado {
    background: linear-gradient(135deg, #dcefff 0%, #b8ddff 100%);
    color: #0d5d9b;
    box-shadow: inset 0 0 0 1px rgba(13, 93, 155, 0.14);
}

#estatus.status-chip.status-finalizado::before {
    box-shadow: 0 0 0 4px rgba(13, 93, 155, 0.14);
}

#estatus.status-chip.status-cancelado {
    background: linear-gradient(135deg, #ffe0e0 0%, #ffbaba 100%);
    color: #b42318;
    box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.14);
}

#estatus.status-chip.status-cancelado::before {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
}

@media (max-width: 767px) {
    .order-hero .card-body {
        padding: 1rem;
    }

    .order-stat-value {
        font-size: 1.55rem;
    }

    .order-summary-bar {
        align-items: flex-start;
    }

    .order-summary-item-status {
        margin-left: 0;
    }

    .order-summary-divider {
        display: none;
    }
}

/* Menu derecho para perfil y soporte, con opciones de cerrar sesión, cambiar contraseña, etc. */
/* Sombra y bordes redondeados */
.dropdown-usermenu {
    border: none !important;
    border-radius: 12px !important;
    padding: 10px !important;
    min-width: 230px !important;
}

/* Estilo de cada item */
.dropdown-usermenu .dropdown-item {
    padding: 10px 15px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    color: #444;
    text-align: start;
}

/* Efecto al pasar el mouse (Hover) */
.dropdown-usermenu .dropdown-item:hover {
    background-color: rgba(51, 191, 170, 0.15) !important;

    color: #33BFAA !important;
    /* Cambia al color de tu marca */
    transform: translateX(5px);
    /* Desplazamiento suave */
}

/* Iconos alineados a la izquierda para mejor lectura */
.dropdown-usermenu .fa {
    width: 20px;
    text-align: center;
}

/* Estilo para los títulos de sección */
.dropdown-header {
    font-size: 0.75rem !important;
    letter-spacing: 1px;
    padding: 10px 15px 5px !important;
}



/* FACTURACION DISEÑO */
  /* --- ESTILO POST-IT --- */
   .postit-container {
    padding: 10px;
    display: flex;
    justify-content: flex-start;
}

/* Post-it con tamaño normal pero estilo bonito */
.postit-note {
    background: #fefabc;
    width: 100%;              /* ocupa TODO el ancho disponible */
    min-height: 250px;        /* altura normal */
    padding: 20px;
    position: relative;
    box-shadow: 5px 5px 12px rgba(0,0,0,0.15);
    transform: rotate(-1.2deg);
    border: 1px solid #ede39e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.postit-note-mediana {
    background: #fefabc;
    width: 100%;              /* ocupa TODO el ancho disponible */
    min-height: 150px;        /* altura normal */
    padding: 20px;
    position: relative;
    box-shadow: 5px 5px 12px rgba(0,0,0,0.15);
    transform: rotate(-1.2deg);
    border: 1px solid #ede39e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.postit-note-chica {
    background: #fefabc;
    width: 100%;              /* ocupa TODO el ancho disponible */
    min-height: 80px;        /* altura normal */
    padding: 20px;
    position: relative;
    box-shadow: 5px 5px 12px rgba(0,0,0,0.15);
    transform: rotate(-1.2deg);
    border: 1px solid #ede39e;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.postit-note:hover {
    transform: rotate(0deg);
}

/* Esquina levantada bonita */
.postit-note::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 25px 25px; /* tamaño bonito de esquina */
    border-color: transparent transparent #fff transparent;
    z-index: 2;
}

.postit-note::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 12px;
    background: rgba(0,0,0,0.08);
    transform: rotate(45deg);
    transform-origin: bottom right;
    box-shadow: 0 5px 8px rgba(0,0,0,0.15);
    z-index: 1;
}

/* Cabecera estilo divertido */
.postit-header {
    font-family: 'Permanent Marker', cursive, sans-serif;
    font-weight: bold;
    color: #8a7d00;
    border-bottom: 1px dashed #ede39e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Textarea estilo escritura */
.postit-textarea {
    background: transparent;
    border: none;
    width: 100%;
    height: 150px; /* altura normal */
    resize: none;
    font-family: 'Comic Sans MS', cursive;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    outline: none !important;
    box-shadow: none !important;
}
    /* --- ESTILO SUMMARY (Manteniendo tus reglas) --- */
    .summary-container {
        background-color: #fcfcfc;
        border-radius: 8px;
        padding: 15px;
        border: 1px solid #eee;
        width: 100%;
        margin-left: auto;
    }

    .table-custom {
        margin-bottom: 0;
        border-collapse: separate;
        border-spacing: 0 5px;
    }

    .table-custom td {
        padding: 8px 12px !important;
        vertical-align: middle;
        border: none !important;
    }

    .label-cell {
        text-align: right;
        font-weight: 600;
        color: #555;
        font-size: 14px;
    }

    .amount-positive {
        color: #2c3e50;
        font-family: 'Courier New', monospace;
        font-weight: bold;
        font-size: 16px;
    }

    .amount-negative {
        color: #e74c3c;
        font-family: 'Courier New', monospace;
        font-weight: bold;
        font-size: 16px;
    }

    .total-row { background-color: #f8f9fa; }

    .highlight-total {
        font-size: 18px !important;
        color: #212529 !important;
        text-transform: uppercase;
    }

    .amount-total {
        color: #27ae60;
        font-size: 22px;
        font-weight: 800;
        border-bottom: 3px double #27ae60;
    }

    @media (max-width: 768px) {
        .postit-note { transform: none; margin-bottom: 20px; }
    }


       /* Contenedor Principal */
      .card-receptor {
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        background: #fff;
        margin-bottom: 20px;
      }

      /* .card-receptor-header {
        background: #334c64 !important;
        color: white !important;
        border-radius: 12px 12px 0 0 !important;
        padding: 15px 20px !important;
    } */

      /* Fichas de información (RFC, Dirección...) */
      .client-detail-box {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        margin-top: 15px;
        border: 1px solid #edf2f7;
      }

      .detail-item {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        border-bottom: 1px dashed #dee2e6;
        padding-bottom: 5px;
      }

      .detail-item:last-child {
        border-bottom: none;
      }

      .detail-label {
        font-size: 11px;
        font-weight: 700;
        color: #718096;
        text-transform: uppercase;
        width: 80px;
        flex-shrink: 0;
      }

      .detail-value {
        font-size: 13px;
        color: #2d3748;
        font-weight: 500;
      }

      /* Tarjetas de Indicadores (Saldos y Timbres) */
      .stat-card {
        padding: 15px;
        border-radius: 10px;
        margin-bottom: 15px;
        transition: transform 0.2s;
        border: 1px solid #e2e8f0;
      }

      .stat-card:hover {
        transform: translateY(-3px);
      }

      .stat-blue {
        background: #f0f7ff;
        border-left: 4px solid #3182ce;
      }

      .stat-green {
        background: #f0fff4;
        border-left: 4px solid #38a169;
      }

      .stat-title {
        display: block;
        font-size: 11px;
        color: #4a5568;
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 5px;
      }

      .stat-number {
        display: block;
        font-size: 18px;
        font-weight: 800;
        color: #2d3748;
      }


      .btn-add-client:hover {
        background-color: #2f855a !important;
      }


      .info-facturacion {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
}

/* cada fila */
.libreta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #d1d5db;
}

.libreta-item:last-child {
    border-bottom: none;
}

/* etiqueta */
.libreta-label {
    min-width: 90px;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
}

/* valor */
.libreta-value {
    flex: 1;
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
    word-break: break-word;
}

/* mejora visual cuando está vacío */
.libreta-value:empty::after {
    content: "---";
    color: #9ca3af;
}




    .card-soft {
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border: none;
    }

    .card-header-soft {
        background-color: #3f5b75;
        color: #fff;
        border-top-left-radius: 16px !important;
        border-top-right-radius: 16px !important;
    }

    .box-soft {
        border-radius: 14px;
        padding: 12px;
        background: #f8fafc;
        border-left: 4px solid;
        transition: 0.2s;
    }

    .box-soft:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    }

    /* Colores suaves */
    .soft-primary {
        background: #eef4ff;
        border-color: #6ea8fe;
    }

    .soft-danger {
        background: #fdeeee;
        border-color: #f28b82;
    }

    .soft-success {
        background: #e9f7ef;
        border-color: #6ccf91;
    }

    .soft-warning {
        background: #fff8e6;
        border-color: #f7c873;
    }


    * Contenedor para centrar el botón y su texto abajo */
.contenedor-agregar-producto {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

/* El botón circular gigante */
.btn-agregar-circular {
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Tamaño grande idéntico al de la imagen */
  width: 110px;
  height: 110px;
  
  /* Estilo y Colores */
  background-color: #2b78b4; /* Azul de la imagen */
  color: white !important;
  border: none;
  border-radius: 50%; /* Círculo perfecto */
  
  /* Sombra suave y profunda (Efecto Elevación) */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25), 0 4px 6px rgba(0, 0, 0, 0.15);
  
  /* Comportamiento y transiciones */
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tamaño del icono de Font Awesome dentro del círculo */
.btn-agregar-circular i {
  font-size: 42px; /* Icono grande y legible */
}

/* Estilo para el texto que va debajo del botón */
.texto-agregar-btn {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 130px; /* Envuelve el texto elegantemente */
  line-height: 1.3;
}

/* --- EFECTOS INTERACTIVOS (Hover y Active) --- */

.btn-agregar-circular:hover {
  background-color: #216193; /* Azul un poco más oscuro */
  transform: translateY(-4px); /* Se eleva al pasar el mouse */
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3), 0 6px 8px rgba(0, 0, 0, 0.2);
}

.btn-agregar-circular:active {
  transform: translateY(2px); /* Se hunde un poco al dar clic */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Estado Deshabilitado (Azul opaco, sin volverse gris) */
.btn-agregar-circular:disabled, 
.btn-agregar-circular.disabled,
.btn-circular-factura:disabled,
.btn-circular-factura.disabled {
  /* Mantenemos el fondo azul original pero aplicamos opacidad para el efecto opaco */
  background-color: #2b78b4 !important; 
  opacity: 0.5 !important; /* Lo hace traslúcido/opaco sobre el fondo */
  
  /* Quitamos efectos de movimiento y sombras */
  transform: none !important; 
  box-shadow: none !important; 
  
  /* Comportamiento del cursor */
  cursor: not-allowed !important; 
  pointer-events: auto !important; /* Permite que se vea el cursor de prohibido */
}

.btn-circular-factura {
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Tamaño del círculo */
    width: 85px; 
    height: 85px;
    
    /* Estilo visual */
    background-color: #317fbb; /* Azul profesional */
    color: white !important;
    border: none;
    border-radius: 50%; /* Círculo perfecto */
    
    /* Sombra y efectos */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

/* Ajuste para que tu icono fa-2x se vea centrado */
.btn-circular-factura i {
    margin: 0 !important;
    display: block;
}

/* Efecto al pasar el mouse */
.btn-circular-factura:hover {
    background-color: #266494;
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Texto descriptivo debajo */
.label-boton-circular {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    color: #444;
    text-align: center;
}

input[readonly] {
    background-color: #f5f5f5; /* Un fondo grisáceo sutil */
    color: #6c757d;            /* Texto un poco más claro (color muted) */
    border-color: #dee2e6;     /* Borde suavizado */
    opacity: 0.7;              /* El truco de la opacidad */
    cursor: not-allowed;       /* Cambia el cursor para indicar que no se edita */
}

  .card-envio-custom {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease-in-out;
  }
 



  

 

/* Usar solo flechas nativas de DataTables en table_productos */
#table_productos thead .dt-order-btn-productos {
    display: none !important;
}

#table_productos thead th {
    padding-right: 1.35rem !important;
}

#table_productos thead th .dt-column-order {
    position: relative;
    display: inline-block !important;
    width: 0.9rem;
    margin-left: 0.2rem;
}

#table_productos thead th .dt-column-order::before,
#table_productos thead th .dt-column-order::after {
    position: absolute;
    right: 0;
    font-size: 0.62rem;
    line-height: 0.62rem;
    color: #8a8f98;
}

#table_productos thead th .dt-column-order::before {
    content: "\25B2" !important;
    top: -0.15rem;
}

#table_productos thead th .dt-column-order::after {
    content: "\25BC" !important;
    top: 0.45rem;
}

#table_productos thead th.dt-ordering-asc .dt-column-order::before,
#table_productos thead th.dt-orderable-asc .dt-column-order::before {
    color: #1e64d0;
}

#table_productos thead th.dt-ordering-desc .dt-column-order::after,
#table_productos thead th.dt-orderable-desc .dt-column-order::after {
    color: #1e64d0;
}

/* Fallback fuerte: mostrar flechas nativas para DT1/DT2 */
#table_productos thead th.sorting,
#table_productos thead th.sorting_asc,
#table_productos thead th.sorting_desc,
#table_productos thead th.dt-orderable-asc,
#table_productos thead th.dt-orderable-desc,
#table_productos thead th.dt-ordering-asc,
#table_productos thead th.dt-ordering-desc {
    position: relative;
    padding-right: 1.35rem !important;
}

#table_productos thead th.sorting::before,
#table_productos thead th.sorting_asc::before,
#table_productos thead th.sorting_desc::before,
#table_productos thead th.dt-orderable-asc::before,
#table_productos thead th.dt-orderable-desc::before,
#table_productos thead th.dt-ordering-asc::before,
#table_productos thead th.dt-ordering-desc::before,
#table_productos thead th.sorting::after,
#table_productos thead th.sorting_asc::after,
#table_productos thead th.sorting_desc::after,
#table_productos thead th.dt-orderable-asc::after,
#table_productos thead th.dt-orderable-desc::after,
#table_productos thead th.dt-ordering-asc::after,
#table_productos thead th.dt-ordering-desc::after {
    position: absolute;
    right: 0.35rem;
    display: block !important;
    font-size: 0.62rem;
    line-height: 0.62rem;
    color: #8a8f98;
}

#table_productos thead th.sorting::before,
#table_productos thead th.sorting_asc::before,
#table_productos thead th.sorting_desc::before,
#table_productos thead th.dt-orderable-asc::before,
#table_productos thead th.dt-orderable-desc::before,
#table_productos thead th.dt-ordering-asc::before,
#table_productos thead th.dt-ordering-desc::before {
    content: "\25B2" !important;
    top: calc(50% - 0.58rem);
}

#table_productos thead th.sorting::after,
#table_productos thead th.sorting_asc::after,
#table_productos thead th.sorting_desc::after,
#table_productos thead th.dt-orderable-asc::after,
#table_productos thead th.dt-orderable-desc::after,
#table_productos thead th.dt-ordering-asc::after,
#table_productos thead th.dt-ordering-desc::after {
    content: "\25BC" !important;
    top: calc(50% + 0.02rem);
}

#table_productos thead th.sorting_asc::before,
#table_productos thead th.dt-ordering-asc::before {
    color: #1e64d0 !important;
}

#table_productos thead th.sorting_desc::after,
#table_productos thead th.dt-ordering-desc::after {
    color: #1e64d0 !important;
}
