/* ==========================================================================
   Views: Command Center, POS screens, cheque board, dashboards, reports,
   approvals, petty cash, documents, receipt voucher and print documents.
   ========================================================================== */

/* Badge tone aliases used by views */
.badge.amber { background: var(--warning-soft); color: var(--warning); }
.badge.blue  { background: var(--info-soft); color: var(--info); }
.badge.green { background: var(--good-soft); color: var(--good); }

/* ---------- Command Center ---------- */
.cc-hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(25,134,139,.55) 0%, rgba(25,134,139,0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(225,39,61,.18) 0%, rgba(225,39,61,0) 50%),
    linear-gradient(135deg, #172e38 0%, #12323b 55%, #0f4a50 100%);
  box-shadow: var(--shadow-2);
  display: grid; gap: 10px;
}
.cc-hero::after { /* the brand "S" house mark, as a soft watermark */
  content: ""; position: absolute; inset-block-start: -40px; inset-inline-end: -30px; width: 320px; height: 320px;
  background: url("../assets/logo/logo-square.png") center 22% / 190% no-repeat; opacity: .08; pointer-events: none;
  filter: grayscale(1) brightness(3);
}
.cc-hero .eyebrow { color: #9fd5d7; font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.cc-hero .eyebrow svg { width: 15px; height: 15px; }
.cc-hero h1 { font-size: 20px; margin-top: 2px; }
.cc-hero p { color: #c7dde2; margin-top: 2px; font-size: 12.5px; }
.cc-search {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px; width: min(760px, 100%);
  height: 42px; padding-inline: 14px; border-radius: 10px; border: 0;
  background: #fff; color: var(--ink-3); font-size: 13.5px; text-align: start;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.cc-search:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,0,0,.22); }
.cc-search svg { width: 22px; height: 22px; color: var(--brand-teal); flex: none; }
.cc-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .cc-search { background: #0f2129; color: #9fb4bb; }
.cc-suggest { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.cc-suggest .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e2eef1; height: 26px; }
.cc-suggest .chip:hover { background: rgba(255,255,255,.16); }

.cc-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cc-tiles .tile { flex: 1 1 calc(20% - 10px); min-width: 170px; }
.cc-tiles .tile.hero { flex-basis: calc(40% - 10px); min-width: 240px; }
.tile {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 12px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  color: var(--ink); text-decoration: none !important;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.tile:active { transform: translateY(0); }
.tile-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.tile-ico svg { width: 19px; height: 19px; }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-text b { font-size: 13.5px; }
.tile-text small { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-key { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; }
.tile-badge { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; }
.tile.tone-teal .tile-ico  { background: var(--primary-soft); color: var(--primary-strong); }
.tile.tone-navy .tile-ico  { background: var(--navy-50); color: var(--navy-700); }
.tile.tone-blue .tile-ico  { background: var(--info-soft); color: var(--info); }
.tile.tone-amber .tile-ico { background: var(--warning-soft); color: var(--warning); }
.tile.tone-red .tile-ico   { background: var(--accent-soft); color: var(--critical); }
.tile.tone-green .tile-ico { background: var(--good-soft); color: var(--good); }
:root[data-theme="dark"] .tile.tone-navy .tile-ico { background: #1f3a46; color: #cfe0e6; }
.tile.hero { min-height: 72px; color: #fff; border: 0; }
.tile.hero.tone-teal { background: linear-gradient(135deg, #1b9196 0%, #136d71 100%); box-shadow: 0 10px 26px rgba(25,134,139,.32); }
.tile.hero.tone-navy { background: linear-gradient(135deg, #25495a 0%, #172e38 100%); box-shadow: 0 10px 26px rgba(23,46,56,.32); }
.tile.hero .tile-ico { background: rgba(255,255,255,.16); color: #fff; width: 42px; height: 42px; }
.tile.hero .tile-text b { font-size: 16px; }
.tile.hero .tile-text small { color: rgba(255,255,255,.8); font-size: 12px; }
.tile.hero kbd { background: rgba(255,255,255,.16); color: #fff; border-color: transparent; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.kpis.small { margin-top: 0; margin-bottom: 12px; }
.kpis .stat { text-decoration: none; color: var(--ink); }

.cc-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.cc-queue .list-item { padding-block: 7px; }
.cc-queue .btn svg { width: 15px; height: 15px; }
.chq-timeline { display: grid; gap: 8px; }
.chq-pill { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.chq-pill:hover { border-color: var(--line-strong); }
.chq-pill .d { width: 36px; height: 36px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; line-height: 1; flex: none; }
.chq-pill .d b { font-size: 14px; }
.chq-pill .d small { font-size: 10.5px; color: var(--ink-3); }
.pin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pin-card { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none !important; transition: border-color .15s, background .15s; }
.pin-card:hover { border-color: var(--primary); background: var(--primary-soft); }
.pin-card .code { font-family: var(--font-mono); font-size: 11.5px; color: var(--primary-strong); font-weight: 700; }
.pin-card b { font-size: 12px; line-height: 1.35; }

/* ---------- POS screens ---------- */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); gap: 12px; align-items: start; }
.pos-left { display: grid; gap: 12px; min-width: 0; }
.pos-col { min-width: 0; }
.pos-basket { position: sticky; top: calc(var(--topbar-h) + 12px); max-height: calc(100vh - var(--topbar-h) - 24px); overflow-y: auto; scrollbar-width: thin; }
.pos-ledger { display: grid; gap: 10px; }
.cust-grid { display: grid; gap: 6px; }
.cust-card { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); text-align: start; transition: border-color .15s, box-shadow .15s, transform .1s; }
.cust-card:hover { border-color: var(--primary); box-shadow: var(--shadow-2); }
.cust-card:active { transform: scale(.995); }
.cust-card b { display: block; }
.cust-card small { display: block; color: var(--ink-3); font-size: 11.5px; }
.cust-open { text-align: end; flex: none; }
.cust-open b { font-size: 13.5px; }
.cust-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.cust-head h3 { font-size: 14.5px; }
.proj-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 6px; scrollbar-width: none; }
.proj-chips .chip { height: 26px; font-size: 11.5px; }
.items-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 12px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.item-list { display: grid; gap: 6px; padding: 4px 10px 10px; }
.item-card {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 9px;
  border: 1.5px solid var(--line); background: var(--surface); text-align: start; position: relative;
  transition: border-color .15s, background .15s, transform .08s;
}
.item-card:hover:not([disabled]) { border-color: var(--primary); }
.item-card:active:not([disabled]) { transform: scale(.992); }
.item-card[disabled] { opacity: .6; cursor: not-allowed; }
.item-card small { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 1px; }
.item-card .muted { color: var(--ink-3); }
.item-card .amt { text-align: end; flex: none; }
.item-card .amt b { font-size: 13.5px; display: block; }
.item-card .add-ico { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--ink-3); }
.item-card .add-ico svg { width: 11px; height: 11px; }
.item-card.added { border-color: var(--primary); background: var(--primary-soft); }
.item-card.added .add-ico { background: var(--primary); border-color: var(--primary); color: #fff; }
.chq-flag { display: inline-flex !important; align-items: center; gap: 5px; margin-top: 6px !important; padding: 2px 8px; border-radius: 6px; background: var(--info-soft); color: var(--info) !important; font-weight: 600; }
.chq-flag svg { width: 13px; height: 13px; }
.special-lines { display: flex; gap: 6px; padding: 0 10px 10px; flex-wrap: wrap; }
.special-lines .btn { flex: 1; }

.basket { display: grid; gap: 0; padding: 4px 10px; }
.b-line { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed var(--line); animation: pop .2s var(--ease); }
.b-line:last-child { border-bottom: 0; }
.b-line b { display: block; font-size: 12.5px; }
.b-line small { display: block; font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-line small.part { color: var(--warning); font-weight: 600; }
.b-amt { width: 110px; height: 30px; font-weight: 700; }
.pos-pay { display: grid; gap: 9px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.mode-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); width: 100%; }
.mode-seg button { justify-content: center; padding-inline: 6px; }
.totals { display: grid; gap: 6px; }
.tot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.tot-row.big { font-size: 13px; font-weight: 700; }
.tot-row.big .input-wrap { width: min(220px, 58%); }
.tot-row.un { padding: 5px 10px; border-radius: 8px; font-weight: 700; }
.tot-row.un.ok { background: var(--good-soft); color: var(--good); }
.tot-row.un.bad { background: var(--critical-soft); color: var(--critical); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keypad button { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 700; display: grid; place-items: center; transition: background .1s, transform .06s; }
.keypad button:hover { background: var(--surface-3); }
.keypad button:active { transform: scale(.96); background: var(--primary-soft); }
.keypad button svg { width: 20px; height: 20px; }
.keypad .kp-wide { font-size: 13.5px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.keypad .kp-wide svg { width: 16px; height: 16px; }
.keypad [data-k="fill"] { background: var(--primary-soft); color: var(--primary-strong); border-color: transparent; }
.submit { gap: 10px; }
.submit kbd { background: rgba(255,255,255,.18); color: #fff; border-color: transparent; }
.submit-hint { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--ink-3); }
.submit-hint svg { width: 15px; height: 15px; }
.rules { font-size: 12px; color: var(--ink-2); }
.rules summary { cursor: pointer; font-weight: 700; color: var(--ink); display: flex; gap: 6px; align-items: center; list-style: none; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary svg { width: 15px; height: 15px; color: var(--primary); }
.rules ul { margin-top: 6px !important; }
.kp-bar { display: flex; justify-content: space-between; gap: 8px; }
.rules b { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; color: var(--ink); }
.rules b svg { width: 16px; height: 16px; color: var(--primary); }
.rules ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.exp-grid.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.exp-tile { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; text-align: start; padding: 8px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); min-height: 60px; transition: border-color .15s, background .15s; }
.exp-tile:hover:not([disabled]) { border-color: var(--primary); }
.exp-tile.on { border-color: var(--primary); background: var(--primary-soft); }
.exp-tile .code { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.exp-tile b { font-size: 12.5px; line-height: 1.3; }
.exp-tile small { font-size: 11px; color: var(--ink-3); margin-top: auto; }
.exp-tile.trust { border-style: dashed; }

/* ---------- Cheque board ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.board .col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 200px; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.col-body { display: grid; gap: 8px; padding: 8px; align-content: start; }
.chq-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; box-shadow: var(--shadow-1); transition: box-shadow .15s; }
.chq-card:hover { box-shadow: var(--shadow-2); }
.chq-card.bad { border-color: color-mix(in srgb, var(--critical) 40%, var(--line)); }
.chq-no { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); }
.chq-no svg { width: 16px; height: 16px; color: var(--primary); }
.chq-party { font-weight: 600; margin-top: 6px; font-size: 13.5px; }
.chq-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.chq-meta span, .chq-hist { display: inline-flex; align-items: center; gap: 5px; }
.chq-meta svg, .chq-hist svg { width: 13px; height: 13px; }
.chq-hist { font-size: 12px; color: var(--ink-2); margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }
.chq-hist.bad { background: var(--critical-soft); color: var(--critical); }
.chq-hist.good { background: var(--good-soft); color: var(--good); }

/* ---------- Dashboards ---------- */
.dash-grid { display: grid; gap: 12px; margin-top: 12px; }
.dash-grid.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.dash-grid.g-1-1 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.big-num { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.big-num .cur, .vat-big .cur { font-size: 12px; color: var(--ink-3); margin-inline-start: 4px; font-weight: 600; }
.vat-big small { color: var(--ink-3); font-weight: 600; font-size: 12px; }
.vat-big b { display: block; font-size: 22px; letter-spacing: -.02em; }
.vat-rows { display: grid; gap: 8px; margin-top: 12px; font-size: 13px; }
.vat-rows div { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.budget-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pipe-step { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); text-align: start; }
.pipe-step:hover { border-color: var(--line-strong); }
.pipe-step b { font-size: 18px; }
.pipe-step small { color: var(--ink-3); font-size: 12px; }
.stat .value .cur { font-size: 13px; }

/* ---------- Reports ---------- */
.rep-quick { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.sec-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.sec-chips .chip b { font-size: 11px; opacity: .7; }
.rep-sec { margin-top: 12px; }
.rep-sec h3 { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 6px; }
.rep-sec h3 svg { width: 18px; height: 18px; color: var(--primary); }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.rep-card { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .12s; }
.rep-card:hover { border-color: var(--primary); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.rep-card .code { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--primary-strong); background: var(--primary-soft); border-radius: 6px; padding: 1px 6px; }
.rep-card b { font-size: 12.5px; line-height: 1.35; }
.rep-card small { font-size: 11.5px; color: var(--ink-3); }
.rep-card .pinned svg { width: 14px; height: 14px; color: var(--primary); }
.qv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qv-sel { width: auto; height: 32px; font-size: 13px; border-radius: 999px; padding-inline-start: 12px; }
.qv-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.qv-meta span { display: inline-flex; gap: 5px; align-items: center; }
.qv-meta svg { width: 14px; height: 14px; }
.qv-chart { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tbl tr.opening td { font-style: italic; color: var(--ink-2); background: var(--surface-2); }

/* ---------- Approvals ---------- */
.appr-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.appr { display: flex; gap: 12px; padding: 12px 14px; align-items: flex-start; }
.appr h3 { font-size: 14px; margin: 4px 0; }
.appr-reason { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--warning); background: var(--warning-soft); padding: 4px 10px; border-radius: 8px; margin-bottom: 6px; }
.appr-reason svg { width: 15px; height: 15px; }
.appr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.appr-side > b { font-size: 16px; }

/* ---------- Petty cash ---------- */
.fund-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.fund-card { display: grid; gap: 6px; text-align: start; padding: 10px 14px; border-radius: var(--radius-lg); border: 1.5px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.fund-card.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.fund-bal { font-size: 18px; font-weight: 700; }
.exp-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.sec-title { display: flex; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 12px; }
.sec-title svg { width: 18px; height: 18px; color: var(--primary); }
.photo-drop { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--surface-2); text-align: start; color: var(--ink-2); }
.photo-drop svg { width: 26px; height: 26px; color: var(--primary); }
.photo-drop small { display: block; color: var(--ink-3); font-size: 12px; }

/* ---------- Documents ---------- */
.doc-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.doc-summary > div { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.doc-summary small { color: var(--ink-3); font-size: 12px; font-weight: 600; }

/* ---------- Receipt voucher (سند قبض) ---------- */
.voucher { background: #fff; color: #13232b; border: 1px solid #dfe7ea; border-radius: 12px; padding: 22px 24px; font-size: 13px; }
.v-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; border-bottom: 3px solid #19868b; padding-bottom: 14px; }
.v-head img { height: 46px; width: auto; }
.v-head img:last-child { justify-self: end; }
.v-title { text-align: center; display: grid; }
.v-title b { font-size: 22px; color: #172e38; }
.v-title span { font-size: 13px; color: #19868b; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.v-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.v-meta div, .v-party, .v-amount { background: #f4f8f9; border-radius: 8px; padding: 8px 10px; }
.v-meta small, .v-party small, .v-amount small { display: block; color: #6f818a; font-size: 11px; }
.v-party { margin-bottom: 10px; }
.v-amount { margin-bottom: 14px; background: #e3f3f3; }
.v-amount b { font-size: 22px; color: #136d71; }
.voucher .tbl th { background: #172e38; color: #fff; }
.v-remark { margin-top: 10px; color: #4b5f69; }
.v-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.v-sign div { display: grid; gap: 30px; text-align: center; font-size: 12px; color: #4b5f69; }
.v-sign i { border-top: 1px solid #8499a3; display: block; }
.v-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid #e1e8eb; font-size: 11px; color: #6f818a; text-align: center; }

/* ---------- Printed report ---------- */
.print-doc { color: #13232b; font-size: 12px; }
.print-doc .p-head { display: flex; align-items: center; gap: 18px; border-bottom: 3px solid #19868b; padding-bottom: 12px; margin-bottom: 12px; }
.print-doc .p-head img { height: 44px; width: auto; }
.print-doc .p-head h2 { color: #172e38; font-size: 18px; }
.print-doc .p-filters { font-size: 11.5px; color: #4b5f69; margin-bottom: 8px; }
.print-doc .table-wrap { border: 0; overflow: visible; }
.print-doc .tbl th { background: #172e38; color: #fff; position: static; }
.print-doc.PP-STMT .tbl td, .print-doc.PP-STMT .tbl th { border: 1px solid #c9d5da; }
.print-doc .p-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 8px; border-top: 1px solid #c9d5da; font-size: 10.5px; color: #6f818a; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .exp-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .exp-layout > section:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .cc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-cols, .dash-grid.g-2-1, .rep-quick { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pos, .exp-layout { grid-template-columns: minmax(0, 1fr); }
  .pos-basket { position: static; max-height: none; overflow: visible; }
  .dash-grid.g-1-1 { grid-template-columns: minmax(0, 1fr); }
  .doc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appr { flex-wrap: wrap; }
  .appr-side { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
}
@media (max-width: 760px) {
  .cc-hero { padding: 20px 18px; }
  .cc-hero h1 { font-size: 24px; }
  .cc-search { height: 50px; font-size: 14px; }
  .cc-search kbd { display: none; }
  .cc-tiles .tile { min-width: calc(50% - 10px); }
  .cc-tiles .tile.hero { min-width: 100%; }
  .tile { min-height: 80px; padding: 12px; gap: 10px; }
  .tile-ico { width: 42px; height: 42px; }
  .tile-key { display: none; }
  .kpis .stat .value { font-size: 20px; }
  .stat .spark { display: none; }
  .fund-row { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(4, minmax(250px, 85vw)); scroll-snap-type: x mandatory; }
  .board .col { scroll-snap-align: start; }
  .v-meta { grid-template-columns: repeat(2, 1fr); }
  .v-head img { height: 30px; }
  .page-head h1 { font-size: 22px; }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
  .cc-tiles { gap: 10px; }
  .tile-text b { font-size: 14px; }
  .b-amt { width: 96px; }
  .tot-row.big { flex-wrap: wrap; }
  .tot-row.big .input-wrap { width: 100%; }
}

/* ---------- Small-screen refinements ---------- */
.appr > .grow { flex: 1 1 240px; min-width: 0; }
.appr-reason { max-width: 100%; }
@media (max-width: 760px) {
  .kpis.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpis.small .stat { padding: 12px; }
  .kpis.small .stat .label { font-size: 11.5px; }
  .kpis.small .stat .label .ico { display: none; }
  .kpis.small .stat .value { font-size: 17px; }
  .kpis.small .stat .value .cur { display: block; margin: 0; font-size: 11px; }
}
.topbar .brand { flex: none; }
.pos-mbar { display: none; }
@media (max-width: 900px) {
  .pos-mbar:not(:empty) {
    display: flex; align-items: center; gap: 12px;
    position: fixed; z-index: 44; inset-inline: 12px; inset-block-end: 84px;
    padding: 10px 12px 10px 16px; border-radius: 16px;
    background: var(--navy-700); color: #fff; box-shadow: var(--shadow-3);
    animation: pop .2s var(--ease);
  }
  .pos-mbar b { font-size: 16px; }
  .pos-mbar small { display: block; color: #b9ccd2; font-size: 12px; }
  .pos-mbar .btn { margin-inline-start: auto; background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }
}
@media (max-width: 760px) {
  .cc-tiles .tile:not(.hero) { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 112px; }
  .cc-tiles .tile:not(.hero) .tile-text b { font-size: 14.5px; line-height: 1.3; }
  .cc-tiles .tile:not(.hero) .tile-badge { inset-block-start: 12px; inset-block-end: auto; }
}

/* ---------- Compact pass (accountant density) ---------- */
.cc-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 16px; }
.cc-hero-side { display: grid; gap: 8px; position: relative; z-index: 1; }
.cc-hero .cc-search { width: 100%; }
@media (max-width: 1000px) { .cc-hero { grid-template-columns: minmax(0, 1fr); } }
.basket-empty { display: flex; gap: 8px; align-items: center; padding: 10px 4px; font-size: 12px; color: var(--ink-3); }
.basket-empty svg { width: 15px; height: 15px; flex: none; }
.mode-seg { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.mode-seg button { padding-inline: 4px; font-size: 12px; gap: 4px; }
.mode-seg button svg { width: 14px; height: 14px; }
.pay-mode3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.pos-pay .callout { padding: 7px 10px; font-size: 12px; }
.pos-pay .callout svg { width: 16px; height: 16px; }
.submit-hint { font-size: 11.5px; }
.callout { padding: 9px 12px; font-size: 12.5px; }
.ledger-head { padding: 7px 12px; }
.ledger-step { padding: 6px 12px 2px; }
.ledger-foot { padding: 5px 12px; }
.party-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 12px 0; }
.party-seg button { justify-content: center; padding-inline: 4px; }
.tile-key { inset-block-start: 6px; inset-inline-end: 6px; transform: scale(.9); }
.tile:has(.tile-key) .tile-text { padding-inline-end: 26px; }
