:root {
  --bg-main: #f4f4f4;
  --bg-surface: #ffffff;
  --bg-menu: #2e2e2e;
  --bg-hover: #3a3a3a;

  --text-primary: #1f1f1f;
  --text-secondary: #6b6b6b;
  --text-menu: #eaeaea;
  --text_menu1: #1f1f1f;

  --border-light: #dcdcdc;
  --border-strong: #b5b5b5;

  --accent: #4a4a4a;
  --shadow: rgba(0, 0, 0, 0.08);
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
}

/* HEADER / BRANDING */

.header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 4px var(--shadow);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 100px;
  height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  padding: 5px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding-top: 10px;
  padding-left: 4px;
}


.branding h1 {
  font-size: 18px;
}

.branding p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* MENÚ */

.menu {
  background-color: var(--bg-menu);
}

.menu ul {
  list-style: none;
  display: flex;
}

.menu li {
  flex: 1;
}

.menu a {
  display: block;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text-menu);
  font-weight: 500;
  transition: background 0.2s;
}

.menu a:hover {
  background-color: var(--bg-hover);
}

.menu a.active {
  background-color: var(--accent);
}

/* CONTENIDO */

.container {
  padding: 24px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px var(--shadow);
}

.card h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

/* BOTONES */

.button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 5px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

/* TABLA */

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

th {
  background: #eeeeee;
}

tr:hover {
  background: #f7f7f7;
}

/* FORMULARIOS */

input, select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.login-campo
{
  margin-bottom: 10px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

/* LOGIN */

.login-body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 360px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 10px var(--shadow);
}

.login-card h1 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.login-card p {
  text-align: center;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .menu ul {
    flex-direction: column;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }
}

/* FOOTER */

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: 10px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 12px;
  color: var(--text-secondary);

  box-shadow: 0 -2px 4px var(--shadow);
  z-index: 100;
}

.footer-company {
  font-weight: 500;
}

.footer-user {
  font-style: italic;
}

label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
/* ======================
   SIDEBAR (MENÚ VERTICAL)
   ====================== */

.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 220px;
  background-color: var(--bg-menu);
  transition: width 0.3s ease;
}

.sidebar.collapsed {
  width: 35px;
}

.sidebar ul {
  list-style: none;
}

.sidebar a {
  display: block;
  padding: 14px 16px;
  color: var(--text-menu);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.sidebar a:hover {
  background-color: var(--bg-hover);
}

.sidebar a.active {
  background-color: var(--accent);
}

/* TEXTO OCULTO AL COLAPSAR */

.sidebar.collapsed a span {
  display: none;
}

/* BOTÓN TOGGLE */

.sidebar-toggle {
  background: var(--bg-hover);
  color: white;
  border: none;
  width: 100%;
  padding: 12px;
  cursor: pointer;
  font-size: 14px;
}

/* CONTENIDO */

.main-content {
  flex: 1;
  background: var(--bg-main);
}

/* AJUSTE FOOTER CON SIDEBAR */

.footer-bar {
  left: 0;
  padding-left: 20px;
  transition: padding-left 0.3s ease;
}

.sidebar.collapsed ~ .main-content .footer-bar {
  padding-left: 35px;
}
/* GRID DE TARJETAS */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* TARJETA GENÉRICA */

.info-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* TÍTULO TARJETA */

.info-card-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

/* FILAS DE INFO */

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.info-row .label {
  color: #666;
}

.info-row .value {
  font-weight: 500;
}

/* HEADER DE MÓDULO */

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* ACCIONES */

.module-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: var(--bg-hover);
  border: none;
  color: var(--text-menu);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.icon-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.icon-btn i {
  pointer-events: none;
}

/* ICONO EDITAR EN TARJETA */

.banco-card {
  position: relative;
}

.edit-card {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--text-menu);
  background: var(--bg-hover);
  padding: 6px;
  border-radius: 3px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.edit-card:hover {
  background: var(--accent);
  color: #fff;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

/* CONTENEDOR CON SCROLL */

.list-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

/* TARJETA LISTA */

.list-card {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  background: #fff;
}

.list-card:last-child {
  border-bottom: none;
}

.list-card:hover {
  background: var(--bg-main);
}

/* ETIQUETA */

.tag {
  min-width: 90px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  border-radius: 4px;
  margin-right: 12px;
  background: var(--bg-hover);
  color: var(--text-menu);
}

/* INFO CLIENTE */


.cliente-meta {
  font-size: 12px;
  color: #666;
}

/* TOOLS DEL HEADER */

.module-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

#buscaCliente {
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  width: 180px;
  margin-top: 10px;
}

/* TARJETA CON ICONO EDITAR */

.cliente-card {
  position: relative;
}

.cliente-card .edit-card {
  margin-left: 8px;
  color: var(--text-menu);
  background: var(--bg-hover);
  padding: 6px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.2s ease;
}

.cliente-card .edit-card:hover {
  background: var(--accent);
  color: #fff;
}

/* FILTROS HEADER CLIENTES */

#filtroSituacion {
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fff;
}

/* =========================
   TABS DETALLE CLIENTE
   ========================= */

.tabs-menu {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.tabs-menu .tab-link {
  padding: 10px 14px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text_menu1);
  border-bottom: 2px solid transparent;
}

.tabs-menu .tab-link:hover {
  background: var(--bg-hover);
  color: var(--text-menu);
}

.tabs-menu .tab-link.active {
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* CONTENIDO */

.tab-content {
  padding: 12px 4px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.contactos-layout {
  display: flex;
  gap: 16px;
}

.contactos-lista {
  width: 35%;
  border-right: 1px solid #ccc;
}

.contactos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contactos-scroll {
  max-height: 350px;
  overflow-y: auto;
}

.contacto-card {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.contacto-card.active {
  background-color: #f2f2f2;
}

.btn-nuevo {
  font-size: 0.9em;
}

/*#########################################*/

.tab-link.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.form-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.form-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}



/*Modulo clientes*/
/* CONTENEDOR SCROLL */
#clientesScroll {
  max-height: 420px;
  overflow-y: auto;
  margin-top: 14px;
}

/* TARJETA HORIZONTAL */
.cliente-item {
/*  display: flex;
  justify-content: space-between;
  align-items: center;*/
  display: grid;
  grid-template-columns: 0.6fr 4.4fr 2fr 2fr 1fr;
  gap: 5px;
  padding: 5px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  margin-bottom: 5px;
  background: #fff;
  font-size: 12px;
  vertical-align: center;
}


.cliente-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* INFO */
.cliente-info small {
  color: #666;
}

.cliente-etiqueta {
  font-size: 12px;
  color: #555;
  padding: 4px 8px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #f9f9f9;
  white-space: nowrap;
  min-width: 50px;
}

/* HEADER DE LA CARD */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

/* HERRAMIENTAS */
.clientes-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CAMPO DE BÚSQUEDA */
#buscarCliente {
  padding: 6px 8px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 13px;
}

/* CONTENEDOR DE TABS */
.cliente-tabs {
  display: flex;
  border-bottom: 1px solid #dcdcdc;
  margin-bottom: 12px;
  gap: 2px;
}

/* BOTÓN TAB */
.tab-btn {
  background: #f5f5f5;
  border: 1px solid #dcdcdc;
  border-bottom: none;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #444;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* TAB ACTIVO */
.tab-btn.active {
  background: #ffffff;
  font-weight: 600;
  color: #222;
  border-bottom: 1px solid #ffffff;
}

/* HOVER */
.tab-btn:hover:not(.active):not(.disabled) {
  background: #eaeaea;
}

/* TAB DESHABILITADO */
.tab-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* LISTA DE CONTCATOS*/

/* CONTENEDOR SCROLL */
#contactosScroll {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

/* TARJETA CONTACTO */
.contacto-item {
  display: flex;
  align-items: center;
  padding: 2px 2px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 12px;
  background: #fff;
}

.contacto-item:hover {
  background: #f7f7f7;
}

/* COLUMNAS */
.contacto-col {
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ANCHOS */
.contacto-nombre   { width: 22%; font-weight: 600; }
.contacto-cargo    { width: 18%; }
.contacto-telefono { width: 15%; }
.contacto-correo   { width: 25%; }
.contacto-accion   { width: 20%; text-align: right; }

 /* TERMINA LISTA DE CONTACTOS*/

/*LISTA DE DATOS DE FACTURACIÓN*/
#facturacionScroll {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.factura-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
}

.factura-item:hover {
  background: #f7f7f7;
}

.factura-col {
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.factura-rfc     { width: 20%; font-weight: 600; }
.factura-razon   { width: 40%; }
.factura-default { width: 20%; }
.factura-accion  { width: 20%; text-align: right; }

/*TERMINA LISTA DE DATOS DE FACTURACIÓN*/
.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}
.spinnermini {
  width: 15px;
  height: 15px;
  border: 2px solid #e0e0e0;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top: 2px solid #555;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/*COntratos*/

#contratosScroll {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.contratos-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
}

.contratos-item:hover {
  background: #f7f7f7;
}

.contratos-col {
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contratos-contrato { width: 10%; font-weight: 600; }
.contratos-producto { width: 50%; }
.contratos-vigencia { width: 10%; text-align: right; }
.contratos-periodo  { width: 10%; }
.contratos-sit      { width: 10%; }
.contratos-accion   { width: 10%;}

/* fin COntratos*/

/*Productos*/
#productossScroll {
  max-height: 350px;
  overflow-y: auto;
}

.card-producto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
}


.producto-info {
  display: grid;
  grid-template-columns: 1fr 9fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.producto-clave {
  font-size: 12px;
  color: #555;
}

.producto-concepto {
  font-size: 12px;
  color: #333;
}

.producto-costo {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: #222;
}

/*Fin Productos*/

/*Extras mios*/
.textsub
{
  color: var(--text-secondary);
  font-size: 11px;
}
#formProducto
{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
}
.formcotiza
{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
}

#formEmpresa
{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
}
#formCliente
{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
}
#formContacto
{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
}
#formFacturacion
{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
}
#formContratos
{
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 5px;
}

#continsumos
{
  display: grid;
  grid-template-columns: 80% 20%;
  gap: 5px;
  margin-bottom: 10px;
}
.prod_cotiz
{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 10px;
}

/*Termina Extras mios*/

/*cotizacion*/
#insumosScroll {
  max-height: 350px;
  overflow-y: auto;
}

.card-insumos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
}


.insumo-info {
  display: grid;
  /*grid-template-columns: 120px 1fr 120px;*/
  grid-template-columns: 1fr 9fr 1fr 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.insumo-clave {
  font-size: 13px;
  color: #555;
  width: 100%;
}

.insumo-concepto {
  font-size: 14px;
  color: #333;
  width: 100%;
}

.insumo-costo {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  color: #222;
  width: 100%;
}

.insumo-cantidad {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  color: #222;
  width: 100%;
}

.cotiz-info {
  display: grid;
  grid-template-columns: 1fr 10fr 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
}


.cotiza-clave {
  font-size: 13px;
  color: #555;
  width: 100%;
}

.cotiza-concepto {
  font-size: 14px;
  color: #333;
  width: 100%;
}

.cotiza-costo {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  width: 100%;
  padding-right: 5px;
  text-align: right;
}


/*Fin cotizacion*/

/*REmision*/
.inline-control {
  display: flex;
  gap: 8px;
}

.remision-cliente{
  display: grid;
  grid-template-columns: 10fr 2fr;
  padding: 8px 10px;
  align-items: center;

}
.remision-cliente,
.remision-productos {
  margin-top: 20px;
}

.tabla-remision {
  border: 1px solid #ddd;
  margin-top: 10px;
}

.tabla-header,
.tabla-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 140px;
  padding: 8px 10px;
  align-items: center;
}

.tabla-header {
  background: #f5f5f5;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.tabla-row {
  border-bottom: 1px solid #eee;
}

.tabla-row input {
  width: 70px;
}

.remision-resumen {
  margin-top: 16px;
  width: 320px;
  margin-left: auto;
}

.remision-resumen div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.remision-resumen .total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid #ccc;
  padding-top: 6px;
}

.remision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.remision-acciones {
  display: flex;
  gap: 10px;
}
/*Termina REmision*/

/*REmisión contratos*/
.lista-scroll {
  max-height: 750px;
  overflow-y: auto;
  border: 1px solid #dcdcdc;
  padding: 6px;
  border-radius: 6px;
  background: #fafafa;
}

.tarjeta-remisionc {

  border: 1px solid #dcdcdc;
  border-radius: 6px;
  background: #ffffff;

  /*margin-bottom: 4px;*/
  padding: 4px 10px;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.remisionc-header {
display: grid;
  grid-template-columns: 10fr 1fr 1fr;
  gap: 5px;
 /*
  display: flex;
  justify-content: space-between;
  align-items: center;
*/
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 1px;
}

.remisionc-cliente {

  font-weight: bold;
  font-size: 14px;
}

.remisionc-rem {

  /*font-weight: bold;*/
  font-size: 14px;
}

.remisionc-fiscales {

  font-size: 10px;
  color: #666;
  font-weight: 300;
}

.remisionc-body {
  display: grid;
  grid-template-columns: 1fr 8fr 1.5fr 1.5fr;
  gap: 5px;
  padding: 1px 0;
}
.remisionc-cantidad
{

}
.remisionc-concepto {

  font-size: 13px;
  color: #333;
}

.remisionc-unitario
 {
  text-align: right;
  font-size: 13px;
  color: #333;
 }

.remisionc-subtotalunitario
{
  text-align: right;
  font-size: 13px;
  color: #333;
}

.remisionc-footer {

  display: flex;
  justify-content: flex-end;
  gap: 20px;

  border-top: 1px solid #eeeeee;
  padding-top: 1px;

  font-size: 13px;
  font-weight: bold;
}
.remisionc-opciones
{
  padding:10px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
}

#aplicarfecha
{
  padding: 0px !important;
}
/*Termina REmisión contratos*/
/*Consultar remisiones*/
.consultar-filtros {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.filtro-fechas,
.filtro-busqueda {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consultar-acciones {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
/*
.consultar-accionesopc {

  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 2fr 1fr 4.5fr;
  gap: 12px;
  margin-bottom: 10px;
}*/

.consultar-scroll {
  /*max-height: 420px;*/
  max-height: 620px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 6px;
  background: #fafafa;
}

.tarjeta-consultar {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
}

.consultar-header {
/*  display: flex;
  justify-content: space-between;
 */
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.consultar-header-left {
  /*display: flex;*/
  display: grid;
  grid-template-columns: 1fr 11fr;
  gap: 10px;
  /*align-items: flex-start;*/
}

.consultar-header-right {

  display: grid;
  grid-template-columns: 1.5fr 3fr 1.5fr 2fr 2fr 3fr;
  gap: 10px;
  font-size: 12px;
  padding-left: 10px;
  padding-top: 5px;
}

.consultar-cliente {
  font-weight: bold;
  font-size: 12px;
}

.consultar-fiscales {
  font-size: 10px;
  color: #666;
}

.consultar-detalle {
  margin-top: 8px;
}

.detalle-header,
.detalle-row {
  display: grid;
  grid-template-columns: 60px 1fr 140px 140px;
  padding: 4px 0;
  font-size: 13px;
}

.detalle-header {
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.consultar-footer {
  margin-top: 8px;
  border-top: 1px solid #eee;
  padding-top: 6px;
}

.consultar-total-letra {
  font-size: 12px;
  margin-bottom: 4px;
}

.consultar-totales {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 13px;
}

.consultar-totales .total {
  font-weight: bold;
}

.consultar-plegar
{

}

.consultar-situacion {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
  width: 1fr;
}

/* Estados visuales */

/*.situacion-porcobrar {*/
.situacion-pagada {
  background: #e6f4ea;
  color: #1e7e34;
}

/*.situacion-pagada {*/
.situacion-porcobrar{
  background: #e7f3ff;
  color: #0b5ed7;
}

.situacion-cancelada {
  background: #fdecea;
  color: #b02a37;
}

.situacion-pendiente {
  background: #fff3cd;
  color: #856404;
}

.remision-numero
{
  font-weight: bold;
  color: red;
  font-size: 12px;
  width: 100%;
  text-align: center;
}
/*Fin Consultar remisiones*/
/*MOdal
{
*/
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 999;
}

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);

  width: 85%;
  max-width: 1100px;
  height: 85vh;

  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);

  display: none;
  flex-direction: column;

  z-index: 1000;
  transition: all 0.2s ease;
  overflow: hidden;
}

.modal-container.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 16px;
  border-bottom: 1px solid #e5e5e5;

  font-weight: bold;

  flex-shrink: 0;
}

.modal-body {
  max-height: 80vh;
  padding: 16px;

  flex: 1;

  overflow-y: auto;

}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.modal-close:hover {
  color: red;
}
/*termina MOdal
}
*/

/*edocuenta*/

.estado-filtros{
  display:flex;
  justify-content:space-between;
  margin-bottom:12px;
}

.filtro-banco{
  display:flex;
  align-items:center;
  gap:8px;
}

.filtro-banco select{
  min-width:110px;
}

.filtro-tipo{
  display:flex;
  align-items:center;
  gap:8px;
}

.estado-scroll{
  border:1px solid #ddd;
  border-radius:6px;
  max-height:600px;
  overflow-y:auto;
}

.button-file{
  position:relative;
  overflow:hidden;
  cursor:pointer;
}

.button-file input[type=file]{

  position:absolute;

  top:0;
  left:0;

  width:100%;
  height:100%;

  opacity:0;

  cursor:pointer;
}

/* HEADER */

.estado-header{
  display:grid;
  grid-template-columns:
        100px
        90px
        1fr
        95px
        95px
        95px
        25px
        25px
        25px;

  background:#f3f3f3;
  font-weight:bold;
  padding:8px;
  border-bottom:1px solid #ddd;
}

/* ROW */
.c1{
grid-area: bco;
}
.c2{
grid-area: fcha;
}
.c3{
grid-area: concep;
}

.c4 {
  grid-area: opcs;
  text-align: center;
  padding: 0;
  margin-left: 4px;
  height: 25px;
}

.c4-1 {
  grid-area: opcs1;
  text-align: center;
  padding: 0;
  margin-left: 4px;
  height: 25px;
}

.c7 {
  grid-area: opcs2;
  text-align: center;
  padding: 0;
  margin-left: 4px;
  height: 25px;
}


.c5
{
  grid-area: obs;
  padding-top: 4px;
/*  border-top: 1px solid #eee;*/
}
.c6
{
  grid-area: fols;
  padding-top: 4px;
  color:#0b5ed7;
/*  border-top: 1px solid #eee;*/
}

.estado-row{
  display:grid;
  grid-template-columns:
        100px
        90px
        1fr
        95px
        95px
        95px
        25px
        25px
        25px;
  grid-template-rows: auto;
  grid-template-areas: "bco fcha concep car abo sal opcs opcs1 opcs2" "obs obs obs fols fols fols fols fols fols";
  padding:8px;
  border-bottom:1px solid #eee;
  font-size:12px;
}

.estado-row:hover{
  background:#fafafa;
}

/* valores */

.cargo{
  grid-area: car;
  color:#c0392b;
  text-align:right;

}

.abono{
  grid-area: abo;
  color:#1e8449;
  text-align:right;
}

.saldo{
  grid-area: sal;
  font-weight:bold;
  text-align:right;
}
/* termina edocuenta*/

/*pagos*/
.pagar_datos
{
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
/*fin pagos*/

/*Detalle de pagos por contrato*/
.pagos-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 13px;
}

.pagos-item:hover {
  background: #f7f7f7;
}

.pagos-col {
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pagos-fecha { width: 40%; }
.pagos-remision { width: 25%; }
.pagos-total { width: 15%; text-align: right; }
.pagos-sit  { width: 15%;  font-weight: 600;}

/*Detalle de pagos por contrato*/

/*dash*/
.dash-filtros{
  display:flex;
  gap:10px;
  margin-bottom:12px;
}

.dash-kpis{
  display:flex;
  gap:10px;
  margin-bottom:15px;
}

.kpi{
  flex:1;
  padding:10px;
  border-radius:6px;
  color:#fff;
}

/*.kpi.ingresos{ background:#1e8449; }
.kpi.egresos{ background:#c0392b; }
.kpi.balance{ background:#2c3e50; }*/
.kpi.ingresos{ background:#0e6180; }
.kpi.egresos{ background:#790707; }
.kpi.balance{ background: #414242; }
/*dash*/