/* ============================================================
   CLIENT MANAGEMENT PANEL — same amber look as the shop admin
   ============================================================ */
:root {
  --brand: #FFB616; --brand-hover: #F5A800; --brand-ink: #1A1200; --brand-soft: #FFF6E0; --brand-line: #FFE2A3;
  --mark: #C27803;
  --text: #101828; --muted: #475467; --muted-2: #667085; --line: #EAECF0; --line-2: #D0D5DD;
  --bg: #F6F5F2; --surface: #FFFFFF; --bg-soft: #F9FAFB;
  --ink: #1F1B16; --ink-2: #2A251F; --ink-fg: #FBFAF7; --ink-muted: #A8A196;
  --success: #12753F; --success-soft: #E7F8EE; --danger: #C4271B; --danger-soft: #FEF0EF;
  --info: #1D5BD8; --info-soft: #EAF1FF; --violet: #6B3FC4; --violet-soft: #F2ECFF; --warn: #9A5B00; --warn-soft: #FFF4DB;
  --wa: #25D366;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow-lg: 0 20px 48px -16px rgba(16,24,40,.32);
  --side-w: 248px; --top-h: 64px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --card-line: #EFEDE8; --line-soft: #F2F1EE; --hover-row: #FFFBF1; --tabs-bg: #EDEBE6; --track: #F1EFEA;
  --glow: #FFE8B0; --link: #9A6200; --ink-hover: #000; --side-fg: #E6E1D8; --avatar-bg: #3A332A;
  --neutral: #6B6B66; --neutral-soft: #F2F2F0; --muted-3: #B4B0A8;
  --warn-ink: #6E4200; --danger-ink: #8A1B12; --danger-line: #F4C7C3; --info-ink: #173F8F;
  --hover-tint: rgba(16,24,40,.06); --th-bg: #FCFCFB; --soft-ink: #1A1200;
}
html[lang="ar"], html[lang="fa"] { --font: "Vazirmatn", "Inter", ui-sans-serif, system-ui, Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted-2); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
/* numbers, codes, phones and money stay left-to-right inside Arabic / Persian text */
.ltr { direction: ltr; unicode-bidi: isolate; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.right { margin-inline-start: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.req { color: var(--danger); font-weight: 700; }
[hidden] { display: none !important; }

/* boot + spinner */
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box { display: grid; place-items: center; padding: 60px 0; }
.boot { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.boot-logo { width: 80px; height: 80px; border-radius: 22px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); animation: bootPop .9s cubic-bezier(.34, 1.56, .64, 1) both; }
.boot-logo svg { width: 40px; height: 40px; }
.boot-bar { width: 168px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--brand); animation: bootLoad 6s cubic-bezier(.08, .82, .17, 1) forwards; }
@keyframes bootPop { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bootLoad { 0% { width: 0; } 35% { width: 62%; } 100% { width: 94%; } }

/* ============================================================
   LOGIN / FIRST ACCOUNT
   ============================================================ */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 500px at 50% -10%, var(--glow) 0%, transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow-lg); animation: emptyIn .45s cubic-bezier(.2,.8,.2,1); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.login h1 { font-size: 22px; margin-bottom: 4px; }
.login form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.login .btn { height: 48px; }
.login-lang { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.login-lang button { padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.login-lang button.active { background: var(--brand-soft); color: var(--soft-ink); }
.form-error { background: var(--danger-soft); color: var(--danger); padding: 10px 12px; border-radius: 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.form-error svg { flex: none; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-inline-end: 44px !important; }
.pw-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted-2); font-size: 18px; }

.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: 0 0 auto; }
.logo-text { line-height: 1.05; font-weight: 800; letter-spacing: .04em; font-size: 13px; }
html[dir="rtl"] .logo-text { letter-spacing: 0; }
.logo-text small { display: block; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); font-size: 12px; margin-top: 3px; }

/* ============================================================
   SHELL: sidebar + top bar
   ============================================================ */
.app { min-height: 100vh; }
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w); z-index: 60;
  background: var(--ink); color: var(--ink-fg); display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto; overscroll-behavior: contain; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }
.nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px;
  color: var(--side-fg); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.nav a svg { font-size: 19px; flex: 0 0 auto; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.nav a.active svg { opacity: 1; }
.nav-count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.nav a.active .nav-count { background: var(--ink); color: var(--brand); }
.nav-glider { position: absolute; z-index: 0; pointer-events: none; box-shadow: 0 6px 18px -8px rgba(0,0,0,.45); }
.nav.gliding a.active { background: transparent !important; transition: color .2s ease .12s; }
.side-foot { margin-top: auto; padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--avatar-bg); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; font-size: 14px; }
.side-user b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { font-size: 12px; color: var(--ink-muted); }
.side-user .icon-btn { color: var(--ink-muted); }
.side-user .icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.side-bg { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }

.main { margin-inline-start: var(--side-w); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
body.scrolled .topbar { border-bottom-color: var(--line); }
.topbar .menu-btn { display: none; }
.qsearch { position: relative; flex: 1; max-width: 520px; }
.qsearch input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; padding-inline-start: 40px; font-size: 14.5px; }
.qsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.qsearch > svg { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 18px; pointer-events: none; }
.qs-pop { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto; z-index: 50; }
.qs-pop:not([hidden]) { animation: popIn .18s cubic-bezier(.22, 1, .36, 1); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.qs-group { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 8px 10px 4px; }
.qs-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.qs-item:hover, .qs-item.focus { background: var(--bg-soft); }
.qs-item .qs-ico { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-soft); flex: 0 0 auto; display: grid; place-items: center; color: var(--muted); }
.qs-item b { font-weight: 600; font-size: 14px; display: block; }
.qs-item span { font-size: 12.5px; color: var(--muted-2); }
.qs-empty { padding: 14px; color: var(--muted-2); font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.lang-sel { height: 40px; border: 0; background: transparent; font-weight: 600; font-size: 14px; padding: 0 8px; border-radius: 10px; cursor: pointer; }
.lang-sel:hover { background: var(--hover-tint); }

.content { padding: 8px 24px 64px; max-width: 1400px; }

@media (max-width: 1023px) {
  .side { transform: translateX(-100%); transition: transform .25s ease; }
  html[dir="rtl"] .side { transform: translateX(100%); }
  .app.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .app.nav-open .side-bg { opacity: 1; pointer-events: auto; }
  .main { margin-inline-start: 0; }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; gap: 8px; }
  .content { padding: 4px 16px 56px; }
}
@media (max-width: 599px) { .qsearch input { font-size: 16px; } }
/* phone: WhatsApp, Call, Edit and the bin fit on one line */
@media (max-width: 480px) { .page-head .actions { gap: 6px; } .page-head .actions .btn { padding: 0 12px; } }

/* ============================================================
   PAGE PARTS
   ============================================================ */
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0 18px; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted-2); font-size: 14px; margin-top: 2px; }
.page-head .actions { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 10px; }
.back-link:hover { color: var(--text); }
html[dir="rtl"] .back-link svg, html[dir="rtl"] .flip { transform: scaleX(-1); }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--card-line); min-width: 0; }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 16px; font-weight: 650; }
.card-head .sub { color: var(--muted-2); font-size: 13px; }
.card-head .right { display: flex; gap: 6px; align-items: center; }
.card-body { padding: 14px 20px 18px; }
.card + .card { margin-top: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.grid-main > .stack > .card + .card { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: transform .2s ease, border-color .2s; }
a.kpi:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.kpi-label svg { font-size: 17px; }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-sub { font-size: 13px; color: var(--muted-2); }
.kpi.hot { background: var(--brand-soft); border-color: var(--brand-line); }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 12px 14px; } .kpi-value { font-size: 22px; } }
/* amounts never break over two lines; on a phone a money tile takes the whole row */
.kpi-money .kpi-value { white-space: nowrap; }
@media (max-width: 600px) { .kpi-money { grid-column: span 2; } }

/* ============================================================
   BUTTONS & FORM CONTROLS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, color .15s, transform .15s; border: 1px solid transparent; }
.btn svg { font-size: 17px; flex: 0 0 auto; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-2); background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #A51F15; }
.btn-danger-ghost { background: var(--surface); border-color: var(--danger-line); color: var(--danger); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover:not(:disabled) { background: #1EBE5A; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; gap: 6px; }
.btn-sm svg { font-size: 15px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-text { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-text:hover { color: var(--text); }
.btn-link { color: var(--link); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; font-size: 19px; color: var(--muted); flex: 0 0 auto; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover-tint); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; font-size: 17px; }
.icon-btn.danger:hover { color: var(--danger); background: var(--danger-soft); }
html[dir="rtl"] .icon-btn .chev { transform: scaleX(-1); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.help { font-size: 12.5px; color: var(--muted-2); line-height: 1.45; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.input { width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; min-width: 0; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; min-height: 72px; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.input.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(196,39,27,.12) !important; }
select.input { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 10px center; }
html[dir="rtl"] select.input { background-position: left 10px center; }
@media (max-width: 599px) { .input { font-size: 16px; } }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 500; user-select: none; min-height: 32px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .25s ease; flex: 0 0 auto; }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s cubic-bezier(.34,1.5,.64,1); }
.switch input:checked + .switch-ui { background: var(--success); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
html[dir="rtl"] .switch input:checked + .switch-ui::after { transform: translateX(-16px); }

/* segmented tabs */
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--tabs-bg); border-radius: 12px; margin-bottom: 16px; width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; height: 36px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tab .count { font-size: 12px; font-weight: 700; color: var(--muted-2); background: var(--hover-tint); border-radius: 10px; padding: 0 7px; min-width: 22px; height: 20px; display: inline-grid; place-items: center; }
.tab.active .count { background: var(--brand); color: var(--brand-ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-soft); gap: 2px; border: 1px solid var(--line); }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.toolbar .search { position: relative; flex: 1 1 240px; max-width: 380px; }
.toolbar .search input { padding-inline-start: 38px; }
.toolbar .search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 17px; pointer-events: none; }
.toolbar select.input { width: auto; min-width: 150px; }

/* ============================================================
   TABLES (rows become cards on a phone)
   ============================================================ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-weight: 600; font-size: 12.5px; color: var(--muted-2); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--th-bg); }
.tbl th:first-child { border-start-start-radius: var(--radius); }
.tbl th:last-child { border-start-end-radius: var(--radius); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover { background: var(--hover-row); }
.tbl .t-end { text-align: end; }
.tbl .t-center { text-align: center; }
.tbl .strong { font-weight: 600; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-main > div { min-width: 0; }
.cell-main > div > b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.cell-main > div > span { display: block; font-size: 12.5px; color: var(--muted-2); }
@media (max-width: 720px) { .hide-sm { display: none !important; } }
@media (max-width: 1100px) { .hide-md { display: none !important; } }
@media (max-width: 720px) {
  .tbl-cards thead { display: none; }
  .tbl-cards, .tbl-cards tbody { display: block; }
  .tbl-cards tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  .tbl-cards tr:last-child { border-bottom: 0; }
  .tbl-cards td { padding: 0; border: 0; }
  .tbl-cards td.c-main { grid-column: 1; }
  .tbl-cards td.c-side { grid-column: 2; grid-row: 1; text-align: end; }
  .tbl-cards td.c-meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted-2); }
  .tbl-cards .cell-main > div > b { max-width: none; }
}

.badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border-radius: 13px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--bg-soft); color: var(--muted); }
html[dir="rtl"] .badge { padding: 0 8px 0 10px; }
.badge svg { font-size: 14px; }
.st-active { background: var(--success-soft); color: var(--success); }
.st-paused { background: var(--warn-soft); color: var(--warn); }
.st-ended { background: var(--neutral-soft); color: var(--neutral); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--muted); white-space: nowrap; border: 1px solid var(--line); }
.pill svg { font-size: 13px; }
.pill-ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill-bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill-brand { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.pill-info { background: var(--info-soft); color: var(--info); border-color: transparent; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted-2); animation: emptyIn .4s cubic-bezier(.2,.8,.2,1); }
.empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; margin: 0 auto 12px; font-size: 26px; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.empty-sm { padding: 18px 0; text-align: center; font-size: 14px; }
@keyframes emptyIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; font-size: 14px; }
html[dir="rtl"] .pager svg { transform: scaleX(-1); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted-2); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.note-box { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert svg { font-size: 18px; flex: 0 0 auto; margin-top: 1px; }
.alert-warn { background: var(--warn-soft); color: var(--warn-ink); }
.alert-bad { background: var(--danger-soft); color: var(--danger-ink); }
.alert-info { background: var(--info-soft); color: var(--info-ink); }
.code-big { font: 700 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }

/* PCs of a client */
.pc-list { display: flex; flex-direction: column; }
.pc-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line-soft); }
.pc-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-soft); color: var(--muted); font-size: 20px; flex: none; }
.pc-ico.is-main { background: var(--brand-soft); color: var(--warn); }
.pc-row b { display: block; font-weight: 600; }
.pc-row .grow > span { font-size: 13px; color: var(--muted-2); }

a.pc-row { transition: background .15s; }
a.pc-row:hover { background: var(--hover-row); }
.pc-row .grow > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-row .row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; font-size: 13.5px; }
.pc-row.paid-note { color: var(--success); font-weight: 600; font-size: 14px; gap: 8px; }
.pc-row.paid-note svg { font-size: 18px; }

/* money */
.owed { color: var(--danger); font-weight: 600; }
.ps-unpaid { background: var(--danger-soft); color: var(--danger); }
.ps-part { background: var(--warn-soft); color: var(--warn); }
.ps-paid { background: var(--success-soft); color: var(--success); }
.ps-overdue { background: var(--danger); color: #fff; }
.due-late { color: var(--danger); font-weight: 600; }
/* three boxes side by side; where there is no room for whole amounts (the side column, a phone) they
   become rows: label at one end, amount at the other */
.money-sum { container-type: inline-size; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.money-sum > div { flex: 1 1 0; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.money-sum span { display: block; font-size: 12.5px; color: var(--muted-2); }
.money-sum b { display: block; font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 520px) {
  .money-sum > div { flex-basis: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px; }
  .money-sum span { font-size: 13.5px; }
}
.money-sum .is-owed { background: var(--danger-soft); border-color: var(--danger-line); }
.money-sum .is-owed b { color: var(--danger); }
.money-sum .is-clear b { color: var(--success); }
.paybar { height: 6px; margin: 12px 20px 0; background: var(--track); border-radius: 3px; overflow: hidden; }
.paybar i { display: block; height: 100%; background: var(--success); border-radius: 3px; transform-origin: left center; animation: barFill .8s cubic-bezier(.2,.8,.2,1) both; }
html[dir="rtl"] .paybar i { transform-origin: right center; }
@media (min-width: 721px) { .show-sm { display: none !important; } }

/* order lines in the order dialog */
.ol { display: flex; flex-direction: column; gap: 8px; }
.ol-lines { display: flex; flex-direction: column; gap: 8px; }
.ol-head, .ol-row { display: grid; grid-template-columns: 168px minmax(0, 1fr) 60px 100px 108px 34px; grid-template-areas: "kind desc qty price amt x"; gap: 8px; align-items: center; }
.ol-head { font-size: 12.5px; font-weight: 600; color: var(--muted-2); }
.ol-kind { grid-area: kind; } .ol-desc { grid-area: desc; } .ol-qty { grid-area: qty; } .ol-price { grid-area: price; } .ol-amt { grid-area: amt; } .ol-x { grid-area: x; }
.ol-amt { text-align: end; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-lines .ol-row:only-child .ol-x { visibility: hidden; }
.ol-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 11px; font-weight: 700; }
.ol-total b { font-size: 17px; }
.input-static { display: flex; align-items: center; background: var(--bg-soft); color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pay-left { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--bg-soft); border-radius: 11px; font-size: 14px; }
@media (max-width: 599px) {
  .ol-head { display: none; }
  .ol-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 34px; grid-template-areas: "kind kind kind x" "desc desc desc desc" "qty price amt amt";
    padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
}

/* licences: green running, amber ending within 7 days, red expired, grey none */
.ls-ok { background: var(--success-soft); color: var(--success); }
.ls-soon { background: var(--warn-soft); color: var(--warn); }
.ls-expired { background: var(--danger-soft); color: var(--danger); }
.ls-none { background: var(--neutral-soft); color: var(--neutral); }
.ls-text.ls-ok, .ls-text.ls-soon, .ls-text.ls-expired, .ls-text.ls-none, .lic-line { background: none; }
.ls-text { font-weight: 600; }
.ls-text.ls-ok { color: var(--muted-2); font-weight: 500; }
.pc-row .grow > .lic-line { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; font-weight: 600; }
.lic-line svg { font-size: 14px; flex: none; }
.lic-line > span { min-width: 0; }
.pc-row .grow > .lic-line.ls-ok { color: var(--success); }
.pc-row .grow > .lic-line.ls-soon { color: var(--warn); }
.pc-row .grow > .lic-line.ls-expired { color: var(--danger); }
.pc-row .grow > .lic-line.ls-none { color: var(--muted-2); font-weight: 500; }
.icon-btn.key-due { color: var(--warn); background: var(--brand-soft); }
.lic-now { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; }
.lic-now.ls-ok { border-color: color-mix(in srgb, var(--success) 22%, transparent); }
.lic-now.ls-soon { border-color: var(--brand-line); }
.lic-now.ls-expired { border-color: var(--danger-line); }
.lic-now .lic-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; font-size: 19px; flex: none; }
.lic-now b { display: block; font-size: 15.5px; }
.lic-now .grow > span { display: block; font-size: 13px; color: var(--muted); }
.lic-now .badge { background: var(--surface); }
/* renewal → order: the switch, the price box under it */
.charge { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.charge .help { margin: 0; }
.charge-row { display: flex; align-items: center; gap: 8px; }
.charge-row[hidden] { display: none; }
.charge-row .input { max-width: 160px; }
.lic-hist h4 { font-size: 13px; font-weight: 600; color: var(--muted-2); margin: 4px 0 6px; }
.lic-hrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.lic-hrow b { display: block; font-size: 14px; font-weight: 600; }
.lic-hrow .grow > span { font-size: 13px; color: var(--muted-2); }
.icon-btn.ask { width: auto; padding: 0 10px; font-size: 13px; font-weight: 700; color: var(--danger); background: var(--danger-soft); }

/* work log */
.pc-row .grow > b.wrap { white-space: normal; overflow-wrap: anywhere; }
.pc-row.all-good { color: var(--success); font-weight: 600; font-size: 14px; gap: 8px; }
.pc-row.all-good svg { font-size: 18px; flex: none; }
a.pc-row.muted { justify-content: center; }

/* payments per month (dashboard): one series, one colour; the amount shows on hover / tap,
   and always for this month */
.mchart { position: relative; display: flex; align-items: stretch; gap: 10px; height: 200px; padding-top: 24px; }
.mchart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; border-top: 1px solid var(--line); pointer-events: none; }
.mcol { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; border-radius: 8px; cursor: default; }
.mcol:hover, .mcol:focus-visible { background: var(--hover-row); outline: none; }
.mbar-box { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.mbar { display: block; width: min(40px, 70%); background: var(--mark); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: barUp .7s cubic-bezier(.2,.8,.2,1) both; }
.mlabel { height: 24px; line-height: 24px; font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.mcol.is-now .mlabel { color: var(--text); font-weight: 650; }
.mtip { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 650; white-space: nowrap; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 1px 7px; box-shadow: var(--shadow); opacity: 0; transition: opacity .15s; pointer-events: none; z-index: 1; }
.mcol:hover .mtip, .mcol:focus-visible .mtip, .mcol.is-now .mtip { opacity: 1; }
.mchart:hover .mcol.is-now:not(:hover) .mtip { opacity: 0; }
@keyframes barUp { from { transform: scaleY(0); } }
@media (max-width: 600px) { .mchart { gap: 4px; } .mtip { font-size: 11.5px; } }

/* statement of account (printable) */
.stmt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px auto 14px; max-width: 880px; }
.stmt-bar .back-link { margin-top: 0; }
.statement { max-width: 880px; margin: 0 auto; padding: 26px 0 8px; }
.st-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 0 28px 18px; border-bottom: 1px solid var(--line-soft); }
.st-head h1 { font-size: 22px; font-weight: 700; }
.st-logo { max-height: 64px; max-width: 200px; object-fit: contain; }
.logo-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-box { width: 160px; height: 80px; border: 1px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-pick label.btn { cursor: pointer; }
.st-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 28px 0; }
.st-parties > div > * { display: block; }
.st-parties b { font-size: 16px; }
.st-parties span { font-size: 14px; color: var(--muted); }
.st-parties .st-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 2px; }
.money-sum.st-sum { padding: 16px 28px 0; }
.st-wrap { margin-top: 16px; }
.st-tbl td { vertical-align: top; }
.st-tbl tr.st-pay td { color: var(--muted); }
.st-tbl th:first-child, .st-tbl td:first-child { padding-inline-start: 28px; }
.st-tbl th:last-child, .st-tbl td:last-child { padding-inline-end: 28px; }
/* phone: each ledger line is a small card — date and balance, the details, then "Charged: …" or "Paid: …" */
@media (max-width: 600px) {
  .st-tbl thead { display: none; }
  .st-tbl, .st-tbl tbody { display: block; }
  .st-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d b" "x x" "a a"; gap: 2px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
  .st-tbl td { padding: 0 !important; border: 0; text-align: start; }
  .st-tbl td.st-d { grid-area: d; font-size: 13px; color: var(--muted-2); }
  .st-tbl td.st-b { grid-area: b; }
  .st-tbl td.st-x { grid-area: x; }
  .st-tbl td.st-amt { grid-area: a; font-size: 13.5px; }
  .st-tbl td.st-amt:empty { display: none; }
  .st-tbl td.st-amt::before { content: attr(data-label) ": "; color: var(--muted-2); }
}
.st-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 28px 18px; padding: 14px 16px; border-radius: 12px; font-weight: 700; }
.st-total b { font-size: 20px; }
.st-total.is-owed { background: var(--danger-soft); color: var(--danger-ink); }
.st-total.is-clear { background: var(--success-soft); color: var(--success); }
.st-total span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) {
  .statement { padding-top: 18px; }
  .st-head, .st-parties, .money-sum.st-sum { padding-inline: 16px; }
  .st-total { margin-inline: 16px; }
  .st-parties { grid-template-columns: 1fr; }
}

/* WhatsApp reminders */
.wa-to { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 11px; background: color-mix(in srgb, var(--wa) 10%, var(--surface)); font-size: 14px; }
.wa-to svg { color: #128C4A; font-size: 19px; flex: none; }
.wa-to > span:first-of-type { color: var(--muted); }
.wa-text { height: auto; min-height: 210px; padding: 10px 12px; line-height: 1.55; resize: vertical; white-space: pre-wrap; }
.icon-btn.wa-btn { color: #128C4A; }
.icon-btn.wa-btn:hover { background: color-mix(in srgb, var(--wa) 14%, transparent); }
.modal-foot .btn svg { font-size: 17px; }

/* versions bar list (dashboard) */
.barlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.barlist-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 5px; }
.barlist-top b { font-variant-numeric: tabular-nums; font-weight: 600; }
.barlist-track { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.barlist-track i { display: block; height: 100%; background: var(--mark); border-radius: 4px; transform-origin: left center; animation: barFill .8s cubic-bezier(.2,.8,.2,1) both; }
html[dir="rtl"] .barlist-track i { transform-origin: right center; }
@keyframes barFill { from { transform: scaleX(0); } }

/* ============================================================
   MODAL + TOASTS
   ============================================================ */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(16,24,40,.5); opacity: 0; transition: opacity .28s ease; }
.modal { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .22s ease, transform .38s cubic-bezier(.22, 1, .36, 1); }
.modal-wide { max-width: 760px; }
.modal-wrap.open .modal-bg { opacity: 1; }
.modal-wrap.open .modal { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px 22px; }
html[dir="rtl"] .modal-head { padding: 16px 22px 10px 18px; }
.modal-head h3 { font-size: 17px; font-weight: 650; flex: 1; }
.modal-body { padding: 4px 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-body > p { color: var(--muted); }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line-soft); }
.modal-wrap.closing { pointer-events: none; }
.modal-wrap.closing .modal-bg { opacity: 0; transition-duration: .2s; }
.modal-wrap.closing .modal { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .18s ease-in, transform .2s cubic-bezier(.4, 0, 1, 1); }
@media (min-width: 600px) { .modal-wrap.open .modal-bg { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); } }
@media (max-width: 599px) {
  .modal-wrap { place-items: end stretch; padding: 0; }
  .modal { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; max-height: 92dvh; transform: translateY(100%); opacity: 1; transition: transform .42s cubic-bezier(.22, 1, .36, 1); }
  .modal-wrap.closing .modal { transform: translateY(100%); opacity: 1; transition: transform .24s cubic-bezier(.4, 0, 1, 1); }
  .modal-head { position: relative; padding-top: 22px; touch-action: none; }
  .modal-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .modal-foot .btn { flex: 1; }
}
#toasts { position: fixed; z-index: 200; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; pointer-events: auto; }
.toast svg { font-size: 18px; color: var(--brand); flex: 0 0 auto; }
.toast-error { background: var(--danger); }
.toast-error svg { color: #fff; }
.toast.show { opacity: 1; transform: none; }

.net-notice { position: fixed; z-index: 250; left: 50%; top: calc(env(safe-area-inset-top) + 10px); transform: translate(-50%, -140%); padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #fff; background: #2B2B30; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); transition: transform .4s cubic-bezier(.22, 1, .36, 1); pointer-events: none; white-space: nowrap; }
.net-notice.on { background: #157347; }
.net-notice.show { transform: translate(-50%, 0); }

/* loading placeholders */
.skel-list { padding: 6px 0; }
.skel-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.skel-row:last-child { border-bottom: 0; }
.sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--bg-soft) 0%, var(--line) 45%, var(--bg-soft) 90%); background-size: 220% 100%; animation: skShimmer 1.3s ease-in-out infinite; }
.sk-ava { width: 36px; height: 36px; border-radius: 50%; }
.sk-line { height: 12px; width: 46%; margin: 4px 0 9px; }
.sk-line.short { width: 28%; height: 10px; margin: 0; }
.sk-pill { width: 96px; height: 26px; border-radius: 13px; }
.skel-row .grow { flex: 1; min-width: 0; }
@keyframes skShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tab-wait-list { opacity: .5; pointer-events: none; transition: opacity .2s ease .15s; }

/* the next page is built here, hidden, until it is ready */
.view-staging { visibility: hidden !important; height: 0 !important; overflow: hidden !important; margin: 0 !important; padding-block: 0 !important; pointer-events: none; }

/* thin scrollbars */
:root { --sb-thumb: color-mix(in srgb, var(--text) 24%, transparent); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 6px; }

@page { margin: 14mm 12mm; }
@media print {
  .side, .side-bg, .topbar, .actions, .no-print, #toasts, .net-notice, .modal-wrap { display: none !important; }
  .main { margin: 0 !important; } body { background: #fff; }
  .content { padding: 0 !important; max-width: none !important; }
  .statement { box-shadow: none; border: 0; max-width: none; padding-top: 0; }
  .table-wrap { overflow: visible; }
  .st-tbl tr { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
