* {
    font-family: 'Roboto', sans-serif !important;
}

body::after {
    content: "";
    display: block;
    height: 50px;
}

body.pago-masivo-page {
    overflow-x: auto;
    overflow-y: auto;
}

body.pago-masivo-page::after {
    height: 10px;
}

#tabla {
    font-family: "Roboto", "Century Gothic", "Quicksand";
    border-collapse: collapse;
}

#tabla th {
    border: 1px solid #ddd; 
    text-align: center;
    padding: 2px;
}

#tabla td {
    border: 1px solid #ddd;     
    padding: 1px;
}

#tabla tr:nth-child(even){background-color: #E7E7CF}

#tabla tr:hover {background-color: hwb(130 69% 29%); color: #000000}

#tabla th {
  padding-top: 2px;
  padding-bottom: 2px;
  background-color: #f2f2f2;
  color: #000000;
	font-size: 14;
}

.modificadatos {
    padding-left: 10px;
    display: flex;
    justify-content: center;
}

#confirmarEliminacion {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.inputlargo {
    width: 50%;
}

.loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('cargando.gif') 50% 50% no-repeat #f5f7fb;
    opacity: .8;
}

.carga-modal-documento {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, .28);
}

.carga-modal-documento[hidden] {
    display: none;
}

html.documento-cargando,
body.documento-cargando {
    overflow: hidden !important;
}

.carga-modal-documento__panel {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 220px;
    padding: .9rem 1.15rem;
    border: 1px solid rgba(148, 163, 184, .65);
    border-radius: .55rem;
    background: #ffffff;
    box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .18);
    color: #243447;
    font-size: .95rem;
    font-weight: 500;
}

.carga-modal-documento__spinner {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    border: .2rem solid #dbeafe;
    border-top-color: #2563a6;
    border-radius: 50%;
    animation: cargaModalDocumentoGiro .75s linear infinite;
}

@keyframes cargaModalDocumentoGiro {
    to { transform: rotate(360deg); }
}

.resultados {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.ctacte-banco-page #loader.loader {
    display: none !important;
}

body.mantencion-productos-page #loader.loader {
    display: none !important;
}

/* Las tablas con skeleton no deben quedar cubiertas por el loader global. */
body:has([class*="skeleton"]) #loader.loader {
    display: none !important;
}

.ctacte-banco-skeleton-row td {
    height: 42px;
    padding: 8px 6px !important;
}

.ctacte-banco-skeleton {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(100deg, #edf1f5 25%, #dfe7ef 37%, #edf1f5 63%);
    background-size: 400% 100%;
    animation: ctacteBancoSkeleton 1.35s ease-in-out infinite;
}

.ctacte-banco-skeleton--wide { width: 86%; }
.ctacte-banco-skeleton--medium { width: 68%; }
.ctacte-banco-skeleton--short { width: 72%; }
.ctacte-banco-skeleton--tiny { width: 48%; }
.ctacte-banco-skeleton--button { width: 74%; height: 24px; }

.ctacte-banco-carga-error {
    padding: 24px !important;
    color: #b42318;
    font-weight: 700;
    text-align: center;
}

@keyframes ctacteBancoSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ctacte-banco-skeleton {
        animation: none;
    }
}

.gestion-skeleton-row td {
    height: 42px;
    padding: 8px 6px !important;
}

.gestion-skeleton {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(100deg, #edf1f5 25%, #dfe7ef 37%, #edf1f5 63%);
    background-size: 400% 100%;
    animation: gestionSkeleton 1.35s ease-in-out infinite;
}

.gestion-skeleton--wide { width: 86%; }
.gestion-skeleton--medium { width: 68%; }
.gestion-skeleton--short { width: 56%; }
.gestion-skeleton--tiny { width: 38%; }
.gestion-skeleton--button { width: 74%; height: 24px; border-radius: 5px; }
.gestion-estado-tabla td { padding: 1.25rem; text-align: center; color: #64748b; }
.gestion-estado-tabla--error td { color: #b42318; }
.gestion-estado-tabla__reintentar { display: block; margin: .8rem auto 0; border: 1px solid #2457a6; border-radius: 6px; padding: .45rem .8rem; background: #fff; color: #2457a6; font-weight: 700; cursor: pointer; }

.gestion-carga-error {
    padding: 24px !important;
    color: #b42318;
    font-weight: 700;
    text-align: center;
}

@keyframes gestionSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gestion-skeleton { animation: none; }
}

select,
input[type="text"],
input[type="time"],
input[type="date"],
input[type="number"],
input[type="month"],
input[type="search"],
input[type="email"],
input[type="password"] {
    height: 35px;
    padding: 2px 1px;
    margin: 1px 0;
    display: inline-block;
    border: 1px solid #b9d5ec;
    border-radius: 7px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #1f2d3d;
    font-size: 14px;
 }

select:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="month"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #8abce3;
    box-shadow: 0 0 0 2px rgba(138, 188, 227, 0.18);
}

 .documentos {
    display: grid;
    place-items: center;
}

/* menú */
.menuPrincipal{
    height: 1px;
}

h1{
    text-transform: uppercase;
    text-align: left;
    width:30%;
    display:inline-block;
}

ul li {
    display: inline-block;
    padding: 0px 20px;
}

a {
   color: black;
   text-decoration: none;
}

/* Estilos para los botones de paginacion */
.page-item.active .page-link {
    background-color: rgb(4, 4, 4) !important;
    color: azure !important;
    /* border: 1px solid black; */
}
.page-link {
    color: black !important;
}

/* Botones principales de PagoMasivo */
.pago-masivo #btnBuscar,
.pago-masivo #btnPagosMasivos,
.pago-masivo #btnPagar,
.pago-masivo #btnCrear {
    height: 35px;
}

.pago-masivo-paso1-card.pago-masivo-paso1-completado {
    border: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
}

.pago-masivo-paso1-completado .card-header {
    display: none;
}

.pago-masivo-paso1-completado .card-body {
    padding: .5rem .75rem;
    border: 1px solid #dfeee0;
    border-radius: 6px;
    background-color: #f4faf4;
}

.pago-masivo-paso1-completado .card-body .alert {
    margin: 0 0 .5rem;
    padding: .45rem .75rem;
    color: #6f8272;
    border-color: #dfeee0;
    background-color: #eef7ef;
}

.pago-masivo-paso2-card.pago-masivo-paso2-completado {
    border: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
}

.pago-masivo-paso2-completado .card-header {
    display: none;
}

.pago-masivo-paso2-completado .card-body {
    padding: .5rem .75rem;
    border: 1px solid #f0dddd;
    border-radius: 6px;
    background-color: #fff8f8;
}

.pago-masivo-paso2-completado .card-body .alert {
    margin: 0 0 .5rem;
    padding: .45rem .75rem;
    color: #927878;
    border-color: #f0dddd;
    background-color: #fff2f2;
}

.pago-masivo .pago-masivo-etiqueta {
    display: flex;
    align-items: center;
    width: 185px;
    min-height: 38px;
    margin: 0;
}

.pago-masivo-paso2-controles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.pago-masivo-paso2-control {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}

.pago-masivo-paso2-control .pago-masivo-etiqueta {
    width: auto;
    min-width: 0;
    min-height: 35px;
    white-space: nowrap;
}

.pago-masivo-paso2-separador {
    color: #adb5bd;
    font-size: 1.25rem;
    line-height: 1;
}

.pago-masivo-filtros {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin: .5rem 0 .75rem;
}

.pago-masivo-filtro {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
}

.pago-masivo-filtro-estado {
    gap: .4rem;
}

.pago-masivo-filtro-estado .pago-masivo-etiqueta {
    width: auto;
    min-width: 0;
}

.pago-masivo-filtros select {
    min-width: 180px;
}

.pago-masivo-tablas {
    min-height: 0;
}

.pago-masivo-tabla-scroll {
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.pago-masivo-tabla-scroll table {
    margin-bottom: 0;
}

.pago-masivo-tablas tbody > tr > td {
    height: 30px;
    padding: .18rem .35rem;
    line-height: 1.15;
    vertical-align: middle;
}

.pago-masivo-tablas #dataGastosPendientes input[type="button"] {
    padding: .15rem .45rem;
    line-height: 1.1;
}

.pago-masivo-tabla-scroll thead th {
    color: #fff;
    background-color: #212529 !important;
}

.pago-masivo #spinnerArchivoPagoMasivo {
    width: 1.25rem;
    height: 1.25rem;
    border-width: .2em;
}

.pago-masivo-bloqueo {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .38);
    pointer-events: auto;
    user-select: none;
}

.pago-masivo-bloqueo[hidden] {
    display: none !important;
}

.pago-masivo-bloqueo__contenido {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 260px;
    padding: 1.1rem 1.35rem;
    border-radius: 10px;
    color: #243447;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .28);
    font-weight: 600;
}

/* Modal amplio para revisar filas no consideradas del Excel */
#modalNoConsideradosPagoMasivo .modal-dialog {
    width: auto;
    max-width: none !important;
    margin: 3vh 3vw;
    height: auto;
    max-height: 90vh;
}

#modalNoConsideradosPagoMasivo .modal-content {
    max-height: 90vh;
    overflow: hidden;
    border-radius: 12px;
}

#modalVerPagoMasivo .modal-dialog {
    width: calc(100% - .5rem);
    max-width: 1600px;
    height: 90vh;
    max-height: 90vh;
}

#modalVerPagoMasivo .modal-content {
    height: 100%;
    max-height: none;
    overflow: hidden;
    border-radius: 12px;
}

#modalVerPagoMasivo .modal-body {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

#modalVerPagoMasivo .pago-masivo-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    gap: 1rem;
    min-height: 0;
    flex: 1 1 auto;
}

#modalVerPagoMasivo .pago-masivo-modal-panel {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #fff;
}

#modalVerPagoMasivo .pago-masivo-modal-panel__titulo {
    flex: 0 0 auto;
    margin: 0;
    padding: .7rem .8rem;
    color: #526b85;
    background: #f4f7fa;
    border-bottom: 1px solid #dbe3ea;
    font-size: .82rem;
    font-weight: 700;
}

#modalVerPagoMasivo .pago-masivo-modal-tabla-scroll {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
}

#modalVerPagoMasivo .pago-masivo-modal-filtro {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
}

#modalVerPagoMasivo .pago-masivo-modal-filtro label {
    margin: 0;
    color: #526b85;
    font-size: .8rem;
    font-weight: 700;
}

#modalVerPagoMasivo .pago-masivo-modal-filtro select {
    width: min(100%, 360px);
}

#modalVerPagoMasivo thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

#modalVerPagoMasivo tfoot th,
#modalVerPagoMasivo tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border-top: 2px solid #212529;
    font-size: 1.08rem !important;
    font-weight: 800;
    padding-top: .65rem;
    padding-bottom: .65rem;
}

#modalVerPagoMasivo table {
    width: 100%;
    min-width: 920px;
}

#modalVerPagoMasivo .pago-masivo-modal-panel--resumen table {
    min-width: 390px;
}

#modalVerPagoMasivo .pago-masivo-proveedor-seleccionado > td {
    background-color: #e8f1ff !important;
    font-weight: 700;
}

#modalVerPagoMasivo #tablaResumenVerPagoMasivo tr[data-proveedor] {
    cursor: pointer;
}

#modalVerPagoMasivo #tablaResumenVerPagoMasivo tr[data-proveedor]:hover > td {
    background-color: #eef5ff !important;
}

@media (max-width: 900px) {
    #modalVerPagoMasivo .pago-masivo-modal-grid {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    #modalVerPagoMasivo .pago-masivo-modal-panel {
        min-height: 260px;
    }
}

/* Skeletons de carga no bloqueantes */
.usuarios-skeleton-row td,.resumen-ventas-skeleton-row td,.estado-folios-skeleton-row td,.consolidado-skeleton-row td{padding:9px 8px!important}
.usuarios-skeleton,.resumen-ventas-skeleton,.estado-folios-skeleton,.consolidado-skeleton{display:block;height:14px;border-radius:5px;background:linear-gradient(90deg,#e7edf3 25%,#f8fafc 50%,#e7edf3 75%);background-size:200% 100%;animation:gestion-skeleton-shimmer 1.25s ease-in-out infinite}
.usuarios-skeleton--largo{width:92%}.usuarios-skeleton--corto{width:55%}.usuarios-skeleton--accion{width:64%;margin:auto}.resumen-ventas-skeleton{width:76%}.resumen-ventas-skeleton-row td:first-child .resumen-ventas-skeleton{width:48%}.resumen-ventas-skeleton-row td:last-child .resumen-ventas-skeleton{width:60%;margin:auto}.estado-folios-skeleton{width:82%}.estado-folios-skeleton-row td:nth-child(2) .estado-folios-skeleton,.estado-folios-skeleton-row td:nth-child(6) .estado-folios-skeleton{width:62%}.consolidado-skeleton{width:78%}.consolidado-skeleton-row td:last-child .consolidado-skeleton{width:56%;margin:auto}
.persistidas-skeleton-card{display:grid!important;gap:10px;cursor:default;pointer-events:none}.persistidas-skeleton{display:block;height:13px;border-radius:5px;background:linear-gradient(90deg,#e7edf3 25%,#f8fafc 50%,#e7edf3 75%);background-size:200% 100%;animation:gestion-skeleton-shimmer 1.25s ease-in-out infinite}.persistidas-skeleton--corto{width:38%}.persistidas-skeleton--medio{width:68%}.persistidas-skeleton--largo{width:92%}
@keyframes gestion-skeleton-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
#tablaClientesData{view-transition-name:clientes-tabla}#tablaProveedoresData{view-transition-name:proveedores-tabla}#tablaUsuariosData{view-transition-name:usuarios-tabla}@media(prefers-reduced-motion:no-preference){::view-transition-old(clientes-tabla),::view-transition-new(clientes-tabla),::view-transition-old(proveedores-tabla),::view-transition-new(proveedores-tabla),::view-transition-old(usuarios-tabla),::view-transition-new(usuarios-tabla){animation-duration:.24s;animation-timing-function:ease-out}}
#tablaProductosData{view-transition-name:productos-base-tabla}#tablaProductosDataGeneral{view-transition-name:productos-general-tabla}#tablaCtaCteClientes{view-transition-name:ctacte-banco-tabla}@media(prefers-reduced-motion:no-preference){::view-transition-old(productos-base-tabla),::view-transition-new(productos-base-tabla),::view-transition-old(productos-general-tabla),::view-transition-new(productos-general-tabla),::view-transition-old(ctacte-banco-tabla),::view-transition-new(ctacte-banco-tabla){animation-duration:.24s;animation-timing-function:ease-out}}
