/* Hippo – estilos. Diseño limpio, botones grandes, pensado primero para el celular. */
:root {
  --primary: #5b3cc4;
  --accent: #ff8a3d;
  --bg: #f5f4fa;
  --surface: #ffffff;
  --surface-2: #f0eef8;
  --text: #1d1b26;
  --muted: #625f73;
  --border: #e2dfee;
  --ok: #15803d;
  --ok-bg: #e8f7ee;
  --warn: #b45309;
  --warn-bg: #fff4e0;
  --bad: #b91c1c;
  --bad-bg: #fdecec;
  --info: #1d4ed8;
  --info-bg: #e8effd;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 16, 40, .06), 0 4px 14px rgba(20, 16, 40, .06);
  --nav-h: 64px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
p { margin: .25rem 0 .75rem; }
small, .muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: 2px; }

/* ---------- estructura ---------- */
.app { min-height: 100vh; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: calc(var(--nav-h) + 24px); }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; min-width: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.brand .logo-fallback { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.topbar .spacer { flex: 1; }
.bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; text-decoration: none; font-size: 1.35rem; }
.bell .count { position: absolute; top: 2px; right: 0; background: var(--bad); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.content { max-width: 1200px; margin: 0 auto; padding: 1rem; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: var(--nav-h);
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a, .bottomnav button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  color: var(--muted); font-size: .72rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.bottomnav .ico { font-size: 1.35rem; }
.bottomnav .active { color: var(--primary); font-weight: 700; }
.bottomnav .plus .ico { background: var(--primary); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; margin-top: -14px; box-shadow: var(--shadow); }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 12, 30, .45); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(320px, 88vw); background: var(--surface); z-index: 41; overflow-y: auto; padding: 1rem; box-shadow: var(--shadow); }

.navlist { list-style: none; margin: 0; padding: 0; }
.navlist a { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 500; }
.navlist a:hover { background: var(--surface-2); }
.navlist a.active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-weight: 700; }
.navlist .ico { width: 1.6rem; text-align: center; font-size: 1.2rem; }
.navlist .sep { height: 1px; background: var(--border); margin: .5rem 0; }

@media (min-width: 960px) {
  .sidebar { display: block; width: 250px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .sidebar .brand { padding: .25rem .5rem 1rem; }
  .bottomnav { display: none; }
  .main { padding-bottom: 2rem; }
  .topbar .brand { display: none; }
  .content { padding: 1.5rem; }
}

/* ---------- componentes ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; flex: 1; min-width: 200px; }
.page-head .back { text-decoration: none; font-size: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.card-head h2, .card-head h3 { margin: 0; flex: 1; }
.grid { display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: .5rem; }
.right { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1rem;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #1d1b26; }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { min-height: 36px; padding: .3rem .7rem; font-size: .9rem; border-radius: 10px; }
.btn.big { min-height: 56px; font-size: 1.05rem; padding: .75rem 1.25rem; }
.btn.block { width: 100%; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .quick { grid-template-columns: repeat(6, 1fr); } }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 92px; border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); font-weight: 700; box-shadow: var(--shadow); text-align: center; padding: .5rem; }
.quick a .ico { font-size: 1.8rem; }
.quick a.primary { background: var(--primary); color: #fff; border-color: var(--primary); }

label.field, .field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; font-weight: 600; font-size: .95rem; min-width: 0; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field .error { color: var(--bad); font-weight: 500; font-size: .88rem; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1px solid #cfcadf; border-radius: 10px; padding: .6rem .7rem; min-height: 44px; width: 100%;
}
textarea { min-height: 84px; resize: vertical; }
.line-desc { font-size: .82rem; color: var(--muted); margin-top: .1rem; white-space: pre-wrap; }
.line-disc { font-size: .85rem; color: var(--ok); margin-top: .1rem; }
.line-discount { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .9rem; }
.line-discount input { width: 90px; min-height: 36px; padding: .3rem .5rem; }
.line-discount select { width: auto; min-height: 36px; padding: .3rem .5rem; }
.line-note { font-size: .85rem; color: var(--muted); font-style: italic; margin-top: .1rem; white-space: pre-wrap; }
.line-note-input { margin-top: .4rem; min-height: 38px; font-size: .92rem; padding: .4rem .6rem; }
.paste-item { border: 1px solid var(--border); border-left: 4px solid var(--ok); border-radius: 10px; padding: .6rem .75rem; margin-bottom: .6rem; }
.paste-item.pending { border-left-color: var(--warn); background: #fffbeb; }
.paste-options { display: flex; flex-direction: column; gap: 0; margin-top: .3rem; }
.paste-options .check { min-height: 36px; }
.time-input { display: flex; gap: .3rem; min-width: 0; }
.time-input select { flex: 1 1 0; min-width: 0; padding-left: .45rem; padding-right: .2rem; }
.time-input select:last-child { flex-grow: 1.25; }
.avail-day { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.avail-day > .check { width: 130px; }
.avail-times { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; flex: 1; min-width: 0; }
.avail-times .time-input { flex: 1 1 190px; max-width: 260px; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--primary); }
input[type="color"] { padding: 2px; height: 44px; width: 64px; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; min-height: 40px; cursor: pointer; }
.inline-fields { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .inline-fields.c3 { grid-template-columns: repeat(3, 1fr); } .inline-fields.c4 { grid-template-columns: repeat(4, 1fr); } }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge.gray { background: #eceaf2; color: #4a475a; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.example { background: #fff7c2; color: #7a5b00; border-color: #f1d36b; }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; padding: .1rem .5rem; border-radius: 6px; background: var(--surface-2); }
.tag .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; vertical-align: middle; }

.notice { border-radius: 12px; padding: .75rem .9rem; margin-bottom: .75rem; border: 1px solid; }
.notice.bad { background: var(--bad-bg); border-color: #f5c2c2; }
.notice.warn { background: var(--warn-bg); border-color: #f6d9a8; }
.notice.ok { background: var(--ok-bg); border-color: #b8e5c7; }
.notice.info { background: var(--info-bg); border-color: #c4d4f7; }
.notice h3 { margin-bottom: .35rem; }
.notice ul { margin: .25rem 0; padding-left: 1.2rem; }
.notice li { margin: .25rem 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }

.ev-card { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--cat, var(--primary));
  border-radius: 12px; padding: .7rem .8rem; margin-bottom: .6rem; box-shadow: var(--shadow); }
.ev-card:hover { border-color: color-mix(in srgb, var(--cat, var(--primary)) 50%, var(--border)); }
.ev-card .time { font-weight: 800; font-size: 1.02rem; }
.ev-card .title { font-weight: 700; }
.ev-card .meta { color: var(--muted); font-size: .88rem; }
.ev-card.st-borrador { border-style: dashed; border-left-style: solid; opacity: .9; }
.ev-card.st-cancelado { opacity: .6; }
.ev-card.st-finalizado { opacity: .75; background: #f8fafc; }
.ev-card.st-cancelado .title { text-decoration: line-through; }

/* calendario */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.cal-toolbar h2 { margin: 0; flex: 1; min-width: 160px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: .55rem .8rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 42px; color: var(--muted); }
.seg button.on { background: var(--primary); color: #fff; }
.seg.seg-sm { flex-shrink: 0; }
.seg.seg-sm button { min-height: 36px; padding: .3rem .65rem; min-width: 44px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month .dow { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); padding: .25rem 0; }
.month .day { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-height: 64px; padding: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.month .day.other { opacity: .45; }
.month .day.today { border: 2px solid var(--primary); }
.month .day.sel { background: color-mix(in srgb, var(--primary) 8%, #fff); }
.month .num { font-size: .85rem; font-weight: 700; }
.month .chip { font-size: .72rem; line-height: 1.2; border-radius: 5px; padding: 1px 4px; background: color-mix(in srgb, var(--cat) 18%, #fff); border-left: 3px solid var(--cat); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month .chip.st-borrador { border-left-style: dashed; background: #fff; }
.month .chip.st-cancelado { text-decoration: line-through; opacity: .6; }
.month .chip.st-finalizado { opacity: .7; background: #f1f5f9; }
.month .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.month .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); display: inline-block; }
.month .more { font-size: .7rem; color: var(--muted); }
@media (max-width: 719px) { .month .chip { display: none; } .month .day { min-height: 52px; } }
@media (min-width: 720px) { .month .dots { display: none; } .month .day { min-height: 110px; } }
.week { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); } .week .ev-card { font-size: .85rem; } }
.week .wday h3 { font-size: .95rem; }
.week .wday.today h3 { color: var(--primary); }
.timeline .hour { display: flex; gap: .75rem; }
.timeline .hour > .h { width: 4.6rem; white-space: nowrap; color: var(--muted); font-weight: 700; font-size: .85rem; padding-top: .7rem; }
.timeline .hour > .evs { flex: 1; border-top: 1px dashed var(--border); padding-top: .4rem; min-height: 2.4rem; }

/* comprobación de disponibilidad */
.actionbar { position: sticky; bottom: calc(var(--nav-h) + 8px); z-index: 16; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; box-shadow: 0 -2px 16px rgba(20,16,40,.12); display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 960px) { .actionbar { bottom: 12px; } }
.form-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .form-layout { grid-template-columns: minmax(0, 1fr) 380px; } .form-layout .side { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.line-row { display: grid; grid-template-columns: 1fr 110px 44px; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.qty { display: flex; align-items: center; border: 1px solid #cfcadf; border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: var(--surface-2); width: 36px; min-height: 44px; font-size: 1.2rem; cursor: pointer; }
.qty input { border: 0; text-align: center; min-width: 0; padding: .5rem .2rem; border-radius: 0; }
.metric { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 720px) { .metric { grid-template-columns: repeat(6, 1fr); } }
.metric div { background: var(--surface-2); border-radius: 10px; padding: .5rem; text-align: center; }
.metric b { display: block; font-size: 1.25rem; }
.metric span { font-size: .75rem; color: var(--muted); }
.metric .good { background: var(--ok-bg); }
.metric .bad { background: var(--bad-bg); }

.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1rem; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: .7rem .9rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 44px; }
.tabs button.on { color: var(--primary); border-bottom-color: var(--primary); }

table.simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.simple th, table.simple td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.simple th { font-size: .8rem; color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 12, 30, .5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--surface); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 1rem; }
@media (min-width: 720px) { .modal-backdrop { align-items: center; } .modal { width: min(640px, 94vw); border-radius: 18px; } .modal.wide { width: min(900px, 96vw); } }
.modal-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.modal-head h2 { margin: 0; flex: 1; }
.modal-foot { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; margin-top: 1rem; position: sticky; bottom: -1rem; background: var(--surface); padding: .6rem 0; }

.toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: .5rem; width: min(520px, 94vw); }
@media (min-width: 960px) { .toasts { bottom: 24px; } }
.toast { background: #24212f; color: #fff; padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; }
.toast.bad { background: var(--bad); }
.toast.ok { background: var(--ok); }

.alert-item { border: 1px solid var(--border); border-left: 6px solid var(--sev); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .6rem; background: var(--surface); }
.alert-item.unread { box-shadow: 0 0 0 2px color-mix(in srgb, var(--sev) 30%, transparent); }
.alert-item.sev-urgente { --sev: var(--bad); }
.alert-item.sev-importante { --sev: #d97706; }
.alert-item.sev-info { --sev: var(--info); }
.alert-item .body { white-space: pre-wrap; font-size: .92rem; margin: .35rem 0; }
.pre { white-space: pre-wrap; font-family: inherit; background: var(--surface-2); border-radius: 12px; padding: .9rem; font-size: .92rem; border: 1px solid var(--border); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { position: relative; padding: 0 0 1rem 2.2rem; }
.steps li::before { content: ""; position: absolute; left: .8rem; top: 1.6rem; bottom: 0; width: 2px; background: var(--border); }
.steps li:last-child::before { display: none; }
.steps .n { position: absolute; left: 0; top: .1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.steps .n.pickup { background: var(--accent); color: #1d1b26; }
.steps .n.base { background: #6b7280; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty .ico { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(440px, 100%); }
.login-card .brand { justify-content: center; margin-bottom: 1rem; font-size: 1.4rem; }
.login-card .brand img, .login-card .logo-fallback { width: 64px; height: 64px; font-size: 1.6rem; }
.photo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; display: grid; place-items: center; font-size: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.unit-chip { border: 1px solid var(--border); border-radius: 10px; padding: .3rem .6rem; font-size: .88rem; background: var(--surface); cursor: pointer; font: inherit; }
.loading { padding: 2rem; text-align: center; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.divider { height: 1px; background: var(--border); margin: .75rem 0; }
/* documento de cotización */
.doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; max-width: 820px; margin: 0 auto; color: #1d1b26; }
.doc-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 3px solid var(--primary); padding-bottom: .75rem; margin-bottom: 1rem; }
.doc-box { background: var(--surface-2); border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; line-height: 1.6; }
.doc-table th { background: color-mix(in srgb, var(--primary) 10%, #fff); }
/* Cantidad, precio e importe nunca se parten en dos líneas (la descripción sí puede ocupar varias) */
.doc-table td:not(:first-child), .doc-table th:not(:first-child), table.simple td:nth-child(n+2):last-child { white-space: nowrap; }
.doc-totals { max-width: 360px; margin: 1rem 0 1rem auto; }
.doc-cond { font-size: .85rem; border-top: 1px solid var(--border); padding-top: .75rem; margin-top: 1rem; }
.doc-cond ul { padding-left: 1.1rem; margin: .3rem 0; }
.paid-stamp { display: inline-block; border: 3px solid var(--ok); color: var(--ok); font-weight: 800; font-size: 1.4rem; letter-spacing: .15em; padding: .2rem 1rem; border-radius: 8px; transform: rotate(-4deg); }

@media print {
  .sidebar, .bottomnav, .topbar, .actionbar, .no-print, .toasts { display: none !important; }
  body, .app, .main { background: #fff !important; }
  .main { padding: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  .doc { border: 0; padding: 0; max-width: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
