/* ACAM-AP · estilos (continuación de app.css) */
.req-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.req-tit strong { font-size: 14.5px; line-height: 1.35; }
.req-tit small { font-size: 12.5px; color: var(--ink-3); }
.req-badge { flex: none; }
@media (max-width: 520px) { .req-cab { flex-wrap: wrap; } .req-tit { flex: 1 1 calc(100% - 44px); } .req-badge { margin-left: 40px; } }
.archivos { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.arch { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg); flex-wrap: wrap; }
.arch-ic { width: 32px; height: 32px; border-radius: 8px; background: #fff; display: grid; place-items: center; color: var(--blue); flex: none; border: 1px solid var(--line); }
.arch-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 1px; }
.arch-nombre { background: none; border: 0; padding: 0; text-align: left; font-weight: 600; font-size: 13.5px; color: var(--navy); cursor: pointer; overflow-wrap: anywhere; }
.arch-nombre:hover { text-decoration: underline; color: var(--blue); }
.arch-meta { font-size: 12px; color: var(--ink-3); }
.arch-obs { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--warn); font-weight: 500; margin-top: 3px; white-space: pre-line; }
.arch-obs .ic { margin-top: 2px; }
.arch-acc { display: flex; gap: 2px; margin-left: auto; }
.req-acc { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.subida-arch { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--bg); border-radius: 10px; margin-bottom: 14px; }
.subida-arch div { display: flex; flex-direction: column; min-width: 0; }
.subida-arch strong { font-size: 14px; overflow-wrap: anywhere; }
.subida-arch small { color: var(--ink-3); font-size: 12.5px; }

/* Carnet */
.carnet { position: relative; aspect-ratio: 85.6 / 54; width: 100%; max-width: 420px; border-radius: 16px; overflow: hidden; color: #fff; display: flex;
  padding: 16px 16px 14px 18px; gap: 12px; box-shadow: 0 14px 30px rgba(27, 48, 75, .3); margin: 0 auto 4px; isolation: isolate;
  background: linear-gradient(135deg, #10213a 0%, var(--navy) 45%, #22437a 100%); container-type: inline-size; }
.carnet-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(240px 180px at 105% 110%, rgba(184, 145, 58, .35), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px); }
.carnet::after { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(217, 187, 114, .45); border-radius: 12px; pointer-events: none; }
.carnet-izq { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.carnet-marca { display: flex; gap: 8px; align-items: center; }
.carnet-marca div { display: flex; flex-direction: column; line-height: 1.05; }
.carnet-marca strong { font-family: var(--fd); font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.carnet-marca span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.carnet-calidad { margin-top: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e2c47e; display: flex; gap: 8px; flex-wrap: wrap; }
.carnet-calidad span { color: #fff; background: rgba(184, 145, 58, .35); padding: 0 6px; border-radius: 4px; letter-spacing: .06em; }
.carnet-nombre { font-family: var(--fd); font-weight: 700; font-size: 18px; line-height: 1.15; margin: 3px 0 6px; overflow-wrap: anywhere; }
.carnet-datos { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: rgba(255, 255, 255, .82); }
.carnet-datos b { color: #fff; }
.carnet-der { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.carnet-der .qr { border-radius: 8px; background: #fff; padding: 3px; }
.carnet-inactivo { filter: grayscale(.8); }
@container (max-width: 330px) { .carnet-nombre { font-size: 15px; } .carnet-der .qr { width: 84px; height: 84px; } }

/* Panel */
.app-panel { min-height: 100vh; }
.lateral { display: none; }
.panel-cuerpo { min-width: 0; }
.panel-main { padding: 18px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
.barra-panel .barra-in { padding: 0 12px; }
.menu-movil { position: absolute; right: 10px; top: 56px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-lg); padding: 8px; min-width: 240px; display: flex; flex-direction: column; z-index: 40; }
.menu-movil .yo { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu-movil a, .menu-movil button { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 9px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 14.5px; }
.menu-movil a:hover, .menu-movil button:hover { background: var(--line-2); text-decoration: none; }
.yo { display: flex; flex-direction: column; min-width: 0; }
.yo strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yo small { font-size: 12px; color: var(--ink-3); }
.nav-inferior { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); }
.nav-inferior a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--nav-h); font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-decoration: none; }
.nav-inferior a.act { color: var(--blue); }
.nav-inferior a.act .ic { stroke-width: 2.2; }
@media (min-width: 960px) {
  .app-panel { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .lateral { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--navy); color: #fff; padding: 20px 14px; overflow-y: auto; }
  .lateral .logo-sigla, .lateral .logo-sub { color: #fff; }
  .lateral .marca path:first-child { fill: #fff; }
  .lateral .marca path:nth-child(2) { fill: #7fa2ec; }
  .lateral-logo { padding: 0 6px; text-decoration: none !important; }
  .lateral-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #d9bb72; font-weight: 700; padding: 8px 8px 0; }
  .lateral-nav { display: flex; flex-direction: column; gap: 2px; margin: 22px 0; }
  .lateral-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 14.5px; text-decoration: none; }
  .lateral-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .lateral-nav a.act { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 #d9bb72; }
  .lateral-pie { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
  .lateral-pie .yo { padding: 0 8px 8px; } .lateral-pie .yo small { color: rgba(255, 255, 255, .6); }
  .lateral-link { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px; color: rgba(255, 255, 255, .78); font-size: 13.5px; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; }
  .lateral-link:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
  .lateral-fila { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px 0; }
  .lateral-fila .btn-ghost { color: rgba(255, 255, 255, .8); } .lateral-fila .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .lateral .idioma { background: rgba(255, 255, 255, .1); } .lateral .idioma button { color: rgba(255, 255, 255, .7); } .lateral .idioma button.act { background: #fff; color: var(--navy); }
  .barra-panel, .nav-inferior { display: none; }
  .panel-main { padding: 28px 32px 48px; }
}
.encabezado { margin-bottom: 18px; }
.volver { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.enc-fila { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.encabezado h1 { font-size: 23px; overflow-wrap: anywhere; }
.encabezado p { color: var(--ink-3); font-size: 14px; margin: 4px 0 0; overflow-wrap: anywhere; }
.enc-acc { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 960px) { .encabezado h1 { font-size: 26px; } }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 15px; text-decoration: none !important; color: inherit; min-width: 0; transition: border-color .15s, transform .15s; }
a.kpi:hover { border-color: #c6cfdb; transform: translateY(-1px); }
.kpi-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.k-navy { background: #e6ebf2; color: var(--navy); } .k-green { background: var(--ok-50); color: var(--ok); } .k-blue { background: var(--blue-50); color: var(--blue); }
.k-amber { background: var(--warn-50); color: var(--warn); } .k-red { background: var(--bad-50); color: var(--bad); }
.kpi-txt { display: flex; flex-direction: column; min-width: 0; }
.kpi-val { font-family: var(--fd); font-weight: 800; font-size: 25px; color: var(--navy); line-height: 1.1; overflow-wrap: anywhere; }
.kpi-etq { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.kpi-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.kpi-fin .kpi-val { font-size: 21px; }
.lista-simple { list-style: none; margin: 0; padding: 0; }
.lista-simple li { border-bottom: 1px solid var(--line-2); }
.lista-simple li:last-child { border-bottom: 0; }
.lista-simple a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; color: inherit; text-decoration: none; }
.lista-simple a:hover strong { color: var(--blue); }
.lista-simple a > div:not(.ev-fecha) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lista-simple strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-simple small { font-size: 12.5px; color: var(--ink-3); }
.tabla-lista { overflow: hidden; }
.fila-socio, .fila-proc { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none !important; flex-wrap: wrap; }
.fila-socio:last-child, .fila-proc:last-child, .fila-mov:last-child { border-bottom: 0; }
.fila-socio:hover, .fila-proc:hover, .fila-mov:hover { background: #f8fafc; }
.fs-nombre, .fp-tit { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.fs-nombre strong, .fp-tit strong { font-size: 14.5px; }
.fs-nombre small, .fp-tit small { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.fs-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.fs-prog { width: 120px; display: flex; flex-direction: column; gap: 4px; }
.fs-prog small { font-size: 11.5px; color: var(--ink-3); }
.barra-prog { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.barra-prog span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.fs-chev { color: var(--ink-4); }
@media (max-width: 720px) { .fila-socio .fs-badges { order: 3; flex-basis: 100%; padding-left: 52px; } .fila-socio .fs-prog { display: none; } .fs-chev { display: none; } }
.fp-der { display: flex; gap: 6px; flex-wrap: wrap; }
.prio { width: 4px; align-self: stretch; border-radius: 4px; background: var(--line); }
.prio-alta { background: var(--bad); } .prio-normal { background: var(--blue-100); } .prio-baja { background: var(--line); }
.ficha-cab { padding: 16px; margin-bottom: 16px; display: grid; gap: 10px; }
.ficha-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--ink-3); }
.ficha-meta b { color: var(--ink); }
.ficha-cab .avatar { display: none; }
.ficha-cab .msg-cd { background: var(--bg); }
.estados-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
@media (min-width: 560px) { .estados-grid { grid-template-columns: repeat(3, 1fr); } }
.estado-op { border: 1.5px solid var(--line); border-radius: 11px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; position: relative; }
.estado-op input { position: absolute; opacity: 0; }
.estado-op strong { font-size: 13.5px; }
.estado-op small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }
.estado-op.act { border-color: currentColor; box-shadow: 0 0 0 3px rgba(37, 74, 155, .1); }
.estado-op.e-gray.act { color: #4f5a6a; background: #f6f7f9; } .estado-op.e-blue.act { color: var(--blue); background: var(--blue-50); }
.estado-op.e-amber.act { color: var(--warn); background: var(--warn-50); } .estado-op.e-purple.act { color: var(--pur); background: var(--pur-50); }
.estado-op.e-green.act { color: var(--ok); background: var(--ok-50); } .estado-op.e-red.act { color: var(--bad); background: var(--bad-50); }
.estado-op.e-orange.act { color: var(--ora); background: var(--ora-50); }
.estado-op:has(input:focus-visible) { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.op-lista { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; max-height: 280px; overflow-y: auto; }
.op-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.op-radio.act { border-color: var(--blue); background: var(--blue-50); }
.op-radio div { display: flex; flex-direction: column; min-width: 0; }
.op-radio small { color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.mas { margin: 6px 0 12px; } .mas summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--blue); margin-bottom: 8px; }
.historial { list-style: none; margin: 0; padding: 0; }
.historial > li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.historial > li:last-child { border-bottom: 0; }
.hist-punto { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-100); margin-top: 6px; }
.historial strong { font-size: 13.5px; display: block; }
.historial small { font-size: 12px; color: var(--ink-3); }
.hist-cambios { list-style: none; margin: 6px 0 0; padding: 8px 10px; background: var(--bg); border-radius: 8px; font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; overflow-wrap: anywhere; }
.link-socio { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; margin-top: 6px; }
.link-socio .ic:last-child { margin-left: auto; }

/* Notas / línea de tiempo */
.nota-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.timeline > li::before { content: ''; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline > li:last-child::before { display: none; }
.tl-punto { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.timeline > li.auto .tl-punto { background: var(--line-2); color: var(--ink-3); }
.tl-cuerpo { min-width: 0; background: var(--bg); border-radius: 10px; padding: 9px 12px; }
.tl-cab { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.tl-cab small { color: var(--ink-3); }
.tl-texto { font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; margin-top: 2px; }
.tl-texto blockquote { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--gold); background: #fff; border-radius: 4px; font-size: 13.5px; color: var(--ink-2); }

/* Eventos */
.ev-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ev-grid { grid-template-columns: 1fr 1fr; } }
.ev-card { display: flex; gap: 14px; padding: 15px; color: inherit; text-decoration: none !important; align-items: flex-start; }
.ev-card:hover { border-color: #c6cfdb; }
.ev-card .badges { margin-top: 6px; }
.agregar-part { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.agregar-part select { flex: 1; min-width: 200px; }
.part-lista { list-style: none; margin: 10px 0 0; padding: 0; }
.part-lista li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.part-lista li:last-child { border-bottom: 0; }
.part-lista li > div:first-child { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.part-lista small { font-size: 12px; color: var(--ink-3); }
.seg-mini { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg-mini button { border: 0; background: none; font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 7px; cursor: pointer; color: var(--ink-3); }
.seg-mini button.act { background: #fff; box-shadow: var(--sh); }
.seg-mini .ep-asistio { color: var(--ok); } .seg-mini .ep-ausente { color: var(--bad); } .seg-mini .ep-justificado { color: var(--warn); } .seg-mini .ep-inscripto { color: var(--blue); }

/* Finanzas */
.fin-acc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.fin-acc select { width: auto; }
.cuota-ref { font-size: 13px; color: var(--ink-3); margin-left: auto; }
.totales { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 14px; }
.total { padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font-variant-numeric: tabular-nums; }
.total-mon { grid-row: span 3; font-family: var(--fd); font-weight: 800; color: var(--ink-4); font-size: 13px; }
.total span:not(.total-mon) { font-size: 12.5px; font-weight: 600; }
.total strong { font-family: var(--fd); font-size: 17px; color: var(--navy); }
.fila-mov { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; cursor: pointer; text-align: left; }
.fila-mov.anulado { opacity: .55; } .fila-mov.anulado .monto { text-decoration: line-through; }
.mov-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.mov-ic.m-ent { background: var(--ok-50); } .mov-ic.m-sal { background: var(--bad-50); }
.fm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fm-txt strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-txt small { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-adj { color: var(--ink-4); }
.adjunto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.adj-nombre { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.barras svg { width: 100%; height: auto; }
.b-grid { stroke: var(--line-2); stroke-width: 1; } .b-eje { stroke: var(--line); stroke-width: 1; }
.b-a { fill: #2f9a63; } .b-b { fill: #d0545a; }
.b-etq { font-size: 12px; fill: var(--ink-3); font-family: var(--f); }
.leyenda { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.leyenda i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg-a { background: #2f9a63; } .lg-b { background: #d0545a; }
.tabla-cat { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tabla-cat td { padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.tabla-cat .num { text-align: right; white-space: nowrap; font-weight: 600; }
.tabla-cat .pct { width: 26%; }
.pct-bar { display: block; height: 7px; border-radius: 99px; min-width: 3px; }
.pct-bar.b-ent { background: #9fd3b6; } .pct-bar.b-sal { background: #eba7aa; }
.tabla-cat .tot td { font-weight: 700; border-bottom: 0; }
.matriz-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.matriz { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; min-width: 760px; }
.matriz th, .matriz td { padding: 7px 5px; text-align: center; border-bottom: 1px solid var(--line-2); }
.matriz thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); font-weight: 700; background: #fafbfc; position: sticky; top: 0; }
.matriz .mz-socio { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 170px; max-width: 220px; font-weight: 600; font-size: 13px; padding-left: 12px; }
.matriz thead .mz-socio { background: #fafbfc; z-index: 2; }
.matriz .mz-socio small { display: block; font-weight: 400; color: var(--ink-3); font-size: 11.5px; }
.matriz td button { width: 28px; height: 28px; border-radius: 8px; border: 0; cursor: pointer; display: inline-grid; place-items: center; }
.mz-ok button { background: var(--ok-50); color: var(--ok); }
.mz-add { background: transparent; color: var(--ink-4); font-weight: 700; font-size: 16px; border: 1px dashed var(--line) !important; }
.mz-add:hover { color: var(--blue); border-color: var(--blue) !important; }
.mz-fut { background: repeating-linear-gradient(135deg, #fafbfc 0 4px, #fff 4px 8px); }
.mz-pend { font-weight: 700; color: var(--ink-3); } .mz-pend.hay { color: var(--bad); }
.meses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (min-width: 520px) { .meses { grid-template-columns: repeat(6, 1fr); } }
.meses button { height: 38px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.meses button.act { background: var(--blue); border-color: var(--blue); color: #fff; }
.meses button.pg { background: var(--ok-50); color: var(--ok); border-color: #c4e5d2; cursor: default; }
.meses button:disabled:not(.pg) { opacity: .45; cursor: not-allowed; }
.cat-lista { list-style: none; margin: 0; padding: 0; }
.cat-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.cat-lista li:last-child { border-bottom: 0; }
.cat-lista li > div:first-child { display: flex; gap: 8px; align-items: center; min-width: 0; flex: 1; }
.cat-lista strong { font-size: 14px; font-weight: 600; }
.cat-lista .interruptor { margin: 0; }
.cat-acc { display: flex; align-items: center; gap: 4px; }
.inactiva { opacity: .55; }

/* Configuración */
.texto-copiar { white-space: pre-wrap; font: 13px/1.55 var(--f); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0 0 8px; color: var(--ink); overflow-wrap: anywhere; }
.equipo { list-style: none; margin: 0 0 14px; padding: 0; }
.equipo li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.equipo li:last-child { border-bottom: 0; }
.eq-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.eq-txt small { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.eq-acc { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eq-acc select { width: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; font-size: 13.5px; }
.eq-acc .interruptor { margin: 0; }
.roles-ayuda { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.roles-ayuda p { margin: 0 0 4px; } .roles-ayuda p:last-child { margin: 0; }
.auditoria { list-style: none; margin: 0; padding: 0; }
.auditoria > li { border-bottom: 1px solid var(--line-2); }
.aud-fila { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 10px 2px; cursor: pointer; text-align: left; }
.aud-acc { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; flex: none; min-width: 92px; text-align: center; }
.a-insert { background: var(--ok-50); color: var(--ok); } .a-update { background: var(--blue-50); color: var(--blue); } .a-delete { background: var(--bad-50); color: var(--bad); }
.aud-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aud-txt strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-txt small { font-size: 12px; color: var(--ink-3); }
.aud-detalle { padding: 0 0 12px; }
.aud-detalle pre { font-size: 12px; background: var(--bg); padding: 10px; border-radius: 8px; overflow: auto; max-height: 260px; margin: 0; }

/* Modales */
.modal-fondo { position: fixed; inset: 0; background: rgba(15, 24, 39, .5); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: aparecer .15s ease-out; }
.modal { background: #fff; width: 100%; max-height: 92vh; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; box-shadow: var(--sh-lg); animation: subir .2s ease-out; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); }
.modal-cab h3 { font-size: 17px; }
.modal-cuerpo { padding: 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.dlg-txt { color: var(--ink-2); font-size: 14.5px; white-space: pre-line; }
@media (min-width: 640px) {
  .modal-fondo { align-items: center; padding: 24px; }
  .modal { max-width: 560px; border-radius: 18px; max-height: calc(100vh - 48px); }
  .modal-ancho { max-width: 860px; }
  .modal-pie { padding-bottom: 14px; }
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(24px); opacity: .6; } }

/* Avisos flotantes */
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (min-width: 960px) { .toasts { left: auto; right: 24px; bottom: 24px; align-items: flex-end; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 11px 12px 11px 14px; border-radius: 12px; box-shadow: var(--sh-lg);
  font-size: 14px; max-width: 460px; width: 100%; animation: subir .2s ease-out; }
.toast span { flex: 1; }
.toast-ok .ic:first-child { color: #7fd6a6; }
.toast-error { background: #8f2025; } .toast-error .ic:first-child { color: #ffc7ca; }
.toast-x { border: 0; background: none; color: rgba(255, 255, 255, .75); cursor: pointer; padding: 2px; display: grid; }

/* Impresión */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body.imprimiendo { background: #fff; }
  body.imprimiendo #app, body.imprimiendo .toasts { display: none !important; }
  body.imprimiendo #print-root { display: block; }
}
.imp-hoja { font: 11pt/1.5 var(--f); color: #111; }
.imp-cab { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 18px; }
.imp-cab div { display: flex; flex-direction: column; }
.imp-cab strong { font-family: var(--fd); font-size: 18pt; color: var(--navy); line-height: 1; }
.imp-cab span { font-size: 9.5pt; font-weight: 600; color: var(--navy); }
.imp-cab small { font-size: 8.5pt; color: #555; }
.imp-tit { font-family: var(--fd); font-size: 15pt; text-transform: uppercase; letter-spacing: .04em; text-align: center; margin: 6px 0 14px; color: var(--navy); }
.imp-fecha { text-align: right; }
.imp-sub { font-weight: 700; margin: 14px 0 6px; color: var(--navy); }
.imp-tabla { width: 100%; border-collapse: collapse; margin: 6px 0 10px; font-size: 10pt; }
.imp-tabla th, .imp-tabla td { border: 1px solid #c8ced8; padding: 5px 8px; text-align: left; vertical-align: top; }
.imp-tabla tbody th { width: 34%; background: #f3f5f8; font-weight: 600; }
.imp-tabla thead th { background: #e9edf3; }
.imp-asist td { height: 26px; } .imp-asist td:first-child { width: 34px; text-align: center; } .imp-asist td:last-child { width: 32%; }
.imp-check { list-style: none; padding: 0; margin: 0 0 10px; font-size: 10pt; }
.imp-check li { display: flex; gap: 8px; margin-bottom: 3px; }
.imp-box { width: 11px; height: 11px; border: 1.2px solid #333; flex: none; margin-top: 3px; }
.imp-dj { text-align: justify; border-left: 3px solid var(--gold); padding-left: 12px; margin: 14px 0; }
.imp-firma { margin: 46px 0 0 auto; width: 62%; display: flex; flex-direction: column; gap: 3px; font-size: 10pt; }
.imp-linea { border-top: 1px solid #222; margin-bottom: 4px; }
.imp-pie { margin-top: 24px; font-size: 8.5pt; color: #666; text-align: center; }
.imp-carnet { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.carnet-imp { width: 85.6mm; max-width: none; height: 54mm; aspect-ratio: auto; border-radius: 3.2mm; box-shadow: none; margin: 0; padding: 3.4mm 3.4mm 3mm 3.8mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.carnet-imp .carnet-nombre { font-size: 12.5pt; }
.carnet-imp .carnet-marca strong { font-size: 12pt; }
.imp-carnet-nota { font-size: 8.5pt; color: #555; }
@media print { .imp-hoja, .carnet, .imp-cab { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Utilidades responsivas */
@media (max-width: 640px) {
  .form-acc .btn { flex: 1; }
  .hero-acc .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
.kpi-val-sm { font-size: 20px; white-space: nowrap; }
.mas-docs { margin-top: 12px; }
.mas-docs > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--blue); padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 6px; }
.mas-docs > summary::-webkit-details-marker { display: none; }
.mas-docs > summary::before { content: '▸'; transition: transform .15s; }
.mas-docs[open] > summary::before { transform: rotate(90deg); }
.kpis.kpis-fin { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 759px) { .kpis:not(.kpis-fin) > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.b-etq { font-size: 11px; }

/* Contraseña temporal */
.aviso-clave-tmp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; margin-bottom: 16px; border-radius: 12px;
  background: var(--warn-50); color: var(--warn); border: 1px solid #f3d9a8; font-size: 14px; line-height: 1.45; }
.aviso-clave-tmp > span { flex: 1 1 220px; color: var(--ink); }
.clave-tmp { display: flex; justify-content: center; margin: 4px 0 14px; }
.clave-tmp code { font: 600 22px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; padding: 12px 18px;
  background: var(--navy); color: #fff; border-radius: 10px; user-select: all; overflow-wrap: anywhere; }
.ayuda-modal { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.a-restablecer_clave { background: var(--warn-50); color: var(--warn); }
