/* Accounting program styles — follows the look of the shop's previous system
 * (Cairo font, grey top bar, light side menu, white tabs and cards with thin
 * borders, dark navy main buttons, small grey labels, Font Awesome icons).
 * RTL first; logical properties keep LTR working. */
:root {
  --bg: #f6f7f9;          /* frame (side menu, tab row) */
  --page: #f3f3f3;        /* behind the cards */
  --card: #ffffff;
  --top: #eceef2;         /* top bar */
  --ink: #111827;         /* main text, dark buttons */
  --ink-2: #374151;       /* menu and button text */
  --muted: #6b7280;
  --label: #9aa2ad;       /* small field labels */
  --faint: #b0b5bd;
  --line: #e8eaed;
  --line-2: #e2e5e9;
  --soft: #f7f8fa;        /* option rows, table hover */
  --chip: #f3f4f6;
  --brand: #111827;
  --brand-2: #0c66e4;     /* active tab underline, links */
  --brand-soft: #eef4fd;
  --green: #0f9d58;
  --green-soft: #e6f6ee;
  --red: #dc2626;
  --red-soft: #fdecec;
  --orange: #d97706;
  --orange-soft: #fff4e5;
  --purple: #7c3aed;
  --purple-soft: #f1eafe;
  --gold: #ca8a04;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --side: 246px;
  font-family: "Cairo", "Segoe UI", Tahoma, "Geeza Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 13px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); line-height: 1.6; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--brand-2); }
h1, h2, h3, h4 { margin: 0 0 8px; line-height: 1.5; color: var(--ink); }
h1 { font-size: 18px; } h2 { font-size: 16px; } h3 { font-size: 13px; font-weight: 700; } h4 { font-size: 12px; margin-top: 14px; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small, small { font-size: 11px; }
.grow { flex: 1 1 auto; }
.num { text-align: end; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: plaintext; }
td.num, th.num { text-align: end; }
/* amounts and dates stay on one line (tables scroll sideways when they need the room) */
.grid td.num, .grid td.nowrap { white-space: nowrap; }
.ico { font-size: 12px; width: 14px; text-align: center; flex: 0 0 auto; line-height: 1; }

/* ---------- frame ---------- */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.top {
  height: 46px; flex: 0 0 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: var(--top); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 30;
}
.top-start, .top-end { flex: 1 1 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
.top-end { justify-content: flex-end; }
.top-center { flex: 0 1 420px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand b { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: 10px; color: var(--faint); line-height: 1.2; }
.brand-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #fff; }
.logo-mark { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px;
  background: radial-gradient(circle at 50% 50%, #fff 0 18%, var(--ink) 19% 36%, #fff 37% 48%, #4b5563 49% 66%, #fff 67% 76%, var(--ink) 77%); }
.logo-mark.small { width: 28px; height: 28px; margin: 0; flex: 0 0 28px; }
.nav-icon {
  width: 30px; height: 30px; flex: 0 0 30px; display: inline-grid; place-items: center; border: 0; background: none;
  border-radius: 9px; color: var(--muted); cursor: pointer;
}
.nav-icon:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }
.rate-chip { font-size: 11px; color: var(--muted); padding: 2px 10px; border-radius: 99px; background: rgba(255,255,255,0.7); white-space: nowrap; direction: ltr; }
.body { flex: 1; display: flex; min-height: 0; }
.side {
  width: var(--side); flex: 0 0 var(--side); background: var(--bg); border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 46px; height: calc(100vh - 46px); z-index: 25;
}
.side-head { height: 48px; flex: 0 0 48px; display: flex; align-items: center; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.side-title { flex: 1; font-size: 12px; font-weight: 700; padding-inline-start: 6px; }
.menu { flex: 1; overflow-y: auto; padding: 10px 8px 12px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; border: 0; background: none; padding: 0 10px;
  border-radius: 9px; cursor: pointer; text-align: start; color: var(--ink-2); font-size: 13px; margin-bottom: 2px;
}
.menu-item .ico { color: #9ca3af; }
.menu-item:hover { background: rgba(255, 255, 255, 0.7); }
.menu-item.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.menu-item.on .ico { color: var(--ink); }
.menu-item.sub { height: 30px; padding-inline-start: 34px; font-size: 12px; color: var(--muted); }
.menu-item.sub.on { color: var(--ink); }
.menu-item .badge { margin-inline-start: auto; }
.menu-item.group .caret { margin-inline-start: auto; color: var(--faint); transition: transform 0.15s; }
.menu-item.group:not(.open) .caret { transform: rotate(90deg); }
[dir="rtl"] .menu-item.group:not(.open) .caret { transform: rotate(-90deg); }
.side-foot { display: flex; align-items: center; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; flex: 1; text-align: start; min-width: 0; padding: 0; }
.me-text { min-width: 0; }
.me b, .me small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.me b { font-size: 12px; }
.me small { font-size: 10px; color: var(--faint); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #dfe3ea; color: #fff; display: grid; place-items: center; flex: 0 0 30px; }
.avatar .ico { color: #fff; font-size: 13px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tab-row { height: 48px; flex: 0 0 48px; background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); padding: 0 8px; display: flex; align-items: flex-end; position: sticky; top: 46px; z-index: 20; }
.tabbar { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; min-width: 0; height: 100%; }
.tab { display: flex; align-items: center; height: 38px; border-radius: 10px 10px 0 0; white-space: nowrap; color: var(--muted); }
.tab:hover { background: rgba(255,255,255,0.6); }
.tab.on { background: #fff; color: var(--ink); box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.tab-name { border: 0; background: none; padding: 0 12px 0 8px; height: 100%; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: inherit; }
.tab-x { border: 0; background: none; cursor: pointer; padding: 0 8px; color: var(--faint); height: 100%; }
.tab-x .ico { font-size: 10px; }
.tab-x:hover { color: var(--red); }
.tab-add { width: 32px; height: 30px; margin: 0 4px 4px; flex: 0 0 32px; border: 1px dashed #d6dae1; border-radius: 9px; background: none; color: var(--faint); cursor: pointer; align-self: center; }
.workspace { flex: 1; padding: 14px 16px 24px; min-width: 0; background: #fff; }
.screen { min-width: 0; }
.scrim { display: none; }

/* ---------- search ---------- */
.global-search { position: relative; }
.global-search .inp.search { height: 32px; min-height: 32px; border-radius: 10px; font-size: 12px; font-weight: 400; background: #fff; text-align: center; }
.search-results { position: absolute; inset-inline: 0; top: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16,24,40,0.12); max-height: 60vh; overflow: auto; z-index: 50; }
.result { display: block; width: 100%; border: 0; background: none; text-align: start; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); font-size: 12px; }
.result:hover { background: var(--soft); }
.result small { display: block; color: var(--label); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #fff;
  padding: 0 14px; height: 40px; border-radius: 10px; cursor: pointer; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--ink-2);
}
.btn .ico { color: inherit; opacity: 0.8; }
.btn:hover { border-color: #cfd4dc; background: var(--soft); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.btn.primary:hover { background: #1f2937; }
.btn.danger { background: #fff; border-color: #f5c2c2; color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.ghost { background: #fff; }
.btn.green { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.btn.block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.toolbar .btn, .chips .btn { height: 33px; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 9px; padding: 0 10px; }
.toolbar .btn.primary { color: #fff; }
.icon-btn { border: 0; background: none; cursor: pointer; padding: 4px 8px; border-radius: 8px; font-size: 13px; line-height: 1; color: var(--muted); }
.icon-btn:hover { background: var(--chip); color: var(--ink); }
.icon-btn.danger { color: #c0c5cc; }
.icon-btn.danger:hover { color: var(--red); background: var(--red-soft); }
.link { border: 0; background: none; color: var(--brand-2); cursor: pointer; padding: 0; font-size: 12px; }
.inp {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; height: 40px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.inp::placeholder { color: var(--faint); font-weight: 400; }
input.bad-num, .inp.bad-num { border-color: #b91c1c; background: #fdeceb; color: #b91c1c; }
textarea.inp { height: auto; padding: 8px 12px; resize: vertical; font-weight: 400; }
select.inp { padding-inline-end: 6px; }
.inp:focus { outline: none; border-color: #9cbcf5; box-shadow: 0 0 0 3px rgba(12, 102, 228, 0.12); }
.btn:focus-visible, .menu-item:focus-visible, .seg:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.inp.num { text-align: end; direction: ltr; }
.chk { width: 16px; height: 16px; accent-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field-label { font-size: 11px; color: var(--label); font-weight: 600; }
.field .hint { color: var(--label); font-size: 10.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.sub { gap: 8px; margin: 6px 0; }
.form-error { color: var(--red); min-height: 1em; font-size: 12px; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--ink-2); }
.inline { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; border: 1px solid var(--line); border-radius: 9px; background: #fff; height: 30px; overflow: hidden; font-size: 11px; font-weight: 600; color: var(--label); }
.inline > :first-child { padding: 0 10px; }
.inline .inp { width: 90px; height: 28px; border: 0; border-inline-start: 1px solid var(--line); border-radius: 0; font-size: 12px; font-weight: 700; text-align: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar > .inp, .toolbar > select.inp { width: auto; min-width: 140px; height: 36px; }
.toolbar > input[type="search"].inp { flex: 1 1 220px; }
.segs { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg { border: 0; background: none; padding: 0 11px; height: 28px; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--muted); }
.seg + .seg { border-inline-start: 1px solid var(--line); }
.seg.on { background: var(--ink); color: #fff; }
.daterange { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--label); font-weight: 600; }
.daterange .inp { width: auto; height: 36px; }
.picker { position: relative; }
.picker-list { position: absolute; inset-inline: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16,24,40,0.12); max-height: 320px; overflow: auto; z-index: 40; }
.picker-item { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: none; padding: 7px 12px; text-align: start; cursor: pointer; font-size: 12px; }
.picker-item b { font-weight: 700; }
.picker-item.on, .picker-item:hover { background: var(--soft); }
.picker-item img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.picker-item small { display: block; color: var(--label); }

/* ---------- cards, stats, badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 12px; margin-bottom: 12px; min-width: 0; }
.card > h3, .card-head h3, .pay h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.card > h3::before, .card-head h3::before, .pay h3::before {
  content: "\f0ca"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px; color: var(--muted);
  width: 22px; height: 22px; border-radius: 7px; background: var(--chip); display: inline-grid; place-items: center;
}
.pay h3::before { content: "\f555"; }
.card-head { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.stat small { display: block; color: var(--label); font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.stat b { font-size: 14px; font-weight: 700; word-break: break-word; }
.stat.big b { font-size: 17px; }
.stat.green b { color: var(--green); } .stat.red b { color: var(--red); } .stat.blue b { color: var(--brand-2); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--chip); color: var(--ink-2); white-space: nowrap; line-height: 1.6; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.blue { background: var(--brand-soft); color: var(--brand-2); }
.badge.purple { background: var(--purple-soft); color: var(--purple); }
.badge.gold, .badge.silver, .badge.bronze, .badge.low { background: none; padding: 0; color: var(--ink-2); font-weight: 700; }
.badge.gold::before, .badge.silver::before, .badge.bronze::before, .badge.low::before { content: ""; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.badge.gold::before { background: #facc15; } .badge.silver::before { background: #9ca3af; }
.badge.bronze::before { background: #b45309; } .badge.low::before { background: #ef4444; }
.bal { font-weight: 700; white-space: nowrap; font-size: 12px; }
.bal { direction: ltr; unicode-bidi: isolate; }
.bal.pos { color: #0b7d45; } .bal.neg { color: #b91c1c; } .bal.zero { color: var(--faint); font-weight: 600; }
.bal small { font-weight: 400; color: var(--label); font-size: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 0 10px; height: 30px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.note-box { background: var(--orange-soft); padding: 8px 12px; border-radius: 9px; white-space: pre-wrap; font-size: 12px; }
.empty { text-align: center; padding: 34px 10px; color: var(--label); display: grid; gap: 2px; justify-items: center; }
.empty-ico { font-size: 22px; color: #d1d5db; }
.empty b { color: var(--ink-2); font-size: 13px; }
.loading { padding: 20px; text-align: center; color: var(--label); font-size: 12px; }

/* ---------- tables (borderless rows like the original lists) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); }
table.grid { width: 100%; border-collapse: collapse; font-size: 12px; }
table.grid th { color: var(--label); font-weight: 600; font-size: 11px; text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; }
table.grid td { padding: 9px 10px; border-bottom: 1px solid #f1f2f4; vertical-align: middle; color: var(--ink); }
table.grid td b { font-weight: 700; }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid tr.clickable { cursor: pointer; }
table.grid tr.clickable:hover td { background: var(--soft); }
table.grid tfoot td { font-weight: 700; border-top: 1px solid var(--line); background: var(--soft); }
table.grid tr.warn td { background: var(--orange-soft); }
table.grid tr.muted-row td { color: var(--faint); text-decoration: line-through; }

/* ---------- sub tabs (white bar, blue underline) ---------- */
.subtabs { display: flex; gap: 2px; background: #fff; border-bottom: 1px solid var(--line); margin: 0 -16px 14px; padding: 4px 16px 0; overflow-x: auto; }
.screen > .subtab-wrap:first-child > .subtabs { margin-top: -14px; }
.subtab { position: relative; border: 0; background: none; padding: 8px 16px; cursor: pointer; white-space: nowrap; color: #44546f; font-size: 13px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; border-radius: 8px 8px 0 0; }
.subtab:hover { background: var(--soft); }
.subtab.on { color: var(--ink); font-weight: 700; }
.subtab.on::after { content: ""; position: absolute; bottom: 0; inset-inline: 16px; height: 2px; background: var(--brand-2); border-radius: 2px 2px 0 0; }
.modal .subtabs { margin: 0 0 12px; padding: 0; }

/* ---------- dialogs and toasts ---------- */
.overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.4); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 14px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(16,24,40,0.25); }
.modal.wide { width: min(860px, 100%); }
.modal.full { width: min(1200px, 100%); height: calc(100vh - 32px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 14px; }
.modal-body { padding: 16px; overflow: auto; flex: 1; overscroll-behavior: contain; }
/* the head and foot follow the window's round corners (no square corner showing) */
.modal-head { border-start-start-radius: inherit; border-start-end-radius: inherit; }
.modal-foot { border-end-start-radius: inherit; border-end-end-radius: inherit; }
/* while a window is open the page behind it does not scroll */
html.scroll-locked body { position: fixed; inset-inline: 0; width: 100%; }
html.scroll-locked .mob-sheet-body, html.scroll-locked .workspace { overflow: hidden; }
.adp-body, .ord-detail-body, .search-results { overscroll-behavior: contain; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); justify-content: flex-start; }
#toasts { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; }
[dir="rtl"] #toasts { transform: translateX(50%); }
.toast { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,0.2); transition: opacity 0.4s; max-width: 90vw; font-size: 12px; font-weight: 600; }
.toast.ok { background: #065f46; } .toast.error { background: #b91c1c; }
.toast.hide { opacity: 0; }

/* ---------- login ---------- */
body.login-page { display: grid; place-items: center; min-height: 100vh; background: var(--bg); }
.login-box { background: #fff; padding: 28px; border-radius: 16px; border: 1px solid var(--line); width: min(380px, calc(100vw - 32px)); display: grid; gap: 12px; text-align: center; }
.login-box h1 { font-size: 20px; }
.login-box .field { text-align: start; }

/* ---------- invoice editor (sale / purchase / return) ---------- */
.editor { background: var(--page); margin: -14px -16px -24px; padding: 14px 16px 90px; min-height: calc(100vh - 140px); }
.subtab-body .editor { margin-top: -14px; }
.editor-top { background: #fff; margin: -14px -16px 14px; padding: 9px 16px; border-bottom: 1px solid #dfe1e6; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.editor-top .toolbar { margin: 0; }
.editor-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.editor-main, .editor-side, .main, .workspace, .screen, .subtab-wrap, .subtab-body { min-width: 0; }
.editor-side { position: sticky; top: 108px; }
.edit-banner { background: var(--orange-soft); color: var(--orange); padding: 8px 12px; border-radius: 9px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.line-name { display: flex; gap: 8px; align-items: center; min-width: 180px; }
.line-name img { width: 32px; height: 32px; object-fit: cover; border-radius: 8px; }
.line-name b { font-size: 12px; }
.line-name small { display: block; color: var(--label); }
table.lines .inp { min-width: 70px; height: 34px; font-size: 12px; }
table.lines .inp.qty, table.lines .inp.disc { width: 80px; }
table.lines .inp.price, table.lines .inp.sell { width: 110px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.pay-row > span:first-child { color: var(--label); white-space: nowrap; font-size: 11px; font-weight: 600; }
.pay-row .inp { max-width: 190px; height: 36px; }
.pay-row.col { flex-direction: column; align-items: stretch; }
.pay-row b.big { font-size: 20px; font-weight: 700; }
.pay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pay-buttons .btn { height: 40px; }
.option { display: flex; gap: 9px; align-items: center; padding: 8px; margin-bottom: 6px; background: var(--soft); border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.option:hover { border-color: var(--line); }
.option b { display: block; font-size: 12px; font-weight: 700; color: var(--ink); }
.option small { display: block; color: var(--label); font-size: 10.5px; }
.costs { margin-top: 12px; }
.costs .toolbar .inp { flex: 1 1 140px; width: auto; }
.inv-head { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
/* customer window: the name in the middle on top, the two balance boxes under it */
.party-info { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 12px; text-align: center; }
.party-head h2 { margin: 0; font-size: 20px; }
.party-head p { margin: 2px 0 0; }
.party-info .stats { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.party-info .stats .stat { text-align: center; align-items: center; }

.party-row .toolbar { margin-bottom: 10px; }
.party-picker { position: relative; }
.party-picker > .ico { position: absolute; inset-inline-start: 12px; top: 14px; color: var(--faint); z-index: 1; }
.party-picker .inp { padding-inline-start: 34px; }
.editor-chips { margin-bottom: 12px; }
.editor-bottom { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; align-items: start; }
.pay-bar {
  position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 10px; justify-content: center;
  background: #fff; margin: 12px -16px -90px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.08);
}
.pay-total { display: flex; flex-direction: column; align-items: center; min-width: 90px; line-height: 1.2; }
.pay-total small { color: var(--label); font-weight: 600; }
.pay-total b { font-size: 15px; font-weight: 700; }
.pay-bar .btn.wide { flex: 0 1 260px; }
.pay-bar .btn.primary.wide { flex-basis: 320px; }
.pay-bar .btn.more { width: 40px; padding: 0; }
.editor-side { position: static; }
/* currency and rate sit on the same white bar as the sub-tabs, on the far side */
@media (min-width: 861px) {
  .subtab-wrap { position: relative; }
  .subtab-body .editor > .editor-top { position: absolute; top: 0; inset-inline-end: 0; margin: 0; padding: 8px 16px; background: none; border: 0; box-shadow: none; z-index: 2; }
  .subtab-body .editor { padding-top: 14px; }
  .subtabs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
}


/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product-card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 8px; display: grid; gap: 2px; text-align: start; cursor: pointer; font-size: 12px; }
.product-card:hover { border-color: #cfd4dc; }
.product-card img, .product-card .no-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--chip); }
.product-card .no-img { display: grid; place-items: center; font-size: 20px; color: var(--faint); }
.product-card b { font-weight: 700; }
.product-card small { color: var(--label); }
.product-card .price { font-weight: 700; color: var(--ink); }
.product-card.empty-stock { opacity: 0.55; }

/* ---------- charts ---------- */
.chart-wrap { margin: 10px 0; }
.chart-scroll { overflow-x: auto; }
svg.chart { min-width: 100%; height: 240px; }
svg.chart .axis { stroke: var(--line); }
svg.chart .tick { font-size: 10px; fill: var(--label); font-family: "Cairo", sans-serif; }
svg.chart .bar.s0, .sw.s0 { fill: var(--ink); background: var(--ink); }
svg.chart .bar.s1, .sw.s1 { fill: var(--brand-2); background: var(--brand-2); }
svg.chart .bar.s2, .sw.s2 { fill: #9ca3af; background: #9ca3af; }
svg.chart .bar.s3, .sw.s3 { fill: var(--orange); background: var(--orange); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.legend .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 4px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .editor-cols { grid-template-columns: minmax(0, 1fr); }
  .editor-side { position: static; }

}
@media (max-width: 860px) {
  .top { padding: 0 6px; gap: 6px; padding-top: env(safe-area-inset-top); height: calc(46px + env(safe-area-inset-top)); }
  .top-start { flex: 0 0 auto; }
  .top-start .brand span, .rate-chip, .top-end .nav-icon:not(:last-child) { display: none; }
  .top-center { flex: 1 1 auto; }
  .side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; height: 100%; transform: translateX(105%); transition: transform 0.2s; box-shadow: 0 0 40px rgba(0,0,0,0.2); z-index: 60; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  [dir="ltr"] .side { transform: translateX(-105%); }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 55; }
  .tab-row { top: calc(46px + env(safe-area-inset-top)); height: 42px; flex-basis: 42px; }
  .tab { height: 34px; }
  .workspace { padding: 12px 10px 20px; }
  .subtabs { margin: 0 -10px 12px; padding: 2px 10px 0; }
  .screen > .subtab-wrap:first-child > .subtabs { margin-top: -12px; }
  .editor { margin: -12px -10px -20px; padding: 12px 10px 80px; }
  .editor-bottom { grid-template-columns: minmax(0, 1fr); }
  .pay-bar { margin: 12px -10px -80px; padding-inline: 10px; gap: 8px; }
  .pay-bar .btn.wide { flex: 1 1 0; }
  .hide-phone { display: none; }
  .editor-top { margin: -12px -10px 12px; padding: 8px 10px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .toolbar > .inp, .toolbar > select.inp { flex: 1 1 140px; min-width: 0; }
  .modal.full { height: calc(100dvh - 16px); }
  .modal { max-height: calc(100dvh - 16px); }
  .modal-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .overlay { padding: 8px; }
  .pay-row .inp { max-width: 60%; }
  .stats, .inv-head, .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
.menu-toggle { display: none; }
@media (max-width: 860px) { .menu-toggle { display: inline-grid; } }

/* ================= phone view (like the previous system's phone screens) =================
 * The page is shown at 65% (viewport initial-scale 0.65), so sizes here are in the
 * same CSS pixels the previous system uses on phones. */
body.mob { background: #f3f3f3; }
body.mob.sheet-open { overflow: hidden; }
.fi { width: 24px; height: 24px; flex: 0 0 auto; }
.mob-home { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
.mob-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f5f5f5; padding: max(11px, env(safe-area-inset-top)) 16px 6px;
}
.mob-top-start { display: flex; align-items: center; gap: 6px; }
.mob-avatar { width: 52px; height: 52px; border-radius: 50%; border: 4px solid #d3d3d3; background: #dfe3ea; color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; }
.mob-avatar .fi { width: 26px; height: 26px; }
.mob-icon { position: relative; width: 46px; height: 46px; border: 0; background: none; color: #333; display: grid; place-items: center; cursor: pointer; }
.mob-icon .fi { width: 27px; height: 27px; }
.mob-dot { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #e53935; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.mob-inst { display: flex; align-items: center; gap: 10px; height: 61px; padding: 5px 8px 5px 14px; border-radius: 38px; border: 0; background: #e9e9e9; color: #1a1a2e; font-size: 16px; font-weight: 700; max-width: 260px; cursor: pointer; }
.mob-inst .fi { width: 18px; height: 18px; }
.mob-inst-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-inst-logo img, .mob-inst-logo .logo-mark { width: 48px; height: 48px; border-radius: 50%; display: block; object-fit: cover; }
.mob-content { padding: 4px 12.8px 16px; }
.mob-widget { position: relative; background: #fff; border-radius: 20px; padding: 16px 18px 18px; margin: 10px 0 14px; overflow: hidden; }
.mob-widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mob-widget-head b { font-size: 19px; color: #6b7280; }
.mob-lock { border: 0; background: none; color: #9ca3af; cursor: pointer; }
.mob-segs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.mob-segs::-webkit-scrollbar { display: none; }
.mob-seg { border: 0; background: #f3f4f6; color: #6b7280; border-radius: 10px; height: 40px; padding: 0 min(18px, 3.6vw); font-size: 16px; font-weight: 700; cursor: pointer; flex: 0 0 auto; white-space: nowrap; }
.mob-seg.on { background: #e8f0fe; color: #2b74d6; }
.mob-fin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
.mob-fin { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mob-fin-ico { width: 30px; height: 30px; border-radius: 9px; background: #f7f8fa; display: grid; place-items: center; margin-bottom: 4px; }
.mob-fin small { font-size: 14px; color: #9aa2ad; font-weight: 600; }
.mob-fin b { font-size: min(16px, 3.8vw); font-weight: 700; color: #111827; overflow-wrap: anywhere; direction: ltr; text-align: end; line-height: 1.35; }
.mob-fin b.green { color: #27ae60; } .mob-fin b.red { color: #e74c3c; } .mob-fin b.blue { color: #2b74d6; } .mob-fin b.orange { color: #f39c12; }
.mob-widget.locked .mob-fin-grid, .mob-widget.locked .mob-segs { filter: blur(6px); opacity: 0.6; pointer-events: none; }
.mob-cover { display: none; position: absolute; inset: 0; border: 0; background: rgba(255,255,255,0.35); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #374151; }
.mob-widget.locked .mob-cover { display: flex; }
.mob-cover .fi { width: 52px; height: 52px; }
.mob-cover b { font-size: 26px; font-weight: 700; }
.mob-quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mob-quick { display: flex; align-items: center; justify-content: center; gap: 7px; height: 76px; padding: 13px 10px; border-radius: 16px; font-size: min(25px, 4.9vw); font-weight: 600; cursor: pointer; width: 100%; white-space: nowrap; }
.mob-quick .fi { width: 28px; height: 28px; }
.mob-quick.orange { background: rgba(214, 142, 43, 0.18); border: 1px solid #ffa500; color: #ffa500; }
.mob-quick.blue { background: rgba(43, 116, 214, 0.18); border: 1px solid #2b74d6; color: #2b74d6; }
.mob-quick.green { background: rgba(39, 174, 96, 0.18); border: 1px solid #27ae60; color: #1f8b4c; }
.mob-quick.wide { margin-top: 12px; }
.mob-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 16px; }
.mob-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 8px; background: #fff; border: 1px solid #f5f5f5; border-radius: 20px; cursor: pointer; }
.mob-tile:active { border-color: #1e3a5f; }
.mob-tile .fi { width: 54px; height: 54px; margin-top: 18px; stroke-opacity: 0.75; }
.mob-tile-label { font-size: 23px; font-weight: 600; color: #333; }
.mob-foot { text-align: center; color: #9ca3af; font-size: 13px; margin: 10px 0 0; }
/* full-screen sheet for a section */
.mob-sheet { position: fixed; inset: 0; top: 18px; z-index: 50; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); transform: translateY(100%); transition: transform 0.22s ease; }
.mob-sheet.open { transform: none; }
.mob-sheet-handle { width: 56px; height: 6px; border-radius: 99px; background: #d1d5db; margin: 8px auto 2px; flex: 0 0 auto; }
.mob-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 10px; flex: 0 0 auto; }
.mob-sheet-head h2 { font-size: 26px; font-weight: 700; margin: 0; }
.mob-sheet-tools { display: flex; gap: 10px; }
.mob-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e5e7eb; background: #f3f4f6; color: #374151; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.mob-round .fi { width: 20px; height: 20px; }
.mob-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 10px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid #f1f2f4; }
.mob-sheet-body .pay-bar { margin-bottom: -24px; }
.mob-pills { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin: -4px -10px 6px; padding-inline: 10px; scrollbar-width: none; }
.mob-pill { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #374151; font-size: 21px; font-weight: 600; white-space: nowrap; cursor: pointer; flex: 0 0 auto; }
.mob-pill .fi { width: 26px; height: 26px; }
.mob-pill.on { background: #2f4467; border-color: #2f4467; color: #fff; }
.mob-pill-body > .screen { min-width: 0; }
/* side drawer and search */
.mob-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 60; }
.mob-drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(78vw, 420px); background: #fff; z-index: 61; padding: max(20px, env(safe-area-inset-top)) 16px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 40px rgba(0,0,0,0.2); }
.mob-drawer-user { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid #f1f2f4; }
.mob-drawer-user b { display: block; font-size: 20px; }
.mob-drawer-user small { display: block; font-size: 15px; color: #9aa2ad; }
.mob-drawer-item { display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 12px; border: 0; background: none; border-radius: 12px; font-size: 20px; font-weight: 600; color: #374151; cursor: pointer; text-align: start; }
.mob-drawer-item:hover { background: #f7f8fa; }
.mob-search { position: fixed; inset: 0; z-index: 70; background: rgba(243,243,243,0.98); padding: max(16px, env(safe-area-inset-top)) 14px 14px; }
.mob-search-head { display: flex; gap: 10px; align-items: flex-start; }
.mob-search-head .global-search { flex: 1; }
.mob-search .global-search .inp.search { height: 52px; font-size: 18px; }
.mob-search .search-results { top: 58px; max-height: 80vh; }
.mob-search .result { font-size: 17px; padding: 12px 14px; }
@media (max-width: 860px) {
  body.login-page .login-box { width: calc(100vw - 40px); padding: 36px 28px; gap: 16px; border-radius: 22px; }
  body.login-page .login-box h1 { font-size: 28px; }
  body.login-page .login-box .field-label { font-size: 17px; }
  body.login-page .login-box .inp, body.login-page .login-box .btn { height: 60px; font-size: 20px; border-radius: 14px; }
  body.login-page .logo-mark { width: 80px; height: 80px; }
}

/* ---------- page navigation (like the previous system) ---------- */
.np-pop { position: fixed; z-index: 90; width: 280px; max-height: 70vh; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(16,24,40,0.16); }
.np-pop .inp { height: 34px; font-size: 12px; }
.np-list { overflow-y: auto; }
.np-group { font-size: 11px; font-weight: 700; color: var(--label); padding: 8px 8px 2px; }
.np-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 12px; color: var(--ink-2); text-align: start; }
.np-item:hover { background: var(--soft); }
.np-item .ico { color: #9ca3af; }
.tab-row .show-side { display: none; align-self: center; margin-inline-end: 6px; }
body.side-hidden .side { display: none; }
body.side-hidden .tab-row .show-side { display: inline-grid; }
.mob-sheet-head, .mob-sheet-handle { touch-action: none; cursor: grab; }

/* الحسابات page (accounts section's own page, phone first) */
.acc-card { background: #fff; border-radius: 20px; padding: 16px 18px 18px; margin: 0 0 14px; border: 1px solid #eef0f3; }
.acc-hero-label { display: block; font-size: 15px; color: #9aa2ad; font-weight: 600; }
.acc-hero-num { display: block; font-size: 30px; font-weight: 800; color: #111827; direction: ltr; text-align: end; margin: 2px 0 14px; }
.acc-hero-num.red, .acc-num.red { color: #e74c3c; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.acc-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acc-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: #f7f8fa; }
.acc-cell small { font-size: 14px; color: #9aa2ad; font-weight: 600; }
.acc-num { font-size: min(17px, 4.2vw); font-weight: 700; color: #111827; overflow-wrap: anywhere; direction: ltr; text-align: end; line-height: 1.35; }
.acc-num.green { color: #27ae60; } .acc-num.blue { color: #2b74d6; } .acc-num.orange { color: #f39c12; }
.acc-boxes { margin-top: 14px; border-top: 1px solid #f0f1f4; padding-top: 10px; }
.acc-sub { display: block; font-size: 14px; color: #9aa2ad; font-weight: 600; margin-bottom: 4px; }
.acc-box { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; font-size: 16px; color: #374151; font-weight: 600; }
.acc-box + .acc-box { border-top: 1px dashed #eef0f3; }
.acc-head { display: flex; align-items: center; margin: 4px 4px 10px; font-size: 18px; color: #111827; }
.acc-head.in { margin: 0 0 12px; }
.acc-segs { margin-bottom: 14px; }
.acc-list { padding: 4px 0; }
.acc-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border: 0; background: none; text-align: start; cursor: pointer; font: inherit; }
.acc-row + .acc-row { border-top: 1px solid #f2f3f5; }
.acc-row:active { background: #f7f8fa; }
.acc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; }
.acc-row-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.acc-row-text b { font-size: 18px; color: #111827; font-weight: 700; }
.acc-row-text small { font-size: 14px; color: #9aa2ad; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-dot { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #e74c3c; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.acc-chev { display: grid; transform: rotate(90deg); }
[dir="ltr"] .acc-chev { transform: rotate(-90deg); }
body:not(.mob) .acc-card { border-radius: 12px; }
body:not(.mob) .screen > .acc-card, body:not(.mob) .screen > .acc-head { max-width: 900px; }
/* «بيع بالسالب» in the corner of the sale sheet (phone) */
.mob-neg { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; border: 1px solid #e5e7eb; border-radius: 25px;
  background: #fff; color: #374151; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.mob-neg i { font-size: 18px; color: #9aa2ad; }
.mob-neg.on { background: #111827; border-color: #111827; color: #fff; }
.mob-neg.on i { color: #fff; }

/* حجم الخط: the phone text size chooser */
.mob-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.mob-size { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; color: var(--ink); font: inherit; }
.mob-size.on { border-color: #2b74d6; background: #e8f0fe; color: #2b74d6; }
.mob-size b { font-size: 15px; }
.mob-size-aa { font-weight: 700; line-height: 1.2; }
.mob-size-small .mob-size-aa { font-size: 18px; } .mob-size-medium .mob-size-aa { font-size: 22px; }
.mob-size-large .mob-size-aa { font-size: 26px; } .mob-size-xlarge .mob-size-aa { font-size: 31px; }

/* Phone (2026-11-21): small buttons get a finger-sized touch area and a clearer icon, the
   smallest writing in the lists grows, and the orders page fits the sheet. */
.mob-sheet .icon-btn, .mob-sheet .rw-mic, .mob-sheet .ra-period-text { position: relative; }
.mob-sheet .icon-btn::after, .mob-sheet .rw-mic::after, .mob-sheet .ra-mic::after, .mob-sheet .ra-period-text::after {
  content: ""; position: absolute; inset: -9px -5px; }
.mob-sheet .icon-btn { font-size: 15px; }
.mob-sheet .rw-mic { font-size: 15px; padding: 0 5px; }
html body .mob-sheet .cus-bal small, html body .mob-sheet .elm-stock small, html body .mob-sheet .ra-cell small, html body .mob-sheet .ra-money small,
html body .mob-sheet .rep-amt small, html body .mob-sheet .sl_opt_txt small, html body .mob-sheet .ra-lcard-foot span, html body .mob-sheet .sl_bar_total span,
html body .mob-sheet .badge, html body .mob-sheet .badge.ra-pill, html body .mob-sheet .badge.ra-cur, html body .mob-sheet small.cus-sub, html body .mob-sheet .cus-sub, html body .mob-sheet .elm-code, html body .mob-sheet .elm-group-count, html body .mob-sheet .elm-label,
html body .mob-sheet .hint, html body .mob-sheet .ra-lcard-foot .num, html body .mob-sheet .sl_bar_total small, html body .mob-sheet .sl_bar_total div small { font-size: 11.5px; }
html body .mob-sheet-body .screen > .ord, html body .mob-sheet-body .ord { margin-inline: -10px; }
