/* Al Naser Developments — Sales System stylesheet (SPEC 4.3).
   Sections: tokens · base · layout (shell) · components · pages (login, account, screens) · phone · RTL · pdf.
   Dark is the default theme; light applies with [data-theme="light"] or the OS preference unless
   [data-theme="dark"] is set. Use logical properties (inline-start/end) so Arabic RTL mirrors itself. */

/* ================================================================ tokens */
:root {
  --bg: #0f1114;
  --panel: #171a1f;
  --panel2: #1e2228;
  --line: #2a2f37;
  --line-soft: #22262d;
  --text: #e9e6df;
  --muted: #9aa0a8;
  --gold: #c8a45c;
  --gold-ink: #1a1408;
  --gold-text: #d7b878;
  --ok: #3fae6a;
  --warn: #d9a43a;
  --bad: #d65a5a;
  --info: #5b8fd6;
  --grey: #8a9099;

  --input-bg: #121519;
  --hover: rgba(255, 255, 255, .045);
  --zebra: rgba(255, 255, 255, .018);
  --gold-soft: rgba(200, 164, 92, .13);
  --gold-line: rgba(200, 164, 92, .38);
  --backdrop: rgba(4, 5, 7, .62);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .3);

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;
  --sb-w: 252px;
  --topbar-h: 64px;
  --font: 'Jost', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Jost', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f4ef;
  --panel: #ffffff;
  --panel2: #f1eee7;
  --line: #e2dccf;
  --line-soft: #ece8df;
  --text: #1c1d20;
  --muted: #676b73;
  --gold: #a8843c;
  --gold-ink: #1a1408;
  --gold-text: #8a6a28;
  --ok: #2c8a52;
  --warn: #b27a12;
  --bad: #c24444;
  --info: #3d6fb8;
  --grey: #7c8189;
  --input-bg: #fdfcf9;
  --hover: rgba(28, 29, 32, .045);
  --zebra: rgba(28, 29, 32, .018);
  --gold-soft: rgba(168, 132, 60, .12);
  --gold-line: rgba(168, 132, 60, .42);
  --backdrop: rgba(28, 26, 22, .38);
  --shadow-sm: 0 1px 2px rgba(40, 32, 16, .06);
  --shadow: 0 10px 30px rgba(40, 32, 16, .10), 0 2px 6px rgba(40, 32, 16, .06);
  --shadow-lg: 0 24px 60px rgba(40, 32, 16, .16), 0 4px 12px rgba(40, 32, 16, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4ef;
    --panel: #ffffff;
    --panel2: #f1eee7;
    --line: #e2dccf;
    --line-soft: #ece8df;
    --text: #1c1d20;
    --muted: #676b73;
    --gold: #a8843c;
    --gold-ink: #1a1408;
    --gold-text: #8a6a28;
    --ok: #2c8a52;
    --warn: #b27a12;
    --bad: #c24444;
    --info: #3d6fb8;
    --grey: #7c8189;
    --input-bg: #fdfcf9;
    --hover: rgba(28, 29, 32, .045);
    --zebra: rgba(28, 29, 32, .018);
    --gold-soft: rgba(168, 132, 60, .12);
    --gold-line: rgba(168, 132, 60, .42);
    --backdrop: rgba(28, 26, 22, .38);
    --shadow-sm: 0 1px 2px rgba(40, 32, 16, .06);
    --shadow: 0 10px 30px rgba(40, 32, 16, .10), 0 2px 6px rgba(40, 32, 16, .06);
    --shadow-lg: 0 24px 60px rgba(40, 32, 16, .16), 0 4px 12px rgba(40, 32, 16, .08);
    color-scheme: light;
  }
}

/* Theme-dependent logo: white artwork on dark, dark artwork on light. */
.logo { display: inline-block; line-height: 0; }
.logo-on-light { display: none; }
:root[data-theme="light"] .logo-on-dark { display: none; }
:root[data-theme="light"] .logo-on-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-on-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-on-light { display: block; }
}

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); font-size: 14.5px; }
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin: 0 0 var(--s2); font-weight: 500; line-height: 1.25; letter-spacing: -.005em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
html[lang="ar"] :is(h1, h2, h3, h4) { letter-spacing: 0; font-weight: 600; }
p { margin: 0 0 var(--s3); }
a { color: var(--gold-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-soft); }
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.center { text-align: center; }
.display { font-size: 40px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.display small { font-size: 16px; font-weight: 400; letter-spacing: 0; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.link { color: var(--gold-text); display: inline-flex; align-items: center; gap: 4px; }
.page-lead { color: var(--muted); font-size: 15px; margin: 0 0 var(--s5); }

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Scrollbars (WebKit + Firefox) */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.skip-link {
  position: absolute; inset-inline-start: var(--s3); top: -48px; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: var(--s2) var(--s4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s3); }

.boot-splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: var(--s6); }
.boot-splash img { width: 149px; height: auto; opacity: .9; }
.noscript { text-align: center; padding: var(--s8); color: var(--muted); }

/* ================================================================ layout: shell */
.app { display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  background: var(--panel);
  border-inline-end: 1px solid var(--line);
  z-index: 40;
}
.sb-brand { display: flex; align-items: center; justify-content: space-between; padding: var(--s6) var(--s5) var(--s5); }
.brand { display: inline-flex; border-radius: var(--radius-sm); }
.brand .logo img { width: 96px; height: auto; }
.brand:hover { text-decoration: none; }


.nav { flex: 1; padding: 0 var(--s3) var(--s4); }
.nav-group { padding-top: var(--s3); }
.nav-group + .nav-group { margin-top: var(--s2); border-top: 1px solid var(--line-soft); }
.nav-group-label {
  padding: var(--s2) var(--s3) var(--s1);
  font-size: 11px; font-weight: 500; color: var(--muted); opacity: .85;
}
html[lang="en"] .nav-group-label { text-transform: uppercase; letter-spacing: .09em; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 40px; padding: var(--s2) var(--s3); margin: 2px 0;
  border-radius: 8px;
  color: var(--muted); font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item .ico { width: 19px; height: 19px; opacity: .9; }
.nav-item:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--gold-soft); color: var(--text); }
.nav-item[aria-current="page"] .ico { color: var(--gold); opacity: 1; }
.nav-item[aria-current="page"]::before {
  content: ""; position: absolute; inset-inline-start: -12px; top: 9px; bottom: 9px; width: 3px;
  border-start-end-radius: 3px; border-end-end-radius: 3px; background: var(--gold);
}
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 600;
}
.sb-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s4) var(--s5); border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--muted);
}
.env-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px dashed var(--gold-line); color: var(--gold-text);
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s3);
  padding: 0 var(--s8);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.page-title {
  flex: 1; min-width: 0; margin: 0;
  font-size: 20px; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: var(--s2); }
#page {
  flex: 1; width: 100%; max-width: 1440px;
  padding: var(--s6) var(--s8) var(--s12);
}
#page:focus { outline: none; }

/* popovers (bell, user menu) */
.pop-wrap { position: relative; }
.popover {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 50;
  width: 340px; max-width: calc(100vw - 24px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pop-in .14s ease-out;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line-soft); }
.pop-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s2) var(--s4); border-top: 1px solid var(--line-soft); }
.pop-body { max-height: min(70vh, 520px); overflow-y: auto; }
.pop-empty { display: flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s8) var(--s4); margin: 0; color: var(--muted); }
.notif-list { list-style: none; margin: 0; padding: var(--s1) 0; }
.notif > a, .notif > div {
  display: flex; gap: var(--s3); padding: var(--s3) var(--s4); color: var(--text);
}
.notif > a:hover { background: var(--hover); text-decoration: none; }
.notif + .notif { border-top: 1px solid var(--line-soft); }
.notif-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; flex: none; background: transparent; }
.notif.unread .notif-dot { background: var(--gold); }
.notif-text { display: grid; gap: 2px; min-width: 0; }
.notif-text b { font-weight: 500; }
.notif-text span { color: var(--muted); font-size: 13px; }

.bell { position: relative; }
.bell-badge {
  position: absolute; top: 3px; inset-inline-end: 2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 600;
  border: 2px solid var(--bg);
}
.user-btn {
  display: flex; align-items: center; gap: var(--s2);
  height: 44px; padding: 0 var(--s2) 0 var(--s1); padding-inline: var(--s1) var(--s2);
  background: transparent; border: 1px solid transparent; border-radius: 999px;
}
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--hover); border-color: var(--line-soft); }
.user-meta { display: grid; text-align: start; line-height: 1.2; }
.user-meta b { font-weight: 500; font-size: 13.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: var(--muted); font-size: 11.5px; }
.user-btn .chev { width: 16px; height: 16px; color: var(--muted); }
.user-pop { width: 300px; padding-bottom: var(--s2); }
.um-head { display: flex; gap: var(--s3); align-items: center; padding: var(--s4); border-bottom: 1px solid var(--line-soft); margin-bottom: var(--s2); }
.um-id { display: grid; min-width: 0; line-height: 1.35; }
.um-id strong { font-weight: 500; }
.um-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 6px var(--s4); }
.um-label { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); }
.um-sep { height: 1px; background: var(--line-soft); margin: var(--s2) 0; }
.um-item {
  display: flex; align-items: center; gap: var(--s3); width: 100%;
  min-height: 40px; padding: 0 var(--s4);
  background: none; border: 0; color: var(--text); text-align: start;
}
.um-item:hover { background: var(--hover); text-decoration: none; }
.um-item .ico { color: var(--muted); }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-text);
  border: 1px solid var(--gold-line);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }

/* ================================================================ components */

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 40px; padding: 0 var(--s4);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel2); color: var(--text);
  font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, filter .15s;
  position: relative;
}
.btn:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--line)); text-decoration: none; }
.btn .ico { width: 17px; height: 17px; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.primary:hover { filter: brightness(1.07); border-color: var(--gold); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--hover); border-color: transparent; }
.btn.danger {
  background: color-mix(in srgb, var(--bad) 14%, transparent);
  border-color: color-mix(in srgb, var(--bad) 45%, transparent);
  color: color-mix(in srgb, var(--bad) 80%, var(--text));
}
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 22%, transparent); border-color: var(--bad); }
.btn.sm { height: 32px; padding: 0 var(--s3); font-size: 13px; border-radius: 8px; }
.btn.lg { height: 48px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; }
.btn.busy { color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  border-radius: 50%; border: 2px solid currentColor; border-color: var(--gold-ink) transparent var(--gold-ink) var(--gold-ink);
  animation: spin .7s linear infinite; opacity: .8;
}
.btn:not(.primary).busy::after { border-color: var(--text) transparent var(--text) var(--text); }
.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--muted);
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.icon-btn .ico { width: 20px; height: 20px; }
.topbar .hamburger, .sidebar .sb-close { display: none; }

/* segmented control (language, theme) */
.seg {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
}
.seg button {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 36px; height: 30px; padding: 0 var(--s3);
  border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font-weight: 500; justify-content: center;
}
.seg button .ico { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
:root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: #2a2f37; }
:root[data-theme="light"] .seg button[aria-pressed="true"] { background: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .seg button[aria-pressed="true"] { background: #fff; } }
.seg button[lang="ar"] { font-family: var(--font-ar); font-size: 15px; }

/* cards and grids */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); box-shadow: var(--shadow-sm); min-width: 0;
}
.card.inset { background: var(--panel2); border-color: var(--line-soft); box-shadow: none; }
.card-title { display: flex; align-items: center; gap: var(--s2); font-size: 15px; font-weight: 500; margin: 0 0 var(--s4); }
.card-title .ico { color: var(--gold); }
.grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1020px) { .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid.cols-2 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.row.center { justify-content: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* fields */
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .field > .label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
.toolbar input:not([type=checkbox]):not([type=radio]), .toolbar select {
  width: 100%; height: 40px; padding: 0 var(--s3);
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.field textarea { height: auto; min-height: 84px; padding: 10px var(--s3); resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder, .toolbar input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:hover, .field select:hover, .field textarea:hover, .toolbar input:hover, .toolbar select:hover { border-color: color-mix(in srgb, var(--text) 20%, var(--line)); }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.field [aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 15%, transparent) !important; }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .6; cursor: not-allowed; }
.field select, .toolbar select {
  appearance: none; -webkit-appearance: none;
  padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: right 12px center;
}
[dir="rtl"] .field select, [dir="rtl"] .toolbar select { background-position: left 12px center; }
.field input[type=number] { font-variant-numeric: tabular-nums; }
[dir="rtl"] .field input.num, [dir="rtl"] .field input[type=number] { text-align: right; }
.hint { color: var(--muted); font-size: 12px; }
.field-error, .form-error { color: var(--bad); font-size: 12.5px; margin: 0; }
.form-error { padding: var(--s2) var(--s3); border-radius: var(--radius); background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.check { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; cursor: pointer; color: var(--text); font-size: 14px; font-weight: 400; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--gold); }
.input-affix { position: relative; display: block; }
.input-affix input { padding-inline-end: 44px !important; }
/* an LTR field (username, password) inside RTL: the button sits on the left, so pad the left */
[dir="rtl"] .input-affix input[dir="ltr"] { padding-left: 44px !important; padding-right: 12px !important; }
.affix-btn {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}
button.affix-btn:hover { background: var(--hover); color: var(--text); }

/* tabs and toolbar */
.tabs {
  display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin-bottom: var(--s4);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs > button, .tabs > a {
  flex: none; position: relative;
  padding: var(--s3) var(--s4); min-height: 44px;
  border: 0; background: none; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.tabs > button:hover, .tabs > a:hover { color: var(--text); text-decoration: none; }
.tabs > [aria-selected="true"] { color: var(--text); }
.tabs > [aria-selected="true"]::after {
  content: ""; position: absolute; inset-inline: var(--s3); bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold);
}
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin: 0 0 var(--s4); }
.toolbar > select { width: auto; min-width: 140px; max-width: 220px; }
.toolbar > .search, .toolbar > input[type=search] { flex: 1 1 220px; max-width: 360px; }
.toolbar .btn { height: 40px; }
.toolbar .btn.sm { height: 34px; }

/* tables */
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tbl-wrap.scroll { max-height: calc(100vh - 220px); }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th {
  position: sticky; top: 0; z-index: 1;
  padding: 10px var(--s3); text-align: start; white-space: nowrap;
  background: var(--panel2); color: var(--muted);
  font-size: 12px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
html[lang="en"] .tbl th { letter-spacing: .03em; }
:not(.tbl-wrap) > .tbl th { top: var(--topbar-h); }
.tbl td { padding: 11px var(--s3); border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:nth-child(even) td { background: var(--zebra); }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl .num { text-align: right; white-space: nowrap; }
[dir="rtl"] .tbl .num { text-align: left; }
.tbl tfoot td { font-weight: 600; background: var(--panel2); border-top: 1px solid var(--line); }
.tbl a.strong { color: var(--text); }
.tbl a.strong:hover { color: var(--gold-text); }

/* chips and tags */
.chip {
  --tone: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  color: color-mix(in srgb, var(--tone) 82%, var(--text));
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tone); flex: none; }
.chip .ico { width: 14px; height: 14px; }
.chip.st-available, .chip.pl-approved, .chip.ok { --tone: var(--ok); }
.chip.st-hold, .chip.pl-pending, .chip.warn { --tone: var(--warn); }
.chip.st-reserved, .chip.role-ops, .chip.info { --tone: var(--info); }
.chip.st-contracted, .chip.role-exec, .chip.gold { --tone: var(--gold); }
.chip.st-blocked, .chip.pl-cancelled { --tone: var(--grey); }
.chip.pl-rejected, .chip.bad { --tone: var(--bad); }
.chip.role-leader { --tone: var(--text); background: transparent; }
.chip.role-sales { --tone: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel2);
  font-size: 12px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.tag.gold, .chip.tag { color: var(--gold-text); border-color: var(--gold-line); background: var(--gold-soft); height: 24px; border-radius: 999px; }

/* meter */
.meter { --tone: var(--muted); display: flex; align-items: center; gap: var(--s2); width: 100%; min-width: 80px; }
.meter.ok { --tone: var(--ok); }
.meter.warn { --tone: var(--warn); }
.meter.bad { --tone: var(--bad); }
.meter-track {
  flex: 1; height: 6px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--tone) 18%, transparent);
}
.meter.none .meter-track { background: var(--line-soft); }
.meter-bar { display: block; height: 100%; border-radius: 999px; background: var(--tone); transition: width .4s ease; }
.meter-label { min-width: 40px; text-align: end; font-size: 12px; color: color-mix(in srgb, var(--tone) 75%, var(--text)); font-weight: 500; }
.meter.none .meter-label { color: var(--muted); }

/* KPI tile */
.kpi-tile {
  display: grid; gap: var(--s2); align-content: start;
  padding: var(--s4) var(--s5); min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s;
}
a.kpi-tile:hover { border-color: var(--gold-line); text-decoration: none; }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-value { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.kpi-value small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }

/* empty, error, loading */
.empty { display: grid; justify-items: center; text-align: center; gap: var(--s2); padding: var(--s10) var(--s4); color: var(--muted); }
.empty p { margin: 0; max-width: 420px; }
.empty-ico { width: 36px; height: 36px; color: var(--gold); opacity: .75; stroke-width: 1.4; }
.empty.error .empty-ico { color: var(--bad); }
.empty .btn { margin-top: var(--s2); }
.loading-block { display: grid; justify-items: center; gap: var(--s3); padding: var(--s12) var(--s4); }
.spinner {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--gold);
  animation: spin .75s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  display: block; height: 16px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--panel2) 0%, color-mix(in srgb, var(--panel2) 60%, var(--line)) 50%, var(--panel2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* notices */
.notice {
  --tone: var(--info);
  display: flex; align-items: flex-start; gap: var(--s3);
  padding: 10px var(--s4); margin: 0 0 var(--s3);
  border-radius: var(--radius); font-size: 13.5px;
  background: color-mix(in srgb, var(--tone) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
}
.notice > .ico { color: var(--tone); margin-top: 1px; }
.notice.warn { --tone: var(--warn); }
.notice.bad { --tone: var(--bad); }
.notice.ok { --tone: var(--ok); }
.notice.gold { --tone: var(--gold); }

/* key-value list */
.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* message cards (not allowed, coming soon, errors) */
.message-card { max-width: 560px; margin: var(--s8) auto; text-align: center; padding: var(--s10) var(--s8); display: grid; justify-items: center; gap: var(--s2); }
.message-card h2 { margin: var(--s2) 0 0; font-size: 20px; }
.message-card p { margin: 0 0 var(--s3); max-width: 420px; }
.message-ico {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--line);
  margin: 0 auto;
}
.message-ico .ico { width: 26px; height: 26px; }
.message-ico.gold { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }

/* drawer */
.drawer-root { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; background: var(--backdrop); opacity: 0; transition: opacity .2s; }
.drawer {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(520px, 100vw); display: flex; flex-direction: column;
  background: var(--panel); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}
.drawer.wide { width: min(760px, 100vw); }
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer-root.open .drawer-backdrop { opacity: 1; }
.drawer-root.open .drawer { transform: none; }
.drawer:focus { outline: none; }
.drawer-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.drawer-title { flex: 1; margin: 0; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s5); }
.drawer-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

/* modal (native <dialog>) */
dialog.modal {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); color: var(--text); box-shadow: var(--shadow-lg);
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  overflow: hidden;
}
dialog.modal.wide { width: min(860px, calc(100vw - 32px)); }
dialog.modal[open] { animation: modal-in .16s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
dialog.modal::backdrop { background: var(--backdrop); backdrop-filter: blur(2px); }
.modal-card { display: flex; flex-direction: column; max-height: calc(100vh - 50px); }
.modal-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s5) var(--s5) var(--s2); }
.modal-title { flex: 1; margin: 0; font-size: 17px; }
.modal-x { margin-inline-end: -8px; }
.modal-body { padding: var(--s2) var(--s5) var(--s4); overflow-y: auto; }
.modal-text { margin: 0; color: var(--text); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); padding: var(--s3) var(--s5) var(--s5); }

/* toasts */
.toasts {
  position: fixed; z-index: 90; inset-block-end: var(--s5); inset-inline-end: var(--s5);
  display: flex; flex-direction: column; gap: var(--s2); align-items: flex-end;
  pointer-events: none;
}
.toast {
  --tone: var(--ok);
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s3);
  min-width: 260px; max-width: min(420px, calc(100vw - 24px));
  padding: 10px var(--s2) 10px var(--s4); padding-inline: var(--s4) var(--s2);
  background: var(--panel); border: 1px solid var(--line); border-inline-start: 3px solid var(--tone);
  border-radius: var(--radius); box-shadow: var(--shadow);
  animation: toast-in .2s ease-out;
}
.toast.err { --tone: var(--bad); }
.toast.info { --tone: var(--info); }
.toast > .ico { color: var(--tone); }
.toast-msg { flex: 1; min-width: 0; }
.toast-x { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.toast-x:hover { background: var(--hover); color: var(--text); }
.toast-x .ico { width: 15px; height: 15px; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================================================================ screens outside the shell */
.screen { position: relative; min-height: 100vh; display: grid; place-items: center; padding: var(--s6) var(--s4); }
.screen-card { width: min(460px, 100%); text-align: center; padding: var(--s8); display: grid; gap: var(--s2); justify-items: center; }
.screen-card h1 { font-size: 22px; margin: var(--s2) 0 0; }
.screen-card p { margin: 0 0 var(--s2); }
.screen-card .btn { margin-top: var(--s2); }
.screen-logo img { width: 120px; height: auto; }
.screen-logo { margin-bottom: var(--s4); }
.screen-tools { position: absolute; top: var(--s4); inset-inline-end: var(--s4); display: flex; gap: var(--s2); align-items: center; }
.screen-card.forced { text-align: start; justify-items: stretch; }
.screen-card.forced > .screen-logo, .screen-card.forced > .message-ico { justify-self: center; }
.screen-card.forced h1, .screen-card.forced > p.muted { text-align: center; }
.signed-in-as { display: flex; align-items: center; justify-content: center; gap: var(--s2); color: var(--muted); margin: 0 0 var(--s3); }
.signed-in-as .ico { width: 15px; height: 15px; }

/* login */
.login { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }
.login-brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s12);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(200, 164, 92, .16) 0%, rgba(200, 164, 92, 0) 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(200, 164, 92, .08) 0%, rgba(200, 164, 92, 0) 60%),
    linear-gradient(160deg, #15181d 0%, #0d0f12 100%);
  color: #e9e6df;
  border-inline-end: 1px solid #2a2f37;
}
.login-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(200, 164, 92, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 164, 92, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 30% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000 0%, transparent 100%);
}
.login-brand-inner { position: relative; margin: auto; display: grid; justify-items: center; }
.login-brand .logo-on-dark { display: block !important; }
.login-brand .logo-on-light { display: none !important; }
.logo.xl img { width: 236px; height: auto; }
.login-panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--s12) var(--s6); }
.login-tools { position: absolute; top: var(--s5); inset-inline-end: var(--s5); display: flex; gap: var(--s2); align-items: center; }
.login-card { width: min(400px, 100%); display: grid; gap: var(--s4); }
.login-card h1 { font-size: 30px; margin: 0; }
.login-card > p.muted { margin: -8px 0 var(--s2); }
.login-card .notice { margin: 0; }
.login-logo-sm { display: none; }
.login-forgot { display: flex; gap: var(--s2); align-items: flex-start; font-size: 13px; margin: var(--s1) 0 0; }
.login-forgot .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }
.login-private { position: absolute; bottom: var(--s5); display: flex; align-items: center; gap: 6px; margin: 0; }
.login-private .ico { width: 14px; height: 14px; }

/* account */
.account.grid { align-items: start; }
.account-profile { grid-row: span 2; }
.profile-head { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s4); }
.profile-head h2 { margin: 0 0 6px; font-size: 20px; }
.pw-form { display: grid; gap: var(--s4); margin-top: var(--s3); }
.pw-form .btn:not(.block) { justify-self: start; }
.pw-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: var(--s2); }
.pw-rules .ico {
  width: 18px; height: 18px; padding: 3px; border-radius: 50%;
  border: 1px solid var(--line); color: transparent; stroke-width: 2.4; transition: all .15s;
}
.pw-rules li.ok { color: var(--text); }
.pw-rules li.ok .ico { background: var(--ok); border-color: var(--ok); color: #fff; }
.pref-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.pref-row:last-child { border-bottom: 0; }

.coming-soon .chip { margin-top: var(--s1); }

/* ================================================================ phone and tablet */
@media (max-width: 759.98px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; height: 100%;
    width: min(300px, 86vw);
    transform: translateX(-100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1);
    box-shadow: var(--shadow-lg); z-index: 70;
    visibility: hidden;
  }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .app.nav-open .sidebar { transform: none; visibility: visible; }
  .sidebar .sb-close { display: inline-grid; }
  .sb-brand { padding: var(--s4) var(--s3) var(--s3) var(--s5); padding-inline: var(--s5) var(--s3); }
  .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: var(--backdrop); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .app.nav-open .sb-backdrop { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 var(--s2); padding-inline: var(--s2) var(--s3); gap: var(--s1); height: 58px; }
  .topbar .hamburger { display: inline-grid; }
  .page-title { font-size: 17px; }
  .user-meta, .user-btn .chev { display: none; }
  .user-btn { padding: 0 3px; }
  #page { padding: var(--s4) var(--s4) var(--s10); }
  .popover { position: fixed; top: 64px; inset-inline: 8px; width: auto; max-width: none; }
  .toasts { inset-inline: var(--s3); inset-block-end: var(--s3); align-items: stretch; }
  .toast { min-width: 0; max-width: none; }
  :not(.tbl-wrap) > .tbl th { top: 58px; }
}

@media (max-width: 860px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-brand { display: none; }
  .login-panel { padding: var(--s12) var(--s5) var(--s10); justify-content: flex-start; }
  .login-logo-sm { display: block; margin: var(--s8) 0 var(--s2); }
  .login-logo-sm img { width: 112px; height: auto; }
  .account-profile { grid-row: auto; }
}

@media (max-width: 640px) {
  /* 16px inputs so iOS does not zoom; 40px+ tap targets */
  .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea,
  .toolbar input:not([type=checkbox]):not([type=radio]), .toolbar select { font-size: 16px; height: 44px; }
  .field textarea { height: auto; }
  .btn { min-height: 40px; }
  .btn.sm { height: 40px; min-height: 40px; }
  .seg button { height: 36px; min-width: 44px; }
  .toast-x { width: 40px; height: 40px; }
  .affix-btn { width: 40px; height: 40px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .card { padding: var(--s4); }
  .kpi-tile { padding: var(--s3) var(--s4); }
  .kpi-value { font-size: 22px; }
  .display { font-size: 30px; }
  .toolbar > select, .toolbar > .search, .toolbar > input[type=search] { flex: 1 1 100%; max-width: none; }
  .toolbar > .spacer { display: none; }
  .tabs > button, .tabs > a { padding: var(--s3); }
  .kv > div { grid-template-columns: minmax(96px, 40%) 1fr; }
  .message-card { padding: var(--s8) var(--s4); margin: var(--s4) auto; }
  .screen-card { padding: var(--s6) var(--s5); }
  .modal-actions { padding: var(--s3) var(--s4) var(--s4); }
  .modal-actions .btn { flex: 1 1 auto; }
  .login-tools { top: var(--s3); inset-inline-end: var(--s3); }
  .login-card h1 { font-size: 26px; }
  .login-private { position: static; margin-top: var(--s8); }
  .screen-tools { top: var(--s3); inset-inline-end: var(--s3); }
  .screen { padding-top: var(--s16, 64px); }

  /* tables that become cards */
  .tbl-wrap:has(> .tbl.cards) { border: 0; background: transparent; overflow: visible; }
  .tbl.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--s2) var(--s4); margin-bottom: var(--s3); box-shadow: var(--shadow-sm);
  }
  .tbl.cards tbody tr:nth-child(even) td, .tbl.cards tbody tr:hover td { background: transparent; }
  .tbl.cards td {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
    padding: 7px 0; border-bottom: 1px solid var(--line-soft); text-align: end; min-height: 36px;
  }
  .tbl.cards td:last-child { border-bottom: 0; }
  .tbl.cards td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: start; flex: none; max-width: 50%; }
  .tbl.cards td:not([data-label])::before, .tbl.cards td[data-label=""]::before { content: none; }
  .tbl.cards td:first-child { font-size: 15px; font-weight: 500; }
  .tbl.cards .num, [dir="rtl"] .tbl.cards .num { text-align: end; }
  .tbl.cards tfoot { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .spinner, .btn.busy::after { animation-duration: 1.5s !important; }
}

/* ================================================================ RTL details */
[dir="rtl"] .ico-chevronRight, [dir="rtl"] .ico-chevronLeft, [dir="rtl"] .ico-arrowLeft,
[dir="rtl"] .ico-arrowRight, [dir="rtl"] .ico-logout { transform: scaleX(-1); }
[dir="rtl"] .ico.dir { transform: scaleX(-1); }

/* ================================================================ PDF pages (export.js pdfShell) */
#pdf-host { position: absolute; left: -12000px; top: 0; width: 794px; pointer-events: none; }
.pdf-page {
  width: 794px; height: 1123px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 44px 52px 28px;
  background: #ffffff; color: #1c1d20;
  font-family: var(--font); font-size: 12px; line-height: 1.45;
  --pdf-line: #e2dccf; --pdf-muted: #676b73; --pdf-gold: #a8843c;
}
.pdf-page[lang="ar"] { font-family: var(--font-ar); }
.pdf-head { display: flex; align-items: center; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid var(--pdf-gold); }
.pdf-logo { width: 112px; height: auto; }
.pdf-titles { flex: 1; text-align: end; }
.pdf-titles h1 { font-size: 20px; margin: 0 0 4px; color: #1c1d20; }
.pdf-titles p { margin: 0; color: var(--pdf-muted); font-size: 12px; }
.pdf-body { flex: 1; padding: 22px 0; overflow: hidden; }
.pdf-body table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pdf-body th { text-align: start; background: #f3f0e9; color: #4a4d53; font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--pdf-line); }
.pdf-body td { padding: 6px 8px; border-bottom: 1px solid #efebe3; }
.pdf-body .num { text-align: right; }
.pdf-page[dir="rtl"] .pdf-body .num { text-align: left; }
.pdf-foot { display: flex; align-items: center; gap: 16px; padding-top: 10px; border-top: 1px solid var(--pdf-line); color: var(--pdf-muted); font-size: 10px; }
.pdf-foot .pdf-note { flex: 1; text-align: center; }
