/* SHABAB MUAMALAT — NEXUS look (same family as SHABAB HR PRO 2.6): NEXUS Night (navy + gold, default), NEXUS Light, Lavender Night.
   Fonts: Montserrat (Latin) + Tajawal (Arabic), both SIL Open Font License, served from /w/fonts. */
@font-face { font-family: "Montserrat"; src: url("/w/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/w/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/w/fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/w/fonts/tajawal-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; src: url("/w/fonts/tajawal-arabic-700-normal.woff2") format("woff2"); font-weight: 600 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
:root, [data-theme="nexus"] {
  --bg: #06122b; --bg2: #0a1d44; --card: #0f1c38; --card2: #13254a; --text: #eef2fb; --muted: #a7b6d3; --line: #22345c; --primary: #d9ae4e; --primary2: #e8c56b; --primaryText: #1c1300;
  --accent: #d9ae4e; --side: #040d22; --side2: #06122b; --sideText: #e3e8ee; --sideMute: #93a3c0; --hero1: #0b2a6f; --hero2: #071a45;
  --ok: #34d399; --okBg: #0f2e1c; --warn: #fbbf24; --warnBg: #3a2a10; --bad: #f87171; --badBg: #3b171a; --info: #7cc4f5; --infoBg: #0f2c44;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.4); --input: #0a1733; color-scheme: dark;
}
[data-theme="nexuslight"] {
  --bg: #f4f1ea; --bg2: #ece6d8; --card: #ffffff; --card2: #faf8f3; --text: #0b1f4a; --muted: #5a6785; --line: #e3dccb; --primary: #0b1f4a; --primary2: #16306b; --primaryText: #ffffff;
  --accent: #8a6a1f; --side: #0b1f4a; --side2: #071637; --sideText: #e3e8ee; --sideMute: #aab8c5; --hero1: #0b2a6f; --hero2: #0a1d44;
  --ok: #047857; --okBg: #e6f3ea; --warn: #a14a07; --warnBg: #fff3df; --bad: #c81e1e; --badBg: #fbecea; --info: #0b5f8a; --infoBg: #e3f1fa;
  --shadow: 0 1px 2px rgba(11,38,58,.05), 0 8px 24px rgba(11,38,58,.07); --input: #ffffff; color-scheme: light;
}
[data-theme="lavender"] {
  --bg: #14112a; --bg2: #1c1838; --card: #221d42; --card2: #2a2450; --text: #f5f2ff; --muted: #c2b9e6; --line: #3a3366; --primary: #b9a2ff; --primary2: #d7c8ff; --primaryText: #160f33;
  --accent: #ff8fb8; --side: #0f0c22; --side2: #1d1840; --sideText: #efe9ff; --sideMute: #b3a9dc; --hero1: #3b2a7a; --hero2: #120e28;
  --ok: #6ee7a8; --okBg: #12352a; --warn: #ffc26b; --warnBg: #3a2a12; --bad: #ff8fa3; --badBg: #401a2a; --info: #8fd8ff; --infoBg: #15304d;
  --shadow: 0 1px 2px rgba(5,4,20,.4), 0 10px 30px rgba(8,5,30,.55); --input: #1a1636; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Montserrat", "Tajawal", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] button, [dir="rtl"] select, [dir="rtl"] textarea { font-family: "Tajawal", "Montserrat", "Segoe UI", sans-serif; }
a { color: var(--primary); text-decoration: none; } [data-theme="nexuslight"] a { color: #1b4fb8; }
h1, h2, h3 { margin: 0 0 10px; line-height: 1.2; } h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: end; } .center { text-align: center; } .nowrap { white-space: nowrap; } .hide { display: none !important; }
.num { font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .col { display: flex; flex-direction: column; gap: 8px; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* ---------- shell */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--side), var(--side2)); color: var(--sideText); position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 14px 10px 30px; border-inline-end: 1px solid rgba(217,174,78,.15); }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.side .brand img { width: 42px; height: 42px; border-radius: 11px; } .side .brand b { display: block; font-size: 15px; letter-spacing: .5px; } .side .brand small { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
[data-theme="nexuslight"] .side .brand small { color: #e8c56b; }
.nav a, .nav button.grp { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; color: var(--sideText); font-size: 13.5px; font-weight: 600; background: none; border: 0; cursor: pointer; text-align: start; font-family: inherit; position: relative; }
.nav a:hover, .nav button.grp:hover { background: rgba(255,255,255,.06); }
.nav a.on { background: linear-gradient(90deg, #d9ae4e, #e8c56b); color: #1c1300; } [data-theme="lavender"] .nav a.on { background: linear-gradient(90deg, #b9a2ff, #d7c8ff); color: #160f33; }
.nav a.on::before { content: ""; position: absolute; inset-inline-start: -10px; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: #e8c56b; }
.nav svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.nav a:not(.on) svg, .nav button.grp svg.ic { stroke: #e2b85a; } [data-theme="lavender"] .nav a:not(.on) svg, [data-theme="lavender"] .nav button.grp svg.ic { stroke: #c9b6ff; }
.nav .arrow { margin-inline-start: auto; transition: transform .15s; width: 14px; height: 14px; stroke: var(--sideMute); } .nav .open > .grp .arrow { transform: rotate(90deg); } [dir="rtl"] .nav .open > .grp .arrow { transform: rotate(-90deg); }
.nav .sub { display: none; padding-inline-start: 18px; margin: 2px 0 4px; border-inline-start: 1px dashed rgba(217,174,78,.25); margin-inline-start: 18px; } .nav .open > .sub { display: block; }
.nav .sub a { font-weight: 500; font-size: 13px; padding: 7px 10px; }
.nav a.gold:not(.on) { background: rgba(217,174,78,.14); color: #f2d48c; border: 1px solid rgba(217,174,78,.35); }
.nav .cnt { margin-inline-start: auto; background: var(--bad); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; font-weight: 700; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .ham { display: none; }
.search { position: relative; flex: 1; max-width: 520px; } .search input { width: 100%; padding-inline-start: 36px; }
.search svg { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 2; }
.sres { position: absolute; top: 44px; inset-inline: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto; z-index: 50; padding: 6px; }
.sres a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--text); } .sres a:hover, .sres a.sel { background: var(--card2); } .sres .h { font-size: 11px; color: var(--muted); padding: 8px 10px 2px; text-transform: uppercase; letter-spacing: 1px; }
.content { padding: 18px; max-width: 1500px; width: 100%; }
.demo-badge { background: #facc15; color: #3b2a00; font-weight: 900; padding: 3px 10px; border-radius: 8px; font-size: 12px; letter-spacing: 1px; }
.lic { background: var(--warnBg); color: var(--warn); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-weight: 600; }
/* ---------- controls */
input, select, textarea { background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 14px; font-family: inherit; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 0; border-color: var(--primary); }
textarea { min-height: 70px; width: 100%; } label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; } label > input, label > select, label > textarea { color: var(--text); font-weight: 400; }
label.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-weight: 500; } label.chk input { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--card2); color: var(--text); padding: 9px 14px; border-radius: 11px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); } .btn:disabled { opacity: .5; cursor: default; }
.btn.pri { background: linear-gradient(180deg, var(--primary2), var(--primary)); color: var(--primaryText); border-color: transparent; }
.btn.gold { background: linear-gradient(180deg, #f0cf79, #d9ae4e); color: #1c1300; border-color: transparent; }
.btn.ok { background: #16a34a; color: #fff; border-color: transparent; } .btn.bad { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; } .btn.ghost { background: transparent; } .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.pw { position: relative; display: flex; } .pw input { flex: 1; padding-inline-end: 40px; } .pw .eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; }
.pw .eye svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tabs button { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-family: inherit; font-size: 13.5px; }
.tabs button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; } .chip { border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 5px 11px; border-radius: 20px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--primary); color: var(--primaryText); border-color: transparent; } .chip b { opacity: .7; margin-inline-start: 4px; }
.st { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; background: var(--infoBg); color: var(--info); white-space: nowrap; }
.st.ok { background: var(--okBg); color: var(--ok); } .st.warn { background: var(--warnBg); color: var(--warn); } .st.bad { background: var(--badBg); color: var(--bad); } .st.mute { background: var(--card2); color: var(--muted); }
/* ---------- cards, tiles, tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
[data-theme="nexus"] .card { border-top: 1px solid rgba(217,174,78,.22); } [data-theme="nexuslight"] .card { border-top: 2px solid rgba(180,138,44,.35); }
.card > .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card > .hd h2, .card > .hd h3 { margin: 0; flex: 1; }
.page-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; } .page-h h1 { margin: 0; flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; cursor: pointer; }
.tile::after { content: ""; position: absolute; inset-inline-end: -20px; top: -20px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(217,174,78,.22), transparent 70%); }
.tile .k { color: var(--muted); font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; } .tile .k svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.tile .v { font-size: 21px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; } .tile .v small { font-size: 12px; color: var(--muted); font-weight: 600; } .tile .s { font-size: 11.5px; color: var(--muted); }
.hero { background: radial-gradient(120% 140% at 85% 0%, var(--hero1), var(--hero2) 70%); color: #fff; border-radius: 20px; padding: 18px 20px; margin-bottom: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px solid rgba(217,174,78,.25); }
.hero h1 { color: #fff; margin: 0; } .hero p { margin: 4px 0 0; opacity: .85; } .hero .grow { min-width: 220px; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { text-align: start; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); white-space: nowrap; }
table.t td { padding: 9px 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: middle; } table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--card2); }
table.t tfoot td { font-weight: 800; border-top: 2px solid var(--line); border-bottom: 0; } table.t td.num, table.t th.num { text-align: end; }
.tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
table.t svg, .chip svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: -2px; } table.t .btn svg { width: 16px; height: 16px; } /* 1.0.1: icons inside tables / chips */
.tw { overflow: auto; max-width: 100%; } .empty { padding: 30px; text-align: center; color: var(--muted); }
.list-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .list-tools input[type=search] { min-width: 220px; flex: 1; max-width: 360px; }
/* ---------- entry grid */
.eg { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1100px; } .eg th { font-size: 11px; color: var(--muted); text-transform: uppercase; text-align: start; padding: 6px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.eg td { padding: 3px 3px; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); vertical-align: top; } .eg input, .eg select { width: 100%; padding: 7px 7px; font-size: 13px; border-radius: 8px; } .eg td.amt { text-align: end; font-weight: 800; padding-top: 10px; white-space: nowrap; }
.eg .svc { position: relative; min-width: 220px; } .eg .x { background: none; border: 0; color: var(--bad); cursor: pointer; font-size: 18px; padding: 4px; }
.dd { position: absolute; z-index: 40; top: 100%; inset-inline: 0; min-width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 300px; overflow: auto; padding: 4px; }
.dd div { padding: 7px 9px; border-radius: 8px; cursor: pointer; display: flex; gap: 8px; } .dd div:hover, .dd div.sel { background: var(--card2); } .dd small { color: var(--muted); margin-inline-start: auto; white-space: nowrap; }
.tot { display: grid; grid-template-columns: auto 160px; gap: 6px 14px; align-items: center; justify-content: end; } .tot .gt { font-size: 22px; font-weight: 900; color: var(--accent); }
.savebar { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 14px; z-index: 5; }
/* ---------- files grid */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.fcard .th { height: 120px; background: var(--card2); display: flex; align-items: center; justify-content: center; position: relative; } .fcard .th img { width: 100%; height: 100%; object-fit: cover; }
.fcard .th svg { width: 46px; height: 46px; stroke: var(--accent); fill: none; stroke-width: 1.4; } .fcard .bd { padding: 9px 10px; } .fcard .nm { font-weight: 700; font-size: 12.5px; word-break: break-word; } .fcard .exp { position: absolute; top: 8px; inset-inline-end: 8px; }
.drop { border: 2px dashed color-mix(in srgb, var(--primary) 60%, transparent); border-radius: 18px; padding: 30px; text-align: center; background: color-mix(in srgb, var(--primary) 6%, transparent); cursor: pointer; } .drop.over { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.drop svg { width: 46px; height: 46px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
/* ---------- calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .cal .d { background: var(--card2); border-radius: 10px; min-height: 66px; padding: 6px; font-size: 12px; cursor: pointer; border: 1px solid transparent; }
.cal .d.today { border-color: var(--primary); } .cal .d.out { opacity: .35; } .cal .d b { display: block; } .cal .hd2 { font-size: 11px; color: var(--muted); text-align: center; font-weight: 700; }
/* ---------- modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,20,.62); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow-y: auto; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 640px; box-shadow: 0 30px 80px rgba(0,0,0,.5); } .modal.wide { max-width: 1000px; }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); } .modal .mh h2 { margin: 0; flex: 1; } .modal .mb { padding: 16px 18px; } .modal .mf { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--ok); padding: 11px 14px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; max-width: 380px; } .toast.err { border-inline-start-color: var(--bad); }
.menu-pop { position: absolute; top: 46px; inset-inline-end: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 230px; padding: 6px; z-index: 60; } .menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 9px; color: var(--text); background: none; border: 0; cursor: pointer; font-family: inherit; font-size: 13.5px; text-align: start; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--card2); } .menu-pop svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 1.8; } .menu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.relative { position: relative; }
/* ---------- login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--bg); }
.login .art { background: #04112e url("/w/img/banner.webp") center / contain no-repeat; position: relative; } .login .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 85%, var(--bg)); } [dir="rtl"] .login .art::after { background: linear-gradient(270deg, transparent 60%, var(--bg)); }
.login .box { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 5vw, 70px); gap: 14px; max-width: 520px; width: 100%; } .login .box img.lg { width: 74px; border-radius: 18px; } .login .box .ver { color: var(--muted); font-size: 12px; }
/* ---------- print */
.doc { background: #fff; color: #111; padding: 26px 30px; border-radius: 12px; max-width: 1050px; margin: 0 auto; font-size: 12.5px; }
.doc table { width: 100%; border-collapse: collapse; } .doc th { background: #0b1f4a; color: #fff; padding: 6px; font-size: 11px; text-align: start; } .doc td { border-bottom: 1px solid #ddd; padding: 6px; vertical-align: top; } .doc .n { text-align: end; white-space: nowrap; }
.doc .dh { display: flex; gap: 16px; align-items: center; border-bottom: 3px solid #d9ae4e; padding-bottom: 12px; margin-bottom: 12px; } .doc .dh img { width: 70px; height: 70px; object-fit: contain; } .doc .ttl { text-align: center; font-size: 18px; font-weight: 900; letter-spacing: 1px; margin: 8px 0; color: #0b1f4a; }
.doc .box2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; } .doc .box2 > div { border: 1px solid #ddd; border-radius: 8px; padding: 8px 10px; } .doc .ar { direction: rtl; font-family: "Tajawal", sans-serif; }
.doc .totals { margin-inline-start: auto; width: 360px; margin-top: 8px; } .doc .totals td { border: 0; padding: 3px 6px; } .doc .totals tr.g td { font-size: 15px; font-weight: 900; border-top: 2px solid #0b1f4a; }
@media print { body { background: #fff !important; } .side, .top, .noprint, .savebar, .toasts { display: none !important; } .app { display: block; } .content { padding: 0; max-width: none; } .doc { box-shadow: none; padding: 0; border-radius: 0; } @page { size: A4; margin: 10mm; } }
/* ---------- phone */
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; } .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 90; transform: translateX(-105%); transition: transform .2s; } [dir="rtl"] .side { transform: translateX(105%); }
  body.menu-open .side { transform: none; } body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80; } .top .ham { display: inline-flex; }
  .tiles, .tiles.t3, .tiles.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile .v { font-size: 17px; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .content { padding: 12px; } .login { grid-template-columns: 1fr; } .login .art { display: none; }
  .login { background: #04112e url("/w/img/splash.webp") center top / cover no-repeat; } .login .box { background: color-mix(in srgb, var(--bg) 88%, transparent); margin: 40vh auto 0; border-radius: 22px 22px 0 0; }
  .top .hide-sm { display: none; } .tot { grid-template-columns: auto 130px; }
}
p.small.bad, .small.bad { color: var(--bad); font-weight: 600; }
