/* Bufete M&M — sistema interno
   Paleta del logotipo: pizarra #3a444e, dorado #c49e6a, rombo #1e272d */
:root {
  --ink: #1f262d;
  --muted: #5e6873;
  --line: #d9dde2;
  --bg: #f3f4f6;
  --panel: #ffffff;
  --slate: #3a444e;
  --slate-2: #56626f;
  --gold: #c49e6a;
  --gold-soft: rgba(196, 158, 106, .35);
  --deep: #1e272d;
  --accent: #2f5d8a;
  --red: #990101;
  --amber: #967406;
  --green: #1c6325;
  --radius: 8px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1 { font-size: 1.6rem; margin: 0 0 .2rem; line-height: 1.2; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
p { margin: .3rem 0 .8rem; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.pre { white-space: pre-wrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Estructura */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex: 0 0 240px; background: linear-gradient(180deg, var(--slate) 0, var(--slate) 130px, var(--slate-2));
  color: #e9edf1; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh;
}
.brand { display: block; text-decoration: none; margin: 0 0 18px; padding: 2px 4px 14px; border-bottom: 1px solid var(--gold-soft); }
.brand img { display: block; width: 100%; max-width: 208px; height: auto; }
.brand small { display: block; margin-top: 8px; color: var(--gold); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 6px; font-weight: 700; letter-spacing: .04em; font-size: .85rem; }
.brand-mark.big { width: 64px; height: 64px; font-size: 1.1rem; border-color: var(--slate); color: var(--slate); }
.brand-text { display: flex; flex-direction: column; font-weight: 600; }
.brand-text small { font-weight: 400; opacity: .75; font-size: .75rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a { color: #e9edf1; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); }
.sidebar nav a.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.sidebar nav a.sub { font-size: .9rem; padding-left: 20px; opacity: .85; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); opacity: .8; margin: 16px 10px 4px; }
.me { border-top: 1px solid var(--gold-soft); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.me strong { color: var(--gold); font-weight: 600; }
.me span { opacity: .75; }
.me a, .me .link { color: #e9edf1; }
.main { flex: 1; min-width: 0; padding: 26px 32px 60px; max-width: 1200px; }
.main.solo { margin: 0 auto; }
.menu-toggle { display: none; }

/* Cabecera de página */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; font-size: .85rem; color: var(--muted); }

/* Paneles */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.panel.narrow { max-width: 520px; }
.panel.center { margin: 60px auto; text-align: center; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-2 > .panel { min-width: 0; }
.callout { background: #eef3f8; border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; color: var(--ink); }
.danger-zone { border-color: #e6c3c3; }

/* Indicadores */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--slate); }
.stat.warn .stat-num { color: var(--red); }
.type-bars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.type-bars li { display: flex; justify-content: space-between; padding: 10px 12px; background: var(--bg); border-radius: 6px; }

/* Formularios */
label { display: block; font-weight: 600; font-size: .88rem; margin: 10px 0 4px; }
label.check, .check label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.check { display: flex; align-items: flex-end; padding-bottom: 8px; }
input, select, textarea {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #c5cbd2; border-radius: 6px; background: #fff; color: var(--ink);
}
input[type="checkbox"], input[type="radio"] { width: auto; }
input.order { width: 70px; text-align: right; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--slate); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row.three { grid-template-columns: repeat(3, 1fr); }
.row > div { min-width: 0; }
.hint { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.actions { margin-top: 14px; display: flex; gap: 10px; }
.search-row { display: flex; gap: 8px; }
.search-row > :first-child { flex: 1; min-width: 0; }
.search-by { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.search-by label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-add { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Botones */
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: 1px solid #b9c0c8; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f1f3f5; }
.btn.primary { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn.primary:hover { background: var(--deep); border-color: var(--deep); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.block { width: 100%; margin-top: 16px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--red); }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.closed td { color: var(--muted); }
tr.na td { color: var(--muted); }
table.reqs td { vertical-align: middle; }
table.reqs select { min-width: 190px; }

/* Estados */
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); vertical-align: middle; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; gap: 6px; align-items: center; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e7e9ec; color: var(--muted); }
.pill-red { background: #f6e1e1; color: var(--red); }
.pill-amber { background: #f6eed6; color: var(--amber); }
.pill-green { background: #ddeee0; color: var(--green); }
.tag { display: inline-block; font-size: .72rem; padding: 1px 6px; border-radius: 4px; background: #e8eef5; color: var(--accent); margin-left: 4px; vertical-align: middle; }
.progress { height: 6px; background: #e5e8eb; border-radius: 3px; overflow: hidden; min-width: 80px; }
.progress span { display: block; height: 100%; background: var(--green); }
.progress-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.progress-card strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.progress-card span { font-size: .82rem; color: var(--muted); }

/* Ficha de datos */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; margin: 0 0 10px; }
.facts div { min-width: 0; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* Bitácora */
.timeline { list-style: none; padding: 0; margin: 14px 0 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.timeline p { margin: 2px 0; }
.tl-date { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; }

/* Mensajes */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: #e6f2e8; border-color: #b9dbbf; color: #17501f; }
.alert-error { background: #f8e5e5; border-color: #e6bcbc; color: #7d0a0a; }
.temp-pass p { margin: 4px 0; }
.big-code { font-size: 1.2rem; padding: 2px 8px; background: #fff; border: 1px solid #b9dbbf; border-radius: 4px; user-select: all; }

/* Inicio de sesión */
.login { max-width: 400px; margin: 8vh auto 0; }
.login-brand { text-align: center; margin-bottom: 18px; }
.login-brand img { width: 100%; max-width: 340px; height: auto; }
.login-brand p { color: var(--muted); letter-spacing: .04em; margin-top: 10px; }
.login .panel { border-top: 3px solid var(--gold); }

/* Pagos */
.small { font-size: .85rem; }
.center { text-align: center; }
.head-cards { display: flex; gap: 12px; flex-wrap: wrap; }
a.progress-card { color: inherit; text-decoration: none; }
a.progress-card:hover { border-color: var(--accent); }
.stat.money { text-decoration: none; color: inherit; }
.stat.money .stat-num { font-size: 1.45rem; color: var(--green); }
a.stat.money:hover { border-color: var(--accent); }
.method-split { list-style: none; padding: 8px 0 0; margin: 8px 0 0; border-top: 1px solid var(--line); font-size: .85rem; }
.method-split li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.paybox { background: linear-gradient(135deg, #f4f7fa, #eef2f6); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 10px 0 16px; }
.paybox.paid { background: linear-gradient(135deg, #eef7f0, #e3f1e6); border-color: #b9dbbf; }
.pay-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.pay-figures span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pay-figures strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pay-figures .ok { color: var(--green); }
.pay-figures .due { color: var(--red); }
.paybar { height: 16px; background: #dde2e7; border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.paybar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2e7d3a, #3fa04d); transition: width .6s ease; }
.paybar.small { height: 8px; margin-top: 12px; }
.paybar-label { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.pay-form { border-top: 1px dashed var(--line); padding-top: 14px; }
.pay-form h3, .sub-head { font-size: 1rem; color: var(--slate); margin: 0 0 6px; }
.sub-head { margin-top: 20px; }
.fee-edit { margin: 12px 0; }
.fee-edit summary, .void-box summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.fee-edit form { margin-top: 10px; }
tr.voided td { color: var(--muted); text-decoration: line-through; }
tr.voided td:last-child { text-decoration: none; }
.month-nav { display: flex; align-items: center; gap: 10px; text-transform: capitalize; }

/* Comprobante */
.receipt-layout { display: grid; grid-template-columns: minmax(0, 620px) minmax(260px, 1fr); gap: 18px; align-items: start; }
.receipt { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; overflow: hidden; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--slate); }
.receipt-brand { display: flex; align-items: center; gap: 10px; }
.receipt-brand .brand-mark { border-color: var(--slate); color: var(--slate); }
.receipt-brand strong { display: block; color: var(--slate); }
.receipt-brand small { color: var(--muted); }
.receipt-no { text-align: right; }
.receipt-no span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.receipt-no strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.receipt-amount { text-align: center; margin: 22px 0 18px; }
.receipt-amount span { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.receipt-amount strong { font-size: 2.2rem; color: var(--green); font-variant-numeric: tabular-nums; }
.receipt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 0 0 18px; }
.receipt-facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.receipt-facts dd { margin: 0; }
.receipt-sum { width: 100%; }
.receipt-sum th { text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink); font-weight: 400; }
.receipt-sum td { text-align: right; font-variant-numeric: tabular-nums; }
.receipt-sum tr.total th, .receipt-sum tr.total td { font-weight: 700; border-bottom: 0; font-size: 1.05rem; }
.receipt-pct { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.receipt-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.receipt-foot p { margin: 4px 0; }
.receipt-foot .legal { font-style: italic; }
.void-stamp { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 4rem; font-weight: 800; letter-spacing: .1em; color: rgba(153, 1, 1, .18); border: 6px solid rgba(153, 1, 1, .18); padding: 0 18px; border-radius: 10px; pointer-events: none; }
.void-note { background: #f6e1e1; color: var(--red); padding: 8px 12px; border-radius: 6px; font-size: .9rem; }
.send-box h2 { margin-top: 0; }
.send-box h3 { font-size: .95rem; margin: 18px 0 6px; }
.wa-buttons { display: flex; flex-direction: column; gap: 8px; }
.btn.wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; text-align: center; }
.btn.wa.outline { background: #fff; color: #1f8f4e; }
.copy-row { display: flex; gap: 6px; }
.copy-row input { min-width: 0; font-size: .82rem; }
.void-box { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.void-box summary { color: var(--red); }
.public-receipt { background: var(--bg); }
.public-receipt main { max-width: 640px; margin: 24px auto; padding: 0 16px; }
.lang-switch { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 10px; font-size: .9rem; }
.lang-switch a { color: var(--muted); }
.lang-switch a.active { color: var(--ink); font-weight: 700; text-decoration: none; }

@media print {
  .sidebar, .menu-toggle, .no-print, .alert { display: none !important; }
  body, .main, .public-receipt { background: #fff; padding: 0; }
  .receipt-layout { display: block; }
  .receipt { border: 0; padding: 0; }
}

/* Detalles con la paleta del logotipo */
.page-head h1::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--gold); }
.stat { border-top: 3px solid var(--gold); }
.progress-card { border-top: 3px solid var(--gold); }
.receipt-head { border-bottom-color: var(--gold); }
.receipt-logo { display: block; width: 230px; max-width: 100%; height: auto; }

/* Secciones de solo lectura con botón Editar */
.editable:not(.editing) .edit-only { display: none !important; }
.editable.editing .view-only { display: none !important; }
.editable.editing { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196, 158, 106, .15); }
.panel-head .head-actions { align-items: center; }
.req-view td { vertical-align: middle; }
.req-status { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; }
tr.na .req-status { color: var(--muted); }

/* Seguimiento: hitos, avisos, personas y mensajes */
[hidden] { display: none !important; }
form.inline { display: inline; }
.btn.small { padding: 4px 10px; font-size: .85rem; }
.callout.warn { background: #fbf4e2; border-left-color: var(--amber); }
.amparo-chip { display: inline-block; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e7e9ec; color: var(--slate); white-space: nowrap; }
.amparo-chip.soon { background: #f6eed6; color: var(--amber); }
.amparo-chip.late { background: #f6e1e1; color: var(--red); }
.amparo-chip.done { background: #ddeee0; color: var(--green); }
.progress-card.amparo-soon { border-top-color: var(--amber); }
.progress-card.amparo-soon strong { color: var(--amber); }
.progress-card.amparo-late { border-top-color: var(--red); }
.progress-card.amparo-late strong { color: var(--red); }
.row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .88rem; margin-top: 4px; }
.milestones .pill { margin-left: 6px; }
.notice-list, .due-list, .simple-list { list-style: none; padding: 0; margin: 0 0 12px; }
.notice-list li, .simple-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.due-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.due-list li > div:first-child, .due-list li > span + div { flex: 1; min-width: 0; }
.due-list small { display: block; }
.due-list li > .amparo-chip { margin-top: 2px; }
.milestone-form { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 8px; }
.milestone-form h3 { font-size: 1rem; color: var(--slate); margin: 0 0 6px; }
.check-group { display: flex; flex-direction: column; gap: 4px; justify-content: flex-end; }
.check-group .label { font-weight: 600; font-size: .9rem; }
.check-group label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; }
.span-all { grid-column: 1 / -1; }
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tpl-tabs a { font-size: .85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.tpl-tabs a.active { background: var(--slate); border-color: var(--slate); color: #fff; }
.msg-text { font-family: var(--font); line-height: 1.45; }
.placeholder-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.placeholder-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.placeholder-list code { background: #f1f3f5; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.gestor-row { display: grid; grid-template-columns: 56px 2fr 1fr 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.gestor-row.closed input { color: var(--muted); }
.receipt-facts .wide { grid-column: 1 / -1; }

/* Comprobante de trámite impreso */
.print-page { background: var(--bg); }
.print-actions { max-width: 720px; margin: 20px auto 0; display: flex; gap: 8px; justify-content: flex-end; padding: 0 16px; }
.ticket { position: relative; max-width: 720px; margin: 12px auto 40px; background: #fff; border: 1px solid var(--line); padding: 28px 32px; overflow: hidden; }
.ticket-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.ticket-brand img { display: block; width: 230px; max-width: 100%; height: auto; margin-bottom: 6px; }
.ticket-brand p { margin: 0; font-size: .82rem; color: var(--muted); }
.ticket-no { text-align: right; border-left: 1px solid var(--line); padding-left: 16px; }
.ticket-no span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ticket-no strong { font-size: 1.2rem; }
.ticket-client { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin: 16px 0; }
.ticket-client span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ticket-table { width: 100%; border: 1px solid var(--ink); border-collapse: collapse; }
.ticket-table th, .ticket-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; }
.ticket-table thead th { border-bottom: 1px solid var(--ink); color: var(--ink); }
.ticket-lines td { height: 150px; vertical-align: top; border-right: 1px solid var(--line); }
.ticket-lines ul { margin: 0 0 8px; padding-left: 18px; font-weight: 600; font-style: italic; }
.ticket-table tfoot th { text-align: right; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); font-weight: 400; }
.ticket-table tfoot tr.total th, .ticket-table tfoot tr.total td { font-weight: 700; }
.ticket-signs { display: flex; justify-content: space-between; gap: 40px; margin-top: 46px; }
.ticket-signs div { flex: 1; text-align: center; font-size: .9rem; }
.ticket-signs span { display: block; border-top: 1px solid var(--ink); margin-bottom: 4px; }
.ticket-legal { font-size: .78rem; font-style: italic; color: var(--muted); margin-top: 18px; }
@media print {
  .print-page { background: #fff; }
  .ticket { border: 0; margin: 0; padding: 0; max-width: none; }
}

/* Documentos */
.doc-list { list-style: none; padding: 0; margin: 0 0 8px; columns: 2; column-gap: 24px; }
.doc-list li { break-inside: avoid; padding: 5px 0; }
.steps { padding-left: 20px; margin: 0 0 12px; }
.steps li { margin-bottom: 6px; }
.field-chips code { display: inline-block; background: #f1f3f5; padding: 1px 6px; border-radius: 4px; margin: 2px 0; font-size: .82rem; }
.callout ul { margin: 6px 0; padding-left: 20px; }

/* Pantallas angostas */
@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: fixed; z-index: 20; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .menu-toggle { display: inline-block; margin-bottom: 12px; font: inherit; padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 6px; }
  .main { padding: 16px; }
  .grid-2, .row, .row.three, .stats, .type-bars, .facts { grid-template-columns: 1fr; }
  .receipt-layout, .receipt-facts { grid-template-columns: 1fr; }
  .gestor-row { grid-template-columns: 1fr 1fr; }
  .ticket-client { grid-template-columns: 1fr 1fr; }
  .due-list li { flex-direction: column; }
  .doc-list { columns: 1; }
  .pay-figures strong { font-size: 1.1rem; }
  .receipt { padding: 18px; }
  .receipt-amount strong { font-size: 1.8rem; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar, .paybar span { transition: none; } }
