/* structure.css -- the role homes, the work list, organisations and the team
   (public/structure.js, 2026-10-08). Built from app.css's tokens only. */

.st { display: flex; flex-direction: column; gap: 16px; }
/* Only the page's own wrapper -- not a chip row, a board or a grid that
   happens to be a direct child (that turned the task filters into bars). */
.st > div:not([class]) { display: flex; flex-direction: column; gap: 16px; }
.st-sec { padding: 14px 16px; }
.st-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.st-h { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; margin: 0; color: var(--ink); }
.st-title { font: 600 22px var(--sans); margin: 0; }
/* An organisation's name sits 6px above its cards, not the page's 16px gap. */
.st-title.is-tight { margin-bottom: -10px; }
.st-sub { color: var(--muted); margin: 0 0 6px; font-size: 13px; }
.st-note { color: var(--muted); font-size: 13px; margin: 6px 0; max-width: 72ch; }
.st-alert { margin: 4px 0; padding: 6px 10px; border-left: 3px solid var(--alarm); background: var(--card); font-size: 13px; }
.st-link { color: var(--link); text-decoration: none; font-size: 13px; white-space: nowrap; }
.st-link:hover { text-decoration: underline; }
.st-back { font-size: 13px; }

.st-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.st-btn { display: inline-block; padding: 6px 12px; border: 1px solid var(--hairline); background: var(--ink); color: var(--card);
  text-decoration: none; font: 500 13px var(--sans); }
.st-btn.is-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.st-search { width: 100%; max-width: 420px; padding: 7px 10px; border: 1px solid var(--rule); font: 14px var(--sans); background: var(--card); }

.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.st-chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--rule); background: var(--card);
  font: 13px var(--sans); cursor: pointer; color: var(--ink); }
.st-chip.is-on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.st-chip-n { font: 12px var(--mono); opacity: .75; }

/* A pipeline: stages as columns, a count on each. Scrolls sideways on a phone
   rather than squeezing five columns into 375px. */
.st-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.st-col { background: var(--paper); padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 2px 4px; border-bottom: 1px solid var(--rule); }
.st-col-t { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.st-col-n { font: 600 14px var(--mono); }
.st-col-empty, .st-col-more { color: var(--faint); font-size: 12px; margin: 4px 2px; }
.st-col-more { display: block; background: none; border: 0; padding: 2px; cursor: pointer; font-family: inherit; color: var(--muted); text-decoration: underline; }
.lm-btn { font: 11px var(--mono, monospace); padding: 5px 9px; border: 1px solid var(--hairline); background: var(--card, #fff); color: var(--ink); cursor: pointer; }
.lm-btn.on { background: var(--ink); color: var(--card, #fff); border-color: var(--ink); }
.bl-row { cursor: pointer; }
.bl-row:hover { background: rgba(20, 20, 19, .04); }
.inv-notes { display: flex; align-items: center; gap: 3px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }

.st-item { display: block; background: var(--card); padding: 8px 10px; border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.st-item:hover { border-color: var(--ink); }
.st-item.is-flag { border-left: 3px solid var(--alarm); }
.st-item-t { font: 500 13px var(--sans); overflow-wrap: anywhere; }
.st-item-s { color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.st-item-f { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 12px; }
.st-item-v { font-family: var(--mono); }
.st-item-w { color: var(--alarm); }

/* The money strip on the direction home: a few figures, then a way in. */
.st-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.st-kpi { background: var(--card); border: 1px solid var(--rule); padding: 10px 12px; min-width: 150px; flex: 1 1 150px; }
.st-kpi-l { font-size: 12px; color: var(--muted); }
.st-kpi-v { font: 600 20px var(--mono); margin-top: 2px; }
.st-kpi-s { font-size: 11px; color: var(--faint); margin-top: 2px; }
.st-kpi.is-bad .st-kpi-v { color: var(--alarm); }
.st-kpi.is-good .st-kpi-v { color: var(--dep-local-commerce); }
.st-strip-go { display: flex; align-items: center; padding: 0 6px; }

.st-tablewrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { text-align: left; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  padding: 6px 8px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.st-table td { padding: 5px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.st-table th.num { text-align: right; }
.st-table td.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.st-table .is-bad { color: var(--alarm); }

/* Mi semana: seven days across, two rows of days on a phone. */
.st-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.st-day { background: var(--paper); padding: 6px; min-height: 70px; }
.st-day.is-today { outline: 2px solid var(--ink); }
.st-day-h { font: 600 12px var(--sans); margin-bottom: 4px; }
.st-shift { background: var(--card); border: 1px solid var(--rule); padding: 4px 6px; font: 12px var(--mono); margin-bottom: 4px; }
@media (max-width: 640px) {
  .st-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-board { grid-auto-columns: minmax(78vw, 1fr); }
}

/* Cierre de mes (cierre.js): only the RRHH person sees it, on top of their Inicio. */
.cm-card { border: 1px solid var(--hairline); background: var(--card); padding: 10px 14px; margin: 0 0 16px; }
.cm-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.cm-list { display: flex; flex-direction: column; }
.cm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--hairline); font-size: 13px; }
.cm-m { min-width: 130px; font-weight: 600; text-transform: capitalize; }
.cm-s { flex: 1; color: var(--muted); font-size: 12px; }
.cm-row.is-closed .cm-m { color: var(--muted); }

/* The Cierre de mes window (cierre.js). */
.cm-veil { position: fixed; inset: 0; background: rgba(20, 20, 19, .45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.cm-dlg { background: var(--paper, #f4f1ea); border: 1px solid var(--hairline); width: min(1100px, 100%); padding: 16px 20px 24px; }
.cm-dh { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cm-dh h2 { margin: 0; }
.cm-step { border-top: 1px solid var(--hairline); padding: 10px 0; }
.cm-step h3 { margin: 4px 0 8px; font-size: 14px; }
.cm-li { font-size: 13px; padding: 2px 0; }
.cm-warn { color: #8B5A00; }
.cm-bad { color: var(--accent-red, #9c4a3d); font-weight: 600; font-size: 12px; }
.cm-step b { display: block; font-size: 12px; margin: 8px 0 2px; }
.cm-build { border: 1px dashed #8B5A00; padding: 6px 8px; margin: 0 0 8px; font-size: 12px; }
.cm-tick { display: block; margin: 10px 0 0; font-size: 13px; }
.cm-wiz .fl-acc-b { padding-bottom: 10px; }
.cm-wiz .fl-acc-b b { display: block; font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; }
.cm-wiz .micro { font: 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cm-wiz .cm-li { font-size: 14px; padding: 3px 0; }
.cm-wiz .cm-grid { font-size: 14px; margin: 2px 0 4px; }
.cm-wiz .cm-grid th { font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.cm-wiz .cm-grid td { padding: 4px 10px 4px 0; }
.cm-wiz .cm-grid th.num, .cm-wiz .cm-grid td.num { text-align: right; }
.cm-wiz .fl-acc.is-build .fl-acc-v { color: #8B5A00; }
.cm-wiz .fl-acc.is-done .fl-acc-v { color: var(--ok, #2f6b3a); }
/* Nóminas, pago y cierre (Paul, 2026-11-02): the window is wide on this step, paying on the left and the
   month's build-up and Dinero's "Ojo con lo que viene" on the right; one column under 900 px */
/* three classes: flow.css' .fl-wiz.is-acc (760 px) loads after this file */
.fl-wiz.cm-wiz.is-wide { width: min(1040px, calc(100vw - 32px)); }
.cm-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cm-right { display: flex; flex-direction: column; gap: 12px; }
.cm-right .card { padding: 12px 14px; }
.cm-wiz .cm-paid { margin: 12px 0 4px; font-size: 14px; }
.cm-wiz .cm-paid input { margin-right: 6px; }
@media (max-width: 900px) { .cm-two { grid-template-columns: minmax(0, 1fr); } }
.cm-link { margin: 6px 0 0; font-size: 13px; }
.cm-link a { color: var(--link, #2a4fd6); }
.cm-chip { display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px; border: 1px solid var(--hairline); font-size: 12px; text-decoration: none; color: inherit; }
.cm-chip.is-done { border-color: currentColor; font-weight: 600; }
.cm-chip.is-build { border-style: dashed; color: #8B5A00; }
.cm-batch { border: 1px solid var(--hairline); background: var(--card); padding: 8px 10px; margin: 8px 0; }
.cm-scroll { overflow-x: auto; overflow-y: hidden; }
.cm-mail-sent { white-space: pre-wrap; font: 13px var(--mono); background: var(--card); border: 1px solid var(--hairline); padding: 10px 12px; margin: 6px 0 0; }
.cm-count { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.cm-count.is-on { font-weight: 700; text-decoration-thickness: 2px; }
.cm-draft-tot td { font-weight: 700; border-top: 1px solid var(--ink); }
.cm-agekey .cm-note, .cm-sent .cm-note { vertical-align: middle; }
.cm-tab { border-collapse: collapse; width: 100%; font-size: 12px; }
.cm-tab th, .cm-tab td { border-top: 1px solid var(--hairline); padding: 4px 6px; text-align: left; vertical-align: top; }
.cm-tab td.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.cm-tab th.num { text-align: right; }
.cm-top:not(:empty) { margin: 0 0 14px; }
.cm-tab tr.is-bad td { background: rgba(180, 55, 43, .06); }

/* Inicio › dirección (2026-10-20, Paul): everything on one screen on a computer. Narrow cards, the stuck
   work beside the next large charges, the board three cards a stage. */
.st-dir { gap: 10px; }
.st-dir > div:not([class]) { gap: 10px; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.st-cards .st-kpi { min-width: 0; padding: 8px 10px; }
.st-cards .st-kpi-v { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.st-kpi-x { margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--rule); font-size: 12px; }
.st-kpi-x b { font-family: var(--serif); font-weight: 400; font-size: 15px; }
.st-kpi-x.is-bad b { color: var(--alarm); }
.st-dir .st-sec { padding: 10px 14px; margin: 0; }
.st-dir .st-sec-head { margin-bottom: 6px; }
.st-mid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; align-items: start; }
.st-task { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, auto); gap: 8px; align-items: baseline;
  padding: 3px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 13px; }
.st-task:hover .st-task-t { text-decoration: underline; }
.st-task-d { font-family: var(--mono); font-size: 12px; color: var(--alarm); text-align: right; }
.st-task-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-task-p { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.st-charges { display: flex; flex-direction: column; }
.st-charge { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 3px 0;
  border-top: 1px solid var(--rule); font-size: 13px; }
.st-charge-d { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.st-charge-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-charge-v { font-family: var(--mono); text-align: right; white-space: nowrap; color: var(--alarm); }
.st-dir .st-board { grid-auto-columns: minmax(170px, 1fr); }
.st-dir .st-col { padding: 6px; gap: 4px; }
.st-dir .st-item { padding: 5px 8px; }
.st-dir .st-item-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-dir .st-alert { display: block; margin: 2px 0; padding: 3px 8px; } /* each alert on its own row (Paul, 2026-10-28) */
@media (max-width: 899px) {
  .st-mid { grid-template-columns: minmax(0, 1fr); }
  .st-task { grid-template-columns: 44px minmax(0, 1fr); }
  .st-task-p { grid-column: 2; max-width: none; }
}

/* dirección: the result of each department (with its last six months) and each project under way. */
.st-results { display: flex; flex-direction: column; gap: 4px; }
.st-res-h { margin: 0; }
.st-res-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.st-res { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'n n' 'v g' 's s';
  gap: 0 6px; align-items: end; padding: 6px 8px; background: var(--card); border: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; min-width: 0; }
.st-res:hover { border-color: var(--ink); }
.st-res-n { grid-area: n; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
/* The department's door and the project's stone, in ink beside the grey name. */
.st-res-n > span { overflow: hidden; text-overflow: ellipsis; }
.st-res-n .tab-ico, .st-res-n .hl-mark { flex: none; width: 16px; height: 16px; color: var(--ink); }
.st-res-v { grid-area: v; font-family: var(--serif); font-size: 18px; color: #2d6b5c; white-space: nowrap; }
.st-res-v.is-neg { color: var(--alarm); }
.st-res-s { grid-area: s; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-res .st-spark, .st-res-bars { grid-area: g; }
/* a project card: received and spent each on its own line, so neither is cut (Paul, 2026-10-28) */
.st-res.is-proj .st-res-s span { display: block; overflow: hidden; text-overflow: ellipsis; }
.st-spark-l { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.st-spark-0 { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 2; }
.st-spark-pos { fill: #2d6b5c; }
.st-spark-neg { fill: var(--alarm); }
.st-res-bars { display: flex; flex-direction: column; gap: 2px; width: 70px; align-self: center; }
.st-res-bars i { display: block; height: 5px; min-width: 1px; }
.st-res-bars .is-in { background: #2d6b5c; }
.st-res-bars .is-out { background: var(--alarm); }
.st-res.is-more { display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* dirección's top row: the five money cards, then the month close on the right (Paul, 2026-10-20). */
.st-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.st-top .cm-card { margin: 0; width: 320px; }
.cm-card.is-compact { padding: 6px 10px; }
.cm-card.is-compact .cm-h { margin-bottom: 2px; gap: 6px; }
.cm-card.is-compact .cm-row { padding: 2px 0; gap: 6px; font-size: 12px; flex-wrap: nowrap; }
.cm-card.is-compact .cm-m { min-width: 92px; }
.cm-card.is-compact .cm-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-card.is-compact .np-create, .cm-card.is-compact .tk-plus { padding: 2px 8px; font-size: 11px; min-height: 0; }
@media (max-width: 899px) { .st-top { grid-template-columns: minmax(0, 1fr); } .st-top .cm-card { width: auto; } }

/* Dinero › facturas y banco (cuentas.js): the lists as tables beside a side menu. */
.cu .cu-item .dir-tag { white-space: nowrap; }
.cu-sum { font-size: 14px; margin: 4px 0 10px; }
.cu-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 8px; }
.cu-q { max-width: 360px; }
.cu-only { font-size: 13px; }
.cu-t td, .cu-t th { white-space: nowrap; }
.cu-t td:nth-child(3), .cu-t td:nth-child(4) { white-space: normal; }
.cu-t tr.is-owed td.num:nth-child(7) { color: var(--accent-red, #9c4a3d); font-weight: 600; }

/* The step list (Paul, 2026-10-28): the open step and two either side; the rest scrolls, with no bar. */
.cm-wiz .cm-steps { overflow-y: auto; scrollbar-width: none; }
.cm-wiz .cm-steps::-webkit-scrollbar { display: none; }
/* scrolled above the stop: every step above the open one in grey (cierre.js STOP) */
.cm-wiz .cm-steps.is-above .fl-acc:has(~ .fl-acc.is-open) { opacity: .6 !important; }
/* What a step still has open, said once when Siguiente is pressed. */
.cm-alert { border: 1px solid #9c4a3d; background: rgba(180, 55, 43, .06); color: #9c4a3d; padding: 10px 12px; margin: 12px 0 0; font-size: 14px; font-weight: 600; }
/* Banco y conciliación in the Cierre (Paul, 2026-10-28): one thing per line, each opening its rows;
   a box under a row to link it or say what it is. */
.cm-line { display: flex; gap: 8px; align-items: baseline; width: 100%; background: none; border: 0; padding: 3px 0; font: inherit; font-size: 14px; color: inherit; text-align: left; cursor: pointer; }
.cm-line.cm-warn { color: #8B5A00; }
.cm-caret { width: 12px; color: var(--muted); }
.cm-line-b { margin: 2px 0 10px 20px; font-size: 14px; }
.cm-row-g { display: grid; align-items: center; border-top: 1px solid var(--hairline); }
.cm-row-g > div { padding: 4px 10px 4px 0; min-width: 0; overflow-wrap: anywhere; }
.cm-row-g > .num { text-align: right; white-space: nowrap; }
.cm-row-g.is-head { border-top: 0; }
.cm-row-g.is-on { background: var(--card); }
.cm-hd { font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cm-linked { color: #2a4fd6; margin-right: 6px; }
.cm-pick { margin: 4px 0 10px; padding: 10px 12px; border: 1px solid #141413; background: #fff; }
/* Cierre › Banco: a line to link opens its box in the drawer (2026-11-03) */
.cm-row-g.is-pickable { cursor: pointer; }
.cm-row-g.is-pickable:hover { background: var(--card); }
.cm-row-g.is-pickable:hover .cm-go { color: var(--ink); }
.cm-go { color: var(--muted); font-size: 18px; line-height: 1; }
/* Cierre › Facturas: a new invoice by hand, design C (2026-11-03) */
.ni { border: 1px solid var(--ink); background: #fff; padding: 12px; margin: 6px 0; }
.ni-who { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.ni-sugg { position: absolute; top: 100%; left: 0; width: 376px; max-width: 100%; z-index: 20; background: #fff; border: 1px solid var(--ink); }
.ni-opt { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 8px; background: none; border: 0; border-top: 1px solid var(--rule); font: inherit; text-align: left; cursor: pointer; }
.ni-opt:hover { background: var(--paper); }
.ni-src { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.ni-tab { padding: 6px 12px; border: 1px solid #c9c7bd; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.ni-tab.is-on { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); font-weight: 700; }
.ni-n { width: 100%; text-align: right; }
.ni-x { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; }
.ni-tot { display: grid; grid-template-columns: 1fr 120px; gap: 3px 12px; max-width: 300px; margin: 8px 0 0 auto; font-size: 13px; }
.ni-tot .num { text-align: right; }
.ni-tot .is-b { font-weight: 700; border-top: 1px solid var(--ink); padding-top: 4px; }
.cm-pick .tk-in { width: 100%; max-width: 360px; margin: 6px 0; }
.cm-pick-list { max-height: 240px; overflow-y: auto; }
.cm-pick-row { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.cm-pick-row.is-on { background: var(--card); }
.cm-pick-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; margin-top: 8px; }
.cm-pick-sum .micro { flex-basis: 100%; text-align: right; }
.cm-pick-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; align-items: center; }
.cm-pick-a .tk-in { flex: 1; max-width: none; margin: 0; }
.cm-pick-other { border-top: 1px solid var(--hairline); margin-top: 10px; padding-top: 8px; }
.cm-pick-other .st-chip { margin: 0 6px 6px 0; }
/* Para la gestoría and its message (Paul, 2026-10-28): one Persona width so the tables line up; an
   internal note behind a comment icon; the e-mail as it will go, its text editable. */
.cm-gtab { font-size: 14px; }
/* Cierre › Lo que nos deben (option B, 2026-11-03) */
.cm-agebar { display: flex; height: 10px; margin: 6px 0 4px; background: #ecebe3; }
.cm-agekey { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.cm-agekey i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.cm-agekey strong { color: var(--ink); }
.cm-cbar { display: block; height: 8px; }
.cm-chip { display: inline-block; font-size: 12px; padding: 0 7px; border: 1px solid #c9c7bd; border-radius: 9px; margin-right: 4px; background: #fff; line-height: 18px; }
.cm-chip.is-old { border-color: #8a5a00; color: #8a5a00; }
.cm-quiet { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: #2a4fd6; text-decoration: underline; cursor: pointer; }
.cm-remd { display: block; color: var(--muted); }
.cm-grow { flex: 1; color: var(--muted); }
/* Cierre › Facturas recibidas (option D, 2026-11-03): four counts that filter, progress dots */
.cm-st9 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 14px; border: 1px solid #c9c7bd; background: #fff; }
.cm-st9-b { text-align: left; background: none; border: 0; border-left: 1px solid #e3e1d8; padding: 8px 10px; font: inherit; cursor: pointer; }
.cm-st9-b:first-child { border-left: 0; }
.cm-st9-b strong { display: block; font: 700 22px Georgia, serif; }
.cm-st9-b span { font-size: 12px; color: var(--muted); }
.cm-st9-b.is-on { box-shadow: inset 0 -3px 0 var(--ink); }
.cm-st9-b.is-zero strong { color: #b9b7ad; }
.cm-st9-b.is-warn strong, .cm-st9-b.is-warn span { color: #8B5A00; }
.cm-st9-b.is-warn.is-on { box-shadow: inset 0 -3px 0 #8B5A00; }
.cm-dots { display: inline-flex; gap: 3px; vertical-align: 1px; }
.cm-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink); display: inline-block; }
.cm-dots i.is-f { background: var(--ink); }
.cm-ell { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-sub { display: block; }
.cm-mail-frame { width: 100%; height: 420px; border: 1px solid var(--rule); background: #fff; margin: 8px 0; }
.cm-rcv { display: block; color: inherit; text-decoration: none; min-width: 0; }
.cm-rcv:hover .cm-ell { text-decoration: underline; }
/* Cierre › Para la gestoría (2026-11-03): the e-mail's state, one card per person */
.cm-aviso { border: 1px solid var(--ink); background: var(--card); padding: 8px 12px; margin: 0 0 10px; font-size: 14px; display: grid; gap: 4px; }
.cm-aviso.is-red { border: 2px solid var(--alarm); }
.cm-aviso-r { display: grid; grid-template-columns: 170px minmax(0, 1fr) 90px 240px; gap: 10px; align-items: baseline; border-top: 1px solid var(--rule); padding-top: 4px; }
.cm-aviso-r.is-c { grid-template-columns: 170px minmax(0, 1fr) 90px; }
.cm-aviso-r .num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.cm-aviso-do { color: var(--alarm); font-weight: 600; }
.cm-aviso-ok { color: var(--muted); }
.cm-sent { font-size: 13px; margin: 0 0 10px; padding: 6px 10px; border-left: 3px solid #8B5A00; background: #f3efe3; }
.cm-sent.is-done { border-left-color: #2F5233; background: #eef2ec; }
.cm-pc { border: 1px solid #c9c7bd; background: #fff; margin: 0 0 10px; }
.cm-pc.is-link { cursor: pointer; }
.cm-pc.is-link:hover { border-color: var(--ink); }
.cm-pc-h { display: flex; align-items: center; gap: 10px; padding: 9px 12px 6px; }
.cm-pc-n { font-weight: 700; font-size: 15px; }
.cm-pc-d { font-size: 12px; color: var(--muted); }
.cm-pc-s { margin-left: auto; font-size: 12px; font-weight: 600; padding: 0 8px; border-radius: 9px; line-height: 18px; color: #fff; }
.cm-pc-s.is-ok { background: #2F5233; }
.cm-pc-s.is-miss { background: #8B5A00; }
.cm-pc-l { display: grid; grid-template-columns: 120px minmax(0, 1fr) 24px; gap: 0 10px; align-items: center; padding: 2px 12px; font-size: 14px; }
.cm-pc-w { font-weight: 600; }
.cm-pc-l.is-end { color: #8B5A00; }
.cm-pc-p { display: flex; flex-wrap: wrap; gap: 4px 14px; border-top: 1px solid #e3e1d8; margin-top: 6px; padding: 7px 12px 9px; font-size: 12px; color: var(--muted); }
.cm-pc-p .is-y::before { content: '✓ '; color: #2F5233; font-weight: 700; }
.cm-pc-p .is-n { color: #8B5A00; }
.cm-pc-p .is-n::before { content: '✗ '; font-weight: 700; }
/* Inicio › Cierre de mes: a test site's «Volver al punto de guardado» (2026-11-03), unlike the app's own buttons */
.cm-reset { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 10px 0 0; padding: 7px 10px;
  background: repeating-linear-gradient(135deg, #f3efe3 0 8px, #ece5d2 8px 16px); border: 1px dashed #8B5A00; color: #8B5A00; font: inherit; text-align: left; cursor: pointer; }
.cm-reset:hover { border-style: solid; }
/* a button that only pretends, on a test site (sending the gestoría e-mail, approving invoices): the same look */
.st-btn.is-sim, .np-create.is-sim { background: repeating-linear-gradient(135deg, #f3efe3 0 8px, #ece5d2 8px 16px); color: #8B5A00; border: 1px dashed #8B5A00; }
.st-btn.is-sim:hover, .np-create.is-sim:hover { border-style: solid; }
.cm-reset-t { font-size: 13px; font-weight: 700; }
.cm-reset-s { font-size: 11px; font-family: var(--mono, monospace); letter-spacing: .03em; text-transform: uppercase; opacity: .8; }
.cm-note { position: relative; display: inline-block; }
.cm-note-b { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--ink); line-height: 0; }
.cm-note-box { position: fixed; z-index: 100; width: 260px; background: #fff; border: 1px solid #141413; padding: 8px 10px; font-size: 13px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--ink); text-align: left; white-space: normal; }
.cm-mail { background: #fff; border: 1px solid var(--hairline); padding: 12px 14px; font-size: 14px; }
.cm-mail-h { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.cm-mail .tk-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; }
.cm-mail textarea.tk-in { margin: 10px 0 0; resize: vertical; }
/* Turnos in the Cierre (Paul, 2026-10-28): the shifts toggle by type / by person; a request's buttons. */
.cm-toggle { display: flex; justify-content: flex-end; gap: 6px; margin: 2px 0 6px; }
.cm-row-g.is-total { font-weight: 600; }
.cm-req-a { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 0 8px; }
.cm-req-a .tk-in { width: auto; }
/* Turnos as tabs (Paul, 2026-11-03, design file "Cierre mensual", propuesta 03/11): the sub-menu's look (app.css
   nav.subs) inside the window, with icon and count; a tab with nothing in it is pale. */
.cm-tbs { display: flex; border-bottom: 1px solid var(--rule); margin: 2px 0 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.cm-tbs::-webkit-scrollbar { display: none; }
.cm-tb { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: none; border: 0;
  font: inherit; font-size: 13px; color: var(--muted-2); cursor: pointer; }
.cm-tb:first-child { padding-left: 0; }
.cm-tb .tab-ico { width: 13px; height: 13px; }
.cm-tb-n { font-variant-numeric: tabular-nums; }
.cm-tb:hover:not(.is-on) { color: var(--ink); }
.cm-tb.is-on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 0 var(--ink); }
.cm-tb.is-empty { opacity: .45; }
.cm-tb.is-empty.is-on { opacity: 1; }
.cm-tb.is-warn, .cm-tb.is-warn.is-on { color: #8B5A00; }
.cm-tb:not(.is-empty) .cm-tb-n { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 0 6px; font-size: 11px; font-weight: 600; line-height: 16px; }
.cm-tb.is-warn .cm-tb-n { background: #8B5A00; }
.cm-tb-b { font-size: 14px; min-width: 560px; }
.cm-tb-b .cm-link { margin: 10px 0 0; }
/* por tipo: the departments' shares, each department's line, a type that opens to its people */
.cm-depbar { display: flex; height: 10px; margin: 0 0 6px; }
.cm-depdot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
.cm-row-g.is-dep { font-weight: 700; border-top-color: var(--ink); }
.cm-type { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; border-top-color: #d8d6cc;
  font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 0; }
.cm-type > div:first-child { padding-left: 4px; }
.cm-type:hover { background: var(--card); }
.cm-row-g.is-sub { border-top: 1px dotted #d8d6cc; font-size: 13px; }
/* por persona: two groups over the columns, the balance on a shaded column, the bar of the month's difference */
.cm-row-g.is-grp { border-top: 0; }
.cm-grp { font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px !important; }
.cm-saldo { background: #ecebe3; padding-left: 10px !important; }
.cm-saldo.is-fig { font-weight: 700; font-size: 15px; }
.cm-dbar { position: relative; width: 52px; height: 10px; }
.cm-dbar > span { position: absolute; top: 0; height: 10px; }
.cm-dbar > .cm-dbar-0 { left: 26px; top: -3px; height: 16px; width: 1px; background: var(--muted); }
.cm-who { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.cm-who:hover { border-bottom-color: var(--ink); }
.cm-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 0; flex-wrap: wrap; }
.cm-foot-a { font-size: 13px; }
.cm-owe-eur { font-weight: 700; color: #8a5a00; padding-left: 6px; white-space: nowrap; }
.cm-owe-n { margin: 4px 0 0; }
.cm-key { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-weight: 400; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cm-key-i { display: inline-flex; align-items: center; gap: 6px; }
.cm-key-s { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; font-weight: 700; font-size: 16px; line-height: 1; }
.cm-key-sep { width: 1px; height: 14px; background: var(--rule); }
.cm-wait { list-style: none; display: flex; justify-content: center; }
/* Impuestos y caja: a section heading above its lines. */
.cm-wiz .fl-acc-b .cm-line-b .micro { margin: 0 0 4px; }
/* Cierre de mes, second round (Paul, 2026-11-02) */
.cm-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 6px; }
.cm-titlebar .cm-toggle { margin: 0; }
/* A part that folds away (2026-11-08): the title line with its count, a triangle that turns */
.cm-fold { margin: 14px 0 6px; border-top: 1px solid var(--ink); }
.cm-fold > summary { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; list-style: none; }
.cm-fold > summary::-webkit-details-marker { display: none; }
.cm-fold > summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
.cm-fold[open] > summary::before { transform: rotate(90deg); }
.cm-fold-n { font: 12px var(--mono); padding: 1px 7px; border-radius: 9px; background: var(--ink); color: var(--card); }
.cm-fold > .cm-titlebar { margin-top: 0; }
/* A step's parts, 5.1 5.2 5.3 (Paul, 2026-11-08): a dashed, indented line so they never read as steps */
.cm-sub { margin: 16px 0 4px 14px; border-top: 1px dashed var(--faint); padding-top: 8px; }
.cm-sub-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.cm-wiz .fl-acc-b .cm-sub-h b { display: inline; font: 700 14px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); margin: 0; }
.cm-sub-n { font: 11px var(--mono); color: var(--muted); }
.cm-sub-s { font-size: 13px; color: var(--muted); }
.cm-sub-h .cm-toggle { margin: 0; }
.cm-add-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--ink); padding: 12px 14px; }
.cm-add-soon { border: 1px dashed var(--muted); color: var(--muted); padding: 7px 12px; font-size: 13px; }
/* Facturas recibidas, the board (2026-11-08): three columns, ticks, a total per column, a button at the foot */
.rv-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; height: max(320px, calc(100vh - 420px)); }
.rv-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.rv-list > .rv-card { flex: none; }
@media (max-width: 900px) { .rv-board { grid-template-columns: minmax(0, 1fr); height: auto; } .rv-list { max-height: 50vh; } }
.rv-col { background: var(--paper); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.rv-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.cm-wiz .fl-acc-b .rv-head b, .cm-wiz .fl-acc-b .rv-main b { display: block; font: 700 14px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); margin: 0; }
.rv-sum { margin-left: auto; font: 17px var(--serif); white-space: nowrap; }
.rv-box { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); cursor: pointer; flex: none; }
.rv-warn { color: var(--warn-ink); font-size: 16px; line-height: 1; cursor: help; padding: 0 2px; }
.rv-card { background: var(--card); border: 1px solid var(--ink); padding: 8px 10px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: start; cursor: pointer; font-size: 13px; }
.rv-card.is-on { box-shadow: inset 3px 0 0 var(--ink); }
.rv-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.rv-flag { font-size: 11px; font-weight: 600; }
.rv-flag.is-bad { color: var(--alarm); }
.rv-flag.is-warn { color: var(--warn-ink); }
.rv-go { width: 100%; }
.rv-done { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1px solid var(--paul); color: var(--paul); font-size: 13px; font-weight: 600; }
.rv-undo { display: flex; align-items: center; gap: 14px; width: max-content; margin: 10px auto 0; background: var(--panel); color: var(--panel-figure); padding: 8px 14px; font-size: 13px; }
.rv-undo-b { border: 0; background: none; color: var(--card); font-weight: 700; text-decoration: underline; cursor: pointer; }
/* its two drawers: Revisar (the PDF beside the data) and one invoice (the supplier beside the invoice) */
.drw-body.rv-drw { display: flex; flex-direction: column; gap: 10px; }
.drw-body.rv-drw > .drw-title { display: none; }
.rv-drw-h { display: flex; align-items: baseline; gap: 12px; }
.rv-split, .rv-half { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; flex: 1; min-height: 0; border: 1px solid var(--ink); background: var(--card); }
.rv-split { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 900px) { .rv-split, .rv-half { grid-template-columns: minmax(0, 1fr); } }
.rv-pdf { background: var(--pdf-bg); min-height: 60vh; display: flex; }
.rv-pdf iframe { flex: 1; border: 0; min-height: 60vh; background: var(--card); }
.rv-form { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-left: 1px solid var(--ink); }
.rv-flagbox { border: 1px solid var(--alarm); border-left-width: 4px; padding: 7px 9px; font-size: 12px; background: var(--card); }
.rv-flagbox.is-warn { border-color: var(--warn-ink); }
.rv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-f { display: flex; flex-direction: column; gap: 3px; }
.rv-f.is-wide { grid-column: 1 / -1; }
.rv-row2 { display: flex; gap: 8px; }
.rv-row2 > * { flex: 1; }
.rv-sup { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--ink); overflow: auto; }
.rv-sup-n { margin: 0; font: 20px var(--serif); }
.rv-ro { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--rule); padding: 4px 0; font-size: 13px; }
.rv-inv { display: flex; flex-direction: column; min-height: 0; }
.rv-inv .rv-form { border-left: 0; border-top: 1px solid var(--ink); }
.rv-sup tr.is-on td { background: var(--surface-2); font-weight: 600; }

.cm-wiz .cm-drafts th { white-space: nowrap; font-weight: 400; padding-bottom: 6px; }
.cm-wiz .cm-drafts td { padding: 7px 12px 7px 0; vertical-align: middle; }
.cm-wiz .cm-drafts td.num { white-space: nowrap; }
.cm-drafts tr.is-missing td { color: #A3271B; }
.cm-drafts td.cm-missing { color: #A3271B; font-weight: 700; font-size: 12px; text-align: center; white-space: nowrap; }
.cm-hand { background: #FCEFB4; }
.cm-drafts td.cm-hand { box-shadow: inset 0 0 0 999px #FCEFB4; }
.cm-acts { white-space: nowrap; text-align: right; }
.cm-act { background: none; border: 0; padding: 2px 0; margin-left: 12px; font: inherit; font-size: 12px; color: var(--link, #2a4fd6); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cm-act:first-child { margin-left: 0; }
.cm-act.is-bad { color: #A3271B; font-weight: 700; }
.cm-act:disabled { color: var(--muted); cursor: default; }
.cm-client { color: inherit; text-decoration: underline; text-decoration-color: var(--hairline); text-underline-offset: 3px; }
.cm-client:hover { text-decoration-color: currentColor; }
.cm-pay { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-unset { margin: 10px 0 4px; }
.cm-unset-r { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0; }
.cm-unset-r .cm-pay { flex: none; flex-wrap: nowrap; }
.cm-client-w .cm-cw-l { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 5px; }
.cm-client-w .cm-cw-t { display: block; margin: 10px 0 0; font-size: 14px; }
.cm-client-w .tk-in { min-width: 0; flex: 1; }
.cm-spin { display: inline-block; width: 11px; height: 11px; border: 2px solid var(--hairline); border-top-color: #141413; border-radius: 50%;
  vertical-align: -1px; animation: cm-spin .8s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cm-spin { animation-duration: 2.4s; } }
.cm-part { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  border-top: 2px solid #141413; padding: 14px 0 4px; margin-top: 10px; }
.cm-listo { display: flex; gap: 22px; align-items: center; padding: 10px 0 6px; }
.cm-listo svg { flex: none; }
.cm-listo-h { font-family: Georgia, serif; font-size: 20px; margin: 0 0 6px; }
.cm-listo p { margin: 0 0 6px; }
.cm-mail-pre { white-space: pre-wrap; font: 13px/1.5 var(--sans, inherit); background: #fff; border: 1px solid var(--hairline); padding: 10px 12px; max-height: 46vh; overflow: auto; margin: 10px 0; }
@media (max-width: 900px) { .cm-listo { flex-direction: column; align-items: flex-start; } }
/* Part 2, the bank's detail (2026-11-08): a box to drop the PDF into */
.cm-drop { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; text-align: center; padding: 28px 16px; border: 1.5px dashed var(--ink); background: var(--card); cursor: pointer; }
.cm-drop.is-over { background: var(--fill); }
/* a person left unpaid in the bank's file: the question, the cash forecast, a date, the task (2026-11-08) */
.cm-unpaid { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--fill); padding: 8px 10px; }
.cm-unpaid-q { font-weight: 700; margin-right: 4px; }
.cm-wiz .fl-acc-b .cm-drop b { display: inline; font: 700 14px var(--sans); letter-spacing: normal; text-transform: none; color: var(--ink); margin: 0; }

/* Variación de caja: last month whole and this month so far, figures on one right edge (Paul, 2026-11-03). */
.st-var { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 10px; align-items: baseline; margin: 2px 0 2px; }
.st-var-m { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.st-var-v { font-family: var(--serif); font-size: 17px; text-align: right; color: #2d6b5c; white-space: nowrap; }
.st-var-v.is-neg { color: var(--alarm); }
.st-var-s { font-size: 11px; color: var(--muted); white-space: nowrap; }
/* A whole box that opens its panel. */
.st-sec[data-drawer]:hover { border-color: var(--ink); }

/* The panels a dirección card opens (panels.js), inside the drawer. */
.drw-body { flex: 1; overflow: auto; padding: 18px 26px 40px; }
.drw-title { font: 400 26px var(--serif); margin: 0 0 6px; }
.pnl-h { font: 600 15px var(--sans, inherit); margin: 22px 0 8px; display: flex; gap: 10px; align-items: baseline; }
.pnl-hs { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 400; margin-left: 8px; }
.pnl-sub { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }
.pnl-note { font-size: 12px; color: var(--muted); max-width: 760px; margin: 8px 0; }
.pnl-note.is-bad { color: var(--alarm); }
.pnl-t { border-collapse: collapse; background: var(--card); border: 1px solid var(--rule); font-size: 13px; }
.pnl-t th { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 400;
  text-align: left; padding: 6px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.pnl-t td { padding: 5px 12px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.pnl-t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pnl-t td.is-neg { color: var(--alarm); }
.pnl-t tr.is-total td { font-weight: 600; border-top: 1px solid var(--ink); }
.pnl-t tr.is-bad td { background: #f6e3e0; }
.pnl-t tr.is-flag td:nth-child(2) { color: var(--alarm); }
.pnl-t tr.is-org td { font-weight: 600; border-top: 1px solid var(--rule); }
.pnl-t tr.is-org.is-bad td { color: var(--alarm); background: none; }
.pnl-t tr.is-inv td { color: var(--muted); font-size: 12px; }
.pnl-t tr.is-inv td:first-child { padding-left: 26px; }
.pnl-link { color: var(--ink); }
.pnl-task { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto auto 120px; gap: 10px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.pnl-task.is-done { opacity: .45; }
.pnl-task-d { font: 12px var(--mono); color: var(--alarm); }
.pnl-task-t .pnl-hs { display: block; margin: 2px 0 0; }
.pnl-date { font: inherit; font-size: 12px; padding: 3px 4px; border: 1px solid var(--rule); background: var(--card); }
.pnl-btn { font: 12px var(--mono); padding: 4px 10px; border: 1px solid var(--ink); background: var(--card); cursor: pointer; }
.pnl-msg { font-size: 12px; color: var(--muted); }
.pnl-c { display: block; max-width: 460px; }

/* «+ añadir factura» and the invoice as it will look, in the drawer (design B, 2026-11-04) */
.cm-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 0; }
.cm-add-l { font-weight: 700; font-size: 13px; }
.cm-add .st-btn[disabled] { opacity: .5; cursor: default; }
.ni-wrap { max-width: 720px; }
.ni-doc { background: #fff; border: 1px solid #c9c7bd; padding: 22px 26px; font-size: 13px; }
.ni-doc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ni-doc-h h3 { margin: 0; font-size: 20px; }
.ni-doc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; margin: 14px 0; }
.ni-doc .cm-hd { display: block; margin: 0 0 3px; }
.ni-doc .ni-who { margin: 0 0 4px; }
.ni-doc .ni-sugg { width: 100%; }
.ni-wrap .fl-wiz-a { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ni-wrap .fl-wiz-a > span:last-child { display: flex; gap: 8px; align-items: center; flex: none; }
.ni-wrap .fl-wiz-a > .micro { font: 12px var(--sans, inherit); letter-spacing: 0; text-transform: none; color: var(--muted); }
@media (max-width: 900px) { .ni-doc-2 { grid-template-columns: 1fr; } .ni-doc { padding: 14px; } }
