/* conciliar_paso.css -- Dinero › conciliación, uno a uno (public/conciliar_paso.js), design B «El PDF manda» (Paul, 16/11):
   the queue in the conciliación purple on the left (172 px), the PDF big in the middle, the decision on the right (330 px,
   white). Square corners, hairlines; no coloured vertical rules; black filled only on buttons; every colour a token. */
html.cuo-on, html.cuo-on body { overflow: hidden; }
.cuo { position: fixed; inset: 0; z-index: 900; display: grid; grid-template-columns: 172px minmax(0, 1fr) 330px; min-height: 0;
  background: var(--paper); color: var(--ink); font-family: var(--sans); }
.cuo *, .cuo *::before, .cuo *::after { border-radius: 0; }
/* in the platform's drawer (openDrawerNode): the walkthrough fills it; its own ✕ replaces the drawer's head */
.drw.is-cuo { width: min(92vw, 1500px); }
.drw.is-cuo .drw-head { display: none; }
.drw.is-cuo .drw-body { padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; }
.drw.is-cuo .cuo { position: relative; inset: auto; z-index: auto; flex: 1 1 auto; min-height: 0; width: 100%; }

/* the queue */
.cuo-q { background: var(--panel); color: var(--panel-figure); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; min-height: 0; overflow-y: auto; scrollbar-width: none; box-sizing: border-box; }
.cuo-q::-webkit-scrollbar { display: none; }
.cuo-q-t { display: flex; flex-direction: column; gap: 4px; }
.cuo-q-k { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--panel-label); }
.cuo-q-n { font-size: 15px; font-weight: 600; white-space: nowrap; }
.cuo-mwrap { position: relative; }
.cuo-mbtn { width: 100%; height: 34px; padding: 0 12px; border: 1.5px solid var(--panel-label); background: transparent; color: var(--panel-figure); font: 500 13px var(--sans); display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.cuo-mcar { font-size: 10px; }
.cuo-mlist { position: absolute; left: 0; right: 0; top: 36px; z-index: 5; max-height: 280px; overflow-y: auto; background: var(--panel); border: 1.5px solid var(--panel-label); display: flex; flex-direction: column; }
.cuo-mopt { text-align: left; padding: 7px 12px; background: transparent; border: 0; border-bottom: 1px solid var(--panel-rule); color: var(--panel-dim); font: 13px var(--sans); cursor: pointer; }
.cuo-mopt:hover, .cuo-mopt.is-on { background: var(--panel-rule); color: var(--panel-figure); }
.cuo-q-sec { display: flex; flex-direction: column; }
.cuo-q-sh { padding-bottom: 6px; border-bottom: 1px solid var(--panel-rule); }
.cuo-q-it { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--panel-rule); background: transparent; color: var(--panel-dim); font: 14px var(--sans); text-align: left; cursor: pointer; }
.cuo-q-it.is-dim { color: var(--panel-label); }
.cuo-q-it.is-on { margin: 0 -10px; padding: 9px 10px; background: var(--panel-rule); color: var(--panel-figure); font-weight: 600; border-bottom-color: transparent; }
.cuo-q-c { font-family: var(--mono); white-space: nowrap; }
.cuo-q-done { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.cuo-q-dl { display: flex; justify-content: space-between; font-size: 13px; color: var(--panel-dim); }
.cuo-q-dl .cuo-q-c { color: var(--panel-figure); }
.cuo-q-bar { height: 6px; background: var(--panel-rule); }
.cuo-q-bar-in { height: 6px; background: var(--panel-figure); }

/* the PDF */
.cuo-pdf { min-height: 0; overflow-y: auto; background: var(--pdf-bg); padding: 22px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.cuo-pdf-h { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--panel-figure); }
.cuo-pdf-h > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuo-open { color: var(--panel-figure); font-size: 12px; white-space: nowrap; }
.cuo-pages { display: flex; flex-direction: column; gap: 12px; }
.cuo-page { position: relative; background: var(--card); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.cuo-page img { display: block; width: 100%; height: auto; }
.cuo-box { position: absolute; border: 2.5px solid currentColor; }
.cuo-btag { position: absolute; font: 600 10px var(--mono); padding: 1px 4px; white-space: nowrap; }
.cuo-btag.cuo-c1 { background: var(--remote); }
.cuo-btag.cuo-c2 { background: var(--dep-local-commerce); }
.cuo-btag.cuo-c3 { background: var(--dep-admin); }
.cuo-btag.cuo-c4 { background: var(--dep-projects); }
.cuo-btag.cuo-c5 { background: var(--dep-food-delivery); }
.cuo-page .cuo-btag { color: var(--card); }
.cuo-nopdf { color: var(--panel-figure); font-size: 13px; }
.cuo-nopdf-in { color: var(--ink); padding: 12px; margin: 0; }
.cuo-pdf-tog { display: none; }
/* each field's colour: the box on the page */
.cuo-c1 { color: var(--remote); }
.cuo-c2 { color: var(--dep-local-commerce); }
.cuo-c3 { color: var(--dep-admin); }
.cuo-c4 { color: var(--dep-projects); }
.cuo-c5 { color: var(--dep-food-delivery); }

/* the decision */
.cuo-dec { min-height: 0; overflow-y: auto; background: var(--card); border-left: 1.5px solid var(--hairline); padding: 22px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
.cuo-dec::-webkit-scrollbar { display: none; }
.cuo-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cuo-age { font-size: 13px; color: var(--muted); }
.cuo-age.is-old { color: var(--alarm); }
.cuo-x { width: 32px; height: 32px; padding: 0; font-size: 15px; }
.cuo-qn { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.cuo-k { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cuo-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cuo-num { font-family: var(--mono); white-space: nowrap; }
.cuo-big { font-size: 20px; font-weight: 600; }
.cuo-out { color: var(--office); }
.cuo-bank { display: flex; flex-direction: column; gap: 4px; }
.cuo-bank .cuo-num:not(.cuo-big) { font-size: 14px; }
.cuo-concept { font: 12px var(--mono); color: var(--body); overflow-wrap: anywhere; }
.cuo-invs { display: flex; flex-direction: column; margin: 0 -22px; }
.cuo-inv { display: flex; flex-direction: column; gap: 6px; padding: 16px 22px 18px; background: var(--panel); color: var(--panel-figure); }
.cuo-inv + .cuo-inv { border-top: 1px solid var(--panel-rule); }
.cuo-inv[tabindex] { cursor: pointer; }
.cuo-inv.is-on { background: var(--panel-rule); }
.cuo-inv .cuo-k { color: var(--panel-label); }
.cuo-iname { font-size: 15px; overflow-wrap: anywhere; }
.cuo-isub { font-size: 13px; color: var(--panel-dim); }
.cuo-isum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 22px; background: var(--panel); color: var(--panel-dim); font-size: 13px; border-top: 1px solid var(--panel-label); }
.cuo-isum .cuo-big { color: var(--panel-figure); }
.cuo-ifoot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cuo-odoo { font-size: 12px; color: var(--panel-figure); }
.cuo-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cuo-el { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--panel-label); }
.cuo-in { font: 14px var(--sans); padding: 4px 6px; border: 1px solid var(--panel-dim); background: var(--fill); color: var(--ink); width: 100%; box-sizing: border-box; }
.cuo-ia { display: flex; justify-content: flex-end; gap: 8px; }
.cuo-lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.35; }
.cuo-ok { color: var(--done); }
.cuo-ne { color: var(--warn-ink); }
.cuo-diff { color: var(--warn-ink); }
.cuo-why { font-size: 12px; color: var(--muted); margin: 0; }
.cuo-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.cuo-tag { font: 11px var(--sans); padding: 1px 6px; border: 1px solid currentColor; }
.cuo-err { color: var(--alarm); }

/* buttons: square; black filled is the step's action and nothing else */
.cuo-b { font: 500 15px var(--sans); padding: 8px 14px; border: 1.5px solid var(--hairline); background: var(--card); color: var(--ink); cursor: pointer; white-space: nowrap; }
.cuo-b[disabled] { opacity: .45; cursor: default; }
.cuo-go { background: var(--ink); color: var(--card); font-weight: 600; }
.cuo-ghost { background: transparent; color: inherit; border-color: currentColor; padding: 4px 10px; font-size: 12px; }
.cuo-save { background: var(--panel-figure); color: var(--panel); border-color: var(--panel-figure); padding: 4px 12px; font-size: 12px; }
.cuo-linkb { border: 0; background: none; padding: 0; color: var(--link); font: 13px var(--sans); text-decoration: underline; cursor: pointer; }
.cuo-linkb.cuo-on-dark { color: var(--panel-figure); }
.cuo-acts { position: sticky; bottom: -22px; margin: auto -22px -22px; padding: 12px 22px 22px; background: var(--card); display: flex; flex-direction: column; gap: 10px; }
.cuo-acts .cuo-go { height: 48px; }
.cuo-acts .cuo-no { height: 44px; }
.cuo-acts .cuo-linkb { text-align: center; }

/* search */
.cuo-search-q { font: 14px var(--sans); padding: 7px 9px; border: 1.5px solid var(--hairline); background: var(--card); color: var(--ink); width: 100%; box-sizing: border-box; }
.cuo-res { display: flex; flex-direction: column; border: 1px solid var(--rule); min-height: 120px; max-height: 42vh; overflow-y: auto; }
.cuo-r { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border: 0; border-bottom: 1px solid var(--surface-2); background: var(--card); color: var(--ink); font: 13px var(--sans); text-align: left; cursor: pointer; }
.cuo-r:hover { background: var(--surface-2); }
.cuo-r.is-on { background: var(--panel); color: var(--panel-figure); }
.cuo-r.is-on .cuo-out, .cuo-r.is-on .cuo-r2 { color: var(--panel-dim); }
.cuo-r1 { display: flex; justify-content: space-between; gap: 8px; }
.cuo-r2 { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuo-r-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuo-pickinfo { font-size: 13px; min-height: 18px; }
.cuo-none { font-size: 13px; color: var(--muted); padding: 8px; margin: 0; }

/* reparto (window.repartoForm: also in the movement panel and the Asignación pop-up) */
.cuo-form { display: flex; flex-direction: column; gap: 8px; }
.cuo-form > .cuo-h:not(:first-child) { margin-top: 6px; }
.cuo-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cuo-rep { display: flex; flex-direction: column; gap: 8px; }
.cuo-rep-r { display: grid; grid-template-columns: auto minmax(0, 1fr) 26px; gap: 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--surface-2); }
.cuo-rep-r .cuo-deps { grid-column: 1 / -1; }
.cuo-deps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cuo-chip { padding: 4px 9px; font-size: 12px; border-color: var(--rule); border-width: 1px; }
.cuo-chip.is-on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.cuo-pj { font: 12px var(--sans); padding: 4px 7px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); min-width: 130px; }
.cuo-pj.is-bad { border-color: var(--alarm); }
.cuo-pjdep { font-size: 11px; color: var(--muted); flex-basis: 100%; }
.cuo-mo, .cuo-pcts { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.cuo-mo-v { min-width: 70px; text-align: center; }
.cuo-step { padding: 3px 8px; font-size: 13px; border-width: 1px; }
.cuo-pct { width: 54px; font: 13px var(--mono); text-align: right; padding: 4px 5px; border: 1px solid var(--hairline); }
.cuo-del { padding: 2px 6px; font-size: 11px; border-color: var(--rule); border-width: 1px; }
.cuo-rep-add { display: flex; gap: 6px; flex-wrap: wrap; }
.cuo-rep-sum { font-size: 12px; color: var(--done); }
.cuo-rep-sum.is-bad { color: var(--alarm); }
.cuo-tgs { display: flex; flex-wrap: wrap; gap: 4px; }
.cuo-cm { font: 13px var(--sans); padding: 6px 8px; border: 1px solid var(--rule); width: 100%; box-sizing: border-box; resize: vertical; }

/* the end of a section: across the PDF and the decision */
.cuo.cuo-wide .cuo-pdf { display: none; }
.cuo.cuo-wide .cuo-dec { grid-column: 2 / -1; border-left: 0; }
.cuo-summary { display: flex; flex-direction: column; gap: 6px; max-width: 1100px; }
.cuo-where { display: flex; justify-content: space-between; align-items: baseline; }
.cuo-where .micro { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cuo-sum-h { font: 600 14px var(--sans); margin: 10px 0 2px; }
.cuo-tbl { border-collapse: collapse; width: 100%; background: var(--card); font-size: 13px; }
.cuo-tbl th { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hairline); }
.cuo-tbl th.cuo-num { text-align: right; }
.cuo-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.cuo-tbl td.cuo-num { text-align: right; }
.cuo-tbl tr.is-later td { color: var(--muted); }
.cuo-tbl tr.is-no td { color: var(--office); }
.cuo-td-w { overflow-wrap: anywhere; }
.cuo-endp { font-size: 15px; }
.cuo.cuo-wide .cuo-acts { flex-direction: row; justify-content: flex-end; }
.cuo.cuo-wide .cuo-acts .cuo-b { height: auto; min-width: 140px; }

/* the inbox's state on Dinero › conciliación (decision 1B): stages with their count, the age rule in red */
.cuo-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 8px; font-size: 12px; }
.cuo-strip-l { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 4px; }
.cuo-stage { display: inline-flex; gap: 6px; align-items: baseline; padding: 3px 8px; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); font: 12px var(--sans); cursor: pointer; }
.cuo-stage.is-zero { color: var(--faint); border-color: var(--rule); }
.cuo-old { color: var(--alarm); font-size: 12px; }

/* below 1100: the PDF under the decision; below 900, one column with the queue as a strip on top */
@media (max-width: 1099px) {
  .cuo { grid-template-columns: 172px minmax(0, 1fr); grid-template-rows: auto auto; overflow-y: auto; align-content: start; }
  .cuo-q { grid-column: 1; grid-row: 1 / span 2; }
  .cuo-dec { grid-column: 2; grid-row: 1; border-left: 0; overflow: visible; }
  .cuo-pdf { grid-column: 2; grid-row: 2; overflow: visible; }
  .cuo-acts { position: static; margin: 0 -22px; }
}
@media (max-width: 899px) {
  .drw.is-cuo { width: 100%; }
  .cuo { display: flex; flex-direction: column; overflow-y: auto; }
  .cuo-q { order: 1; flex: 0 0 auto; }
  .cuo-dec { order: 2; flex: 0 0 auto; }
  .cuo-pdf { order: 3; flex: 0 0 auto; }
  .cuo-q { flex-direction: row; flex-wrap: wrap; gap: 10px 16px; padding: 12px; overflow: visible; }
  .cuo-q-t { flex-basis: 100%; }
  .cuo-mwrap { flex-basis: 100%; }
  .cuo-q-sec { flex: 1 1 140px; }
  .cuo-q-done { flex-basis: 100%; margin-top: 0; }
  .cuo-dec { padding: 16px 12px; overflow: visible; }
  .cuo-invs { margin: 0 -12px; }
  .cuo-inv, .cuo-isum { padding-left: 12px; padding-right: 12px; }
  .cuo-acts { margin: 0 -12px; padding: 12px; }
  .cuo-pdf { padding: 12px; overflow: visible; }
  .cuo-pdf-tog { display: inline-block; align-self: flex-start; color: var(--panel-figure); }
  .cuo.cuo-wide .cuo-dec { grid-column: auto; }
  .cuo-tbl th:nth-child(5), .cuo-tbl td:nth-child(5) { display: none; }
}
/* the question above already says «¿Dónde cuenta?»: the form does not say it again */
.cuo-dec .cuo-form > .cuo-h:first-child > .cuo-k:first-child, .cuo-dec .cuo-form > .cuo-h:first-child > .micro:first-child { display: none; }
