/* ACH Gestión – estilo de panel (barra lateral azul, tarjetas blancas) */
:root {
  --lateral: #10302e;
  --lateral-2: #17403d;
  --lateral-texto: #cfe3df;
  --lateral-activo: #0f8a7e;
  --fondo: #edf2f1;
  --tarjeta: #ffffff;
  --borde: #e3e7ef;
  --texto: #1f2937;
  --texto-2: #6b7280;
  --azul: #0f8a7e;
  --azul-osc: #0b6b62;
  --rojo: #dc3545;
  --naranja: #e8590c;
  --verde: #2f9e44;
  --ancho-lateral: 256px;
  --alto-topbar: 54px;
  --radio: 6px;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --letra: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body.app { margin: 0; background: var(--fondo); color: var(--texto); font: 14px/1.45 var(--letra); }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Barra lateral ---------- */
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--ancho-lateral); z-index: 50;
  background: var(--lateral); color: var(--lateral-texto);
  display: flex; flex-direction: column; overflow-y: auto; transition: transform .2s ease;
}
.app-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: var(--alto-topbar);
  border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none !important; flex: none;
}
.app-brand-logo { background: var(--azul); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .5px; padding: 3px 7px; border-radius: 4px; }
.app-brand-texto { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.app-menu-buscar { margin: 12px 12px 6px; position: relative; }
.app-menu-buscar .ic { position: absolute; left: 10px; top: 8px; width: 14px; height: 14px; color: #86aba5; }
.app-menu-buscar input {
  width: 100%; height: 30px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .12);
  background: var(--lateral-2); color: #fff; padding: 0 12px 0 30px; font: inherit; font-size: 12.5px; outline: none;
}
.app-menu-buscar input::placeholder { color: #86aba5; }
.app-menu { padding: 6px 8px 16px; flex: 1; }
.app-menu-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radio);
  color: var(--lateral-texto); font-size: 13.5px; cursor: pointer; list-style: none; user-select: none;
}
.app-menu-link::-webkit-details-marker { display: none; }
.app-menu-link span:first-of-type { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-menu-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.app-menu-link.activo { background: var(--lateral-activo); color: #fff; }
.app-chevron { width: 13px; height: 13px; transition: transform .15s; opacity: .7; }
details[open] > summary .app-chevron { transform: rotate(-90deg); }
.app-submenu { padding: 2px 0 6px 26px; }
.app-submenu-link {
  display: flex; align-items: center; padding: 6px 10px; border-radius: var(--radio);
  color: #a9c9c3; font-size: 13px; position: relative;
}
.app-submenu-link span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-submenu-link::before { content: ""; position: absolute; left: -10px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #4f7a74; transform: translateY(-50%); }
.app-submenu-link:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .05); }
.app-submenu-link.activo { color: #fff; background: rgba(15, 138, 126, .28); }
.app-submenu-link.activo::before { background: #5eead4; }
.app-submenu-grupo > summary { list-style: none; cursor: pointer; user-select: none; gap: 6px; }
.app-submenu-grupo > summary::-webkit-details-marker { display: none; }
.app-submenu-titulo { font-weight: 600; }
.app-submenu-sub { padding: 0 0 2px 16px; }
.cob-pend-check { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 12px; cursor: pointer; }
.app-contador { background: var(--azul); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 10px; }
.app-sidebar-pie { padding: 12px; font-size: 11.5px; color: #6f9791; text-align: center; border-top: 1px solid rgba(255, 255, 255, .06); flex: none; }
.app-sidebar a.app-version, .app-sidebar a.app-version:link, .app-sidebar a.app-version:visited { color: #8fb5ae; font-size: 11px; }
.app-sidebar a.app-version:hover { color: #fff; }

/* ---------- Barra superior ---------- */
.app-principal { margin-left: var(--ancho-lateral); min-height: 100vh; transition: margin .2s ease; }
.app-topbar {
  position: sticky; top: 0; z-index: 40; height: var(--alto-topbar); background: #fff;
  border-bottom: 1px solid var(--borde); display: flex; align-items: center; gap: 12px; padding: 0 18px;
}
.app-boton-icono { border: 0; background: none; width: 34px; height: 34px; border-radius: var(--radio); color: var(--texto-2); cursor: pointer; display: grid; place-items: center; }
.app-boton-icono:hover { background: var(--fondo); color: var(--texto); }
.app-boton-icono .ic { width: 20px; height: 20px; }
.app-buscar { position: relative; width: min(420px, 45vw); }
.app-buscar .ic { position: absolute; left: 11px; top: 9px; width: 15px; height: 15px; color: #9aa3b5; }
.app-buscar input {
  width: 100%; height: 34px; border: 1px solid var(--borde); border-radius: 17px; background: #f7f8fb;
  padding: 0 14px 0 34px; font: inherit; font-size: 13px; color: var(--texto); outline: none;
}
.app-buscar input:focus { border-color: #99d5cc; background: #fff; box-shadow: 0 0 0 3px rgba(15, 138, 126, .12); }
.app-topbar-derecha { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.app-empresa { font-weight: 800; font-style: italic; letter-spacing: .5px; color: #0b5ed7; border-bottom: 2px solid #d63a3a; line-height: 1.1; }
.app-usuario { position: relative; }
.app-usuario summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; padding: 4px 6px; border-radius: var(--radio); }
.app-usuario summary::-webkit-details-marker { display: none; }
.app-usuario summary:hover { background: var(--fondo); }
.app-avatar { width: 32px; height: 32px; border-radius: 50%; background: #0f766e; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.app-usuario-nombre { font-size: 12.5px; font-weight: 600; color: var(--texto); }
.app-usuario-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: #fff; border: 1px solid var(--borde);
  border-radius: var(--radio); box-shadow: 0 8px 24px rgba(16, 24, 40, .14); padding: 6px; z-index: 60;
}
.app-usuario-menu a, .app-usuario-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none;
  font: inherit; font-size: 13px; color: var(--texto); border-radius: 4px; cursor: pointer; text-align: left;
}
.app-usuario-menu a:hover, .app-usuario-menu button:hover { background: var(--fondo); text-decoration: none; }

/* Menú oculto */
body.menu-oculto .app-sidebar { transform: translateX(-100%); }
body.menu-oculto .app-principal { margin-left: 0; }

/* ---------- Contenido ---------- */
.app-contenido { padding: 18px 20px 32px; }
.tarjeta { background: var(--tarjeta); border-radius: var(--radio); box-shadow: var(--sombra); }
.dash-encabezado h1 { margin: 0; font-size: 21px; font-weight: 600; }
.dash-fecha { margin: 2px 0 12px; color: var(--texto-2); font-size: 12.5px; }
.dash-fecha::first-letter { text-transform: uppercase; }
.dash-resumen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: 16px; border-left: 3px solid var(--azul); }
.dash-resumen-titulo { display: inline-flex; align-items: center; gap: 6px; color: var(--texto-2); font-size: 12.5px; margin-right: 6px; }
.pastilla { font-size: 12px; padding: 2px 9px; border-radius: 10px; background: #f1f3f7; color: #4b5563; border: 1px solid #e3e7ef; }
.pastilla-alerta { background: #fff4e6; color: #c2410c; border-color: #fed7aa; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.dash-izq, .dash-der { display: grid; gap: 16px; min-width: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 12px; min-height: 96px; color: var(--texto); text-align: center; }
.kpi:hover { text-decoration: none; box-shadow: 0 4px 12px rgba(16, 24, 40, .12); }
.kpi-titulo { font-size: 14.5px; font-weight: 600; color: #374151; }
.kpi-valor { font-size: clamp(19px, 1.5vw, 26px); font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-alerta { color: var(--naranja); }
.kpi-vacio { font-size: 17px; color: var(--texto-2); font-weight: 600; }

.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { display: flex; flex-direction: column; align-items: center; padding: 10px; gap: 2px; }
.mini-titulo { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--texto-2); }
.mini-titulo .ic { width: 12px; height: 12px; }
.mini-valor { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.mini-valor small { font-size: 11px; font-weight: 400; color: var(--texto-2); }
.tendencia { width: 14px; height: 14px; }
.tendencia.sube { color: var(--verde); }
.tendencia.baja { color: var(--rojo); }

.panel { overflow: hidden; }
.panel-titulo { display: flex; align-items: center; gap: 7px; margin: 0; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: #374151; border-bottom: 1px solid var(--borde); }
.panel-titulo .ic { color: var(--texto-2); }
.panel-cuerpo { padding: 12px 14px; }

.actividad { display: flex; gap: 7px; }
.actividad-semana { flex: 1; display: flex; gap: 2px; }
.actividad-semana .celda { flex: 1; width: auto; height: auto; aspect-ratio: 1; max-height: 14px; }
.celda { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: #ebedf0; }
.celda.n1 { background: #b8e6dd; } .celda.n2 { background: #5cc4b1; } .celda.n3 { background: #16957f; } .celda.n4 { background: #0b5e53; }
.actividad-leyenda { display: flex; align-items: center; gap: 3px; margin-top: 8px; font-size: 11px; color: var(--texto-2); }
.actividad-leyenda .celda { width: 10px; height: 10px; }

.dos-columnas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #4b5563; background: #f8f9fb; padding: 8px 12px; border-bottom: 1px solid var(--borde); }
.tabla td { padding: 8px 12px; border-bottom: 1px solid #f0f2f6; vertical-align: top; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover { background: #f5fbfa; }
.tabla .der { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla .sub { font-size: 11.5px; color: var(--texto-2); margin-top: 1px; }
.celda-titulo { font-weight: 600; font-size: 12.5px; }
.vacio { color: #9aa3b5; text-align: center; font-size: 12.5px; padding: 18px 10px !important; list-style: none; }

.etiqueta { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.etiqueta-borrador { background: #fff4e6; color: #c2410c; }
.etiqueta-registrado, .etiqueta-emitido, .etiqueta-confirmado, .etiqueta-confirmada { background: #e6f7ec; color: #237a3b; }
.etiqueta-anulado, .etiqueta-anulada, .etiqueta-vencido { background: #fdecee; color: #b42334; }
.etiqueta-neutra { background: #e6f4f1; color: #0f6b62; }

.barra-fila { margin-bottom: 10px; }
.barra-etiqueta { display: flex; justify-content: space-between; font-size: 12px; color: #4b5563; margin-bottom: 3px; }
.barra { height: 6px; background: #edf2f1; border-radius: 3px; overflow: hidden; }
.barra span { display: block; height: 100%; background: var(--azul); border-radius: 3px; }
.barra span.alerta { background: var(--naranja); }
.barra-total { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--texto-2); }

.lista { list-style: none; margin: 0; padding: 4px 0; }
.lista li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 14px; font-size: 13px; border-bottom: 1px solid #f0f2f6; }
.lista li:last-child { border-bottom: 0; }
.lista strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

.feed { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.feed-item { position: relative; padding: 9px 14px 9px 28px; border-bottom: 1px solid #f0f2f6; display: grid; gap: 1px; }
.feed-item::before { content: ""; position: absolute; left: 12px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--azul); }
.feed-item.accion-1::before { background: #20c997; }
.feed-item.accion-3::before { background: var(--rojo); }
.feed-item strong { font-size: 12.5px; }
.feed-item span { font-size: 12px; color: var(--texto-2); }
.feed-item time { font-size: 11px; color: #9aa3b5; }

.linea-tiempo { list-style: none; margin: 0; padding: 12px 14px 12px 34px; position: relative; }
.linea-tiempo::before { content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 2px; background: #e5e8ef; }
.linea-fecha { margin: 4px 0 10px -24px; position: relative; }
.linea-fecha span { background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.linea-item { position: relative; margin-bottom: 10px; }
.linea-punto { position: absolute; left: -19px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 3px #fff; }
.linea-item.accion-1 .linea-punto { background: #20c997; }
.linea-item.accion-3 .linea-punto { background: var(--rojo); }
.linea-caja { border: 1px solid var(--borde); border-radius: var(--radio); padding: 7px 10px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.linea-caja time { color: #9aa3b5; font-size: 11px; white-space: nowrap; }

/* ---------- Pantallas chicas ---------- */
@media (max-width: 1150px) {
  .dash { grid-template-columns: 1fr; }
  .kpi-valor { font-size: 24px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-principal { margin-left: 0; }
  body.menu-oculto .app-sidebar { transform: none; }
  .dos-columnas, .minis { grid-template-columns: 1fr; }
  .app-usuario-nombre { display: none; }
  .app-contenido { padding: 14px 12px 28px; }
}

/* ---------- Páginas del panel ---------- */
.pagina-encabezado { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pagina-encabezado h1 { margin: 2px 0 0; font-size: 21px; font-weight: 600; }
.migas { font-size: 12.5px; color: var(--texto-2); }
.subtitulo { margin: 2px 0 0; font-size: 12.5px; color: var(--texto-2); }
.pagina-acciones { display: flex; gap: 8px; }
.boton {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid transparent;
  background: var(--azul); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.boton:hover { background: var(--azul-osc); text-decoration: none; }
.boton-sec { background: #fff; color: var(--texto); border-color: var(--borde); }
.boton-sec:hover { background: var(--fondo); }
.boton-icono { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--texto-2); }
.boton-icono:hover { background: var(--fondo); color: var(--azul); text-decoration: none; }
.boton-icono .ic { width: 15px; height: 15px; }

/* ---------- Árbol del plan de cuentas ---------- */
.arbol-barra { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--borde); flex-wrap: wrap; }
.arbol-buscar { width: min(360px, 100%); }
.arbol-barra select { height: 34px; border: 1px solid var(--borde); border-radius: 17px; padding: 0 12px; font: inherit; font-size: 13px; background: #fff; color: var(--texto); }
.arbol-espacio { flex: 1; }
.arbol { table-layout: fixed; }
.arbol .col-tipo { width: 170px; }
.arbol .col-saldo { width: 180px; }
.arbol td { padding-top: 5px; padding-bottom: 5px; vertical-align: middle; }
.arbol tr[hidden] { display: none; }
.arbol-nodo { display: flex; align-items: center; gap: 6px; padding-left: calc(var(--nivel) * 22px); min-height: 26px; }
.arbol-flecha { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; background: none; padding: 0; color: var(--texto-2); border-radius: 4px; cursor: pointer; flex: none; }
.arbol-flecha:hover { background: var(--fondo); color: var(--texto); }
.arbol-flecha .ic { width: 14px; height: 14px; transform: rotate(180deg); transition: transform .15s; }
tr.abierta .arbol-flecha .ic { transform: rotate(270deg); }
.arbol-icono { width: 15px; height: 15px; color: #d99a1e; fill: #fde8b5; }
.arbol-hoja { width: 15px; display: inline-grid; place-items: center; flex: none; }
.arbol-hoja::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9fb8b3; }
.arbol-codigo { font-variant-numeric: tabular-nums; color: var(--texto-2); font-size: 12.5px; min-width: 64px; }
.arbol-nombre { font-size: 13px; }
.madre .arbol-nombre { font-weight: 600; }
.nivel-0 .arbol-nombre { font-weight: 700; letter-spacing: .3px; }
.nivel-0 td { background: #f7faf9; }
.arbol-cant { font-size: 11px; color: var(--texto-2); background: var(--fondo); border-radius: 9px; padding: 0 7px; }
tr.inactiva .arbol-nombre, tr.inactiva .arbol-codigo { color: #a3aab5; text-decoration: line-through; }
tr.resaltada td { background: #fff8db !important; }
.arbol .acciones { width: 72px; text-align: right; white-space: nowrap; }
.arbol .acciones .boton-icono { vertical-align: middle; }
.arbol .cero { color: #c2c8d0; }
.negativo { color: var(--rojo); }
.tipo { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.tipo-activo { background: #e6f4f1; color: #0f6b62; }
.tipo-pasivo { background: #fdecee; color: #b42334; }
.tipo-pn { background: #f1ecfd; color: #5b3cc4; }
.tipo-r_pos { background: #e6f7ec; color: #237a3b; }
.tipo-r_neg { background: #fff4e6; color: #c2410c; }

/* ---------- Avisos, formularios y tareas ---------- */
.mensajes { margin-bottom: 12px; display: grid; gap: 8px; }
.aviso { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radio); font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.mensajes .aviso { margin-bottom: 0; }
.aviso .ic { margin-top: 2px; }
.aviso-ok { background: #e8f6f3; border-color: #b6e2d9; color: #0b5e53; }
.aviso-alerta { background: #fff4e6; border-color: #fed7aa; color: #9a3412; }
.aviso-rojo { background: #fdecec; border-color: #f5a3a3; color: #b42318; }
.alerta-mant { flex-wrap: wrap; align-items: center; border-left: 4px solid #d92d20; }
.alerta-mant ul { flex-basis: 100%; margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.alerta-mant li { display: flex; gap: 8px; align-items: center; }
.alerta-mant a { color: #b42318; font-weight: 600; }
.mant-chip { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 9px; background: #fff; border: 1px solid #f5a3a3; letter-spacing: .03em; }
.mant-chip-venc { background: #d92d20; border-color: #d92d20; color: #fff; }
.mant-mas { background: none; border: 0; color: #b42318; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.mant-ir { margin-left: auto; }
.aviso code { background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 3px; }
.boton[disabled] { opacity: .6; cursor: default; }
.boton-peligro { background: #fff; color: var(--rojo); border-color: #f5c2c7; }
.boton-peligro:hover { background: #fdecee; }
.estado-ok { background: #e6f7ec; color: #237a3b; }
.estado-sin_datos { background: #eef1f4; color: #4b5563; }
.estado-error { background: #fdecee; color: #b42334; }
.estado-en_curso { background: #e8f1ff; color: #1d4ed8; }
.etiqueta-grande { font-size: 13px; padding: 4px 12px; }

.tareas { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.tarea { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--azul); }
.tarea.pausada { border-top-color: #c2c8d0; opacity: .85; }
.tarea-cabecera { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tarea-cabecera h2 { margin: 0; font-size: 16px; }
.tarea-tipo { margin: 2px 0 0; font-size: 12.5px; color: var(--texto-2); }
.tarea-datos { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.tarea-datos dt { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--texto-2); font-weight: 700; }
.tarea-datos dd { margin: 2px 0 0; font-size: 13px; }
.tarea-resumen { font-size: 12px; color: var(--texto-2); margin-top: 3px; }
.tarea-acciones { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--borde); padding-top: 12px; }
.tarea-acciones form { margin: 0; }

.formulario { padding: 6px 20px 16px; max-width: 760px; }
.formulario fieldset { border: 0; border-bottom: 1px solid var(--borde); margin: 0; padding: 16px 0; }
.formulario legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 10px; }
.campo { margin-bottom: 12px; }
.campo[hidden] { display: none; }
.campo > label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: #374151; }
.campo input[type=text], .campo input[type=number], .campo input[type=time], .campo select {
  height: 36px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 13.5px; min-width: 220px; background: #fff;
}
.campo input[type=text], .campo select { width: 100%; }
.campo input:focus, .campo select:focus { outline: none; border-color: #99d5cc; box-shadow: 0 0 0 3px rgba(15, 138, 126, .12); }
.campo-fila { display: flex; gap: 16px; flex-wrap: wrap; }
.ayuda { font-size: 12px; color: var(--texto-2); margin: 4px 0 0; }
.campo .errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--rojo); font-size: 12px; }
.opciones-linea > div, .dias > div { display: flex; gap: 8px; flex-wrap: wrap; }
.opciones-linea label, .dias label {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--borde); border-radius: 17px;
  font-size: 13px; cursor: pointer; background: #fff;
}
.opciones-linea label:has(input:checked), .dias label:has(input:checked) { border-color: var(--azul); background: #e8f6f3; color: #0b5e53; }
.campo.check { display: flex; align-items: center; gap: 8px; }
.campo.check label { margin: 0; font-weight: 400; }
.formulario-acciones { display: flex; gap: 8px; padding-top: 16px; }
.salida { margin: 0; padding: 14px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; background: #0f1f1d; color: #d7ece8; max-height: 560px; overflow: auto; }
.paginas { display: flex; gap: 14px; justify-content: center; padding: 12px; font-size: 13px; color: var(--texto-2); }
@media (max-width: 860px) { .tareas { grid-template-columns: 1fr; } .tarea-datos { grid-template-columns: 1fr; } }

/* ---------- Facturas a clasificar ---------- */
.clasificar-buscar { width: min(320px, 100%); }
.clasificar { margin-bottom: 16px; overflow: hidden; }
.clasificar-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--borde); }
.clasificar-cabecera h2 { margin: 0; font-size: 15px; }
.clasificar-cabecera .sub { margin: 2px 0 0; font-size: 12px; color: var(--texto-2); }
.clasificar-total { text-align: right; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clasificar-total span { display: block; font-size: 11.5px; font-weight: 400; color: var(--texto-2); }
.col-check { width: 36px; }
.clasificar-acciones { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: #f7faf9; border-top: 1px solid var(--borde); }
.clasificar-cuenta { display: grid; gap: 4px; flex: 1; min-width: 280px; font-size: 12px; font-weight: 600; color: #374151; }
.clasificar-cuenta input { height: 36px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 13.5px; font-weight: 400; }
.clasificar-cuenta input:focus { outline: none; border-color: #99d5cc; box-shadow: 0 0 0 3px rgba(15, 138, 126, .12); }
.clasificar-recordar { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--texto-2); padding-bottom: 9px; }
.vacio-grande { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: var(--texto-2); }
.vacio-grande .ic { width: 32px; height: 32px; color: #9fb8b3; }
.vacio-grande strong { color: var(--texto); font-size: 15px; }

/* ---------- Órdenes de pago ---------- */
.op-numero { font-size: 14px; font-weight: 600; color: var(--texto-2); margin-left: 6px; }
.op-elegir { padding: 14px 16px; margin-bottom: 16px; }
.op-elegir label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.op-elegir-fila { display: flex; gap: 10px; }
.op-elegir input, .entrada, .op-lateral select, .op-lateral input[type=date], .op-lateral textarea, .op-medios select, .op-medios input[type=text] {
  height: 34px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 13.5px; background: #fff; color: var(--texto);
}
.op-elegir input { flex: 1; min-width: 0; height: 36px; }
.op-lateral textarea { height: auto; padding: 8px 10px; resize: vertical; }
.op-elegir input:focus, .entrada:focus, .op-lateral select:focus, .op-lateral input:focus, .op-lateral textarea:focus, .op-grid input.importe:focus, .op-medios select:focus, .op-medios input:focus {
  outline: none; border-color: #99d5cc; box-shadow: 0 0 0 3px rgba(15, 138, 126, .12);
}
.op-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.op-principal { display: grid; gap: 16px; min-width: 0; }
.op-lateral { display: grid; gap: 16px; position: sticky; top: calc(var(--alto-topbar) + 16px); }
.op-lateral select, .op-lateral input[type=date], .op-lateral textarea { width: 100%; }
.op-aviso { margin: 12px 14px 0; }
.op-grid input.importe { width: 130px; height: 32px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13.5px; text-align: right; font-variant-numeric: tabular-nums; }
.op-grid input.importe:disabled { background: #f4f6f8; border-color: #eceff3; }
.col-importe { width: 150px; }
.op-comprobantes tr.elegida td { background: #f0faf8; }
.op-comprobantes tr.nc .celda-titulo { color: var(--rojo); }
.op-comprobantes tfoot td { background: #f8f9fb; font-size: 13.5px; border-top: 1px solid var(--borde); }
.op-medios-barra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px 4px; }
.op-medios-barra .ayuda { margin: 0; }
.op-medios select { width: 100%; }
.op-medios input[type=text]:not(.importe) { width: 100%; }
.op-medios td { vertical-align: middle; }
.op-subtitulo { margin: 0; padding: 12px 14px 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; color: #4b5563; border-top: 1px solid var(--borde); }
.op-label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin: 10px 0 4px; }
.op-check { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--texto-2); margin-top: 8px; }
.op-condicion { margin: 0 0 4px; }
.op-condicion .etiqueta { white-space: normal; }
.op-ret-resultado { margin-top: 12px; padding: 12px; border-radius: var(--radio); background: #f7faf9; border: 1px solid var(--borde); }
.op-ret-importe { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.op-ret-resultado .ayuda { margin-top: 4px; }
.op-corresponde { color: #0b5e53; font-weight: 600; }
.op-ret-resultado details { margin-top: 8px; font-size: 12px; color: var(--texto-2); }
.op-ret-resultado summary { cursor: pointer; color: var(--azul); }
.op-ret-resultado ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.op-totales { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 14px 0 6px; font-size: 13px; }
.op-totales dt { color: var(--texto-2); }
.op-totales dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.op-totales .op-neto { font-size: 16px; font-weight: 700; color: var(--texto); padding-top: 6px; border-top: 1px solid var(--borde); }
.op-botones { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.op-peligro { padding: 12px 14px; margin-top: 16px; }
.op-anular { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; color: var(--texto-2); margin: 0; }
.op-anular label { display: flex; gap: 6px; align-items: flex-start; max-width: 640px; }
.pagina-acciones form { margin: 0; }
@media (max-width: 1150px) { .op-grid { grid-template-columns: 1fr; } .op-lateral { position: static; } }

/* ---------- Documento imprimible (orden de pago y certificado) ---------- */
.documento { padding: 22px 26px; margin-bottom: 16px; max-width: 900px; }
.doc-cabecera { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--texto); font-size: 12.5px; }
.doc-empresa { font-size: 16px; }
.doc-titulo { text-align: right; }
.doc-titulo strong { font-size: 15px; letter-spacing: .5px; }
.doc-bloque { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--borde); font-size: 13px; }
.doc-dato span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--texto-2); }
.doc-subtitulo { font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; color: #4b5563; margin: 16px 0 6px; }
.doc-columnas { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.doc-totales { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 38px 0 0; font-size: 13px; }
.doc-totales dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.doc-totales .doc-neto { font-size: 15px; font-weight: 700; border-top: 1px solid var(--texto); padding-top: 6px; }
.doc-obs { font-size: 12.5px; margin: 14px 0 0; }
.doc-obs ul { margin: 4px 0 0; padding-left: 18px; }
.doc-firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 56px; font-size: 12px; color: var(--texto-2); text-align: center; }
.doc-firmas div { border-top: 1px solid #9aa3b5; padding-top: 6px; }
.doc-firmas-1 { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; }
.fondos-sugeridas { margin-top: 16px; }
.fondos-sugeridas .entrada { width: 100%; }
.fondos-sugeridas .panel-cuerpo { margin: 0; }
tr.inactiva td { color: #a3aab5; }
@media print {
  .app-sidebar, .app-topbar, .no-imprimir, .mensajes { display: none !important; }
  .app-principal { margin-left: 0 !important; transition: none !important; }
  .app-contenido { padding: 0 !important; }
  body.app { background: #fff; }
  .documento { box-shadow: none; max-width: none; padding: 0; }
  .certificado { break-before: page; }
}
.op-principal > .tarjeta, .dos-columnas > .tarjeta, .fondos-sugeridas { overflow-x: auto; }
.op-totales dt.op-neto, .op-totales dd.op-neto { margin-top: 2px; }
.op-totales { column-gap: 0; }
.op-totales dd { padding-left: 10px; }
.op-echeq { display: grid; gap: 4px; }
.op-echeq label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--texto-2); white-space: nowrap; }
.op-medios input[type=date] { height: 30px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 6px; font: inherit; font-size: 12.5px; }

/* ---------- Panel de filtros (pegado al menú, se puede ocultar) ---------- */
:root { --ancho-filtros: 236px; }
.app-filtros {
  position: fixed; top: 0; bottom: 0; left: var(--ancho-lateral); width: var(--ancho-filtros); z-index: 45;
  background: #fff; border-right: 1px solid var(--borde); display: none; flex-direction: column;
  transition: left .2s ease;
}
body.con-filtros .app-filtros { display: flex; }
body.menu-oculto .app-filtros { left: 0; }
body.con-filtros .app-principal { margin-left: calc(var(--ancho-lateral) + var(--ancho-filtros)); }
body.con-filtros.menu-oculto .app-principal { margin-left: var(--ancho-filtros); }
.app-filtros-cabecera {
  display: flex; align-items: center; gap: 8px; height: var(--alto-topbar); padding: 0 8px 0 14px; flex: none;
  border-bottom: 1px solid var(--borde); font-size: 14px; color: var(--texto);
}
.app-filtros-cabecera .ic { color: var(--azul); }
.app-filtros-cabecera strong { flex: 1; }
.app-filtros-cuerpo { flex: 1; overflow-y: auto; padding: 8px 14px 20px; font-size: 13px; }
.app-boton-filtros { position: relative; }
body.con-filtros .app-boton-filtros { color: var(--azul); background: #e8f6f3; }
.app-filtros-activos { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--azul); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; }

/* grupos de filtros de las pantallas del panel */
.filtro { padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
.filtro:last-child { border-bottom: 0; }
.filtro-titulo, .app-filtros details:not(.desplegable) > summary {
  display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #4b5563; margin: 0 0 6px;
}
.filtro input[type=search], .filtro input[type=text], .filtro input[type=date], .filtro select {
  width: 100%; height: 32px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; background: #fff; color: var(--texto);
}
.filtro input:focus, .filtro select:focus { outline: none; border-color: #99d5cc; box-shadow: 0 0 0 3px rgba(15, 138, 126, .12); }
.filtro-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.filtro-check { display: flex; gap: 6px; align-items: center; margin-top: 4px; color: var(--texto); }
.filtro-acciones { display: flex; gap: 8px; align-items: center; padding-top: 12px; }
.filtro-acciones .boton { height: 30px; padding: 0 12px; }
.filtro-limpiar { display: inline-block; margin: 6px 0 4px; font-size: 12.5px; color: var(--rojo); }

/* filtros de los listados del admin (list_filter) */
.app-filtros details:not(.desplegable) { padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
.app-filtros details:not(.desplegable) > summary { cursor: pointer; list-style: none; }
.app-filtros details:not(.desplegable) > summary::-webkit-details-marker { display: none; }
.app-filtros details:not(.desplegable) > summary::after { content: "▾"; float: right; color: #9aa3b5; }
.app-filtros details:not(.desplegable):not([open]) > summary::after { content: "▸"; }
.app-filtros ul { list-style: none; margin: 0; padding: 0; }
.app-filtros ul li { margin: 0; padding: 0; }
.app-filtros ul li a { display: block; padding: 4px 8px; border-radius: 5px; color: var(--texto); font-size: 13px; }
.app-filtros ul li a:hover { background: var(--fondo); text-decoration: none; }
.app-filtros ul li.selected a { background: #e8f6f3; color: #0b5e53; font-weight: 600; }
.app-filtros h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #4b5563; margin: 10px 0 6px; }

@media (max-width: 860px) {
  .app-filtros { left: 0 !important; z-index: 55; box-shadow: 0 8px 30px rgba(16, 24, 40, .2); }
  body.con-filtros .app-principal, body.con-filtros.menu-oculto .app-principal { margin-left: 0; }
}
@media print { .app-filtros { display: none !important; } }
.app-contenido > section.tarjeta { overflow-x: auto; }

/* Listas desplegables de selección múltiple en los filtros */
.desplegable { position: relative; }
.desplegable > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 26px 5px 9px;
  border: 1px solid #d5dbe6; border-radius: 6px; background: #fff; font-size: 13px; color: var(--texto-2);
  text-transform: none; letter-spacing: 0; font-weight: 400; margin: 0; position: relative;
}
.desplegable > summary::-webkit-details-marker { display: none; }
.desplegable > summary::after { content: "▾"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: #9aa3b5; float: none; }
.desplegable[open] > summary { border-color: #99d5cc; box-shadow: 0 0 0 3px rgba(15, 138, 126, .12); }
.desplegable[open] > summary::after { content: "▴"; }
.desplegable > summary.con-valor { color: #0b5e53; background: #e8f6f3; border-color: #b6e2d9; font-weight: 600; }
.desplegable > summary span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.desplegable-lista { margin-top: 4px; border: 1px solid var(--borde); border-radius: 6px; background: #fff; max-height: 260px; overflow-y: auto; padding: 4px; box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.desplegable-buscar { width: 100%; height: 30px; margin-bottom: 4px; border: 1px solid #d5dbe6; border-radius: 5px; padding: 0 8px; font: inherit; font-size: 12.5px; }
.desplegable-opcion { display: flex; align-items: flex-start; gap: 8px; padding: 5px 6px; border-radius: 5px; cursor: pointer; font-size: 13px; color: var(--texto); }
.desplegable-opcion:hover { background: var(--fondo); }
.desplegable-opcion.elegida { background: #e8f6f3; color: #0b5e53; font-weight: 600; }
.desplegable-opcion input { margin-top: 2px; accent-color: var(--azul); }
.desplegable-opcion[hidden] { display: none; }
.filtro-fecha { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--texto-2); }
.filtro-fecha input { min-width: 0; }
.op-sin-registrar ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.op-sin-registrar li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-sin-registrar li span { flex: 1; min-width: 200px; font-weight: 600; }
.op-sin-registrar form { margin: 0; }
.op-sin-registrar .boton { height: 30px; padding: 0 12px; }

/* ---------- Logo de la empresa ---------- */
.app-brand-img { background: #fff; padding: 4px 7px; border-radius: 6px; display: inline-flex; align-items: center; }
.app-brand-img img { height: 20px; width: auto; display: block; }
.doc-membrete { display: flex; align-items: center; gap: 16px; }
.doc-logo { height: 64px; width: auto; }
@media print { .doc-logo { height: 58px; } }
.app-empresa-logo { height: 22px; width: auto; display: block; }

/* ---------- Reportes contables ---------- */
.desplegable-alta { max-height: 420px; }
.opcion-madre span { font-weight: 700; }
.reporte { max-width: 1100px; }
.reporte-cabecera { margin-bottom: 8px; }
.tabla-reporte { font-size: 12.5px; }
.tabla-reporte th, .tabla-reporte td { padding: 5px 8px; }
.tabla-reporte tfoot td { font-weight: 700; background: #f7faf9; border-top: 2px solid var(--borde); }
.tabla-reporte .centro { text-align: center; }
.col-fecha { width: 86px; } .col-nro { width: 64px; } .col-codigo { width: 100px; }
.fila-anterior td { font-style: italic; color: var(--texto-2); background: #fafbfc; }
.mayor-cuenta { margin-top: 18px; }
.mayor-titulo { margin: 0 0 6px; font-size: 14px; }
.mayor-titulo span { color: var(--texto-2); font-variant-numeric: tabular-nums; margin-right: 4px; }
.sumas-saldos .sangria { display: inline-block; padding-left: calc(var(--nivel) * 16px); }
.sumas-saldos .fila-madre td { font-weight: 700; background: #f7faf9; }
.sumas-saldos .nivel-0.fila-madre td { background: #eef5f3; }
.sumas-saldos .arbol-codigo { font-size: 12px; }
.reporte-pie { margin-top: 12px; }
@media print {
  .reporte { padding: 0; }
  .tabla-reporte { font-size: 10.5px; }
  .tabla-reporte th, .tabla-reporte td { padding: 3px 6px; }
  .tabla-reporte thead { display: table-header-group; }
  .tabla-reporte tr { break-inside: avoid; }
  .no-imprimir-enlace { color: inherit !important; text-decoration: none !important; }
  .mayor-titulo { break-after: avoid; }
  @page { size: A4; margin: 12mm 10mm; }
}

/* Resumen de cuenta de proveedores */
.filtro-select-lista { width: 100%; border: 1px solid #d5dbe6; border-radius: 5px; font: inherit; font-size: 12.5px; padding: 2px; }
.filtro-select-lista option { padding: 3px 6px; }
.reporte-sujeto { margin: 6px 0 12px; font-size: 13px; }

/* Orden de pago: firma, adjuntos y envío por mail */
.doc-firma-digital { width: 280px; margin: 40px 0 0 auto; text-align: center; font-size: 12px; color: var(--texto-2); }
.doc-firma-digital img { max-width: 220px; max-height: 90px; display: block; margin: 0 auto 10px; }
.doc-firma-espacio { height: 60px; }
.doc-firma-texto { border-top: 1px solid #9aa3b5; padding-top: 6px; }
.pdf-cert { display: inline-block; margin-top: 8px; font-size: 12px; }
.form-adjuntar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.form-adjuntar .entrada { flex: 1 1 240px; }
.form-mail { display: grid; gap: 10px; max-width: 720px; }
.form-mail > label { display: grid; gap: 4px; font-size: 12.5px; color: var(--texto-2); }
.form-mail .entrada { width: 100%; font: inherit; }
.form-mail textarea.entrada { resize: vertical; min-height: 140px; }
.form-mail label.check, .mail-adjuntos label.check { display: flex; gap: 8px; align-items: center; color: var(--texto); font-size: 13px; }
.mail-adjuntos { border: 1px solid #e3e7ef; border-radius: var(--radio); padding: 8px 12px; display: grid; gap: 4px; }
.mail-adjuntos legend { font-size: 12px; color: var(--texto-2); padding: 0 4px; }
form.en-linea { display: inline; }
.boton-chico { padding: 3px 9px; font-size: 12px; }
.op-cuenta-contable { width: 100%; min-width: 240px; }

/* Barra de progreso de las acciones (grabar, enviar mail, adjuntar…) */
.progreso-capa { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(20, 28, 40, .28); backdrop-filter: blur(1.5px); }
.progreso-capa.activa { display: flex; animation: progreso-aparece .15s ease-out; }
.progreso-tope { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(15, 138, 126, .15); }
.progreso-tope span, .progreso-barra span { display: block; height: 100%; width: 0; background: #0F8A7E; border-radius: 3px; }
.progreso-capa.activa .progreso-tope span, .progreso-capa.activa .progreso-barra span { animation: progreso-avanza 12s cubic-bezier(.08, .7, .2, 1) forwards; }
.progreso-caja { background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); padding: 20px 24px;
  width: min(360px, calc(100vw - 32px)); }
.progreso-texto { font-weight: 600; font-size: 15px; color: #1d2433; margin-bottom: 12px; }
.progreso-barra { height: 8px; background: #e8edf3; border-radius: 4px; overflow: hidden; }
.progreso-sub { margin-top: 10px; font-size: 12px; color: #6b7385; }
@keyframes progreso-avanza { 0% { width: 0; } 30% { width: 55%; } 100% { width: 92%; } }
@keyframes progreso-aparece { from { opacity: 0; } to { opacity: 1; } }
@media print { .progreso-capa { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .progreso-capa.activa .progreso-tope span, .progreso-capa.activa .progreso-barra span { animation-duration: .01s; width: 92%; } }
.op-fecha-arriba { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.op-fecha-arriba input { height: 34px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 8px; font: inherit; color: var(--texto); }
#cambiar-fecha { margin-bottom: 14px; }
.rc-buscar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 14px; }
.rc-buscar label { font-weight: 600; font-size: 13px; }
.rc-buscar .entrada { flex: 1 1 320px; height: 36px; }
.rc-coincidencias { margin: 0; padding: 4px 16px 12px 32px; display: grid; gap: 4px; }
/* Aclaración tipo sello debajo de la firma en los certificados */
.sello { margin: 0 auto 8px; color: #1f3a8a; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35;
  font-size: 11px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sello div:first-child { font-weight: 700; font-size: 12px; }
.sello div:nth-child(2) { font-weight: 700; }
/* Clasificación por concepto */
.clasificar-modo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 13px; }
.clasificar-modo .entrada { flex: 1 1 260px; height: 34px; }
.clasificar-concepto span { color: #0b5e53; }
.op-acuenta-cuerpo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.op-acuenta-cuerpo label { font-weight: 600; font-size: 13px; }
.op-acuenta-cuerpo input { width: 180px; height: 36px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 10px; text-align: right; font: inherit; }
.op-acuenta-cuerpo .ayuda { flex-basis: 100%; margin: 0; }
.op-comprobante-pago { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; margin: 0 0 6px;
  background: #f7faf9; border-top: 1px solid var(--borde); font-size: 13px; }
.op-mail { display: grid; gap: 6px; margin: 10px 0 4px; }
.op-mail input[type=email] { height: 34px; border: 1px solid #d5dbe6; border-radius: 6px; padding: 0 8px; font: inherit; }

/* ---------- Botones: un solo estilo en todo el sistema (píldora verde, mayúsculas) ---------- */
html .boton, html .boton-sec, html .button, html a.button, html input[type=submit], html input[type=button],
html .submit-row input, html .submit-row a.button, html .object-tools a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--azul); color: #fff; cursor: pointer; white-space: nowrap;
  font-family: var(--letra); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  line-height: 1; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 138, 126, .25); transition: background .15s, box-shadow .15s;
}
html .boton:hover, html .boton-sec:hover, html .button:hover, html a.button:hover, html input[type=submit]:hover,
html input[type=button]:hover, html .submit-row input:hover, html .object-tools a:hover {
  background: var(--azul-osc); color: #fff; text-decoration: none; box-shadow: 0 2px 6px rgba(15, 138, 126, .3);
}
html .boton:focus-visible, html .button:focus-visible, html input[type=submit]:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(15, 138, 126, .3); }
html .boton-peligro, html .submit-row a.deletelink, html .deletelink-box a.deletelink, html input.boton-peligro {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--rojo); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; box-shadow: 0 1px 2px rgba(220, 53, 69, .25);
}
html .boton-peligro:hover, html .submit-row a.deletelink:hover { background: #b42334; color: #fff; }
html .boton-chico, html .filtro-acciones .boton, html .op-sin-registrar .boton, html .arca-consulta .boton { height: 26px; padding: 0 11px; font-size: 11px; }
html .boton[disabled], html .boton:disabled, html input[type=submit]:disabled { opacity: .5; cursor: default; box-shadow: none; }
html .object-tools a.addlink { background-image: none; padding-left: 16px; }

/* ---------- Selector de cuentas con búsqueda (combo.js) ---------- */
.combo { position: relative; display: inline-block; width: 100%; min-width: 220px; max-width: 420px; }
.combo-entrada { width: 100%; box-sizing: border-box; height: 32px; padding: 0 28px 0 10px; border: 1px solid #d5dbe6; border-radius: 6px;
  font: inherit; font-size: 13px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 10px center; }
.combo-entrada:focus { border-color: #99d5cc; box-shadow: 0 0 0 3px rgba(15, 138, 126, .12); outline: none; }
.combo-entrada:disabled { background-color: #f3f4f6; color: #6b7280; }
.combo-lista { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 2px); max-height: 260px; overflow-y: auto;
  background: #fff; border: 1px solid var(--borde); border-radius: 6px; box-shadow: 0 6px 18px rgba(16, 24, 40, .14); }
.combo-op { padding: 6px 10px; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-op:hover, .combo-op.activo { background: #e6f4f1; color: #0b6b62; }
.combo-op.elegido { font-weight: 700; }
.combo-vacio { padding: 6px 10px; font-size: 12px; color: var(--texto-2); }
select.combo-oculto { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; bottom: 0; }
