:root {
  --navy: #1e3a5f;
  --navy-2: #2c5282;
  --line: #d0d7de;
  --bg: #f6f7f9;
  --ok: #276749;
  --err: #c53030;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.4 system-ui, sans-serif; background: var(--bg); color: #1a202c; }
a { color: var(--navy-2); }
.ribbon { background: var(--navy); color: #fff; }
.ribbon-top { display: flex; gap: 1rem; align-items: center; padding: .4rem 1rem; }
.ribbon-top .centro { opacity: .85; font-size: .9rem; }
.ribbon-top .user-menu { margin-left: auto; }
.ribbon a { color: #fff; text-decoration: none; }
.ribbon nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .4rem 1rem .8rem; background: var(--navy-2); }
.ribbon .group { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: baseline; }
.ribbon .group span { font-size: .7rem; text-transform: uppercase; opacity: .7; width: 100%; }
.ribbon .group a { background: rgba(255,255,255,.12); padding: .2rem .5rem; border-radius: 3px; }
.ribbon .group a.on, .ribbon .group a:hover { background: #fff; color: var(--navy); }
main { padding: 1rem 1.25rem 3rem; max-width: 1200px; }
h1 { font-size: 1.4rem; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: 1rem 0; }
th, td { border: 1px solid var(--line); padding: .35rem .5rem; text-align: left; }
th { background: #edf2f7; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.cierre { background: #fffbeb; }
.grid-form, .filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin-bottom: 1rem; }
.entrada-cabecera {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: end;
  padding: .65rem .75rem;
  background: #edf2f7;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.entrada-lineas { margin-top: 0; }
.entrada-lineas td input, .entrada-lineas td select { width: 100%; min-width: 0; }
.entrada-lineas .col-obs { min-width: 14rem; }
.entrada-lineas .col-concepto { min-width: 10rem; }
.entrada-lineas .col-fimp { width: 8.5rem; }
.entrada-lineas .col-cant { width: 6.5rem; }
.entrada-lineas .col-acc { width: 5.5rem; white-space: nowrap; }
.entrada-lineas #fila-nueva td { vertical-align: top; }
.entrada-lineas tr.fila-guardada { background: #f7fafc; }
.entrada-pie {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  padding: .65rem .75rem;
  background: #edf2f7;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 4px 4px;
}
.entrada-pie #pie-saldo { font-variant-numeric: tabular-nums; }
.cuadre-alerta { width: 100%; margin: 0; }
.cuadre-alerta p { margin: 0 0 .25rem; }
.cuadre-alerta p:last-child { margin-bottom: 0; }
.cuadre-alerta.cuadre-ok #cuadre-msg { color: var(--ok); }
.cuadre-alerta.cuadre-mal #cuadre-msg { color: var(--err); }
.entrada-hint { margin: .35rem 0 1rem; font-size: .85rem; }
.plantilla-lineas { border: 1px solid var(--line); padding: .75rem; margin: 0; border-radius: 4px; }
.plantilla-lineas legend { padding: 0 .35rem; }
.plantilla-linea { margin-bottom: .5rem; align-items: end; }
.plantilla-preview { width: 100%; margin: 0; font-size: .85rem; }
label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
input, select, textarea, button { font: inherit; padding: .35rem .45rem; }
button { background: var(--navy); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
button[type="button"] { background: #4a5568; }
button.peligro, button[type="button"].peligro { background: var(--err); }
.ok { color: var(--ok); }
.error { color: var(--err); }
.sugerencias-wrap { position: relative; min-width: 16rem; }
.sugerencias {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  max-height: 14rem;
  overflow: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.sugerencias button {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  width: 100%;
  text-align: left;
  background: #fff;
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: .4rem .55rem;
}
.sugerencias button:hover, .sugerencias button.on { background: #edf2f7; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.cards a { display: block; background: #fff; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.login { display: grid; place-items: center; min-height: 100vh; }
.login-box { background: #fff; padding: 2rem; border: 1px solid var(--line); width: 320px; display: grid; gap: .8rem; }
.login-box--totp { width: min(28rem, calc(100vw - 2rem)); }
.login-alt { margin: 0; text-align: center; font-size: .9rem; }
.totp-qr { display: flex; justify-content: center; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.totp-qr img { display: block; }
.totp-manual { font-size: .85rem; color: #4a5568; }
.totp-secret { word-break: break-all; margin: .5rem 0 0; font-size: .8rem; }

.yo-cierre h2 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.yo-cierre h2:first-child { margin-top: 0; }

.yo-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.yo-sheet-head h2 { margin: 0; font-size: 1.1rem; }
button.yo-pill {
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 500;
  background: #f8fafc;
  color: #1e293b;
  cursor: pointer;
}
button.yo-pill:hover { background: #f1f5f9; border-color: #94a3b8; }
button.yo-pill.on { background: #1e40af; border-color: #1e40af; color: #fff; }
button.yo-pill.on:hover { background: #1e3a8a; border-color: #1e3a8a; }
.yo-generales-campos {
  display: none;
  margin: .5rem 0 1rem;
  padding: .75rem;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.yo-generales-campos select { max-width: 100%; }
.yo-sheet.yo-es-generales .yo-generales-campos { display: block; }
.yo-lista-generales { font-size: .7rem; color: #1e40af; margin-left: .35rem; }
.arqueo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.arqueo-fecha input[type=date] { width: 10.5rem; max-width: 100%; }
.arqueo-total {
  margin: 1rem 0;
  padding: .65rem 1rem;
  background: #e6f0fa;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1.05rem;
}
.arqueo-total.alerta {
  background: #fff5f5;
  border-color: var(--err);
}
.arqueo-total-detalle { font-size: .9rem; color: #4a5568; margin-left: .35rem; }
.arqueo-dif { margin-left: .85rem; font-weight: 600; }
.arqueo-dif.error { color: var(--err); }
button[type="button"].arqueo-capuchinos-btn {
  margin-left: .75rem;
  background: transparent;
  color: var(--navy-2);
  border: 1px solid var(--navy-2);
  padding: .15rem .55rem;
  font-size: .9rem;
  vertical-align: middle;
}
.arqueo-total.alerta button[type="button"].arqueo-capuchinos-btn {
  color: var(--err);
  border-color: var(--err);
}
.arqueo-capuchinos { margin: 1.25rem 0 2rem; max-width: 960px; }
.arqueo-capuchinos h2 { font-size: 1.1rem; margin: 0 0 .35rem; }
.arqueo-volver { margin: 0 0 .75rem; }
.arqueo-volver a { text-decoration: none; }
.arqueo-volver a:hover { text-decoration: underline; }
.saldos-ayuda { max-width: 70ch; margin-bottom: 1rem; }
#tabla-saldos tr.saldos-alerta { background: #fff5f5; }
.comprobaciones-saldos { margin-top: 2rem; max-width: 900px; }
.comprobacion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .85rem 1rem;
  margin-bottom: .75rem;
}
.comprobacion-item.ok { border-left: 4px solid #38a169; }
.comprobacion-item.fail { border-left: 4px solid var(--err); }
.comprobacion-item h3 { margin: 0 0 .35rem; font-size: 1rem; }
.comprobacion-estado { font-weight: normal; color: #666; }
.comprobacion-ayuda { font-size: .85rem; color: #4a5568; margin: .5rem 0 0; }
.comprobacion-personas { width: 100%; margin-top: .65rem; font-size: .9rem; }
.comprobacion-personas td:last-child { font-size: .85rem; }
.apuntes-cuadre-total { margin: 0 0 .35rem; font-variant-numeric: tabular-nums; }
#tabla-apuntes tr.apuntes-dia td { font-size: .9rem; }
#tabla-apuntes tr.apuntes-dia-ok td { background: #f0fff4; }
#tabla-apuntes tr.apuntes-dia-fail td { background: #fff5f5; }
#tabla-apuntes .apuntes-dia-sug { display: block; margin-top: .25rem; font-weight: normal; }
#tabla-apuntes .apuntes-dia-sug button { margin-left: .35rem; padding: .15rem .45rem; font-size: .85rem; }
/* Ayuda: ventana de preguntas contestadas con el manual */
.ayuda-intro { max-width: 70ch; }
.ayuda-preguntar { display: flex; gap: .75rem; align-items: flex-end; max-width: 70ch; margin-bottom: 1rem; }
.ayuda-campo { flex: 1; }
.ayuda-campo textarea { width: 100%; resize: vertical; font: inherit; padding: .4rem; }
.ayuda-hilo { max-width: 70ch; display: grid; gap: .75rem; }
.ayuda-turno { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; }
.ayuda-turno.ayuda-sin-respuesta { border-color: #f6c9c9; background: #fffafa; }
.ayuda-pregunta { margin: 0 0 .5rem; font-weight: 600; }
.ayuda-respuesta p { margin: 0 0 .5rem; }
.ayuda-respuesta p:last-child { margin-bottom: 0; }
.ayuda-fuentes { font-size: .82rem; color: #4a5568; }
.ayuda-fuente { display: inline-block; background: #edf2f7; border-radius: 3px; padding: .1rem .4rem; margin-left: .25rem; }
.ayuda-nota { font-size: .8rem; }
.ayuda-indice { max-width: 70ch; margin-top: 1.25rem; }
.ayuda-temas { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ayuda-tema { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: .2rem .5rem; cursor: pointer; font: inherit; }
.ayuda-tema:hover { background: #edf2f7; }
/* Informe 613 — estilo papel oficial */
.informe-613-wrap { max-width: 820px; }
.informe-613-ayuda {
  margin: .15rem 0 .65rem;
  font-size: .78rem;
  color: #666;
  line-height: 1.35;
}
.informe-613-acciones { margin: 0 0 1rem; }
.informe-613 {
  --613-azul: #e6f0fa;
  --613-col-desc: 46fr;
  --613-col-sep: 2fr;
  --613-col-num: 15fr;
  --613-col-pct: 6fr;
  --613-cols: var(--613-col-desc) var(--613-col-sep) var(--613-col-num) var(--613-col-sep) var(--613-col-num) var(--613-col-sep) var(--613-col-pct);
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1rem;
  font: 11px/1.35 Arial, Helvetica, sans-serif;
  color: #000;
}
.informe-613-cab { margin-bottom: .35rem; }
.informe-613-meta {
  text-align: right;
  font-size: 11px;
  line-height: 1.45;
}
.informe-613-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: transparent;
}
.informe-613-tabla col.col-desc { width: 46%; }
.informe-613-tabla col.col-num { width: 15%; }
.informe-613-tabla col.col-sep { width: 2%; }
.informe-613-tabla col.col-pct { width: 6%; }
.informe-613-tabla th.sep,
.informe-613-tabla td.sep {
  padding: 0;
  width: .65rem;
  background: transparent !important;
  border: 0;
}
.informe-613-tabla th,
.informe-613-tabla td {
  border: 0;
  padding: .12rem .35rem;
  vertical-align: top;
}
.informe-613-cols th {
  background: transparent;
  font-weight: 400;
  padding-top: .15rem;
  padding-bottom: .35rem;
}
.informe-613-tabla thead th:not(.sep),
.informe-613-tabla tbody td:not(.sep) {
  border-bottom: 1px dotted #888;
}
.informe-613-cols th.num span {
  display: inline-block;
  min-width: 5.5rem;
  padding-bottom: 1px;
}
.informe-613-cols th.num.pct span { min-width: 2rem; }
.informe-613-tabla td.num.pct { padding-left: .15rem; padding-right: .15rem; }
.informe-613-tabla .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.informe-613-tabla tr.sec td:first-child { font-weight: 700; }
.informe-613-tabla tr.sec-cab.sec-divide td {
  border-top: 1.15em solid #fff;
}
.informe-613-tabla tr.sec-cab td:not(.sep) { background: #ececec; }
.informe-613-tabla tr.sec-total td { font-weight: 700; }
.informe-613-tabla tr.sub-total td:first-child { padding-left: 1.1rem; font-weight: 600; }
.informe-613-tabla tr.sub td:first-child { padding-left: 1.1rem; }
.informe-613-tabla tr.sub-grp td:first-child { padding-left: 1.1rem; font-weight: 600; }
.informe-613-tabla tr.sub-italic td:first-child { font-style: italic; padding-left: 2rem; }
.informe-613-tabla tr.sec-azul td { font-weight: 700; }
.informe-613-tabla tr.sec-azul td:nth-child(5) { background: var(--613-azul); }
.informe-613-tabla td.num .informe-613-tabla-input {
  background: transparent;
  border-bottom: 0;
  padding: .05rem .2rem;
  min-height: 1.1em;
}
.informe-613-resumen-g {
  display: grid;
  grid-template-columns: var(--613-cols);
  margin-top: .85rem;
  font-size: 11px;
}
.informe-613-resumen-g::before {
  content: '';
  grid-column: 1 / 6;
  border-top: 3px double #000;
  margin-bottom: .45rem;
}
.informe-613-resumen-fila {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: subgrid;
  padding: .08rem 0;
  align-items: baseline;
}
.informe-613-resumen-fila.informe-613-resumen-divide {
  border-top: 1.1em solid #fff;
}
.informe-613-resumen-fila > span,
.informe-613-resumen-fila > .num,
.informe-613-resumen-fila > .informe-613-cocina-input {
  border-bottom: 1px dotted #888;
  padding-bottom: .12rem;
}
.informe-613-cocina-input {
  background: var(--613-azul);
  border: 0;
  border-bottom: 1px dotted #888;
  font: inherit;
  text-align: right;
  width: 100%;
  min-width: 0;
  padding: .1rem .35rem;
  font-variant-numeric: tabular-nums;
  color: inherit;
  box-sizing: border-box;
}
.informe-613-resumen-fila > .informe-613-cocina-input {
  grid-column: 3;
}
.informe-613-resumen-fila > span:first-child {
  grid-column: 1;
  padding-left: calc(1.1rem + .35rem);
}
.informe-613-resumen-fila > .num {
  grid-column: 3;
  text-align: right;
  padding-right: .35rem;
  font-variant-numeric: tabular-nums;
}
.informe-613-resumen-fila.informe-613-resumen-arqueo-total > span,
.informe-613-resumen-fila.informe-613-resumen-arqueo-total > .num {
  border-bottom: none;
  padding-bottom: 0;
}
.informe-613-resumen-fila.informe-613-resumen-arqueo {
  grid-template-columns: 1fr 4.25rem 1.1em 1fr 4.25rem;
  column-gap: .35rem;
  padding-left: calc(1.1rem + .35rem);
  padding-right: .35rem;
}
.informe-613-resumen-fila.informe-613-resumen-arqueo > span:first-child {
  grid-column: 1;
  padding-left: 0;
  min-width: 0;
}
.informe-613-resumen-fila.informe-613-resumen-arqueo > .num:nth-child(2),
.informe-613-resumen-fila.informe-613-resumen-arqueo > .informe-613-cocina-input:nth-child(2) {
  grid-column: 2;
  justify-self: stretch;
  padding-right: 0;
  width: 100%;
}
.informe-613-resumen-fila.informe-613-resumen-arqueo > span:nth-child(3) {
  grid-column: 4;
  padding-left: 0;
  min-width: 0;
}
.informe-613-resumen-fila.informe-613-resumen-arqueo > .num:nth-child(4),
.informe-613-resumen-fila.informe-613-resumen-arqueo > .informe-613-cocina-input:nth-child(4) {
  grid-column: 5;
  justify-self: stretch;
  padding-right: 0;
  width: 100%;
}
.informe-613-resumen-negrita {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.informe-613-obs { margin-top: .85rem; }
.informe-613-obs h2 {
  margin: 0 0 .25rem;
  font-size: 11px;
  font-weight: 700;
}
.informe-613-obs-caja {
  display: block;
  width: 100%;
  min-height: 3.2rem;
  background: var(--613-azul);
  border: 0;
  padding: .35rem .5rem;
  font: inherit;
  color: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.informe-613-pie { margin-top: 1.1rem; }
.informe-613-firmas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  margin-bottom: 1.5rem;
  font-size: 11px;
}
.informe-613-firma-d {
  grid-column: 1;
  justify-self: start;
}
.informe-613-firma-scl {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
.informe-613-pie-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
/* Hoja E37 — cuentas personales (estilo Excel, A4 horizontal) */
body.e37-hoja main { max-width: none; }
.informe-e37-wrap { max-width: none; }
.informe-e37-cab {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: .35rem .5rem;
  background: #fde8d2;
  font-size: 13px;
  margin-bottom: 0;
}
.informe-e37-scroll { overflow-x: auto; }
.informe-e37-tabla {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
  font-size: 12px;
}
.informe-e37-tabla th,
.informe-e37-tabla td {
  border: 1px solid #c5c5c5;
  padding: .15rem .28rem;
  white-space: nowrap;
}
.informe-e37-tabla .e37-concepto {
  white-space: normal;
  min-width: 7rem;
  max-width: 12rem;
}
.informe-e37-codigos th {
  background: #fff;
  font-weight: 400;
  font-size: 10px;
  color: #4a5568;
  text-align: center;
}
.informe-e37-etiquetas th {
  background: #fde8d2;
  font-weight: 600;
  font-size: 11px;
}
.informe-e37-tabla td.num,
.informe-e37-tabla th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.informe-e37-tabla .e37-fecha { width: 4.4rem; }
.informe-e37-total td {
  font-weight: 700;
  background: #fff;
  border-top: 2px solid #1a202c;
}
@media print {
  .ribbon, .print-hide, button { display: none !important; }
  body, main { background: #fff; padding: 0; max-width: none; }
  .informe-613-wrap { max-width: none; }
  .informe-e37-wrap { overflow: visible; }
  .informe-e37-scroll { overflow: visible; }
  .informe-e37-tabla {
    min-width: 0;
    width: 100%;
    font-size: 8pt;
  }
  .informe-e37-tabla th,
  .informe-e37-tabla td {
    padding: .08rem .16rem;
  }
  .informe-e37-cab,
  .informe-e37-etiquetas th,
  .informe-e37-total td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .informe-613 {
    border: 0;
    padding: 0;
    font-size: 9.5pt;
  }
  .informe-613-tabla tr.sec-cab td,
  .informe-613-tabla tr.sec-azul td:nth-child(5),
  .informe-613-obs-caja,
  .informe-613-cocina-input,
  .informe-613-tabla tr.sec-azul td:nth-child(5) {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
@page {
  size: A4 portrait;
  margin: 14mm 12mm;
}

/* Nivel 1 — pantallas personales (inspiradas en Monefy / Money Manager) */
body.yo {
  background: #f3f1ee;
  min-height: 100vh;
  padding-bottom: 4.5rem;
  overflow-x: hidden;
}
.yo-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  background: #0f766e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.yo-top .user-menu { margin-left: auto; }
.yo-top a { color: #fff; }
.yo-main {
  max-width: min(480px, 100%);
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  overflow-x: hidden;
}
.yo-copias-table {
  table-layout: fixed;
  width: 100%;
  font-size: .8rem;
}
.yo-copias-table col.col-fichero { width: 32%; }
.yo-copias-table col.col-fecha { width: 28%; }
.yo-copias-table col.col-bytes { width: 14%; }
.yo-copias-table col.col-acc { width: 26%; }
.yo-copias-table th,
.yo-copias-table td { padding: .3rem .35rem; vertical-align: top; }
.yo-copias-table .copia-nombre,
.yo-copias-table .copia-fecha {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: .75rem;
}
.yo-copias-table .acciones {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: stretch;
}
.yo-copias-table .acciones a,
.yo-copias-table .acciones button {
  display: block;
  width: 100%;
  padding: .25rem .3rem;
  font-size: .7rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  box-sizing: border-box;
}
.yo-copias-table .acciones a {
  background: var(--navy-2);
  color: #fff;
}
.yo-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.yo-month h1 { margin: 0; font-size: 1.15rem; text-align: center; flex: 1; }
.yo-month button {
  background: transparent;
  color: #0f766e;
  font-size: 1.6rem;
  line-height: 1;
  padding: .2rem .6rem;
}
.yo-hero {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1rem 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.yo-chart-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto .75rem;
}
.yo-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#e2e8f0 0 100%);
}
.yo-chart-center {
  position: absolute;
  inset: 28%;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
}
.yo-chart-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.yo-chart-center strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.yo-saldos, .yo-flujo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.yo-saldos div, .yo-flujo div {
  background: #f8fafc;
  border-radius: 10px;
  padding: .55rem .7rem;
}
.yo-saldos span, .yo-flujo span { display: block; font-size: .75rem; color: #64748b; }
.yo-flujo .ing strong { color: #15803d; }
.yo-flujo .gas strong { color: #b91c1c; }
.yo-fabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1rem 0 .4rem;
}
.yo-fab {
  border: 0;
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.yo-fab.ing { background: #15803d; }
.yo-fab.gas { background: #dc2626; }
.yo-traspaso-link { text-align: center; margin: 0 0 1rem; }
.yo-traspaso-link button { background: transparent; color: #0f766e; padding: 0; }
.yo-leyenda { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.yo-leyenda li {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border-radius: 10px;
  padding: .45rem .65rem;
}
.yo-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.yo-leyenda .num { margin-left: auto; }
.yo-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; min-width: 0; }
.yo-lista li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: .55rem;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: .65rem .7rem;
  min-width: 0;
}
#yo-banco-pend li,
#yo-banco-otra li {
  grid-template-columns: minmax(0, 1fr);
}
.yo-chip {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
}
.yo-lista .meta { display: grid; }
.yo-lista .meta small { color: #64748b; }
.yo-lista .imp { font-variant-numeric: tabular-nums; font-weight: 600; }
.yo-lista .imp.ing { color: #15803d; }
.yo-lista .imp.gas { color: #b91c1c; }
.yo-mov-menu { position: relative; flex: none; }
.yo-mov-menu > summary {
  list-style: none;
  cursor: pointer;
  border: 0;
  background: #f1f5f9;
  color: #475569;
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: .05em;
}
.yo-mov-menu > summary::-webkit-details-marker { display: none; }
.yo-mov-menu > summary:hover { background: #e2e8f0; color: #0f172a; }
.yo-mov-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + .2rem);
  z-index: 20;
  min-width: 7.5rem;
  margin: 0;
  padding: .2rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .1);
}
.yo-mov-menu li { margin: 0; padding: 0; }
.yo-mov-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: .28rem .6rem;
  font: inherit;
  font-size: .88rem;
  line-height: 1.25;
  color: #0f172a;
}
.yo-mov-menu li button:hover { background: #f1f5f9; }
.yo-mov-menu li button.peligro {
  color: #b91c1c;
  background: transparent;
}
.yo-mov-menu li button.peligro:hover {
  background: #fef2f2;
  color: #991b1b;
}
.yo-mov-menu li button:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: transparent;
}
.yo-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
}
.yo-tabbar a {
  text-align: center;
  padding: .55rem .3rem;
  text-decoration: none;
  color: #64748b;
  font-size: .85rem;
  border-radius: 8px;
}
.yo-tabbar a.on { color: #0f766e; font-weight: 700; background: #ccfbf1; }
.yo-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 20;
  display: grid;
  align-items: end;
}
.yo-modal[hidden] { display: none; }
.yo-sheet {
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem 1.25rem;
  max-height: 92vh;
  overflow: auto;
  display: grid;
  gap: .7rem;
}
.yo-sheet label:has(> input[type=date]) {
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  max-width: 100%;
}
.yo-sheet input[type=date] {
  width: 10.5rem;
  max-width: 100%;
  flex: none;
}
.yo-importe-grande input {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  border: 0;
  border-bottom: 2px solid #0f766e;
  border-radius: 0;
  padding: .3rem;
}
.yo-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
  max-height: 11rem;
  overflow: auto;
}
.yo-cats-grid button {
  background: #f1f5f9;
  color: #1e293b;
  border-radius: 12px;
  padding: .45rem .2rem;
  font-size: .7rem;
  line-height: 1.2;
}
.yo-cats-grid button.on { outline: 2px solid #0f766e; background: #ccfbf1; }
.yo-tesoreria {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  border: 0;
  padding: 0;
  margin: 0;
}
.yo-tesoreria label {
  flex-direction: row;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
  cursor: pointer;
}
.yo-traspaso-campos {
  display: none;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}
.yo-traspaso-campos label {
  flex-direction: row;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
}
.yo-traspaso-campos select { width: auto; min-width: 6rem; }
.yo-sheet.yo-es-traspaso .yo-traspaso-campos { display: flex; }
.yo-sheet.yo-es-traspaso .yo-tesoreria,
.yo-sheet.yo-es-traspaso .yo-cats-grid,
.yo-sheet.yo-es-traspaso #yo-imputacion-wrap { display: none !important; }
.yo-sheet.yo-es-generales .yo-cats-grid { display: none !important; }
.yo-desdoblar-parte {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}
.yo-desdoblar-parte legend {
  font-size: .85rem;
  font-weight: 600;
  padding: 0;
  margin: 0 0 .15rem;
}
.yo-desdoblar-parte input[type=date],
.yo-desdoblar-parte select { max-width: 100%; }
.yo-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.yo-cat-form { display: grid; gap: .6rem; background: #fff; padding: 1rem; border-radius: 12px; }
.yo-cat-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; }
.yo-cat-list li {
  background: #fff;
  border-radius: 10px;
  padding: .5rem .7rem;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.yo-cat-list small { color: #64748b; }
.yo-tabbar a { font-size: .75rem; padding: .55rem .1rem; }
.yo-con-ayuda { margin: 0 0 1rem; }
.yo-con-ayuda > h1,
.yo-con-ayuda > h2 {
  display: inline;
  margin: 0 .4rem 0 0;
}
.yo-ayuda { display: inline; }
.yo-ayuda summary {
  list-style: none;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font: italic 700 .85rem/1 Georgia, 'Times New Roman', serif;
  cursor: pointer;
  vertical-align: middle;
}
.yo-ayuda summary::-webkit-details-marker { display: none; }
.yo-ayuda[open] summary { background: #115e59; }
.yo-ayuda-cuerpo { display: block; margin: .5rem 0 0; }
.yo-ayuda-cuerpo p { margin: 0 0 .4rem; }
.yo-ayuda-cuerpo p:last-child { margin-bottom: 0; }
.yo-banco-form { display: grid; gap: .7rem; margin: 1rem 0; }
.yo-banco-form select, .yo-banco-form input[type=file] { width: 100%; }
.yo-banco-pend-acc { display: grid; gap: .35rem; margin-top: .35rem; min-width: 0; }
.yo-banco-pend-row { display: flex; gap: .4rem; align-items: center; min-width: 0; }
.yo-banco-pend-row select {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 10.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yo-banco-asignar { flex: none; }
.yo-banco-obs-wrap { position: relative; width: 10.5rem; max-width: 100%; min-width: 0; }
.yo-banco-obs {
  width: 100%;
  min-width: 0;
  padding-right: 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yo-banco-obs-clear {
  position: absolute;
  right: .15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.2rem;
  line-height: 1;
  border-radius: 999px;
}
.yo-banco-obs-clear:hover { background: #e2e8f0; color: #0f172a; }
.yo-remesa-resumen { margin: .75rem 0 1rem; }
#yo-remesa-enviar { width: 100%; padding: .7rem; font-size: 1rem; }
.ok-btn { background: #15803d; }

.dlg-apunte {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.dlg-apunte[hidden] { display: none; }
.dlg-apunte-box {
  background: #fff;
  padding: 1rem 1.25rem 1.25rem;
  max-width: 44rem;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.dlg-apunte-box h2 { margin: 0 0 .75rem; }
.dlg-apunte-obs { flex: 1 1 14rem; }
.dlg-apunte-acciones { display: flex; gap: .5rem; margin-top: .35rem; }
td.col-acc { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.user-menu {
  position: relative;
  z-index: 50;
}
.user-menu summary {
  list-style: none;
  cursor: pointer;
  padding: .2rem .45rem;
  border-radius: 4px;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary::after { content: " ▾"; opacity: .75; font-size: .8em; }
.user-menu summary:hover { background: rgba(255,255,255,.12); }
.user-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + .2rem);
  margin: 0;
  padding: .3rem 0;
  list-style: none;
  min-width: 11rem;
  background: #fff;
  color: #1a202c;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  z-index: 60;
}
.user-menu a {
  display: block;
  padding: .4rem .85rem;
  color: #1a202c !important;
  text-decoration: none;
  font-size: .9rem;
}
.user-menu a:hover, .user-menu a.on { background: #edf2f7; }
.cuenta-tipo-op {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .65rem;
  font-size: .95rem;
}

body.layout-burger {
  display: block;
  min-height: 100vh;
}
.burger-toggle {
  display: none;
  position: fixed;
  top: .4rem;
  left: .4rem;
  z-index: 1100;
  background: var(--navy-2);
  color: #fff;
  border: 0;
  border-radius: 4px;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.burger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
}
.burger-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 200px;
  background: linear-gradient(180deg, #152a45 0%, var(--navy) 100%);
  color: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0,0,0,.12);
}
.burger-sidebar-header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-2);
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-weight: 600;
}
.burger-sidebar-header a { color: #fff; text-decoration: none; }
.burger-groups { flex: 1; overflow: auto; padding: .5rem 0; }
.burger-groups ul { list-style: none; margin: 0; padding: 0; }
.burger-groups a {
  display: block;
  color: #ecf0f1;
  text-decoration: none;
  padding: .45rem 1.1rem;
  border-left: 4px solid transparent;
  font-size: .9rem;
}
.burger-groups a:hover { background: rgba(255,255,255,.1); border-left-color: #93c5fd; }
.burger-groups a.active {
  background: rgba(255,255,255,.16);
  border-left-color: #fff;
  color: #fff;
}
.burger-sidebar-foot {
  padding: .65rem .85rem 1rem;
  display: grid;
  gap: .5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.burger-sidebar-foot a { color: #fff; font-size: .85rem; }
.burger-shell { margin-left: 200px; min-height: 100vh; display: flex; flex-direction: column; }
.burger-top {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  min-height: 42px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}
.burger-top a { color: #fff; text-decoration: none; }
.burger-items {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0 0 0 .5rem;
  gap: 0;
}
.burger-items a {
  display: flex;
  align-items: center;
  padding: 0 .85rem;
  height: 42px;
  border-bottom: 3px solid transparent;
  font-size: .9rem;
}
.burger-items a:hover, .burger-items a.on {
  background: rgba(255,255,255,.18);
  border-bottom-color: #fff;
}
.burger-top-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  font-size: .85rem;
  white-space: nowrap;
}
.burger-top-right .centro { opacity: .85; }
body.layout-burger main { flex: 1; }

@media (max-width: 1024px) {
  .burger-toggle { display: block; }
  .burger-sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    top: 0;
  }
  .burger-sidebar.open { transform: translateX(0); }
  .burger-shell { margin-left: 0; }
  .burger-top { padding-left: 2.6rem; }
  .burger-top-right .centro { display: none; }
}


