/* Fix Prompt 46 — Redesign 1405: the shared components (partials/rd.html), ported value for value from the approved
   boards in design-reference/redesign-1405/boards. Tokens from tokens.css only; no hard-coded colour, shadow, radius
   or font. Every rule names the board it was copied from. */

.rd-iso__box { display: flex; flex-direction: column; }  /* like the boards: every component is a flex item there */
.rd-iso { margin: 0; font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--text); }

/* ---- the two-colour partner bar (rd.partner_bar) — board Main, «جزئیات» › «سهم شرکا» */
.rd-pbar { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.rd-pbar--ruled { border-top: 1px solid var(--border); padding-top: 10px; }
.rd-pbar__label { color: var(--text-soft); }
.rd-pbar__names { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.rd-pbar__a { color: var(--ink-2); }
.rd-pbar__b { color: var(--gold-text); }
.rd-pbar__bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.rd-pbar__fill-a { background: var(--ink); }
.rd-pbar__fill-b { background: var(--gold-2); }
.rd-pbar__amounts { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); }

/* ---- chip / badge (rd.chip) — boards CartableCancel (sm), CustomerProfile / CustHome (md), NotifConfig (xs) */
.rd-chip { font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rd-chip--xs { font-size: 10px; }
.rd-chip--sm { font-size: 11px; }
.rd-chip--md { font-size: 12px; }
.rd-chip--icon { display: inline-flex; align-items: center; gap: 4px; }
.rd-chip--neutral { background: var(--neutral-tint); color: var(--text-soft); }
.rd-chip--emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-chip--danger { background: var(--danger-bg); color: var(--danger-text); }
.rd-chip--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-chip--ink { background: var(--ink-tint); color: var(--ink-2); }

/* ---- filter chip (rd.filter_chip) — board History; 40px on mobile (HistoryMobile) */
.rd-fchip { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft); font-size: 13px; display: flex; align-items: center; gap: 6px;
  font-family: inherit; cursor: pointer; }
.rd-fchip--tall { height: 40px; }
.rd-fchip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); font-weight: 700; }
.rd-fchip__n { font-size: 11px; opacity: .8; }

/* ---- icon tile (rd.tile) — board CustNotifMobile */
.rd-tile { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; }
.rd-tile--ink { background: var(--ink-tint); color: var(--ink-2); }
.rd-tile--emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-tile--danger { background: var(--danger-bg); color: var(--danger-text); }
.rd-tile--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-tile--neutral { background: var(--neutral-tint); color: var(--text-soft); }

/* ---- labelled field (rd.field, rd.toman_field) — boards CustomerForm, InvoiceNew */
.rd-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.rd-field__opt { font-weight: 400; color: var(--muted-text); }
.rd-input { height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-size: 15px; padding: 0 12px; color: var(--text); font-family: inherit; }
.rd-input--error { border-color: var(--danger); }
.rd-field__error { font-size: 12px; font-weight: 400; color: var(--danger-text); }
.rd-field--money { font-weight: 600; }
.rd-input--money { height: 52px; font-size: 20px; font-weight: 800; }
.rd-input--focus, .rd-input:focus { border-color: var(--ink); outline: none; }
.rd-field__words { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-textarea { border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px;
  padding: 10px 12px; color: var(--text); resize: vertical; font-family: inherit; }
.rd-field__prev { font-size: 12px; font-weight: 400; color: var(--gold-text); }
.rd-input--changed { border: 2px solid var(--gold-2); }
.rd-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-hint { font-size: 12px; color: var(--muted-text); }

/* ---- segmented choice (rd.segmented) — board CustomerForm «عنوان» */
.rd-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); }
.rd-seg__opt { flex: 1; height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 14px; font-weight: 400; background: transparent; color: var(--text-soft); cursor: pointer; }
.rd-seg__opt:has(.rd-seg__radio:checked) { font-weight: 700; background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-raised); }
.rd-seg__opt:has(.rd-seg__radio:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }
.rd-seg__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---- note boxes — board CustomerForm (the phone-change warning) */
.rd-note { border-radius: 10px; display: flex; gap: 10px; font-size: 13px; line-height: 1.8; padding: 12px 14px; }
.rd-note--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-note > .icon { flex: none; }
.rd-only-mobile { display: none; }

/* ---- buttons — board CustomerForm footer */
.rd-btn { height: 48px; border-radius: 10px; font-family: inherit; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; }
.rd-btn--primary { flex: 1; border: 0; background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 800; }
.rd-btn--outline { padding: 0 16px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 14px; font-weight: 700; }
.rd-btn--plain { padding: 0 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; }

/* ---- dialog / sheet (rd.dialog) — boards CustomerForm (desktop) and CustomerFormMobile (under 600px) */
.rd-modal { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: flex; align-items: center;
  justify-content: center; }
.rd-modal[hidden] { display: none; }
.rd-modal--stage { position: static; background: transparent; display: contents; }
.rd-dialog { width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface);
  border-radius: 14px; box-shadow: var(--shadow-dialog); display: flex; flex-direction: column; color: var(--text);
  font-family: var(--font-body); }
.rd-form { display: contents; }
.rd-dialog__head { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.rd-dialog__title { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }
.rd-dialog__close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--text); display: flex;
  align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rd-dialog__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.rd-dialog__foot { display: flex; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--border); }

@media (max-width: 600px) {
  .rd-modal { align-items: stretch; justify-content: stretch; }
  .rd-dialog { position: absolute; left: 0; right: 0; bottom: 0; top: 40px; width: auto; max-height: none;
    border-radius: 16px 16px 0 0; box-shadow: none; }
  .rd-dialog__head { padding: 14px 16px; }
  .rd-dialog__title { font-size: 17px; }
  .rd-dialog__close { width: 44px; height: 44px; }
  .rd-dialog__body { flex: 1; padding: 14px 16px; gap: 12px; overflow-y: auto; }
  .rd-dialog__foot { padding: 12px 16px 20px; }
  .rd-dialog__foot .rd-btn--primary { width: 100%; height: 50px; }
  .rd-dialog__cancel { display: none; }
  .rd-grid2 { display: flex; flex-direction: column; }
  .rd-grid2 > .rd-grid2__spacer { display: none; }
  .rd-note { padding: 10px 12px; font-size: 12px; }
  .rd-only-desktop { display: none; }
  .rd-only-mobile { display: inline; }
  .rd-field__opt--desktop { display: none; }
}

/* ---- resets: style.css styles bare label / input / textarea (block labels with a bottom margin, 16px inputs with
   large padding, an 80px textarea); the redesign's controls set every property they draw themselves */
.rd-field, .rd-seg__opt { margin: 0; color: var(--text); }
.rd-field { color: var(--text); }
.rd-seg__opt { color: var(--text-soft); }
.rd-textarea { min-height: 0; width: auto; }
.rd-input { width: auto; }
.rd-seg__radio { margin: 0; padding: 0; border: 0; }
/* iOS zooms into any input under 16px on focus (Fix Prompt 43): there only, 16px. The boards' 15px elsewhere. */
@supports (-webkit-touch-callout: none) { .rd-input, .rd-textarea { font-size: 16px; } }

/* ---- the design harness's stage (design/stage.html, development only): the board's frame */
html:has(.rd-stage-body), .rd-stage-body { margin: 0; background: var(--surface); min-height: 0; }
.rd-stage { box-sizing: border-box; position: relative; overflow: hidden; display: flex; align-items: center;
  justify-content: center; gap: 40px; font-family: var(--font-body); color: var(--text); }
.rd-stage--scrim { background: var(--scrim); }
.rd-stage--sheet { display: block; }

/* The boards are plain CSS (content-box): «height: 48px» plus a 1px border is a 50px box. style.css makes every
   element border-box; every redesign element goes back to content-box so the boards' values are copied as written. */
[class^="rd-"], [class*=" rd-"] { box-sizing: content-box; }
.rd-stage { box-sizing: border-box; }
/* a link inside a field message (CustomerForm «تبدیل همان مهمان به مشتری»): links are --ink-2, underlined */
.rd-field__error a, .rd-field__prev a { color: var(--ink-2); text-decoration: underline; }
/* …except what the browser itself draws border-box (as on the boards): buttons and selects */
button[class^="rd-"], button[class*=" rd-"], select[class^="rd-"], select[class*=" rd-"] { box-sizing: border-box; }
.rd-btn--danger { padding: 0 16px; border: 1px solid var(--border); background: var(--surface); color: var(--danger-text);
  font-size: 14px; font-weight: 700; }
.rd-btn[hidden] { display: none; }

/* ======================================================================================================== shell
   Fix Prompt 46 R2.1 — boards Main (desktop, ≥1200px) and InvoiceMobile (<1200px). */
.rd-shell { background: var(--bg); }
.rd-app { min-height: 100vh; background: var(--bg); font-family: var(--font-body); color: var(--text); display: flex;
  flex-wrap: wrap; align-items: flex-start; }
.rd-side { flex: 1 1 240px; max-width: 260px; min-width: 220px; background: var(--surface); min-height: 100vh;
  box-sizing: border-box; padding: 24px 16px; display: flex; flex-direction: column; gap: 20px; }
.rd-side__logo { align-self: flex-start; display: flex; }
.rd-side__logo svg { height: 30px; width: auto; display: block; }
.rd-side__user { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.rd-side__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--surface);
  font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.rd-side__who { display: flex; flex-direction: column; }
.rd-side__name { font-weight: 700; font-size: 14px; }
.rd-side__role { font-size: 12px; color: var(--muted-text); }
.rd-side__links { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.rd-side__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-soft); text-decoration: none; }
.rd-side__link--on { background: var(--ink-tint-soft); color: var(--ink-2); font-weight: 700; }
.rd-side__link--out { color: var(--danger-text); }
.rd-side__badge { margin-inline-start: auto; min-width: 20px; height: 20px; border-radius: 10px; background: var(--danger);
  color: var(--surface); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rd-side__badge[hidden] { display: none; }
.rd-main { flex: 999 1 640px; min-width: 0; box-sizing: border-box; padding: 24px 32px 48px; display: flex;
  flex-direction: column; gap: 20px; max-width: 1180px; }
.rd-mob { display: none; }
@media (max-width: 1199.98px) {
  .rd-side { display: none; }
  .rd-main { flex: 1 1 100%; max-width: none; padding: 0 0 96px; gap: 0; }
  .rd-desk { display: none !important; }
  .rd-mob { display: revert; }
}

/* =============================================================================================== invoice page */
.rd-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rd-ph__back { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: flex;
  align-items: center; justify-content: center; color: var(--text); }
.rd-ph__titles { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.rd-ph__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-ph__h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-ph__sub { font-size: 13px; color: var(--muted-text); }
.rd-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.rd-pill--danger { background: var(--danger-bg); color: var(--danger-text); }
.rd-pill--emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-pill--neutral { background: var(--neutral-tint); color: var(--text-soft); }
.rd-pill--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-pill--ink { background: var(--ink-tint); color: var(--ink-2); }
.rd-hbtn { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  font-family: inherit; }
.rd-menu { position: relative; }
.rd-menu__list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 220px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex;
  flex-direction: column; }
.rd-menu__list[hidden] { display: none; }
.rd-menu__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 0;
  background: transparent; color: var(--text); font-size: 14px; text-decoration: none; cursor: pointer; width: 100%;
  font-family: inherit; text-align: start; }
.rd-menu__item:hover { background: var(--surface-2); }
.rd-menu__item--danger { color: var(--danger-text); }
.rd-menu form { display: contents; }
.rd-cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.rd-col-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rd-col-side { flex: 1 1 300px; max-width: 380px; min-width: 280px; display: flex; flex-direction: column; gap: 20px; }
.rd-card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 14px; }
.rd-card--side { padding: 20px; gap: 12px; font-size: 14px; }
.rd-card__h2 { margin: 0; font-size: 17px; font-weight: 800; }
.rd-card--side .rd-card__h2 { margin: 0 0 4px; font-size: 15px; }
.rd-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rd-card__meta { font-size: 13px; color: var(--text-soft); }
.rd-due { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px; border: 1px solid var(--danger-bg); }
.rd-due--calm { border-color: var(--border); }
.rd-due__body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; }
.rd-due__kicker { font-size: 13px; color: var(--danger-text); font-weight: 700; }
.rd-due--calm .rd-due__kicker { color: var(--text-soft); }
.rd-due__amount { font-size: 30px; font-weight: 800; letter-spacing: -0.3px; }
.rd-due__unit { font-size: 14px; font-weight: 500; color: var(--muted-text); }
.rd-due__parts { font-size: 13px; color: var(--text-soft); }
.rd-due__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rd-due__muted { font-size: 12px; color: var(--muted-text); align-self: center; max-width: 220px; }
.rd-btn-pay { height: 48px; padding: 0 22px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.rd-btn-es { height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer;
  text-decoration: none; }
.rd-segbar { display: grid; gap: 6px; }
.rd-segbar > div { height: 6px; border-radius: 3px; background: var(--neutral-tint); }
.rd-segbar > .is-paid { background: var(--emerald); }
.rd-segbar > .is-late { background: var(--danger); }
.rd-table-wrap { overflow-x: auto; }
.rd-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.rd-table thead tr { color: var(--muted-text); font-size: 12px; text-align: right; }
.rd-table th { padding: 10px 8px; font-weight: 600; }
.rd-table th.rd-end, .rd-table td.rd-end { text-align: left; }
.rd-table tbody tr { border-top: 1px solid var(--border); }
.rd-table tbody tr.is-late { background: var(--danger-row); }
.rd-table td { padding: 14px 8px; }
.rd-table td.rd-num { font-weight: 700; }
.rd-table td.rd-soft { color: var(--text-soft); }
.rd-table tfoot tr { border-top: 2px solid var(--border); font-weight: 800; }
.rd-table tfoot td { padding: 14px 8px; }
.rd-pen-inline { font-size: 12px; color: var(--danger-text); }
.rd-part { display: block; }   /* 5.84.2 — a partly paid installment: paid · remaining under its amount */
.rd-chip-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; }
.rd-chip-st--paid { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-chip-st--late { background: var(--danger-bg); color: var(--danger-text); }
.rd-chip-st--part { background: var(--gold-tint); color: var(--gold-text); }
.rd-left { font-size: 12px; color: var(--muted-text); }
.rd-rowbtn { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); font-size: 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  font-family: inherit; }
.rd-rowbtn--strong { border: 0; background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-link { font-size: 13px; text-decoration: none; color: var(--ink-2); background: none; border: 0; padding: 0;
  cursor: pointer; font-family: inherit; }
.rd-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); }
.rd-tab { height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--text-soft); font-size: 14px;
  cursor: pointer; font-family: inherit; }
.rd-tab[aria-selected="true"] { border-bottom: 2px solid var(--ink); color: var(--ink-2); font-weight: 700; }
.rd-tabpanel[hidden] { display: none; }
.rd-events { display: flex; flex-direction: column; }
.rd-event { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.rd-event + .rd-event { border-top: 1px solid var(--border); }
.rd-event__tile { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.rd-event__body { flex: 1; display: flex; flex-direction: column; }
.rd-event__title { font-size: 14px; font-weight: 600; }
.rd-event__meta { font-size: 12px; color: var(--muted-text); }
.rd-event__amt { font-size: 14px; font-weight: 700; color: var(--text); }
.rd-event__amt--in { color: var(--emerald-text); }
.rd-kv { display: flex; justify-content: space-between; }
.rd-kv__k { color: var(--text-soft); }
.rd-kv__v { font-weight: 700; }
.rd-kv__v--soft { font-weight: 600; }
.rd-kv__u { font-size: 12px; color: var(--muted-text); font-weight: 400; }
.rd-hr { height: 1px; background: var(--border); }
.rd-cust { display: flex; align-items: center; gap: 12px; }
.rd-cust__av { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-tint); color: var(--ink-2);
  font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.rd-cust__who { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-cust__name { font-size: 16px; font-weight: 800; text-decoration: none; color: var(--text); }
.rd-cust__phone { font-size: 13px; color: var(--muted-text); }
.rd-cust__btns { display: flex; gap: 8px; }
.rd-cust__btn { flex: 1; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; gap: 6px; font-size: 13px; text-decoration: none; color: var(--text); }
.rd-pen-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; text-align: center; }
.rd-pen-tile { border-radius: 8px; padding: 8px 4px; display: flex; flex-direction: column; gap: 2px; }
.rd-pen-tile--in { background: var(--emerald-bg); }
.rd-pen-tile--in > span:first-child { color: var(--emerald-text); }
.rd-pen-tile--open { background: var(--danger-bg); }
.rd-pen-tile--open > span:first-child { color: var(--danger-text); }
.rd-pen-tile--off { background: var(--neutral-tint); }
.rd-pen-tile--off > span:first-child { color: var(--text-soft); }
.rd-pen-tile__v { font-weight: 800; font-size: 13px; }
.rd-unit { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-pen-box { border: 1px solid var(--danger-bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.rd-pen-box__top { display: flex; justify-content: space-between; font-size: 13px; }
.rd-pen-box__grow { font-size: 12px; color: var(--danger-text); }
.rd-pen-box__btns { display: flex; gap: 6px; }
.rd-pen-box__btns form { display: contents; }
.rd-pen-btn { flex: 1; height: 34px; border-radius: 8px; border: 0; background: var(--ink-tint); color: var(--ink-2); font-size: 13px;
  font-weight: 700; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center;
  font-family: inherit; }
.rd-pen-btn--plain { border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 400; }
.rd-pen-done { display: flex; justify-content: space-between; font-size: 13px; }
.rd-pen-done__when { font-size: 12px; color: var(--emerald-text); }
.rd-alert { border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.8; background: var(--danger-bg);
  color: var(--danger-text); }
.rd-alert--ok { background: var(--emerald-bg); color: var(--emerald-text); }

.rd-states { display: flex; flex-direction: column; gap: 14px; }
.rd-h2-tight { margin: 0 !important; }
.rd-pen-total { font-size: 15px; font-weight: 800; color: var(--danger-text); }
.rd-pen-box__fixed { font-size: 12px; color: var(--muted-text); }
.rd-pen-all { display: flex; align-items: center; gap: 8px; background: var(--danger-bg); border-radius: 10px; padding: 10px 12px; }
.rd-pen-all__t { flex: 1; font-size: 13px; font-weight: 700; color: var(--danger-text); }
.rd-pen-all__btn { height: 34px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rd-pen-all__btn--plain { color: var(--text); font-weight: 400; }
.rd-pen-list { display: flex; flex-direction: column; }
.rd-pen-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.rd-pen-row + .rd-pen-row { border-top: 1px solid var(--border); }
.rd-pen-row--done { font-size: 13px; color: var(--text-soft); }
.rd-pen-row__l { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 13px; margin: 0; color: var(--text); font-weight: 400; }
.rd-pen-row__l input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; padding: 0; flex: none; }
.rd-pen-row__t { display: flex; flex-direction: column; }
.rd-pen-row__g { font-size: 12px; color: var(--danger-text); }
.rd-pen-row__f { font-size: 12px; color: var(--muted-text); }
.rd-pen-sel { display: flex; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.rd-pen-sel__go { flex: 1; height: 40px; border-radius: 10px; border: 0; background: var(--ink-tint); color: var(--ink-2);
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.rd-pen-sel__forgive { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 13px; cursor: pointer; font-family: inherit; }
.rd-pen-sel__forgive[hidden] { display: none; }
.rd-event__tile--in { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-event__tile--out { background: var(--ink-tint); color: var(--ink-2); }
.rd-event__tile--n { background: var(--neutral-tint); color: var(--text-soft); }
.rd-event__more { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--text-soft);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rd-code { display: flex; align-items: center; gap: 8px; }
.rd-inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.rd-card--ok { background: var(--emerald-soft); border: 1px solid var(--emerald-line); }
.rd-rowbtn--danger { color: var(--danger-text); }
.rd-notes { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.rd-note-item { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.rd-note-item__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-text); }
.rd-note-item__text { white-space: pre-line; font-size: 13px; }
.rd-notes__new { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.rd-notes__new textarea { align-self: stretch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- phone (board InvoiceMobile, <1200px) */
.rd-mbar { height: 60px; background: var(--surface); align-items: center; gap: 8px; padding: 0 12px; box-sizing: border-box; }
.rd-mob.rd-mbar { display: none; }
.rd-mbar__btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center;
  justify-content: center; padding: 0; cursor: pointer; }
.rd-mbar__title { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }
.rd-mbar .rd-menu__list { left: 0; }
.rd-mpage { padding: 16px; flex-direction: column; gap: 14px; }
.rd-mob.rd-mpage { display: none; }
.rd-mcard { background: var(--surface); border-radius: var(--radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rd-mcust { padding: 14px 16px; flex-direction: row; align-items: center; gap: 12px; }
.rd-mcust__av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-tint); color: var(--ink-2); font-weight: 800;
  font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.rd-mcust__who { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-mcust__name { font-size: 15px; font-weight: 800; color: var(--text); text-decoration: none; }
.rd-mcust__sub { font-size: 12px; color: var(--muted-text); }
.rd-mcust__call { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text); }
.rd-mdue { gap: 6px; border: 1px solid var(--danger-bg); }
.rd-mdue--calm { border-color: var(--border); }
.rd-mdue__kicker { font-size: 12px; font-weight: 700; color: var(--danger-text); }
.rd-mdue--calm .rd-mdue__kicker { color: var(--text-soft); }
.rd-mdue__amount { font-size: 28px; font-weight: 800; }
.rd-mdue__unit { font-size: 13px; font-weight: 500; color: var(--muted-text); }
.rd-mdue__parts { font-size: 12px; color: var(--text-soft); }
.rd-mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd-mtile { background: var(--surface); border-radius: var(--radius-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rd-mtile > span { font-size: 12px; color: var(--muted-text); }
.rd-mtile > b { font-size: 16px; font-weight: 800; }
.rd-mhead { display: flex; justify-content: space-between; align-items: center; }
.rd-mh2 { margin: 0; font-size: 16px; font-weight: 800; }
.rd-mh2--det { margin: 0 0 2px; }
.rd-mmeta { font-size: 12px; color: var(--text-soft); }
.rd-segbar--m { gap: 4px; }
.rd-minsts { display: flex; flex-direction: column; }
.rd-minst { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.rd-minst + .rd-minst { border-top: 1px solid var(--border); }
.rd-minst__ic { width: 32px; height: 32px; border-radius: 50%; background: var(--neutral-tint); color: var(--text-soft); font-size: 13px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.rd-minst__ic--paid { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-minst__ic--late { background: var(--danger-bg); color: var(--danger-text); }
.rd-minst__body { flex: 1; display: flex; flex-direction: column; }
.rd-minst__t { font-size: 14px; font-weight: 700; }
.rd-minst__s { font-size: 12px; color: var(--muted-text); }
.rd-minst__s--paid { color: var(--emerald-text); }
.rd-minst__s--late { color: var(--danger-text); }
.rd-minst__s--part { color: var(--gold-text); }
.rd-mbtn { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; }
.rd-mbtn--strong { border: 0; background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-mtotal { display: flex; justify-content: space-between; border-top: 2px solid var(--border); padding-top: 12px; font-size: 14px; font-weight: 800; }
.rd-mpen, .rd-mdet { font-size: 13px; }
.rd-mpen .rd-pen-tile__v { font-size: 12px; }
.rd-pen-btn--m { height: 40px; }
.rd-pen-done__when--m { font-size: 12px; font-weight: 400; }
.rd-mactions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); box-shadow: var(--shadow-bar);
  padding: 12px 16px 20px; gap: 10px; }
.rd-mob.rd-mactions { display: none; }
.rd-mactions__pay { flex: 1; height: 50px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.rd-mactions__es { width: 50px; height: 50px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
@media (max-width: 1199.98px) {
  .rd-mob.rd-mbar, .rd-mob.rd-mactions { display: flex; }
  .rd-mob.rd-mpage { display: flex; }
  .rd-states { padding: 16px 16px 0; }
}
/* the boards draw these as <button> (border-box in the browser); the app renders some as links: same box */
.rd-hbtn, .rd-btn-pay, .rd-btn-es, .rd-rowbtn, .rd-pen-btn, .rd-mbtn, .rd-mactions__pay, .rd-mactions__es,
.rd-pen-all__btn, .rd-pen-sel__go, .rd-pen-sel__forgive, .rd-tab, .rd-mbar__btn, .rd-event__more { box-sizing: border-box; }
.rd-side__logo svg { width: 116.75px; }   /* the board's lockup width at 30px (the macro rounds to 116.8) */
.rd-mdet .rd-pbar { font-size: 13px; }   /* the phone details card is 13px (board InvoiceMobile) */
.rd-stage--pen { display: block; background: var(--bg); padding: 20px; box-sizing: border-box; }   /* board PenaltiesMany */
.rd-stage--notes { display: block; background: var(--bg); padding: 24px; box-sizing: border-box; }   /* board InvoiceNotes */
.rd-pen-row__l input { margin: 3px 3px 3px 4px; }   /* the browser's own checkbox margin, as on the board (style.css styles every input) */
/* history rows: an edited row's details (ledger 4c0d0e7a: a small link, a مورد / قبل / بعد table, the editor) and the lock */
.rd-edits { margin-top: 4px; font-size: 12px; }
.rd-edits > summary { color: var(--ink-2); cursor: pointer; list-style: none; }
.rd-edits__t { border-collapse: collapse; margin-top: 6px; width: 100%; }
.rd-edits__t th { text-align: right; font-weight: 600; color: var(--muted-text); padding: 4px 6px; }
.rd-edits__t td { padding: 4px 6px; border-top: 1px solid var(--border); }
.rd-edits__old { color: var(--muted-text); }
.rd-edits__new { font-weight: 700; }
.rd-edits__by { margin: 6px 0 0; color: var(--muted-text); }
.rd-event__lock { color: var(--muted-text); display: flex; }
.rd-reason { max-width: none; margin: 0; }

/* ---- notes (R2.2) — boards InvoiceNotes (the invoice page's notes tab) and InvoiceNotesMobile (its own page) */
.rd-notes:not([hidden]) { display: contents; }
.rd-ncomp { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.rd-ntext { border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; padding: 10px 12px;
  color: var(--text); resize: vertical; font-family: inherit; min-height: 0; width: auto; }
.rd-ncomp__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rd-ncheck { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-height: 44px; cursor: pointer; margin: 0;
  color: var(--text); font-weight: 400; }
.rd-ncheck input { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--ink); flex: none; }
.rd-ncheck__t { display: flex; flex-direction: column; }
.rd-ncheck__t b { font-size: 13.5px; }
.rd-ncheck__t span { font-size: 12px; color: var(--muted-text); }
.rd-nsave { height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; box-sizing: border-box; }
.rd-nsave--full { width: 100%; }
.rd-nlist { display: flex; flex-direction: column; }
.rd-nrow { display: flex; gap: 10px; padding: 12px 0; }
.rd-nrow + .rd-nrow { border-top: 1px solid var(--border); }
.rd-nrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rd-nrow__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-nrow__meta > span:first-child { font-size: 12px; color: var(--muted-text); }
.rd-nchip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--neutral-tint); color: var(--text-soft); }
.rd-nchip--out { background: var(--ink-tint); color: var(--ink-2); }
.rd-nrow__text { font-size: 14px; line-height: 1.9; white-space: pre-line; }
.rd-nrow__edit { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 0; background: transparent; color: var(--text-soft);
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-sizing: border-box; }
/* the phone's notes page */
.rd-npage { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.rd-ncard { background: var(--surface); border-radius: var(--radius-card); padding: 14px 16px; }
.rd-nlist-card { background: var(--surface); border-radius: var(--radius-card); padding: 2px 16px; }
.rd-mbar--notes { gap: 4px; padding: 0 16px; }
.rd-mbar--notes .rd-mbar__btn { margin-inline-start: -10px; }
@media (min-width: 1200px) {
  .rd-npage { padding: 0; max-width: 760px; }
}

/* ======================================================================== invoice list (R2.3) — board InvoicesList */
.rd-lh1 { flex: 1 1 auto; }
.rd-lnew { height: 44px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface);
  font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; text-decoration: none; box-sizing: border-box; }
.rd-lnew:hover { color: var(--surface); }
.rd-lsum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rd-lsum__t { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px; }
.rd-lsum__k { font-size: 13px; color: var(--muted-text); }
.rd-lsum__v { font-size: 22px; font-weight: 800; }
.rd-lsum__v--late { color: var(--danger-text); }
.rd-lsum__u { font-size: 13px; font-weight: 500; color: var(--muted-text); }
.rd-lcard { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px; }
.rd-ltool { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rd-lsearch { flex: 1 1 280px; height: 44px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; gap: 8px;
  padding: 0 14px; color: var(--muted-text); margin: 0; font-weight: 400; }
.rd-lsearch input { border: 0; background: transparent; outline: none; flex: 1; font-size: 14px; color: var(--text); padding: 1px 2px;
  margin: 0; width: auto; min-width: 0; height: auto; border-radius: 0; box-shadow: none; font-family: inherit; }
.rd-lmore { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.rd-lmore--on { border-color: var(--ink); background: var(--ink-tint-soft); color: var(--ink-2); font-weight: 700; }
.rd-lsort { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; box-sizing: border-box; }
.rd-ltabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-ltab { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--neutral-tint); color: var(--text-soft);
  font-size: 13px; cursor: pointer; display: flex; align-items: center; text-decoration: none; box-sizing: border-box; white-space: nowrap; }
.rd-ltab:hover { color: var(--text-soft); }
.rd-ltab--late, .rd-ltab--late:hover { background: var(--danger-bg); color: var(--danger-text); font-weight: 700; }
.rd-ltab--on, .rd-ltab--on:hover { background: var(--text); color: var(--surface); font-weight: 700; }
.rd-lpanel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rd-lpanel[hidden] { display: none; }
.rd-lfs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd-lfs legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; padding: 0 2px; color: var(--text); }
.rd-lck { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; font-weight: 400; color: var(--text); cursor: pointer; }
.rd-lck input { margin: 3px 3px 3px 4px; width: auto; height: auto; accent-color: var(--ink); }
.rd-lfield { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted-text); margin: 0; font-weight: 400; }
.rd-lfield select, .rd-lfield input { height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--text); font-family: inherit; margin: 0; box-shadow: none; width: auto; }
.rd-lfield select { padding: 0; }
.rd-lfield input { padding: 0 10px; box-sizing: content-box; }
.rd-lfield select { box-sizing: border-box; }
.rd-lpanel__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 12px; }
.rd-lpanel__sorts { font-size: 13px; color: var(--text-soft); }
.rd-lpanel__sorts a, .rd-lpanel__sorts a:hover { color: inherit; text-decoration: none; }
.rd-lclear { height: 36px; padding: 0 14px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); font-size: 13px;
  font-weight: 700; display: flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-ltable-wrap { overflow-x: auto; }
.rd-ltable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 880px; }
.rd-ltable thead tr { color: var(--muted-text); font-size: 12px; text-align: right; }
.rd-ltable th { padding: 10px 8px; font-weight: 600; text-align: right; background: none; border: 0; }
.rd-ltable tbody tr { border-top: 1px solid var(--border); }
.rd-ltable td { padding: 12px 8px; border: 0; text-align: right; }
.rd-ltable__code, .rd-ltable__code:hover { font-weight: 800; text-decoration: none; color: var(--ink-2); }
.rd-ltable__sub { font-size: 12px; color: var(--muted-text); font-weight: 400; }
.rd-ltable__who { font-weight: 600; }
.rd-ltable__sh { font-weight: 400; }
.rd-ltable__amt { font-weight: 700; }
.rd-ltable__cnt { font-size: 12px; color: var(--text-soft); margin-bottom: 4px; }
.rd-ltable__next { color: var(--text-soft); }
.rd-ltable__none { color: var(--muted-text); }
.rd-lbars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; width: 96px; }
.rd-lbar { height: 5px; border-radius: 3px; background: var(--neutral-tint); }
.rd-lbar--paid { background: var(--emerald); }
.rd-lbar--late { background: var(--danger); }
.rd-lcov { font-size: 12px; font-weight: 700; }
.rd-lcov--green { color: var(--emerald-text); }
.rd-lcov--yellow { color: var(--gold-text); }
.rd-lcov--red { color: var(--danger-text); }
.rd-lfoot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted-text); flex-wrap: wrap; gap: 10px; }
.rd-lnext { height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-lempty { margin: 0; padding: 24px 0; text-align: center; color: var(--muted-text); font-size: 14px; }

/* ---- phone (board InvoicesListMobile) */
.rd-lmhead { background: var(--surface); padding: 12px 16px 14px; flex-direction: column; gap: 12px; }
.rd-mob.rd-lmhead { display: none; }
.rd-lmhead__row { display: flex; align-items: center; gap: 8px; }
.rd-lmhead__h1 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
.rd-lmhead__new { height: 44px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: var(--surface); display: flex;
  align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.rd-lmhead__new:hover { color: var(--surface); }
.rd-lmhead__filter { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-sizing: border-box; }
.rd-lmhead__filter--on { border-color: var(--ink); color: var(--ink-2); }
.rd-lsearch--m { flex: none; padding: 0 12px; }
.rd-ltabs--m { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.rd-ltabs--m .rd-ltab { flex: none; }
.rd-lmlist { padding: 14px 16px 120px; flex-direction: column; gap: 10px; }
.rd-mob.rd-lmlist { display: none; }
.rd-lmcard { background: var(--surface); border-radius: var(--radius-card); padding: 14px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--text); }
.rd-lmcard:hover { color: var(--text); }
.rd-lmcard--late { border: 1px solid var(--danger-bg); }
.rd-lmcard__top { display: flex; align-items: center; gap: 8px; }
.rd-lmcard__name { font-size: 15px; font-weight: 800; flex: 1; }
.rd-lmcard__code { font-size: 12px; color: var(--muted-text); }
.rd-lmcard__mid { display: flex; justify-content: space-between; align-items: flex-end; }
.rd-lmcard__amt { display: flex; flex-direction: column; gap: 2px; }
.rd-lmcard__k { font-size: 12px; color: var(--muted-text); }
.rd-lmcard__v { font-size: 16px; font-weight: 800; }
.rd-lmcard__u { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-lmcard__next { font-size: 12px; color: var(--text-soft); }
.rd-lmcard__xl { font-size: 12px; color: var(--muted-text); }
.rd-lmcard .rd-lbars { width: auto; }
.rd-lmfoot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; font-size: 12px; color: var(--muted-text); }
.rd-lmnext { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.rd-bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 76px; background: var(--surface); box-shadow: var(--shadow-bar);
  grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: 8px; box-sizing: border-box; }
.rd-mob.rd-bnav { display: none; }
.rd-bnav__i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px;
  color: var(--text-soft); text-decoration: none; border: 0; background: transparent; padding: 0; font-family: inherit; cursor: pointer;
  line-height: normal; }
.rd-bnav__i:hover { color: var(--text-soft); }
.rd-bnav__i--on, .rd-bnav__i--on:hover { color: var(--ink-2); font-weight: 700; }
.rd-bnav__more { gap: 2px; }
@media (max-width: 1199.98px) {
  .rd-mob.rd-lmhead, .rd-mob.rd-lmlist { display: flex; }
  .rd-mob.rd-bnav { display: grid; }
}

/* ---- the phone's «فیلتر و مرتب‌سازی» sheet (board InvoicesFilterMobile) */
.rd-lsheet { gap: 18px; }
.rd-lgroup { display: flex; flex-direction: column; gap: 8px; }
.rd-lgroup__h { font-size: 13px; font-weight: 700; }
.rd-lpills { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-lpill { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-size: 13px; display: flex; align-items: center; margin: 0; font-weight: 400; cursor: pointer; box-sizing: border-box; position: relative; }
.rd-lpill:has(input:checked) { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-lpill--sort { border: 0; background: var(--neutral-tint); }
.rd-lpill--sort:has(input:checked) { background: var(--text); color: var(--surface); }
.rd-lpill:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.rd-lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd-lfield--m select, .rd-lfield--m input { height: 44px; border-radius: 10px; font-size: 14px; }
.rd-lsheet__foot { gap: 10px; }
.rd-lsheet__clear { height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; display: flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-lsheet__go { flex: 1; height: 48px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px;
  font-weight: 700; font-family: inherit; cursor: pointer; }
@media (max-width: 600px) {
  #inv-filter .rd-dialog { top: 70px; }
  .rd-lsheet { padding: 16px; gap: 18px; }
}
.rd-lshare { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-weight: 400; }
[data-inv-rows="d"] { display: contents; }   /* the table and its footer are the card's own flex items (the board's 14px gap) */

/* ======================================================= new invoice (R2.4) — boards InvoiceNew, InvoiceNewMobile */
.rd-nf [hidden] { display: none !important; }
.rd-nf__alert { margin: 0; }
.rd-nf__note { margin: 0; background: var(--surface-2); color: var(--text-soft); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.8; }
@media (max-width: 1199.98px) { .rd-nf__note, .rd-nf__alert { margin: 14px 16px 0; } }   /* R2.5: inside the page's 16px gutter */
.rd-nf { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin: 0; }
.rd-nf__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rd-nf__fields { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rd-nf__side { flex: 1 1 320px; max-width: 400px; min-width: 300px; display: flex; flex-direction: column; gap: 16px; }
.rd-nf__sec { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 20px 22px; display: flex;
  flex-direction: column; gap: 14px; }
.rd-nf__h2 { margin: 0; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.rd-nf__num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 13px; display: flex;
  align-items: center; justify-content: center; flex: none; }
.rd-nf__cust { display: flex; align-items: center; gap: 12px; border: 1px solid var(--ink); background: var(--ink-tint-soft); border-radius: 10px;
  padding: 10px 14px; }
.rd-nf__av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-tint); color: var(--ink-2); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex: none; }
.rd-nf__who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rd-nf__name { font-size: 15px; font-weight: 800; }
.rd-nf__sub { font-size: 12px; color: var(--muted-text); }
.rd-nf__score { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.rd-nf__score:empty { display: none; }
.rd-nf__score--emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-nf__score--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-nf__score--danger { background: var(--danger-bg); color: var(--danger-text); }
.rd-nf__change { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--text-soft); display: flex;
  align-items: center; justify-content: center; padding: 0; cursor: pointer; box-sizing: border-box; }
.rd-nf__terms-ok { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--emerald-text); font-weight: 700; }
.rd-nf__find { display: flex; flex-direction: column; gap: 8px; }
.rd-nf__combo { position: relative; }
.rd-nf__link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink-2);
  font-size: 13px; font-weight: 700; padding: 4px 0; cursor: pointer; font-family: inherit; min-height: 44px; }
.rd-nf__btn2 { height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; box-sizing: border-box; }
.rd-nf__ok { margin: 0; }
.rd-nf__grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rd-nf__label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin: 0; color: var(--text); min-width: 0; }
.rd-nf__label > label { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.rd-nf__in { height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; padding: 0 12px;
  color: var(--text); margin: 0; box-shadow: none; width: auto; font-family: inherit; min-width: 0; }
.rd-nf__sel { padding: 0 10px; box-sizing: border-box; height: 48px; }
.rd-nf__in--big { height: 52px; font-size: 20px; font-weight: 800; }
.rd-nf__in--main { border-color: var(--ink); }
.rd-nf__words { font-size: 12px; font-weight: 400; color: var(--muted-text); min-height: 0; margin: 0; }
.rd-nf__words:empty { display: none; }
.rd-nf__code { display: flex; gap: 8px; align-items: center; }
.rd-nf__code .rd-nf__in { flex: 1; }
.rd-nf__code .mono:empty { display: none; }
.rd-nf__addstore { display: flex; gap: 8px; }
.rd-nf__addstore .rd-nf__in { flex: 1; }
.rd-nf__help { font-size: 12px; color: var(--muted-text); margin: 0; line-height: 1.8; }
.rd-nf__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rd-nf__type { height: 64px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; font-family: inherit;
  box-sizing: border-box; padding: 0; }
.rd-nf__type[aria-checked="true"] { border: 2px solid var(--ink); background: var(--ink-tint-soft); color: var(--ink-2); font-weight: 700; }
.rd-nf__seg-wrap { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.rd-nf__seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px;
  height: 46px; box-sizing: border-box; }
.rd-nf__seg > button { border-radius: 8px; border: 0; background: transparent; color: var(--text-soft); font-size: 14px; font-family: inherit;
  cursor: pointer; padding: 0; box-sizing: border-box; }
.rd-nf__seg > button[aria-checked="true"] { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rd-nf__seg--metal > button[aria-checked="true"] { background: var(--gold-2); color: var(--on-gold); }
.rd-nf__metal { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.rd-nf__counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rd-nf__counts > button { height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 15px;
  font-family: inherit; cursor: pointer; padding: 0; box-sizing: border-box; }
.rd-nf__counts > button[aria-checked="true"] { border: 2px solid var(--ink); background: var(--ink-tint-soft); color: var(--ink-2); font-weight: 800; }
.rd-nf__rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.rd-nf__rate-t { font-size: 13px; color: var(--text-soft); }
.rd-nf__rate-st { color: var(--ink-2); font-weight: 700; }
.rd-nf__ratebtn { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; box-sizing: border-box; flex: none; }
/* the aside */
.rd-nf__card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 20px; display: flex;
  flex-direction: column; gap: 12px; }
.rd-nf__kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.rd-nf__kv > span:first-child { color: var(--text-soft); }
.rd-nf__kv > span:last-child { font-weight: 700; white-space: nowrap; }
.rd-nf__kv--sm { font-size: 13px; }
.rd-nf__kv--total { align-items: baseline; }
.rd-nf__kv--total > span:first-child { color: var(--text); font-weight: 700; }
.rd-nf__kv--total > span:last-child { font-size: 20px; font-weight: 800; }
.rd-nf__plus { color: var(--emerald-text); }
.rd-nf__strong { font-weight: 800 !important; }
.rd-nf__rule { height: 1px; background: var(--border); }
.rd-nf__each { display: flex; justify-content: space-between; align-items: center; background: var(--ink-tint-soft); border-radius: 10px; padding: 12px 14px; }
.rd-nf__each > span:first-child { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.rd-nf__each > span:last-child { font-size: 18px; font-weight: 800; color: var(--ink-2); }
.rd-nf__rows summary { font-size: 13px; color: var(--ink-2); font-weight: 700; cursor: pointer; }
.rd-nf__rows > div { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rd-nf__fund { gap: 8px; }
.rd-nf__fund-h { font-size: 13px; font-weight: 700; }
.rd-nf__fund-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.rd-nf__fund-a { background: var(--ink); }
.rd-nf__fund-b { background: var(--gold-2); }
.rd-nf__who-dot { display: flex; align-items: center; gap: 6px; color: var(--text) !important; }
.rd-nf__dot { width: 8px; height: 8px; border-radius: 2px; }
.rd-nf__dot--a { background: var(--ink); }
.rd-nf__dot--b { background: var(--gold-2); }
.rd-nf__fund-ok { font-size: 12px; color: var(--emerald-text); font-weight: 700; }
.rd-nf__fund-ok--short { color: var(--gold-text); }
.rd-nf__submit { height: 54px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; cursor: pointer; box-sizing: border-box; }
.rd-nf__submit:disabled, .rd-nf__bar-go:disabled { opacity: .45; cursor: not-allowed; }
.rd-nf__foot { font-size: 12px; color: var(--muted-text); text-align: center; }
.rd-nf__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); box-shadow: var(--shadow-bar);
  padding: 10px 16px 18px; flex-direction: column; gap: 8px; }
.rd-mob.rd-nf__bar { display: none; }
.rd-nf__bar-kv { display: flex; justify-content: space-between; align-items: center; }
.rd-nf__bar-kv > span:first-child { font-size: 13px; color: var(--text-soft); }
.rd-nf__bar-kv > span:last-child { font-size: 18px; font-weight: 800; color: var(--ink-2); }
.rd-nf__bar-go { height: 50px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 16px; font-weight: 800;
  font-family: inherit; cursor: pointer; }
/* the terms gate (board TermsGateMobile) and the locked form */
.rd-gate { background: var(--gold-tint); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.rd-gate__head { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--gold-text); line-height: 1.7; }
.rd-gate__ic { color: var(--gold-text); flex: none; margin-top: 2px; display: flex; }
.rd-gate__steps { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-soft); line-height: 1.8; }
.rd-gate__show { height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; box-sizing: border-box; }
.rd-gate__send { height: 46px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; }
.rd-gate__send:disabled { opacity: .6; cursor: default; }
.rd-gate__code { display: flex; gap: 8px; }
.rd-gate__lbl { flex: 1; display: flex; margin: 0; }
.rd-gate__lbl input { flex: 1; min-width: 0; height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 18px;
  letter-spacing: 4px; text-align: center; color: var(--text); margin: 0; padding: 1px 2px; box-shadow: none; width: auto; font-family: inherit; }
.rd-gate__verify { white-space: nowrap; height: 48px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--ink-tint); color: var(--ink-2); font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-gate__msg { margin: 0; font-size: 12px; }
.rd-gate__wait { font-size: 12px; color: var(--muted-text); }
.rd-nf__locked { background: var(--surface); border-radius: var(--radius-card); padding: 16px; display: none; flex-direction: column; gap: 10px; opacity: .45; }
.rd-nf__locked > span { font-size: 15px; font-weight: 800; }
.rd-nf__locked > div { height: 48px; border-radius: 10px; background: var(--bg); }
.rd-nf[data-locked] .rd-nf__locked { display: flex; }
.rd-nf[data-locked] .rd-nf__fields, .rd-nf[data-locked] .rd-nf__side, .rd-nf[data-locked] .rd-nf__bar,
.rd-nf[data-locked] .rd-nf__h2--s1, .rd-nf[data-locked] .rd-nf__grid2--s1, .rd-nf[data-locked] .rd-nf__score,
.rd-nf[data-locked] .rd-nf__av { display: none !important; }
.rd-nf[data-locked] .rd-nf__cust { border-color: var(--border); background: transparent; }
.rd-nf[data-locked] #cc-history { display: inline !important; }

@media (max-width: 1199.98px) {
  .rd-nf { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; padding: 14px 16px 150px; }
  .rd-nf__main, .rd-nf__fields, .rd-nf__side { gap: 12px; max-width: none; min-width: 0; flex: none; }
  .rd-nf__sec, .rd-nf__card { box-shadow: none; padding: 16px; gap: 12px; }
  .rd-nf__h2 { font-size: 15px; gap: 8px; }
  .rd-nf__num { width: 24px; height: 24px; font-size: 12px; }
  .rd-nf__cust { gap: 10px; padding: 10px 12px; }
  .rd-nf__score { padding: 3px 9px; }
  .rd-nf__change { width: 40px; height: 40px; }
  .rd-nf__terms-ok { gap: 6px; font-size: 12px; }
  .rd-nf__grid2 { gap: 10px; }
  .rd-nf__in { height: 46px; padding: 0 10px; }
  .rd-nf__sel { height: 48px; }
  .rd-nf__in--big { height: 50px; padding: 0 12px; }
  #store-row, .rd-nf__grid2--amounts { display: flex; flex-direction: column; gap: 12px; }
  .rd-nf__types { gap: 6px; }
  .rd-nf__type { height: 48px; font-size: 13px; }
  .rd-nf__type svg { display: none; }
  .rd-nf__seg { height: 48px; }
  .rd-nf__metal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .rd-nf__metal > .rd-nf__seg-wrap { grid-column: 1 / -1; }
  .rd-nf__counts { gap: 6px; }
  .rd-nf__rate { padding: 10px 12px; }
  .rd-nf__rate-t { font-size: 12px; }
  .rd-nf__card { gap: 10px; }
  .rd-nf__kv { font-size: 13px; }
  .rd-nf__kv--total { font-size: 14px; align-items: normal; }
  .rd-nf__kv--total > span:last-child { font-size: 14px; }
  #mn-out-row-m { border-top: 1px solid var(--border); padding-top: 10px; }
  .rd-mob.rd-nf__bar { display: flex; }
  .rd-mbar--nf { display: flex; }
}
.rd-nf .jdp-display { height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; padding: 0 12px;
  color: var(--text); margin: 0; box-shadow: none; width: 100%; box-sizing: border-box; font-family: inherit; }
@media (min-width: 1200px) { .rd-nf .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) { .rd-nf .jdp-display { padding: 0 10px; } }
#invoice-number-error:empty { display: none; }
@media (min-width: 1200px) { .rd-nf__sel { height: 46px; } }
#metal-value, #pv-schedule { line-height: normal; }
@media (max-width: 1199.98px) {
  .rd-nf__in { height: 48px; }
  .rd-nf__in--big { height: 52px; }
  .rd-nf .jdp-display { height: 50px; }
}
.rd-gate__lbl input { box-sizing: content-box; }

/* ---- «ثبت پرداخت قسط» (admin/_pay_dialog.html) — boards PaymentDialog (560px dialog) and PaymentMobile (the sheet
   under 600px, 60px from the top) */
.rd-pay { width: 560px; }
.rd-pay__m { display: none; }
.rd-pay__head { align-items: flex-start; gap: 10px; }
.rd-pay__hd { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-pay__sub { font-size: 13px; color: var(--muted-text); }
.rd-pay__body { gap: 16px; }
.rd-pay__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rd-pay__tile { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rd-pay__tile > span { font-size: 12px; color: var(--muted-text); }
.rd-pay__tile > b { font-size: 15px; font-weight: 800; white-space: nowrap; }
.rd-pay__row { justify-content: space-between; font-size: 13px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.rd-pay__row > span { color: var(--text-soft); }
.rd-pay__row > b { font-weight: 800; }
.rd-pay__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-pay__lbl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; margin: 0; color: var(--text); }
.rd-pay__in, .rd-pay .jdp-display { height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-size: 15px; padding: 0 12px; color: var(--text); font-family: inherit; margin: 0; box-shadow: none; width: auto;
  box-sizing: content-box; font-weight: 400; min-width: 0; }
.rd-pay .jdp-wrap { display: flex; flex-direction: column; }      /* the date field stretches like the amount */
.rd-pay__in--amt { border-color: var(--ink); font-size: 18px; font-weight: 800; }
.rd-pay__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-pay__chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); font-size: 12px; font-family: inherit; cursor: pointer; }
.rd-pay__chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink-tint-soft); color: var(--ink-2); font-weight: 700; }
.rd-pay__chip[hidden] { display: none; }
.rd-pay__overpay { margin: 0; font-size: 12px; color: var(--gold-text); }
.rd-pay__pen { border: 1px solid var(--danger-bg); background: var(--danger-row); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px; }
.rd-pay__pen[hidden] { display: none; }
.rd-pay__penhead { display: flex; justify-content: space-between; font-size: 13px; }
.rd-pay__penhead > span { color: var(--danger-text); font-weight: 700; }
.rd-pay__penhead > b { font-weight: 800; white-space: nowrap; }
.rd-pay__ask { display: flex; align-items: center; gap: 10px; }
.rd-pay__q { flex: 1; font-size: 13px; }
.rd-pay__seg { display: flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: 8px; }
.rd-pay__seg > button { height: 32px; padding: 0 12px; border-radius: 6px; border: 0; background: transparent; color: var(--text-soft);
  font-size: 13px; font-family: inherit; cursor: pointer; }
.rd-pay__seg > button[aria-checked="true"] { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rd-pay__note { font-size: 12px; color: var(--muted-text); }
.rd-pay__total { display: flex; justify-content: space-between; align-items: baseline; background: var(--ink-tint-soft);
  border-radius: 10px; padding: 12px 14px; }
.rd-pay__total > span { font-size: 14px; font-weight: 700; }
.rd-pay__total > b { font-size: 22px; font-weight: 800; color: var(--ink-2); }
.rd-pay__total small { font-size: 12px; font-weight: 500; }
.rd-pay__prev > summary { font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.rd-pay__prow { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.rd-pay__prow > b { white-space: nowrap; }
.rd-pay__pline { display: block; font-size: 12px; color: var(--muted-text); }
.rd-pay__foot { padding: 14px 20px 18px; }
.rd-pay__submit { flex: 1; height: 50px; }
.rd-pay__cancel { height: 50px; padding: 0 18px; text-decoration: none; box-sizing: border-box; justify-content: center; align-items: center; }
@media (max-width: 600px) {
  .rd-pay { width: auto; }
  .rd-dialog.rd-pay { top: 60px; }
  .rd-pay__d { display: none; }
  .rd-pay__m { display: inline; }
  div.rd-pay__m { display: flex; }
  .rd-pay__head { align-items: center; gap: 0; }
  .rd-pay__hd { gap: 0; }
  .rd-pay__sub { font-size: 12px; }
  .rd-pay__body { gap: 12px; }
  .rd-pay__fields { display: flex; flex-direction: column; gap: 12px; }
  .rd-pay__in--amt { height: 52px; font-size: 20px; }
  .rd-pay__chips { flex-wrap: nowrap; overflow-x: auto; }
  .rd-pay__chip { flex: none; }
  .rd-pay__pen { background: transparent; padding: 12px; }
  .rd-pay__ask { display: block; }
  .rd-pay__seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; border-radius: 10px; height: 46px;
    box-sizing: border-box; }
  .rd-pay__seg > button { height: auto; padding: 0; border-radius: 8px; font-size: 14px; }
  .rd-pay__foot { flex-direction: column; gap: 8px; padding: 12px 16px 20px; }
  .rd-pay__mtotal { justify-content: space-between; align-items: baseline; }
  .rd-pay__mtotal > span { font-size: 13px; color: var(--text-soft); }
  .rd-pay__mtotal > b { font-size: 20px; font-weight: 800; color: var(--ink-2); }
  .rd-pay__submit { flex: none; }
}
.rd-stage--paysheet { display: block; }

/* ---- «لغو فاکتور» (admin/_cancel_dialog.html) — boards CancelInvoice (720px dialog) and CancelMobile (a page of its own
   under 600px: top bar, cards on the page background, the fixed action bar) */
.rd-cx { width: 720px; }
.rd-cx__mbar, .rd-cx__who, .rd-cx__m, .rd-cx__mnote { display: none; }
.rd-cx__head { align-items: flex-start; gap: 10px; padding: 18px 22px; }
.rd-cx__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--danger-bg); color: var(--danger-text);
  display: flex; align-items: center; justify-content: center; flex: none; }
.rd-cx__hd { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-cx__sub { font-size: 13px; color: var(--muted-text); }
.rd-cx__body { padding: 18px 22px; gap: 16px; }
.rd-cx__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-cx__wt { background: var(--gold-tint); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rd-cx__wtl { font-size: 12px; color: var(--gold-text); }
.rd-cx__wt > b { font-size: 18px; font-weight: 800; }
.rd-cx__wts { font-size: 12px; color: var(--muted-text); }
.rd-cx__rate, .rd-cx__note { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; margin: 0;
  color: var(--text); }
.rd-cx__in { height: 52px; border-radius: 10px; border: 1px solid var(--ink); background: var(--surface); font-size: 18px;
  font-weight: 800; padding: 0 12px; color: var(--text); font-family: inherit; margin: 0; box-shadow: none; box-sizing: content-box;
  width: auto; min-width: 0; }
.rd-cx__help { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-cx__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rd-cx__card { border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; }
.rd-cx__ct { font-size: 14px; font-weight: 800; }
.rd-cx__kv { display: flex; justify-content: space-between; }
.rd-cx__kv > span:first-child { color: var(--text-soft); }
.rd-cx__b > span:last-child { font-weight: 700; }
.rd-cx__pos { color: var(--emerald-text); }
.rd-cx__neg { color: var(--danger-text); }
.rd-cx__sum { border-top: 1px solid var(--border); padding-top: 8px; }
.rd-cx__sum > span:first-child { font-weight: 700; color: var(--text); }
.rd-cx__sum > span:last-child { font-weight: 800; }
.rd-cx__gv { font-weight: 800; }
.rd-cx__gnote { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-cx__kept { margin-top: auto; border-top: 1px solid var(--border); padding-top: 8px; font-size: 12px; }
.rd-cx__res { border-radius: 10px; background: var(--gold-tint); padding: 16px; display: flex; align-items: center; gap: 14px; }
.rd-cx__rcol { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rd-cx__rl { font-size: 13px; font-weight: 700; color: var(--gold-text); }
.rd-cx__rt { font-size: 12px; color: var(--text-soft); }
.rd-cx__amt { font-size: 26px; font-weight: 800; color: var(--gold-text); white-space: nowrap; }
.rd-cx__amt small { font-size: 13px; font-weight: 500; }
.rd-cx__res--debtor { background: var(--danger-bg); }
.rd-cx__res--debtor .rd-cx__rl, .rd-cx__res--debtor .rd-cx__amt { color: var(--danger-text); }
.rd-cx__note textarea { border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px;
  padding: 10px 12px; color: var(--text); resize: vertical; font-family: inherit; margin: 0; font-weight: 400; min-height: 0;
  height: auto; line-height: normal; box-sizing: content-box; width: auto; }
.rd-cx__fn { font-size: 12px; color: var(--muted-text); }
.rd-cx__foot { padding: 14px 22px 18px; }
.rd-cx__submit { flex: 1; height: 50px; border: 0; background: var(--danger); color: var(--surface); font-size: 15px; font-weight: 800; }
.rd-cx__cancel { height: 50px; padding: 0 20px; text-decoration: none; justify-content: center; align-items: center;
  box-sizing: border-box; }
@media (max-width: 600px) {
  .rd-modal--cx { display: block; background: var(--bg); overflow-y: auto; }
  .rd-dialog.rd-cx { position: static; width: auto; max-height: none; background: transparent; border-radius: 0; box-shadow: none; }
  .rd-cx__head, .rd-cx__d, .rd-cx__wt, .rd-cx__fn, .rd-cx__gnote, .rd-cx__kept, .rd-cx__cancel { display: none; }
  .rd-cx__m { display: inline; }
  .rd-cx__mbar { height: 60px; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 12px;
    box-sizing: border-box; }
  .rd-cx__mtitle { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }
  .rd-cx__body { padding: 14px 16px 160px; gap: 12px; }
  .rd-cx__top, .rd-cx__cards { display: contents; }
  .rd-cx__who { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: var(--radius-card);
    padding: 14px 16px; }
  .rd-cx__who > b { font-size: 15px; font-weight: 800; }
  .rd-cx__who > span { font-size: 12px; color: var(--muted-text); }
  .rd-cx__rate, .rd-cx__note { background: var(--surface); border-radius: var(--radius-card); padding: 14px 16px; }
  .rd-cx__in { font-size: 19px; }
  .rd-cx__card { border: 0; background: var(--surface); border-radius: var(--radius-card); padding: 14px 16px; }
  .rd-cx__b > span:last-child, .rd-cx__gv { font-weight: 400; }
  .rd-cx__gold .rd-cx__gv { font-weight: 800; }
  .rd-cx__sum, .rd-cx__sum > span:first-child { font-weight: 800; }
  .rd-cx__res { border-radius: var(--radius-card); padding: 14px 16px; flex-direction: column; align-items: stretch; gap: 4px; }
  .rd-cx__rcol { display: contents; }
  .rd-cx__rl { order: 1; }
  .rd-cx__amt { order: 2; }
  .rd-cx__rt { order: 3; line-height: 1.8; }
  .rd-cx__foot { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); box-shadow: var(--shadow-bar);
    border-top: 0; padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 8px; }
  .rd-cx__submit { flex: none; width: 100%; }
  .rd-cx__mnote { display: block; font-size: 11px; color: var(--muted-text); text-align: center; }
}
.rd-stage--cxpage { display: block; background: var(--bg); }

/* ---- «کارتابل» (admin/requests.html, _cartable_settle.html, _loan_request_panel.html, loan_request.html) — boards
   Cartable, CartableMobile, CartableCancel, CartableCancelMobile, LoanRequestPanel, LoanRequestMobile (Fix Prompt 46 R3) */
.rd-bnav__dot { position: absolute; top: 10px; left: 26px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  font-size: 0; }
.rd-bnav__dot[hidden] { display: none; }
.rd-bnav__i { position: relative; }
.rd-cart { display: flex; flex-direction: column; gap: 18px; }
.rd-cart__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rd-cart__hd { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.rd-cart__hd h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-cart__sub { font-size: 13px; color: var(--muted-text); }
.rd-cart__hbtn { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; text-decoration: none; box-sizing: border-box; }
.rd-cart__hbtn--danger { color: var(--danger-text); }
.rd-cart__hbtn--ink { color: var(--ink-2); }
.rd-cart__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rd-cart__tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.rd-cart__tab { height: 38px; line-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); color: var(--text-soft);
  font-size: 13px; display: inline-block; text-decoration: none; box-sizing: border-box; white-space: nowrap; }
.rd-cart__tab b { font-weight: 800; }
.rd-cart__tab .rd-cart__n--on { color: var(--danger-text); }
.rd-cart__tab[aria-selected="true"] { background: var(--text); color: var(--surface); font-weight: 700; }
.rd-cart__flt { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 10px; }
.rd-cart__flt > a { height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text-soft); font-size: 12px; display: inline-flex;
  align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-cart__flt > a[aria-checked="true"] { background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-cart__split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.rd-cart__list { flex: 1 1 340px; max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.rd-cart__item { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 14px 16px; display: flex;
  gap: 12px; text-decoration: none; color: var(--text); }
a.rd-cart__item[aria-current="true"] { border: 2px solid var(--ink); }
.rd-cart__item--col { flex-direction: column; gap: 10px; }
.rd-cart__row { display: flex; gap: 12px; text-decoration: none; color: var(--text); }
.rd-cart__tile { width: 40px; height: 40px; }
.rd-cart__txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rd-cart__k { font-size: 12px; font-weight: 700; }
.rd-cart__k--ink { color: var(--ink-2); }
.rd-cart__k--gold { color: var(--gold-text); }
.rd-cart__k--danger { color: var(--danger-text); }
.rd-cart__t { font-size: 15px; font-weight: 800; }
.rd-cart__s { font-size: 12px; color: var(--muted-text); }
.rd-cart__more { font-size: 13px; font-weight: 700; color: var(--ink-2); align-self: center; }
.rd-cart__acts { display: flex; gap: 8px; }
.rd-cart__acts > form { margin: 0; }
.rd-cart__acts > form:first-child { flex: 1; display: flex; }
.rd-cart__conv { flex: 1; height: 40px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 13px;
  font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-cart__rej { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--danger-text); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-cart__settle { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-cart__foot { font-size: 12px; color: var(--muted-text); padding: 0 4px; }
.rd-cart__empty { margin: 0; font-size: 13px; color: var(--muted-text); }
.rd-cart__pane { flex: 999 1 420px; min-width: 0; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.rd-cart__pane form { margin: 0; }
.rd-cart__ph { display: flex; align-items: flex-start; gap: 10px; }
.rd-cart__phd { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-cart__phd h2 { margin: 0; font-size: 18px; font-weight: 800; }
.rd-cart__phd > span { font-size: 13px; color: var(--muted-text); }
.rd-cart__plink { font-size: 13px; text-decoration: none; color: var(--ink-2); }
.rd-cart__day { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.rd-cart__drow { display: flex; gap: 8px; }
.rd-cart__din { flex: 1; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px;
  padding: 0 12px; color: var(--text); font-family: inherit; margin: 0; min-width: 0; }
.rd-cart__calc { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-cart__dh { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-cart__req { display: flex; justify-content: space-between; font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.rd-cart__req > span:first-child { color: var(--text-soft); }
.rd-cart__req b { font-weight: 700; }
.rd-cart__muted { color: var(--muted-text); }
.rd-cart__pens { display: flex; flex-direction: column; gap: 8px; }
.rd-cart__pt { font-size: 13px; font-weight: 700; }
.rd-cart__pen { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.rd-cart__pen > span { flex: 1; font-size: 13px; }
.rd-cart__seg { display: flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: 8px; }
.rd-cart__seg > a { height: 30px; padding: 0 10px; border-radius: 6px; color: var(--text-soft); font-size: 12px; display: inline-flex;
  align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-cart__seg > a[aria-checked="true"] { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rd-cart__calcbox { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.rd-cart__calcbox > summary { font-weight: 700; cursor: pointer; }
.rd-cart__kvs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rd-cart__kvs > div, .rd-cart__tk { display: flex; justify-content: space-between; }
.rd-cart__kvs > div > span:first-child, .rd-cart__tk > span:first-child { color: var(--text-soft); }
.rd-cart__total { display: flex; flex-direction: column; gap: 6px; background: var(--ink-tint-soft); border-radius: 10px; padding: 14px 16px; }
.rd-cart__tt { display: flex; justify-content: space-between; align-items: baseline; }
.rd-cart__tt > span { font-size: 14px; font-weight: 700; }
.rd-cart__tt > b { font-size: 24px; font-weight: 800; color: var(--ink-2); }
.rd-cart__tt small { font-size: 13px; font-weight: 500; }
.rd-cart__tk { font-size: 13px; }
.rd-cart__pos { font-weight: 700; color: var(--emerald-text); }
.rd-cart__warn { margin: 0; display: flex; gap: 8px; font-size: 13px; color: var(--gold-text); background: var(--gold-tint);
  border-radius: 10px; padding: 12px 14px; line-height: 1.8; }
.rd-cart__pacts { display: flex; gap: 10px; flex-wrap: wrap; }
.rd-cart__appf { flex: 1 1 200px; display: flex; }
.rd-cart__approve { flex: 1; height: 50px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px;
  font-weight: 800; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; }
.rd-cart__approve--link { flex: 1 1 200px; }
.rd-cart__reject { height: 50px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--danger-text); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-cart__card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px 20px; display: flex;
  flex-direction: column; gap: 12px; }
.rd-cart__ch { display: flex; align-items: center; gap: 10px; }
.rd-cart__ch h2 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }
.rd-cart__pickf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 0; }
.rd-cart__pl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; margin: 0; color: var(--text); }
.rd-cart__search { height: 46px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
  padding: 0 12px; font-size: 14px; font-weight: 400; color: var(--muted-text); }
.rd-cart__search > input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--text); height: 100%; min-width: 0;
  padding: 0; margin: 0; box-shadow: none; outline-offset: 2px; -webkit-appearance: none; appearance: none; }
.rd-cart__search > input::-webkit-search-decoration { -webkit-appearance: none; }
.rd-cart__search > input::placeholder { color: var(--muted-text); opacity: 1; }
.rd-cart__search > input::-webkit-search-cancel-button { display: none; }
.rd-cart__perr { margin: 0; font-size: 12px; color: var(--danger-text); }
.rd-cart__go { background: var(--ink); color: var(--surface); border: 0; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px;
  font-weight: 700; font-family: inherit; white-space: nowrap; cursor: pointer; }
.rd-cart__crow { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.rd-cart__crow + .rd-cart__crow { border-top: 1px solid var(--border); }
.rd-cart__cmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-cart__ct { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rd-cart__ct > a { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.rd-cart__cs { font-size: 12px; color: var(--muted-text); }
.rd-cart__cend { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rd-cart__cend > b { font-size: 15px; }
.rd-cart__cend small { font-size: 11.5px; font-weight: 500; color: var(--muted-text); }
.rd-cart__cend form { margin: 0; }
.rd-input--area { height: auto; padding: 10px 12px; resize: vertical; font-family: inherit; }

/* the loan request panel (board LoanRequestPanel) */
.rd-lr { display: flex; flex-direction: column; gap: 16px; }
.rd-lr form { margin: 0; }
.rd-lr__head { display: flex; align-items: flex-start; gap: 10px; }
.rd-lr__hd { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rd-lr__k { font-size: 12px; font-weight: 700; color: var(--gold-text); }
.rd-lr__hd h2 { margin: 0; font-size: 20px; font-weight: 800; }
.rd-lr__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-lr__call { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; gap: 6px;
  font-size: 13px; text-decoration: none; color: var(--text); box-sizing: content-box; }
.rd-lr__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rd-lr__tiles > div { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rd-lr__tiles span { font-size: 12px; color: var(--muted-text); }
.rd-lr__tiles b { font-size: 17px; font-weight: 800; }
.rd-lr__tiles small { font-size: 12px; font-weight: 500; color: var(--muted-text); }
.rd-lr__ref { border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rd-lr__refh { display: flex; align-items: center; gap: 10px; }
.rd-lr__refh .rd-tile { width: 40px; height: 40px; }
.rd-lr__refn { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rd-lr__refn > span { font-size: 12px; color: var(--muted-text); }
.rd-lr__refn > b { font-size: 15px; }
.rd-lr__refn > .rd-lr__refp { font-size: 12.5px; text-align: right; }
.rd-lr__prof { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; display: flex; align-items: center; gap: 4px;
  min-height: 44px; }
.rd-lr__rtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rd-lr__rtiles > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.rd-lr__rtiles > div > span { font-size: 12px; color: var(--muted-text); }
.rd-lr__rtiles b { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-lr__rtiles small { font-size: 11px; font-weight: 500; color: var(--muted-text); }
.rd-lr__rtiles small.rd-lr__soft { font-size: 11.5px; color: var(--text-soft); }
.rd-lr__pos { color: var(--emerald-text); }
.rd-lr__neg { color: var(--danger-text); }
.rd-lr__desc { display: flex; flex-direction: column; gap: 6px; }
.rd-lr__desc > span { font-size: 13px; font-weight: 700; }
.rd-lr__desc > p { margin: 0; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.9;
  color: var(--text-soft); white-space: pre-line; }
.rd-lr__conv { width: 100%; height: 50px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px;
  font-weight: 800; font-family: inherit; cursor: pointer; }
.rd-lr__note { font-size: 12px; color: var(--muted-text); }
.rd-lr__note--up { margin-top: -8px; }
.rd-lr__rej { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rd-lr__rej label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; margin: 0; color: var(--text); }
.rd-lr__rej textarea { border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; padding: 10px 12px;
  color: var(--text); resize: vertical; font-family: inherit; font-weight: 400; margin: 0; min-height: 0; height: auto; line-height: normal;
  box-sizing: content-box; width: auto; }
.rd-lr__rbtn { align-self: flex-start; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--danger-text); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-lrpage { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }

@media (max-width: 1199.98px) {
  .rd-cart { gap: 0; }
  .rd-cart__head { background: var(--surface); padding: 12px 16px 0; gap: 8px; flex-wrap: nowrap; }
  .rd-cart__hd h1 { font-size: 20px; }
  .rd-cart__hbtn { height: 40px; padding: 0 10px; font-size: 12px; font-weight: 400; color: var(--text); }
  .rd-cart__bar { background: var(--surface); padding: 12px 0 14px; }
  .rd-cart__tabs { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px; }
  .rd-cart__tab { flex: none; height: 36px; line-height: 36px; background: var(--bg); }
  .rd-cart__tab .rd-cart__n--on { color: inherit; }
  .rd-cart__tab b { font-weight: inherit; }
  .rd-cart__split { display: block; padding: 14px 16px 100px; }
  .rd-cart > .rd-cart__card { margin: 14px 16px 0; }
  .rd-cart__list { max-width: none; }
  .rd-cart__item { box-shadow: none; padding: 14px; align-items: center; }
  .rd-cart__item--col { align-items: stretch; }
  .rd-cart__row { align-items: center; }
  .rd-cart__conv, .rd-cart__rej { height: 44px; font-size: 14px; }
  .rd-cart__rej { padding: 0 16px; }
  .rd-lrpage { gap: 0; }
  .rd-lrpage__card { margin: 14px 16px 100px; }
}
@media (min-width: 1200px) { .rd-cart .rd-mob, .rd-lrpage .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) { .rd-cart .rd-desk, .rd-lrpage .rd-desk { display: none !important; } }
@media (max-width: 1199.98px) {
  /* the cancel / direct tab (board CartableCancelMobile) */
  .rd-cart--pick { gap: 12px; padding: 14px 16px 100px; }
  .rd-cart--pick > .rd-cart__head { display: none; }
  .rd-cart--pick .rd-cart__bar { background: transparent; padding: 0; }
  .rd-cart--pick .rd-cart__tabs { padding: 0; gap: 6px; }
  .rd-cart--pick .rd-cart__tab { height: 38px; line-height: 38px; background: var(--surface); }
  .rd-cart--pick .rd-cart__tab[aria-selected="true"] { background: var(--text); }
  .rd-cart--pick .rd-cart__tab .rd-desk { display: inline !important; }
  .rd-cart--pick .rd-cart__tab .rd-mob { display: none !important; }
  .rd-cart--pick .rd-cart__tab b { font-weight: 800; }
  .rd-cart--pick .rd-cart__tab:first-child .rd-desk { display: none !important; }
  .rd-cart--pick .rd-cart__tab:first-child .rd-mob { display: inline !important; }
  .rd-cart--pick > .rd-cart__card { margin: 0; padding: 14px 16px; box-shadow: none; }
  .rd-cart--pick .rd-cart__ch h2 { font-size: 15px; }
  .rd-cart--pick .rd-cart__pickf { grid-template-columns: minmax(0, 1fr); }
}

/* one loan request on a phone (board LoanRequestMobile) */
.rd-lrm { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 150px; }
.rd-lrm form { margin: 0; }
.rd-lrm__card { background: var(--surface); border-radius: var(--radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rd-lrm__name { font-size: 18px; font-weight: 800; }
.rd-lrm__chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.rd-lrm__call { height: 44px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 14px; text-decoration: none; color: var(--text); box-sizing: content-box; }
.rd-lrm__ref { gap: 10px; }
.rd-lrm__rtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-lrm__rtiles > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.rd-lrm__rtiles > div > span { font-size: 12px; color: var(--muted-text); }
.rd-lrm__rtiles b { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-lrm__rtiles small { font-size: 11px; font-weight: 500; color: var(--muted-text); }
.rd-lrm__rtiles small.rd-lr__soft { font-size: 11.5px; color: var(--text-soft); }
.rd-lrm__kv { display: flex; justify-content: space-between; font-size: 13px; }
.rd-lrm__kv > span { color: var(--text-soft); }
.rd-lrm__kv > b { font-weight: 800; }
.rd-lrm__desc { margin: 4px 0 0; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; line-height: 1.9; color: var(--text-soft);
  font-size: 13px; white-space: pre-line; }
.rd-lrm__rej { gap: 6px; font-size: 13px; font-weight: 700; margin: 0; color: var(--text); }
.rd-lrm__rej textarea { border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px; padding: 10px 12px;
  color: var(--text); font-family: inherit; font-weight: 400; margin: 0; min-height: 0; height: auto; line-height: normal; resize: vertical;
  box-sizing: content-box; width: auto; }
.rd-lrm__rn { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-lrm__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); box-shadow: var(--shadow-bar);
  padding: 12px 16px 20px; display: flex; gap: 10px; }
.rd-mob.rd-lrm__bar { display: none; }
.rd-lrm__bar > form { flex: 1; display: flex; margin: 0; }
.rd-lrm__conv { flex: 1; height: 50px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px;
  font-weight: 800; font-family: inherit; cursor: pointer; }
.rd-lrm__rbtn { height: 50px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--danger-text); font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; }
@media (max-width: 1199.98px) { .rd-mob.rd-lrm__bar { display: flex; } .rd-lrpage { display: block; } }
.rd-stage--lr { display: block; background: var(--bg); padding: 24px; }   /* board LoanRequestPanel */

/* ---- «بررسی تسویه‌ی زودهنگام» (admin/early_settlement_review.html) — boards SettlementReview, SettlementReviewMobile
   (Fix Prompt 46 R3) */
.rd-es { display: flex; flex-direction: column; gap: 18px; }
.rd-es form { margin: 0; }
.rd-es__h1 h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-es__card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px 20px; display: flex;
  flex-direction: column; gap: 12px; }
.rd-es__who { padding: 16px 20px; flex-direction: row; align-items: center; gap: 12px; }
.rd-es__wtile { width: 44px; height: 44px; }
.rd-es__whod { flex: 1; display: flex; flex-direction: column; }
.rd-es__whod > b { font-size: 16px; }
.rd-es__whod > span { font-size: 12.5px; color: var(--muted-text); }
.rd-es__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; align-items: start; }
.rd-es__col { display: flex; flex-direction: column; gap: 16px; }
.rd-es__side { position: sticky; top: 24px; }
.rd-es__ch { display: flex; align-items: center; gap: 10px; list-style: none; }
.rd-es__ch::-webkit-details-marker { display: none; }
.rd-es__ch h2 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }
.rd-es__date { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.rd-es__dl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; margin: 0; color: var(--text); }
.rd-es__din { display: flex; align-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  box-sizing: border-box; }
.rd-es__din > input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px; padding: 0 12px; color: var(--text);
  font-family: inherit; margin: 0; box-shadow: none; }
.rd-es__help { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-es__refresh { background: var(--ink-tint); color: var(--ink-2); height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none;
  box-sizing: border-box; }
.rd-es__req { display: flex; justify-content: space-between; font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.rd-es__req > span { color: var(--text-soft); }
.rd-es__note { margin: 0; font-size: 12.5px; color: var(--text-soft); line-height: 1.8; }
.rd-es__warn { margin: 0; display: flex; gap: 8px; align-items: flex-start; background: var(--gold-tint); color: var(--gold-text);
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.8; }
.rd-es__warn--bad { background: var(--danger-bg); color: var(--danger-text); }
.rd-es__pen { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rd-es__pent { display: flex; flex-direction: column; }
.rd-es__pent > b { font-size: 14px; }
.rd-es__pent > span { font-size: 12.5px; color: var(--text-soft); }
.rd-es__seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg); }
.rd-es__seg > * { height: 36px; padding: 0 14px; border-radius: 8px; color: var(--text-soft); font-size: 13px; display: inline-flex;
  align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-es__seg > [aria-checked="true"] { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rd-es__calc { display: flex; flex-direction: column; gap: 12px; }
.rd-es__calc > summary { cursor: pointer; }
.rd-es__calc[open] > summary { margin-bottom: 12px; }
.rd-es__kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.rd-es__kv > span { color: var(--text-soft); }
.rd-es__kv > b { font-weight: 700; }
.rd-es__kv > b.rd-es__strong { font-weight: 800; }
.rd-es__kv > b.rd-es__ink { font-weight: 800; color: var(--ink-2); }
.rd-es__kv > b.rd-es__pos, .rd-es__pos { color: var(--emerald-text); }
.rd-es__kv > b.rd-es__neg, .rd-es__neg { color: var(--danger-text); }
.rd-es__more > summary { list-style: none; cursor: pointer; }
.rd-es__more > summary::-webkit-details-marker { display: none; }
.rd-es__mini, .rd-es__pays { width: 100%; border-collapse: collapse; font-size: 13px; }
.rd-es__mini th, .rd-es__pays th { font-size: 12px; font-weight: 700; color: var(--text-soft); padding: 8px 10px; text-align: right;
  border-bottom: 1.5px solid var(--border); }
.rd-es__mini td, .rd-es__pays td { padding: 8px 10px; }
.rd-es__pays tbody tr { border-bottom: 1px solid var(--border); }
.rd-es__off { color: var(--muted-text); }
.rd-es__amount { background: var(--ink-2); color: var(--surface); border-radius: var(--radius-card); padding: 18px 20px; display: flex;
  flex-direction: column; gap: 8px; }
.rd-es__amount > span:first-child { font-size: 13px; opacity: .85; }
.rd-es__amount > b { font-size: 30px; font-weight: 800; }
.rd-es__amount small { font-size: 14px; font-weight: 500; opacity: .8; }
.rd-es__disc { font-size: 13px; }
.rd-es__acts { display: flex; flex-direction: column; gap: 8px; }
.rd-es__approve { height: 50px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 800;
  font-family: inherit; cursor: pointer; }
.rd-es__approve:disabled { opacity: .5; cursor: not-allowed; }
.rd-es__reject { height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--danger-text);
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; }
.rd-es__dform { display: flex; flex-direction: column; gap: 10px; }
.rd-es__check { display: flex; gap: 8px; font-size: 13px; }
.rd-es__guard { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--emerald-text); }
.rd-es__guard > span { color: var(--text-soft); }
.rd-es__guard--bad { color: var(--danger-text); }
.rd-es__guard--bad > span { color: var(--danger-text); }
.rd-es__fold { display: block; }
.rd-es__fold > summary { font-size: 13px; font-weight: 700; cursor: pointer; }

/* the phone (board SettlementReviewMobile) */
.rd-es__m { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1200px) { .rd-es .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) {
  .rd-es .rd-desk { display: none !important; }
  .rd-es { gap: 12px; padding: 14px 16px 160px; }
  .rd-es__card { box-shadow: none; padding: 14px 16px; gap: 10px; }
  .rd-es__grid { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .rd-es__side { position: static; }
  .rd-es__col { gap: 12px; }
  .rd-es__mwho { gap: 4px; }
  .rd-es__mwho > b { font-size: 15px; font-weight: 800; }
  .rd-es__mwho > span { font-size: 12px; color: var(--muted-text); }
  .rd-es__mdl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; margin: 0; color: var(--text); }
  .rd-es__mdl > input { height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 15px;
    padding: 0 12px; color: var(--text); font-family: inherit; margin: 0; box-shadow: none; box-sizing: content-box; width: auto; font-weight: 400; }
  .rd-es__mreq { display: flex; justify-content: space-between; font-size: 12px; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
  .rd-es__mreq > span { color: var(--text-soft); }
  .rd-es__mt { font-size: 13px; font-weight: 700; }
  .rd-es__mpen { font-size: 13px; }
  .rd-es__mseg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px;
    height: 46px; box-sizing: border-box; }
  .rd-es__mseg > * { border-radius: 8px; color: var(--text-soft); font-size: 14px; display: flex; align-items: center; justify-content: center;
    text-decoration: none; }
  .rd-es__mseg > [aria-checked="true"] { background: var(--surface); color: var(--ink-2); font-weight: 700; }
  .rd-es__mcalc { display: block; font-size: 13px; }
  .rd-es__mcalc > summary { font-weight: 700; }
  .rd-es__mrows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
  .rd-es__mrows > div { display: flex; justify-content: space-between; }
  .rd-es__mrows > div > span:first-child { color: var(--text-soft); }
  .rd-es__mrows b { font-weight: 700; }
  .rd-es__mrule { border-top: 1px solid var(--border); padding-top: 6px; }
  .rd-es__mdue > span:first-child { font-weight: 700; color: var(--text) !important; }
  .rd-es__mdue > span:last-child { font-weight: 800; }
  .rd-es__mamt { background: var(--ink-tint-soft); gap: 6px; }
  .rd-es__mamt > span { font-size: 13px; font-weight: 700; }
  .rd-es__mamt > b { font-size: 26px; font-weight: 800; color: var(--ink-2); }
  .rd-es__mamt small { font-size: 13px; font-weight: 500; }
  .rd-es__mkv { display: flex; justify-content: space-between; font-size: 13px; }
  .rd-es__mkv > span { color: var(--text-soft); }
  .rd-es__mkv > b { font-weight: 700; color: var(--emerald-text); }
  .rd-es__acts { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); box-shadow: var(--shadow-bar);
    padding: 12px 16px 20px; }
  .rd-es__acts > .rd-es__help { display: none; }
  .rd-es__acts > .rd-es__reject { height: 44px; }
}
.rd-es__link { border: 0; background: transparent; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; }

/* ---- «ثبت واریزی قسط» (admin/quick_payment.html, _quick_results.html, _quick_panel.html) — boards QuickPay,
   QuickPayMobile (Fix Prompt 46 R3) */
.rd-qp { display: flex; flex-direction: column; gap: 18px; }
.rd-qp [hidden] { display: none !important; }
.rd-qp__head { display: flex; align-items: center; gap: 10px; }
.rd-qp__hd { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-qp__hd h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-qp__hd > span { font-size: 13px; color: var(--muted-text); }
.rd-qp__hist { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; text-decoration: none; box-sizing: content-box; }
.rd-qp__search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--ink);
  background: var(--surface); box-sizing: border-box; margin: 0; }
.rd-qp__sicon { color: var(--ink-2); display: flex; }
.rd-qp__search > input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; font-family: inherit;
  color: var(--text); padding: 1px 2px; margin: 0; height: auto; box-shadow: none; }
.rd-qp__kbd { font-size: 11.5px; color: var(--muted-text); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }
.rd-qp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.rd-qp__results { background: var(--surface); border-radius: var(--radius-card); padding: 8px; display: flex; flex-direction: column; }
.rd-qp__count { font-size: 12px; color: var(--muted-text); padding: 6px 8px; }
.rd-qp__row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.rd-qp__row + .rd-qp__row { border-top: 1px solid var(--border); }
.rd-qp__row[aria-pressed="true"] { background: var(--ink-tint); }
.rd-qp__rmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-qp__rmain > b { font-size: 14px; }
.rd-qp__rmain > b > span, .rd-qp__phd > b > span { font-weight: 400; color: var(--text-soft); }
.rd-qp__rsub { font-size: 12px; color: var(--muted-text); }
.rd-qp__rend { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rd-qp__rend > b { font-size: 13px; }
.rd-qp__empty { margin: 0; padding: 6px 8px; font-size: 13px; color: var(--muted-text); }
.rd-qp__panel { background: var(--surface); border-radius: var(--radius-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.rd-qp__ph { display: flex; align-items: center; gap: 10px; }
.rd-qp__ptile { width: 40px; height: 40px; }
.rd-qp__phd { flex: 1; display: flex; flex-direction: column; }
.rd-qp__phd > b { font-size: 15px; }
.rd-qp__phd > span { font-size: 12px; color: var(--muted-text); }
.rd-qp__open { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.rd-qp__pt { margin: 6px 0 0; font-size: 14px; font-weight: 800; color: var(--text-soft); }
.rd-qp__inst { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.rd-qp__inst + .rd-qp__inst { border-top: 1px solid var(--border); }
.rd-qp__num { width: 36px; height: 36px; flex: none; border-radius: 50%; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rd-qp__num--late { background: var(--danger-bg); color: var(--danger-text); }
.rd-qp__num--other { background: var(--neutral-tint); color: var(--text-soft); }
.rd-qp__imain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-qp__it { display: flex; gap: 6px; align-items: center; }
.rd-qp__it > b { font-size: 14px; }
.rd-qp__isub { font-size: 12px; color: var(--muted-text); }
.rd-qp__neg { color: var(--danger-text); }
.rd-qp__iamt { display: flex; flex-direction: column; align-items: flex-end; }
.rd-qp__iamt > b { font-size: 15px; }
.rd-qp__iamt > span { font-size: 11px; color: var(--muted-text); }
.rd-qp__pay { height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; box-sizing: content-box; }
.rd-qp__pay--main { background: var(--ink); color: var(--surface); border: 0; }
@media (min-width: 1200px) { .rd-qp .rd-mob { display: none !important; } .rd-mbar .rd-qp__hist-m { display: none; } }
@media (max-width: 1199.98px) {
  .rd-qp .rd-desk { display: none !important; }
  .rd-qp { gap: 12px; padding: 14px 16px 100px; }
  .rd-qp__search { height: 52px; }
  .rd-qp__grid { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
  .rd-qp__grid > * { min-width: 0; }
  .rd-qp__panel { padding: 14px 16px; }
  .rd-qp__pay { height: 44px; }
  .rd-qp__hist-m { color: var(--ink-2); }
}

/* ---- «واریزی‌های ثبت‌شده» (admin/payment_history.html) — boards PaymentHistory, PaymentHistoryMobile (Fix Prompt 46 R3) */
.rd-ph2 { display: flex; flex-direction: column; gap: 18px; }
.rd-ph2__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-ph2__hd { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.rd-ph2__hd h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-ph2__hd > span { font-size: 13px; color: var(--muted-text); }
.rd-ph2__new { height: 40px; padding: 0 14px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; text-decoration: none; box-sizing: border-box; }
.rd-ph2__filter { background: var(--surface); border-radius: var(--radius-card); padding: 14px 18px; display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin: 0; }
.rd-ph2__fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; margin: 0; color: var(--text); }
.rd-ph2__in { display: flex; align-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  box-sizing: border-box; }
.rd-ph2__in > input, .rd-ph2__in .jdp-display { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px;
  padding: 0 12px; color: var(--text); font-family: inherit; margin: 0; box-shadow: none; font-weight: 400; width: 100%; }
.rd-ph2__in .jdp-wrap { flex: 1; display: flex; height: 100%; }
.rd-ph2__fb { display: flex; gap: 8px; }
.rd-ph2__apply { background: var(--ink); color: var(--surface); border: 0; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px;
  font-weight: 700; font-family: inherit; white-space: nowrap; cursor: pointer; }
.rd-ph2__clear { background: transparent; color: var(--text-soft); border: 1px solid var(--border); height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; text-decoration: none; box-sizing: border-box; }
.rd-ph2__chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rd-ph2__day { background: var(--surface); border-radius: var(--radius-card); padding: 6px 20px; }
.rd-ph2__dh { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 4px; border-bottom: 1px solid var(--border); }
.rd-ph2__dh h2 { margin: 0; font-size: 14px; font-weight: 800; }
.rd-ph2__dh > span { font-size: 12.5px; color: var(--text-soft); }
.rd-ph2__dh b { color: var(--emerald-text); }
.rd-ph2__row { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.rd-ph2__row + .rd-ph2__row { border-top: 1px solid var(--border); }
.rd-ph2__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-ph2__t { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rd-ph2__t > a { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.rd-ph2__sub { font-size: 12px; color: var(--muted-text); }
.rd-ph2__pen { font-size: 12px; color: var(--gold-text); }
.rd-ph2__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rd-ph2__end > b { font-size: 15px; color: var(--emerald-text); }
.rd-ph2__end small { font-size: 11.5px; font-weight: 500; color: var(--muted-text); }
.rd-ph2__edit { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; box-sizing: content-box; }
.rd-ph2__fix { font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.rd-ph2__empty { margin: 0; font-size: 13px; color: var(--muted-text); }
.rd-ph2__pages { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rd-ph2__pages > * { min-width: 60px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface); color: var(--text-soft);
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.rd-ph2__pages > .rd-ph2__on { background: var(--ink); color: var(--surface); font-weight: 700; }
.rd-ph2__pages > .rd-ph2__off { opacity: .5; }
@media (min-width: 1200px) { .rd-ph2 .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) {
  .rd-ph2 .rd-desk { display: none !important; }
  .rd-ph2 { gap: 12px; padding: 14px 16px 100px; }
  .rd-ph2__filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px 14px; }
  .rd-ph2__filter > .rd-ph2__fl:first-child, .rd-ph2__fb { grid-column: 1 / -1; }
  .rd-ph2__day { padding: 4px 14px; }
  .rd-ph2__row { align-items: flex-start; }
}

/* ---- «ویرایش پرداخت» (admin/_edit_payment_dialog.html) — boards EditPaymentDialog, EditPaymentMobile */
.rd-ep { width: 600px; }
.rd-ep form { margin: 0; }
.rd-ep__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.rd-ep__tile { width: 40px; height: 40px; }
.rd-ep__head h2 { margin: 0; font-size: 17px; font-weight: 800; flex: 1; }
.rd-ep__x { width: 36px; height: 36px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--text-soft); display: flex;
  align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rd-ep__body { padding: 10px 20px; display: flex; flex-direction: column; gap: 14px; }
.rd-ep__cur { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rd-ep__cur > span:first-child { font-size: 12.5px; color: var(--muted-text); }
.rd-ep__cur > b { font-size: 16px; }
.rd-ep__soft { font-size: 12.5px; color: var(--text-soft); }
.rd-ep__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-ep__fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; margin: 0; color: var(--text); }
.rd-ep__in { display: flex; align-items: center; height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  box-sizing: border-box; }
.rd-ep__in > input, .rd-ep__in .jdp-display { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px;
  padding: 0 12px; color: var(--text); font-family: inherit; margin: 0; box-shadow: none; font-weight: 400; width: 100%; }
.rd-ep__in .jdp-wrap { flex: 1; display: flex; height: 100%; }
.rd-ep__unit { font-size: 13px; color: var(--muted-text); padding: 0 10px; flex: none; }
.rd-ep__words { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-ep__words:empty { display: none; }
.rd-ep__sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700;
  margin: 0; color: var(--text); }
.rd-ep__sw > input { -webkit-appearance: none; appearance: none; width: 48px; height: 28px; border-radius: 14px; margin: 0; padding: 3px;
  background: var(--border); position: relative; cursor: pointer; box-sizing: border-box; flex: none; }
.rd-ep__sw > input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); }
.rd-ep__sw > input:checked { background: var(--ink); }
.rd-ep__sw > input:checked::after { left: auto; right: 3px; }
.rd-ep__eff { display: flex; flex-direction: column; gap: 6px; }
.rd-ep__et { font-size: 14px; }
.rd-ep__tab { width: 100%; border-collapse: collapse; }
.rd-ep__tab th { font-size: 12px; font-weight: 700; color: var(--text-soft); padding: 8px 10px; text-align: right; border-bottom: 1.5px solid var(--border); }
.rd-ep__tab tbody tr { border-bottom: 1px solid var(--border); }
.rd-ep__tab td { padding: 8px 10px; font-size: 13px; }
.rd-ep__tab td:first-child { color: var(--text-soft); }
.rd-ep__tab td:last-child { font-weight: 700; }
.rd-ep__tab td.rd-ep__neg { color: var(--danger-text); }
.rd-ep__tab td.rd-ep__pos { color: var(--emerald-text); }
.rd-ep__note { margin: 0; display: flex; gap: 8px; align-items: flex-start; background: var(--surface-2); color: var(--text-soft); border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.8; }
.rd-ep__note > svg { margin-top: 2px; flex: none; }
.rd-ep__foot { display: flex; gap: 10px; padding: 12px 20px 18px; }
.rd-ep__save { flex: 1; height: 46px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; }
.rd-ep__cancel { height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; font-family: inherit; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; cursor: pointer; }
/* the phone draws «ویرایش پرداخت» as its own page (board EditPaymentMobile): one card, the full-width submit, no list */
@media (max-width: 1199.98px) {
  .rd-ph2--behind { display: none; }
  #ep-dlg.rd-modal:not(.rd-modal--stage) { position: static; inset: auto; z-index: auto; background: transparent; display: block;
    padding: 14px 16px 100px; }
  #ep-dlg:not(.rd-modal--stage) .rd-ep { position: static; width: auto; max-height: none; overflow: visible; background: transparent;
    box-shadow: none; border-radius: 0; }
  #ep-dlg:not(.rd-modal--stage) :is(.rd-ep__head, .rd-ep__cancel) { display: none; }
  #ep-dlg:not(.rd-modal--stage) .rd-ep__body { background: var(--surface); border-radius: var(--radius-card); padding: 14px 16px; }
  #ep-dlg:not(.rd-modal--stage) .rd-ep__fields { grid-template-columns: minmax(0, 1fr); }
  #ep-dlg:not(.rd-modal--stage) .rd-ep__foot { padding: 12px 0 0; }
  #ep-dlg:not(.rd-modal--stage) .rd-ep__save { height: 48px; font-size: 14px; }
}

/* ---- «اصلاح پرداخت‌های واردشده» (admin/_payment_corrections.html) — board PaymentCorrections (Fix Prompt 46 R3) */
.rd-pc { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px 20px; display: flex;
  flex-direction: column; gap: 12px; }
.rd-pc__head { display: flex; align-items: center; gap: 10px; }
.rd-pc__tile { width: 36px; height: 36px; }
.rd-pc__head h2 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }
.rd-pc__lead { font-size: 12.5px; color: var(--text-soft); line-height: 1.8; }
.rd-pc__ok, .rd-pc__err, .rd-pc__why { margin: 0; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.8; }
.rd-pc__ok { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-pc__err { background: var(--danger-bg); color: var(--danger-text); }
.rd-pc__why { background: var(--surface-2); color: var(--text-soft); }
.rd-pc__row { border-top: 1px solid var(--border); }
.rd-pc__sum { min-height: 48px; display: flex; align-items: center; gap: 10px; color: var(--text); cursor: pointer; list-style: none; }
.rd-pc__sum::-webkit-details-marker, .rd-pc__addbtn::-webkit-details-marker { display: none; }
.rd-pc__sum > b { font-size: 14px; }
.rd-pc__when { font-size: 12.5px; color: var(--text-soft); flex: 1; }
.rd-pc__chev { display: flex; color: var(--ink-2); }
.rd-pc__row[open] .rd-pc__chev { transform: rotate(180deg); }
.rd-pc__form { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; margin: 0; }
.rd-pc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd-pc__fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; margin: 0; color: var(--text); }
.rd-pc__in { display: flex; align-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  box-sizing: border-box; }
.rd-pc__in > input, .rd-pc__in .jdp-display { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px;
  padding: 0 12px; color: var(--text); font-family: inherit; margin: 0; box-shadow: none; font-weight: 400; width: 100%; }
.rd-pc__in .jdp-wrap { flex: 1; display: flex; height: 100%; }
.rd-pc__unit { font-size: 13px; color: var(--muted-text); padding: 0 10px; flex: none; }
.rd-pc__bank { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd-pc__bank > legend { font-size: 13px; font-weight: 700; padding: 0 0 6px; }
.rd-pc__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; margin: 0; color: var(--text); font-weight: 400; }
.rd-pc__opt > input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ink); flex: none; }
.rd-pc__opt > span { display: flex; flex-direction: column; gap: 2px; }
.rd-pc__opt b { font-size: 13.5px; }
.rd-pc__opt > span > span { font-size: 12px; color: var(--text-soft); line-height: 1.7; }
.rd-pc__cut { margin: 0; display: flex; gap: 8px; align-items: flex-start; background: var(--gold-tint); color: var(--gold-text); border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; line-height: 1.8; }
.rd-pc__cut[hidden] { display: none; }
.rd-pc__cut > svg { margin-top: 2px; flex: none; }
.rd-pc__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.rd-pc__save, .rd-pc__del { border: 0; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; gap: 6px; font-family: inherit; white-space: nowrap; cursor: pointer; }
.rd-pc__save { background: var(--ink); color: var(--surface); }
.rd-pc__del { background: var(--danger-bg); color: var(--danger-text); }
.rd-pc__add { border-top: 1px solid var(--border); padding-top: 10px; }
.rd-pc__addbtn { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px dashed var(--ink); background: var(--ink-tint-soft); color: var(--ink-2);
  font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; box-sizing: border-box; }
.rd-pc__add[open] > .rd-pc__form { padding-top: 12px; }
@media (max-width: 600px) { .rd-pc { padding: 14px 16px; } .rd-pc__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- «مشتریان» (admin/customers_list.html) — boards CustomersList, CustomersListMobile (Fix Prompt 46 R3); the search,
   sort menu, tabs, table frame and «۲۵ بعدی» are the invoice list's (rd-l*) */
.rd-ltab--warn, .rd-ltab--warn:hover { background: var(--gold-tint); color: var(--gold-text); font-weight: 700; }
.rd-ctable { min-width: 860px; }
.rd-ctable__who { display: flex; align-items: center; gap: 10px; }
.rd-cav { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ink-tint); color: var(--ink-2); font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.rd-cav--guest { background: var(--neutral-tint); color: var(--text-soft); }
.rd-cav--m { width: 40px; height: 40px; font-size: 13px; }
.rd-ctable__nm { display: flex; flex-direction: column; }
.rd-ctable__nm a, .rd-ctable__nm a:hover { font-weight: 700; color: var(--text); text-decoration: none; }
.rd-ctable__line { display: flex; align-items: center; gap: 6px; }
.rd-ctable__ph { font-size: 12px; color: var(--muted-text); }
.rd-cchip { padding: 2px 7px; }
.rd-ctable__soft { color: var(--text-soft); }
.rd-ctable__none { color: var(--muted-text); }
.rd-ctable__st { font-size: 12px; color: var(--text-soft); }
.rd-ctable__st--ok { color: var(--emerald-text); font-weight: 700; }
.rd-ctable__acts { display: flex; gap: 6px; justify-content: flex-end; }
.rd-ctable__act { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: transparent; display: flex; align-items: center;
  justify-content: center; color: var(--text); padding: 0; cursor: pointer; box-sizing: border-box; font-size: 14px; }
.rd-ctable__act:hover { color: var(--text); }
.rd-clist { padding-bottom: 100px; }
.rd-cmcard { background: var(--surface); border-radius: var(--radius-card); padding: 14px; display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: var(--text); }
.rd-cmcard:hover { color: var(--text); }
.rd-cmcard--late { border: 1px solid var(--danger-bg); }
.rd-cmcard__main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd-cmcard__top { display: flex; align-items: center; gap: 6px; }
.rd-cmcard__name { font-size: 15px; font-weight: 800; }
.rd-cmcard__line { font-size: 12px; color: var(--text-soft); }
.rd-cmcard__line--danger { color: var(--danger-text); font-weight: 700; }
.rd-cmcard__line--ink { color: var(--ink-2); font-weight: 700; }
.rd-cmcard__line--ok { color: var(--emerald-text); font-weight: 700; }
button.rd-lmhead__new { border: 0; font-family: inherit; cursor: pointer; }   /* «مشتری جدید» opens the dialog */

/* ---- «پرونده‌ی مشتری» (admin/customer_detail.html) — boards CustomerProfile, CustomerProfileMobile (Fix Prompt 46 R3) */
.rd-cp { display: flex; flex-direction: column; gap: 20px; }
.rd-cp__alert { margin: 0; border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--emerald-bg); color: var(--emerald-text); }
.rd-cp__alert--bad { background: var(--danger-bg); color: var(--danger-text); }
.rd-cp__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rd-cp__back { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--text); }
.rd-cav--lg { width: 52px; height: 52px; font-size: 17px; }
.rd-cp__who { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }
.rd-cp__line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-cp__line h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-cp__chip { padding: 4px 10px; }
.rd-cp__since { font-size: 13px; color: var(--muted-text); }
.rd-cp__btn { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; display: flex; align-items: center; gap: 8px; font-family: inherit; cursor: pointer; box-sizing: border-box; }
.rd-cp__new, .rd-cp__new:hover { height: 44px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 14px;
  font-weight: 700; display: flex; align-items: center; gap: 8px; text-decoration: none; box-sizing: border-box; }
.rd-menu__item--danger { color: var(--danger-text); }
button.rd-menu__item { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: right; cursor: pointer; }
.rd-cp__sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rd-cp__tile { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px 18px; display: flex;
  flex-direction: column; gap: 4px; }
.rd-cp__k { font-size: 13px; color: var(--muted-text); }
.rd-cp__v { font-size: 19px; font-weight: 800; }
.rd-cp__v--ok { color: var(--emerald-text); }
.rd-cp__s { font-size: 12px; color: var(--text-soft); }
.rd-cp__s--bad { color: var(--danger-text); font-weight: 700; }
.rd-cp__cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.rd-cp__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.rd-cp__aside { flex: 1 1 300px; max-width: 380px; min-width: 280px; display: flex; flex-direction: column; gap: 20px; }
.rd-cp__card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px 20px; display: flex;
  flex-direction: column; }
.rd-cp__card h2 { margin: 0; font-size: 16px; font-weight: 800; }
.rd-cp__inv { gap: 4px; }
.rd-cp__inv h2 { margin-bottom: 8px; }
.rd-cp__irow, .rd-cp__irow:hover { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--text); }
.rd-cp__irow + .rd-cp__irow { border-top: 1px solid var(--border); }
.rd-cp__itile { width: 40px; height: 40px; }
.rd-cp__itxt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-cp__it { font-size: 14px; font-weight: 700; }
.rd-cp__is { font-size: 12px; color: var(--muted-text); }
.rd-cp__score { gap: 10px; }
.rd-cp__shead { display: flex; justify-content: space-between; align-items: center; }
.rd-cp__range { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.rd-cp__from { padding: 3px 9px; border-radius: 999px; background: var(--neutral-tint); color: var(--text-soft); }
.rd-cp__to { padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.rd-cp__to--emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-cp__to--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-cp__to--danger { background: var(--danger-bg); color: var(--danger-text); }
.rd-cp__delta { font-weight: 800; }
.rd-cp__up { color: var(--emerald-text); }
.rd-cp__down { color: var(--danger-text); }
.rd-cp__chart { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.rd-cp__top { fill: var(--emerald-bg); }
.rd-cp__grid { stroke: var(--muted-text); }
.rd-cp__axis { stroke: var(--border); }
.rd-cp__area { fill: var(--emerald); }
.rd-cp__seg { stroke: var(--emerald); }
.rd-cp__seg--down { stroke: var(--danger); }
.rd-cp__dot { fill: var(--surface); stroke: var(--emerald); }
.rd-cp__f--emerald { fill: var(--emerald); }
.rd-cp__f--ink { fill: var(--ink); }
.rd-cp__f--danger { fill: var(--danger); }
.rd-cp__ring { stroke: var(--surface); }
.rd-cp__tag { fill: var(--surface); }
.rd-cp__s--emerald { stroke: var(--emerald); }
.rd-cp__s--ink { stroke: var(--ink); }
.rd-cp__s--danger { stroke: var(--danger); }
.rd-cp__t--emerald-text { fill: var(--emerald-text); }
.rd-cp__t--ink-text, .rd-cp__t--ink-2 { fill: var(--ink-2); }
.rd-cp__t--danger-text { fill: var(--danger-text); }
.rd-cp__t--text-soft { fill: var(--text-soft); }
.rd-cp__t--muted-text { fill: var(--muted-text); }
.rd-cp__note { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-cp__hist { display: flex; flex-direction: column; font-size: 13px; }
.rd-cp__hrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; }
.rd-cp__hrow + .rd-cp__hrow { border-top: 1px solid var(--border); }
.rd-cp__hrow > span { color: var(--text-soft); }
.rd-cp__hrow > b { font-weight: 700; }
.rd-cp__hrow--void > span, .rd-cp__hrow--void > b { opacity: .6; }
.rd-cp__empty { margin: 0; font-size: 13px; color: var(--muted-text); }
.rd-cp__side { padding: 18px; gap: 12px; font-size: 14px; }
.rd-cp__side h2 { font-size: 15px; }
.rd-cp__terms, .rd-cp__pcard { gap: 10px; font-size: 13px; }
.rd-cp__kv { display: flex; justify-content: space-between; gap: 12px; }
.rd-cp__kv > span { color: var(--text-soft); }
.rd-cp__kv > b { font-weight: 700; }
.rd-cp__kv > em { font-style: normal; }
.rd-cp__kv--addr > span { flex: none; }
.rd-cp__kv--addr > em { font-weight: 600; text-align: left; }
.rd-cp__contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rd-cp__contact > a, .rd-cp__contact > a:hover { height: 40px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; gap: 6px; font-size: 13px; text-decoration: none; color: var(--text); box-sizing: content-box; }
.rd-cp__contact--m > a, .rd-cp__contact--m > a:hover { height: 44px; }
.rd-cp__tstate { display: flex; align-items: center; gap: 8px; background: var(--emerald-bg); border-radius: 8px; padding: 10px 12px; color: var(--emerald-text);
  font-weight: 700; }
.rd-cp__tstate--no { background: var(--gold-tint); color: var(--gold-text); }
.rd-cp__tline { color: var(--text-soft); }
.rd-cp__phead { display: flex; flex-direction: column; gap: 2px; }
.rd-cp__phead > span { font-size: 12px; color: var(--muted-text); }
.rd-cp__push { display: flex; flex-direction: column; gap: 10px; }
.rd-cp__prow { display: flex; flex-direction: column; gap: 6px; }
.rd-cp__prow form { margin: 0; }
.rd-cp__psub { font-size: 12px; color: var(--muted-text); }
.rd-cp__ptest { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; cursor: pointer; }
.rd-cp__pmsg { margin: 0; display: flex; gap: 8px; align-items: flex-start; border-radius: 8px; padding: 8px 10px; font-size: 12.5px;
  background: var(--emerald-bg); color: var(--emerald-text); }
.rd-cp__pmsg--bad { background: var(--danger-bg); color: var(--danger-text); }
.rd-cp__pmsg--warn { background: var(--gold-tint); color: var(--gold-text); }
.rd-cp__bar { display: none; }
.rd-mbar--cp { gap: 8px; padding: 0 12px; }
@media (min-width: 1200px) { .rd-cp .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) {
  .rd-cp .rd-desk { display: none !important; }
  .rd-cp { gap: 12px; padding: 14px 16px 110px; }
  .rd-cp__cols, .rd-cp__main, .rd-cp__aside { display: contents; }
  .rd-cp__card { box-shadow: none; padding: 14px 16px; }
  .rd-cp__me { padding: 16px; gap: 12px; }
  .rd-cp__mtop { display: flex; align-items: center; gap: 12px; }
  .rd-cav--m52 { font-size: 16px; }
  .rd-cp__mwho { flex: 1; display: flex; flex-direction: column; gap: 4px; }
  .rd-cp__mname { font-size: 18px; font-weight: 800; }
  .rd-cp__mchips { display: flex; gap: 6px; }
  .rd-cp__xs { font-size: 11px; padding: 2px 8px; }
  .rd-cp__xs8 { font-size: 11px; padding: 3px 8px; }
  .rd-cp__mfacts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; border-top: 1px solid var(--border); padding-top: 10px; }
  .rd-cp__mfacts .rd-cp__kv--addr > span { flex: initial; }
  .rd-cp__mfacts .rd-cp__kv--addr > em { font-weight: 400; text-align: inherit; }
  .rd-cp__sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rd-cp__tile { box-shadow: none; padding: 12px 14px; gap: 2px; }
  .rd-cp__k { font-size: 12px; }
  .rd-cp__v { font-size: 16px; }
  .rd-cp__s { font-size: 11px; }
  .rd-cp__inv { gap: 0; }
  .rd-cp__inv h2 { margin: 0 0 4px; font-size: 15px; }
  .rd-cp__irow { gap: 10px; }
  .rd-cp__itxt { gap: 0; }
  .rd-cp__score { gap: 6px; font-size: 13px; }
  .rd-cp__hist { gap: 6px; }
  .rd-cp__score h2 { font-size: 15px; }
  .rd-cp__range { font-size: 11px; }
  .rd-cp__from, .rd-cp__to { padding: 2px 8px; }
  .rd-cp__terms, .rd-cp__pcard { gap: 8px; }
  .rd-cp__bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); box-shadow: var(--shadow-bar);
    padding: 12px 16px 20px; }
  .rd-cp__barbtn, .rd-cp__barbtn:hover { height: 50px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
}

/* ---- «داشبورد» (admin/dashboard.html) — boards Dashboard, DashboardMobile (Fix Prompt 46 R3) */
.rd-db { display: flex; flex-direction: column; gap: 20px; }
.rd-db__alert { margin: 0; border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--danger-bg); color: var(--danger-text); }
.rd-db__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-db__title { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.rd-db__title h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-db__title > span { font-size: 13px; color: var(--muted-text); }
.rd-db__btn, .rd-db__btn:hover { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; display: flex; align-items: center; gap: 8px; text-decoration: none; box-sizing: content-box; }
.rd-db__btn--main, .rd-db__btn--main:hover { padding: 0 18px; border: 0; background: var(--ink); color: var(--surface); font-weight: 700; }
.rd-db__u { font-size: 12px; font-weight: 500; color: var(--muted-text); }
.rd-db__ok { color: var(--emerald-text); }
.rd-db__bad { color: var(--danger-text); }
/* «کارهای امروز» */
.rd-db__tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rd-db__task, .rd-db__task:hover { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px 18px; display: flex;
  align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.rd-db__task--late { border: 1px solid var(--danger-bg); }
.rd-db__ttile { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.rd-db__ttile > span { display: flex; }
.rd-db__ttile--ink { background: var(--ink-tint); color: var(--ink-2); }
.rd-db__ttile--danger { background: var(--danger-bg); color: var(--danger-text); }
.rd-db__ttile--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-db__ttxt { display: flex; flex-direction: column; gap: 2px; }
.rd-db__tk { font-size: 13px; color: var(--muted-text); }
.rd-db__tk--late { color: var(--danger-text); font-weight: 700; }
.rd-db__tv { font-size: 18px; font-weight: 800; }
.rd-db__ts { font-size: 12px; color: var(--text-soft); }
/* the money row */
.rd-db__money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rd-db__hero { grid-column: span 2; border-radius: var(--radius-card); background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: var(--surface);
  display: flex; overflow: hidden; min-height: 250px; position: relative; }
.rd-db__band { position: absolute; inset: 0; opacity: .14; background-color: var(--ink-2); background-image: url("/static/brand/gp-band-pattern.svg");
  background-size: 40px 40px; background-repeat: repeat; }
.rd-db__hin { flex: 1; min-width: 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.rd-db__hrow { display: flex; align-items: center; gap: 10px; }
.rd-db__htile { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
.rd-db__hname { font-size: 15px; font-weight: 700; flex: 1; }
.rd-db__eye { width: 36px; height: 36px; border-radius: 8px; border: 0; background: rgba(255,255,255,.15); color: var(--surface); display: flex;
  align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rd-db__hmid { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.rd-db__hv { flex: 1 1 auto; font-size: 34px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; }
.rd-db__hu { font-size: 14px; font-weight: 500; }
.rd-db__hg { display: flex; flex-direction: column; align-items: flex-end; }
.rd-db__hp { font-size: 44px; font-weight: 800; line-height: 1; color: var(--gold-2); }
.rd-db__hgl { font-size: 12px; opacity: .85; }
.rd-db__hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-db__hchip { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.rd-db__hbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin-top: auto; }
.rd-db__hbar > div { background: rgba(255,255,255,.85); }
.rd-db__hbar > .rd-db__hbar--gold { background: var(--gold-2); }
.rd-db__hparts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 12px; }
.rd-db__hparts > div { display: flex; flex-direction: column; gap: 2px; }
.rd-db__hk { display: flex; align-items: center; gap: 6px; opacity: .85; }
.rd-db__hk > i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.85); }
.rd-db__hk > i.rd-db__i--gold { background: var(--gold-2); }
.rd-db__hk > i.rd-db__i--dim { background: rgba(255,255,255,.3); }
.rd-db__hparts b { font-size: 14px; font-weight: 700; }
.rd-db__card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column;
  gap: 10px; color: var(--text); }
.rd-db__crow { display: flex; align-items: center; gap: 10px; }
.rd-db__cname { font-size: 14px; font-weight: 700; flex: 1; }
.rd-db__go { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); }
.rd-db__big { font-size: 21px; font-weight: 800; letter-spacing: -0.2px; }
.rd-db__big--ok { color: var(--emerald-text); }
.rd-db__big--bad { color: var(--danger-text); }
.rd-db__sub { font-size: 12px; color: var(--text-soft); }
.rd-db__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.rd-db__fund .rd-db__bar { margin-top: auto; }
.rd-db__seg--ink { background: var(--ink); }
.rd-db__seg--gold { background: var(--gold-2); }
.rd-db__seg--danger { background: var(--danger); }
.rd-db__legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.rd-db__legend > div { display: flex; align-items: center; gap: 6px; }
.rd-db__legend i { width: 8px; height: 8px; border-radius: 2px; }
.rd-db__legend span { color: var(--text-soft); flex: 1; }
.rd-db__legend b { font-weight: 700; }
.rd-db__pp { padding: 3px 8px; }
.rd-db__pbars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; height: 60px; margin-top: auto; }
.rd-db__pbars > div { border-radius: 4px 4px 0 0; }
.rd-db__pb { background: var(--emerald-bg); }
.rd-db__pb--now { background: var(--emerald); }
.rd-db__pb--neg { background: var(--danger-bg); }
.rd-db__pnames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; font-size: 10px; color: var(--muted-text); text-align: center; }
.rd-db__pnow { color: var(--emerald-text); font-weight: 700; }
.rd-db__stores, .rd-db__stores:hover { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.rd-db__stxt { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-soft); }
.rd-db__stxt b { font-size: 14px; color: var(--text); }
.rd-db__sv { color: var(--danger-text); font-size: 16px; }
/* rows of cards */
.rd-db__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.rd-db__trend { flex: 999 1 520px; min-width: 0; padding: 18px 20px; gap: 12px; }
.rd-db__side { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.rd-db__trhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-db__trtitle { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.rd-db__trtitle h2, .rd-db__card h2 { margin: 0; font-size: 16px; font-weight: 800; }
.rd-db__trtitle > span { font-size: 13px; color: var(--text-soft); }
.rd-db__trtitle .rd-db__ok, .rd-db__trtitle .rd-db__bad { font-weight: 700; }
.rd-db__ranges { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; }
.rd-db__range, .rd-db__range:hover { height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text-soft); font-size: 12px; display: flex; align-items: center;
  justify-content: center; text-decoration: none; box-sizing: border-box; }
.rd-db__range--on, .rd-db__range--on:hover { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rd-db__chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.rd-db__chip { padding: 4px 10px; border-radius: 999px; background: var(--neutral-tint); color: var(--text-soft); }
.rd-db__chip b { font-weight: 700; color: var(--text); }
.rd-db__chip--ok { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-db__chip--bad { background: var(--danger-bg); color: var(--danger-text); }
.rd-db__chip--ok b, .rd-db__chip--bad b { color: inherit; }
.rd-dchart { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.rd-dchart--vis { overflow: visible; }
.rd-dchart__hit { cursor: pointer; outline: none; }
.rd-db__note { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-db__h2row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rd-db__coll, .rd-db__od { gap: 12px; }
.rd-db__coll h2, .rd-db__od h2 { font-size: 15px; }
.rd-db__od { flex: 1; gap: 10px; }
.rd-db__pct { font-size: 13px; font-weight: 700; color: var(--emerald-text); }
.rd-db__prog { height: 8px; border-radius: 4px; background: var(--neutral-tint); overflow: hidden; }
.rd-db__prog > div { height: 8px; background: var(--emerald); }
.rd-db__kv, .rd-db__kv:hover { display: flex; justify-content: space-between; font-size: 13px; text-decoration: none; color: var(--text); }
.rd-db__od a.rd-db__kv, .rd-db__od div.rd-db__kv { padding: 4px 0; }
.rd-db__kv > span { color: var(--text-soft); }
.rd-db__kv > b { font-weight: 700; }
.rd-db__odv { font-size: 14px; font-weight: 800; color: var(--danger-text); }
.rd-db__odlist, .rd-db__odlist:hover { margin-top: auto; height: 40px; border-radius: 10px; background: var(--danger-bg); color: var(--danger-text); font-size: 13px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.rd-db__cash { padding: 18px 20px; flex: 7 1 520px; min-width: 0; }
.rd-db__idle { padding: 18px 20px; flex: 5 1 340px; min-width: 0; }
.rd-db__more, .rd-db__more:hover { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.rd-db__sums { display: flex; gap: 8px; }
.rd-db__sums > div { flex: 1; min-width: 0; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rd-db__sums span { font-size: 12px; color: var(--text-soft); }
.rd-db__sums b { font-size: 15px; text-align: right; }
.rd-db__legend2 { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-soft); }
.rd-db__legend2 > span { display: flex; align-items: center; gap: 6px; }
.rd-db__legend2 i { width: 10px; height: 10px; border-radius: 2px; }
.rd-db__l--in { background: var(--emerald); }
.rd-db__l--out { background: var(--danger); }
.rd-db__legend2 i.rd-db__l--net { width: 14px; height: 2px; background: var(--ink); }
.rd-db__iline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rd-db__ibig { font-size: 30px; font-weight: 800; color: var(--danger-text); line-height: 1.2; }
.rd-db__isub { font-size: 12px; color: var(--muted-text); }
.rd-db__ichart { margin-top: auto; }
.rd-db__iend { display: flex; justify-content: flex-end; }
/* «پیگیری امروز» */
.rd-db__fu { flex: 999 1 520px; min-width: 0; padding: 18px 20px; gap: 6px; }
.rd-db__fuhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.rd-db__fuhead h2 { flex: 1; }
.rd-db__fuchip { padding: 3px 10px; }
.rd-db__fuall { font-size: 13px; text-decoration: none; }
.rd-db__fubar { height: 6px; border-radius: 3px; background: var(--neutral-tint); overflow: hidden; margin-bottom: 4px; }
.rd-db__fubar > div { height: 6px; background: var(--emerald); }
.rd-db__furow { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rd-db__furow[hidden] { display: none; }
.rd-db__furow + .rd-db__furow { border-top: 1px solid var(--border); }
.rd-db__furow form { margin: 0; }
.rd-db__fuacts { display: flex; gap: 6px; }
.rd-db__fuw { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-db__fuw > a, .rd-db__fuw > a:hover { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.rd-db__fus { font-size: 12px; }
.rd-db__fus--late { color: var(--danger-text); }
.rd-db__fus--today { color: var(--ink-2); }
.rd-db__fuamt { font-size: 14px; font-weight: 700; }
.rd-db__fubtn, .rd-db__fubtn:hover { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); display: flex;
  align-items: center; justify-content: center; color: var(--text); padding: 0; box-sizing: content-box; cursor: pointer; }
.rd-db__fubtn--soft, .rd-db__fubtn--soft:hover { color: var(--text-soft); }
.rd-db__furow > a.rd-db__fubtn { margin-inline-start: 0; }
.rd-db__fuempty { margin: 0; padding: 12px 0; font-size: 13px; color: var(--muted-text); }
.rd-db__fumore { height: 38px; border-radius: 10px; border: 0; background: var(--ink-tint); color: var(--ink-2); font-size: 13px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; margin-top: 4px; font-family: inherit; cursor: pointer; }
.rd-db__fufoot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.rd-db__fufoot > span { flex: 1; }
.rd-db__pill, .rd-db__pill:hover { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--neutral-tint);
  color: var(--text-soft); font-size: 12px; font-weight: 700; text-decoration: none; }
.rd-db__pill--done, .rd-db__pill--done:hover { background: var(--emerald-bg); color: var(--emerald-text); }
/* the calculators */
.rd-db__calc { flex: 1 1 300px; max-width: 380px; gap: 12px; }
.rd-db__calc h2 { font-size: 15px; }
.rd-db__cl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted-text); margin: 0; flex: 1; font-weight: 400; }
.rd-db__cin { display: flex; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-sizing: content-box; }
.rd-db__cin > input, .rd-db__cin .jdp-display { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px; padding: 0 12px;
  color: var(--text); font-family: inherit; margin: 0; box-shadow: none; width: 100%; }
.rd-db__cin .jdp-wrap { flex: 1; display: flex; height: 100%; }
.rd-db__cres { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.rd-db__cres > span:first-child { font-size: 13px; color: var(--text-soft); }
.rd-db__cres > b { font-size: 18px; font-weight: 800; }
.rd-db__cres > b span { font-size: 13px; font-weight: 500; }
.rd-db__cn { font-size: 12px; color: var(--muted-text); }
.rd-db__sep { height: 1px; background: var(--border); }
.rd-db__target { display: block; }
.rd-db__target > .rd-db__trow { margin-top: 12px; }
.rd-db__target > .rd-db__tres { margin-top: 12px; }
.rd-db__tsum { list-style: none; cursor: default; }
.rd-db__tsum::-webkit-details-marker { display: none; }
.rd-db__trow { display: flex; gap: 8px; }
.rd-db__calcbtn { align-self: flex-end; height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--ink-tint); color: var(--ink-2); font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-db__tres { font-size: 14px; font-weight: 700; }
.rd-db__tres:empty { display: none; }
/* the comparison */
.rd-db__cmp { display: flex; flex-direction: column; gap: 12px; }
.rd-db__cmphead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-db__cmphead .rd-db__trtitle > span { font-size: 12px; color: var(--muted-text); }
.rd-db__rate, .rd-db__rate:hover { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; text-decoration: none; box-sizing: content-box; }
.rd-db__cmpgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rd-db__cbox { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.rd-db__cbox--ok { border-top: 3px solid var(--emerald); }
.rd-db__cbox--bad { border-top: 3px solid var(--danger); }
.rd-db__cv { font-size: 22px; font-weight: 800; }
.rd-db__cbox--ok .rd-db__cv, .rd-db__cbox--ok .rd-db__cd { color: var(--emerald-text); }
.rd-db__cbox--bad .rd-db__cv, .rd-db__cbox--bad .rd-db__cd { color: var(--danger-text); }
.rd-db__cv .rd-db__u { font-size: 13px; }
.rd-db__cd { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.rd-db__cbox--bad .rd-db__cd svg { transform: rotate(180deg); }
.rd-db__cf { font-size: 12px; color: var(--muted-text); border-top: 1px solid var(--border); padding-top: 8px; }
/* the hover card */
.rd-dtip { position: absolute; z-index: 60; min-width: 200px; max-width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; pointer-events: none; }
.rd-dtip[hidden] { display: none; }
.rd-dtip__r { display: flex; justify-content: space-between; gap: 12px; }
.rd-dtip__r > span { color: var(--text-soft); }
.rd-dtip__r > b { font-weight: 700; }
.rd-dtip__r--head > span { color: var(--muted-text); font-weight: 700; }
.rd-dtip__r--big > span { color: var(--text); font-size: 15px; font-weight: 800; }
.rd-dtip__r--bigdown > span { color: var(--danger-text); font-size: 14px; font-weight: 800; }
.rd-dtip__r--up > b { color: var(--emerald-text); }
.rd-dtip__r--down > b { color: var(--danger-text); }
.rd-dtip__r--note > span { color: var(--text-soft); border-top: 1px solid var(--border); padding-top: 4px; flex: 1; }
.rd-dtip__r--head { align-items: baseline; }
.rd-dtip__r--head > b { font-weight: 400; color: var(--text-soft); }
.rd-dtip__r--head-pct { align-items: baseline; }
.rd-dtip__r--head-pct > span { color: var(--muted-text); font-weight: 700; }
.rd-dtip__r--head-pct > b { color: var(--danger-text); font-size: 14px; }
.rd-dtip__r--sep { border-top: 1px solid var(--border); margin: 2px 0; }
.rd-dtip__r--total > span, .rd-dtip__r--total-up > span, .rd-dtip__r--total-down > span { color: var(--text); font-weight: 700; }
.rd-dtip__r--total-up > b { color: var(--emerald-text); }
.rd-dtip__r--total-down > b { color: var(--danger-text); }
.rd-dbm__bar, .rd-dbm__quick, .rd-dbm__tv { display: none; }
@media (min-width: 1200px) { .rd-db .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) {
  .rd-db .rd-desk { display: none !important; }
  .rd-db { gap: 12px; padding: 14px 16px 110px; }
  .rd-dbm__bar { display: flex; background: var(--surface); padding: 12px 16px; align-items: center; gap: 10px; }
  .rd-dbm__when { flex: 1; font-size: 12px; color: var(--muted-text); text-align: left; }
  .rd-dbm__bell, .rd-dbm__bell:hover { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text);
    position: relative; }
  .rd-dbm__dot { position: absolute; top: 9px; left: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); font-size: 0; }
  .rd-dbm__dot[hidden] { display: none; }
  .rd-dbm__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .rd-dbm__q, .rd-dbm__q:hover { height: 64px; border-radius: var(--radius-card); background: var(--surface); color: var(--text); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 700; text-decoration: none; }
  .rd-dbm__q--main, .rd-dbm__q--main:hover { background: var(--ink); color: var(--surface); }
  .rd-db__tasks { display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--radius-card); padding: 4px 14px; }
  .rd-db__task, .rd-db__task:hover { box-shadow: none; border: 0; border-radius: 0; padding: 12px 0; gap: 12px; background: transparent; }
  .rd-db__task + .rd-db__task { border-top: 1px solid var(--border); }
  .rd-db__ttile { width: 36px; height: 36px; }
  .rd-db__ttxt { flex: 1; }
  .rd-dbm__tv { display: block; font-size: 14px; font-weight: 800; }
  .rd-db__money { display: flex; flex-direction: column; gap: 12px; }
  .rd-db__hero { min-height: 0; }
  .rd-db__hin { padding: 18px; gap: 10px; }
  .rd-db__htile { width: 32px; height: 32px; border-radius: 8px; }
  .rd-db__hname { font-size: 14px; }
  .rd-db__hmid { justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
  .rd-db__hv { flex: 0 1 auto; font-size: 24px; letter-spacing: -0.3px; line-height: normal; }
  .rd-db__hu { font-size: 12px; }
  .rd-db__hp { font-size: 30px; }
  .rd-db__hgl { font-size: 11px; }
  .rd-db__hchips { gap: 6px; }
  .rd-db__hbar { margin-top: 4px; }
  .rd-db__hparts { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
  .rd-db__hparts > div { flex-direction: row; justify-content: space-between; gap: 0; }
  .rd-db__hparts b { font-size: inherit; }
  .rd-db__card { box-shadow: none; }
  .rd-dbm__fp { padding: 4px 14px; gap: 0; }
  .rd-dbm__fr, .rd-dbm__fr:hover { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; color: var(--text); text-decoration: none; }
  .rd-dbm__fr > span { color: var(--text-soft); }
  .rd-dbm__fr > b { font-weight: 700; }
  .rd-dbm__fr--head { padding: 12px 0; }
  .rd-dbm__fr--head > b { font-size: 16px; font-weight: 800; }
  .rd-dbm__fr--top { border-top: 1px solid var(--border); }
  .rd-dbm__fk { font-size: 13px; font-weight: 700; color: var(--text); }
  .rd-dbm__fcol { display: flex; flex-direction: column; }
  .rd-dbm__fs { font-size: 11px; color: var(--muted-text); }
  .rd-db__row { flex-direction: column; flex-wrap: nowrap; gap: 12px; }
  .rd-db .rd-db__row > * { flex: none; max-width: none; }
  .rd-db__trend { padding: 14px; gap: 10px; }
  .rd-db__trhead { flex-direction: column; align-items: stretch; gap: 10px; }
  .rd-db__trtitle h2, .rd-db__card h2 { font-size: 15px; }
  .rd-db__trtitle > span { font-size: 12px; }
  .rd-db__ranges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rd-db__range, .rd-db__range:hover { height: 34px; padding: 0; }
  .rd-dbm__nowbox { display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
  .rd-dbm__nowbox > span { color: var(--text-soft); }
  .rd-dbm__nowbox > b { font-weight: 800; }
  .rd-db__cash, .rd-db__idle { padding: 14px 16px; }
  .rd-db__sums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .rd-db__legend2 { gap: 10px; font-size: 11px; }
  .rd-dbm__box { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
  .rd-dbm__box .rd-dtip__r--head > span { font-weight: 700; color: var(--muted-text); }
  .rd-db__ibig { font-size: 26px; }
  .rd-dbm__stack { display: flex; flex-direction: column; gap: 12px; }
  .rd-db__coll, .rd-db__od { padding: 14px; gap: 10px; }
  .rd-db__od a.rd-db__kv, .rd-db__od div.rd-db__kv { padding: 0; }
  .rd-db__fu { padding: 14px; gap: 0; }
  .rd-db__furow { gap: 6px; }
  .rd-db__fubtn, .rd-db__fubtn:hover { width: 44px; height: 44px; }
  .rd-db__fumore { height: 44px; }
  .rd-db__pill, .rd-db__pill:hover { height: 40px; }
  .rd-db__calc { max-width: none; padding: 14px; gap: 10px; }
  .rd-db__cres > b { font-size: 17px; }
  .rd-db__tsum { font-size: 13px; color: var(--ink-2); cursor: pointer; }
  .rd-db__cmp { gap: 10px; }
  .rd-db__cmphead { flex-direction: column; align-items: stretch; gap: 10px; }
  .rd-db__cmphead .rd-db__trtitle { padding: 0 2px; }
  .rd-db__rate, .rd-db__rate:hover { height: 44px; justify-content: center; padding: 0; }
  .rd-db__cmpgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rd-db__cbox { box-shadow: none; padding: 14px; gap: 6px; }
  .rd-db__ctile { width: 32px; height: 32px; border-radius: 8px; }
  .rd-db__ctile svg { width: 16px; height: 16px; }
  .rd-db__cv { font-size: 19px; }
  .rd-db__cv .rd-db__u { font-size: 12px; }
  .rd-db__cf { padding-top: 6px; }
}

/* ---- «پیگیری‌های کنار گذاشته» (admin/_follow_up_panel.html) — board FollowUpPanel */
.rd-fup { width: 420px; height: 720px; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); display: flex; flex-direction: column;
  overflow: hidden; color: var(--text); }
.rd-fup__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; }
.rd-fup__head h2 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }
.rd-fup__x { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--text-soft); display: flex; align-items: center;
  justify-content: center; padding: 0; cursor: pointer; }
.rd-fup__tabs { display: flex; gap: 4px; margin: 0 20px; background: var(--bg); padding: 4px; border-radius: 10px; }
.rd-fup__tab, .rd-fup__tab:hover { flex: 1; height: 36px; border-radius: 8px; color: var(--text-soft); font-size: 13px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; }
.rd-fup__tab--on, .rd-fup__tab--on:hover { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rd-fup__search { display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; }
.rd-fup__search > input[type="text"] { flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px;
  padding: 0 12px; color: var(--text); min-width: 0; margin: 0; box-sizing: content-box; font-family: inherit; }
.rd-fup__order { font-size: 12px; color: var(--muted-text); margin: 10px 20px 0; }
.rd-fup__list { flex: 1; overflow-y: auto; padding: 0 20px; }
.rd-fup__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.rd-fup__row + .rd-fup__row { border-top: 1px solid var(--border); }
.rd-fup__row form { margin: 0; }
.rd-fup__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-fup__who > a, .rd-fup__who > a:hover { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.rd-fup__who > span { font-size: 12px; color: var(--muted-text); }
.rd-fup__amt { font-size: 13px; font-weight: 700; }
.rd-fup__back { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); display: flex;
  align-items: center; justify-content: center; padding: 0; cursor: pointer; box-sizing: content-box; }
.rd-fup__empty { margin: 0; padding: 16px 0; font-size: 13px; color: var(--muted-text); }
.rd-fup__foot { display: flex; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--border); }
.rd-fup__foot form { margin: 0; flex: 1; display: flex; }
.rd-fup__all { flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; box-sizing: content-box; }
.rd-fup__all:disabled { opacity: .5; cursor: default; }
@media (max-width: 600px) {
  .rd-fup__modal:not(.rd-modal--stage) { align-items: flex-end; }
  .rd-fup__modal:not(.rd-modal--stage) .rd-fup { width: 100%; height: 85vh; border-radius: 16px 16px 0 0; }
}
.rd-db > .alert { margin: 0; }
.rd-db__fuacts { align-items: center; }
.rd-cart__pane--empty { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.rd-cart__pane--empty > p { margin: 0; font-size: 14px; color: var(--muted-text); }

/* ---- «صندوق و طلا» (admin/fund.html) — boards Fund, FundMobile, FundRateDialog, FundRateMobile, FundMoveMobile
   (Fix Prompt 46 R4); the hero, cards, ranges and hover card are the dashboard's (rd-db*) */
.rd-fd { display: flex; flex-direction: column; gap: 20px; }
.rd-fd__alert { margin: 0; border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--danger-bg); color: var(--danger-text); }
.rd-fd__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-fd__title { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.rd-fd__title h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-fd__title > span { font-size: 13px; color: var(--muted-text); }
.rd-fd__btn, .rd-fd__btn:hover { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; display: flex; align-items: center; gap: 8px; text-decoration: none; box-sizing: content-box; }
.rd-fd__btn--main, .rd-fd__btn--main:hover { padding: 0 18px; border: 0; background: var(--ink); color: var(--surface); font-weight: 700; }
.rd-fd__u { font-size: 12px; font-weight: 500; color: var(--muted-text); }
.rd-fd__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rd-fd__hero { min-height: 290px; }
.rd-fd__hero .rd-db__hmid { gap: 12px; }
.rd-db__hbar > .rd-fd__seg-gold { background: var(--gold); }
.rd-fd__parts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd-db__hk > i.rd-fd__i--metal { background: var(--gold); }
.rd-fd__stores, .rd-fd__stores:hover { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.2); padding-top: 10px;
  color: var(--surface); font-size: 12px; text-decoration: none; }
.rd-fd__so { opacity: .85; }
.rd-fd__stores b { font-size: 13px; }
.rd-fd__sf { flex: 1; }
.rd-fd__sl { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.rd-fd__fund { grid-column: span 2; padding: 20px 22px; gap: 12px; }
.rd-fd__cname { font-size: 15px; font-weight: 700; flex: 1; }
.rd-fd__fv { display: flex; flex-direction: column; }
.rd-fd__big { font-size: 30px; font-weight: 800; line-height: 1.25; }
.rd-fd__u2 { font-size: 13px; font-weight: 500; color: var(--muted-text); }
.rd-fd__rule { display: flex; align-items: center; gap: 8px; }
.rd-fd__rule > div { flex: 1; min-width: 0; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rd-fd__rule > div > span, .rd-fdm__rule span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); }
.rd-fd__rule i, .rd-fdm__rule i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.rd-fd__rule b { font-size: 16px; font-weight: 800; }
.rd-fd__op { font-size: 18px; font-weight: 800; color: var(--muted-text); flex: none; }
.rd-fd__go, .rd-fd__go:hover { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid var(--border); padding-top: 10px;
  margin-top: auto; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.rd-fd__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rd-fd__metals { gap: 12px; }
.rd-fd__mcells { display: flex; gap: 8px; }
.rd-fd__mcell { flex: 1; min-width: 0; background: var(--neutral-tint); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.rd-fd__mcell--gold { background: var(--gold-tint); }
.rd-fd__mk { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.rd-fd__mcell--gold .rd-fd__mk { color: var(--gold-text); }
.rd-fd__mg { font-size: 24px; font-weight: 800; line-height: 1.2; }
.rd-fd__mu { font-size: 12px; font-weight: 500; color: var(--muted-text); }
.rd-fd__mr { font-size: 12px; color: var(--text-soft); }
.rd-fd__mv { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 2px; font-size: 12px; color: var(--text-soft); display: flex; justify-content: space-between; }
.rd-fd__mv b { color: var(--text); }
.rd-fd__big2 { font-size: 26px; font-weight: 800; line-height: 1.25; }
.rd-fd__big2--ok { color: var(--emerald-text); }
.rd-fd__hint { font-size: 12px; color: var(--text-soft); line-height: 1.7; }
.rd-fd__pen .rd-fd__hint { line-height: inherit; }
.rd-fd__hero .rd-db__hu { font-size: 14px; font-weight: 500; }
.rd-fd__share { display: flex; flex-direction: column; gap: 6px; }
.rd-fd__sbar { background: var(--neutral-tint); gap: 0; }
.rd-fd__share > span { font-size: 12px; color: var(--muted-text); }
.rd-fd__minis { display: flex; gap: 8px; }
.rd-fd__minis > div { flex: 1; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rd-fd__minis span { font-size: 12px; color: var(--muted-text); }
.rd-fd__minis b { font-size: 14px; font-weight: 800; }
.rd-fd__minis b.rd-fd__soft { color: var(--text-soft); }
.rd-fd__growth { padding: 18px 20px; gap: 14px; }
.rd-fd__ghead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-fd__ghead h2 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }
.rd-fd__ghead .rd-db__range { padding: 0 12px; }
.rd-fd__custom { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.rd-fd__custom label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted-text); margin: 0; }
.rd-fd__custom input { height: 36px; border-radius: 8px; border: 1px solid var(--border); padding: 0 8px; font-family: inherit; }
.rd-fd__custom button { height: 36px; padding: 0 12px; border-radius: 8px; border: 0; background: var(--ink-tint); color: var(--ink-2); font-weight: 700;
  font-family: inherit; cursor: pointer; }
.rd-fd__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-fd__chart { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-fd__chart--wide { grid-column: 1 / -1; }
.rd-fd__chead { display: flex; align-items: center; gap: 8px; }
.rd-fd__chead h3 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; }
.rd-fd__cv { font-size: 18px; font-weight: 800; }
.rd-fd__cv--bad { color: var(--danger-text); }
.rd-fd__cs { font-size: 12px; color: var(--muted-text); }
.rd-fd__cv > .rd-fd__cs { font-weight: 500; }
.rd-fd__note { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-fd__forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.rd-fd__move, .rd-fd__income { padding: 18px 20px; gap: 14px; }
.rd-fd__move h2, .rd-fd__ih h2 { margin: 0; font-size: 16px; font-weight: 800; }
.rd-fd__ih { display: flex; flex-direction: column; gap: 4px; }
.rd-fd__ih > span { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-fd__mform, .rd-fd__iform { margin: 0; }
.rd-fd__mbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rd-fd__seg { grid-column: 1 / -1; display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; }
.rd-fd__segopt { flex: 1; margin: 0; position: relative; font-weight: 400; }
.rd-fd__segopt input, .rd-fd__diropt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-fd__segopt span { height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); font-size: 13px; cursor: pointer; }
.rd-fd__segopt input:checked + span { background: var(--surface); color: var(--ink-2); font-weight: 700; }
.rd-fd__segopt--gold input:checked + span { color: var(--gold-text); }
.rd-fd__segopt input:focus-visible + span, .rd-fd__diropt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.rd-fd__dir { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-fd__diropt { margin: 0; position: relative; font-weight: 400; }
.rd-fd__diropt span { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: 13px; display: flex;
  align-items: center; justify-content: center; cursor: pointer; box-sizing: border-box; }
.rd-fd__diropt input:checked + span { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-fd__fl { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted-text); margin: 0; min-width: 0; font-weight: 400; }
.rd-fd__fl--wide { grid-column: 1 / -1; }
.rd-fd__in { display: flex; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-sizing: content-box; }
.rd-fd__in > input, .rd-fd__in .jdp-display { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px; padding: 0 12px; color: var(--text);
  font-family: inherit; margin: 0; box-shadow: none; width: 100%; }
.rd-fd__in .jdp-wrap { flex: 1; display: flex; height: 100%; }
.rd-fd__in:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.rd-fd__in--ro { background: var(--surface-2); }
.rd-fd__malert { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--danger-text);
  background: var(--danger-bg); border-radius: 8px; padding: 8px 10px; }
.rd-fd__malert[hidden] { display: none; }
.rd-fd__mhint { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-fd__mfoot { margin-top: 10px; }
.rd-fd__msubmit { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink-2); font-size: 14px;
  font-weight: 700; font-family: inherit; cursor: pointer; box-sizing: content-box; }
.rd-fd__log { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; }
.rd-fd__logh { display: flex; justify-content: space-between; align-items: center; }
.rd-fd__logh h3 { margin: 0; font-size: 14px; font-weight: 800; }
.rd-fd__logh span { font-size: 12px; color: var(--muted-text); }
.rd-fd__lrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.rd-fd__lrow + .rd-fd__lrow { border-top: 1px solid var(--border); }
.rd-fd__lrow form { margin: 0; }
.rd-fd__lw { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-fd__lw b { font-size: 13px; font-weight: 700; }
.rd-fd__lw > span { font-size: 12px; color: var(--muted-text); }
.rd-fd__lg { font-weight: 700; }
.rd-fd__lg--in { color: var(--emerald-text); }
.rd-fd__lg--out { color: var(--danger-text); }
.rd-fd__del { width: 36px; height: 36px; flex: none; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--danger-text); display: flex;
  align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.rd-fd__all, .rd-fd__all:hover { font-size: 13px; text-decoration: none; padding-top: 6px; }
.rd-fd__empty { margin: 0; padding: 10px 0; font-size: 13px; color: var(--muted-text); }
.rd-fd__shead { align-items: flex-start; }
.rd-fd__shead > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-fd__shead > div > span { font-size: 12px; color: var(--muted-text); }
.rd-fd__after { grid-column: 1 / -1; display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.rd-fd__after > span { color: var(--text-soft); }
.rd-fd__after b { font-weight: 800; }
.rd-fd__sfoot .rd-btn--primary { width: 100%; }
.rd-fdm__bar, .rd-fdm__acts, .rd-fdm__cap { display: none; }
/* the rate dialog (boards FundRateDialog, FundRateMobile) */
.rd-fr__dlg { width: 520px; }
.rd-fr__head { align-items: flex-start; }
.rd-fr__head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-fr__head > div > span { font-size: 13px; color: var(--muted-text); }
.rd-fr__body { gap: 12px; }
.rd-fr__lead { margin: 0; font-size: 13px; color: var(--text-soft); line-height: 1.8; }
.rd-fr__k { font-size: 12px; color: var(--muted-text); }
.rd-fr__last { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rd-fr__last > div { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.rd-fr__last span { font-size: 12px; color: var(--muted-text); }
.rd-fr__last b { font-size: 14px; font-weight: 800; }
.rd-fr__fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; margin: 0; color: var(--text); }
.rd-fr__help { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-fr__save { flex: 1; }
@media (min-width: 1200px) { .rd-fd .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) {
  .rd-fd .rd-desk { display: none !important; }
  .rd-fd { gap: 12px; padding: 14px 16px 110px; }
  .rd-fdm__bar { display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 12px 16px; }
  .rd-fdm__bar h1 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
  .rd-fdm__rate, .rd-fdm__rate:hover { height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 6px; text-decoration: none; }
  .rd-fd__top, .rd-fd__three, .rd-fd__forms, .rd-fd__grid { display: flex; flex-direction: column; gap: 12px; }
  .rd-fd__hero { min-height: 0; }
  .rd-fd__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-fd__fund { padding: 16px; }
  .rd-fd__big { font-size: 24px; }
  .rd-fdm__rule { display: flex; flex-direction: column; gap: 6px; }
  .rd-fdm__rule > div { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
  .rd-fdm__rule b { font-size: 14px; font-weight: 800; }
  .rd-fd__growth { padding: 14px; gap: 10px; }
  .rd-fd__ghead { flex-direction: column; align-items: stretch; }
  .rd-fd__ghead .rd-db__ranges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rd-fdm__chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
  .rd-fdm__chip, .rd-fdm__chip:hover { flex: none; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-soft); font-size: 12px; display: flex; align-items: center; text-decoration: none; }
  .rd-fdm__chip--on, .rd-fdm__chip--on:hover { background: var(--text); border-color: var(--text); color: var(--surface); font-weight: 700; }
  .rd-fdm__one { display: flex; flex-direction: column; gap: 6px; }
  .rd-fdm__cv { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .rd-fdm__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rd-fdm__act, .rd-fdm__act:hover { height: 48px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-size: 14px;
    font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
  .rd-fd__move, .rd-fd__income { padding: 14px; gap: 0; }
  .rd-fd__log { border-top: 0; padding-top: 0; }
  .rd-fdm__cap, .rd-fdm__cap:hover { display: flex; flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 14px; }
  .rd-fdm__capt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .rd-fdm__capt b { font-size: 14px; }
  .rd-fdm__capt span { font-size: 12px; color: var(--muted-text); }
}
@media (max-width: 600px) {
  .rd-fd__sheet .rd-fd__mbody { grid-template-columns: minmax(0, 1fr); }
  .rd-fr__dlg { width: auto; }
}
@media (max-width: 1199.98px) {
  .rd-fd__forms { align-items: stretch; }
  .rd-fd__hero .rd-db__hin { padding: 16px; gap: 12px; }
  .rd-fd__hero .rd-db__hmid { flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: flex-start; }
  .rd-fd__hero .rd-db__hv { flex: 1 1 auto; font-size: 28px; line-height: 1.2; }
  .rd-fd__hero .rd-db__hp { font-size: 34px; }
  .rd-fd .rd-fd__parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; font-size: 12px; }
  .rd-fd .rd-fd__parts > div { flex-direction: column; justify-content: flex-start; gap: 2px; }
  .rd-fd .rd-fd__parts b { font-size: 14px; }
}
/* the fund's hover card / phone box: the day and its amount on one row (boards Fund, FundMobile) */
.rd-dtip__r--head-t, .rd-dtip__r--head-g { align-items: baseline; }
.rd-dtip__r--head-t > span, .rd-dtip__r--head-g > span { color: var(--muted-text); font-weight: 700; }
.rd-dtip__r--head-t > b, .rd-dtip__r--head-g > b { font-size: 15px; font-weight: 800; color: var(--text); }
.rd-dtip__r--head-t > b::after, .rd-dtip__r--head-g > b::after { content: "تومان"; font-size: 11px; font-weight: 500; color: var(--muted-text); }
.rd-dtip__r--head-g > b::after { content: "گرم"; }
@media (max-width: 1199.98px) {
  .rd-fdm__box { margin-top: 0; }
  .rd-fdm__box [data-tip-rows] { display: flex; flex-direction: column; gap: 4px; }
  .rd-fdm__start { margin-top: -6px; }
  .rd-fdm__cv > .rd-fd__cv { flex: 1; }
}
@media (max-width: 1199.98px) {
  .rd-fdm__bar { height: 60px; padding: 0 16px; box-sizing: border-box; gap: 8px; }
  .rd-fd__hero .rd-db__htile { width: 36px; height: 36px; border-radius: 10px; }
  .rd-fd__hero .rd-db__hname { font-size: 15px; }
  .rd-fd__hero .rd-db__eye { width: 40px; height: 40px; }
  .rd-fd__hero .rd-db__hu { font-size: 14px; }
  .rd-fd__hero .rd-db__hv { letter-spacing: 0; }
  .rd-fd__hero .rd-db__hp { line-height: 1; }
  .rd-fd__hero .rd-db__hgl { font-size: 12px; }
  .rd-fd__hero .rd-db__hbar { margin-top: auto; }
}
@media (max-width: 1199.98px) {
  .rd-fd .rd-fd__fund, .rd-fd .rd-fd__metals { padding: 14px 16px; gap: 12px; box-shadow: var(--shadow); }
  .rd-fd .rd-fd__rec, .rd-fd .rd-fd__pen { padding: 14px 16px; gap: 10px; box-shadow: var(--shadow); }
  .rd-fd .rd-fd__growth, .rd-fd .rd-fd__move, .rd-fd .rd-fd__income { padding: 14px 16px; }
  .rd-fd__logh { margin-bottom: 4px; }
  .rd-fd__logh h3 { font-size: 15px; }
}
@media (max-width: 1199.98px) {
  .rd-fd__mcell { padding: 10px; }
  .rd-fd__mg { font-size: 20px; }
  .rd-fd__big2 { font-size: 22px; }
}
@media (max-width: 1199.98px) {
  .rd-fd__ghead h2 { font-size: 15px; }
  .rd-fd .rd-fd__ghead .rd-db__ranges { display: flex; gap: 4px; padding: 4px; border-radius: 10px; overflow-x: auto; }
  .rd-fd .rd-fd__ghead .rd-db__range { flex: none; height: 34px; padding: 0 12px; font-size: 12px; box-sizing: border-box; }
  .rd-fdm__chip, .rd-fdm__chip:hover { box-sizing: border-box; }
  .rd-fdm__chip--on, .rd-fdm__chip--on:hover { border: 0; }
  .rd-fdm__one { gap: 10px; }
}
@media (max-width: 1199.98px) {
  .rd-fdm__acts { gap: 10px; }
  .rd-fdm__act, .rd-fdm__act:hover { box-sizing: border-box; font-size: 13px; gap: 6px; }
  .rd-fd__lg { font-size: 13px; }
  .rd-fd__del { width: 40px; height: 40px; }
  .rd-fd__lrow:has(.rd-fd__del) { gap: 8px; }
}
@media (max-width: 1199.98px) {
  .rd-fdm__cap, .rd-fdm__cap:hover { padding: 12px 14px; gap: 10px; }
}
@media (max-width: 1199.98px) {
  .rd-fdm__capt { gap: 0; }
}
.rd-fr__ts { display: none; }
@media (max-width: 600px) { .rd-fr__tl { display: none; } .rd-fr__ts { display: inline; } }
/* the phone's sheets (board FundMoveMobile): the form is the sheet's body and foot */
.rd-fd__sheet form { display: contents; }
@media (max-width: 600px) {
  .rd-fd__sheet .rd-fd__mbody { gap: 12px; align-content: start; }
  .rd-fd__sheet .rd-fd__seg span { height: 40px; font-size: 14px; }
  .rd-fd__sheet .rd-fd__diropt span { height: 44px; font-size: 14px; }
  .rd-fd__sheet .rd-fd__fl { gap: 6px; font-size: 13px; font-weight: 700; color: var(--text); }
  .rd-fd__sheet .rd-fd__in { height: 48px; }
  .rd-fd__sheet .rd-fd__in > input, .rd-fd__sheet .rd-fd__in .jdp-display { font-size: 15px; }
  .rd-fd__sheet .rd-fd__mhint { margin-top: -6px; line-height: normal; }
  .rd-fd__sheet .rd-fd__after { border-radius: 10px; }
  .rd-fd__sheet .rd-fd__msubmit, .rd-fd__sheet .rd-dialog__foot .rd-btn--primary { font-size: 15px; }
}
/* the rate dialog's measures (boards FundRateDialog, FundRateMobile) */
.rd-fr__head > div { gap: 2px; }
.rd-fr__head { gap: 10px; }
.rd-fr__body { gap: 14px; }
.rd-fr__lastw { display: flex; flex-direction: column; gap: 6px; }
.rd-fr__last > div { padding: 8px 10px; }
.rd-fr__last span { font-size: 11px; }
.rd-fr__last b { font-size: 13px; }
.rd-fr__in { height: 44px; }
.rd-fr__in > input, .rd-fr__in .jdp-display { font-size: 15px; }
.rd-fr__fl { gap: 6px; }
.rd-fr__foot .rd-btn { height: 46px; font-size: 15px; }
.rd-fr__foot .rd-dialog__cancel { padding: 0 18px; font-size: 14px; font-weight: 400; }
@media (max-width: 600px) {
  .rd-fr__head > div { gap: 0; }
  .rd-fr__head > div > span { font-size: 12px; }
  .rd-fr__body { gap: 12px; }
  .rd-fr__in { height: 48px; }
  .rd-fr__foot .rd-btn--primary { height: 50px; }
}
@media (max-width: 600px) { .rd-fd__shead > div { gap: 0; } }
@media (max-width: 600px) { .rd-fd__sheet .rd-dialog__foot .rd-btn--primary { font-weight: 700; } }

/* ---- «حساب شرکا» (admin/partner_capital.html) — boards Partners, PartnersMobile, PartnerDepositDialog(+Mobile),
   PartnerExpenseMobile (Fix Prompt 46 R4.2); charts, ranges and the hover card are the dashboard's (rd-db*) */
.rd-pt { display: flex; flex-direction: column; gap: 20px; }
.rd-pt h2, .rd-pt h3 { margin: 0; }
.rd-pt__alert { margin: 0; border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--danger-bg); color: var(--danger-text); }
.rd-pt__u { font-size: 11px; font-weight: 500; color: var(--muted-text); }
.rd-pt__up { color: var(--emerald-text); }
.rd-pt__down { color: var(--danger-text); }
.rd-pt__b { font-weight: 700; }
.rd-pt__note { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-pt__empty { margin: 0; padding: 10px 0; font-size: 13px; color: var(--muted-text); }
.rd-pt__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-pt__title { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.rd-pt__title h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-pt__title > span { font-size: 13px; color: var(--muted-text); }
.rd-pt__btn, .rd-pt__btn:hover { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 700; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-sizing: border-box; cursor: pointer; }
.rd-pt__btn--out, .rd-pt__btn--out:hover { border: 0; background: var(--danger-bg); color: var(--danger-text); }
.rd-pt__btn--in, .rd-pt__btn--in:hover { border: 0; background: var(--ink); color: var(--surface); }
.rd-pt__cp { margin: 0; }
.rd-pt__top { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.rd-pt__hero { grid-column: span 3; border-radius: var(--radius-card); background: linear-gradient(150deg, var(--gold), var(--gold-2)); color: var(--surface);
  overflow: hidden; position: relative; display: flex; flex-direction: column; }
.rd-pt__hero .rd-db__band { opacity: .12; }
.rd-pt__hin { position: relative; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.rd-pt__hrow { display: flex; align-items: center; gap: 10px; }
.rd-pt__htile { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.rd-pt__hname { font-size: 15px; font-weight: 700; flex: 1; }
.rd-pt__hchip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.25); }
.rd-pt__hmid { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rd-pt__hv { flex: 1 1 auto; font-size: 34px; font-weight: 800; line-height: 1.2; }
.rd-pt__hu { font-size: 14px; font-weight: 500; }
.rd-pt__hg { display: flex; flex-direction: column; align-items: flex-end; }
.rd-pt__hp { font-size: 44px; font-weight: 800; line-height: 1; }
.rd-pt__hgl { font-size: 12px; opacity: .9; }
.rd-pt__htiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.rd-pt__htiles > div { background: rgba(255,255,255,.18); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rd-pt__htiles span { font-size: 12px; opacity: .9; }
.rd-pt__htiles b { font-size: 16px; font-weight: 800; }
.rd-pt__htiles .rd-pt__hsub { opacity: .85; }
.rd-pt__sharecol { grid-column: span 2; display: flex; }
.rd-pt__shares { flex: 1; padding: 20px 22px; gap: 12px; }
.rd-pt__shares h2 { font-size: 15px; font-weight: 800; flex: 1; }
.rd-pt__sk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-pt__sk > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rd-pt__sk span { font-size: 12px; color: var(--muted-text); }
.rd-pt__sk b { font-size: 20px; font-weight: 800; }
.rd-pt__sk b .rd-pt__u { font-size: 11px; }
.rd-pt__sk > .rd-pt__sk--me { background: var(--ink-tint); }
.rd-pt__sk > .rd-pt__sk--me > span { color: var(--ink-2); }
.rd-pt__split, .rd-pt__xsplit { display: flex; flex-direction: column; gap: 6px; }
.rd-pt__splith { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.rd-pt__t--ink { color: var(--ink-2); }
.rd-pt__t--gold { color: var(--gold-text); }
.rd-pt__sbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.rd-pt__sbar--thin { height: 8px; border-radius: 4px; }
.rd-pt__seg--ink { background: var(--ink); }
.rd-pt__seg--gold { background: var(--gold-2); }
.rd-pt__splitv { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-soft); }
.rd-pt__ppl { display: flex; gap: 8px; }
.rd-pt__pp { flex: 1; min-width: 0; border-radius: 10px; background: var(--surface-2); border-top: 3px solid var(--ink); padding: 10px 12px; display: flex;
  flex-direction: column; gap: 3px; }
.rd-pt__pp--gold { border-top-color: var(--gold-2); }
.rd-pt__pph { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rd-pt__pp--gold .rd-pt__pph { color: var(--gold-text); }
.rd-pt__pph > span:last-child { flex: 1; }
.rd-pt__av { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--ink-tint); color: var(--ink-2); font-size: 12px; font-weight: 800; display: flex;
  align-items: center; justify-content: center; }
.rd-pt__pp--gold .rd-pt__av, .rd-pt__sc--gold .rd-pt__av { background: var(--gold-tint); color: var(--gold-text); }
.rd-pt__av--lg { width: 36px; height: 36px; font-size: 16px; }
.rd-pt__kv { font-size: 12px; color: var(--muted-text); display: flex; justify-content: space-between; }
.rd-pt__kv b { color: var(--text); }
.rd-pt__kv b.rd-pt__up { color: var(--emerald-text); }
.rd-pt__kv b.rd-pt__down { color: var(--danger-text); }
.rd-pt__tot { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted-text); border-top: 1px solid var(--border); padding-top: 8px; }
.rd-pt__tot > span { display: flex; justify-content: space-between; }
.rd-pt__tot b { color: var(--text); }
.rd-pt__tot b.rd-pt__up { color: var(--emerald-text); }
.rd-pt__tot b.rd-pt__down { color: var(--danger-text); }
.rd-pt__chart, .rd-pt__months { padding: 18px 20px; gap: 12px; }
.rd-pt__months { gap: 10px; }
.rd-pt__chead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-pt__chead h2 { font-size: 16px; font-weight: 800; flex: 1; }
.rd-pt__ranges .rd-db__range { height: 32px; padding: 0 12px; border: 0; font-family: inherit; cursor: pointer; background: transparent; box-sizing: border-box; }
.rd-pt__ranges .rd-db__range--on, .rd-pt__ranges .rd-db__range--on:hover { background: var(--surface); color: var(--gold-text); }
.rd-pt__legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text-soft); }
.rd-pt__legend > span { display: flex; align-items: center; gap: 6px; }
.rd-pt__legend i { width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--ink); background: var(--surface); }
.rd-pt__legend i.rd-pt__k--in { background: var(--emerald); border-color: var(--emerald); }
.rd-pt__legend i.rd-pt__k--out { background: var(--danger); border-color: var(--danger); }
.rd-pt__legend i.rd-pt__k--man { background: var(--gold); border-color: var(--gold); }
.rd-pt__legend i.rd-pt__k--now { border-color: var(--gold); }
.rd-pt__legend i.rd-pt__k--ink { background: var(--ink); }
.rd-pt__legend i.rd-pt__k--gold { background: var(--gold-2); border-color: var(--gold-2); }
.rd-pt__lr { margin-inline-start: auto; color: var(--muted-text); }
.rd-pt__mt { width: 100%; border-collapse: collapse; font-size: 13px; }
.rd-pt__mt th { color: var(--muted-text); font-size: 12px; font-weight: 500; padding: 8px 0; text-align: end; }
.rd-pt__mt th:first-child, .rd-pt__mt td:first-child { text-align: start; }
.rd-pt__mt td { padding: 9px 0; text-align: end; border-top: 1px solid var(--border); }
.rd-pt__tag { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--ink-tint); color: var(--ink-2); }
.rd-pt__mcards { list-style: none; margin: 0; padding: 0; }
.rd-pt__cmp { gap: 12px; }
.rd-pt__scheme { display: flex; flex-direction: column; gap: 12px; }
.rd-pt__scheme > h2 { font-size: 18px; font-weight: 800; }
.rd-pt__sgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.rd-pt__sc { padding: 18px 20px; gap: 4px; border-top: 4px solid var(--ink); }
.rd-pt__sc--gold { border-top-color: var(--gold-2); }
.rd-pt__sch { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rd-pt__sch h3 { font-size: 16px; font-weight: 800; flex: 1; color: var(--ink-2); }
.rd-pt__sc--gold .rd-pt__sch h3 { color: var(--gold-text); }
.rd-pt__scl { font-size: 12px; color: var(--muted-text); }
.rd-pt__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.rd-pt__row > span { color: var(--text-soft); }
.rd-pt__row small { display: block; font-size: 11px; color: var(--muted-text); }
.rd-pt__row > b { color: var(--text); white-space: nowrap; }
.rd-pt__row > b.rd-pt__up { color: var(--emerald-text); }
.rd-pt__row > b.rd-pt__down { color: var(--danger-text); }
.rd-pt__inc { margin-top: 12px; }
.rd-pt__inc summary { font-size: 13px; font-weight: 800; list-style: none; cursor: default; pointer-events: none; }
.rd-pt__inc summary::-webkit-details-marker { display: none; }
.rd-pt__inc table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rd-pt__inc th { color: var(--muted-text); font-size: 12px; font-weight: 500; text-align: end; }
.rd-pt__inc th:first-child { text-align: start; padding: 6px 0; }
.rd-pt__inc td { text-align: end; border-top: 1px solid var(--border); }
.rd-pt__inc td:first-child { padding: 7px 0; color: var(--text-soft); text-align: start; }
.rd-pt__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.rd-pt__pair--one { grid-template-columns: minmax(0, 1fr); }
.rd-pt__idle, .rd-pt__exp { padding: 18px 20px; gap: 12px; }
.rd-pt__idle h2, .rd-pt__exp h2 { font-size: 15px; font-weight: 800; flex: 1; }
.rd-pt__ib { flex: 1; min-width: 0; border-radius: 10px; background: var(--surface-2); border-top: 3px solid var(--ink); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.rd-pt__ib.rd-pt__pp--gold { border-top-color: var(--gold-2); }
.rd-pt__ibn { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.rd-pt__pp--gold .rd-pt__ibn { color: var(--gold-text); }
.rd-pt__ibv { display: flex; align-items: baseline; gap: 6px; }
.rd-pt__ibv b { font-size: 22px; color: var(--danger-text); line-height: 1.1; }
.rd-pt__ibv span { font-size: 12px; color: var(--text-soft); }
.rd-pt__ibs { font-size: 12px; color: var(--muted-text); }
.rd-pt__ibs b { color: var(--text); }
.rd-pt__idh { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted-text); }
.rd-pt__scroll { flex: 1 1 0; min-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.rd-pt__it { width: 100%; border-collapse: collapse; font-size: 13px; }
.rd-pt__it th { position: sticky; top: 0; background: var(--surface); color: var(--muted-text); font-size: 12px; font-weight: 500; text-align: end; padding: 8px 0; }
.rd-pt__it th:first-child, .rd-pt__it td:first-child { text-align: start; padding: 8px 10px; }
.rd-pt__it th:last-child, .rd-pt__it td:last-child { padding-inline-end: 10px; }
.rd-pt__it td { padding: 8px 0; text-align: end; border-top: 1px solid var(--border); }
.rd-pt__it tr.rd-pt__ig td { background: var(--surface-2); font-weight: 800; color: var(--danger-text); border-top: 0; }
.rd-pt__it tr.rd-pt__ig td:first-child { color: var(--text); }
.rd-pt__xf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin: 0; }
.rd-pt__xfb { display: contents; }
.rd-pt__xft { grid-column: 1 / -1; font-size: 14px; font-weight: 800; }
.rd-pt__xd, .rd-pt__xsplit, .rd-pt__xnote, .rd-pt__xff { grid-column: 1 / -1; }
.rd-pt__xf .rd-fd__in select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 14px; padding: 0 10px; color: var(--text); font-family: inherit; }
.rd-pt__xsplit > span:first-child { font-size: 13px; color: var(--text-soft); }
.rd-pt__xnote { margin: 0; font-size: 12px; color: var(--muted-text); line-height: 1.8; display: flex; gap: 10px; align-items: center; }
.rd-pt__xsub { width: 100%; height: 44px; font-size: 14px; font-weight: 700; }
.rd-pt__xlist { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.rd-pt__xh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 0 2px; }
.rd-pt__xh > span { font-size: 14px; font-weight: 800; flex: 1; white-space: nowrap; }
.rd-pt__fchip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: 12px;
  font-family: inherit; cursor: pointer; box-sizing: border-box; }
.rd-pt__fchip--on { border: 0; background: var(--text); color: var(--surface); font-weight: 700; }
.rd-pt__xk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 12px; }
.rd-pt__xk > div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.rd-pt__xk span { color: var(--muted-text); }
.rd-pt__xk b { font-size: 14px; }
.rd-pt__xk > .rd-pt__xk--ok { background: var(--emerald-bg); }
.rd-pt__xk > .rd-pt__xk--ok span { color: var(--emerald-text); }
.rd-pt__xg { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--surface-2); border-top: 1px solid var(--border); font-size: 13px; }
.rd-pt__xg > b:first-child { flex: 1; }
.rd-pt__xg > span { color: var(--muted-text); }
.rd-pt__xr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--border); }
.rd-pt__xr[hidden] { display: none; }
.rd-pt__xr--undone { opacity: .6; }
.rd-pt__xr form { margin: 0; }
.rd-pt__xw { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-pt__xw > span:first-child { font-size: 13px; font-weight: 700; }
.rd-pt__xw > span { font-size: 12px; color: var(--muted-text); }
.rd-pt__xw > .rd-pt__xo { color: var(--gold-text); }
.rd-pt__xr > b { font-size: 14px; }
.rd-pt__undo { width: 36px; height: 36px; flex: none; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); display: flex;
  align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.rd-pt__showu { display: flex; align-items: center; gap: 6px; color: var(--text-soft); font-size: 12px; margin: 0; font-weight: 400; }
.rd-pt__showu input { width: 16px; height: 16px; margin: 0; }
.rd-pt__start { margin: 0; }
.rd-pt__start a { font-weight: 700; color: var(--ink-2); }
.rd-pt__hist { padding: 18px 20px; gap: 0; }
.rd-pt__hh { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.rd-pt__hh h2 { font-size: 16px; font-weight: 800; flex: 1; }
.rd-pt__hh a { font-size: 13px; text-decoration: none; }
.rd-pt__hr { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rd-pt__hr + .rd-pt__hr { border-top: 1px solid var(--border); }
.rd-pt__hi { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--neutral-tint); color: var(--text-soft); display: flex; align-items: center; justify-content: center; }
.rd-pt__hw { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rd-pt__hw > span:first-child { font-size: 13px; font-weight: 700; }
.rd-pt__hw > span { font-size: 12px; color: var(--muted-text); }
.rd-pt__hr > b { font-size: 14px; color: var(--text); }
.rd-pt__hr > b.rd-pt__down { color: var(--danger-text); }
.rd-pt__hr > b.rd-pt__up { color: var(--emerald-text); }
.rd-pt__checks { padding: 14px 18px; gap: 0; display: block; }
.rd-pt__checks summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; list-style: none; padding-bottom: 6px; }
.rd-pt__checks summary::-webkit-details-marker { display: none; }
.rd-pt__checks summary > span:first-child { display: flex; }
.rd-pt__cs { flex: 1; }
.rd-pt__cn { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-pt__chev { color: var(--text-soft); display: flex; }
.rd-pt__checks[open] .rd-pt__chev { transform: rotate(180deg); }
.rd-pt__checks ul { list-style: none; margin: 0; padding: 0; }
.rd-pt__checks li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.rd-pt__checks li > span:first-child { display: flex; margin-top: 1px; }
.rd-pt__cw { display: flex; flex-direction: column; gap: 2px; }
.rd-pt__cw > span:first-child { font-size: 13px; font-weight: 700; }
.rd-pt__cw > span { font-size: 12px; color: var(--muted-text); }
.rd-pt__checks > .rd-pt__note { display: block; padding-top: 8px; }
.rd-ptm__bar, .rd-ptm__acts { display: none; }
/* the deposit / withdraw dialog (boards PartnerDepositDialog, PartnerDepositMobile) */
.rd-pd__dlg { width: 560px; }
.rd-pd__body { gap: 14px; }
.rd-pd__info { margin: 0; display: flex; align-items: center; gap: 10px; background: var(--gold-tint); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--gold-text); }
.rd-pd__opts { display: flex; flex-direction: column; gap: 8px; }
.rd-pd__opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  margin: 0; font-weight: 400; color: var(--text); }
.rd-pd__opt:has(input:checked) { border-color: var(--ink); background: var(--ink-tint); }
.rd-pd__opt input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.rd-pd__opt > span { display: flex; flex-direction: column; gap: 2px; }
.rd-pd__opt b { font-size: 14px; font-weight: 700; }
.rd-pd__opt b + span { font-size: 12px; color: var(--text-soft); }
.rd-pd__amt { height: 48px; border-color: var(--ink); }
.rd-pd__amt > input { font-size: 18px; font-weight: 800; }
.rd-pd__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-pd__split > div { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rd-pd__sd { background: var(--danger-bg); }
.rd-pd__sd span { font-size: 12px; color: var(--danger-text); }
.rd-pd__sc { background: var(--emerald-bg); }
.rd-pd__sc span { font-size: 12px; color: var(--emerald-text); }
.rd-pd__split b { font-size: 15px; }
.rd-pd__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-pd__note { font-size: 12px; color: var(--muted-text); line-height: 1.8; }
.rd-pd .rd-btn--danger { background: var(--danger); color: var(--surface); border: 0; flex: 1; font-size: 15px; font-weight: 800; }
@media (min-width: 1200px) { .rd-pt .rd-mob { display: none !important; } }
@media (max-width: 1199.98px) {
  .rd-pt .rd-desk { display: none !important; }
  .rd-pt { gap: 12px; padding: 14px 16px 180px; }
  .rd-ptm__bar { display: flex; align-items: center; gap: 8px; background: var(--surface); height: 56px; padding: 0 8px 0 16px; box-sizing: border-box; }
  .rd-ptm__bar h1 { margin: 0; font-size: 18px; font-weight: 800; flex: 1; }
  .rd-ptm__back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text); }
  .rd-pt__head { display: none; }
  .rd-pt__top, .rd-pt__sgrid, .rd-pt__pair { display: flex; flex-direction: column; gap: 12px; }
  .rd-pt__hin { padding: 16px; gap: 12px; }
  .rd-pt__hv { font-size: 28px; }
  .rd-pt__hp { font-size: 34px; }
  .rd-pt__htiles { gap: 6px; }
  .rd-pt__htiles > div { padding: 8px 10px; }
  .rd-pt__htiles b { font-size: 14px; }
  .rd-pt__shares, .rd-pt__chart, .rd-pt__months, .rd-pt__sc, .rd-pt__idle, .rd-pt__exp, .rd-pt__hist { padding: 14px 16px; }
  .rd-pt__sk b { font-size: 16px; }
  .rd-pt__ppl { flex-direction: column; }
  .rd-pt__chead { gap: 8px; }
  .rd-pt__chead .rd-pt__ranges { width: 100%; }
  .rd-pt__chead .rd-pt__ranges .rd-db__range { flex: 1; justify-content: center; padding: 0 6px; }
  .rd-pt__mcards li { border-top: 1px solid var(--border); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
  .rd-pt__mcards li[hidden] { display: none; }
  .rd-pt__mch { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
  .rd-pt__mch > span { font-weight: 700; }
  .rd-pt__mcards dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; font-size: 12px; }
  .rd-pt__mcards dt { color: var(--muted-text); }
  .rd-pt__mcards dd { margin: 0; font-weight: 700; }
  .rd-pt__all { border: 0; background: transparent; color: var(--ink-2); font-size: 13px; font-family: inherit; padding: 6px 0; text-align: start; cursor: pointer; }
  .rd-pt__inc { margin-top: 8px; }
  .rd-pt__inc summary { pointer-events: auto; cursor: pointer; }
  .rd-pt__xk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd-pt__scroll { min-height: 0; max-height: 360px; }
  .rd-ptm__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 76px; z-index: 30;
    padding: 10px 16px; background: var(--surface); box-shadow: var(--shadow-bar); }
  .rd-ptm__acts .rd-pt__btn { height: 48px; }
}
@media (max-width: 600px) {
  .rd-pd__dlg { width: auto; }
  .rd-pd__grid { grid-template-columns: minmax(0, 1fr); }
  .rd-pt__xf--sheet .rd-pt__xfb { display: flex; }
  .rd-pt__xseg { display: flex; gap: 6px; }
  .rd-pt__xseg label { flex: 1; margin: 0; position: relative; }
  .rd-pt__xseg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .rd-pt__xseg span { height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); font-size: 14px; font-weight: 400;
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer; }
  .rd-pt__xseg input:checked + span { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
  .rd-pt__xseg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
  .rd-pt__xf--sheet .rd-pt__xa .rd-fd__in { height: 52px; border-color: var(--ink); }
  .rd-pt__xf--sheet .rd-pt__xa input { font-size: 18px; font-weight: 800; }
  .rd-pt__xf--sheet .rd-pt__xnote { background: var(--gold-tint); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--gold-text); line-height: 1.7; }
}
.rd-pt__scope { display: flex; flex-direction: column; gap: 10px; }
.rd-pt__scope[hidden] { display: none; }
.rd-pt__inc table { margin-top: 4px; }
.rd-pt__showu input { margin: 3px 0; }
.rd-pt__hw > span:first-child, .rd-pt__xw > span:first-child, .rd-pt__cw > span:first-child { color: var(--text); font-size: 13px; }
.rd-pt__showu input { margin: 3px 3px 3px 4px; }
@media (max-width: 1199.98px) {
  .rd-ptm__bar { height: 60px; padding: 0 12px; }
  .rd-ptm__bar h1 { font-size: 19px; }
  .rd-pt__hin { gap: 14px; }
  .rd-pt__htiles { gap: 8px; }
  .rd-pt__htiles > div { padding: 10px 12px; }
  .rd-pt__htiles b { font-size: 16px; }
  .rd-pt__sk b { font-size: 17px; }
  .rd-pt__chart { box-shadow: none; gap: 10px; }
  .rd-pt__chead h2 { font-size: 15px; }
  .rd-pt__chead .rd-pt__ranges { overflow-x: auto; }
  .rd-pt__chead .rd-pt__ranges .rd-db__range { flex: none; height: 34px; padding: 0 10px; }
  .rd-pt__legend { gap: 10px; font-size: 11px; }
}
.rd-pt__shd { display: flex; flex-direction: column; gap: 2px; }
.rd-pt__shd h2 { font-size: 18px; font-weight: 800; }
.rd-pt__shd > span { font-size: 12px; color: var(--muted-text); }
.rd-pt__inc { display: flex; flex-direction: column; }
.rd-pt__inct { font-size: 13px; font-weight: 800; }
.rd-pt__xbtn, .rd-pt__xbtn:hover { height: 48px; border-radius: 10px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink-2); font-size: 14px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-sizing: border-box; }
@media (max-width: 1199.98px) {
  .rd-pt__scroll { flex: none; }
  .rd-pt__idle .rd-pt__ppl { flex-direction: row; }
  .rd-pt__mcards { display: flex; flex-direction: column; gap: 8px; }
  .rd-pt__mcards li { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
  .rd-pt__months .rd-pt__ranges { width: 100%; }
  .rd-pt__months .rd-pt__ranges .rd-db__range { flex: 1; justify-content: center; }
  .rd-pt__incm { margin-top: 4px; border-top: 1px solid var(--border); }
  .rd-pt__incm summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 0 2px;
    font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .rd-pt__incm summary::-webkit-details-marker { display: none; }
  .rd-pt__incm[open] summary svg { transform: rotate(180deg); }
  .rd-pt__incm table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
  .rd-pt__incm th { color: var(--muted-text); font-size: 12px; font-weight: 500; text-align: end; }
  .rd-pt__incm th:first-child { text-align: start; padding: 6px 0; }
  .rd-pt__incm td { text-align: end; border-top: 1px solid var(--border); }
  .rd-pt__incm td:first-child { padding: 7px 0; color: var(--text-soft); text-align: start; }
}
@media (max-width: 1199.98px) { .rd-pt__checks { padding: 12px 14px; } }
@media (max-width: 1199.98px) {
  .rd-pt__months .rd-pt__chead .rd-pt__ranges .rd-db__range { flex: 1; height: 36px; padding: 0 12px; }
  .rd-pt__mcards li { gap: 6px; }
  .rd-pt__mch > b { font-size: 14px; }
  .rd-pt__mch > span > b { font-weight: 700; }
  .rd-pt__mcp { font-size: 12px; font-weight: 400; }
  .rd-pt__mcards dl { font-size: 11px; }
  .rd-pt__mcards dd { font-weight: 700; }
  .rd-pt__mcards dd.rd-pt__down { color: var(--danger-text); }
}
@media (max-width: 1199.98px) {
  .rd-pt__cmp { gap: 10px; }
  .rd-pt__cmp .rd-db__cmphead { flex-direction: column; align-items: stretch; gap: 10px; }
  .rd-pt__cmp .rd-db__trtitle { padding: 0 2px; gap: 2px; }
  .rd-pt__cmp .rd-db__trtitle h2 { font-size: 15px; }
  .rd-pt__cmp .rd-db__rate, .rd-pt__cmp .rd-db__rate:hover { height: 44px; justify-content: center; box-sizing: border-box; }
  .rd-pt__cmp .rd-db__cmpgrid { display: flex; flex-direction: column; gap: 10px; }
  .rd-pt__cmp .rd-db__cbox { padding: 14px; gap: 6px; box-shadow: none; }
  .rd-pt__cmp .rd-db__ctile { width: 32px; height: 32px; border-radius: 8px; }
  .rd-pt__cmp .rd-db__cname { font-size: 14px; }
  .rd-pt__cmp .rd-db__cv { font-size: 19px; }
  .rd-pt__cmp .rd-db__cv .rd-db__u { font-size: 12px; }
  .rd-pt__cmp .rd-db__cf { padding-top: 6px; }
  .rd-pt__scheme { gap: 12px; }
  .rd-pt__shd { gap: 0; margin-top: 8px; }
  .rd-pt__shd h2 { font-size: 16px; }
  .rd-pt__shd > span { margin-top: 4px; }
  .rd-pt .rd-pt__sc { padding: 14px 16px; gap: 0; box-shadow: none; }
  .rd-pt__sch { gap: 8px; }
  .rd-pt__sch .rd-pt__av--lg { width: 32px; height: 32px; font-size: 16px; }
  .rd-pt__sch h3 { font-size: 15px; }
  .rd-pt__sch > b { font-size: 13px; }
  .rd-pt__row { gap: 8px; }
  .rd-pt__incm { margin-top: 4px; border-top: 0; }
  .rd-pt__incm summary { padding: 8px 0; min-height: 28px; }
}
@media (max-width: 1199.98px) { .rd-pt__chead { gap: 10px 8px; } }
@media (max-width: 1199.98px) {
  .rd-pt__mcards { gap: 10px; }
  .rd-pt__mch { font-size: 16px; }
  .rd-pt__all { padding: 0; line-height: 1.5; }
}
@media (max-width: 1199.98px) { .rd-pt .rd-db__ranges { display: flex; } }
@media (max-width: 1199.98px) { .rd-pt__incm summary { min-height: 44px; } }
@media (max-width: 1199.98px) { .rd-pt__all { line-height: 20px; } }
@media (max-width: 1199.98px) { .rd-pt__scroll { height: 260px; min-height: 0; max-height: none; } }
@media (max-width: 1199.98px) { .rd-pt__idle .rd-pt__legend { font-size: 12px; gap: 14px; } }
@media (max-width: 1199.98px) { .rd-pt__xbtn, .rd-pt__xbtn:hover { gap: 6px; } .rd-ptm__acts { gap: 10px; } }
@media (max-width: 1199.98px) { .rd-pt .rd-pt__idle, .rd-pt .rd-pt__exp, .rd-pt .rd-pt__hist, .rd-pt .rd-pt__checks { box-shadow: var(--shadow); } }
@media (max-width: 600px) { .rd-pd__wide { display: none; } }
@media (max-width: 600px) { .rd-pd__body { gap: 12px; } .rd-pd__amt { height: 52px; } }
@media (max-width: 600px) { .rd-pt__xf--sheet .rd-pt__xnote { line-height: 20px; } }

/* ---- «بدهکار و بستانکار» (admin/ledger.html) — boards Ledger, LedgerMobile, LedgerNew*, LedgerPay* (Fix Prompt 46 R4.3) */
.rd-lg { display: flex; flex-direction: column; gap: 20px; }
.rd-lg h2 { margin: 0; }
.rd-lg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-lg__title { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.rd-lg__title h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-lg__title > span { font-size: 13px; color: var(--muted-text); }
.rd-lg__ok { margin: 0; border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--emerald-bg); color: var(--emerald-text); }
.rd-lg__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.rd-lg__fund { grid-column: span 2; padding: 18px 20px; gap: 12px; }
.rd-lg__fund h2, .rd-lg__sum h2 { font-size: 15px; font-weight: 800; flex: 1; }
.rd-lg__link, .rd-lg__link:hover { font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; display: flex; align-items: center; gap: 4px; }
.rd-lg__rule { margin-top: auto; }
.rd-lg__sum { padding: 18px 20px; gap: 8px; }
.rd-lg__total { font-size: 26px; font-weight: 800; line-height: 1.25; }
.rd-lg__sum--pay .rd-lg__total { color: var(--danger-text); }
.rd-lg__sum--rec .rd-lg__total { color: var(--emerald-text); }
.rd-lg__total .rd-fd__u2 { font-size: 12px; }
.rd-lg__lines { display: flex; flex-direction: column; margin-top: auto; }
.rd-lg__lines > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--border); }
.rd-lg__lines span { color: var(--text-soft); }
.rd-lg__lines b { color: var(--text); }
.rd-lg__open { padding: 18px 20px; gap: 12px; }
.rd-lg__ohead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-lg__ohead h2 { font-size: 16px; font-weight: 800; flex: 1; }
.rd-lg__search { margin: 0; width: 320px; }
.rd-lg__search label, .rd-lg__hist .hist-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted-text); box-sizing: border-box; margin: 0; font-weight: 400; }
.rd-lg__search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: transparent; color: var(--text); font-family: inherit; height: auto; padding: 1px 2px; border-radius: 0;
  box-shadow: none; }
.rd-lg__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-lg__chip, .rd-lg__chip:hover { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-size: 13px; display: flex; align-items: center; gap: 6px; text-decoration: none; box-sizing: border-box; }
.rd-lg__chip > span { font-size: 11px; opacity: .8; }
.rd-lg__chip--on, .rd-lg__chip--on:hover { border-color: var(--ink); background: var(--ink); color: var(--surface); font-weight: 700; }
.rd-lg__table { display: flex; flex-direction: column; }
.rd-lg__tr { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.05fr) 250px; gap: 12px; align-items: center; padding: 12px 14px; }
.rd-lg__tr + .rd-lg__tr { border-top: 1px solid var(--border); }
.rd-lg__th { padding: 8px 14px; font-size: 12px; color: var(--muted-text); background: var(--surface-2); border-radius: 8px; }
.rd-lg__th > span:nth-child(n+4) { text-align: left; }
.rd-lg__th + .rd-lg__tr { border-top: 0; }
.rd-lg__tr[hidden] { display: none; }
.rd-lg__group { background: var(--surface); }
.rd-lg__group:has(+ .rd-lg__child:not([hidden])) { background: var(--surface-2); }
.rd-lg__child { padding: 8px 14px; background: var(--surface-2); }
.rd-lg__tr.rd-lg__child { border-top: 1px dashed var(--border); }
.rd-lg__cw { padding-inline-start: 44px; font-size: 13px; color: var(--text-soft); }
.rd-lg__child .rd-lg__date, .rd-lg__days { font-size: 12px; color: var(--muted-text); }
.rd-lg__child .rd-lg__amt-c b { font-size: 13px; font-weight: 700; }
.rd-lg__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-lg__who > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rd-lg__ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.rd-lg__ic--danger { background: var(--danger-bg); color: var(--danger-text); }
.rd-lg__ic--emerald { background: var(--emerald-bg); color: var(--emerald-text); }
.rd-lg__ic--ink { background: var(--ink-tint); color: var(--ink-2); }
.rd-lg__ic--gold { background: var(--gold-tint); color: var(--gold-text); }
.rd-lg__ic--neutral { background: var(--neutral-tint); color: var(--text-soft); }
.rd-lg__name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-lg__name b { font-size: 14px; }
.rd-lg__sub { font-size: 12px; color: var(--text-soft); }
.rd-lg__sub a, .rd-lg__sub a:hover { color: var(--ink-2); text-decoration: none; }
.rd-lg__date { font-size: 13px; color: var(--text-soft); }
.rd-lg__amt-c { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.rd-lg__amt-c > span { font-size: 11px; color: var(--muted-text); }
.rd-lg__v { font-size: 15px; }
.rd-lg__v--in { color: var(--emerald-text); }
.rd-lg__v--out { color: var(--danger-text); }
.rd-lg__acts { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.rd-lg__form { margin: 0; display: flex; align-items: center; gap: 4px; }
.rd-lg__act, .rd-lg__act:hover { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-size: 13px;
  font-weight: 700; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; text-decoration: none; cursor: pointer;
  box-sizing: border-box; }
.rd-lg__act--out, .rd-lg__act--out:hover { border: 0; background: var(--danger-bg); color: var(--danger-text); }
.rd-lg__act--in, .rd-lg__act--in:hover { border: 0; background: var(--emerald-bg); color: var(--emerald-text); }
.rd-lg__icon { width: 36px; height: 36px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--text-soft); display: flex; align-items: center;
  justify-content: center; padding: 0; cursor: pointer; list-style: none; }
.rd-lg__icon::-webkit-details-marker { display: none; }
.rd-lg__icon[aria-expanded="true"] svg { transform: rotate(180deg); }
.rd-lg__lock { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted-text); }
.rd-lg__gap { width: 36px; flex: none; }
.rd-lg__amt { height: 36px; width: 120px; border-radius: 8px; box-sizing: border-box; }
.rd-lg__amt > input { font-size: 13px; padding: 0 8px; }
.rd-lg__more { position: relative; }
.rd-lg__menu { position: absolute; inset-inline-end: 0; top: 40px; z-index: 5; min-width: 140px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.rd-lg__menu a, .rd-lg__menu button { display: block; width: 100%; text-align: start; padding: 8px 10px; border: 0; background: transparent; font-size: 13px; color: var(--text);
  text-decoration: none; font-family: inherit; cursor: pointer; border-radius: 6px; }
.rd-lg__menu button { color: var(--danger-text); }
.rd-lg__menu form { margin: 0; }
.rd-lg__empty { margin: 0; padding: 14px 0; font-size: 13px; color: var(--muted-text); }
.rd-lg__pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; height: 720px; }
.rd-lg__settled, .rd-lg__hist { padding: 18px 20px; gap: 6px; min-height: 0; }
.rd-lg__hist { gap: 10px; }
.rd-lg__sh { display: flex; align-items: center; gap: 8px; }
.rd-lg__sh h2 { font-size: 16px; font-weight: 800; flex: 1; }
.rd-lg__scroll { border: 0; border-radius: 0; padding-inline-end: 4px; min-height: 300px; }
.rd-lg__sr { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.rd-lg__sr + .rd-lg__sr { border-top: 1px solid var(--border); }
.rd-lg__sr form { margin: 0; }
.rd-lg__sr .rd-lg__ic { width: 32px; height: 32px; }
.rd-lg__sw { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rd-lg__sw b { font-size: 13px; }
.rd-lg__sw > span { font-size: 12px; color: var(--text-soft); }
.rd-lg__sw > .rd-lg__sm { font-size: 11px; color: var(--muted-text); }
.rd-lg__t--danger { color: var(--danger-text); }
.rd-lg__t--emerald { color: var(--emerald-text); }
.rd-lg__sr > b { font-size: 14px; }
.rd-lg__undo { color: var(--danger-text); }

/* the ledger card's history (board Ledger): the shared module's own markup laid out as the board's rows — the toolbar
   above, the day list in its own scroll box */
.rd-lg__hist .hist, .rd-lg__hist .hist-toolbar { display: contents; }
.rd-lg__hist .hist-search-row { display: flex; gap: 8px; }
.rd-lg__hist .hist-search { flex: 1; }
.rd-lg__hist .hist-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: transparent; color: var(--text); font-family: inherit; height: 100%;
  padding: 0; box-shadow: none; }
.rd-lg__hist .hist-icon-btn { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; }
.rd-lg__hist .hist-icon-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); }
.rd-lg__hist .hist-chips { display: flex; gap: 6px; margin: 0; }
.rd-lg__hist .hist-chip { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-size: 12px; font-weight: 400; font-family: inherit; box-sizing: border-box; }
.rd-lg__hist .hist-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-lg__hist .hist-chip .count { font-size: inherit; font-weight: inherit; background: none; padding: 0; margin: 0; color: inherit; min-width: 0; height: auto; }
.rd-lg__hist .hist-body { flex: 1 1 0; min-height: 300px; overflow-y: auto; position: relative; padding-inline-end: 4px; }
.rd-lg__hist .hist-day { margin: 0; }
.rd-lg__hist .hist-day-label { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--text-soft); margin: 0; }
.rd-lg__hist .hist-day-label .sum { font-size: 12px; font-weight: inherit; color: var(--muted-text); }
.rd-lg__hist .hist-day-label .sum .hist-amt { font-size: 12px; font-weight: 700; }
.rd-lg__hist .hist-list { background: none; border-radius: 0; box-shadow: none; }
.rd-lg__hist .hist-row { grid-template-columns: 42px auto minmax(0, 1fr) auto 46px; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 0; row-gap: 0; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border); }
.rd-lg__hist .hist-list > .hist-row:first-child { border-top: 0; }
.rd-lg__hist .hist-row > .icon-tile { grid-column: 1; grid-row: 1 / -1; width: 32px; height: 32px; border-radius: 10px; margin-inline-end: 10px; }
.rd-lg__hist .hist-row > .icon-tile svg { width: 16px; height: 16px; }
.rd-lg__hist .hist-main { display: contents; }
.rd-lg__hist .hist-title { grid-column: 2 / 4; grid-row: 2; font-size: 13px; font-weight: 700; }
.rd-lg__hist .hist-title .subj { font-weight: inherit; color: inherit; }
.rd-lg__hist .hist-lines { grid-column: 2 / 4; grid-row: 3; margin: 2px 0 0; font-size: 12px; line-height: inherit; display: flex; flex-direction: column; gap: 2px; }
.rd-lg__hist .hist-col-who { grid-column: 2; grid-row: 4; display: block; margin-top: 2px; font-size: 11px; color: var(--muted-text); }
.rd-lg__hist .hist-col-who::after { content: "·"; margin: 0 6px; color: var(--muted); }
.rd-lg__hist .hist-col-who.none { display: none; }
.rd-lg__hist .hist-meta { grid-column: 3; grid-row: 4; margin-top: 2px; font-size: 11px; }
.rd-lg__hist .hist-row:has(.hist-col-who.none) .hist-meta { grid-column: 2 / 4; }
.rd-lg__hist .hist-side { grid-column: 4; grid-row: 1 / -1; margin-inline-start: 10px; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; }
.rd-lg__hist .hist-side:not(:has(.hist-amt, .hist-tag)) { display: none; }
.rd-lg__hist .hist-amt { font-size: 14px; font-variant-numeric: normal; }
.rd-lg__hist .hist-amt small { display: none; }
.rd-lg__hist .hist-tag { height: auto; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.rd-lg__hist .hist-actions { grid-column: 5; grid-row: 1 / -1; margin-inline-start: 10px; display: flex; justify-content: center; position: relative; }
.rd-lg__hist .hist-lock, .rd-lg__hist .hist-more { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); border: 0;
  background: transparent; padding: 0; border-radius: 8px; }
.rd-lg__hist .hist-lock { color: var(--muted-text); }
.rd-lg__hist .hist-row > .icon-tile--neutral { color: var(--text-soft); }
.rd-lg__hist .hist-search-row, .rd-lg__hist .hist-chips, .rd-lg__hist .hist-filters, .rd-lg__hist .hist-active-filters { flex: none; }
.rd-lg__hist .hist-chips { padding: 0; margin: 0; overflow: visible; }
.rd-lg__hist .hist-chip { display: block; }
.rd-lg__hist .hist-search input { height: auto; padding: 1px 2px; border-radius: 0; }
.rd-lg__act { box-sizing: content-box; }
/* «بدهکار و بستانکار» on the phone (board LedgerMobile) */

@media (max-width: 1199.98px) {
  .rd-lgm__bar { display: flex; height: 60px; align-items: center; gap: 8px; padding: 0 16px; box-sizing: border-box; background: var(--surface); }
  .rd-lgm__bar h1 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
  .rd-lgm__new, .rd-lgm__new:hover { height: 40px; padding: 0 12px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700;
    display: flex; align-items: center; gap: 6px; text-decoration: none; }
  .rd-lg { gap: 12px; padding: 14px 16px 100px; }
  .rd-lgm__fund { background: var(--surface); border-radius: var(--radius-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
  .rd-lgm__frow { display: flex; align-items: center; gap: 10px; }
  .rd-lgm__frow .rd-tile { width: 32px; height: 32px; border-radius: 10px; }
  .rd-lgm__fname { font-size: 14px; font-weight: 700; flex: 1; }
  .rd-lgm__fv { font-size: 20px; font-weight: 800; }
  .rd-lgm__fv > span { font-size: 11px; font-weight: 500; color: var(--muted-text); }
  .rd-lgm__fund .rd-lg__lines { margin-top: 0; }
  .rd-lgm__fund .rd-lg__lines b.rd-lg__t--danger { color: var(--danger-text); }
  .rd-lgm__fund .rd-lg__lines b.rd-lg__t--emerald { color: var(--emerald-text); }
  .rd-lgm__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rd-lgm__sum { background: var(--surface); border-radius: var(--radius-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--danger); }
  .rd-lgm__sum--emerald { border-top-color: var(--emerald); }
  .rd-lgm__sum > span:first-child { font-size: 12px; color: var(--text-soft); }
  .rd-lgm__sum > b { font-size: 17px; color: var(--danger-text); }
  .rd-lgm__sum--emerald > b { color: var(--emerald-text); }
  .rd-lgm__sum > span:last-child { font-size: 11px; color: var(--muted-text); }
  .rd-lg__open { background: none; box-shadow: none; padding: 0; border-radius: 0; gap: 12px; }
  .rd-lg__ohead { flex-direction: column; align-items: stretch; gap: 12px; }
  .rd-lg__ohead h2 { margin: 6px 0 0; }
  .rd-lg__search { width: auto; }
  .rd-lg__search label { height: 44px; }
  .rd-lg__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .rd-lg__chip { height: 40px; }
  .rd-lgm__cards { display: flex; flex-direction: column; gap: 12px; }
  .rd-lgm__card { background: var(--surface); border-radius: var(--radius-card); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
  .rd-lgm__chead { display: flex; align-items: flex-start; gap: 10px; }
  .rd-lgm__cw { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .rd-lgm__cw > b { font-size: 14px; }
  .rd-lgm__tags { display: flex; gap: 4px; flex-wrap: wrap; }
  .rd-lgm__cmid { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
  .rd-lgm__cmid > span { font-size: 12px; color: var(--muted-text); }
  .rd-lgm__v { font-size: 17px; }
  .rd-lgm__cact { display: flex; gap: 8px; }
  .rd-lgm__cact > .rd-lg__act, .rd-lgm__cact .rd-lg__form, .rd-lgm__cact .rd-lg__form > .rd-lg__act:last-child { flex: 1; }
  .rd-lgm__cact .rd-lg__act { height: 44px; width: 100%; box-sizing: border-box; }
  .rd-lgm__child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); padding-top: 8px; border-top: 1px dashed var(--border); }
  .rd-lgm__child[hidden] { display: none; }
  .rd-lgm__child > span:first-child { flex: 1; }
  .rd-lg__pair { display: flex; flex-direction: column; gap: 12px; height: auto; }
  .rd-lg__settled, .rd-lg__hist { padding: 14px 16px; box-shadow: var(--shadow); }
  .rd-lg__sh h2 { font-size: 15px; }
  .rd-lg__settled .rd-lg__scroll { flex: none; height: auto; min-height: 0; max-height: 380px; }
  .rd-lg__hist .hist-body { flex: none; min-height: 0; max-height: 460px; }
  .rd-lg__hist .hist-search { height: 44px; }
  .rd-lg__hist .hist-icon-btn { width: 44px; height: 44px; color: var(--ink-2); }
  .rd-lg__hist .hist-chip { height: 40px; }
}
/* «ثبت مورد جدید» and «پرداخت به گالری» (boards LedgerNewDialog / LedgerNewMobile / LedgerPayDialog / LedgerPayMobile) */
.rd-ln__dlg { width: 600px; }
.rd-ln__body, .rd-lp__body { gap: 14px; }
.rd-ln__bank { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-ln__bank .rd-pd__opt [data-ln-help] { font-size: 12px; color: var(--text-soft); }
.rd-ln__bank .rd-pd__opt [data-ln-help][hidden] { display: none; }
.rd-ln__fx { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.rd-ln__fxg { display: flex; gap: 8px; }
.rd-ln__fxg > div { flex: 1; min-width: 0; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.rd-ln__fxg span { font-size: 12px; color: var(--text-soft); }
.rd-ln__fxg b { font-size: 14px; color: var(--text); text-align: right; }
.rd-ln__fxg .rd-ln__fx--down { background: var(--danger-bg); }
.rd-ln__fxg .rd-ln__fx--down :is(span, b) { color: var(--danger-text); }
.rd-ln__fxg .rd-ln__fx--up { background: var(--emerald-bg); }
.rd-ln__fxg .rd-ln__fx--up :is(span, b) { color: var(--emerald-text); }
@media (max-width: 600px) {
  .rd-ln__dlg { width: auto; }
  .rd-ln__bank { grid-template-columns: minmax(0, 1fr); }
  .rd-ln__bank .rd-pd__opt:not(:has(input:checked)) [data-ln-help] { display: none; }
  .rd-ln__body .rd-pd__grid { display: contents; }
  .rd-ln__body > *, .rd-ln__g2 > * { order: 3; }
  .rd-ln__body > .rd-ln__fl { order: 0; }
  .rd-ln__g1 > :last-child { order: 2; }
  .rd-ln__body > label:has([data-ln-amount]) { order: 1; }
  .rd-ln .rd-dialog__cancel { display: none; }
}
.rd-ln [hidden] { display: none !important; }
.rd-ln__bank .rd-pd__opt [data-ln-help] { font-weight: 700; }
.rd-ln__sel { height: 42px; align-items: center; padding: 0 12px; color: var(--text-soft); }
.rd-ln__sel > select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; appearance: none; -webkit-appearance: none; padding: 0; margin: 0;
  font-size: 15px; font-family: inherit; color: var(--text); border-radius: 0; }
.rd-ln__sel > select:has(option[value=""]:checked) { color: var(--muted-text); }
.rd-ln__sel > svg { flex: none; }
.rd-ln__seg .rd-fd__segopt span { height: 44px; font-size: 14px; }
.rd-ln__seg .rd-fd__segopt input:checked + span { box-shadow: var(--shadow); }
.rd-ln .rd-pd__amt { height: 50px; }
@media (max-width: 600px) {
  .rd-ln .rd-fr__in { height: 44px; }
  .rd-ln .rd-ln__sel { height: 42px; }
  .rd-ln .rd-pd__amt { height: 52px; }
}
.rd-ln__g1 { row-gap: 14px; }
.rd-ln__bank .rd-pd__opt input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; }
.rd-ln input[name="invoice_code"] { text-align: right; }
.rd-ln .rd-fr__save { font-weight: 700; }
.rd-ln__sel > select { height: 23px; line-height: normal; padding-top: 2px; box-sizing: border-box; }
@media (max-width: 600px) {
  .rd-ln__body { gap: 12px; }
  .rd-ln__body [data-toman-words] { margin-top: -2px; }
}
.rd-lp__list { border: 1px solid var(--border); border-radius: 10px; padding: 4px 12px; }
.rd-lp__list > div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; font-weight: 400; }
.rd-lp__list > div + div { border-top: 1px solid var(--border); }
.rd-lp__d { color: var(--muted-text); }
.rd-lp__all { align-self: flex-start; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink-tint); color: var(--ink-2);
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.rd-lp__info { margin: 0; display: flex; align-items: flex-start; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 12px;
  color: var(--text-soft); line-height: 1.8; }
.rd-lp__info > svg { flex: none; }
.rd-lp__warn { font-size: 12px; font-weight: 700; color: var(--danger-text); }
.rd-lp .rd-pd__amt { height: 50px; }
.rd-lp .rd-fr__save { font-weight: 700; }
@media (max-width: 600px) {
  .rd-lp__body { gap: 12px; }
  .rd-lp__body [data-toman-words] { margin-top: -2px; }
  .rd-lp .rd-pd__amt { height: 52px; }
}
@media (max-width: 600px) { .rd-lp__all { height: 40px; } }
.rd-ln__lh { display: flex; align-items: center; gap: 6px; position: relative; }
.rd-ln__ex > summary { list-style: none; cursor: pointer; color: var(--muted-text); display: flex; }
.rd-ln__ex > summary::-webkit-details-marker { display: none; }
.rd-ln__exb { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); padding: 10px 12px; font-size: 12px; font-weight: 400; color: var(--text-soft); line-height: 1.8; }
.rd-ln__exb p { margin: 0; }
/* ---- «تاریخچه» (admin/history.html) — boards History, HistoryMobile, History* (Fix Prompt 46 R4.4): the page's own parts and the
   ONE history module (admin/_history.html) laid out as the board's table */
.rd-hs { display: flex; flex-direction: column; gap: 20px; }
.rd-hs__head { display: flex; flex-direction: column; gap: 2px; }
.rd-hs__head h1 { margin: 0; font-size: 24px; font-weight: 800; }
.rd-hs__head > span { font-size: 13px; color: var(--muted-text); }
.rd-hs__sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rd-hs__card { background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.rd-hs__card > span:first-child { font-size: 12px; color: var(--text-soft); }
.rd-hs__card > b { font-size: 22px; text-align: right; }
.rd-hs__in { color: var(--emerald-text); }
.rd-hs__out { color: var(--danger-text); }
.rd-hs__sub { font-size: 11px; color: var(--muted-text); }
.rd-hs__flow { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.rd-hs__fh { display: flex; align-items: center; gap: 10px; }
.rd-hs__fh h2 { margin: 0; font-size: 16px; font-weight: 800; flex: 1; }
.rd-hs__legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-soft); }
.rd-hs__legend > span { display: flex; align-items: center; gap: 6px; }
.rd-hs__list { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.rd-hs .hist, .rd-hs .hist-toolbar { display: contents; }
.rd-hs .hist-search-row, .rd-hs .hist-chips, .rd-hs .hist-filters, .rd-hs .hist-active-filters { flex: none; margin: 0; }
.rd-hs .hist-search-row { display: flex; gap: 8px; align-items: center; }
.rd-hs .hist-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted-text); box-sizing: border-box; margin: 0; }
.rd-hs .hist-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: transparent; color: var(--text); font-family: inherit; height: auto;
  padding: 1px 2px; border-radius: 0; box-shadow: none; }
.rd-hs .hist-icon-btn { position: relative; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-soft); display: flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; }
.rd-hs .hist-icon-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); }
.rd-hs .hist-icon-btn .badge-dot { top: 6px; left: 6px; width: 8px; height: 8px; border: 0; background: var(--danger); }
.rd-hs .hist-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0; overflow: visible; }
.rd-hs .hist-chip { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-size: 13px; font-weight: 400; font-family: inherit; display: flex; align-items: center; gap: 6px; box-sizing: border-box; }
.rd-hs .hist-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); font-weight: 700; }
.rd-hs .hist-chip .count { font-size: 11px; opacity: .8; background: none; padding: 0; margin: 0; color: inherit; min-width: 0; height: auto; font-weight: inherit; }
.rd-hs .hist-filters.open { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; padding: 12px; border-radius: 10px; background: var(--surface-2);
  border: 0; }
.rd-hs .hist-filters .full { grid-column: 1 / -1; }
.rd-hs .hist-filters-apply { display: none; }
.rd-hs .hist-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-hs .hist-preset, .rd-hs .hist-preset:hover { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-size: 12px; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-hs .hist-preset[aria-pressed="true"] { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-hs .hist-filters > label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-soft); min-width: 0; margin: 0; font-weight: 400; }
.rd-hs .hist-filters :is(input, select, .jdp-display) { height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); padding: 0 10px;
  font-size: 13px; color: var(--text); box-sizing: border-box; font-family: inherit; }
.rd-hs .hist-active-filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rd-hs .hist-pill { height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--ink-tint); color: var(--ink-2); font-size: 12px;
  font-weight: 700; display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; }
.rd-hs .hist-pill a { width: 28px; height: 28px; }
.rd-hs .hist-clear, .rd-hs .hist-clear:hover { font-size: 12px; font-weight: 700; color: var(--ink-2); text-decoration: none; margin-inline-start: 4px; }
.rd-hs .hist-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 110px 150px 130px 40px; gap: 12px; padding: 0 14px 6px; font-size: 12px; color: var(--muted-text);
  font-weight: 400; margin: 4px 0 0; }
.rd-hs .hist-head > div:nth-child(4) { text-align: left; }
.rd-hs .hist-body { display: flex; flex-direction: column; gap: 6px; }
.rd-hs .hist-day { margin: 0; }
.rd-hs .hist-day-label { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 8px; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--text); margin: 0; }
.rd-hs .hist-day-label .sum { font-size: 12px; font-weight: 400; color: var(--muted-text); }
.rd-hs .hist-day-label .sum .hist-amt { font-size: 12px; font-weight: 700; }
.rd-hs .hist-list { background: none; border-radius: 0; box-shadow: none; }
.rd-hs .hist-row { grid-template-columns: 44px minmax(0, 1fr) 110px 150px 130px 40px; gap: 10px 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--border); }
.rd-hs .hist-list > .hist-row:first-child { border-top: 0; }
.rd-hs .hist-row > .icon-tile { grid-column: 1; grid-row: 1; width: 36px; height: 36px; border-radius: 10px; }
.rd-hs .icon-tile--emerald { color: var(--emerald-text); }
.rd-hs .icon-tile--danger { color: var(--danger-text); }
.rd-hs .icon-tile--ink { color: var(--ink-2); }
.rd-hs .icon-tile--gold { color: var(--gold-text); }
.rd-hs .icon-tile--neutral { color: var(--text-soft); }
.rd-hs .hist-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rd-hs .hist-title { display: block; font-size: 14px; font-weight: 400; color: var(--text); }
.rd-hs .hist-title > b { font-weight: 700; }
.rd-hs .hist-title .subj { font-weight: 400; color: var(--text-soft); }
.rd-hs .hist-meta { margin: 0; font-size: 12px; color: var(--muted-text); gap: 4px 6px; }
.rd-hs .hist-meta > span:not(:last-child)::after { content: "|"; margin: 0; margin-inline-start: 6px; color: var(--border); }
.rd-hs .hist-meta a { font-weight: 700; }
.rd-hs .hist-time::before { content: "ساعت "; }
.rd-hs .hist-lines { margin: 0; line-height: inherit; }
.rd-hs .hist-col-who { grid-column: 3; grid-row: 1; display: block; font-size: 13px; color: var(--text-soft); }
.rd-hs .hist-side { grid-column: 4 / 6; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px; }
.rd-hs .hist-side > :first-child { flex: 0 0 150px; margin: 0 0 0 8px; text-align: left; }   /* physical: the amount is ltr */
.rd-hs .hist-amt { font-size: 14px; font-weight: 700; font-variant-numeric: normal; }
.rd-hs .hist-amt small { display: none; }
.rd-hs .hist-tag { height: auto; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.rd-hs .hist-actions { grid-column: 6; grid-row: 1; display: flex; justify-content: flex-end; min-width: 0; }
.rd-hs .hist-more, .rd-hs .hist-lock { width: 36px; height: 36px; border-radius: 8px; color: var(--text-soft); display: flex; align-items: center; justify-content: center; }
.rd-hs .hist-lock { color: var(--muted-text); }
.rd-hs .hist-footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 6px 0 0; margin: 0; }
.rd-hs .hist-count { font-size: 12px; color: var(--muted-text); }
.rd-hs .hist-footer .hist-btn { height: 42px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px;
  font-weight: 700; display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; }
.rd-hsm__bar { display: none; }
.rd-hs .hist-day { display: flex; flex-direction: column; gap: 6px; }
.rd-hs .hist-fld { display: flex; align-items: center; gap: 6px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); padding: 0 10px;
  box-sizing: content-box; color: var(--text); }
.rd-hs .hist-fld :is(input, select, .jdp-display) { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; background: transparent; padding: 0; appearance: none;
  -webkit-appearance: none; font-size: 13px; color: var(--text); font-family: inherit; }
.rd-hs .hist-fld .jdp-wrap { flex: 1; min-width: 0; display: flex; height: 100%; }
.rd-hs .hist-fld > svg { flex: none; }
.rd-hs .hist-search input { font-weight: 400; }
.rd-hs__legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.rd-hs__legend i.rd-db__l--out { background: var(--danger); }
.rd-hs__legend i.rd-db__l--net { width: 14px; height: 2px; background: var(--ink); }
.rd-hs .hist-side > .hist-amt { padding-top: 1px; }
.rd-hs .hist-party, .rd-hs .hist-who-m, .rd-hs .hist-pill--range { display: none; }
@media (max-width: 1199.98px) {
  .rd-hsm__bar { display: flex; height: 60px; align-items: center; gap: 8px; padding: 0 16px; box-sizing: border-box; background: var(--surface); }
  .rd-hsm__bar h1 { margin: 0; font-size: 20px; font-weight: 800; flex: 1; }
  .rd-hs { gap: 12px; padding: 14px 16px 100px; }
  .rd-hs__list { display: contents; }
  .rd-hs .hist-search-row { order: 1; }
  .rd-hs .hist-chips { order: 2; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .rd-hs .hist-active-filters { order: 3; }
  .rd-hs__sum { order: 4; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rd-hs__flow { order: 5; }
  .rd-hs .hist-body, .rd-hs .hist-empty { order: 6; }
  .rd-hs .hist-footer { order: 7; }
  .rd-hs .hist-head { display: none; }
  .rd-hs .hist-filters.open { display: none; }
  .rd-hs .hist-search { height: 44px; }
  .rd-hs .hist-icon-btn { width: 44px; height: 44px; }
  .rd-hs .hist-icon-btn > svg { width: 20px; height: 20px; }
  .rd-hs .hist-icon-btn .badge-dot { top: 7px; left: 7px; }
  .rd-hs .hist-chip { height: 40px; }
  .rd-hs .hist-pill--date, .rd-hs .hist-clear { display: none; }
  .rd-hs .hist-pill--range { display: inline-flex; }
  .rd-hs__card { padding: 12px 14px; }
  .rd-hs__card > b { font-size: 17px; }
  .rd-hs__flow { padding: 14px 16px; box-shadow: none; }
  .rd-hs__fh h2 { font-size: 15px; }
  .rd-hs__legend--m { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; }
  .rd-hs .hist-body { background: var(--surface); border-radius: var(--radius-card); padding: 12px 14px; }
  .rd-hs .hist-body:has(+ .hist-footer .hist-btn) { border-radius: var(--radius-card) var(--radius-card) 0 0; padding-bottom: 0; }
  .rd-hs .hist-footer { background: var(--surface); border-radius: 0 0 var(--radius-card) var(--radius-card); margin-top: -12px; padding: 6px 14px 12px; }
  .rd-hs .hist-count { display: none; }
  .rd-hs .hist-footer:not(:has(.hist-btn)) { display: none; }
  .rd-hs .hist-footer .hist-btn { flex: 1; height: 48px; justify-content: center; }
  .rd-hs .hist-day-label { padding: 8px 10px; }
  .rd-hs .hist-row { position: relative; grid-template-columns: 44px minmax(0, 1fr) 54px; grid-template-rows: auto auto auto auto auto; gap: 0; align-items: start;
    padding: 12px 0; }
  .rd-hs .hist-row > .icon-tile { grid-column: 1; grid-row: 1 / -1; width: 34px; height: 34px; }
  .rd-hs .hist-main { display: contents; }
  .rd-hs .hist-title { grid-column: 2; grid-row: 1; padding-inline-end: 120px; }
  .rd-hs .hist-title .subj { display: none; }
  .rd-hs .hist-party { grid-column: 2; grid-row: 2; display: block; margin-top: 4px; font-size: 13px; color: var(--text-soft); }
  .rd-hs .hist-meta { grid-column: 2; grid-row: 3; margin-top: 4px; gap: 2px 6px; }
  .rd-hs .hist-who-m { display: inline; }
  .rd-hs .hist-lines { grid-column: 2; grid-row: 4; margin-top: 4px; }
  .rd-hs .hist-col-who { display: none; }
  .rd-hs .hist-side { grid-column: 2; grid-row: 5; display: flex; gap: 4px; flex-wrap: wrap; }
  .rd-hs .hist-side:has(.hist-tag) { margin-top: 4px; }
  .rd-hs .hist-side > :first-child { flex: none; margin: 0; }
  .rd-hs .hist-side > .hist-amt { position: absolute; top: 12px; left: 54px; padding: 0; }
  .rd-hs .hist-actions { grid-column: 3; grid-row: 1 / -1; justify-content: flex-end; }
  .rd-hs .hist-more, .rd-hs .hist-lock { width: 44px; height: 44px; }
  .rd-hs .hist-diff-toggle, .rd-hs .hist-diff { grid-column: 2; }
}
@media (min-width: 1200px) {
  .rd-hs .rd-hs__legend.rd-mob { display: none; }
  .rd-hs .hist-meta > span:has(+ .hist-who-m:last-child)::after { content: none; }
}
.rd-hs .hist-pill--kind { display: none; }
.rd-hs .hist-empty { background: var(--surface); border-radius: var(--radius-card); padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; }
.rd-hs .hist-empty .icon-tile { width: 56px; height: 56px; border-radius: 10px; margin: 0; color: var(--text-soft); }
.rd-hs .hist-empty strong { font-size: 16px; font-weight: 700; margin: 0; }
.rd-hs .hist-empty-sub { font-size: 13px; color: var(--text-soft); }
.rd-hs .hist-empty-action { margin: 6px 0 0; }
.rd-hs .hist-empty-action .hist-btn { height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; }
@media (max-width: 1199.98px) {
  .rd-hs .hist-pill--kind { display: inline-flex; }
  .rd-hs:has(.hist-empty) .hist-chips { display: none; }
}
/* «فیلتر تاریخچه» — the phone's sheet (board HistoryFilterMobile) */
.rd-hf.rd-modal { align-items: flex-end; justify-content: stretch; }
.rd-hf.rd-modal--stage { display: block; }
.rd-hf__dlg { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 16px 16px 0 0; display: flex; flex-direction: column;
  max-height: calc(100vh - 40px); overflow: auto; }
.rd-hf__head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.rd-hf__head h2 { margin: 0; font-size: 17px; font-weight: 800; flex: 1; }
.rd-hf__close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0;
  cursor: pointer; }
.rd-hf__form { margin: 0; display: flex; flex-direction: column; }
.rd-hf__body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.rd-hf__fl { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.rd-hf__presets { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-hf__preset, .rd-hf__preset:hover { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-size: 12px; font-weight: 400; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
.rd-hf__preset[aria-pressed="true"] { border-color: var(--ink); background: var(--ink-tint); color: var(--ink-2); font-weight: 700; }
.rd-hf__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rd-hf__dates > label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-soft); min-width: 0; margin: 0; font-weight: 400; }
.rd-hf__fld { display: flex; align-items: center; gap: 6px; height: 44px; border-radius: 8px; border: 1px solid var(--border); padding: 0 10px; box-sizing: content-box;
  color: var(--text); }
.rd-hf__fld :is(input, .jdp-display) { flex: 1; min-width: 0; height: 100%; border: 0; border-radius: 0; background: transparent; padding: 0; font-size: 13px; color: var(--text);
  font-family: inherit; }
.rd-hf__fld .jdp-wrap { flex: 1; min-width: 0; display: flex; height: 100%; }
.rd-hf__fld > svg { flex: none; }
.rd-hf__seg { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--bg); }
.rd-hf__seg > label { flex: 1; margin: 0; position: relative; min-width: 0; }
.rd-hf__seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rd-hf__seg span { height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); font-size: 13px; font-weight: 400;
  cursor: pointer; white-space: nowrap; }
.rd-hf__seg input:checked + span { background: var(--surface); color: var(--ink-2); font-weight: 700; box-shadow: var(--shadow); }
.rd-hf__seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.rd-hf__foot { display: flex; gap: 10px; padding: 12px 16px 20px; border-top: 1px solid var(--border); }
.rd-hf__go { flex: 1; height: 50px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; }
.rd-hf__clear, .rd-hf__clear:hover { height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
/* a تاریخچه row's delete confirm (board HistoryDeleteDialog) */
.rd-hd.rd-modal { z-index: 80; }
.rd-hd__dlg { width: 480px; max-width: calc(100vw - 32px); background: var(--surface); border-radius: 14px; box-shadow: 0 20px 60px rgba(35,48,59,.25); display: flex;
  flex-direction: column; }
.rd-hd__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; }
.rd-hd__ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--danger-bg); color: var(--danger-text); display: flex; align-items: center;
  justify-content: center; }
.rd-hd__head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-hd__head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.rd-hd__head > div > span { font-size: 13px; color: var(--muted-text); }
.rd-hd__rows { padding: 0 20px 6px; display: flex; flex-direction: column; }
.rd-hd__rows > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.rd-hd__rows span { color: var(--text-soft); }
.rd-hd__rows b { color: var(--text); }
.rd-hd__fx { margin: 8px 20px 0; padding: 12px 14px; border-radius: 10px; background: var(--danger-bg); }
.rd-hd__fx > b { font-size: 13px; color: var(--danger-text); }
.rd-hd__fx ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.rd-hd__fx li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.8; }
.rd-hd__fx li > span { color: var(--danger-text); display: flex; margin-top: 3px; }
.rd-hd__foot { display: flex; gap: 10px; padding: 16px 20px 18px; }
.rd-hd__ok { flex: 1; height: 46px; border-radius: 10px; border: 0; background: var(--danger); color: var(--surface); font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; }
.rd-hd__cancel { height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px;
  font-family: inherit; cursor: pointer; }
