.padding-superior-contabilidad {
 padding: 20px;
}

.btn-reporte-contable-facturacion {
 display: inline-flex;
 align-items: stretch;
 min-height: 34px;
 border-radius: 6px;
 overflow: hidden;
 background: #143DD4;
 color: #fff;
 font-size: 10.5px;
 font-weight: bold;
 letter-spacing: 0.5px;
 line-height: 1.15;
 vertical-align: middle;
 transition: background 0.15s;
}

.btn-reporte-contable-facturacion:hover,
.btn-reporte-contable-facturacion:focus {
 background: #0f2fa8;
 color: #fff;
 text-decoration: none;
}

.icono-reporte-facturacion {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 28px;
 background: rgba(0, 0, 0, 0.18);
 font-size: 13px;
}

.texto-reporte-facturacion {
 display: flex;
 align-items: center;
 padding: 0 8px;
 text-align: left;
}

.btn-descarga-masiva {
 display: inline-flex;
 align-items: stretch;
 min-height: 38px;
 padding: 0;
 border: 1px solid #c9d3e6;
 border-radius: 6px;
 overflow: hidden;
 background: #fff;
 color: #143DD4;
 font-size: 10.5px;
 font-weight: bold;
 letter-spacing: 0.5px;
 line-height: 1.15;
 vertical-align: middle;
 transition: background 0.15s, border-color 0.15s;
}

.btn-descarga-masiva:hover,
.btn-descarga-masiva:focus {
 background: #eef2f8;
 border-color: #143DD4;
 outline: none;
}

.icono-descarga-masiva {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 30px;
 background: #fff4e0;
 color: #c77700;
 font-size: 14px;
}

.texto-descarga-masiva {
 display: flex;
 align-items: center;
 padding: 0 8px;
 text-align: left;
}

.lista-doc-exportar .btn-reporte-contable-facturacion {
 min-height: 38px;
}

.modal-descarga-masiva {
 width: 540px;
 max-width: calc(100% - 24px);
 margin: 56px auto;
}

.modal-forms .modal-content.dm-tarjeta {
 border: 0 !important;
 border-radius: 12px !important;
 box-shadow: 0 18px 44px rgba(20, 40, 90, 0.22);
 overflow: hidden;
}

.dm-cabecera {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 16px 20px;
 background-color: #3d64d4;
 background-image: linear-gradient(135deg, #4f7cec 0%, #2f55c4 100%);
 color: #fff;
}

.dm-icono-titulo {
 display: flex;
 flex: 0 0 34px;
 align-items: center;
 justify-content: center;
 width: 34px;
 height: 34px;
 border-radius: 9px;
 background: rgba(255, 255, 255, 0.2);
 font-size: 15px;
}

.dm-titulo {
 margin-right: auto;
 font-size: 14px;
 font-weight: 700;
 letter-spacing: 0.7px;
 text-transform: uppercase;
}

.dm-periodo {
 padding: 5px 12px;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.2);
 color: #fff;
 font-size: 12px;
 font-weight: 600;
 white-space: nowrap;
}

.dm-cerrar {
 width: 30px;
 height: 30px;
 padding: 0;
 border: 0;
 border-radius: 50%;
 background: transparent;
 color: #fff;
 font-size: 21px;
 line-height: 1;
 opacity: 0.85;
 transition: background 0.15s;
}

.dm-cerrar:hover {
 background: rgba(255, 255, 255, 0.18);
 color: #fff;
 opacity: 1;
}

.dm-cuerpo {
 padding: 20px 20px 20px;
 background: #fff;
}

.dm-estado {
 display: none;
 padding: 26px 0;
 color: #5b6b8c;
 font-size: 12px;
 font-weight: 600;
 text-align: center;
}

.dm-estado-carga i {
 color: #3d64d4;
 font-size: 18px;
}

.modal-descarga-masiva.cargando .dm-estado-carga,
.modal-descarga-masiva.vacio .dm-estado-vacio {
 display: block;
}

.modal-descarga-masiva.cargando .dm-datos,
.modal-descarga-masiva.vacio .dm-datos {
 display: none;
}

.dm-bloque {
 margin-bottom: 18px;
}

.dm-tipos {
 border: 1px solid #d9dee8;
 border-radius: 10px;
 overflow: hidden;
 background: #fff;
 box-shadow: 0 2px 8px rgba(20, 40, 90, 0.05);
}

.dm-tipos-cabecera {
 display: flex;
 justify-content: space-between;
 padding: 9px 16px;
 border-bottom: 1px solid #d9dee8;
 background: linear-gradient(#f3f6fc, #e9effa);
 color: #3d64d4;
 font-size: 10.5px;
 font-weight: 700;
 letter-spacing: 0.6px;
 text-transform: uppercase;
}

.dm-tipo {
 display: flex;
 align-items: center;
 gap: 12px;
 margin: 0;
 padding: 10px 16px;
 border-bottom: 1px solid #eef1f6;
 background: #fff;
 cursor: pointer;
 transition: background 0.15s;
}

.dm-tipo:last-child {
 border-bottom: 0;
}

.dm-tipo:hover {
 background: #fafbfe;
}

.dm-tipo.activa {
 background: #f5f8ff;
}

.dm-tipo.deshabilitada {
 opacity: 0.45;
 cursor: default;
}

.dm-check {
 width: 16px;
 height: 16px;
 margin: 0;
 accent-color: #3d64d4;
 cursor: pointer;
}

.dm-tipo.deshabilitada .dm-check {
 cursor: default;
}

.dm-icono {
 display: flex;
 flex: 0 0 32px;
 align-items: center;
 justify-content: center;
 width: 32px;
 height: 32px;
 border-radius: 9px;
 font-size: 14px;
}

.dm-icono-xml {
 background: #fff4e0;
 color: #c77700;
}

.dm-icono-cdr {
 background: #e6f4ea;
 color: #1e7b3c;
}

.dm-icono-resumen {
 background: #e8eefc;
 color: #3d64d4;
}

.dm-icono-baja {
 background: #eef0f3;
 color: #5f6b7d;
}

.dm-etiqueta {
 flex: 1;
 color: #111;
 font-size: 12px;
 font-weight: 700;
 letter-spacing: 0.3px;
 text-transform: uppercase;
}

.dm-cantidad {
 min-width: 34px;
 padding: 3px 10px;
 border-radius: 999px;
 background: #eef2f8;
 color: #5b6b8c;
 font-size: 12px;
 font-weight: 700;
 text-align: center;
 font-variant-numeric: tabular-nums;
}

.dm-tipo.activa .dm-cantidad {
 background: #3d64d4;
 color: #fff;
}

.dm-avance {
 display: none;
 margin-bottom: 16px;
 padding: 12px 14px;
 border: 1px solid #e1e6f0;
 border-radius: 10px;
 background: #f7f9fc;
}

.modal-descarga-masiva.descargando .dm-avance {
 display: block;
}

.modal-descarga-masiva.descargando .dm-tipo {
 pointer-events: none;
}

.dm-barra {
 height: 6px;
 border-radius: 3px;
 background: #e3e9f4;
 overflow: hidden;
}

.dm-barra span {
 display: block;
 width: 0;
 height: 100%;
 background: linear-gradient(90deg, #4f7cec, #3d64d4);
 transition: width 0.2s;
}

.dm-avance-fila {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 10px;
 margin-top: 8px;
}

.dm-avance-texto {
 color: #5b6b8c;
 font-size: 11.5px;
 font-weight: 700;
}

.dm-cancelar {
 padding: 0;
 border: 0;
 background: transparent;
 color: #b03a3a;
 font-size: 10.5px;
 font-weight: 700;
 letter-spacing: 0.4px;
 text-transform: uppercase;
}

.dm-cancelar:disabled {
 opacity: 0.4;
}

.dm-etiqueta-campo {
 display: block;
 margin-bottom: 8px;
 color: #3d64d4;
 font-size: 10.5px;
 font-weight: 700;
 letter-spacing: 0.6px;
 text-transform: uppercase;
}

.dm-correos {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 6px;
 min-height: 44px;
 padding: 6px 10px;
 border: 1px solid #cfd7e6;
 border-radius: 10px;
 background: #fff;
 box-shadow: inset 0 1px 2px rgba(20, 40, 90, 0.04);
}

.dm-correos:focus-within {
 border-color: #3d64d4;
 box-shadow: 0 0 0 3px rgba(61, 100, 212, 0.12);
}

.dm-correo-nuevo {
 flex: 1 1 160px;
 min-width: 150px;
 height: 28px;
 margin: 0;
 padding: 0;
 border: 0;
 outline: 0;
 background: transparent;
 box-shadow: none;
 color: #111;
 font-size: 13px;
}

.dm-chip {
 display: inline-flex;
 align-items: center;
 gap: 4px;
 max-width: 100%;
 height: 26px;
 padding: 0 4px 0 11px;
 border-radius: 999px;
 background: #eef2f8;
 color: #3d64d4;
 font-size: 12px;
 font-weight: 700;
}

.dm-chip-texto {
 min-width: 0;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}

.dm-chip-quitar {
 flex: 0 0 20px;
 width: 20px;
 height: 20px;
 padding: 0;
 border: 0;
 border-radius: 50%;
 background: transparent;
 color: #5b6b8c;
 font-size: 15px;
 line-height: 1;
}

.dm-chip-quitar:hover {
 background: rgba(61, 100, 212, 0.12);
 color: #b03a3a;
}

.dm-meta {
 display: flex;
 justify-content: space-between;
 gap: 10px;
 min-height: 14px;
 margin-top: 6px;
 color: #5b6b8c;
 font-size: 11px;
 font-weight: 700;
}

.dm-error-correo {
 color: #b03a3a;
}

.dm-aviso {
 display: none;
 margin-bottom: 16px;
 padding: 10px 14px;
 border-radius: 8px;
 font-size: 12px;
 font-weight: 700;
}

.dm-aviso.ok {
 display: block;
 background: #e8f5ec;
 color: #1e7b3c;
}

.dm-aviso.error {
 display: block;
 background: #fdecec;
 color: #b03a3a;
}

.dm-pie-fila {
 display: flex;
 align-items: center;
 gap: 12px;
 margin: 0 -20px -20px;
 padding: 14px 20px;
 border-top: 1px solid #d9dee8;
 background: linear-gradient(#f7f9fc, #eef2f8);
}

.dm-resumen {
 margin-right: auto;
 color: #5b6b8c;
 font-size: 11px;
 font-weight: 700;
 letter-spacing: 0.4px;
 text-transform: uppercase;
}

.dm-numero {
 color: #111;
 font-size: 14px;
 font-weight: 800;
}

.dm-acciones {
 display: flex;
 gap: 8px;
}

.dm-accion {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 height: 38px;
 padding: 0 16px;
 border: 0;
 border-radius: 8px;
 background-color: #3d64d4;
 background-image: linear-gradient(135deg, #4f7cec 0%, #3d64d4 100%);
 color: #fff;
 font-size: 11.5px;
 font-weight: 700;
 letter-spacing: 0.4px;
 text-transform: uppercase;
 white-space: nowrap;
 box-shadow: 0 4px 12px rgba(61, 100, 212, 0.25);
 transition: box-shadow 0.15s, background-color 0.15s;
}

.dm-accion:hover:not(:disabled) {
 background-color: #3554b8;
 background-image: none;
 color: #fff;
 box-shadow: 0 6px 16px rgba(61, 100, 212, 0.32);
}

.dm-accion:disabled {
 opacity: 0.4;
 box-shadow: none;
 cursor: not-allowed;
}

.dm-accion-secundaria {
 border: 1.5px solid #3d64d4;
 background: #fff;
 background-image: none;
 color: #3d64d4;
 box-shadow: none;
}

.dm-accion-secundaria:hover:not(:disabled) {
 background: #eef2f8;
 background-image: none;
 color: #2f55c4;
 box-shadow: none;
}

@media (max-width: 480px) {
 .modal-descarga-masiva {
  margin: 10px auto;
 }

 .dm-cabecera {
  padding: 12px 14px;
 }

 .dm-icono-titulo {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
 }

 .dm-titulo {
  font-size: 12px;
 }

 .dm-periodo {
  font-size: 10.5px;
  padding: 3px 8px;
 }

 .dm-cuerpo {
  padding: 14px;
 }

 .dm-pie-fila {
  flex-wrap: wrap;
  margin: 0 -14px -14px;
  padding: 12px 14px;
 }

 .dm-resumen {
  width: 100%;
 }

 .dm-acciones {
  width: 100%;
 }

 .dm-accion {
  flex: 1;
  justify-content: center;
  padding: 0 10px;
 }
}

.pie-totales-facturacion {
 padding: 12px 10px !important;
}

.contenedor-totales-facturacion {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: center;
 gap: 10px;
}

.registros-facturacion {
 color: #4a5468;
 font-size: 14px;
}

.totales-estado-facturacion {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 flex: 1 1 auto;
 gap: 8px;
}

.total-estado-facturacion {
 display: flex;
 align-items: center;
 gap: 10px;
 min-width: 165px;
 padding: 8px 16px 8px 10px;
 border: 1px solid #e3e6ec;
 border-radius: 8px;
 background: #fff;
 text-align: left;
}

.total-estado-facturacion.te-baja {
 --color-estado: #17A2B8;
 --fondo-estado: rgba(23, 162, 184, 0.12);
}

.total-estado-facturacion.te-pendiente,
.total-estado-facturacion.te-proceso {
 --color-estado: #CE9734;
 --fondo-estado: rgba(206, 151, 52, 0.14);
}

.total-estado-facturacion.te-aceptado {
 --color-estado: #1C4697;
 --fondo-estado: rgba(28, 70, 151, 0.10);
}

.total-estado-facturacion.te-otros {
 --color-estado: #6F42C1;
 --fondo-estado: rgba(111, 66, 193, 0.12);
}

.total-estado-facturacion > i {
 display: flex;
 align-items: center;
 justify-content: center;
 flex: 0 0 36px;
 height: 36px;
 border-radius: 50%;
 background: var(--fondo-estado);
 color: var(--color-estado);
 font-size: 15px;
}

.total-estado-facturacion > div {
 display: grid;
 grid-template-columns: auto auto;
 align-items: baseline;
 column-gap: 8px;
}

.total-estado-facturacion span {
 grid-column: 1 / -1;
 color: #6b7385;
 font-size: 10px;
 font-weight: bold;
 letter-spacing: 0.6px;
}

.total-estado-facturacion b {
 color: var(--color-estado);
 font-size: 20px;
 line-height: 1.15;
}

.total-estado-facturacion small {
 color: #2c3345;
 font-size: 12.5px;
 font-weight: bold;
 white-space: nowrap;
}

.total-estado-facturacion.te-vacio {
 opacity: 0.5;
}

.total-estado-facturacion.te-total {
 --color-estado: var(--pl-titulo, #143DD4);
 --fondo-estado: rgba(20, 61, 212, 0.10);
 margin-left: auto;
 border: 1.5px solid var(--color-estado);
 background: #fff;
}

.total-estado-facturacion.te-total b {
 font-size: 22px;
}

.cabecera-reportes-contables {
 text-align: left;
 padding-bottom: 0;
}

.meses-reportes-contables {
 display: flex;
 flex-wrap: wrap;
 align-items: flex-end;
 gap: 6px;
}

.mes-actual-contable {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 3px;
}

.mes-actual-contable > span {
 color: #143DD4;
 font-size: 9.5px;
 font-weight: bold;
 letter-spacing: 0.6px;
 white-space: nowrap;
}

.mes-reporte-contable {
 padding: 6px 10px;
 border: 1px solid #dfe3ec;
 border-radius: 20px;
 background: #fff;
 color: #4a5468;
 font-size: 11.5px;
 font-weight: bold;
 letter-spacing: 0.4px;
 transition: background 0.15s, color 0.15s, transform 0.15s;
}

.mes-reporte-contable:hover {
 background: #eaf0fd;
 color: #143DD4;
}

.mes-reporte-contable.activo {
 border-color: transparent;
 background: linear-gradient(135deg, #143DD4, #0f2a9e);
 color: #fff;
 box-shadow: 0 4px 10px rgba(20, 61, 212, 0.3);
}

.mes-reporte-contable.mas {
 width: 33px;
 height: 33px;
 padding: 0;
 border-color: #c9d4f7;
 border-radius: 50%;
 color: #143DD4;
}

.mes-reporte-contable.mas.abierto {
 border-color: transparent;
 background: #143DD4;
 color: #fff;
 transform: rotate(45deg);
}

.filtro-reportes-contables {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 margin-top: 10px;
 padding: 10px;
 border-radius: 10px;
 background: #f4f6fb;
}

.filtro-reportes-contables select {
 width: auto;
 border-radius: 5px !important;
 font-weight: bold;
}

.cuerpo-reportes-contables {
 padding-top: 15px;
 padding-bottom: 25px;
}

.titulo-reportes-contables {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
}

.empresa-reportes-contables {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 6px 24px;
 margin: 6px 0 18px;
 color: #4a5468;
 font-size: 13px;
}

.empresa-reportes-contables b {
 color: #2c3345;
}

.logo-titulo-contable {
 width: 50px !important;
 height: 50px !important;
 margin: 0;
}

.acciones-reportes-contables {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 10px;
 margin-bottom: 15px;
}

.boton-sire-contable {
 display: inline-flex;
 align-items: stretch;
 min-height: 40px;
 padding: 0;
 border: 0;
 border-radius: 6px;
 overflow: hidden;
 color: #fff;
 font-size: 13px;
 font-weight: bold;
 letter-spacing: 0.4px;
 transition: background 0.15s;
}

.boton-sire-contable.excel {
 background: #1d7a46;
}

.boton-sire-contable.excel:hover {
 background: #17663a;
}

.boton-sire-contable.txt {
 background: #143DD4;
}

.boton-sire-contable.txt:hover {
 background: #0f2fa8;
}

.boton-sire-contable.sistema {
 background: #23304f;
}

.boton-sire-contable.sistema:hover,
.open > .boton-sire-contable.sistema {
 background: #1a2440;
}

.menu-sistema-contable {
 min-width: 100%;
 padding: 6px 0;
 border-radius: 6px;
}

.menu-sistema-contable > li > a {
 padding: 9px 18px;
 font-weight: bold;
 letter-spacing: 0.5px;
}

.icono-sire-contable {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 44px;
 background: rgba(0, 0, 0, 0.15);
 font-size: 18px;
}

.texto-sire-contable {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 16px;
}

.texto-sire-contable b {
 padding: 2px 8px;
 border-radius: 4px;
 background: #fff;
 font-size: 11px;
 letter-spacing: 0.8px;
}

.boton-sire-contable.excel .texto-sire-contable b {
 color: #1d7a46;
}

.boton-sire-contable.txt .texto-sire-contable b {
 color: #143DD4;
}

.tabla-mes-contable {
 overflow: auto;
 border: 1px solid #dfe3ea;
 border-radius: 8px;
}

.tabla-resumen-contable {
 margin-bottom: 0;
 background: #fff;
}

.tabla-resumen-contable > thead > tr > th {
 padding: 4px 12px;
 border: 0 !important;
 background: #f3f4f7 !important;
 color: #6b7385;
 font-size: 11px;
 font-weight: bold;
 letter-spacing: 0.4px;
 text-align: right;
 vertical-align: bottom;
 white-space: nowrap;
}

.tabla-resumen-contable > thead > .estados-resumen-contable > th {
 padding-top: 12px;
 text-align: center;
}

.tabla-resumen-contable > thead > tr > th.tipo-resumen-contable {
 padding-left: 16px;
 text-align: left !important;
}

.tabla-resumen-contable > thead > .subcolumnas-resumen-contable > th {
 padding-bottom: 10px;
 border-bottom: 1px solid #c5cbd6 !important;
 color: #9aa1ad;
 font-size: 10px;
}

.tabla-resumen-contable > thead > .estados-resumen-contable > th {
 color: #4a5468;
}

.tabla-resumen-contable > tbody > tr > td,
.tabla-resumen-contable > tfoot > tr > td {
 padding: 13px 12px;
 border-top: 1px solid #eef0f4 !important;
 vertical-align: middle;
}

.tabla-resumen-contable > tbody > tr:first-child > td {
 border-top: 0 !important;
}

.tabla-resumen-contable > tbody > tr:hover > td {
 background: #fafbfd;
}

td.tipo-resumen-contable {
 padding-left: 16px !important;
 color: #2c3345;
 font-weight: bold;
 white-space: nowrap;
}

.cantidad-contable {
 padding-left: 24px !important;
 text-align: right;
 font-weight: bold;
}

.importe-contable {
 color: #4a5468;
 text-align: right;
 white-space: nowrap;
 font-variant-numeric: tabular-nums;
}

.cantidad-contable {
 color: #2c3345;
}

.cantidad-contable.ec-pendiente,
.cantidad-contable.ec-proceso { color: #e08e0b; }
.cantidad-contable.ec-baja,
.cantidad-contable.ec-otros { color: #dd4b39; }

.cantidad-contable.ec-total,
.importe-contable.ec-total {
 color: #2c3345;
 font-weight: bold;
}

.cantidad-contable.vacia,
.importe-contable.vacia {
 color: #c9ced8;
 font-weight: normal;
}

.tabla-resumen-contable > tfoot > tr > td {
 padding-top: 14px;
 padding-bottom: 14px;
 border-top: 2px solid #2c3345 !important;
 background: #fff;
 color: #2c3345;
 font-weight: bold;
}

.tabla-resumen-contable > tfoot > tr > td.cantidad-contable,
.tabla-resumen-contable > tfoot > tr > td.importe-contable {
 color: #2c3345;
}

.tabla-resumen-contable > tfoot > tr > td.vacia {
 color: #b3b9c5;
}

.tabla-movil-contable {
 display: none;
}

@media (max-width: 767px) {
 .meses-reportes-contables {
  flex-wrap: nowrap;
 }

 .meses-reportes-contables .mes-extra-contable {
  display: none !important;
 }

 .mes-reporte-contable {
  padding: 6px 8px;
  font-size: 11px;
  white-space: nowrap;
 }

 .acciones-reportes-contables > .boton-sire-contable,
 .acciones-reportes-contables > .btn-group,
 .acciones-reportes-contables > .btn-group > .boton-sire-contable {
  width: 100%;
 }

 .tabla-mes-contable > .tabla-resumen-contable {
  display: none;
 }

 .tabla-movil-contable {
  display: table;
  width: 100%;
  margin: 0;
  background: #fff;
  border-collapse: collapse;
 }

 .tabla-movil-contable > thead > tr > th {
  padding: 10px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #c5cbd6 !important;
  background: #f3f4f7 !important;
  color: #6b7385;
  font-size: 9.5px;
  font-weight: bold;
  letter-spacing: 0.2px;
  text-align: right !important;
  vertical-align: bottom;
  white-space: nowrap;
 }

 .tabla-movil-contable > thead > tr > th.tipo-movil-contable {
  padding-left: 8px !important;
  text-align: left !important;
 }

 .tabla-movil-contable > tbody > tr > td,
 .tabla-movil-contable > tfoot > tr > td {
  padding: 8px 4px !important;
  border: 0 !important;
  border-top: 1px solid #eef0f4 !important;
  text-align: right !important;
  vertical-align: middle !important;
 }

 .tabla-movil-contable > tbody > tr:first-child > td {
  border-top: 0 !important;
 }

 .tabla-movil-contable td.tipo-movil-contable {
  padding-left: 8px !important;
  color: #2c3345;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.2px;
  line-height: 1.25;
  text-align: left !important;
 }

 .celda-movil-contable > b {
  display: block;
  color: #2c3345;
  font-size: 13px;
  line-height: 1.2;
 }

 .celda-movil-contable > small {
  display: block;
  color: #6b7385;
  font-size: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
 }

 .tabla-movil-contable .celda-movil-contable.ec-pendiente > b,
 .tabla-movil-contable .celda-movil-contable.ec-proceso > b {
  color: #e08e0b;
 }

 .tabla-movil-contable .celda-movil-contable.ec-baja > b,
 .tabla-movil-contable .celda-movil-contable.ec-otros > b {
  color: #dd4b39;
 }

 .tabla-movil-contable .celda-movil-contable.total-movil-contable > small {
  color: #2c3345;
  font-weight: bold;
 }

 .tabla-movil-contable tr > td.celda-movil-contable.vacia > b,
 .tabla-movil-contable tr > td.celda-movil-contable.vacia > small {
  color: #c9ced8;
  font-weight: normal;
 }

 .tabla-movil-contable > tfoot > tr > td {
  border-top: 2px solid #2c3345 !important;
  font-weight: bold;
 }

 .tabla-movil-contable.amplia > thead > tr > th {
  padding: 11px 8px !important;
  font-size: 10.5px;
 }

 .tabla-movil-contable.amplia > tbody > tr > td,
 .tabla-movil-contable.amplia > tfoot > tr > td {
  padding: 10px 8px !important;
 }

 .tabla-movil-contable.amplia td.tipo-movil-contable {
  font-size: 11px;
 }

 .tabla-movil-contable.amplia .celda-movil-contable > b {
  font-size: 16px;
 }

 .tabla-movil-contable.amplia .celda-movil-contable > small {
  font-size: 11.5px;
 }

 .tabla-movil-contable > tfoot > tr > td.celda-movil-contable:not(.vacia) > b,
 .tabla-movil-contable > tfoot > tr > td.celda-movil-contable:not(.vacia) > small {
  color: #2c3345;
  font-weight: bold;
 }
}

.cabecera-contabilidad {
 text-align: center;
}

.pestanas-contabilidad {
 text-align: left;
}

.pestana-contabilidad.activa {
 background-color: #111BEC !important;
}

.contador-pestana-contabilidad {
 display: inline-block;
 margin-left: 6px;
 padding: 1px 8px;
 border-radius: 10px;
 background: rgba(255, 255, 255, 0.25);
 font-size: 11px;
}

.acciones-contabilidad {
 text-align: right;
}

.acciones-contabilidad .btn {
 margin-left: 6px;
}

.oculto-contabilidad {
 display: none !important;
}

.columna-cuenta-contabilidad {
 width: 12%;
}

.columna-estado-contabilidad {
 width: 1%;
 text-align: center;
}

.columna-accion-contabilidad {
 width: 1%;
}

.codigo-contabilidad {
 font-weight: bold;
 letter-spacing: 0.5px;
}

.inactiva-contabilidad td {
 color: #9aa1ad;
}

.estado-contabilidad {
 display: inline-block;
 padding: 2px 10px;
 border-radius: 10px;
 background: #eef1f6;
 color: #6b7385;
 font-size: 11px;
 font-weight: bold;
 letter-spacing: 0.4px;
}

.estado-contabilidad.activo {
 background: #e3f6ec;
 color: #00a65a;
}

.boton-accion-contabilidad {
 width: 45px;
 border: 0;
 background-color: transparent;
 color: #9aa1ad;
 font-size: 16px;
}

.boton-accion-contabilidad.btnEditarCuentaContable {
 color: #0B57DA;
 font-size: 14px;
}

.boton-accion-contabilidad.desactivar {
 color: #00a65a;
}

.columna-concepto-contabilidad {
 width: 28%;
}

.columna-cuenta-asiento-contabilidad {
 width: 18%;
}

.tabla-asiento-contabilidad > tbody > tr > td {
 vertical-align: middle;
}

.concepto-contabilidad {
 font-weight: bold;
}

.separador-contabilidad td {
 background: #eaf0fd;
 color: #143DD4;
 font-size: 11px;
 font-weight: bold;
 letter-spacing: 0.6px;
}

.cuenta-asiento-contabilidad {
 font-weight: bold;
 border-radius: 5px !important;
}

.cuenta-asiento-contabilidad.cuenta-invalida-contabilidad {
 border-color: #dd4b39;
 color: #dd4b39;
}

.pie-asiento-contabilidad {
 text-align: right;
 padding-top: 10px;
}

.pie-asiento-contabilidad .btn {
 width: 130px;
}

.titulo-modal-contabilidad {
 text-align: center;
 font-size: 22px;
 font-weight: bold;
}

.alinear-izquierda-contabilidad {
 text-align: left;
}

.alinear-derecha-contabilidad {
 text-align: right;
}

.boton-modal-contabilidad {
 width: 130px;
}

@media (max-width: 767px) {
 .acciones-contabilidad {
  text-align: left;
  margin-top: 10px;
 }

 .acciones-contabilidad .btn {
  margin-left: 0;
  margin-right: 6px;
 }

 .columna-concepto-contabilidad,
 .columna-cuenta-asiento-contabilidad {
  width: auto;
 }
}

.crp {
 padding: 16px 18px;
 color: #1f2937;
}

.crp-top {
 display: flex;
 justify-content: space-between;
 align-items: flex-end;
 flex-wrap: wrap;
 gap: 12px;
 padding: 4px 2px 14px;
 border-bottom: 1px solid #e5e7eb;
 margin-bottom: 14px;
}

.crp-top h2 {
 margin: 0;
 color: #143DD4;
 font-size: 22px;
 font-weight: bold;
}

.crp-empresa {
 max-width: 520px;
}

.crp-filtros {
 display: flex;
 flex-wrap: wrap;
 align-items: flex-end;
 gap: 10px;
 margin-bottom: 14px;
 padding: 10px 12px;
 border: 1px solid #e5e7eb;
 border-radius: 10px;
 background: #f4f6fb;
}

.crp-f {
 display: flex;
 flex-direction: column;
}

.crp-f-cli { flex: 1 1 300px; min-width: 240px; }
.crp-f-sede { flex: 0 1 170px; }
.crp-f-tipo { flex: 0 1 250px; }
.crp-f-sal { flex: 0 1 170px; }
.crp-f-fecha { flex: 0 1 125px; }

.crp-f label {
 margin-bottom: 3px;
 color: #6b7280;
 font-size: 11px;
 font-weight: 600;
}

.crp .crp-f .form-control {
 height: 34px !important;
 border: 1px solid #d1d5db !important;
 border-radius: 5px !important;
 box-shadow: none !important;
 font-weight: 600;
}

.crp .crp-f .select2-container {
 width: 100% !important;
}

.crp .crp-f .select2-container .select2-selection--single {
 height: 34px !important;
 border: 1px solid #d1d5db !important;
 border-radius: 5px !important;
}

.crp .crp-f .select2-container .select2-selection__rendered {
 line-height: 32px !important;
 font-weight: 600;
}

.crp .crp-f .select2-container .select2-selection__arrow {
 height: 32px !important;
}

.crp-botones {
 display: flex;
 gap: 6px;
}

.crp-botones .btn {
 height: 34px;
 border-radius: 5px;
 font-weight: 600;
}

.crp-btn-buscar {
 padding: 0 16px;
 border: none;
 background: linear-gradient(135deg, #143DD4, #0f2a9e);
 color: #fff;
}

.crp-btn-buscar:hover,
.crp-btn-buscar:focus {
 background: #0f2a9e;
 color: #fff;
}

.crp-btn-quitar {
 border: 1px solid #d1d5db;
 background: #fff;
 color: #6b7280;
}

.cr-rango {
 margin: -4px 0 10px 2px;
 color: #6b7280;
 font-size: 12.5px;
}

.cr-rango b {
 color: #1f2937;
}

.cr-kpis {
 display: grid;
 grid-template-columns: repeat(5, minmax(0, 1fr));
 gap: 12px;
 margin-bottom: 14px;
}

.cr-kpi {
 padding: 12px 16px;
 border: 1px solid #e5e7eb;
 border-radius: 8px;
 background: #fff;
}

.cr-kpi span {
 display: block;
 color: #6b7280;
 font-size: 11px;
 font-weight: 600;
 letter-spacing: 0.5px;
 text-transform: uppercase;
}

.cr-kpi b {
 display: block;
 margin-top: 2px;
 color: #1f2937;
 font-size: 24px;
 font-weight: bold;
 font-variant-numeric: tabular-nums;
 white-space: nowrap;
}

.cr-kpi b small {
 margin-right: 3px;
 color: #6b7280;
 font-size: 13px;
 font-weight: 600;
}

.cr-kpi.saldo {
 border-color: #f5d9a8;
 background: #fff8ec;
}

.cr-kpi.saldo b {
 color: #b45309;
}

.cr-aviso {
 margin-bottom: 12px;
 padding: 8px 12px;
 border: 1px solid #f5d9a8;
 border-radius: 6px;
 background: #fff8ec;
 color: #92400e;
 font-size: 12.5px;
}

.cr-tabla-wrap {
 max-height: 520px;
 overflow: auto;
 border: 1px solid #e5e7eb;
 border-radius: 8px;
}

.cr-tabla {
 width: 100%;
 margin: 0;
 font-size: 13.5px;
 font-variant-numeric: tabular-nums;
}

.cr-tabla thead th {
 position: sticky;
 top: 0;
 z-index: 1;
 padding: 8px 12px;
 border-bottom: 1px solid #e5e7eb;
 background: #f3f4f6;
 color: #4b5563;
 font-size: 10.5px;
 font-weight: 600;
 text-align: left;
 text-transform: uppercase;
 white-space: nowrap;
}

.cr-tabla td {
 padding: 9px 12px;
 border-top: 1px solid #f0f1f4;
 color: #374151;
 vertical-align: middle;
 white-space: nowrap;
}

.cr-tabla tbody tr:hover td {
 background: #f8f9fc;
}

.cr-tabla .n,
.cr-tabla thead th.n {
 text-align: right;
}

.cr-tabla .cr-cod { color: #6b7280; }
.cr-tabla .cr-nom { color: #1f2937; font-weight: 600; }
.cr-tabla .cr-pend { color: #b45309; font-weight: bold; }
.cr-tabla .cr-ok { color: #15803d; font-weight: bold; }
.cr-tabla .cr-saldo { color: #1f2937; font-weight: 600; }

.cr-tabla tr.cr-grupo td {
 padding-top: 10px;
 border-top: 1px solid #d5d9e2;
 background: #f9fafb;
 color: #1f2937;
 font-weight: bold;
}

.cr-tabla tr.cr-grupo td span {
 margin-left: 8px;
 color: #6b7280;
 font-weight: normal;
}

.cr-tabla tr.cr-ant td {
 background: #fbfbfd;
 color: #6b7280;
 font-style: italic;
}

.cr-tabla tr.cr-ant td.cr-saldo {
 color: #1f2937;
 font-style: normal;
}

.cr-tabla tr.cr-pago td { color: #15803d; }
.cr-tabla tr.cr-pago td.cr-saldo { color: #1f2937; }

.cr-tabla tr.cr-sub td {
 border-top: 1px dashed #d1d5db;
 color: #6b7280;
 font-size: 12.5px;
}

.cr-tabla tr.cr-sub td:first-child {
 text-align: right;
}

.cr-tabla .cr-lupa {
 margin-left: 6px;
 padding: 0;
 border: none;
 background: transparent;
 color: #143DD4;
 font-size: 12px;
 cursor: pointer;
}

.cr-tabla .cr-desc {
 margin-left: 4px;
 color: #d97706;
 cursor: help;
}

.cr-tabla tfoot td {
 position: sticky;
 bottom: 0;
 border-top: 2px solid #1f2937;
 background: #fff;
 color: #1f2937;
 font-size: 14px;
 font-weight: bold;
}

.cr-vacio {
 padding: 18px 16px;
 border: 1px dashed #d1d5db;
 border-radius: 6px;
 background: #f4f6fb;
 color: #4b5563;
 font-size: 13px;
 text-align: center;
}

@media (max-width: 991px) {
 .cr-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
 .crp-f-cli { flex-basis: 100%; }
 .crp-f-sede, .crp-f-tipo, .crp-f-sal, .crp-f-fecha { flex: 1 1 45%; }
 .crp-botones { width: 100%; }
 .crp-botones .btn { flex: 1; }
}
