/* KILO: كل الشكل هنا. الأرقام كلها من الشاشات المعتمدة في .impeccable/mocks */
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  /* الأخضر للزراير بس. الحاجة المختارة بإطار أسود */
  --forest: #004018; --deep: #032F14; --cream: #F5F8D9;
  --bg: #FFFFFF; --canvas: #F6F7F3; --surface: #F1F3EE; --hair: #E4E7E0;
  --ink: #141614; --muted: #5B6058; --faint: #93978F; --faint-strong: #7A7F76;
  --warn: #9A4510; --warn-soft: #FCEEE2; --warn-line: #F1D3BA; --alert: #D43F3F;
  --sh-1: 0 1px 2px rgba(3, 47, 20, .05);
  --sh-2: 0 1px 2px rgba(3, 47, 20, .04), 0 10px 28px rgba(3, 47, 20, .07);
  --sh-btn: 0 6px 18px rgba(0, 64, 24, .22);
  --r-card: 20px; --r-field: 16px; --r-chip: 14px;
  --gut: 20px;
  --nav-h: 84px;
  --side-w: 240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--ink);
  font-family: "Tajawal", system-ui, sans-serif; font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: #DCE8D6; color: var(--ink); }
input, textarea { caret-color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--hair); border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.faint { color: var(--faint-strong); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.s { width: 18px; height: 18px; }
svg.i.xs { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- البداية ---------- */
.boot { min-height: 100dvh; display: grid; place-items: center; background: var(--bg); }
.splash img { width: 180px; height: auto; animation: breathe 1.6s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: .55; } to { opacity: 1; } }

/* ---------- شريط التجربة ---------- */
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 30px; padding: 0 16px; white-space: nowrap; overflow: hidden;
  background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--warn);
  font-size: 13px; font-weight: 700; text-align: center;
}
.demo-bar span { color: var(--muted); font-weight: 500; }

/* ---------- الهيكل ---------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.shell.demo { min-height: calc(100dvh - 30px); }
.nav[data-hide-m] { display: none; }
.main:has(+ .nav[data-hide-m]) { padding-bottom: 32px; }
.settings .detail { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px)); }
.page { max-width: 560px; margin: 0 auto; }

/* التنقل تحت (الموبايل) */
.nav {
  position: fixed; inset: auto 0 0 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 10px 8px env(safe-area-inset-bottom, 0px); background: var(--bg); border-top: 1px solid var(--hair);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; text-decoration: none;
  font-size: 12px; font-weight: 500; color: var(--faint-strong); min-height: 56px;
}
.nav .ic { width: 60px; height: 32px; border-radius: 999px; display: grid; place-items: center; transition: background-color .2s var(--ease); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.nav a[aria-current="page"] .ic { background: var(--surface); }
.nav a:active .ic { background: var(--hair); }
.badge {
  min-width: 18px; height: 18px; border-radius: 9px; background: var(--alert); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; line-height: 1;
}
.nav .badge { position: absolute; top: -3px; left: calc(50% + 10px); box-shadow: 0 0 0 2px var(--bg); z-index: 2; }

/* القايمة الجانبية (اللاب) */
.side { display: none; }

/* ---------- راس الصفحة ---------- */
.top { padding: 24px var(--gut) 0; display: flex; align-items: center; gap: 12px; }
.top .ttl { flex: 1; min-width: 0; }
.top h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.top .hi { font-size: 14px; color: var(--muted); display: block; font-weight: 500; margin-bottom: 2px; }
.me {
  width: 44px; height: 44px; border-radius: 50%; background: var(--deep); color: var(--cream);
  display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; text-decoration: none;
  transition: transform .15s var(--ease);
}
.me:active { transform: scale(.94); }
.ib {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg); box-shadow: var(--sh-1); border: 1px solid var(--hair);
  display: grid; place-items: center; flex: none; color: var(--ink); text-decoration: none;
}
.ib:active { background: var(--surface); }
.body { padding: 20px var(--gut) 0; display: flex; flex-direction: column; gap: 16px; }
.cap { font-size: 13px; font-weight: 700; color: var(--muted); margin: 8px 0 -6px; }

/* ---------- مكونات ---------- */
.card { background: var(--bg); border-radius: var(--r-card); box-shadow: var(--sh-1); border: 1px solid var(--hair); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--surface); color: var(--ink);
}
.pill.w { background: var(--warn-soft); color: var(--warn); }
.pill.sm { height: 24px; font-size: 12px; padding: 0 8px; }
.av {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; flex: none; font-size: 17px;
}
.av.lg { width: 52px; height: 52px; font-size: 20px; }
.av.sm { width: 32px; height: 32px; font-size: 14px; }

.btn {
  height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 17px; padding: 0 24px; width: 100%; text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn.pri { background: var(--forest); color: #fff; box-shadow: var(--sh-btn); }
.btn.pri:hover { background: #00361A; }
.btn.sec { background: var(--bg); border: 1px solid var(--hair); color: var(--ink); font-size: 16px; }
.btn.sec:hover { border-color: #CCD1C7; }
.btn:active { transform: scale(.985); }
.btn[disabled], .btn.off { background: var(--surface); color: var(--faint-strong); box-shadow: none; cursor: default; transform: none; }
.btn.busy { pointer-events: none; }
.btn.busy::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-inline-start-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* صفوف الروابط (الإعدادات والتقارير) */
.links .r { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; width: 100%; text-decoration: none; }
.links .r + .r { border-top: 1px solid var(--hair); }
.links .r .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; flex: none; }
.links .r .t { flex: 1; font-weight: 700; min-width: 0; }
.links .r .t small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.links .r .v { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.links button.r:hover, .links a.r:hover { background: var(--canvas); }
.links .r.danger, .links .r.danger .ic { color: var(--alert); }
.links .r:first-child { border-radius: var(--r-card) var(--r-card) 0 0; }
.links .r:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
.links .r:only-child { border-radius: var(--r-card); }

/* اختيار من اتنين أو تلاتة */
.seg2 { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg2 button { height: 40px; padding: 0 12px; white-space: nowrap; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); text-align: center; transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg2 button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--sh-1); }

/* تنبيه برتقاني */
.notice {
  border-radius: var(--r-card); background: var(--warn-soft); border: 1px solid var(--warn-line);
  padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; color: var(--warn);
}
.notice b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.notice span { font-size: 14px; color: var(--muted); }
.notice .t { flex: 1; }

/* اليوم المفتوح */
.open { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--hair); font-size: 14px; }
.open .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.open b { font-weight: 700; }

/* ---------- صفحات المرحلة الجاية ---------- */
.soon { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.soon h2 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.soon p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.soon ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.soon li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.soon li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); margin-top: 9px; flex: none; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts div { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts div + div { border-inline-start: 1px solid var(--hair); }
.facts b { font-size: 24px; font-weight: 800; line-height: 1.2; }
.facts span { font-size: 13px; color: var(--muted); font-weight: 500; }
.facts b.warn { color: var(--warn); }

/* ---------- الإعدادات ---------- */
.me2 { display: flex; align-items: center; gap: 14px; padding: 16px; }
.me2 .t { flex: 1; min-width: 0; }
.me2 b { display: block; font-size: 19px; font-weight: 800; }
.me2 .t span { font-size: 14px; color: var(--muted); display: block; }
.me2 .t .mail { direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.try { padding: 16px; display: flex; flex-direction: column; gap: 14px; border-style: dashed; }
.try .h { display: flex; align-items: center; gap: 10px; }
.try .h b { flex: 1; font-size: 16px; font-weight: 800; }
.try p { font-size: 14px; color: var(--muted); }
.try .seg2 { display: grid; }
.try .lnk { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; min-height: 32px; }

/* ---------- الدخول ---------- */
.login { min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 28px 96px; gap: 16px; text-align: center; position: relative; }
.login .wmk { width: 200px; height: auto; }
.login .sub { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.login .box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.gbtn i {
  width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-style: normal; font-weight: 800; color: #4285F4; font-size: 16px; flex: none;
}
.denied { width: 100%; text-align: right; border-radius: var(--r-card); background: var(--warn-soft); border: 1px solid var(--warn-line); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.denied b { font-size: 17px; font-weight: 800; }
.denied span { font-size: 15px; color: var(--muted); }
.denied .mail { direction: ltr; text-align: right; }
.login .foot { position: absolute; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); inset-inline: 0; font-size: 13px; color: var(--faint-strong); }

/* ---------- رسالة صغيرة ---------- */
.toast {
  position: fixed; z-index: 60; inset-inline: 16px; top: calc(16px + env(safe-area-inset-top, 0px));
  margin: 0 auto; max-width: 420px; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500; box-shadow: var(--sh-2); text-align: center;
  opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.toast.on { opacity: 1; transform: none; }

/* ---------- اللاب ---------- */
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .demo-bar { grid-column: 1 / -1; }
  .nav { display: none; }
  .main { padding: 28px 40px 48px; }
  .page { max-width: 1040px; margin: 0; }
  .side {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh;
    background: var(--bg); border-left: 1px solid var(--hair); padding: 28px 14px;
  }
  .demo .side { height: calc(100dvh - 30px); top: 30px; }
  .side .wm { display: block; margin: 4px 14px 40px; height: 38px; width: auto; align-self: flex-start; }
  .side .wm img { height: 38px; width: auto; }
  .side .cta { margin: 0 4px 20px; width: auto; height: 48px; font-size: 16px; font-weight: 800; }
  .side .it {
    height: 48px; border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
    color: var(--muted); font-weight: 500; font-size: 16px; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease);
  }
  .side .it:hover { background: var(--canvas); color: var(--ink); }
  .side .it[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 700; }
  .side .it .badge { margin-inline-start: auto; height: 20px; min-width: 20px; border-radius: 10px; font-size: 12px; padding: 0 7px; }
  .side .it .badge.ink { background: var(--ink); }
  .side .end { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
  .side .who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--canvas); color: var(--ink); text-decoration: none; }
  .side .who:hover { background: var(--surface); }
  .side .who b { display: block; font-weight: 700; }
  .side .who .t span { display: block; font-size: 13px; color: var(--muted); }
  .top { padding: 0; }
  .top h1 { font-size: 30px; }
  .top .me, .top .ib.close { display: none; }
  .body { padding: 24px 0 0; max-width: 760px; }
  .toast { top: auto; bottom: 32px; transform: translateY(12px); }
  .wide { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .settings { display: grid; grid-template-columns: 390px minmax(0, 560px); gap: 32px; align-items: start; }
  .settings .body { padding-top: 24px; }
  .settings .detail { display: block; padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ======================= طلب جديد (الرسومات v7) ======================= */
.pad { padding: 0 var(--gut); }
.cap.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.cap.row .faint, .cap .faint { font-weight: 500; }
.lk { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; min-height: 32px; }
.lnk { font-size: 14px; font-weight: 700; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.lnk.danger { color: var(--alert); }
.center { text-align: center; justify-content: center; }
.empty { color: var(--muted); font-size: 15px; padding: 16px 4px; text-align: center; }
.kbd { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--hair); border-bottom-width: 2px; font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; direction: ltr; }
.nx-sec { margin-top: 24px; }
.nx-start .top + * { margin-top: 0; }
.nx-start > .notice { margin: 16px var(--gut) 0; }

/* الخانات */
.input { height: 60px; border-radius: 18px; background: var(--bg); border: 1.5px solid var(--hair); display: flex; align-items: center; gap: 12px; padding: 0 18px; box-shadow: var(--sh-1); margin-top: 10px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 22, 20, .06); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 19px; font-weight: 500; height: 100%; }
.input input::placeholder, .in::placeholder, textarea::placeholder { color: var(--faint-strong); font-weight: 400; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld label, .fld .lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
.in { height: 52px; border-radius: var(--r-field); border: 1.5px solid var(--hair); background: #fff; padding: 0 16px; font-size: 17px; font-weight: 500; width: 100%; outline: 0; transition: border-color .15s var(--ease); }
.in:focus, .in:focus-within { border-color: var(--ink); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 23px, 23px 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 36px; }
.ltr-in { direction: ltr; text-align: right; }
.money-in { display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.money-in input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; height: 100%; }
.money-in small { color: var(--faint-strong); font-size: 14px; font-weight: 500; }
textarea { width: 100%; border-radius: var(--r-field); border: 1.5px solid var(--hair); padding: 14px 16px; font-size: 17px; line-height: 1.6; resize: vertical; outline: 0; min-height: 110px; }
textarea:focus { border-color: var(--ink); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chs { display: flex; gap: 8px; flex-wrap: wrap; }
.chs button { height: 40px; border-radius: 999px; border: 1.5px solid var(--hair); background: #fff; padding: 0 16px; font-weight: 700; font-size: 15px; }
.chs button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.tog { width: 48px; height: 28px; border-radius: 999px; background: var(--hair); position: relative; flex: none; transition: background-color .2s var(--ease); }
.tog::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: right .2s var(--ease); }
.tog.on { background: var(--ink); } .tog.on::after { right: 23px; }
.tog-row { display: flex; align-items: center; gap: 12px; min-height: 52px; font-weight: 700; font-size: 15px; width: 100%; }
.tog-row.card { padding: 12px 16px; }
.tog-row b { display: block; font-size: 16px; }
.tog-row small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.card.form { padding: 16px; display: flex; flex-direction: column; gap: 14px; }

/* الطلبات المفتوحة */
.drafts { display: flex; gap: 10px; padding: 0 var(--gut) 4px; overflow-x: auto; scrollbar-width: none; }
.drafts::-webkit-scrollbar { display: none; }
.draft { flex: none; width: 220px; padding: 14px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--hair); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 10px; }
.draft .h { display: flex; align-items: center; gap: 10px; }
.draft .h b { font-size: 16px; font-weight: 700; display: block; }
.draft .h span span { font-size: 13px; color: var(--muted); }
.draft .f { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.draft .go { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.list .r { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: right; }
.list .r + .r { border-top: 1px solid var(--hair); }
.list .r .t { flex: 1; min-width: 0; }
.list .r b { display: block; font-size: 16px; font-weight: 700; }
.list .r .t > span { font-size: 14px; color: var(--muted); }
.list button.r:hover { background: var(--canvas); }
.list .r:first-child { border-radius: var(--r-card) var(--r-card) 0 0; } .list .r:last-child { border-radius: 0 0 var(--r-card) var(--r-card); } .list .r:only-child { border-radius: var(--r-card); }
.list .r.new { color: var(--ink); }
.list .r.new svg { width: 44px; }

/* الخطوات */
.steps { display: flex; align-items: center; gap: 8px; padding: 16px var(--gut) 0; }
.steps .st { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--faint-strong); white-space: nowrap; }
.steps .st i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--surface); color: var(--faint-strong); }
.steps .st.on { color: var(--ink); } .steps .st.on i { background: var(--ink); color: #fff; }
.steps .st.done { color: var(--muted); } .steps .st.done i { background: var(--surface); color: var(--ink); }
.steps .ln { flex: 1; height: 2px; background: var(--hair); border-radius: 1px; }
.steps .ln.on { background: var(--ink); }
.nx-top h1 { font-size: 24px; }
.nx-top .pill { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.nx > .pad, .s1-cols { margin-top: 20px; }
.nx { padding-bottom: 24px; }

/* الخطوة 1: الزبون */
.s1-cols, .s1-cols .col { display: flex; flex-direction: column; gap: 16px; }
.cust { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cust .h { display: flex; align-items: center; gap: 12px; }
.cust .h .t { flex: 1; min-width: 0; }
.cust .h b { display: block; font-size: 19px; font-weight: 800; }
.cust .h .t span { font-size: 14px; color: var(--muted); }
.cust .a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--canvas); font-size: 15px; width: 100%; text-align: right; border: 1.5px solid transparent; min-height: 48px; }
.cust .a.on { border-color: var(--ink); background: #fff; }
.cust .a .fee { margin-inline-start: auto; font-weight: 800; }
.cust .add-a { background: none; border: 1.5px dashed var(--hair); color: var(--muted); font-weight: 700; }
.cust .add-a.on { border-style: solid; border-color: var(--ink); color: var(--ink); }
.notice.col { flex-direction: column; gap: 12px; }
.notice .h { display: flex; gap: 10px; align-items: flex-start; }
.notice .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.notice .acts button { height: 44px; border-radius: 999px; font-weight: 800; font-size: 15px; text-align: center; }
.notice .acts .a1 { background: var(--ink); color: #fff; }
.notice .acts .a2 { background: #fff; border: 1px solid var(--warn-line); color: var(--ink); }
.rep { padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--hair); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 14px; }
.rep .h { display: flex; align-items: center; gap: 12px; }
.rep .h b { font-size: 18px; font-weight: 800; display: block; }
.rep .h span { font-size: 14px; color: var(--muted); }
.rep .h .rtot { margin-inline-start: auto; text-align: left; white-space: nowrap; }
.rep .h .rtot b { font-size: 22px; }
.rep p { font-size: 15px; }
.btn.sm { height: 48px; font-size: 15px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.way { height: 96px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--hair); box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; }
.way .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.way:active, .draft:active { transform: scale(.98); }
.s1-cols .lnk { align-self: center; }

/* الخطوة 2: الأصناف */
.lc { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg button { height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: var(--sh-1); }
.seg em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--faint-strong); }
.search { height: 52px; border-radius: 999px; background: var(--bg); border: 1px solid var(--hair); display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; color: var(--faint-strong); box-shadow: var(--sh-1); }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--ink); height: 100%; }
.search .mic { width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.grid .empty { grid-column: 1 / -1; }
.it2c { background: #fff; border: 1px solid var(--hair); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-1); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.it2c .body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; flex: 1; text-align: right; }
.it2c .nm { font-size: 18px; font-weight: 800; line-height: 1.3; }
.it2c .pr { font-size: 14px; color: var(--muted); }
.it2c .pr b { font-size: 16px; color: var(--ink); font-weight: 800; }
.it2c .pr s { color: var(--faint-strong); }
.it2c .pill { margin-top: 2px; }
.it2c.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-1); }
.it2c.out .nm, .it2c.out .pr, .it2c.out .pr b { color: var(--faint-strong); }
.add { height: 40px; border-radius: 999px; background: #fff; border: 1.5px solid var(--hair); color: var(--ink); display: grid; place-items: center; width: 100%; }
.add:active { background: var(--surface); }
.it2c.out .add { color: var(--faint-strong); background: var(--canvas); }
.stp { height: 40px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--hair); display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.stp button { width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; }
.stp b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.rp { display: none; }
.dock { position: fixed; inset: auto 0 0 0; z-index: 15; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--canvas) 70%, rgba(246, 247, 243, 0)); }
.dock .btn { max-width: 560px; margin: 0 auto; }
.nx.s2, .nx.s3 { padding-bottom: 96px; }
.sumbtn { height: 64px; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 999px; background: var(--forest); color: #fff; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 22px; padding-inline: 8px 22px; box-shadow: 0 10px 24px rgba(0, 64, 24, .25); }
.sumbtn .n { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-inline-start: 6px; }
.sumbtn b { font-size: 19px; font-weight: 800; }
.sumbtn .go { margin-inline-start: auto; height: 48px; border-radius: 999px; background: #fff; color: var(--forest); display: flex; align-items: center; gap: 6px; padding: 0 18px; font-weight: 800; font-size: 16px; }
.kb-hint, .nx-tabs { display: none; }

/* الخطوة 3: الدفع */
.lines .r { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.lines .r + .r { border-top: 1px solid var(--hair); }
.lines .r .t { flex: 1; min-width: 0; }
.lines .r b { display: block; font-weight: 700; font-size: 16px; }
.lines .r .c { font-size: 14px; color: var(--muted); }
.lines .r .a { font-weight: 800; font-size: 17px; white-space: nowrap; }
.nudge { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; padding-inline: 16px 12px; border-radius: var(--r-card); background: var(--bg); border: 1.5px dashed var(--hair); }
.nudge .t { flex: 1; font-size: 14px; color: var(--muted); }
.nudge .t b { display: block; font-size: 16px; color: var(--ink); }
.nudge .p { height: 40px; border-radius: 999px; background: #fff; border: 1.5px solid var(--hair); display: flex; align-items: center; gap: 4px; padding: 0 14px; font-weight: 800; font-size: 15px; }
.disc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.disc .in { height: 48px; }
.pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay button { height: 52px; border-radius: 16px; background: var(--bg); border: 1px solid var(--hair); font-weight: 700; font-size: 16px; text-align: center; }
.pay button.on { border: 2px solid var(--ink); }
.payhint { font-size: 13px; color: var(--warn); font-weight: 700; }
.sm-t { font-size: 14px; line-height: 1.6; }
.tot { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); box-shadow: var(--sh-1); }
.tot .x { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.tot .x b { color: var(--ink); font-weight: 700; }
.tot .g { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--hair); padding-top: 12px; margin-top: 4px; }
.tot .g span { font-size: 17px; font-weight: 800; }
.tot .g b { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.tot .coll { border-top: 1px solid var(--hair); padding-top: 10px; }
.open .lk { margin-inline-start: auto; }

/* بعد الحفظ */
.nx-saved .done { margin-top: 32px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.nx-saved h1 { font-size: 26px; font-weight: 800; }
.ok-big { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; margin: 0 auto; }
.ok-big svg { width: 30px; height: 30px; }

/* القايمة اللي بتطلع من تحت */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.dim { position: absolute; inset: 0; background: rgba(3, 47, 20, .38); opacity: 0; transition: opacity .2s var(--ease); }
.sheet { position: absolute; inset: auto 0 0 0; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 30px rgba(3, 47, 20, .10); transform: translateY(24px); opacity: 0; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.sheet-wrap.on .dim { opacity: 1; } .sheet-wrap.on .sheet { transform: none; opacity: 1; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--hair); margin: 0 auto 12px; }
.sheet-in { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 0 auto; }
.sh-t { font-size: 22px; font-weight: 800; }
.qs { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 999px; background: var(--surface); }
.qs b { font-size: 26px; font-weight: 800; }
.qb { width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; border-radius: 999px; background: #fff; border: 1.5px solid var(--hair); display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; font-weight: 700; font-size: 15px; }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.calc { font-size: 17px; font-weight: 700; }
.warn-t { color: var(--warn); font-size: 14px; font-weight: 700; }
.mic-big { width: 88px; height: 88px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; margin: 8px auto 0; box-shadow: 0 0 0 12px rgba(20, 22, 20, .05), 0 0 0 26px rgba(20, 22, 20, .03); animation: pulse 1.6s var(--ease) infinite alternate; }
.mic-big svg { width: 34px; height: 34px; }
@keyframes pulse { to { box-shadow: 0 0 0 16px rgba(20, 22, 20, .06), 0 0 0 32px rgba(20, 22, 20, .02); } }
.heard { font-size: 19px; line-height: 1.8; text-align: center; min-height: 34px; }
.got .r { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.got .r + .r { border-top: 1px solid var(--hair); }
.got .r .t { flex: 1; } .got .r b { display: block; font-weight: 700; } .got .r span { font-size: 14px; color: var(--muted); }
.ok { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; }
.ask { border-radius: 18px; border: 1px solid var(--warn-line); background: var(--warn-soft); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ask b { font-size: 15px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mini .t { flex: 1; min-width: 0; } .mini b { display: block; font-weight: 800; } .mini .t span { font-size: 14px; color: var(--muted); }
.ok-big.soft { background: var(--surface); }

@media (min-width: 1024px) {
  .pad { padding: 0; }
  .main:has(.nx), .main:has(.nx-tabs) { padding-top: 0; }
  .nx-tabs { display: flex; align-items: flex-end; gap: 6px; margin: 0 -40px; padding: 16px 40px 0; border-bottom: 1px solid var(--hair); }
  .nx-tabs .tab { height: 48px; border-radius: 14px 14px 0 0; padding: 0 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--muted); background: var(--surface); }
  .nx-tabs .tab.on { background: var(--bg); color: var(--ink); box-shadow: 0 -1px 0 var(--hair), 1px 0 0 var(--hair), -1px 0 0 var(--hair); }
  .nx-tabs .tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
  .nx-tabs .tab small { font-weight: 500; color: var(--faint-strong); font-size: 13px; }
  .nx-tabs .tab.new { background: transparent; color: var(--ink); }
  .nx-tabs + .page, .nx-tabs + .nx { padding-top: 28px; }
  .nx-start { max-width: 640px; }
  .nx-start .drafts { padding: 0; flex-wrap: wrap; overflow: visible; }
  .nx-top { display: none; }
  .steps { padding: 0; max-width: 620px; }
  .kb-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint-strong); margin-top: 10px; }
  .s1-cols { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 500px); gap: 24px; align-items: start; margin-top: 24px; }
  .lmain { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; margin: 0 -40px 0 -40px; margin-inline: 0 -40px; min-height: calc(100dvh - 190px); }
  .demo .lmain { min-height: calc(100dvh - 220px); }
  .lc { padding-inline-end: 32px; margin-top: 20px; padding-bottom: 32px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .rp { display: flex; flex-direction: column; background: var(--canvas); border-inline-start: 1px solid var(--hair); position: sticky; top: 0; max-height: calc(100dvh - 30px); align-self: start; height: calc(100dvh - 160px); }
  .rp .rp-in { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; overflow-y: auto; }
  .rp .ft { padding: 16px 24px 24px; border-top: 1px solid var(--hair); background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
  .rp .ft .tot { box-shadow: none; border: 0; padding: 0; }
  .dock, .m-only { display: none; }
  .nx.s2, .nx.s3 { padding-bottom: 0; }
  .nx.s3 .lc { max-width: 720px; }
  .sheet-wrap .sheet { inset: 0 auto 0 0; width: 440px; max-height: none; border-radius: 0 28px 28px 0; transform: translateX(-24px); padding: 28px 28px; }
  .sheet-wrap.on .sheet { transform: none; }
  .sheet .grab { display: none; }
  .nx-saved { max-width: 560px; }
}

/* ======================= الطلبات (الرسومات orders) ======================= */
.or-top .search.grow { flex: 1; }
.mic.plain { background: none; color: var(--muted); }
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--surface); margin-top: 16px; }
.tabs3 button { height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--muted); }
.tabs3 button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.tabs3 em { font-style: normal; min-width: 22px; height: 22px; border-radius: 11px; background: #fff; display: grid; place-items: center; font-size: 12px; padding: 0 6px; color: var(--muted); }
.tabs3 button.on em { background: var(--ink); color: #fff; }
.daybar { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 500; margin: 16px 0 10px; }
.daybar b { color: var(--ink); }
.ocs { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.oc { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-1); width: 100%; text-align: right; }
.oc .r1 { display: flex; align-items: center; gap: 10px; }
.oc .r1 .no { font-size: 13px; font-weight: 700; color: var(--faint-strong); }
.oc .r1 b { font-size: 17px; font-weight: 800; }
.oc .r1 .amt { margin-inline-start: auto; font-size: 18px; font-weight: 800; }
.oc .r2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.oc .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.oc .r3 { display: flex; gap: 6px; flex-wrap: wrap; }
.oc .r3:empty { display: none; }
.oc.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.oc.dead { opacity: .62; }
.pill.ink { background: var(--ink); color: #fff; }
.pill.ok2 { background: #EAF3E3; color: #2F5D1A; }
.det { display: flex; flex-direction: column; gap: 16px; padding: 24px var(--gut) 32px; }
.dh { display: flex; align-items: center; gap: 12px; }
.dh h1 { margin: 0; font-size: 26px; font-weight: 800; flex: 1; min-width: 0; line-height: 1.2; }
.dh h1 small { font-size: 15px; color: var(--faint-strong); font-weight: 500; margin-inline-start: 6px; }
.cols, .cols .c1, .cols .c2 { display: flex; flex-direction: column; gap: 16px; }
.cols .c1, .cols .c2 { display: contents; }
.cols .c2 > .ccard, .cols .c2 > .bigbal { order: -2; }
.cols .c2 > .notice, .cols .c2 > .tog-row, .cols .c2 > .sm-t { order: -1; }
.cols .c2 > .btn, .cols .c2 > .acts2, .cols .c2 > .links2, .cols .c2 > p.center { order: 2; }
.nw { white-space: nowrap; }
.ccard { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ccard .h { display: flex; align-items: center; gap: 12px; }
.ccard .h .t { flex: 1; min-width: 0; }
.ccard .h b { display: block; font-size: 18px; font-weight: 800; }
.ccard .h .t span { font-size: 14px; color: var(--muted); }
.ccard .acts { display: flex; gap: 8px; }
.ccard .acts a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; background: #fff; color: var(--ink); }
.ccard .ad { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--canvas); font-size: 15px; line-height: 1.5; }
.ccard .ad span { flex: 1; }
.ccard .nt { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 0 2px; color: var(--muted); }
.drvc .h b { font-size: 16px; }
.ico { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; color: var(--muted); }
.kv .r { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 15px; }
.kv .r + .r { border-top: 1px solid var(--hair); }
.kv .r span { color: var(--muted); }
.kv .r b { font-weight: 700; }
.kv .r.tt span { color: var(--ink); font-weight: 800; font-size: 17px; }
.kv .r.tt b { font-size: 22px; font-weight: 800; }
.log { font-size: 13px; color: var(--faint-strong); display: flex; align-items: center; gap: 6px; justify-content: center; min-height: 36px; width: 100%; }
.links2 { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.links2 .lnk { gap: 6px; }
.acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.danger { color: var(--alert); }
.btn.danger-bg { background: var(--alert); box-shadow: none; }
.tog-row.inwarn { background: #fff; border-radius: 14px; padding: 8px 14px; border: 1px solid var(--warn-line); color: var(--ink); }
.drv .r { display: flex; align-items: center; gap: 12px; padding: 12px 16px; width: 100%; text-align: right; min-height: 60px; }
.drv .r + .r { border-top: 1px solid var(--hair); }
.drv .r .t { flex: 1; } .drv .r b { display: block; font-weight: 700; font-size: 16px; } .drv .r .t span { font-size: 14px; color: var(--muted); }
.drv .r.sel { background: var(--canvas); }
.drv .r:first-child { border-radius: var(--r-card) var(--r-card) 0 0; } .drv .r:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hair); flex: none; }
.drv .r.sel .radio { border: 7px solid var(--ink); }
.money { border-radius: 18px; background: var(--canvas); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.money .r { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.money .r span { color: var(--muted); }
.money .r b { font-size: 17px; font-weight: 800; white-space: nowrap; }
.money .hr { height: 1px; background: var(--hair); }
.msgs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.msgs a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; }
.rt .r { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.rt .r + .r { border-top: 1px solid var(--hair); }
.rt .r .t { flex: 1; min-width: 0; } .rt .r b { display: block; font-weight: 700; } .rt .r span { font-size: 14px; color: var(--muted); }
.rt .stp { width: 132px; flex: none; }
.rt .r.on { background: var(--canvas); }
.led .r { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.led .r + .r { border-top: 1px solid var(--hair); }
.led .r .t { flex: 1; min-width: 0; } .led .r b { display: block; font-weight: 700; font-size: 15px; } .led .r span { font-size: 13px; color: var(--muted); }
.pts { margin: 0; padding: 0 20px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.6; }
.inv { width: 100%; border-radius: 16px; border: 1px solid var(--hair); }
@media (min-width: 1024px) {
  .main:has(.ol) { padding: 0; }
  .ol { display: grid; grid-template-columns: 440px minmax(0, 1fr); min-height: calc(100dvh - 30px); }
  .ol .lst { border-inline-end: 1px solid var(--hair); background: var(--canvas); padding: 28px 24px; position: sticky; top: 0; height: calc(100dvh - 30px); overflow-y: auto; }
  .ol .detp { background: #fff; padding: 28px 40px; }
  .ol .det { padding: 0; }
  .ol .dh .back { display: none; }
  .ol .cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .ol .cols .c1, .ol .cols .c2 { display: flex; }
  .or-top { padding: 0; }
  .or-top .ib { display: grid; }
}

/* ======================= المخزن والسواقين (الرسومات stock و drivers) ======================= */
.red { color: var(--alert) !important; }
.warnc { color: var(--warn) !important; }
.ink { color: var(--ink); }
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qa button { height: 84px; border-radius: 18px; background: #fff; border: 1px solid var(--hair); box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; }
.qa .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--surface); display: grid; place-items: center; }
.srl .r { display: flex; align-items: center; gap: 12px; padding: 13px 16px; width: 100%; text-align: right; }
.srl .r + .r { border-top: 1px solid var(--hair); }
.srl .r .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srl .r b { font-weight: 700; font-size: 16px; }
.srl .r .t > span { font-size: 13px; color: var(--muted); }
.srl .r .q { text-align: left; white-space: nowrap; }
.srl .r .q b { font-size: 16px; font-weight: 800; }
.bar5 { display: block; height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; margin-top: 6px; max-width: 260px; }
.bar5 i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.bar5.w i { background: var(--warn); }
.srl .r:first-child, .prl .r:first-child { border-radius: var(--r-card) var(--r-card) 0 0; }
.srl .r:last-child, .prl .r:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
.prl .r { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; padding-inline: 16px 12px; }
.prl .r + .r { border-top: 1px solid var(--hair); }
.prl .r .t { flex: 1; min-width: 0; } .prl .r b { display: block; font-weight: 700; font-size: 16px; } .prl .r .t > span { font-size: 13px; color: var(--muted); }
.pin { width: 112px; height: 48px; border-radius: 14px; border: 1.5px solid var(--hair); display: flex; align-items: center; gap: 4px; padding: 0 12px; background: #fff; flex: none; }
.pin input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.pin small { font-size: 12px; color: var(--faint-strong); font-weight: 500; white-space: nowrap; }
.pin.ch, .pin:focus-within { border-color: var(--ink); }
.st-acts { display: flex; flex-direction: column; gap: 4px; }
.sum2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum2 .c { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--sh-1); min-width: 0; }
.sum2 .c span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.sum2 .c b { display: block; font-size: 26px; font-weight: 800; margin-top: 4px; line-height: 1.2; }
.sum2 .c b small { font-size: 15px; font-weight: 500; color: var(--muted); }
.sum2 .c small { font-size: 13px; color: var(--faint-strong); }
.offer { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.offer .t { flex: 1; min-width: 0; } .offer .t b { display: block; font-size: 16px; } .offer .t span { font-size: 13px; color: var(--muted); }
.alias-in input { height: 40px; width: 110px; border-radius: 999px; border: 1.5px dashed var(--hair); padding: 0 14px; font-weight: 700; font-size: 15px; outline: 0; background: #fff; }
.alias-in input:focus { border-style: solid; border-color: var(--ink); }
.chs button svg { margin-inline-start: 4px; }
.supc { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 8px; padding-inline: 8px 16px; }
.supc .in.plain { border: 0; flex: 1; font-weight: 800; font-size: 18px; }
.inl .hd { display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px; font-size: 12px; color: var(--faint-strong); font-weight: 700; padding: 12px 14px 0; }
.inl .r { display: grid; grid-template-columns: 1fr 84px 84px; gap: 8px; align-items: center; padding: 12px 14px; }
.inl .r + .r { border-top: 1px solid var(--hair); }
.inl .r .c { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-top: -4px; }
.inl .r .c:empty { display: none; }
.in.sm { height: 44px; font-size: 16px; padding: 0 12px; }
select.in.sm { background-position: 14px 19px, 19px 19px; padding-left: 30px; }
.box { height: 44px; border-radius: 12px; border: 1.5px solid var(--hair); text-align: center; font-weight: 800; font-size: 16px; width: 100%; min-width: 0; outline: 0; background: #fff; }
.box:focus { border-color: var(--ink); }
.add-r { display: flex !important; align-items: center; gap: 8px; font-weight: 700; padding: 14px 16px !important; width: 100%; }
.money-in.sm { height: 44px; width: 130px; }
.kv .r .money-in { flex: none; }
.btn.pick { border: 2px solid var(--ink); }
.pay.two { grid-template-columns: 1fr 1fr; }
.pay button[aria-pressed="true"], .pay button.on { border: 2px solid var(--ink); }
.amtin { height: 72px; border-radius: 20px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; padding: 0 20px; }
.amtin input { width: 100%; text-align: center; border: 0; outline: 0; background: none; font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; }
.amtin small { font-size: 18px; color: var(--muted); }
.bigbal { background: #fff; border: 1px solid var(--hair); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh-1); }
.bigbal .k { font-size: 14px; color: var(--muted); font-weight: 500; }
.bigbal .v { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--alert); }
.bigbal .v.ok { color: var(--ink); }
.bigbal .v small { font-size: 18px; margin-inline-start: 4px; }
.led .r .a { font-weight: 800; font-size: 16px; white-space: nowrap; }
.led .r .a.plus { color: var(--alert); }
.led .r .a.zero { color: var(--faint-strong); font-weight: 500; font-size: 14px; }
.list .r .bal, .dc .bal { text-align: left; display: flex; flex-direction: column; }
.list .r .bal b, .dc .bal b { font-size: 17px; font-weight: 800; }
.list .r .bal span, .dc .bal span { font-size: 12px; color: var(--muted); font-weight: 500; }
.dcs { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.dc { background: #fff; border: 1px solid var(--hair); border-radius: var(--r-card); padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--sh-1); width: 100%; text-align: right; }
.dc .t { flex: 1; min-width: 0; } .dc .t b { display: block; font-size: 17px; font-weight: 800; } .dc .t span { font-size: 14px; color: var(--muted); }
.dc .bal.owe b { color: var(--alert); }
.dc .bal b.zero { color: var(--faint-strong); font-weight: 700; font-size: 16px; }
.dc.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lst > .top + .pad .sum2 { margin-top: 16px; }
.cap .seg2 button { height: 32px; font-size: 13px; }
.tblw { overflow-x: auto; }
.st-tabs { display: none; }
@media (min-width: 1024px) {
  .stp-l { max-width: none; }
  .st-head { display: flex; align-items: center; gap: 24px; }
  .st-head .ttl { flex: none; }
  .st-tabs { display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 999px; background: var(--surface); margin-inline-start: auto; }
  .st-tabs button { height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); }
  .st-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
  .st-bar { display: flex; align-items: center; gap: 12px; margin: 24px 0 20px; }
  .st-bar .seg { width: 360px; flex: none; }
  .st-bar .search { flex: 1; }
  .st-bar .btn.sm { width: auto; flex: none; height: 52px; padding: 0 20px; }
  .tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; font-size: 15px; }
  .tbl th { font-size: 12px; font-weight: 700; color: var(--faint-strong); text-align: right; padding: 12px 16px; background: var(--canvas); border-bottom: 1px solid var(--hair); white-space: nowrap; }
  .tbl td { padding: 12px 16px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
  .tbl tr:last-child td { border-bottom: 0; }
  .tbl td b { font-weight: 700; }
  .tbl .n { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tbl tr[data-st] { cursor: pointer; }
  .tbl tr[data-st]:hover td { background: var(--canvas); }
  .tbl .pin { height: 44px; }
  .stp-l .tblw { margin-top: 24px; }
  .st-foot { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
  .st-foot > span { margin-inline-end: auto; }
  .st-foot .btn { width: auto; padding: 0 28px; }
  .st-top .ib:first-child { display: grid; }
  .page:not(.stp-l):has(.st-top) { max-width: 720px; }
  .st-top { margin-bottom: 4px; }
  .sup-l { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px; margin-top: 24px; align-items: start; }
  .sup-l > div:last-child { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
  .drv-l .lst .top .ib { display: grid; }
}

/* ======================= التقارير (الرسومات reports) ======================= */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--surface); }
.seg3 button { height: 44px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); }
.seg3 button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.pl .r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 16px; font-size: 15px; }
.pl .r span { color: var(--muted); }
.pl .r b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl .r.neg b { color: var(--muted); font-weight: 500; }
.pl .r.sub { border-top: 1px solid var(--hair); background: var(--canvas); }
.pl .r.sub span { color: var(--ink); font-weight: 700; }
.pl .r.sub b { font-weight: 800; }
.pl .r.net { border-top: 1.5px dashed var(--hair); padding: 16px; }
.pl .r.net span { font-size: 18px; font-weight: 800; color: var(--ink); }
.pl .r.net b { font-size: 32px; font-weight: 800; }
.pl .eq { font-size: 12px; color: var(--faint-strong); padding: 0 16px 14px; margin-top: -6px; }
.pad-in { padding: 14px 16px 0; }
.top5 .r { display: grid; grid-template-columns: 96px 1fr 72px; gap: 12px; align-items: center; padding: 10px 16px; }
.top5 .r b { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top5 .bar { display: flex; height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
.top5 .bar i { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.top5 .r .v { font-weight: 800; text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top5 .r:first-child { padding-top: 16px; } .top5 .r:last-child { padding-bottom: 16px; }
.links .r .v.red { color: var(--alert); font-weight: 800; }
.warnl { display: flex; flex-direction: column; gap: 8px; }
.warnl div { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--warn-soft); border: 1px solid var(--warn-line); font-size: 14px; font-weight: 600; }
.warnl div svg { color: var(--warn); }
.wa { background: #E7F6DC; border-radius: 16px 4px 16px 16px; padding: 12px 14px; font-size: 14px; line-height: 1.8; white-space: pre-line; border: 1px solid #D6EDC6; }
.notice .lk { align-self: center; }
.p-wa { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--hair); font-weight: 800; font-size: 14px; text-decoration: none; color: var(--ink); background: #fff; white-space: nowrap; }
.led .r .av { width: 36px; height: 36px; font-size: 15px; }
.rp-cust section { display: flex; flex-direction: column; gap: 10px; }
.advice { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.advice .h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .advice .h b { font-size: 16px; } .advice .h .faint { font-size: 13px; }
.advice .r { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--hair); padding-top: 10px; }
.advice .r .t { flex: 1; min-width: 0; } .advice .r b { display: block; font-size: 15px; } .advice .r .t > span { font-size: 13px; color: var(--muted); }
.advice .p { height: 36px; border-radius: 999px; background: #fff; border: 1.5px solid var(--hair); display: flex; align-items: center; gap: 4px; padding: 0 12px; font-weight: 800; font-size: 14px; flex: none; }
@media (min-width: 1024px) {
  .rp-l { max-width: none; }
  .rp-head { display: flex; align-items: center; gap: 16px; }
  .rp-head .ttl { flex: 1; }
  .rp-head .open { padding: 8px 14px; }
  .rp-head .open .lk { display: none; }
  .rp-head .seg3 { width: 300px; }
  .rp-head .btn.sm { width: auto; padding: 0 22px; }
  .rp-l > .notice { margin-top: 20px; }
  .rp-cols { display: grid; grid-template-columns: 520px minmax(0, 1fr); gap: 32px; margin-top: 24px; align-items: start; }
  .rp-cols > div { display: flex; flex-direction: column; gap: 16px; }
  .rp-cols .cap { margin-bottom: -6px; }
  .rp-cols .links.rl { display: grid; grid-template-columns: 1fr 1fr; }
  .rp-cols .links.rl .r { border-top: 0; border-bottom: 1px solid var(--hair); border-radius: 0; }
  .rp-cols .links.rl .r:nth-child(odd) { border-inline-end: 1px solid var(--hair); }
  .rp-cust { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px !important; align-items: start; max-width: 1100px !important; }
}

/* ======================= الإعدادات (الرسومات settings) ======================= */
.zr .r { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; padding-inline: 16px 12px; min-height: 60px; }
.zr .r + .r { border-top: 1px solid var(--hair); }
.zr .r .t { flex: 1; font-weight: 700; font-size: 16px; min-width: 0; }
.zr .r .t span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.zr .r.new { gap: 8px; }
.zr .r.new .in { flex: 1; height: 48px; }
.zr .r.col .in { flex: none; }
.zr .r.col { flex-direction: column; align-items: stretch; padding: 14px 16px; }
.zr .r.col .acts2 .btn { height: 44px; }
.ib.sm { width: 36px; height: 36px; box-shadow: none; color: var(--muted); }
.role { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: 999px; background: var(--surface); flex: none; }
.role button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.role button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.zr .r.col .role { align-self: flex-start; }
.money.sm-t { gap: 4px; }
.se-page .body { gap: 14px; }
.se-top { padding: 0; }
.se-save { margin-top: 4px; }
.links .r.on { background: var(--surface); }
@media (min-width: 1024px) {
  .settings { grid-template-columns: 340px minmax(0, 640px); }
  .settings .detail.se-d { padding-top: 0; display: flex; flex-direction: column; gap: 16px; }
  .se-top .ib:first-child { display: none; }
  .se-top { display: flex; align-items: center; gap: 12px; padding: 6px 0 0; }
  .se-top h1 { font-size: 22px; }
  .se-top .btn.sm { width: auto; padding: 0 18px; height: 44px; }
  .se-save { align-self: flex-start; width: auto; padding: 0 40px; }
}
