/* CMG: libro denso, procedencia visible y acciones contables explícitas. */
.accounting-workspace{color:var(--text);min-width:0}
.accounting-workspace [hidden],.accounting-dialog [hidden]{display:none!important}
.accounting-header,.accounting-setup>header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 0 18px}
.accounting-header h3{font-size:24px;margin:3px 0 8px;letter-spacing:-.025em}
.accounting-header p:not(.eyebrow),.accounting-setup header p{margin:0;max-width:720px;color:var(--muted);line-height:1.5}
.accounting-header>.button{flex-shrink:0}
.accounting-source{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--soft);border-left:3px solid var(--blue-dark);padding:12px 16px;font-size:13px;line-height:1.5}
.accounting-tabs{display:flex;border-bottom:1px solid var(--line);margin:14px 0;overflow-x:auto;gap:4px}
.accounting-tabs button{border:0;background:none;white-space:nowrap;color:var(--muted);font:inherit;min-height:44px;padding:10px 18px;cursor:pointer}
.accounting-tabs button.active{color:var(--text);box-shadow:inset 0 -3px var(--blue-dark);font-weight:700}
.accounting-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:18px 0}
.accounting-toolbar label,.accounting-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.accounting-toolbar input,.accounting-toolbar select,.accounting-dialog input,.accounting-dialog select,.accounting-dialog textarea{font:inherit;background:var(--surface);color:var(--text);border:1px solid var(--line-control);border-radius:4px;padding:10px 12px;min-height:44px;min-width:0;width:100%;box-sizing:border-box}
.accounting-account-filter{flex:1;max-width:540px;min-width:220px}
.accounting-workspace button,.accounting-dialog button{min-height:44px}
.accounting-workspace :focus-visible,.accounting-dialog :focus-visible{outline:3px solid var(--blue-dark);outline-offset:3px}
.accounting-note{color:var(--muted);font-size:13px;line-height:1.6;margin:12px 0}
.accounting-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:4px}
.accounting-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:13px}
.accounting-table th{text-align:left;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;background:var(--thead)}
.accounting-table th,.accounting-table td{padding:11px 14px;border-bottom:1px solid var(--line-inner);vertical-align:middle}
.accounting-table tr:last-child td{border-bottom:0}
.accounting-table td small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.accounting-table tbody tr:hover{background:var(--row-hover)}
.accounting-table tfoot td,.accounting-table tfoot th{border-top:2px solid var(--line-control);background:var(--thead);font-weight:700}
.accounting-money{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.accounting-status{display:inline-block;background:var(--row-selected);color:var(--green);padding:4px 8px;border-radius:3px;white-space:nowrap;font-size:12px}
.accounting-banner p{margin:0}
.accounting-banner .button{margin-top:10px}
.accounting-banner{margin:14px 0 0;padding:12px 16px;background:var(--amber-soft);border-left:3px solid var(--amber-strong);line-height:1.5;font-size:13px}
.accounting-inbox-summary{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.accounting-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:3px;font-size:12px;white-space:nowrap;background:var(--soft);color:var(--text)}
.accounting-chip.is-ready,.accounting-chip.is-posted{background:var(--green-soft);color:var(--green)}
/* Contraste AA (2026-10-12): el texto ámbar usa --amber (5,3:1 sobre --amber-soft); --amber-strong queda para bordes. */
.accounting-chip.is-needs_data,.accounting-chip.is-changed{background:var(--amber-soft);color:var(--amber)}
.accounting-chip.is-no_entry{background:var(--foot);color:var(--muted)}
.accounting-chip.is-draft{background:var(--info-soft);color:var(--info)}
.accounting-chip.is-out_of_book{background:var(--foot);color:var(--muted)}
.accounting-chip.is-ok{background:var(--green-soft);color:var(--green)}
.accounting-chip.is-warning{background:var(--amber-soft);color:var(--amber)}
.accounting-chip.is-blocked{background:var(--red-soft);color:var(--red)}
.accounting-pending{margin:0 0 12px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--amber-strong);border-radius:4px;background:var(--amber-soft)}
.accounting-pending h4{margin:0 0 6px;font-size:14px}
.accounting-pending ul{margin:0;padding-left:18px}
.accounting-pending li{margin:2px 0;font-size:13px}
.accounting-pending li small{display:block;color:var(--muted)}
.accounting-checks{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.accounting-check-row{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid var(--line);border-radius:4px}
.accounting-check-row.is-blocked{border-color:var(--red)}
.accounting-check-row.is-warning{border-color:var(--amber-strong)}
.accounting-check-row p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.accounting-check-row details{margin-top:4px;font-size:12px}
.accounting-check-row details ul{margin:4px 0 0;padding-left:16px}
.accounting-inbox-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.accounting-check input{width:22px;height:22px;margin:0;accent-color:var(--blue-dark)}
.accounting-reasons{margin:0 0 12px;padding-left:18px;line-height:1.6}
.accounting-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.accounting-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:14px 0;font-size:13px;color:var(--muted);flex-wrap:wrap}
.accounting-pagination span{margin-right:auto}
.accounting-empty{padding:32px 20px;border:1px dashed var(--line-control);line-height:1.6;color:var(--muted);background:var(--foot)}
.accounting-empty h3{color:var(--text);margin-top:0}
.accounting-totals{display:flex;gap:40px;padding:16px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.accounting-totals p{margin:0;font-size:13px;color:var(--muted)}
.accounting-totals strong{display:block;color:var(--text);font-size:22px;font-variant-numeric:tabular-nums;margin-top:6px}
.accounting-setup{margin-bottom:24px}
.accounting-setup h4{font-size:17px;margin:0 0 6px}
dialog.accounting-dialog{width:min(1080px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid var(--line-control);border-radius:6px;color:var(--text);background:var(--surface);overflow:hidden}
.accounting-dialog::backdrop{background:var(--navy);opacity:.45}
/* Header and actions always visible; only the body scrolls (reglas, asientos largos). */
.accounting-dialog form{padding:22px;min-width:0;display:flex;flex-direction:column;max-height:94dvh;box-sizing:border-box}
.accounting-dialog form>header,.accounting-dialog form>footer,.accounting-dialog form>.accounting-form-error{flex:0 0 auto}
/* The fieldset only disables inputs while saving; a fieldset does not clip as a
   scroll container in Chromium, so a plain block inside it scrolls. */
.accounting-dialog form>fieldset{display:contents}
.accounting-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 4px 2px 2px}
.accounting-dialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.accounting-dialog header h3{margin:4px 0 0;font-size:22px}
.accounting-dialog fieldset{border:0;padding:0;margin:0;min-width:0}
.accounting-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;border-top:1px solid var(--line);padding-top:18px;flex-wrap:wrap}
.accounting-dialog textarea{min-height:100px;resize:vertical}
.accounting-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.accounting-rules-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){.accounting-rules-grid{grid-template-columns:1fr 1fr}}
.accounting-wide{grid-column:1/-1}
.accounting-entry-line{display:grid;grid-template-columns:minmax(160px,1.4fr) minmax(130px,1.5fr) minmax(90px,.7fr) minmax(90px,.7fr) auto;gap:10px;align-items:end;padding:12px 0;border-top:1px solid var(--line)}
.accounting-entry-line input[inputmode=decimal]{text-align:right;font-variant-numeric:tabular-nums}
.accounting-draft-totals{padding:14px 16px;background:var(--soft);border-left:3px solid var(--blue-dark);font-weight:600;font-variant-numeric:tabular-nums;line-height:1.6}
.accounting-form-error{color:var(--red);background:var(--red-soft);border-left:3px solid var(--red);padding:12px 16px;line-height:1.5}
@media(max-width:720px){
 .accounting-header,.accounting-setup>header{flex-direction:column;gap:14px}
 /* Todas las consultas siempre visibles: sin pestañas cortadas en móvil. */
 .accounting-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
 .accounting-tabs button{padding:10px 8px}
 .accounting-toolbar label{flex:1;min-width:140px}
 .accounting-account-filter{max-width:none;flex-basis:100%!important}
 .accounting-toolbar>.button{flex:1}
 .accounting-inbox-actions>.button{flex:1 1 100%}
 /* Cada fila conserva sus etiquetas y todos los importes dentro del ancho móvil. */
 .accounting-table-wrap{overflow:visible;border:0;max-width:100%}
 .accounting-table,.accounting-table tbody,.accounting-table tfoot{display:block;width:100%;min-width:0}
 .accounting-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .accounting-table tr{display:block;min-width:0;margin-bottom:12px;border:1px solid var(--line);border-radius:4px;background:var(--surface)}
 .accounting-table td{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);gap:4px 12px;min-width:0;width:100%;padding:10px 12px;overflow-wrap:anywhere;white-space:normal}
 .accounting-table td::before{content:attr(data-label);grid-column:1;grid-row:1 / span 3;color:var(--muted);font-size:11px;font-weight:700;text-align:left;align-self:center}
 .accounting-table td>*{grid-column:2;min-width:0;max-width:100%}
 .accounting-table td .button{justify-self:start;white-space:normal;text-align:left;padding:8px 10px}
 .accounting-table td small{margin:0}
 .accounting-table td.accounting-money{text-align:right;font-weight:600}
 .accounting-table tfoot th{display:block;border-top:0;padding:12px;white-space:normal}
 .accounting-table tfoot td{border-top:1px solid var(--line-inner)}
 .accounting-table .accounting-empty-cell{display:none}
 .accounting-dialog form{padding:16px}
 .accounting-dialog header{gap:10px}
 .accounting-dialog header h3{font-size:19px}
 .accounting-form-grid{grid-template-columns:1fr}
 .accounting-entry-line{grid-template-columns:1fr 1fr;padding:16px 0;gap:12px}
 .accounting-entry-line>label:first-child,.accounting-entry-line>label:nth-child(2){grid-column:1/-1}
 .accounting-entry-line>button{grid-column:1/-1;justify-self:end}
 .accounting-dialog footer>.button{flex:1}
 .accounting-totals{gap:24px}
 /* Diario en móvil (2026-10-12): una fila compacta por asiento, no ocho renglones. */
 .accounting-journal .accounting-table tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:10px 12px;margin-bottom:8px}
 .accounting-journal .accounting-table td{display:block;width:auto;padding:0;border:0}
 .accounting-journal .accounting-table td::before{content:none}
 .accounting-journal .accounting-table td:nth-child(1){grid-column:1;grid-row:1 / span 3}
 .accounting-journal .accounting-table td:nth-child(2){grid-column:2;grid-row:1;color:var(--muted);font-size:12px}
 .accounting-journal .accounting-table td:nth-child(3){grid-column:3;grid-row:1;color:var(--muted);font-size:12px;text-align:right}
 .accounting-journal .accounting-table td:nth-child(4){grid-column:2 / span 2;grid-row:2}
 .accounting-journal .accounting-table td:nth-child(5){grid-column:2;grid-row:3}
 .accounting-journal .accounting-table td:nth-child(6){grid-column:3;grid-row:3}
 .accounting-journal .accounting-table td:nth-child(7){display:none}
 .accounting-journal .accounting-table td:nth-child(8){grid-column:1 / -1;grid-row:4}
 .accounting-journal .accounting-table td:nth-child(8) .button{width:100%;justify-content:center}
 .accounting-summary{grid-template-columns:1fr}
}

/* Exportación trimestral para la gestoría (2026-09-28). */
.accounting-export{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;margin-right:8px}
.accounting-export small{color:var(--muted);font-weight:700}
.accounting-export a.button{color:var(--blue-dark)}
/* Resumen de un diálogo (lote, preparar el mes): cifras grandes, sin aviso efímero. */
.accounting-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 14px}
.accounting-summary>div{padding:12px 14px;border:1px solid var(--line);border-radius:4px;background:var(--foot)}
.accounting-summary dt{font-size:12px;color:var(--muted);font-weight:700}
.accounting-summary dd{margin:4px 0 0;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.accounting-selection{align-self:center;font-size:13px;color:var(--muted)}
.accounting-overdue{color:var(--amber)}
.accounting-reasons ul{margin:4px 0 6px;padding-left:18px;color:var(--muted);font-size:13px}
.accounting-rule-off td{color:var(--muted)}
/* Enlace «N facturas» del cuadre (2026-10-13): contraste AA con el token oscuro y subrayado para que se lea como enlace. */
.accounting-table .button.quiet.accounting-link{color:var(--blue-dark);text-decoration:underline;font-weight:750}
/* Qué falta y dónde se arregla; antes → después de un cambio de Factusol (2026-10-13). */
.accounting-missing{margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--amber-strong);border-radius:4px;background:var(--amber-soft)}
.accounting-missing h4{margin:0 0 8px;font-size:15px}
.accounting-missing ol{margin:0;padding-left:20px;display:grid;gap:10px;line-height:1.5}
.accounting-missing li small{display:block;color:var(--muted);margin:2px 0 0}
.accounting-fixes{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 2px}
.accounting-compare td strong{font-weight:700}
.accounting-dialog details{margin:12px 0}
.accounting-dialog summary{cursor:pointer;font-weight:600;padding:12px 0}
@media(max-width:720px){
 /* Antes → después en móvil: el dato hace de título de su tarjeta. */
 .accounting-compare .accounting-table td{padding:6px 12px}
 .accounting-compare .accounting-table td:first-child{display:block;font-weight:700;background:var(--foot);padding:8px 12px}
 .accounting-compare .accounting-table td:first-child::before{content:none}
 .accounting-compare .accounting-chip{justify-self:start}
}
/* Impuestos (2026-10-18): 303 y 111 plegables dentro de Comparar con la gestoría. */
.accounting-taxes .accounting-toolbar{margin:0}
.accounting-tax-model{margin:12px 0;border:1px solid var(--line);border-radius:4px;background:var(--panel, transparent)}
.accounting-tax-model>summary{display:flex;flex-wrap:wrap;align-items:center;gap:10px;cursor:pointer;padding:12px 14px;font-weight:700}
.accounting-tax-model>summary strong{font-variant-numeric:tabular-nums}
.accounting-tax-body{padding:0 14px 14px}
.accounting-tax-body h5{margin:16px 0 6px;font-size:14px}
.accounting-tax-table .accounting-tax-section td{background:var(--foot);font-size:12px;text-transform:none}
.accounting-tax-table td small{display:block;color:var(--muted)}
.accounting-tax-table [data-taxes-box]{white-space:nowrap}
.accounting-tax-verify{margin:16px 0 0;border-top:1px solid var(--line);padding-top:8px}
.accounting-tax-verify>summary{cursor:pointer;font-weight:600;padding:8px 0}
/* Contabilidad sin scroll infinito (Carlos, 2026-10-19). Cabecera compacta, explicaciones plegadas, listas
   largas por tandas («Ver más») y tablas largas que se desplazan dentro de su marco con cabecera y totales fijos. */
.accounting-header{padding:14px 0 12px;align-items:center}
.accounting-header h3{margin:2px 0 0}
.accounting-tabs{margin:10px 0}
.accounting-toolbar{margin:12px 0}
.accounting-howto{margin:0 0 12px;font-size:13px;line-height:1.6;color:var(--muted)}
.accounting-howto>summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;font-weight:700;color:var(--blue-dark)}
.accounting-howto>summary::after,.accounting-pending details>summary::after,details.accounting-section-fold>summary::after{content:'';flex:0 0 auto;width:8px;height:8px;margin-left:12px;border-right:2px solid var(--blue-dark);border-bottom:2px solid var(--blue-dark);transform:rotate(45deg);transition:transform .15s}
.accounting-howto[open]>summary::after,.accounting-pending details[open]>summary::after,details.accounting-section-fold[open]>summary::after{transform:rotate(-135deg)}
.accounting-pending details>summary::after,details.accounting-section-fold>summary::after{margin-left:auto;align-self:center}
.accounting-workspace summary{min-height:44px;box-sizing:border-box}
[data-accounting-reason-note]:focus-visible{outline:3px solid var(--blue-dark);outline-offset:3px}
.accounting-howto p{margin:0 0 8px;max-width:820px}
.accounting-more{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}
.accounting-more span{font-size:13px;color:var(--muted);margin-right:auto}
.accounting-pagination.is-top{margin:4px 0 10px}
.accounting-pending details>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-height:44px;cursor:pointer}
.accounting-pending details>summary h4{margin:0}
.accounting-pending details>summary small{color:var(--muted);font-size:12px}
/* Las cifras por estado de Pendiente filtran la tabla: botones con su estado pulsado a la vista. */
.accounting-inbox-summary button.accounting-chip{min-height:44px;padding:6px 12px;border:1px solid transparent;font:inherit;font-size:12px;cursor:pointer}
.accounting-inbox-summary button.accounting-chip:hover{border-color:var(--line-control)}
.accounting-inbox-summary button.accounting-chip[aria-pressed=true]{border-color:var(--blue-dark);box-shadow:inset 0 0 0 1px var(--blue-dark);font-weight:700}
.accounting-fixes .button[aria-pressed=true]{border-color:var(--blue-dark);box-shadow:inset 0 0 0 1px var(--blue-dark)}
/* Los CSV trimestrales de la gestoría, al pie de Pendiente: la barra de filtros queda en una línea. */
.accounting-export-row{margin:18px 0 6px;padding-top:12px;border-top:1px solid var(--line)}
/* La columna «Acción» no se corta: los botones parten su texto y el motivo no ensancha la tabla. */
.accounting-inbox-list .accounting-row-actions .button{white-space:normal;text-align:left}
@media(min-width:721px){
 .accounting-inbox-list .accounting-table td:nth-child(3){max-width:230px}
 .accounting-inbox-list .accounting-table td:nth-child(5){min-width:240px;max-width:320px}
 .accounting-inbox-list .accounting-table td:nth-child(7){min-width:170px}
 .accounting-inbox-list .accounting-table th{white-space:normal}
 .accounting-inbox-list .accounting-table th:nth-child(6),.accounting-inbox-list .accounting-table td:nth-child(6){max-width:150px}
 .accounting-workspace .accounting-table-wrap.is-scroll{max-height:max(360px,calc(100vh - 340px));overflow:auto;overscroll-behavior:contain}
 .accounting-workspace .accounting-table-wrap.is-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:inset 0 -1px var(--line)}
 .accounting-workspace .accounting-table-wrap.is-scroll tfoot th,.accounting-workspace .accounting-table-wrap.is-scroll tfoot td{position:sticky;bottom:0;z-index:2}
}
/* Configuración plegable: cada sección es una cabecera con su estado en una línea; solo una abierta. */
.accounting-folds{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:4px 0 24px}
.accounting-fold{min-width:0;margin:0;border:1px solid var(--line);border-radius:4px;background:var(--surface)}
.accounting-fold.is-open{border-left:3px solid var(--blue-dark)}
.accounting-fold-title{margin:0;font-size:inherit}
.accounting-fold-toggle{display:grid;grid-template-columns:minmax(0,1fr) 20px;grid-template-areas:"title chevron" "summary chevron";gap:2px 14px;align-items:center;width:100%;min-height:60px;padding:12px 16px;border:0;background:none;color:var(--text);text-align:left;font:inherit;cursor:pointer}
.accounting-fold-toggle:hover{background:var(--row-hover)}
.accounting-fold-toggle>span{grid-area:title;font-size:16px;font-weight:700}
.accounting-fold-toggle>small{grid-area:summary;font-size:13px;font-weight:400;color:var(--muted)}
.accounting-fold-toggle>small.is-warning{color:var(--amber);font-weight:700}
.accounting-fold-toggle>i{grid-area:chevron;width:10px;height:10px;border-right:2px solid var(--blue-dark);border-bottom:2px solid var(--blue-dark);transform:rotate(45deg);transition:transform .15s}
.accounting-fold-toggle[aria-expanded=true]>i{transform:rotate(-135deg)}
.accounting-fold-body{padding:0 16px 16px;border-top:1px solid var(--line-inner)}
.accounting-fold-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:12px 0 4px}
.accounting-fold-head p{margin:0;max-width:720px;color:var(--muted);font-size:13px;line-height:1.5}
.accounting-fold-head .accounting-inbox-actions{margin:0;flex-shrink:0;justify-content:flex-end}
.accounting-fold-filter{margin:8px 0}
.accounting-fold-filter label{flex:1;max-width:420px}
.accounting-rule-group h5{margin:14px 0 4px;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.accounting-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:0}
.accounting-rule-grid>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line-inner);font-size:13px}
.accounting-rule-grid dt{color:var(--text)}
.accounting-rule-grid dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Apertura y Comparar: lo de una vez al año (importar, historia) plegado bajo su título. */
details.accounting-section-fold{border:1px solid var(--line);border-radius:4px;background:var(--surface);padding:0 16px}
details.accounting-section-fold>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-height:56px;padding:14px 0;cursor:pointer}
details.accounting-section-fold>summary h4{margin:0}
details.accounting-section-fold>summary small{color:var(--muted);font-size:13px}
details.accounting-section-fold[open]{padding-bottom:14px}
.accounting-setup>header+.accounting-howto{margin-top:-8px}
@media(max-width:720px){
 details.accounting-section-fold{padding:0 12px}
 .accounting-header{flex-direction:row;align-items:center}
 /* El mes («septiembre de 2026») y el nivel no se cortan: si no caben dos por fila, uno por fila. */
 .accounting-toolbar label{min-width:min(100%,200px)}
 .accounting-fold-toggle{padding:12px}
 .accounting-fold-body{padding:0 12px 12px}
 .accounting-fold-head{flex-direction:column;gap:10px}
 .accounting-fold-head .accounting-inbox-actions{justify-content:flex-start;width:100%}
 .accounting-rule-grid{grid-template-columns:1fr}
 .accounting-more>.button{flex:1 1 auto}
 /* Pendiente en móvil: una tarjeta compacta por documento (fecha y total arriba, estado y acciones debajo). */
 .accounting-inbox-list .accounting-table tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 10px;align-items:start;padding:10px 12px;margin-bottom:8px}
 .accounting-inbox-list .accounting-table td{display:block;width:auto;padding:0;border:0}
 .accounting-inbox-list .accounting-table td::before{content:none}
 .accounting-inbox-list .accounting-table td:nth-child(1){grid-column:1;grid-row:1 / span 2}
 .accounting-inbox-list .accounting-table td:nth-child(2){grid-column:2;grid-row:1;color:var(--muted);font-size:12px}
 .accounting-inbox-list .accounting-table td:nth-child(4){grid-column:3;grid-row:1}
 .accounting-inbox-list .accounting-table td:nth-child(3){grid-column:2 / span 2;grid-row:2}
 .accounting-inbox-list .accounting-table td:nth-child(5){grid-column:1 / -1;grid-row:3}
 .accounting-inbox-list .accounting-table td:nth-child(6){grid-column:1 / -1;grid-row:4}
 .accounting-inbox-list .accounting-table td:nth-child(7){grid-column:1 / -1;grid-row:5}
 .accounting-inbox-list .accounting-row-actions{flex-direction:row;flex-wrap:wrap}
 /* Sumas y saldos en móvil: cuenta y nombre arriba, los cuatro importes en dos columnas. */
 .accounting-trial .accounting-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:6px 0}
 .accounting-trial .accounting-table tbody td{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:4px 12px;border:0}
 .accounting-trial .accounting-table tbody td::before{grid-row:auto}
 .accounting-trial .accounting-table tbody td.accounting-money{align-items:flex-end}
 .accounting-trial .accounting-table tbody td:nth-child(1)::before,.accounting-trial .accounting-table tbody td:nth-child(2)::before{content:none}
 .accounting-trial .accounting-table tbody td:nth-child(2){font-weight:600}
 /* Casillas del 303 y del 111 en móvil: casilla, concepto e importe en una línea; «Ver de dónde sale» debajo. */
 .accounting-tax-body>.accounting-table-wrap .accounting-tax-table tbody tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 10px;align-items:start;padding:8px 12px;margin-bottom:6px}
 .accounting-tax-body>.accounting-table-wrap .accounting-tax-table tbody td{display:block;width:auto;padding:0;border:0}
 .accounting-tax-body>.accounting-table-wrap .accounting-tax-table tbody td::before{content:none}
 .accounting-tax-body>.accounting-table-wrap .accounting-tax-table tbody td:nth-child(4),.accounting-tax-table tr.accounting-tax-section td{grid-column:1 / -1}
 .accounting-tax-table tr.accounting-tax-section{padding:6px 12px;background:var(--foot)}
}
/* Subcuentas de la gestoría y altas del mes (2026-10-24, 0212). */
.accounting-party-review{border:1px solid var(--line);border-radius:4px;margin:12px 0;padding:0 14px;background:var(--surface)}
.accounting-party-review>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:700}
.accounting-party-review>summary small{color:var(--muted);font-weight:400}
.accounting-party-list{margin:0;padding:0 0 0 18px;display:grid;gap:12px}
.accounting-party-list>li p{margin:0 0 4px}
.accounting-party-list>li>small{display:block;color:var(--muted)}
.accounting-party-list .accounting-inbox-actions{flex-wrap:wrap}
.accounting-choices{border:0;margin:8px 0;padding:0;display:grid;gap:8px}
.accounting-dialog .accounting-choices label.check-line{flex-direction:row;align-items:center;gap:10px;font-weight:400;min-height:44px}
.accounting-dialog .accounting-choices input[type=radio]{width:20px;min-width:20px;height:20px;min-height:0;padding:0;margin:0}
