/* أوتاد — نظام التصميم */
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url(../fonts/tajawal-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; font-weight: 500; font-display: swap; src: url(../fonts/tajawal-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url(../fonts/tajawal-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap; src: url(../fonts/tajawal-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Tajawal'; font-weight: 400; font-display: swap; src: url(../fonts/tajawal-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Tajawal'; font-weight: 500; font-display: swap; src: url(../fonts/tajawal-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Tajawal'; font-weight: 700; font-display: swap; src: url(../fonts/tajawal-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Tajawal'; font-weight: 800; font-display: swap; src: url(../fonts/tajawal-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #eef1f5; --bg-2: #e4e8ee; --surface: #ffffff; --surface-2: #f8fafc; --surface-3: #eff2f7;
  --ink: #1a2432; --ink-2: #4b5665; --muted: #8893a2; --line: #e8ebf0; --line-2: #d9dfe6;
  --navy: #1c2a3b; --navy-2: #243852; --navy-3: #324b6b; --gold: #5a79a0; --gold-2: #8aa4c2; --gold-ink: #456389;
  --re: #1d7a72; --re-soft: #e4f2f0; --pl: #b06a35; --pl-soft: #f7ece2; --fin: #35619e; --fin-soft: #e6edf7; --hr: #7d4f90; --hr-soft: #f1e9f4;
  --acc: var(--re); --acc-soft: var(--re-soft);
  --ok: #2f8a55; --ok-soft: #e4f3ea; --warn: #b7791f; --warn-soft: #fbf0d9; --crit: #c0392b; --crit-soft: #fbe5e2; --info: #2f6db3; --info-soft: #e3edf9; --frozen: #7b8494; --frozen-soft: #eceef1;
  --shadow-1: 0 1px 2px rgba(20, 32, 48, .06), 0 1px 1px rgba(20, 32, 48, .04);
  --shadow-2: 0 10px 30px -12px rgba(15, 29, 47, .25), 0 2px 6px rgba(15, 29, 47, .06);
  --shadow-3: 0 30px 80px -20px rgba(5, 12, 22, .45);
  --r: 12px; --r-sm: 8px; --r-lg: 18px;
  --side: 248px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b131d; --bg-2: #0f1925; --surface: #131f2d; --surface-2: #172434; --surface-3: #1c2b3d;
  --ink: #e8ecf1; --ink-2: #b4bfcc; --muted: #7d8a9b; --line: #233346; --line-2: #2d4057;
  --re: #3fb5a8; --re-soft: #15302f; --pl: #e08f55; --pl-soft: #34241a; --fin: #6f9fe0; --fin-soft: #18263a; --hr: #c08ad4; --hr-soft: #2a1d31;
  --ok: #4cc07e; --ok-soft: #142d20; --warn: #e5a73e; --warn-soft: #33270f; --crit: #ef6a5c; --crit-soft: #3a1714; --info: #6aa5ec; --info-soft: #14263c; --frozen: #95a0b0; --frozen-soft: #222c38;
  --gold-ink: #e0c48b;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 12px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
.sys-pl { --acc: var(--pl); --acc-soft: var(--pl-soft); }
.sys-fin { --acc: var(--fin); --acc-soft: var(--fin-soft); }
.sys-hr { --acc: var(--hr); --acc-soft: var(--hr-soft); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: 'Tajawal', 'Cairo', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc); text-decoration: none; }
.num, .tnum { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
td.num, th.num { display: table-cell; }
::selection { background: var(--gold-2); color: var(--navy); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; } ::-webkit-scrollbar-track { background: transparent; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ——— الإقلاع ——— */
#boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--navy); z-index: 100; transition: opacity .5s; }
#boot.gone { opacity: 0; pointer-events: none; }
#boot .mark { width: 92px; height: 92px; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
#boot .bar { width: 160px; height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; margin: 26px auto 0; overflow: hidden; }
#boot .bar i { display: block; height: 100%; width: 40%; background: var(--gold); border-radius: 3px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(160px); } to { transform: translateX(-160px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ——— لوحة الأنظمة ——— */
.launcher { position: fixed; inset: 0; overflow: auto; background: radial-gradient(1200px 600px at 85% -10%, #1d3556 0%, transparent 60%), radial-gradient(900px 500px at 0% 110%, #2a2216 0%, transparent 55%), var(--navy); color: #eef2f7; }
.launcher .topo { position: absolute; inset: 0; opacity: .09; pointer-events: none; }
.launcher .wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 48px 40px 40px; min-height: 100%; display: flex; flex-direction: column; }
.launcher header { display: flex; align-items: center; gap: 16px; }
.launcher header .mark { width: 56px; height: 56px; }
.launcher header h1 { font-size: 34px; margin: 0; font-weight: 800; letter-spacing: 0; }
.launcher header p { margin: 0; color: #9fb0c6; font-size: 14px; }
.launcher header .sp { flex: 1; }
.launcher .greet { margin: 46px 0 22px; }
.launcher .greet h2 { font-size: 28px; margin: 0 0 4px; font-weight: 700; }
.launcher .greet p { margin: 0; color: #9fb0c6; }
.sys-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sys-card { position: relative; border-radius: 22px; padding: 28px; min-height: 340px; cursor: pointer; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; display: flex; flex-direction: column; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; text-align: right; color: inherit; }
.sys-card:nth-child(2) { animation-delay: .08s; }
.sys-card:hover, .sys-card:focus-visible { transform: translateY(-6px); border-color: rgba(224,196,139,.5); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); outline: none; }
.sys-card .art { position: absolute; inset-inline-end: 10px; bottom: 0; width: 34%; max-height: 58%; opacity: .9; transition: transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.sys-card:hover .art { transform: translateY(-6px) scale(1.02); }
.sys-card .tag { align-self: flex-start; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--gold-2); }
.sys-card h3 { font-size: 30px; margin: 14px 0 6px; font-weight: 800; }
.sys-card p { margin: 0; color: #a9b8cb; max-width: 56%; }
.sys-card .kp { margin-top: auto; display: flex; gap: 22px; position: relative; z-index: 1; max-width: 68%; flex-wrap: nowrap; gap: 18px; }
.sys-card .kp div b { display: block; font-size: 20px; white-space: nowrap; font-weight: 800; color: #fff; }
.sys-card .kp div span { font-size: 12px; color: #93a4ba; }
.sys-card .go { position: absolute; top: 26px; inset-inline-end: 26px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .3s, transform .3s; }
.sys-card:hover .go { background: var(--gold); color: var(--navy); transform: translateX(-4px); }
.sys-card.re { background: linear-gradient(160deg, rgba(43,150,138,.28), rgba(255,255,255,.02) 60%); }
.sys-card.pl { background: linear-gradient(160deg, rgba(196,120,60,.28), rgba(255,255,255,.02) 60%); }
.sys-card.fin { background: linear-gradient(160deg, rgba(70,120,200,.3), rgba(255,255,255,.02) 60%); }
.sys-card.hr { background: linear-gradient(160deg, rgba(150,90,180,.3), rgba(255,255,255,.02) 60%); }
.sys-card:nth-child(3) { animation-delay: .16s; } .sys-card:nth-child(4) { animation-delay: .24s; }
.sys-cards.four .sys-card { min-height: 268px; padding: 24px; } .sys-cards.four .sys-card h3 { font-size: 25px; margin-top: 10px; } .sys-cards.four .sys-card .art { width: 30%; max-height: 52%; }
.launcher .greet { margin: 30px 0 18px; }
.launcher .tools { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.launcher .tools button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #d6dfea; border-radius: 12px; padding: 10px 16px; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; transition: background .2s; }
.launcher .tools button:hover { background: rgba(255,255,255,.12); }
.launcher footer { margin-top: auto; padding-top: 30px; font-size: 12px; color: #6f8098; display: flex; justify-content: space-between; }

/* ——— الهيكل ——— */
.shell { display: grid; grid-template-columns: var(--side) 1fr; height: 100vh; }
.side { background: var(--navy); color: #c9d4e2; display: flex; flex-direction: column; min-height: 0; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; cursor: pointer; }
.side .brand .mark { width: 36px; height: 36px; }
.side .brand b { font-size: 19px; color: #fff; font-weight: 800; display: block; line-height: 1.1; }
.side .brand span { font-size: 12px; color: var(--gold-2); }
.side .switch { margin: 4px 14px 10px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.05); border-radius: 10px; padding: 3px; }
.side .switch a { text-align: center; padding: 7px 2px; border-radius: 8px; font-size: 12px; white-space: nowrap; color: #9fb0c6; transition: background .2s, color .2s; }
.side .switch a.on { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.side nav { flex: 1; overflow: auto; padding: 4px 10px 12px; }
.side nav .grp { font-size: 11.5px; color: #6f8098; padding: 14px 10px 6px; letter-spacing: 0; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #c2cddb; font-size: 14px; position: relative; transition: background .15s, color .15s; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a.on { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1)); color: #fff; font-weight: 700; }
.side nav a.on::before { content: ''; position: absolute; inset-inline-start: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.side nav a .cnt { margin-inline-start: auto; font-size: 11px; background: var(--crit); color: #fff; border-radius: 99px; padding: 0 7px; line-height: 18px; font-weight: 700; }
.side .foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.06); display: flex; gap: 6px; }
.side .foot button { flex: 1; background: rgba(255,255,255,.05); border: 0; color: #b8c5d6; border-radius: 9px; padding: 8px; cursor: pointer; display: grid; place-items: center; }
.side .foot button:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 26px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(8px); }
.top h1 { font-size: 19px; margin: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .crumb { color: var(--muted); font-size: 13px; white-space: nowrap; }
.top .sp { flex: 1; }
.searchbtn { display: flex; align-items: center; gap: 10px; min-width: 260px; height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--muted); cursor: pointer; }
.searchbtn kbd { margin-inline-start: auto; font-family: inherit; font-size: 11px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; direction: ltr; }
.savest { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.savest i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.savest.pending i { background: var(--warn); } .savest.err i { background: var(--crit); } .savest.err { color: var(--crit); }
#view { flex: 1; overflow: auto; padding: 24px 26px 60px; }
#view > * { animation: fadein .28s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ——— عناصر ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .inp:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 6px 14px -8px var(--acc); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.btn.dan { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 35%, var(--line)); }
.btn.dan:hover { background: var(--crit-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 31px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon { width: 38px; padding: 0; } .btn.sm.icon { width: 31px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card > .hd h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.card > .hd .sub { color: var(--muted); font-size: 12.5px; }
.card > .bd { padding: 16px 18px 18px; }
.grid { display: grid; gap: 16px; }
.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)); }
.g-main { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.mt { margin-top: 16px; } .mt2 { margin-top: 24px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg.i { width: 40px; height: 40px; stroke-width: 1.3; color: var(--line-2); display: block; margin: 0 auto 10px; }

.page-hd { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-hd h2 { margin: 0; font-size: 24px; font-weight: 800; }
.page-hd p { margin: 2px 0 0; color: var(--muted); }

/* مؤشرات */
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .lb { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.kpi .lb svg.i { width: 16px; height: 16px; color: var(--acc); }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 6px; line-height: 1.15; }
.kpi .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-inline-start: 3px; }
.kpi .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi .meter { height: 6px; border-radius: 6px; background: var(--surface-3); margin-top: 10px; overflow: hidden; }
.kpi .meter i { display: block; height: 100%; border-radius: 6px; background: var(--acc); }
.kpi.hero { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-color: transparent; }
.kpi.hero .lb, .kpi.hero .d, .kpi.hero .v small { color: #a9b8cb; } .kpi.hero .lb svg.i { color: var(--gold-2); }
.kpi.hero .meter { background: rgba(255,255,255,.12); } .kpi.hero .meter i { background: var(--gold); }

/* شارات */
.bdg { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.bdg::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.bdg.ok { background: var(--ok-soft); color: var(--ok); } .bdg.warn { background: var(--warn-soft); color: var(--warn); } .bdg.crit { background: var(--crit-soft); color: var(--crit); }
.bdg.info { background: var(--info-soft); color: var(--info); } .bdg.frozen { background: var(--frozen-soft); color: var(--frozen); } .bdg.acc { background: var(--acc-soft); color: var(--acc); }
.bdg.plain::before { display: none; }

/* جداول */
.tbl-wrap { overflow: auto; border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; text-align: right; font-weight: 700; font-size: 12.5px; color: var(--ink-2); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.tbl th.s { cursor: pointer; } .tbl th.s:hover { color: var(--ink); }
.tbl th .ar { opacity: .5; font-size: 10px; margin-inline-start: 4px; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr.clk { cursor: pointer; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.n, .tbl th.n { text-align: left; font-variant-numeric: tabular-nums; }
.tbl td .t1 { font-weight: 700; } .tbl td .t2 { color: var(--muted); font-size: 12.5px; }
.tbl tfoot td { font-weight: 800; background: var(--surface-2); border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* شريط الأدوات */
.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sbox { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.sbox svg.i { position: absolute; inset-inline-start: 11px; top: 10px; color: var(--muted); }
.sbox input { padding-inline-start: 36px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 31px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.chip b { font-weight: 700; color: var(--muted); font-size: 12px; }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); } .chip.on b { color: inherit; opacity: .7; }

/* نماذج */
.inp { width: 100%; height: 39px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 0 12px; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; min-height: 76px; padding: 9px 12px; resize: vertical; }
.inp:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); outline: none; }
.inp[type=number], .inp.ltr { direction: ltr; text-align: right; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fld > label .req { color: var(--crit); }
.fld .hint { font-size: 12px; color: var(--muted); }
.fld.err .inp { border-color: var(--crit); } .fld .msg { font-size: 12px; color: var(--crit); }
.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; height: 39px; }
.chk input { width: 18px; height: 18px; accent-color: var(--acc); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-1); }

/* نوافذ */
.ovl { position: fixed; inset: 0; background: rgba(8, 14, 24, .5); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; animation: fade .18s ease both; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-3); animation: pop .25s cubic-bezier(.2,.8,.2,1) both; }
.modal.wide { width: min(980px, 100%); } .modal.xl { width: min(1180px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal .mh { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal .mh h3 { margin: 0; font-size: 18px; font-weight: 800; }
.modal .mb { padding: 20px 22px; overflow: auto; }
.modal .mf { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 20px 20px; }

/* إشعارات */
#toasts { position: fixed; bottom: 22px; left: 22px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast { min-width: 260px; max-width: 420px; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-2); display: flex; gap: 10px; align-items: flex-start; animation: pop .25s both; white-space: pre-line; }
.toast.err { background: #7d1f16; } .toast.ok svg.i { color: #7fe0a6; } .toast.err svg.i { color: #ffb4aa; }

/* لوحة الأوامر */
.cmdk { width: min(640px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-3); overflow: hidden; align-self: start; margin-top: 12vh; animation: pop .2s both; }
.cmdk input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font-size: 17px; background: transparent; outline: none; }
.cmdk .res { max-height: 420px; overflow: auto; padding: 6px; }
.cmdk .it { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; cursor: pointer; }
.cmdk .it.on { background: var(--acc-soft); }
.cmdk .it .k { margin-inline-start: auto; font-size: 12px; color: var(--muted); }
.cmdk .grp { font-size: 11.5px; color: var(--muted); padding: 10px 14px 4px; }

/* رؤى */
.ins { display: flex; flex-direction: column; }
.ins .it { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ins .it:last-child { border-bottom: 0; }
.ins .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.ins .ic svg.i { width: 17px; height: 17px; }
.ins .critical .ic { background: var(--crit-soft); color: var(--crit); } .ins .warning .ic { background: var(--warn-soft); color: var(--warn); } .ins .info .ic { background: var(--info-soft); color: var(--info); }
.ins .tx { flex: 1; font-size: 13.5px; }
.ins .it a { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* رسوم */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; position: relative; }
.bars .b .col { width: 100%; max-width: 30px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bars .b .col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--acc); min-height: 2px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.bars .b .col .tgt { position: absolute; left: -3px; right: -3px; height: 2px; background: var(--ink); opacity: .35; border-radius: 2px; }
.bars .b span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bars .b:hover .col i { filter: brightness(1.15); }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--navy); color: #fff; padding: 8px 11px; border-radius: 9px; font-size: 12.5px; box-shadow: var(--shadow-2); white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--surface); }
.stack i { display: block; height: 100%; }

/* شبكة الوحدات */
.units-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.ucell { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--surface); position: relative; transition: transform .15s, box-shadow .15s; border-top: 4px solid var(--line-2); }
.ucell:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ucell b { font-size: 16px; } .ucell .t2 { font-size: 12px; color: var(--muted); }
.ucell.occupied { border-top-color: var(--ok); } .ucell.vacant { border-top-color: var(--warn); } .ucell.maintenance { border-top-color: var(--frozen); }

/* تفاصيل */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.dl > div span { display: block; font-size: 12px; color: var(--muted); }
.dl > div b { font-weight: 700; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--acc); }
.prog { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--ok); border-radius: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--acc-soft); color: var(--acc); flex: none; }
.risk { display: inline-flex; align-items: center; gap: 8px; }
.risk .dial { width: 44px; height: 44px; }

/* خريطة المخطط */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; }
.map { position: relative; height: calc(100vh - 230px); min-height: 460px; overflow: hidden; border-radius: var(--r-lg); background: #e9e4d8; border: 1px solid var(--line); cursor: grab; }
:root[data-theme="dark"] .map { background: #0f1824; }
.map.drag { cursor: grabbing; }
.map svg.plan { width: 100%; height: 100%; display: block; user-select: none; }
.map .tools { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.map .tools .btn { background: var(--surface); box-shadow: var(--shadow-1); }
.map .mlegend { position: absolute; bottom: 12px; inset-inline-start: 12px; background: var(--surface); border-radius: 10px; padding: 8px 12px; box-shadow: var(--shadow-1); z-index: 2; }
.map .modebar { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; box-shadow: var(--shadow-1); background: var(--surface); }
.plot { cursor: pointer; transition: opacity .15s; }
.plot rect { stroke: #fff; stroke-width: .8; transition: filter .15s; }
:root[data-theme="dark"] .plot rect { stroke: #0f1824; }
.plot:hover rect { filter: brightness(1.12) saturate(1.1); }
.plot.sel rect { stroke: var(--navy); stroke-width: 2.4; }
:root[data-theme="dark"] .plot.sel rect { stroke: #fff; }
.plot text { font-family: Tajawal, sans-serif; font-weight: 700; pointer-events: none; fill: #fff; }
.plot.dim { opacity: .18; }
.side-panel { height: calc(100vh - 230px); min-height: 460px; overflow: auto; }
.pp-head { display: flex; align-items: center; gap: 12px; }
.pp-head .big { font-size: 30px; font-weight: 800; line-height: 1; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.bounds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bounds div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; }
.bounds div > span { color: var(--muted); display: block; font-size: 11.5px; }
.factor { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }

.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.plan-card { cursor: pointer; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.plan-card .thumb { height: 150px; background: #e9e4d8; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .plan-card .thumb { background: #0f1824; }
.plan-card .thumb svg { width: 100%; height: 100%; }

.match { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.match .sc { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--acc-soft); color: var(--acc); flex: none; }

.about { max-width: 760px; margin: 0 auto; text-align: center; }
.about .mark { width: 110px; height: 110px; }

/* طباعة */
#print-root { display: none; }
@media print {
  body { overflow: visible !important; background: #fff; color: #000; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root .doc.copy { page-break-before: always; }
  .doc .pframe, .doc .wm { position: fixed !important; }
}
.doc { --pf: 'Tajawal'; --tf: 'Tajawal'; --pc: #0f1d2f; --pa: #c39a4e; --fs: 13px; font-family: var(--pf), 'Tajawal', sans-serif; color: #111; font-size: var(--fs); direction: rtl; position: relative; line-height: 1.7; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc .dbody { position: relative; z-index: 1; }
.doc[data-copy]::before { content: attr(data-copy); position: absolute; top: -4px; left: 0; font-size: 10px; color: #777; border: 1px solid #ccc; border-radius: 4px; padding: 0 6px; z-index: 2; }
.doc .dh { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--pc); padding-bottom: 12px; margin-bottom: 14px; }
.doc .dh .mark, .doc .dh .lg { width: 62px; height: 62px; object-fit: contain; flex: none; }
.doc .dh h1 { font-family: var(--tf), var(--pf), sans-serif; font-size: 1.55em; margin: 0; color: var(--pc); line-height: 1.3; } .doc .dh p { margin: 0; color: #555; font-size: .9em; }
.doc .dh .meta { margin-inline-start: auto; text-align: left; font-size: .92em; color: #333; line-height: 1.6; }
.doc .qr-slot { flex: none; line-height: 0; } .doc .qr-slot svg { display: block; }
.doc .dh-band { background: var(--pc); color: #fff; border: 0; border-radius: 10px; padding: 14px 16px; box-shadow: inset 0 -4px 0 var(--pa); }
.doc .dh-band h1 { color: #fff; } .doc .dh-band p, .doc .dh-band .meta { color: #e8edf5; } .doc .dh-band .qr-slot { background: #fff; padding: 4px; border-radius: 6px; }
.doc .dh-center { flex-direction: column; text-align: center; gap: 4px; }
.doc .dh-center .meta { margin: 0; text-align: right; } .doc .dh-row { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 12px; }
.doc .dh-bi { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; } .doc .dh-bi .en { text-align: left; } .doc .dh-bi .en h1 { font-family: Tajawal, sans-serif; }
.doc .dh-bi + .dh-row { margin: -6px 0 12px; }
.doc .dh-none { border: 0; padding: 0; justify-content: space-between; } .doc .dh-none .meta { margin: 0; text-align: right; }
.doc .dh-img img, .doc .df-img img { width: 100%; display: block; } .doc .dh-img { margin-bottom: 10px; } .doc .df-img { margin-top: 18px; }
.doc h2.dt, .doc h2 { font-family: var(--tf), var(--pf), sans-serif; text-align: center; font-size: 1.45em; margin: 6px 0 16px; padding: 6px; background: color-mix(in srgb, var(--pa) 16%, #fff); border-radius: 6px; color: var(--pc); }
.doc h3 { font-family: var(--tf), var(--pf), sans-serif; color: var(--pc); font-size: 1.15em; margin: 16px 0 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.doc th, .doc td { border: 1px solid #c9c2b3; padding: 6px 9px; text-align: right; font-size: .95em; }
.doc th { background: color-mix(in srgb, var(--pa) 14%, #fff); }
.doc td.n { text-align: left; font-variant-numeric: tabular-nums; }
.doc .amount { border: 2px solid var(--pc); border-radius: 8px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; margin: 10px 0; font-size: 1.15em; }
.doc .sig { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; margin-top: 30px; text-align: center; page-break-inside: avoid; }
.doc .sig > div { color: #444; }
.doc .sig > div > span { display: block; border-top: 1px solid #999; padding-top: 6px; }
.doc .sgbox { height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; }
.doc .stampimg { max-height: 104px; max-width: 150px; position: absolute; bottom: -14px; mix-blend-mode: multiply; opacity: .92; }
.doc .signimg { max-height: 66px; max-width: 170px; mix-blend-mode: multiply; } .doc .sgname { font-size: .78em; color: #555; }
.doc .foot { margin-top: 22px; border-top: 1px solid #ddd; padding-top: 8px; font-size: .82em; color: #777; text-align: center; }
.doc .kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; margin-bottom: 12px; }
.doc .kv div { display: flex; gap: 8px; border-bottom: 1px dotted #ccc; padding: 4px 0; } .doc .kv span { color: #666; min-width: 110px; }
.doc .sheet + .sheet { page-break-before: always; }
.doc .wm { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; }
.doc .wm img { width: 55%; opacity: .07; } .doc .wm span { font-size: 64px; font-weight: 800; color: var(--pc); opacity: .07; transform: rotate(-30deg); white-space: nowrap; }
.doc .pframe { position: absolute; inset: -6mm; pointer-events: none; z-index: 0; border-radius: 4px; }
.doc .pframe.f-line { border: 1.5px solid var(--pc); } .doc .pframe.f-double { border: 4px double var(--pc); }
.doc .pframe.f-gold { border: 2px solid var(--pa); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--pc); }
.doc.thermal { font-size: var(--fs); } .doc.thermal .dh { flex-direction: column; text-align: center; gap: 4px; } .doc.thermal .dh .meta { margin: 0; text-align: center; }
.doc.thermal .kv { grid-template-columns: 1fr; } .doc.thermal .kv span { min-width: 80px; } .doc.thermal .sig { grid-template-columns: 1fr 1fr; gap: 8px; } .doc.thermal h2 { font-size: 1.2em; }
.doc.thermal table th, .doc.thermal table td { padding: 3px 4px; font-size: .85em; }
.doc .lease { text-align: justify; } .doc .lease p { margin: 0 0 8px; }
/* نافذة المعاينة */
.modal.prn-modal { width: min(1280px, 100%); height: calc(100vh - 40px); } .prn-modal .mb { padding: 0; flex: 1; min-height: 0; display: flex; }
.prn-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); flex: 1; min-height: 0; }
.prn-side { padding: 16px; border-inline-end: 1px solid var(--line); overflow: auto; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); }
.prn-side label { font-size: 12px; color: var(--ink-2); margin-top: 4px; } .prn-side .prn-tg { display: grid; gap: 6px; margin: 10px 0; } .prn-side .prn-tg label { margin: 0; color: var(--ink); font-size: 13px; }
.prn-stage { overflow: auto; background: #6b7686; padding: 26px; }
.prn-paper { background: #fff; margin: 0 auto; padding: 14mm 13mm; box-shadow: 0 10px 40px rgba(0,0,0,.35); min-height: 200mm; color: #111; }
.prn-paper .doc + .doc { margin-top: 30px; padding-top: 30px; border-top: 2px dashed #bbb; }
.imgpick { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .imgpick .ph { width: 130px; height: 70px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; overflow: hidden; flex: none; } .imgpick .ph img { max-width: 100%; max-height: 100%; }
.imgpick p { margin: 2px 0 6px; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } .asset { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.asset .ph { width: 100%; height: 100px; display: grid; place-items: center; border-radius: 8px; } .asset .ph img { max-width: 92%; max-height: 92px; }
.chk-bg { background: repeating-conic-gradient(#f1f1f1 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.sigpad canvas { width: 100%; height: 200px; border: 1px dashed var(--line-2); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; display: block; margin-bottom: 8px; }
input.inp[type=color] { padding: 2px 4px; height: 40px; }

@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .mapwrap { grid-template-columns: 1fr; } .side-panel { height: auto; } }
@media (max-width: 900px) { body { overflow: auto; } .shell { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100vh; } .main { min-width: 0; } .bars { gap: 3px; } .bars .b span { font-size: 9px; } .tbl-wrap { max-width: 100%; }
  .side { position: fixed; top: 0; bottom: 0; right: 0; width: min(300px, 86vw); z-index: 70; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 50px rgba(0,0,0,.35); padding-top: env(safe-area-inset-top); }
  .shell.drawer .side { transform: none; } .shell.drawer .scrim { opacity: 1; pointer-events: auto; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(8,14,24,.45); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .navbtn { display: grid !important; } .tabbar { display: flex !important; }
  .top { padding: 0 12px; padding-top: env(safe-area-inset-top); height: calc(56px + env(safe-area-inset-top)); position: sticky; top: 0; z-index: 30; } #view { padding: 14px 14px calc(92px + env(safe-area-inset-bottom)); overflow: visible; }
  .top .crumb, .savest, .searchbtn span, .searchbtn kbd { display: none; } .searchbtn { min-width: 0; } .top h1 { font-size: 17px; }
  .page-hd { flex-wrap: wrap; gap: 8px; } .page-hd > div:first-child { flex-basis: 100%; } .page-hd h2 { font-size: 20px; }
  .modal { border-radius: 18px 18px 0 0; max-height: 94vh; } .ovl { place-items: end center; padding: 0; } .modal.wide, .modal.xl { width: 100%; }
  .sys-card p, .sys-card .kp { max-width: 100%; } .sys-card .art { display: none; } .launcher .wrap { padding: 28px 16px; } .mapwrap { grid-template-columns: 1fr; } .map { height: 60vh; } .sys-cards, .g2, .g3 { grid-template-columns: 1fr; } .dl, .form { grid-template-columns: 1fr 1fr; }
  .modal .mb .grid[style*="grid-template-columns:minmax(0,1.5fr)"], .modal .mb .grid[style*="grid-template-columns:minmax(0,1.4fr)"] { grid-template-columns: 1fr !important; } }
@media (max-width: 560px) { .g4, .dl, .form, .form.c3 { grid-template-columns: minmax(0, 1fr); } .kpi .v { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ——— الخريطة الجغرافية ——— */
.gmap { position: relative; height: calc(100vh - 262px); min-height: 520px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #ece6d6; }
.gmap.full { position: fixed; inset: 0; z-index: 40; height: auto; border-radius: 0; border: 0; }
.gm-canvas { position: absolute; inset: 0; }
.gm-canvas .maplibregl-canvas { outline: none; }
.gmap .maplibregl-ctrl-bottom-right { right: 62px; }
.gmap .maplibregl-ctrl-group { border-radius: 10px; box-shadow: var(--shadow-1); }
.gmap .maplibregl-ctrl-scale { font-family: Tajawal, sans-serif; border-color: #0f1d2f; }
.gm-tools { position: absolute; top: 64px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 3px; padding: 6px; background: rgba(15, 29, 47, .92); border-radius: 14px; box-shadow: var(--shadow-2); backdrop-filter: blur(6px); }
.gm-tools button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #d4deea; cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.gm-tools button:hover { background: rgba(255,255,255,.1); color: #fff; }
.gm-tools button.on { background: var(--gold); color: var(--navy); }
.gm-tools .sep { height: 1px; background: rgba(255,255,255,.12); margin: 4px 6px; }
.gm-top { position: absolute; top: 12px; right: 12px; left: 12px; z-index: 4; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.gm-top > * { pointer-events: auto; }
.gm-search { position: relative; flex: 1; max-width: 460px; }
.gm-search > svg.i { position: absolute; inset-inline-start: 12px; top: 11px; color: var(--muted); }
.gm-search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 0 38px 0 12px; box-shadow: var(--shadow-1); outline: none; }
.gm-search input:focus { border-color: var(--gold); }
.gm-res { position: absolute; top: 44px; inset-inline: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-2); max-height: 300px; overflow: auto; }
.gm-res:empty { display: none; }
.gm-res .it { display: flex; gap: 8px; padding: 9px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--line); }
.gm-res .it:hover { background: var(--surface-2); }
.gm-seg { box-shadow: var(--shadow-1); background: var(--surface); }
.gm-base { width: auto; height: 40px; border-radius: 12px; box-shadow: var(--shadow-1); }
.gm-btn { height: 40px; border-radius: 12px; box-shadow: var(--shadow-1); }
.gm-btn.icon { width: 40px; }
.gm-btn.on { background: var(--navy); color: var(--gold-2); border-color: var(--navy); }
.gm-legend { position: absolute; top: 64px; left: 354px; z-index: 3; background: var(--surface); border-radius: 12px; padding: 7px 12px; box-shadow: var(--shadow-2); font-size: 12.5px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: calc(100% - 430px); }
.gm-legend .ttl { font-weight: 800; display: flex; gap: 6px; }
.gm-legend .it { display: flex; align-items: center; gap: 6px; }
.gm-legend .it i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }
.gm-legend .it b { color: var(--muted); font-weight: 700; }
.gm-legend .grad { height: 10px; width: 140px; border-radius: 5px; background: linear-gradient(to left, rgb(150,30,20), rgb(255,236,179)); }
.gm-hint { position: absolute; bottom: 44px; left: 360px; right: 110px; z-index: 3; margin: 0 auto; max-width: 820px; background: rgba(15,29,47,.94); color: #e6edf5; border-radius: 12px; padding: 9px 14px; font-size: 12.5px; box-shadow: var(--shadow-2); text-align: center; }
.gm-hint b { color: var(--gold-2); }
.gm-hint .live { margin-top: 4px; font-size: 13.5px; color: #fff; }
.gm-hint .pill { display: inline-block; background: var(--gold); color: var(--navy); border-radius: 99px; padding: 0 9px; font-weight: 800; margin-inline-start: 6px; }
.gm-status { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 3; background: rgba(255,255,255,.85); color: #223; border-radius: 8px; padding: 3px 10px; font-size: 11.5px; }
.gm-status .attr { color: #555; }
.gm-panel { position: absolute; top: 64px; left: 12px; bottom: 12px; width: 330px; z-index: 3; overflow: auto; box-shadow: var(--shadow-2); }
.gm-place { position: absolute; bottom: 90px; right: 70px; width: 320px; z-index: 5; box-shadow: var(--shadow-3); }
.gm-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gm-menu .btn { justify-content: flex-start; }
.gm-lbl { pointer-events: none; text-align: center; line-height: 1.05; color: #13202f; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; font-family: Tajawal, sans-serif; }
.gm-lbl b { display: block; font-size: 12.5px; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.gm-lbl b::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: #13202f; margin: 2px auto 0; }
.gm-lbl i { display: none; font-style: normal; font-size: 10px; font-weight: 700; color: #3a4655; margin-top: 1px; }
.gm-lbl.sel b { font-size: 14px; }
.lbl-hide .gm-lbl { display: none; }
.lbl-area .gm-lbl i { display: block; }
.gm-edge { pointer-events: none; }
.gm-edge span { display: inline-block; background: #fff; color: #0f1d2f; font-weight: 800; font-size: 11.5px; padding: 0 5px; border-radius: 5px; border: 1px solid #0f1d2f; white-space: nowrap; }
@media (max-width: 900px) { .gm-panel { top: auto; height: 42%; left: 8px; right: 8px; width: auto; } .gm-legend, .gm-hint { display: none; } .gm-top { flex-wrap: wrap; } .gm-search { max-width: none; flex-basis: 100%; } }

/* ——— الأمان والتفعيل ——— */
.sec-screen { position: fixed; inset: 0; z-index: 95; overflow: auto; background: radial-gradient(1000px 520px at 85% -10%, #1d3556 0%, transparent 60%), var(--navy); display: grid; place-items: center; padding: 24px; }
.sec-wrap { width: 100%; display: grid; place-items: center; }
.sec-card { width: min(430px, 100%); background: var(--surface); color: var(--ink); border-radius: 22px; padding: 30px 28px; text-align: center; box-shadow: var(--shadow-3); animation: pop .3s both; }
.sec-card.wide { width: min(620px, 100%); }
.sec-card .mark { width: 64px; height: 64px; }
.sec-card h2 { margin: 12px 0 4px; font-size: 24px; font-weight: 800; }
.sec-card .msg { min-height: 20px; margin-top: 8px; font-size: 13px; }
.sec-step { display: flex; gap: 14px; text-align: right; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.sec-step > span { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-weight: 800; flex: none; }
.sec-step > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.devid { font-size: 20px; font-weight: 800; letter-spacing: 1px; text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px; display: block; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.perm-grid .chk { height: 34px; }
.side .trial { margin: 6px 12px; background: rgba(224,196,139,.12); border: 1px solid rgba(224,196,139,.35); color: var(--gold-2); border-radius: 12px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; cursor: pointer; text-align: right; font-size: 12px; line-height: 1.4; }
.side .trial b { color: #fff; }
.side .me { display: flex; align-items: center; gap: 8px; margin: 6px 12px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); }
.side .me .avatar { width: 32px; height: 32px; border-radius: 10px; background: rgba(224,196,139,.18); color: var(--gold-2); font-size: 12px; }
.side .me div:nth-child(2) { flex: 1; min-width: 0; } .side .me b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .side .me small { color: #8a9bb2; font-size: 11px; }
.side .me button { background: none; border: 0; color: #9fb0c6; cursor: pointer; padding: 4px; border-radius: 8px; } .side .me button:hover { color: #fff; background: rgba(255,255,255,.08); }
.side .switch a.off { opacity: .35; cursor: not-allowed; }
.sys-card.locked { cursor: not-allowed; filter: grayscale(.7); opacity: .7; }
.sys-card.locked:hover { transform: none; }
.sys-card .lock { position: absolute; top: 26px; inset-inline-start: 26px; display: inline-flex; gap: 6px; align-items: center; background: rgba(0,0,0,.35); padding: 4px 10px; border-radius: 99px; font-size: 12px; color: #ffd9a0; }
/* ——— الجرس ——— */
.bell { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.bell:hover { color: var(--ink); }
.bell-n { position: absolute; top: -6px; inset-inline-end: -6px; background: var(--crit); color: #fff; border-radius: 99px; font-size: 10.5px; font-weight: 800; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; }
.bell-panel { position: fixed; z-index: 45; width: 420px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-3); animation: pop .18s both; }
.bell-panel .hd { display: flex; align-items: center; gap: 8px; padding: 14px 16px 6px; position: sticky; top: 0; background: var(--surface); }
.bell-panel .bd { padding: 0 16px 10px; }
/* ——— المرفقات ——— */
.att-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.att-imgs figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.att-imgs img { width: 100%; height: 110px; object-fit: cover; display: block; cursor: zoom-in; background: var(--surface-3); }
.att-imgs figcaption { display: flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; font-size: 11.5px; } .att-imgs figcaption span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.att-files { display: flex; flex-direction: column; gap: 8px; }
.att-file { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.att-file .ext { width: 42px; height: 42px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none; }
.att-file .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .att-file .nm b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* ——— سجل المتابعة ——— */
.timeline { display: flex; flex-direction: column; gap: 0; border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }
.timeline .tl { position: relative; padding: 6px 0 10px; display: flex; flex-direction: column; }
.timeline .tl::before { content: ''; position: absolute; inset-inline-start: -20px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); border: 2px solid var(--surface); }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; white-space: nowrap; }
.tabs a .i { width: 16px; height: 16px; } .tabs a.on { color: var(--ink); border-bottom-color: var(--acc); } .tabs { overflow-x: auto; }
.ctry { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ctry button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); font: inherit; transition: .15s; }
.ctry button:hover { border-color: var(--acc); transform: translateY(-1px); } .ctry button.on { border-color: var(--acc); background: var(--acc-soft); box-shadow: 0 0 0 2px var(--acc) inset; }
.ctry .sy, .radio-card .sy { font-size: 24px; font-weight: 800; color: var(--gold-ink, var(--acc)); line-height: 1.3; } .ctry span { font-weight: 700; font-size: 13px; text-align: center; } .ctry small { color: var(--muted); font-size: 11.5px; }
.radio-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; } .radio-card.on { border-color: var(--acc); background: var(--acc-soft); }
.radio-card .sy { min-width: 54px; text-align: center; font-size: 22px; }
.curprev { display: grid; gap: 8px; margin: 14px 0 8px; } .curprev > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; } .curprev span { color: var(--muted); } .curprev b { text-align: left; }
/* محرر النصوص */
.ed { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; min-height: 0; }
.ed-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.ed-bar .eg { display: flex; align-items: center; gap: 2px; padding-inline-end: 6px; margin-inline-end: 2px; border-inline-end: 1px solid var(--line); }
.ed-bar .eg:last-child { border: 0; }
.eb { width: 32px; height: 32px; border: 1px solid transparent; background: none; border-radius: 8px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); position: relative; padding: 0; font: inherit; }
.eb:hover { background: var(--surface-3); } .eb.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); } .eb:disabled { opacity: .35; cursor: default; }
.eb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eb.ec i { position: absolute; bottom: 4px; left: 7px; right: 7px; height: 3px; border-radius: 2px; } .eb.ec input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; }
.es { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; padding: 0 6px; }
.ed-scroll { overflow: auto; background: var(--bg-2); padding: 22px; flex: 1; min-height: 0; }
.ed-page { outline: none; background: #fff; color: #111; font-family: Tajawal, sans-serif; font-size: 14pt; line-height: 1.8; }
.ed-page.paper { width: min(210mm, 100%); margin: 0 auto; padding: 22mm 20mm; box-shadow: 0 6px 30px rgba(0,0,0,.18); border-radius: 4px; box-sizing: border-box; }
.ed-page:empty::before { content: attr(data-ph); color: #999; }
.ed-page p { margin: 0 0 8px; } .ed-page h1, .ed-page h2, .ed-page h3 { margin: 10px 0 8px; line-height: 1.4; } .ed-page h1 { font-size: 22pt; } .ed-page h2 { font-size: 17pt; } .ed-page h3 { font-size: 15pt; }
.ed-page table { border-collapse: collapse; width: 100%; margin: 8px 0; } .ed-page td, .ed-page th { border: 1px solid #9a9a9a; padding: 5px 7px; min-width: 30px; vertical-align: top; }
.ed-page blockquote { border-inline-start: 4px solid #c39a4e; margin: 8px 0; padding: 4px 14px; background: #faf6ec; }
.ed-page .pbreak, .doc .pbreak { border-top: 2px dashed #c9c2b3; margin: 18px 0; height: 0; position: relative; }
.ed-page .pbreak::after { content: 'فاصل صفحات'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: #fff; color: #999; font-size: 11px; padding: 0 8px; }
@media print { .doc .pbreak { border: 0; margin: 0; } }
.ed-page var, .tplvar { font-style: normal; background: #fdf1d6; color: #7a5410; border: 1px dashed #d9b26a; border-radius: 5px; padding: 0 5px; font-size: .92em; white-space: nowrap; }
.ed-page img { max-width: 100%; }
.ed-status { display: flex; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-2); }
.ed.ed-full { position: fixed; inset: 0; z-index: 60; border-radius: 0; }
.lease-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; height: calc(100vh - 150px); }
.lease-wrap .ed { height: 100%; }
.lease-side { overflow: auto; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1100px) { .lease-wrap { grid-template-columns: 1fr; height: auto; } .lease-wrap .ed { height: 80vh; } }
.avatar.xl { width: 58px; height: 58px; border-radius: 18px; font-size: 20px; }
.inp.sm { height: 32px; padding: 4px 8px; font-size: 13px; }
.crit-t { color: var(--crit); font-weight: 700; }
.tbl.pay td, .tbl.pay th { padding: 8px 7px; font-size: 12.5px; }
.flowbars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.flowbars .m { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.flowbars .cols { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.flowbars .cols i { width: 42%; max-width: 18px; border-radius: 5px 5px 2px 2px; display: block; min-height: 2px; }
.flowbars .cols i.in { background: var(--ok); } .flowbars .cols i.out { background: var(--crit); opacity: .8; }
.flowbars span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.donut-wrap { display: flex; gap: 16px; align-items: center; } .donut-wrap .lg { flex: 1; min-width: 0; } .donut-wrap .lg div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 3px 0; } .donut-wrap .lg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.budget-bar { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; } .budget-bar i { display: block; height: 100%; border-radius: 6px; background: var(--ok); } .budget-bar i.over { background: var(--crit); } .budget-bar i.near { background: var(--warn); }
.flowbars .m { min-width: 0; } .flowbars span { overflow: hidden; text-overflow: clip; max-width: 100%; }
@media (max-width: 560px) { .flowbars { gap: 3px; } .flowbars span { font-size: 8.5px; } .donut-wrap { flex-direction: column; } }
/* شروط العقد الذكية */
.terms { display: grid; gap: 14px; }
.tsec { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); }
.tsec .tl { font-weight: 800; font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .tsec .tl .i { width: 17px; height: 17px; color: var(--acc); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: .15s; }
.seg button.on { background: var(--surface); color: var(--acc); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.plan { position: relative; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 8px 8px; text-align: center; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 2px; transition: .15s; }
.plan b { font-size: 14px; } .plan span { font-size: 11.5px; color: var(--muted); }
.plan:hover { border-color: var(--acc); } .plan.on { border-color: var(--acc); background: var(--acc-soft); box-shadow: 0 0 0 1px var(--acc) inset; } .plan.on span { color: var(--acc); font-weight: 700; }
.plan .rec { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--gold, #c39a4e); color: #fff; font-style: normal; font-size: 10px; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.hintline { margin-top: 10px; font-size: 12.5px; background: var(--info-soft); padding: 8px 12px; border-radius: 10px; display: flex; gap: 6px; align-items: center; } .hintline.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.hintline .i { width: 15px; height: 15px; flex: none; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chipx { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; transition: .12s; }
.chipx:hover { border-color: var(--acc); } .chipx.on { background: var(--acc); color: #fff; border-color: var(--acc); } .chipx.add { border-style: dashed; }
.svc-rows { margin-top: 12px; display: grid; gap: 6px; }
.svc-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(150px, 1.3fr) minmax(90px, .9fr) minmax(100px, 1fr) auto; gap: 6px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 6px 8px; }
.svc-row .nm { display: flex; gap: 6px; align-items: center; min-width: 0; } .svc-row .nm input { flex: 1; min-width: 0; }
.svc-sum { margin-top: 10px; font-size: 13px; display: flex; gap: 6px; align-items: center; color: var(--acc); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr 1fr; } }

/* ——— الجوال ——— */
.navbtn { display: none; width: 40px; height: 40px; border: 0; background: none; place-items: center; color: var(--ink); cursor: pointer; border-radius: 10px; } .navbtn .i { width: 22px; height: 22px; }
.scrim { display: none; }
.tabbar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
.tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 11px; color: var(--muted); background: none; border: 0; padding: 4px 0; text-decoration: none; cursor: pointer; }
.tabbar .i { width: 22px; height: 22px; } .tabbar a.on { color: var(--acc); font-weight: 700; }
.today { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.today-hd { display: flex; align-items: center; justify-content: space-between; } .today-hd small { color: var(--muted); } .today-hd h2 { margin: 2px 0 0; font-size: 22px; } .today-hd h2 span { font-size: 13px; color: var(--muted); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 4px 10px; border-radius: 99px; } .live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; } .live.off { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); }
@keyframes pulse { 50% { opacity: .35; } }
.tkpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .tkpi div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; } .tkpi span { display: block; font-size: 12px; color: var(--muted); } .tkpi b { font-size: 20px; } .tkpi .crit b { color: var(--crit); }
.qacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 8px; } .qacts a, .qacts button { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: 12px; color: var(--ink); text-decoration: none; cursor: pointer; } .qacts .i { width: 22px; height: 22px; color: var(--acc); }
.tsec2 { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; } .tsec2 h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 6px; } .tsec2 h3 .i { width: 18px; height: 18px; color: var(--acc); } .tsec2.crit h3 .i { color: var(--crit); }
.tsec2 .cnt { background: var(--surface-3); border-radius: 99px; padding: 0 8px; font-size: 12px; }
.tcard { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); } .tcard:first-of-type { border-top: 0; }
.tc-main { flex: 1; min-width: 0; cursor: pointer; } .tc-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tc-main span { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-amt { text-align: left; } .tc-amt b { display: block; font-size: 14px; } .tc-amt small { color: var(--muted); font-size: 11px; } .tc-act { display: flex; gap: 4px; } .tc-act .wa { color: #25d366; } .tc-act .ml { color: var(--info); }
.switch-big { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; } .switch-big input { display: none; } .switch-big span { width: 50px; height: 28px; border-radius: 99px; background: var(--surface-3); position: relative; transition: .2s; border: 1px solid var(--line); }
.switch-big span::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: .2s; } .switch-big input:checked + span { background: var(--ok); } .switch-big input:checked + span::after { right: 25px; }
.pair { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; } .qrbox { background: #fff; padding: 10px; border-radius: 14px; line-height: 0; border: 1px solid var(--line); }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; justify-items: center; } }
@media (max-width: 900px) { #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; right: 12px; } .toast { min-width: 0; max-width: none; } }
@media (max-width: 420px) { .tkpi { gap: 6px; } .tkpi div { padding: 10px 8px; min-width: 0; } .tkpi b { font-size: 16px; } .today-hd { flex-wrap: wrap; gap: 6px; } .tcard { gap: 6px; } .tc-act { gap: 2px; } .tc-act .btn.sm { padding: 5px 7px; } .today { min-width: 0; } .tsec2 { min-width: 0; overflow: hidden; } }
.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; margin-top: 10px; } .addr-grid label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; } .addr-grid .inp { width: 100%; }
[data-addr-paste] { width: 100%; min-height: 0; font-size: 13px; }

/* ═════ v3.2 — الإدارة العقارية الذكية والمخططات المتقدمة ═════ */
.form.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stage { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--c); border-radius: var(--r); padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; text-align: right; transition: .15s; }
.stage:hover, .stage.on { box-shadow: var(--shadow-2); border-color: var(--c); }
.stage .k { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.stage small { display: block; color: var(--muted); font-size: 11.5px; } .stage b.num { font-size: 17px; }
.stars { color: #e0a020; letter-spacing: 1px; white-space: nowrap; } .stars i { color: var(--line-2); font-style: normal; }
.iroom { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.iroom .irh { display: flex; align-items: center; padding: 9px 14px; background: var(--surface-2); }
.iitem { display: grid; grid-template-columns: minmax(130px, 1fr) auto minmax(120px, 1fr) auto; gap: 8px; align-items: center; padding: 8px 14px; border-top: 1px dashed var(--line); }
.iitem .nm { font-size: 13.5px; } .iitem.bad, .iitem.missing { background: var(--crit-soft); } .iitem.fair { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.seg.sm button { padding: 5px 9px; font-size: 12px; font-weight: 600; }
.seg.sm button.on.good { color: var(--ok); } .seg.sm button.on.fair { color: var(--warn); } .seg.sm button.on.bad, .seg.sm button.on.missing { color: var(--crit); }
.inp.sm { height: 32px; font-size: 12.5px; padding: 4px 10px; }
.infra-row { margin-bottom: 12px; } .infra-row .row { gap: 8px; margin-bottom: 4px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 280px; overflow: auto; }
.pick { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; cursor: pointer; font-size: 13px; }
.pick span.small { grid-column: 2 / 4; } .pick.on { border-color: var(--acc); background: var(--acc-soft); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: var(--surface-2); border-radius: var(--r); padding: 10px; min-height: 120px; }
.khd { display: flex; justify-content: space-between; padding: 4px 6px 10px; } .khd span { background: var(--surface); border-radius: 99px; padding: 0 10px; font-size: 12px; }
.kcard { background: var(--surface); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-1); cursor: pointer; font-size: 13.5px; transition: .15s; } .kcard:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.verdict.go { border-inline-start: 5px solid var(--ok); } .verdict.maybe { border-inline-start: 5px solid var(--warn); } .verdict.no { border-inline-start: 5px solid var(--crit); }
.tbl.sens td, .tbl.sens th { text-align: center; }
/* شاشة المزايدة الحية */
.aulive { position: fixed; inset: 0; z-index: 44; background: radial-gradient(circle at 30% 0%, #1b3150, #0b1524 70%); color: #fff; display: flex; flex-direction: column; font-family: Tajawal, sans-serif; }
.aulive .live-hd { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.08); } .aulive .live-hd img { width: 40px; height: 40px; border-radius: 10px; } .aulive .live-hd small { display: block; opacity: .6; }
.aulive .btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.15); } .aulive .btn.pri { background: #c39a4e; color: #1b1405; border-color: #c39a4e; } .aulive .btn.dan { background: rgba(239,106,92,.18); color: #ffb3aa; }
.aulive .inp { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); } .aulive .inp option { color: #111; }
.live-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 0; }
.live-main { padding: 26px; overflow: auto; text-align: center; }
.lot-no { font-size: 30px; font-weight: 800; } .lot-no b { color: #f3d48a; font-size: 44px; } .lot-no span { opacity: .6; font-size: 18px; }
.lot-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0 18px; } .lot-meta span { background: rgba(255,255,255,.08); padding: 4px 14px; border-radius: 99px; }
.bid-big { margin: 10px auto; } .bid-big small { display: block; opacity: .65; font-size: 16px; } .bid-big b { font-size: clamp(64px, 11vw, 140px); line-height: 1; color: #f3d48a; text-shadow: 0 6px 40px rgba(243,212,138,.25); } .bid-big span { font-size: 22px; opacity: .7; }
.bid-big.sold b { color: #6be59a; }
.bid-tot { font-size: 20px; opacity: .9; } .paddle { background: #c39a4e; color: #1b1405; padding: 2px 10px; border-radius: 8px; font-weight: 800; }
.count { height: 44px; font-size: 34px; font-weight: 800; margin-top: 8px; } .count.c3 { color: #ff8a7a; }
.paddles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.paddles button { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 14px; padding: 10px 16px; min-width: 110px; cursor: pointer; font: inherit; } .paddles button b { display: block; font-size: 22px; color: #f3d48a; } .paddles button span { font-size: 12.5px; opacity: .8; }
.paddles button:hover { background: rgba(243,212,138,.15); } .paddles button.lead { border-color: #6be59a; background: rgba(107,229,154,.12); }
.live-side { border-inline-start: 1px solid rgba(255,255,255,.08); overflow: auto; padding: 10px; }
.live-side .lot { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; width: 100%; text-align: right; background: rgba(255,255,255,.05); border: 1px solid transparent; color: #fff; border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; cursor: pointer; font: inherit; }
.live-side .lot i { grid-column: 1 / 4; font-style: normal; font-size: 11.5px; opacity: .6; } .live-side .lot.cur { border-color: #f3d48a; } .live-side .lot.st-sold { background: rgba(107,229,154,.1); } .live-side .lot.st-unsold { opacity: .45; }
/* العرض التفاعلي للعميل */
.present { position: fixed; inset: 0; z-index: 44; background: var(--bg); display: flex; flex-direction: column; }
.pr-hd { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--navy, #0f1d2f); color: #fff; flex-wrap: wrap; } .pr-hd img { width: 42px; height: 42px; border-radius: 10px; background: #fff; object-fit: contain; } .pr-hd small { display: block; opacity: .65; }
.pr-hd .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); } .pr-hd .seg { background: rgba(255,255,255,.1); } .pr-hd .seg button { color: #fff; } .pr-hd .seg button.on { color: var(--navy, #0f1d2f); }
.pr-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.pr-map { padding: 12px; overflow: auto; display: grid; place-items: center; } .pr-map svg { width: 100%; height: 100%; max-height: calc(100vh - 110px); }
.pr-map .plot { cursor: pointer; transition: opacity .2s; } .pr-map .plot.dim { opacity: .18; } .pr-map .plot text { fill: #fff; font-weight: 800; pointer-events: none; font-family: Tajawal; }
.pr-map .plot.sel rect, .pr-map .plot.sel polygon { stroke: #0f1d2f; stroke-width: 3; }
.pr-side { background: var(--surface); border-inline-start: 1px solid var(--line); padding: 18px; overflow: auto; } .pr-side h3 { margin: 0 0 8px; } .pr-side h4 { margin: 16px 0 6px; }
.pr-kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; } .pr-kp div { background: var(--surface-2); border-radius: 12px; padding: 8px; text-align: center; } .pr-kp b { display: block; font-size: 16px; } .pr-kp span { font-size: 11.5px; color: var(--muted); }
.pr-price { background: var(--navy, #0f1d2f); color: #fff; border-radius: 14px; padding: 12px 16px; margin: 12px 0; } .pr-price b { display: block; font-size: 26px; color: #f3d48a; } .pr-price small { opacity: .7; }
.pr-calc { background: var(--surface-2); border-radius: 12px; padding: 6px 12px; margin-top: 8px; }
@media (max-width: 900px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } .live-body, .pr-body { grid-template-columns: 1fr; } .live-side { border: 0; display: flex; gap: 6px; overflow-x: auto; } .live-side .lot { min-width: 150px; } .pr-side { border: 0; } .iitem { grid-template-columns: 1fr; } .form.c4 { grid-template-columns: 1fr 1fr; } .kanban { grid-template-columns: repeat(4, minmax(240px, 1fr)); } }
/* استوديو العقود */
.dtypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dtype { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; text-align: right; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; font: inherit; color: inherit; transition: .15s; }
.dtype:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--acc); }
.dtype .di { grid-row: 1 / 4; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.dtype.sale .di { background: var(--pl-soft); color: var(--pl); } .dtype.broker .di { background: var(--re-soft); color: var(--re); } .dtype.mgmt .di { background: var(--fin-soft); color: var(--fin); } .dtype.lease .di { background: var(--info-soft); color: var(--info); }
.dtype b { font-size: 15px; } .dtype small { color: var(--muted); font-size: 12.5px; line-height: 1.6; } .dtype em { font-style: normal; font-size: 11.5px; color: var(--muted); }
fieldset.dgrp { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 4px; margin: 0 0 12px; } fieldset.dgrp legend { padding: 0 8px; font-weight: 800; font-size: 13px; color: var(--acc); }
.lease-side fieldset.dgrp .form { grid-template-columns: 1fr; }
/* ═════ الطباعة الرسمية الفاخرة ═════ */
.doc .dh-royal { display: grid; grid-template-columns: minmax(0, 1.5fr) auto minmax(0, 1fr); align-items: center; gap: 16px; border: 0; padding: 0 0 8px; margin: 0; }
.doc .dh-royal h1 { font-size: 1.7em; letter-spacing: .2px; } .doc .dh-royal .en { font-family: 'Tajawal', sans-serif; font-size: .82em; color: var(--pa); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-top: 1px; }
.doc .dh-royal .legal { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 5px 0 2px; font-size: .84em; color: #333; } .doc .dh-royal .legal span { position: relative; } .doc .dh-royal .legal span + span::before { content: '◆'; color: var(--pa); font-size: .6em; position: absolute; right: -9px; top: 4px; }
.doc .dh-royal p { font-size: .82em; color: #666; }
.doc .dh-royal .medal { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 58%, color-mix(in srgb, var(--pa) 18%, #fff) 60%); box-shadow: 0 0 0 2px var(--pa), 0 0 0 5px #fff, 0 0 0 6.5px var(--pc); }
.doc .dh-royal .medal .lg, .doc .dh-royal .medal .mark { width: 64px; height: 64px; object-fit: contain; border-radius: 0; }
.doc .dh-royal .rz-l { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.doc .dh-royal .metabox { border: 1px solid color-mix(in srgb, var(--pa) 60%, #fff); border-inline-start: 4px solid var(--pa); border-radius: 6px; padding: 6px 10px; font-size: .86em; line-height: 1.65; background: color-mix(in srgb, var(--pa) 6%, #fff); text-align: right; min-width: 0; }
.doc .royal-rule { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; margin: 4px 0 14px; } .doc .royal-rule i { height: 3px; background: var(--pc); border-bottom: 1.5px solid #fff; box-shadow: 0 2.5px 0 var(--pa); } .doc .royal-rule b { width: 12px; height: 12px; transform: rotate(45deg); background: var(--pa); border: 2px solid var(--pc); margin: 0 6px; }
.doc h2.dt-royal { background: none; display: flex; align-items: center; gap: 14px; padding: 2px 0; margin: 2px 0 14px; font-size: 1.5em; letter-spacing: .3px; }
.doc h2.dt-royal::before, .doc h2.dt-royal::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--pa) 40%, var(--pa)); }
.doc h2.dt-royal::after { background: linear-gradient(to right, transparent, var(--pa) 40%, var(--pa)); }
.doc h2.dt-royal span { padding: 4px 18px; border: 1.5px solid var(--pc); border-radius: 30px; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--pa); background: #fff; }
.doc .qr-slot { text-align: center; } .doc .qr-slot .vcode { display: block; font-family: 'Courier New', monospace; font-size: 8.5px; letter-spacing: .5px; color: var(--pc); margin-top: 2px; line-height: 1.2; direction: ltr; }
.doc .micro { font-size: 4.2px; line-height: 1; color: color-mix(in srgb, var(--pa) 70%, #000); white-space: nowrap; overflow: hidden; letter-spacing: .2px; margin-top: 18px; border-top: .6px solid var(--pa); border-bottom: .6px solid var(--pa); padding: 1.5px 0; opacity: .85; }
.doc .foot.foot3 { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; align-items: center; text-align: right; margin-top: 6px; border: 0; padding-top: 6px; font-size: .78em; color: #555; }
.doc .foot.foot3 > span:nth-child(2) { text-align: center; } .doc .foot.foot3 .pgref { text-align: left; font-size: .9em; color: var(--pc); border: 1px solid #ccc; border-radius: 5px; padding: 2px 8px; line-height: 1.4; } .doc .foot.foot3 .pgref b { font-family: 'Courier New', monospace; letter-spacing: .5px; }
.doc .wm.wm-sec { background-repeat: no-repeat; background-position: center 46%; background-size: 70%; opacity: .085; } .doc .wm.wm-sec img { width: 22%; opacity: .55; filter: grayscale(1); }
.doc .pframe.f-guilloche { inset: -7mm; border: 9px solid transparent; border-image-slice: 15; border-image-width: 9px; border-image-repeat: round; }
.doc .pframe.f-royal { inset: -7mm; border: 1.6px solid var(--pc); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--pa); }
.doc .pframe.f-royal .cn { position: absolute; width: 17mm; height: 17mm; background-size: contain; background-repeat: no-repeat; }
.doc .pframe.f-royal .cn0 { top: 1.5mm; right: 1.5mm; transform: scaleX(-1); } .doc .pframe.f-royal .cn1 { top: 1.5mm; left: 1.5mm; } .doc .pframe.f-royal .cn2 { bottom: 1.5mm; right: 1.5mm; transform: scale(-1, -1); } .doc .pframe.f-royal .cn3 { bottom: 1.5mm; left: 1.5mm; transform: scaleY(-1); }
.doc[data-copy]::before { top: -2mm; left: 0; font-size: 10px; font-weight: 800; color: var(--pc); border: 1.5px solid var(--pc); border-radius: 4px; padding: 1px 10px; background: #fff; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--pa); letter-spacing: 1px; }
.doc .amount { border: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--pa) 14%, #fff), #fff); border-inline-start: 5px solid var(--pc); border-radius: 6px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--pa) 50%, #fff); }
.doc .amount b { font-size: 1.25em; color: var(--pc); letter-spacing: .3px; }
.doc .sig > div > span { border-top: 1.2px dashed #777; font-weight: 700; color: var(--pc); } .doc .sig > div > span::after { content: 'التاريخ:      /      /'; display: block; font-weight: 400; font-size: .78em; color: #888; margin-top: 2px; }
.doc thead { display: table-header-group; } .doc tr, .doc .kv > div, .doc .amount, .doc .sig, .doc svg { break-inside: avoid; page-break-inside: avoid; }
.doc table.wide th, .doc table.wide td { font-size: .82em; padding: 4px 5px; }
.doc .pgbreak { break-before: page; page-break-before: always; height: 0; }
/* لوحة المخطط */
.doc .sheet-title { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: center; margin: 0 0 8px; } .doc .sheet-title small { color: var(--pa); font-weight: 800; letter-spacing: 1px; } .doc .sheet-title h1 { margin: 0; font-size: 1.9em; color: var(--pc); font-family: var(--tf), var(--pf); } .doc .sheet-title p { margin: 0; color: #555; }
.doc .st-tbl { margin: 0; } .doc .st-tbl th { width: 18%; } .doc .sheet-foot { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; gap: 16px; margin-top: 10px; align-items: start; }
.doc .st-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: .88em; } .doc .st-leg i { display: inline-block; width: 14px; height: 11px; border-radius: 2px; margin-inline-end: 5px; border: 1px solid #999; vertical-align: middle; }
.doc .st-lu { margin: 4px 0 0; } .doc .st-lu td { padding: 2px 6px; font-size: .86em; }
/* علامات الخريطة الإضافية */
.gm-street { background: rgba(58,66,80,.92); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); } .gm-street i { font-style: normal; color: #f3d48a; margin-inline-start: 4px; }
.gm-block { background: #f3d48a; color: #1b1405; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 6px; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.lbl-hide .gm-street, .lbl-hide .gm-block { display: none; }
.doc .void { position: absolute; inset: -6mm; z-index: 0; opacity: .5; pointer-events: none; } @media print { .doc .void { position: fixed !important; } }
/* التحقق من المستندات */
.vres{display:flex;gap:16px;align-items:center;padding:18px 20px;border-radius:14px;border:2px solid;background:var(--card)}
.vres h2{margin:0 0 4px;font-size:22px}.vres p{margin:0}
.vres.ok{border-color:var(--ok);background:color-mix(in srgb,var(--ok) 8%,var(--card))}.vres.ok .vseal{background:var(--ok)}
.vres.crit{border-color:var(--crit);background:color-mix(in srgb,var(--crit) 8%,var(--card))}.vres.crit .vseal{background:var(--crit)}
.vres.warn{border-color:var(--warn);background:color-mix(in srgb,var(--warn) 10%,var(--card))}.vres.warn .vseal{background:var(--warn)}
.vseal{flex:none;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#fff}.vseal svg{width:30px;height:30px}
.vcam{position:relative;margin-top:12px;border-radius:12px;overflow:hidden;background:#000;max-width:440px}.vcam video{width:100%;display:block}
.vcam .vframe{position:absolute;inset:18%;border:3px solid #fff;border-radius:14px;box-shadow:0 0 0 999px rgba(0,0,0,.35)}.vcam #vStop{position:absolute;bottom:10px;inset-inline-start:10px}
/* ——— نظام إدارة الملفات ——— */
.pick-list.col { grid-template-columns: 1fr; max-height: 380px; } .pick-list.col .pick { display: flex; flex-direction: column; align-items: flex-start; text-align: start; gap: 2px; background: var(--surface); color: var(--ink); font: inherit; text-decoration: none; }
.pick-list.col .pick:hover { border-color: var(--acc); background: var(--acc-soft); }
.ftype { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--acc-soft); color: var(--acc); margin-inline-end: 4px; }
.ftype svg { width: 12px; height: 12px; } .ftype.ai { background: var(--info-soft); color: var(--info); } .ftype.un { background: var(--surface-3); color: var(--muted); }
.att-miss { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.att-miss > svg { width: 16px; height: 16px; } .att-miss .chip { background: var(--surface); }
.drag > .card, .card.drag { outline: 2px dashed var(--acc); outline-offset: -4px; background: var(--acc-soft); }
.fs-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.fs-nav .bd { padding: 8px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; }
.fs-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.fs-nav a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fs-nav a b { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fs-nav a:hover { background: var(--surface-2); } .fs-nav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 700; } .fs-nav a svg { width: 16px; height: 16px; flex: none; }
.fs-nav .grp { font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 12px 10px 4px; display: flex; align-items: center; justify-content: space-between; }
.fs-main { position: relative; min-height: 420px; } .fs-drop { display: none; } .fs-main.drag .fs-drop { display: grid; place-items: center; position: absolute; inset: 0; background: color-mix(in srgb, var(--acc-soft) 88%, transparent); border: 2px dashed var(--acc); border-radius: var(--r); color: var(--acc); font-weight: 800; font-size: 18px; z-index: 3; }
.fs-drop svg { width: 36px; height: 36px; display: block; margin: 0 auto 6px; }
.fs-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; } .fs-head svg { width: 18px; height: 18px; color: var(--acc); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.fcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; display: flex; flex-direction: column; }
.fcard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-2); }
.fcard .th { height: 104px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; } .fcard .th img { width: 100%; height: 100%; object-fit: cover; }
.fcard .th.ext { color: var(--acc); grid-auto-flow: row; align-content: center; gap: 2px; } .fcard .th.ext svg { width: 34px; height: 34px; } .fcard .th.ext b { font-size: 11px; letter-spacing: .5px; }
.fcard .th.pdf { color: #c0392b; background: #fbe9e6; } :root[data-theme="dark"] .fcard .th.pdf { background: #3a1714; }
.fcard .fb { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; min-width: 0; } .fcard .fb b { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fcard .fb small { font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .fcard .via { color: var(--info); display: flex; align-items: center; gap: 3px; } .fcard .via svg { width: 12px; height: 12px; flex: none; }
.pv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; min-height: 66vh; }
.pv-view { background: var(--surface-3); border-radius: 12px; display: grid; place-items: center; overflow: hidden; min-height: 66vh; }
.pv-view img { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; } .pv-view iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.pv-meta { display: flex; flex-direction: column; gap: 2px; overflow: auto; max-height: 72vh; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: start; } .kv > span { color: var(--muted); } .kv svg { width: 14px; height: 14px; vertical-align: -2px; }
.pv-acts { display: flex; flex-wrap: wrap; gap: 6px; } .btn.dan { color: var(--crit); }
.rbadge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-inline-end: 4px; background: var(--surface-3); color: var(--ink-2); }
.rbadge svg { width: 12px; height: 12px; } .rbadge.r-tenants { background: var(--re-soft); color: var(--re); } .rbadge.r-owners { background: #f6efdc; color: var(--gold-ink); } .rbadge.r-buyers { background: var(--pl-soft); color: var(--pl); } .rbadge.r-leads { background: var(--fin-soft); color: var(--fin); }
.tline { position: relative; padding-inline-start: 6px; } .tl { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.tl::before { content: ''; position: absolute; inset-inline-start: 15px; top: 34px; bottom: -8px; width: 2px; background: var(--line); } .tl:last-child::before { display: none; }
.tl .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; z-index: 1; } .tl .dot svg { width: 15px; height: 15px; }
.tl.fut .dot { background: var(--surface-3); color: var(--muted); } .tl a { color: var(--ink); } .tl b { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .fs-wrap, .pv-wrap { grid-template-columns: 1fr; } .fs-nav .bd { position: static; } }
/* ——— القراءة الذكية ——— */
.ocr-prog { text-align: center; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 360px; }
.ocr-prog .scan { width: 120px; height: 84px; border: 2px solid var(--acc); border-radius: 10px; position: relative; overflow: hidden; background: repeating-linear-gradient(0deg, var(--surface-2) 0 10px, var(--surface) 10px 12px); }
.ocr-prog .scan span { position: absolute; inset-inline: 0; height: 3px; background: var(--acc); box-shadow: 0 0 12px var(--acc); animation: ocrscan 1.3s ease-in-out infinite alternate; }
@keyframes ocrscan { from { top: 4px; } to { top: calc(100% - 7px); } }
.ocr-prog .bar { width: 100%; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; } .ocr-prog .bar i { display: block; height: 100%; width: 5%; background: var(--acc); transition: width .4s; }
.ocr-src { display: flex; gap: 8px; flex-wrap: wrap; } .ocr-drop { margin-top: 12px; border: 2px dashed var(--line-2); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); }
.ocr-drop.on { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); } .ocr-drop svg { width: 26px; height: 26px; display: block; margin: 0 auto 6px; }
.ocr-rev { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
.ocr-pv img { width: 100%; max-height: 52vh; object-fit: contain; background: var(--surface-3); border-radius: 12px; border: 1px solid var(--line); }
.ocr-meta { display: flex; gap: 10px; align-items: center; margin: 10px 0; } .ocr-meta small { display: block; }
.ocr-raw { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; background: var(--surface-2); border-radius: 10px; padding: 10px; max-height: 220px; overflow: auto; direction: rtl; }
.tgts { display: flex; flex-direction: column; gap: 6px; max-height: 230px; overflow: auto; }
.tgt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; } .tgt:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.tgt span { display: flex; flex-direction: column; } .tgt small { color: var(--muted); font-size: 12px; } .tgt small.ok { color: var(--ok); font-weight: 700; } .tgt svg { width: 13px; height: 13px; vertical-align: -2px; }
.ofl { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); } .ofl span { width: 130px; color: var(--muted); } .ofl b { flex: 1; }
.fld.ofilled .inp { background: var(--info-soft); border-color: var(--info); } .mh .ocr-fill { margin-inline-start: auto; }
@media (max-width: 900px) { .ocr-rev { grid-template-columns: 1fr; } }
/* ——— التقسيم الأمثل ——— */
.opt-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px; position: relative; background: var(--surface); } .opt-card.best { border: 2px solid var(--ok); }
.opt-best { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--ok); color: #fff; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; display: inline-flex; gap: 4px; align-items: center; z-index: 1; } .opt-best svg { width: 12px; height: 12px; }
.opt-svg { width: 100%; height: auto; border-radius: 10px; display: block; }
.opt-m { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 6px; text-align: center; } .opt-m b { display: block; font-size: 17px; } .opt-m small { color: var(--muted); font-size: 11px; }
.opt-leg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); margin-bottom: 10px; } .opt-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.15); }
@media (max-width: 1100px) { .opt-wrap { grid-template-columns: 1fr; } .opt-grid { grid-template-columns: 1fr; } }
/* ——— الأتمتة ——— */
.au-g { margin: 18px 4px 8px; color: var(--muted); font-size: 13px; }
.au-rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; } .au-rule.off { opacity: .6; }
.au-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; font-size: 12.5px; } .au-flow span { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
.au-flow span.act { background: var(--acc-soft); color: var(--acc); border-color: transparent; font-weight: 700; } .au-flow svg { width: 13px; height: 13px; } .au-flow .arr { background: none; border: 0; padding: 0; color: var(--muted); }
.au-msg { background: var(--surface-2); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; margin: 6px 0; white-space: pre-wrap; color: var(--ink-2); border-inline-start: 3px solid var(--acc); }
.au-list { display: flex; flex-direction: column; gap: 8px; } .au-row { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; }
.au-row .ai { width: 32px; height: 32px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; flex: none; } .au-row .ai svg { width: 16px; height: 16px; }
.au-row.task.done b { text-decoration: line-through; color: var(--muted); } .au-row .late { color: var(--crit); font-weight: 700; } .au-row .col { display: flex; flex-direction: column; }
.au-presets { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; } .au-pre { display: flex; align-items: center; gap: 10px; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; } .au-pre small { display: block; }
.au-prev { background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 10px 12px; font-size: 13px; } .au-prev svg { width: 14px; height: 14px; vertical-align: -2px; } .au-prev .au-msg { color: var(--ink); }
.vars { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; } .vars .chip { font-size: 11.5px; }
.sw { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; cursor: pointer; } .sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw i { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .2s; } .sw i::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; inset-inline-start: 3px; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sw input:checked + i { background: var(--ok); } .sw input:checked + i::after { inset-inline-start: 19px; }
@media (max-width: 700px) { .au-rules { grid-template-columns: 1fr; } }
/* ——— v3.4: العمليات اليومية ——— */
.seg a { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-decoration: none; } .seg a.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-1); }
.bar { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }
.factor.neg b { color: var(--crit); }
.rn-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 0 12px; } .rn-big span { color: var(--muted); font-size: 13px; } .rn-big b { font-size: 28px; font-variant-numeric: tabular-nums; color: var(--acc); }
/* البنك */
.bk-drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 34px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-top: 12px; } .bk-drop svg { width: 34px; height: 34px; color: var(--acc); } .bk-drop.on { border-color: var(--acc); background: var(--acc-soft); }
.bk-list { display: flex; flex-direction: column; gap: 8px; }
.bk-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; align-items: start; border-inline-start: 4px solid var(--line-2); }
.bk-row.st-matched { border-inline-start-color: var(--ok); } .bk-row.st-review { border-inline-start-color: var(--warn); } .bk-row.st-none { border-inline-start-color: var(--crit); } .bk-row.st-posted { border-inline-start-color: var(--ok); background: var(--ok-soft); } .bk-row.st-dup, .bk-row.st-debit, .bk-row.st-ignored { opacity: .6; }
.bk-a { display: flex; flex-direction: column; } .bk-a b { font-size: 17px; color: var(--ok); } .bk-a b.neg { color: var(--crit); }
.bk-d { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .bk-d .ok { color: var(--ok); font-weight: 700; } .bk-d .ok svg { width: 13px; height: 13px; vertical-align: -2px; }
.bk-c { display: flex; flex-direction: column; gap: 5px; width: 100%; } .bk-c label { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 6px 9px; cursor: pointer; } .bk-c label.on { border-color: var(--acc); background: var(--acc-soft); }
.bk-c span { display: flex; flex-direction: column; } .bk-c .why { color: var(--info); font-size: 12px; } .bk-x { display: flex; flex-direction: column; gap: 4px; }
/* وثائق المباني */
.bd-tbl th.c, .bd-tbl td.c { text-align: center; } .bd-c { text-align: center; cursor: pointer; min-width: 92px; } .bd-c span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; } .bd-c small { display: block; font-size: 11px; color: var(--muted); }
.bd-c:hover { background: var(--surface-2); } .st-ok span, .bd-leg .st-ok::before { background: var(--ok-soft); color: var(--ok); } .st-soon span, .bd-leg .st-soon::before { background: var(--warn-soft); color: var(--warn); } .st-expired span, .bd-leg .st-expired::before { background: var(--crit-soft); color: var(--crit); }
.st-missing span { border: 2px dashed var(--crit); color: var(--crit); } .st-na span { color: var(--line-2); } .bd-leg { display: flex; gap: 16px; flex-wrap: wrap; }
/* الإعلان */
.ad-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; } .ad-pv img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-2); background: var(--surface-3); aspect-ratio: 4/5; }
.ad-ph { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 10px; } .ad-ph img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; } .ad-ph img:hover { border-color: var(--acc); }
.pbar .bd { padding: 10px 14px; }
/* قائمة الانتظار */
.wl-q { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; } .wl-q > div { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; } .wl-q b { width: 24px; height: 24px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 12px; } .wl-q span { flex: 1; }
.cx-card { background: var(--surface-2); }
/* الحاسبة */
.calc-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; } .calc-g input[type=range] { width: 100%; accent-color: var(--acc); }
.calc-big { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; margin-bottom: 12px; } .calc-big > div { background: var(--surface-2); border-radius: 14px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.calc-big b { font-size: 20px; font-variant-numeric: tabular-nums; } .calc-big small { color: var(--muted); font-size: 12px; } .calc-big .hl { background: var(--acc); color: #fff; } .calc-big .hl small { color: rgba(255,255,255,.8); } .calc-big .hl b { font-size: 26px; }
/* الفريق */
.team-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; } .tm-card.lead { border: 2px solid var(--gold); }
.tm-rank { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; } .tm-card.lead .tm-rank { background: var(--gold); color: #fff; }
.tm-m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 10px; } .tm-m > div { display: flex; flex-direction: column; background: var(--surface-2); border-radius: 10px; padding: 8px; } .tm-m b { font-size: 17px; font-variant-numeric: tabular-nums; } .tm-m small { color: var(--muted); font-size: 11.5px; }
/* التقويم */
.cal-tb { flex-wrap: wrap; gap: 8px; } .cal-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.cal-leg label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; } .cal-leg input { display: none; } .cal-leg i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); } .cal-leg label.off { opacity: .4; } .cal-leg label.off i { background: transparent; border: 1px solid var(--c); } .cal-leg b { color: var(--muted); font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.cal-h { padding: 8px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-d { min-height: 118px; padding: 4px 5px 6px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; } .cal.week .cal-d { min-height: 380px; }
.cal-d.oth { background: var(--surface-2); } .cal-d.oth .cal-n { opacity: .45; } .cal-d.today { background: var(--acc-soft); }
.cal-n { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; padding: 0 2px 2px; } .cal-n small { font-size: 10px; color: var(--muted); font-weight: 500; } .cal-d.today .cal-n span { background: var(--acc); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.cev { display: block; font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--ink); border-inline-start: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; cursor: pointer; }
.cev.done { opacity: .5; text-decoration: line-through; } .cev.more { background: none; border: 0; color: var(--acc); font-weight: 700; } .cev b { font-variant-numeric: tabular-nums; }
.cal-ag { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal-ag-d { display: flex; flex-direction: column; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 6px; height: fit-content; } .cal-ag-d b { font-size: 24px; } .cal-ag-d span, .cal-ag-d small { font-size: 11.5px; color: var(--muted); } .cal-ag-d.today { background: var(--acc); } .cal-ag-d.today * { color: #fff; }
.cal-ag-l { display: flex; flex-direction: column; gap: 6px; } .cal-ag-e { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); border-inline-start: 4px solid var(--c); text-decoration: none; color: var(--ink); cursor: pointer; }
.cal-ag-e .i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); flex: none; } .cal-ag-e .i svg { width: 15px; height: 15px; } .cal-ag-e small { display: block; color: var(--muted); font-size: 12px; } .cal-ag-e.done { opacity: .55; }
@media (max-width: 900px) { .ad-wrap, .calc-g { grid-template-columns: 1fr; } .bk-row { grid-template-columns: 1fr; } .cal-d { min-height: 80px; } .cev { font-size: 10px; padding: 1px 3px; } .calc-big { grid-template-columns: 1fr; } }
/* ——— أدوات الرسم والتعليقات على الخريطة ——— */
.gm-tools { display: grid; grid-template-columns: repeat(2, 40px); gap: 3px; max-height: calc(100% - 80px); overflow-y: auto; scrollbar-width: none; } .gm-tools::-webkit-scrollbar { display: none; }
.gm-tools .sep { grid-column: 1 / -1; }
.gm-tools button svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gm-pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.gm-pin .pb { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2.5px solid #fff; display: grid; place-items: center; }
.gm-pin .pb span { transform: rotate(45deg); font-size: 16px; line-height: 1; }
.gm-pin b { margin-top: 3px; background: #fff; color: #13202f; font: 800 11.5px Tajawal, sans-serif; padding: 1px 7px; border-radius: 6px; white-space: nowrap; border: 1px solid var(--c); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.gm-text { cursor: move; color: var(--c); font-family: Tajawal, sans-serif; font-weight: 800; text-align: center; line-height: 1.2; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 4px #fff, 0 0 2px #fff; }
.gm-alab { cursor: pointer; text-align: center; font-family: Tajawal, sans-serif; line-height: 1.15; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.gm-alab b { display: block; color: var(--c); font-weight: 800; font-size: 13px; } .gm-alab i { font-style: normal; font-size: 11px; font-weight: 700; color: #13202f; }
.gm-selov { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; } .gm-selov path { fill: rgba(243, 212, 138, .18); stroke: #f3d48a; stroke-width: 2; stroke-dasharray: 6 4; }
.clr-pick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 4px; } .clr-pick button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); cursor: pointer; } .clr-pick button.on { outline: 3px solid var(--acc); outline-offset: 2px; }
.clr-pick input[type=color] { width: 36px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.ann-row { display: flex; align-items: center; gap: 8px; } .ann-row .pick { flex: 1; } .ann-row .sw { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 15px; border: 1px solid var(--line); }
.gmap.drawing .gm-pin, .gmap.drawing .gm-text, .gmap.drawing .gm-alab { pointer-events: none; }

/* ═══════════ 4.0 — الإصدار المتكامل ═══════════ */
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } @media (max-width: 1200px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 560px) { .g5 { grid-template-columns: minmax(0, 1fr); } }
.mb { margin-bottom: 16px; } .pos { color: var(--ok); } .neg { color: var(--crit); } .row.wrap { flex-wrap: wrap; }
.tbl tr.grp td, .tbl tr.grp th { background: var(--surface-2); font-weight: 700; } .tbl.tb tr.lv0 td { font-weight: 800; background: var(--surface-3); } .tbl.tb tr.lv1 td { font-weight: 700; } .tbl tr.late td { background: var(--crit-soft); } .tbl tr.lnk { cursor: pointer; }
a.chip { text-decoration: none; } .chk.chip { height: auto; padding: 4px 10px; gap: 6px; }
i.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: middle; }
/* كانبان */
.kanban { display: grid; grid-template-columns: repeat(7, minmax(158px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; min-height: 240px; display: flex; flex-direction: column; } .kcol.over { border-color: var(--acc); background: var(--acc-soft); }
.kcol.won { border-top: 3px solid var(--ok); } .kcol.lost { border-top: 3px solid var(--crit); } .kcol.new { border-top: 3px solid var(--info); } .kcol.negotiation { border-top: 3px solid var(--warn); }
.kh { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 6px; font-size: 13px; } .kh .n { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.kb { padding: 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; } .kempty { color: var(--muted); text-align: center; padding: 20px; font-size: 12px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: grab; font-size: 13px; box-shadow: var(--shadow-1); } .kcard:hover { border-color: var(--line-2); } .kcard.drag { opacity: .5; } .kcard.hot { border-inline-start: 3px solid var(--warn); } .kcard.late { border-inline-start: 3px solid var(--crit); }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--surface-3); font-weight: 800; font-size: 12px; } .score.big { height: 31px; min-width: 40px; font-size: 14px; } .score.good { background: var(--ok-soft); color: var(--ok); } .score.bad { background: var(--crit-soft); color: var(--crit); }
.stages { display: flex; flex-direction: column; gap: 6px; }
/* الخط الزمني */
.tl { display: flex; flex-direction: column; gap: 8px; } .tli { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; } .tli:last-child { border-bottom: 0; }
/* القمع */
.funnel { display: flex; flex-direction: column; gap: 8px; } .fr { display: grid; grid-template-columns: 110px 1fr 40px 44px; align-items: center; gap: 8px; font-size: 13px; } .fr .bar { height: 18px; background: var(--surface-3); border-radius: 6px; overflow: hidden; } .fr .bar i { display: block; height: 100%; background: var(--acc); border-radius: 6px; }
/* المشاريع */
.card.prj { text-decoration: none; color: inherit; display: block; } .card.prj:hover { border-color: var(--line-2); }
.ms { display: flex; flex-direction: column; gap: 8px; } .msr { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); } .msr.done { border-color: var(--ok); background: var(--ok-soft); } .msr.late { border-color: var(--crit); }
.msr .n { width: 30px; height: 30px; border-radius: 99px; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; } .msr.done .n { background: var(--ok); }
.floors { display: flex; flex-direction: column; gap: 6px; } .floor { display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: center; } .fl { font-size: 12px; color: var(--muted); font-weight: 700; } .cells { display: flex; flex-wrap: wrap; gap: 6px; }
.ucell { border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; min-width: 70px; background: var(--surface); cursor: pointer; text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 12px; } .ucell small { color: var(--muted); font-size: 10px; } .ucell.available { border-color: var(--ok); } .ucell.sold { background: var(--acc-soft); border-color: var(--acc); } .ucell.reserved { background: var(--warn-soft); border-color: var(--warn); } .ucell.frozen { opacity: .6; }
/* التوظيف */
.pipe { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; } .pst { background: var(--surface-2); border-radius: 10px; padding: 6px; min-height: 70px; } .ph { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 4px 6px; display: flex; justify-content: space-between; } .pst.hired { border-top: 3px solid var(--ok); } .pst.rejected { border-top: 3px solid var(--crit); }
.pc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; margin-bottom: 6px; cursor: pointer; } .pc:hover { border-color: var(--line-2); }
/* الهيكل التنظيمي */
.org .orgtop { text-align: center; padding: 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); margin: 0 auto 14px; max-width: 320px; } .org .orgtop small { display: block; color: var(--muted); }
.orgroots { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; } .orgn { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); min-width: 220px; flex: 1; } .orgd { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 8px; }
.orgs { display: flex; flex-wrap: wrap; gap: 6px; } .orge { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; background: var(--surface-2); } .orge.mgr { border-color: var(--acc); background: var(--acc-soft); margin-bottom: 6px; display: inline-block; } .orge small { display: block; color: var(--muted); font-size: 11px; } .orge a { color: inherit; text-decoration: none; } .orgc { margin-top: 10px; padding-inline-start: 12px; border-inline-start: 2px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 8px; }
/* شبكة النزلاء */
.sgrid { border-collapse: separate; border-spacing: 2px; font-size: 12px; min-width: 100%; } .sgrid th { font-weight: 700; color: var(--muted); padding: 4px 6px; text-align: center; } .sgrid th div { font-size: 10px; } .sgrid th.today { color: var(--acc); } .sgrid td { padding: 4px 8px; }
.sgrid td.sc { width: 44px; height: 34px; border-radius: 6px; background: var(--surface-2); cursor: pointer; padding: 0; text-align: center; overflow: hidden; white-space: nowrap; font-size: 11px; } .sgrid td.sc.free:hover { background: var(--acc-soft); } .sgrid td.sc.in { background: var(--ok); color: #fff; } .sgrid td.sc.booked { background: var(--warn); color: #fff; } .sgrid td.sc.out { background: var(--surface-3); } .sgrid td.sc.maintenance { background: var(--line-2); }
.sgrid td.sc.start { border-inline-start: 3px solid rgba(0,0,0,.25); }
/* الرسم البياني */
.xchart text { font-family: inherit; } .xchart rect, .xchart circle { cursor: pointer; }
/* الإعداد */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } @media (max-width: 900px) { .steps { grid-template-columns: 1fr; } } .card.step { text-decoration: none; color: inherit; } .card.step.done { border-color: var(--ok); } .step .sn { width: 30px; height: 30px; border-radius: 99px; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; } .step.done .sn { background: var(--ok); color: #fff; } .step .si .i { width: 22px; height: 22px; color: var(--muted); }
.chk-card summary { list-style: none; } .chk-card summary::-webkit-details-marker { display: none; } .chk-card.critical { border-inline-start: 4px solid var(--crit); } .chk-card.warning { border-inline-start: 4px solid var(--warn); } .chk-card.info { border-inline-start: 4px solid var(--info); } .chk-card .ic .i { width: 20px; height: 20px; } .chk-card { margin-bottom: 8px; }
ol.guide { padding-inline-start: 22px; line-height: 1.9; } ol.guide li { margin-bottom: 6px; } .faq { border-bottom: 1px dashed var(--line); padding: 8px 0; } .faq summary { cursor: pointer; font-weight: 700; } .gnav { display: flex; flex-direction: column; } .gnav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; } .gnav a.on, .gnav a:hover { background: var(--acc-soft); color: var(--ink); } .gnav a .i { width: 16px; height: 16px; }
/* منشئ التقارير */
.grid.rpt { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); } @media (max-width: 1000px) { .grid.rpt { grid-template-columns: 1fr; } }
.rf .inp, .ra .inp { flex: 1; min-width: 0; } .rf .rfV, .rf .rfV2 { flex: 1.2; }

/* الاتفاقية */
.sec-card.eula-card { width: min(780px, 100%); } .eula-box { max-height: 46vh; overflow: auto; text-align: right; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13.5px; line-height: 1.8; }
.eula h3 { font-size: 14px; margin: 14px 0 4px; } .eula p { margin: 4px 0; } .eula-page .eula { font-size: 14px; line-height: 1.9; }

/* حول أوتاد: المطوّر والتواصل، التعليمات */
.dev { border-top: 1px solid var(--line); padding-top: 18px; text-align: right; }
.dev-row { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; } .dev-lbl { color: var(--muted); font-size: 13px; min-width: 150px; } .dev-row b { font-size: 16px; }
.dev-contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; } .dev-contact .btn { gap: 8px; font-size: 15px; } .dev-contact .btn svg.i { width: 18px; height: 18px; }
.vnav { display: flex; flex-direction: column; } .vnav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-size: 13.5px; } .vnav a svg.i { width: 16px; height: 16px; color: var(--muted); } .vnav a:hover { background: var(--surface-2); } .vnav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 700; } .vnav a.on svg.i { color: var(--acc); }

/* ═══ 4.1 — ترويسة رسمية جديدة: الشعار بجوار اسم المنشأة (يمين)، رمز QR يسار، بيانات المستند شريطاً تحت العنوان ═══ */
.doc .dh-royal { display: flex !important; align-items: center; justify-content: space-between; gap: 18px; border: 0; padding: 0 0 6px; margin: 0; grid-template-columns: none; }
.doc .dh-royal .rz-brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.doc .dh-royal .lgbox { width: 84px; height: 84px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--pa), 0 0 0 4px #fff, 0 0 0 5px var(--pc); padding: 6px; }
.doc .dh-royal .lgbox .lg, .doc .dh-royal .lgbox .mark { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.doc .dh-royal .rz-name { min-width: 0; border-inline-start: 3px solid var(--pa); padding-inline-start: 12px; }
.doc .dh-royal h1 { font-size: 1.62em; line-height: 1.25; white-space: normal; }
.doc .dh-royal .legal { margin: 4px 0 2px; } .doc .dh-royal p { margin-top: 2px; }
.doc .dh-royal .rz-qr { flex: none; } .doc .dh-royal .rz-qr .qr-slot { padding: 4px; border: 1px solid color-mix(in srgb, var(--pa) 55%, #fff); border-radius: 8px; background: #fff; }
.doc .docmeta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: -6px 0 14px; font-size: .86em; }
.doc .docmeta span { border: 1px solid color-mix(in srgb, var(--pa) 55%, #fff); background: color-mix(in srgb, var(--pa) 7%, #fff); border-radius: 30px; padding: 2px 12px; color: #333; }
.doc .docmeta span b { color: var(--pc); }
.doc[data-copy]::before { left: 50% !important; transform: translateX(-50%); top: -3.5mm !important; }
.doc .sgbox { height: 100px; } .doc .stampimg { bottom: 2px; max-height: 96px; }
.doc.thermal .dh-royal { flex-direction: column; text-align: center; } .doc.thermal .dh-royal .rz-brand { flex-direction: column; } .doc.thermal .dh-royal .rz-name { border: 0; padding: 0; } .doc.thermal .dh-royal .lgbox { width: 56px; height: 56px; }
/* تقرير الصفحة المطبوعة */
.doc .pv-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.doc .pv-kpis div { border: 1px solid #ddd; border-inline-start: 3px solid var(--pa); border-radius: 8px; padding: 6px 10px; } .doc .pv-kpis span { display: block; font-size: .8em; color: #666; } .doc .pv-kpis b { font-size: 1.12em; color: var(--pc); }
.doc .pv-sec { margin: 14px 0 6px; font-size: 1.08em; color: var(--pc); border-bottom: 1.5px solid var(--pa); padding-bottom: 3px; }
.doc .pv-filter { text-align: center; color: #555; font-size: .85em; margin: -8px 0 10px; }

/* زر طباعة الصفحة في الشريط العلوي */
.top .pgprint { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.top .pgprint:hover { border-color: var(--gold); color: var(--gold-ink); } .top .pgprint svg.i { width: 17px; height: 17px; }
@media (max-width: 760px) { .top .pgprint span { display: none; } }
/* محتوى الصفحة داخل المستند المطبوع: ألوان فاتحة دائماً */
.doc { --surface: #fff; --surface-2: #fafafa; --surface-3: #f1f1f1; --ink: #111; --muted: #666; --line: #ddd; --bg: #fff; }
.doc .pv .card { background: #fff; border: 1px solid #e2ddd2; box-shadow: none; border-radius: 10px; margin: 0 0 12px; break-inside: avoid; }
.doc .pv .card .bd { padding: 8px 12px; } .doc .pv .grid { gap: 10px; } .doc .pv .bdg { border: 1px solid #ccc; background: #f6f6f6 !important; color: #333 !important; padding: 0 6px; border-radius: 6px; font-size: .85em; }
.doc .pv .tbl-wrap { overflow: visible; } .doc .pv .empty { color: #888; padding: 8px; } .doc .pv svg.i { width: 14px; height: 14px; vertical-align: -2px; }
.doc .pv .pv-val { font-weight: 700; border-bottom: 1px dotted #aaa; padding: 0 4px; } .doc .pv .t2 { color: #666; font-size: .85em; }
.doc .pv h2 { font-size: 1.15em; margin: 10px 0 6px; } .doc .pv .row { display: flex; gap: 8px; flex-wrap: wrap; }
/* ═══ 4.1 — شاشة الدخول (على نمط قسطاس) ═══ */
.lg-screen { padding: 0; place-items: stretch; background: #0b1526; transition: opacity .3s; } .lg-screen.out { opacity: 0; }
.lg-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; width: 100%; }
.lg-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; color: #fff; background: radial-gradient(900px 600px at 90% -10%, #24456f 0%, transparent 60%), radial-gradient(700px 500px at 0% 110%, #1b3357 0%, transparent 55%), linear-gradient(160deg, #10213b, #0b1526 70%); border-inline-end: 1px solid rgba(224,196,139,.25); }
.lg-brand::after { content: ''; position: absolute; inset: 18px; border-radius: 26px; border: 1.5px solid rgba(224,196,139,.28); pointer-events: none; }
.lg-orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(195,154,78,.28), transparent 65%); top: -120px; left: -120px; animation: lgfloat 12s ease-in-out infinite; }
@keyframes lgfloat { 50% { transform: translate(40px, 30px); } }
.lg-logo { width: 150px; height: 150px; border-radius: 38px; padding: 5px; background: linear-gradient(135deg, #e0c48b, #c39a4e 50%, #8d6a28); box-shadow: 0 30px 70px -25px rgba(195,154,78,.85); position: relative; }
.lg-logo .mark, .lg-logo img { width: 100%; height: 100%; border-radius: 33px; display: block; }
.lg-brand h1 { font-size: 64px; font-weight: 800; margin: 18px 0 0; letter-spacing: 1px; } .lg-brand > p { margin: 2px 0 0; color: #aab8cc; font-size: 18px; } .lg-brand .ayah { color: #e0c48b; font-size: 20px; margin-top: 10px; }
.lg-office { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); text-align: right; }
.lg-office .olg img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; } .lg-office b { display: block; font-size: 16px; } .lg-office small { color: #9fb0c6; }
.lg-foot { position: absolute; bottom: 34px; color: #7f90a8; font-size: 13px; }
.lg-panel { display: grid; place-items: center; padding: 30px; background: var(--bg); }
.lg-card { width: min(470px, 100%); background: var(--surface); color: var(--ink); border-radius: 24px; padding: 30px 30px 22px; box-shadow: var(--shadow-3); border: 1px solid var(--line); text-align: center; position: relative; }
.lg-card::before { content: ''; position: absolute; top: 0; right: 30px; left: 30px; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #8d6a28, #e0c48b, #8d6a28); }
.lg-card h2 { margin: 6px 0 2px; font-size: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; } .lg-card > p { margin: 0 0 16px; }
.lg-card.shake { animation: lgshake .4s; } @keyframes lgshake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lg-users { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 214px; overflow: auto; padding: 2px; }
.lg-users.single { grid-template-columns: 1fr; } .lg-users.single .lg-user { flex-direction: row; justify-content: center; }
.lg-user { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; transition: .2s; }
.lg-user:hover { border-color: var(--gold); } .lg-user.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); box-shadow: 0 8px 20px -12px var(--gold); }
.lg-user .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-weight: 800; overflow: hidden; } .lg-user .av img { width: 100%; height: 100%; object-fit: cover; }
.lg-user b { font-size: 14px; } .lg-user small { color: var(--muted); font-size: 11.5px; }
.lg-mode { margin: 14px 0 6px; font-size: 13px; color: var(--muted); } .lg-mode span { display: inline-flex; align-items: center; gap: 6px; } .lg-mode svg.i { width: 15px; height: 15px; }
.lg-field { position: relative; } .lg-field .inp { height: 50px; font-size: 18px; text-align: center; letter-spacing: 2px; border-radius: 14px; }
.lg-eye { position: absolute; left: 8px; top: 9px; width: 34px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; } .lg-eye svg.i { width: 18px; height: 18px; }
.lg-dots { display: flex; justify-content: center; gap: 10px; margin: 10px 0 0; min-height: 0; } .lg-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--gold); } .lg-dots i.on { background: var(--gold); }
.lg-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px auto 0; max-width: 300px; } .lg-pad[hidden] { display: none; }
.lg-pad button { height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; } .lg-pad button:hover { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); } .lg-pad button[data-k="c"], .lg-pad button[data-k="b"] { font-size: 14px; color: var(--muted); }
.lg-go { width: 100%; height: 50px; margin-top: 14px; font-size: 17px; border-radius: 14px; }
.lg-hint { background: color-mix(in srgb, var(--gold) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 12px; padding: 8px 12px; font-size: 13px; margin: 12px 0 0; display: flex; gap: 6px; align-items: center; justify-content: center; } .lg-hint[hidden] { display: none; }
.lg-forgot { margin: 12px 0 0; }
@media (max-width: 900px) { .lg-shell { grid-template-columns: 1fr; } .lg-brand { padding: 30px 20px 26px; } .lg-brand h1 { font-size: 40px; } .lg-logo { width: 96px; height: 96px; border-radius: 26px; } .lg-logo .mark, .lg-logo img { border-radius: 22px; } .lg-foot, .lg-brand::after { display: none; } .lg-office { margin-top: 16px; } }
/* ═══ 4.1 — لوحة الأقسام بعد الدخول ═══ */
.lx .wrap { max-width: 1480px; padding: 26px 34px 28px; }
.lx-top { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.lx-brand { display: flex; align-items: center; gap: 12px; } .lx-brand .mark { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 2px var(--gold); }
.lx-brand h1 { margin: 0; font-size: 28px; color: #fff; font-weight: 800; line-height: 1.1; } .lx-brand p { margin: 0; font-size: 12.5px; color: #9fb0c6; }
.lx-search { flex: 1; max-width: 520px; margin-inline-start: auto; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #b9c6d8; font: inherit; cursor: pointer; text-align: right; }
.lx-search span { flex: 1; } .lx-search kbd { font-family: inherit; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.1); } .lx-search:hover { border-color: var(--gold); } .lx-search svg.i { width: 18px; height: 18px; }
.lx-office { display: flex; align-items: center; gap: 10px; color: #fff; } .lx-office .olg { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; } .lx-office b { display: block; font-size: 14px; } .lx-office small { color: #9fb0c6; font-size: 12px; }
.lx-user { position: relative; } .lx-me { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font: inherit; cursor: pointer; text-align: right; }
.lx-me .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); font-weight: 800; display: grid; place-items: center; } .lx-me b { display: block; font-size: 13.5px; } .lx-me small { color: #9fb0c6; font-size: 11.5px; } .lx-me > svg.i { transform: rotate(90deg); width: 14px; height: 14px; color: #9fb0c6; }
.lx-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 6px; display: none; z-index: 5; }
.lx-menu.on { display: block; } .lx-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; border-radius: 9px; cursor: pointer; text-align: right; } .lx-menu button:hover { background: var(--surface-2); } .lx-menu button.out { color: var(--crit); }
.lx-greet { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 10px; } .lx-greet h2 { margin: 0; color: #fff; font-size: 30px; } .lx-greet p { margin: 2px 0 0; color: #9fb0c6; }
.lx-trial { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(195,154,78,.12); color: var(--gold-2); font: inherit; font-weight: 700; cursor: pointer; }
.lx-grp { margin-top: 18px; } .lx-grp h3 { margin: 0 0 10px; color: var(--gold-2); font-size: 15px; display: flex; align-items: center; gap: 10px; } .lx-grp h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to left, transparent, rgba(224,196,139,.4)); }
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; } .lx-grid.main { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sec { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); color: #fff; font: inherit; text-align: right; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; overflow: hidden; animation: pop .35s both; }
.sec::before { content: ''; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c); opacity: .9; }
.sec:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 16px 34px -18px var(--c); }
.sec .si { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.sec .si svg.i { width: 26px; height: 26px; color: color-mix(in srgb, var(--c) 70%, #fff); }
.sec .st { min-width: 0; display: flex; flex-direction: column; } .sec b { font-size: 16.5px; } .sec small { color: #9fb0c6; font-size: 12.5px; line-height: 1.5; } .sec em { font-style: normal; margin-top: 4px; font-size: 12px; color: var(--gold-2); font-weight: 700; }
.sec.big { padding: 22px 20px; min-height: 120px; } .sec.big .si { width: 66px; height: 66px; border-radius: 19px; } .sec.big .si svg.i { width: 34px; height: 34px; } .sec.big b { font-size: 21px; } .sec.big em { font-size: 13px; }
.sec .nb { position: absolute; top: 10px; left: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--crit); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.sec.locked { opacity: .5; } .sec .lk { position: absolute; top: 10px; left: 10px; color: #9fb0c6; } .sec .lk svg.i { width: 16px; height: 16px; }
.lx footer { margin-top: 26px; }
@media (max-width: 900px) { .lx .wrap { padding: 16px; } .lx-top { flex-wrap: wrap; } .lx-search { order: 5; max-width: none; flex-basis: 100%; } .lx-office { display: none; } .lx-user { margin-inline-start: auto; } .lx-grid, .lx-grid.main { grid-template-columns: 1fr 1fr; } .sec { flex-direction: column; text-align: center; align-items: center; } .sec::before { display: none; } }
@media (max-width: 520px) { .lx-grid, .lx-grid.main { grid-template-columns: 1fr; } .sec { flex-direction: row; text-align: right; } }
.lg-hint { display: block; text-align: center; } .lg-hint svg.i { width: 15px; height: 15px; vertical-align: -3px; }
/* ═══ 4.1 — الفوترة الإلكترونية ═══ */
.zt-note { display: flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.zt-step { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); } .zt-step i { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; } .zt-step.ok i { background: var(--ok); border-color: var(--ok); color: #fff; } .zt-step i svg.i { width: 14px; height: 14px; } .zt-step b { display: block; font-size: 14px; } .zt-step small { color: var(--muted); }
.zt-obs { display: flex; flex-direction: column; gap: 12px; } .zt-ob { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); } .zt-ob.ok { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.zt-ob .n { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; } .zt-ob.ok .n { background: var(--ok); color: #fff; } .zt-ob .b { flex: 1; min-width: 0; } .zt-ob .b > b { font-size: 15px; } .zt-ob .b p { margin: 4px 0 8px; }
.zt-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; } .zt-checks span { padding: 3px 10px; border-radius: 20px; font-size: 12.5px; } .zt-checks .ok { background: var(--ok-soft); color: var(--ok); } .zt-checks .bad { background: var(--crit-soft); color: var(--crit); }
.zt-lines td { padding: 4px !important; } .zt-lines .inp { height: 36px; }
.doc .grid2p { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px; } .doc .pbox { border: 1px solid #ddd; border-inline-start: 3px solid var(--pa); border-radius: 8px; padding: 8px 12px; font-size: .92em; } .doc .pbox h4 { margin: 0 0 4px; color: var(--pa); font-size: .9em; }
.doc .tot3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 10px; } .doc .tot3 div { border: 1px solid #ddd; border-radius: 8px; padding: 6px 10px; } .doc .tot3 span { display: block; font-size: .82em; color: #666; } .doc .tot3 b { font-size: 1.1em; } .doc .tot3 .g { background: color-mix(in srgb, var(--pa) 12%, #fff); border-color: var(--pa); }

/* ===================================================================
   التصميم الفاتح (أبيض/رمادي) — يُعاد تلوين الواجهة الداكنة في الوضع الفاتح فقط
   =================================================================== */
:root:not([data-theme="dark"]) #boot { background: linear-gradient(160deg, #ffffff 0%, #eef1f5 100%); }
:root:not([data-theme="dark"]) #boot .mark { filter: drop-shadow(0 8px 20px rgba(28,42,59,.18)); }
:root:not([data-theme="dark"]) #boot .bar { background: #e1e6ec; }
:root:not([data-theme="dark"]) #boot .bar i { background: var(--acc); }

/* الشريط الجانبي */
:root:not([data-theme="dark"]) .side { background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%); color: var(--ink-2); border-inline-start: 1px solid var(--line); }
:root:not([data-theme="dark"]) .side .brand { border-bottom: 1px solid var(--line); }
:root:not([data-theme="dark"]) .side .brand b { color: var(--ink); }
:root:not([data-theme="dark"]) .side .brand span { color: var(--gold-ink); }
:root:not([data-theme="dark"]) .side .switch { background: var(--surface-3); }
:root:not([data-theme="dark"]) .side .switch a { color: var(--muted); }
:root:not([data-theme="dark"]) .side .switch a.on { background: #fff; color: var(--acc); font-weight: 700; box-shadow: var(--shadow-1); }
:root:not([data-theme="dark"]) .side nav .grp { color: var(--muted); }
:root:not([data-theme="dark"]) .side nav a { color: var(--ink-2); }
:root:not([data-theme="dark"]) .side nav a:hover { background: var(--surface-3); color: var(--ink); }
:root:not([data-theme="dark"]) .side nav a.on { background: var(--acc-soft); color: var(--acc); font-weight: 700; }
:root:not([data-theme="dark"]) .side nav a.on::before { background: var(--acc); }
:root:not([data-theme="dark"]) .side .foot { border-top: 1px solid var(--line); }
:root:not([data-theme="dark"]) .side .foot button { background: var(--surface-3); color: var(--ink-2); }
:root:not([data-theme="dark"]) .side .foot button:hover { background: #e9edf2; color: var(--ink); }

/* لوحة الأنظمة (الواجهة الحقيقية lx/sec) */
:root:not([data-theme="dark"]) .launcher { background: radial-gradient(1100px 560px at 88% -12%, #e7eef7 0%, transparent 58%), radial-gradient(820px 460px at -5% 108%, #eef1f5 0%, transparent 55%), linear-gradient(160deg, #fbfcfe 0%, #eef1f5 100%); color: var(--ink); }
:root:not([data-theme="dark"]) .launcher .topo { opacity: .05; }
:root:not([data-theme="dark"]) .lx-brand h1 { color: var(--ink); }
:root:not([data-theme="dark"]) .lx-brand p { color: var(--muted); }
:root:not([data-theme="dark"]) .lx-search { border: 1px solid var(--line); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-1); }
:root:not([data-theme="dark"]) .lx-search kbd { background: var(--surface-3); color: var(--ink-2); }
:root:not([data-theme="dark"]) .lx-search:hover { border-color: var(--acc); }
:root:not([data-theme="dark"]) .lx-office { color: var(--ink); }
:root:not([data-theme="dark"]) .lx-office small { color: var(--muted); }
:root:not([data-theme="dark"]) .lx-me { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
:root:not([data-theme="dark"]) .lx-me small { color: var(--muted); }
:root:not([data-theme="dark"]) .lx-me > svg.i { color: var(--muted); }
:root:not([data-theme="dark"]) .lx-greet h2 { color: var(--ink); }
:root:not([data-theme="dark"]) .lx-greet p { color: var(--muted); }
:root:not([data-theme="dark"]) .lx-trial { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, #fff); color: var(--gold-ink); }
:root:not([data-theme="dark"]) .lx-grp h3 { color: var(--gold-ink); }
:root:not([data-theme="dark"]) .lx-grp h3::after { background: linear-gradient(to left, transparent, var(--line-2)); }
:root:not([data-theme="dark"]) .sec { background: linear-gradient(160deg, #ffffff 0%, #f7f9fc 100%); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow-1); }
:root:not([data-theme="dark"]) .sec:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--c) 55%, transparent); }
:root:not([data-theme="dark"]) .sec small { color: var(--muted); }
:root:not([data-theme="dark"]) .sec em { color: var(--gold-ink); }
:root:not([data-theme="dark"]) .sec .si { background: color-mix(in srgb, var(--c) 14%, #fff); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
:root:not([data-theme="dark"]) .sec .si svg.i { color: color-mix(in srgb, var(--c) 78%, #2a3440); }
:root:not([data-theme="dark"]) .sec .lk { color: var(--muted); }
:root:not([data-theme="dark"]) .launcher footer { color: var(--muted); border-top: 1px solid var(--line); }

/* شاشة الدخول والقفل */
:root:not([data-theme="dark"]) .sec-screen { background: radial-gradient(900px 480px at 85% -10%, #e7eef7 0%, transparent 58%), linear-gradient(160deg, #fbfcfe 0%, #eef1f5 100%); color: var(--ink); }
:root:not([data-theme="dark"]) .sec-step > span { background: var(--acc); color: #fff; }

/* ===== دراسة الجدوى + مكوّنات المقاولات ===== */
.fstudy section { margin-bottom: 18px; }
.fstudy h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.fstudy p { margin: 0 0 6px; line-height: 1.8; }
.kgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0; }
.kc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.kc span { color: var(--muted); font-size: 12.5px; }
.kc b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.psign { display: flex; justify-content: space-between; gap: 24px; margin-top: 30px; text-align: center; }
.psign > div { flex: 1; font-size: .92em; color: #444; }
.doc .fstudy h3 { color: var(--pc); border-color: #ddd; }
.doc .kc { background: #f7f8fa; border-color: #e3e3e3; }
.doc .kgrid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .kgrid { grid-template-columns: 1fr 1fr; } }

/* ===== كشك ساعة الدوام (QR) ===== */
.clk-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.clk-face .bd { text-align: center; }
.clk-time { font-size: 72px; font-weight: 800; letter-spacing: 2px; color: var(--ink); line-height: 1; }
.clk-date { color: var(--muted); font-size: 15px; margin-top: 6px; }
.clk-scan { position: relative; width: 320px; max-width: 100%; aspect-ratio: 4/3; margin: 16px auto 0; border-radius: 16px; overflow: hidden; background: #0d1522; display: none; }
.clk-scan.on { display: block; }
.clk-scan video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.clk-frame { position: absolute; inset: 18%; border: 3px solid var(--acc); border-radius: 14px; box-shadow: 0 0 0 2000px rgba(0,0,0,.28); }
.clk-manual { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.clk-manual .inp { width: 220px; }
.clk-result .bd { min-height: 230px; display: grid; place-items: center; text-align: center; }
.clk-idle { color: var(--muted); } .clk-idle svg.i { width: 46px; height: 46px; opacity: .4; }
.clk-bad { color: var(--crit); } .clk-bad svg.i { width: 44px; height: 44px; }
.clk-ok { animation: pop .3s both; }
.clk-ok .clk-av { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; background: var(--ok); margin: 0 auto 10px; }
.clk-ok.out .clk-av { background: var(--info); }
.clk-ok h3 { margin: 0 0 6px; font-size: 22px; }
.clk-tag { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 920px) { .clk-wrap { grid-template-columns: 1fr; } .clk-time { font-size: 56px; } }

/* ===== بطاقات الحضور — تصميم فاخر ===== */
.att-badges.screen { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.att-badge { position: relative; border-radius: 20px; padding: 0 18px 16px; text-align: center; background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--line); }
.att-badge .ab-band { position: relative; margin: 0 -18px 0; height: 78px; background: linear-gradient(135deg, var(--re) 0%, #15524c 55%, var(--navy) 100%); display: flex; align-items: flex-start; justify-content: space-between; padding: 12px 16px; color: #fff; }
.att-badge .ab-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 80px at 85% -20%, rgba(255,255,255,.18), transparent 70%); }
.att-badge .ab-brand { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; z-index: 1; text-align: right; }
.att-badge .ab-logo, .att-badge .ab-brand .mark { width: 26px; height: 26px; object-fit: contain; background: #fff; border-radius: 7px; padding: 2px; }
.att-badge .ab-kind { font-size: 11px; background: rgba(255,255,255,.18); padding: 3px 9px; border-radius: 99px; z-index: 1; }
.att-badge .ab-ava { width: 76px; height: 76px; border-radius: 50%; margin: -40px auto 0; position: relative; z-index: 2; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border: 4px solid var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.att-badge .ab-ava img { width: 100%; height: 100%; object-fit: cover; }
.att-badge .ab-name { font-size: 19px; font-weight: 800; margin-top: 10px; color: var(--ink); letter-spacing: -.2px; }
.att-badge .ab-role { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.att-badge .ab-qr { margin: 12px auto 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.att-badge .ab-qr svg { width: 148px; height: 148px; display: block; }
.att-badge .ab-qr small { font-size: 10.5px; color: var(--muted); }
.att-badge .ab-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); }
.att-badge .ab-foot .num { font-weight: 700; color: var(--ink-2); }
.doc .att-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc .att-badges.one { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
.doc .att-badge { box-shadow: none; border: 1px solid #ccc; }

/* ===== السند لأمر (طباعة رسمية) ===== */
.pnote-doc { border: 2px solid var(--pc, #0f1d2f); border-radius: 10px; padding: 22px 26px; position: relative; }
.pnote-doc .pn-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--pc, #0f1d2f); padding-bottom: 12px; margin-bottom: 14px; }
.pnote-doc .pn-ttl { font-size: 1.9em; font-weight: 800; letter-spacing: 2px; color: var(--pc, #0f1d2f); }
.pnote-doc .pn-amt { font-size: 1.5em; font-weight: 800; border: 2px solid var(--pa, #c39a4e); border-radius: 10px; padding: 6px 18px; font-variant-numeric: tabular-nums; direction: ltr; }
.pnote-doc .pn-meta { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.pnote-doc .pn-meta td { border: 1px solid #c9c2b3; padding: 7px 10px; font-size: .95em; }
.pnote-doc .pn-meta td:nth-child(odd) { background: #f3f1ea; font-weight: 700; width: 18%; }
.pnote-doc .pn-body { line-height: 2; font-size: 1.02em; margin: 10px 0; }
.pnote-doc .pn-sign { display: flex; justify-content: space-between; gap: 30px; margin-top: 28px; }
.pnote-doc .pn-sign > div { flex: 1; text-align: center; }
.pnote-doc .pn-sign span { display: block; color: #555; font-size: .85em; }
.pnote-doc .pn-sign b { display: block; margin: 2px 0 14px; }
.pnote-doc .pn-line { font-size: .9em; color: #333; }

/* ===== الإشعارات ===== */
.nb-list { display: flex; flex-direction: column; }
.nb-day { padding: 10px 16px 4px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.nb-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; position: relative; }
.nb-item:hover { background: var(--surface-2); }
.nb-item.unread { background: color-mix(in srgb, var(--acc) 6%, var(--surface)); }
.nb-item .nb-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.nb-item.lv-warning .nb-ic { background: var(--warn-soft); color: var(--warn); }
.nb-item.lv-critical .nb-ic { background: var(--crit-soft); color: var(--crit); }
.nb-item.lv-success .nb-ic { background: var(--ok-soft); color: var(--ok); }
.nb-item .nb-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nb-item .nb-tx b { font-size: 14.5px; }
.nb-item .nb-tx span { color: var(--ink-2); font-size: 13px; }
.nb-item .nb-tx small { color: var(--muted); font-size: 11.5px; }
.nb-item .nb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); flex: none; margin-top: 6px; }
/* الجرس: قسم الإشعارات */
.bellp-notifs { display: flex; flex-direction: column; max-height: 300px; overflow: auto; }
.bellp-n { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.bellp-n:hover { background: var(--surface-2); }
.bellp-n.unread { background: color-mix(in srgb, var(--acc) 7%, var(--surface)); }
.bellp-n .bi { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); }
.bellp-n .bt { min-width: 0; display: flex; flex-direction: column; }
.bellp-n .bt b { font-size: 13.5px; } .bellp-n .bt small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== تطبيق المشرف الميداني ===== */
.field-app { max-width: 640px; margin: 0 auto; }
.fa-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fa-top h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.fa-top p { margin: 0; }
.fa-top .sp, .fa-top a:last-child { margin-inline-start: auto; }
.fa-grid { display: grid; gap: 12px; }
.fa-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-1); color: var(--ink); transition: transform .12s, box-shadow .2s; }
.fa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.fa-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.fa-card-h b { font-size: 16px; }
.fa-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.fa-act { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 12px; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .12s; }
.fa-act:hover { transform: translateY(-2px); }
.fa-act .ai { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.fa-act .ai svg.i { width: 26px; height: 26px; }
.fa-act b { font-size: 15px; }
.fa-act small { color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .fa-acts { grid-template-columns: 1fr 1fr; } }

/* ===== قوائم تطبيقات الأدوار ===== */
.fa-list { display: flex; flex-direction: column; gap: 10px; }
.fa-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-1); }
.fa-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fa-row-m b { font-size: 14.5px; }
.fa-row-m small { color: var(--muted); font-size: 12px; }
.fa-row-amt b { font-size: 16px; color: var(--crit); }
.fa-row-act { display: flex; gap: 6px; align-items: center; }
