/* Rightman Accounts – app styles */
:root {
	--bg: #F6F7F9; --surface: #FFFFFF; --border: #E4E7EC; --border-2: #D0D5DD; --row: #F0F2F5;
	--text: #101828; --text-2: #344054; --muted: #5D6B82; --faint: #98A2B3;
	--accent: #1D4ED8; --accent-bg: #EFF4FF; --accent-2: #1E3A8A;
	--ok: #067647; --ok-bg: #ECFDF3; --warn: #B54708; --warn-bg: #FFF4E5; --bad: #B42318; --bad-bg: #FEF3F2;
	--radius: 12px; --font: Heebo, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
bdi { unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rma-boot { padding: 48px; color: var(--muted); }

/* ---------- layout ---------- */
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; position: relative; }
.side { flex: 1 1 240px; max-width: 100%; background: var(--surface); border-left: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 900px) { .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: 0 0 248px; } }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { display: block; font-size: 15px; }
.brand span { font-size: 12px; color: var(--muted); }
.side-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; margin: 0 0 12px; border: 1px solid var(--border-2); border-radius: 8px; background: #F9FAFB; color: var(--muted); cursor: pointer; text-align: start; width: 100%; }
.side-search span { flex: 1; }
kbd { font: inherit; font-size: 11px; color: var(--muted); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 5px; background: #fff; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-weight: 500; }
.nav a:hover { background: #F2F4F7; color: var(--text); }
.nav a[aria-current="page"] { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.nav .badge { margin-inline-start: auto; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--accent-bg); color: var(--accent); }
.nav .badge.bad { background: var(--bad-bg); color: var(--bad); }
.side-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--row); display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: #EEF2F6; color: var(--text-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.me b { display: block; font-size: 13px; }
.me span { font-size: 12px; color: var(--muted); }
.side-foot .ver { font-size: 11px; color: var(--muted); text-align: right; padding: 0 2px 2px; font-variant-numeric: tabular-nums; }
.side-foot a { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--text-2); text-decoration: none; font-size: 13px; }

/* ---------- header / cards ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.2px; }
.head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card.pad { padding: 20px; }
.card h2, .sec-title { margin: 0; font-size: 16px; font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi .s.ok { color: var(--ok); } .kpi .s.warn { color: var(--warn); } .kpi .s.bad { color: var(--bad); } .kpi .s.acc { color: var(--accent); }
.row-flex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.grow { flex: 1; }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--border-2); background: #fff; color: var(--text-2); white-space: nowrap; }
.btn:hover { background: #F9FAFB; color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled, .btn[aria-disabled="true"] { background: #F2F4F7; border-color: var(--border); color: #667085; cursor: not-allowed; }
.btn.outline-acc { border-color: var(--accent); color: var(--accent); }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn:hover { background: #F2F4F7; color: var(--text); }
.link { background: transparent; border: 0; padding: 0; min-height: 28px; color: var(--accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; cursor: pointer; font-variant-numeric: tabular-nums; text-align: start; font-size: inherit; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; cursor: pointer; background: #fff; color: var(--text-2); border: 1px solid var(--border-2); font-weight: 500; }
.chip-btn[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }
.chip-btn .n { font-size: 12px; opacity: .75; }
.chip-btn:disabled { background: #F2F4F7; color: var(--faint); border-color: var(--border); cursor: not-allowed; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; height: 40px; border-radius: 8px; font-size: 13px; cursor: pointer; background: #fff; color: var(--text-2); border: 1px solid var(--border-2); }
.seg button[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); min-width: 0; }
.field .hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=color]), .field select, .field textarea { height: 44px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 12px; font-size: 14px; background: #fff; color: var(--text); width: 100%; font-weight: 400; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #DBE4FF; }
.field input:disabled { background: #F2F4F7; border-color: var(--border); cursor: not-allowed; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: #fff; border: 1px solid var(--border-2); border-radius: 8px; min-width: 240px; }
.search input { border: 0; outline: none; flex: 1; background: transparent; font-size: 14px; }
.err-text { color: var(--bad); font-size: 13px; }

/* ---------- pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.sm { height: 22px; padding: 0 8px; font-size: 12px; }
.pill.work { background: var(--accent-bg); color: var(--accent); }
.pill.pending { background: #F2F4F7; color: #475467; }
.pill.issue { background: var(--warn-bg); color: var(--warn); }
.pill.sent { background: var(--ok-bg); color: var(--ok); }
.pill.mpaid { background: #D1FADF; color: #05603A; box-shadow: inset 0 0 0 1px #75E0A7; }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: #FFFAEB; color: var(--warn); }
.pill.gray { background: #F2F4F7; color: var(--text-2); }
.pill.orange { background: var(--warn-bg); color: var(--warn); }
.cl { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.cl-logo { flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; border-radius: 8px; overflow: hidden; }
.cl-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cl a, a.cl { color: var(--text); text-decoration: none; }
a.cl:hover span { text-decoration: underline; }

/* ---------- tables (CSS grid) ---------- */
.tbl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; }
@media (max-width: 1360px) { .tbl { overflow-x: auto; } }
.tbl-in { min-width: var(--minw, 900px); }
.tr { display: grid; grid-template-columns: var(--cols); gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--row); }
.th { position: sticky; top: 0; z-index: 3; background: #F9FAFB; border-top: 0; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); align-items: start; border-radius: var(--radius) var(--radius) 0 0; }
.th .sub { display: block; font-weight: 400; }
.tr .desc { font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.tr .note { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.tr .c2 { color: var(--text-2); font-variant-numeric: tabular-nums; }
.tr .strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.tr .stack { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.grp { display: flex; align-items: center; gap: 10px; padding: 14px 12px 10px; border-top: 1px solid var(--border); background: #FCFCFD; }
.grp .sum { margin-inline-start: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-top: 2px solid var(--border); background: #F9FAFB; }
.tfoot .big { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.tr.hl { background: #FFFBEB; transition: background 2s; }
.acts { display: flex; align-items: center; gap: 4px; position: relative; }
.acts3 { display: grid; grid-template-columns: repeat(3, 36px); align-items: center; justify-items: center; }
.expbox { margin: 0 16px 12px; padding: 12px 14px; background: #FAFAFB; border: 1px dashed var(--border-2); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 13px; }
.expbox .neg { color: var(--bad); font-weight: 600; font-variant-numeric: tabular-nums; }
.val-ok { color: var(--ok); font-weight: 600; } .val-bad { color: var(--bad); font-weight: 600; } .val-zero { color: var(--faint); }

/* ---------- banners ---------- */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.banner.ok { background: var(--ok-bg); border: 1px solid #ABEFC6; color: #05603A; }
.banner.bad { background: #FFFBFA; border: 1px solid #FDA29B; color: #912018; flex-direction: column; align-items: stretch; }
.banner.info { background: var(--accent-bg); border: 1px solid #C7D7FE; color: var(--accent-2); }
.banner .line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 0; border-top: 1px solid #FEE4E2; color: var(--text-2); }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; z-index: 40; }
.dialog { width: 480px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: 0 20px 40px rgba(16,24,40,.18); padding: 24px; display: flex; flex-direction: column; gap: 14px; max-height: 80vh; overflow-y: auto; }
.dialog h2 { margin: 0; font-size: 18px; }
.dialog .btns { display: flex; justify-content: flex-end; gap: 10px; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 540px; max-width: 100%; background: #fff; border-right: 1px solid var(--border); box-shadow: 12px 0 32px rgba(16,24,40,.14); display: flex; flex-direction: column; z-index: 30; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-h h2 { margin: 0; font-size: 18px; }
.drawer-b { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.drawer-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }
.sumbox { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #F9FAFB; border-radius: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.sumbox > div { display: flex; justify-content: space-between; }
.sumbox .tot { padding-top: 6px; border-top: 1px solid var(--border); font-size: 15px; }
.toast { position: fixed; top: 20px; left: 24px; z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--text); color: #fff; padding: 8px 8px 8px 16px; border-radius: 10px; box-shadow: 0 10px 24px rgba(16,24,40,.2); max-width: calc(100vw - 48px); }
.toast span { padding-inline-start: 8px; }
.toast button { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: #344054; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.toast.err { background: var(--bad); }
.menu { position: absolute; top: 40px; left: 0; z-index: 10; width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 24px rgba(16,24,40,.14); padding: 6px; display: flex; flex-direction: column; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; cursor: pointer; text-align: start; }
.menu button:hover { background: #F2F4F7; }
.menu .danger { color: var(--bad); }
.menu hr { border: 0; height: 1px; background: var(--row); margin: 4px 0; }
.pop { position: absolute; z-index: 25; width: 280px; background: #fff; border: 1px solid var(--border-2); border-radius: 12px; box-shadow: 0 16px 32px rgba(16,24,40,.16); padding: 16px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- preview ---------- */
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.pv-body { flex: 1; background: #EEF0F3; display: flex; flex-direction: column; }
.pv-body iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.pv-doc { margin: 20px; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(16,24,40,.12); padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; font-size: 12px; }
.pv-doc .lines > div { display: grid; grid-template-columns: minmax(0,1fr) 44px 70px 84px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--row); font-variant-numeric: tabular-nums; }
.pv-doc .lines > div:first-child { font-weight: 700; border-bottom-color: var(--text); }
.pv-note { margin: 0 20px 20px; font-size: 12px; color: var(--muted); }

/* ---------- search palette ---------- */
.palette { width: 680px; max-width: 100%; background: #fff; border-radius: 16px; box-shadow: 0 24px 48px rgba(16,24,40,.24); overflow: hidden; display: flex; flex-direction: column; }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 60px; border-bottom: 1px solid var(--border); }
.palette-in input { flex: 1; border: 0; outline: none; font-size: 17px; background: transparent; }
.palette-res { max-height: 60vh; overflow-y: auto; padding: 8px; }
.palette-grp { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px; border-radius: 8px; cursor: pointer; width: 100%; border: 0; background: transparent; text-align: start; }
.palette-item[aria-selected="true"], .palette-item:hover { background: var(--accent-bg); }
.palette-item .t { font-weight: 500; overflow-wrap: anywhere; display: block; }
.palette-item .s { font-size: 12px; color: var(--muted); display: block; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--border); background: #F9FAFB; font-size: 12px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); }

/* ---------- projects ---------- */
.cell-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 8px; min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; text-align: start; width: 100%; }
.cell-btn:hover { border-color: var(--border-2); background: #fff; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.st.yes { color: var(--ok); } .st.no { color: var(--bad); } .st.na, .st.unknown { color: var(--muted); font-weight: 400; }
.drag-h { display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; cursor: grab; user-select: none; }
.drag-h.over { background: #DBE4FF; box-shadow: inset 0 0 0 2px var(--accent); }
.drag-h.dragging { opacity: .45; }
.mini { width: 24px; height: 22px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bar { height: 6px; border-radius: 3px; background: #EEF2F6; display: block; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ok); }

/* ---------- year accordion ---------- */
.yr { width: 100%; display: grid; grid-template-columns: 90px 110px minmax(120px, 1fr) 140px 32px; gap: 16px; align-items: center; padding: 0 16px; min-height: 60px; background: #fff; border: 0; cursor: pointer; text-align: start; }
.yr .y { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.yr .t { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.yr .bar { height: 8px; border-radius: 4px; } .yr .bar > span { background: #2563EB; }
.yr svg { transition: transform .15s; } .yr[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- clients ---------- */
.merge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.merge-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: #F2F4F7; font-size: 13px; color: var(--text-2); }
.tag small { color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 32px; height: 32px; border-radius: 8px; cursor: pointer; border: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.tabs { display: flex; gap: 24px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 14px; cursor: pointer; color: var(--text-2); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }

/* ---------- income entry ---------- */
.inc-row { display: grid; grid-template-columns: 64px repeat(12, minmax(0,1fr)) 110px; gap: 6px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--row); }
.inc-row input { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 4px; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.inc-row input.dirty { border-color: var(--accent); background: var(--accent-bg); }

/* ---------- login ---------- */
.rma-login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.rma-login { width: 420px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.rma-login-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rma-login-brand img { border-radius: 14px; }
.rma-login-brand strong { font-size: 16px; }
.rma-login-brand span, .rma-muted { color: var(--muted); font-size: 13px; }
.rma-login-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.rma-login-card h1 { margin: 0; font-size: 22px; }
.rma-login-card p { margin: 0; line-height: 1.55; }
.rma-form { display: flex; flex-direction: column; gap: 16px; }
.rma-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.rma-form input { height: 46px; border: 1px solid var(--border-2); border-radius: 8px; padding: 0 12px; font-size: 15px; }
.rma-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #DBE4FF; }
.rma-code { font-size: 22px !important; letter-spacing: 10px; text-align: center; height: 52px !important; }
.rma-btn { height: 46px; border-radius: 8px; border: 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.rma-btn-primary { background: var(--accent); color: #fff; }
.rma-btn-block { width: 100%; }
.rma-err { color: var(--bad); background: var(--bad-bg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.rma-ok { color: var(--ok); background: var(--ok-bg); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.rma-login-links { display: flex; justify-content: space-between; }
.rma-link { background: transparent; border: 0; color: var(--text-2); cursor: pointer; min-height: 44px; font-size: 13px; }
.rma-link-strong { color: var(--accent); font-weight: 600; }
.rma-login-forgot { text-align: center; font-size: 13px; }
.rma-center { text-align: center; line-height: 1.6; margin: 0; }

@media (max-width: 700px) {
	.main { padding: 20px 14px 48px; }
	.grid2, .grid3 { grid-template-columns: 1fr; }
	.head h1 { font-size: 22px; }
	.search { min-width: 0; width: 100%; }
}

/* multi-select in „לתשלום” */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chk { -webkit-appearance: none; appearance: none; display: block; flex: none; width: 15px; height: 15px; margin: 0; border: 1.5px solid #98A2B3; border-radius: 4px; background: #fff center / 11px 11px no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s; }
.chk:hover { border-color: var(--accent); }
.chk:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chk:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chk:indeterminate { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.grp .chk { margin-inline-end: 2px; }
.tr.sel { background: var(--accent-bg); }
.bulkbar { position: sticky; bottom: 16px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; background: #fff; border: 1px solid #C7D7FE; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(16,24,40,.14); font-size: 14px; }

/* clients */
.star-btn { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; color: #98A2B3; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.star-btn:hover { color: #F79009; }
.star-btn.on { color: #F79009; }
.star-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.side-sticky { position: sticky; top: 16px; align-self: flex-start; max-height: calc(100vh - 32px); overflow-y: auto; }
.tr > .cl > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-btn { min-width: 0; max-width: 100%; }
.cell-btn .pill { font-size: 11.5px; padding-inline: 8px; height: auto; min-height: 22px; padding-block: 3px; white-space: normal; max-width: 100%; text-align: start; line-height: 1.3; }

/* Cloudflare column: logo and values share one centre line */
.tr > .cf-col { justify-self: center; text-align: center; }

/* date picker */
.dp { position: relative; display: flex; align-items: center; width: 100%; }
.dp .dp-in { width: 100%; padding-inline-end: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.dp .dp-btn { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dp .dp-btn:hover { background: #F2F4F7; color: var(--accent); }
.dp-pop { position: fixed; z-index: 90; width: 288px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.18); padding: 12px; direction: rtl; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-size: 15px; }
.dp-nav { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; }
.dp-nav:hover { background: #F2F4F7; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.dp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-day { height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.dp-day:hover { background: var(--accent-bg); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--accent); }
.dp-day.on { background: var(--accent); color: #fff; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--row); font-size: 13px; }

/* hidden header labels keep their grid column */
.tr > .sr, .tr > .sr-only { position: static; width: auto; height: auto; clip: auto; overflow: hidden; color: transparent; user-select: none; }
