/* Tabyun office app (/office), on top of app.css. Odoo-like: a home of app tiles, each app opens full screen. */
.obody { overflow-x: hidden; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.obar-sp { flex: 1; }
/* v1.8: the same look as the Excel home: purple band with the club and Tabyun logos, a white menu bar under it */
.xhead { display: flex; align-items: center; gap: 16px; padding: 10px 22px; color: #fff; min-height: 92px;
  background: var(--brand); border-bottom: 5px solid var(--teal); }
.xclub { height: 78px; border-radius: 6px; }
.xttl b { display: block; font-size: 26px; font-weight: 800; letter-spacing: .2px; }
.xttl small { display: block; font-size: 14px; opacity: .92; margin-top: 6px; }
.xbrand img { height: 76px; display: block; transition: transform .35s; }
.xbrand:hover img { transform: rotate(-6deg) scale(1.05); }
.xnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: stretch; gap: 2px; background: var(--card); padding: 0 12px;
  border: 1px solid var(--line); border-top: 0; box-shadow: 0 2px 6px rgba(0,0,0,.06); min-height: 46px; }
.xtab { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent; white-space: nowrap; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; font-family: inherit; }
.xtab:hover { background: var(--bg); }
.xtab.on { color: var(--ac, var(--teal)); border-bottom-color: var(--ac, var(--teal)); }
.xtab .ga { font-size: 18px; }
.xmid { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
/* v1.9.75: the app's tabs were cut off on the right with no way to reach them (owner could not find القوائم المالية).
   Now they get their own row under the menu bar and wrap, so every tab is always visible. */
.xnav { flex-wrap: wrap; row-gap: 0; }
.xmid { order: 9; flex-basis: 100%; flex-wrap: wrap; overflow: visible; border-top: 1px solid var(--line); min-height: 42px; }
.xmid:empty { display: none; }
.xmod { display: flex; align-items: center; gap: 6px; padding: 0 14px; margin: 6px 4px; border-radius: 8px; color: #fff; font-weight: 700; white-space: nowrap; text-decoration: none; }
.xwho, .xclock { display: flex; align-items: center; padding: 0 10px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.xbtn { background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; padding: 0 10px; cursor: pointer; border-radius: 8px; white-space: nowrap; }
.xbtn:hover { background: var(--bg); }
.xbtn.off { opacity: .45; }
@media (max-width: 1100px) { .xbtn span, .xclock { display: none; } .xttl b { font-size: 20px; } }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); padding: 10px 22px 0; max-width: 1500px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.crumb:empty { display: none; }
.crumb a { color: var(--teal); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span.sep { opacity: .5; }
.view { flex: 1; padding: 18px 20px 40px; max-width: 1500px; width: 100%; margin: 0 auto; box-sizing: border-box; animation: viewIn .32s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* home: big colored tiles like the Excel apps grid */
.hello { text-align: center; font-size: 26px; font-weight: 800; margin: 26px 4px 4px; }
.hello small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px 46px; margin: 40px auto 10px; max-width: 1100px; }
.mod { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); width: 130px;
  opacity: 0; animation: tileIn .5s cubic-bezier(.2,.9,.3,1.3) forwards; animation-delay: calc(var(--i) * 70ms + 120ms); }
.mod .mi { width: 118px; height: 118px; border-radius: 26px; background: var(--ac); display: flex; align-items: center; justify-content: center;
  font-size: 58px; box-shadow: 0 10px 22px -8px var(--ac), inset 0 -6px 0 rgba(0,0,0,.12); transition: transform .18s, box-shadow .18s; position: relative; overflow: hidden; }
.mod .mi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .6s; }
.mod:hover .mi { transform: translateY(-6px) scale(1.04); box-shadow: 0 18px 28px -10px var(--ac), inset 0 -6px 0 rgba(0,0,0,.12); }
.mod:hover .mi::after { transform: translateX(-120%); }
.mod:active .mi { transform: scale(.95); }
.mod b { font-size: 17px; }
@keyframes tileIn { from { opacity: 0; transform: translateY(24px) scale(.8); } to { opacity: 1; transform: none; } }
.tip { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 30px; }
.recent { text-align: center; margin-top: 18px; }
.recent a { display: inline-block; margin: 4px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; }
.recent a:hover { border-color: var(--teal); color: var(--teal); }

/* a module page: cards of its screens */
.mhead { margin: 6px 4px 18px; }
.mhead b { font-size: 24px; } .mhead small { display: block; color: var(--muted); margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.mcard { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); min-height: 66px; opacity: 0; animation: tileIn .4s ease-out forwards; animation-delay: calc(var(--i) * 40ms);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.mcard:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.08); border-color: var(--ac); }
.mcard .ci { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--ac); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.mcard b { display: block; font-size: 16px; } .mcard small { color: var(--muted); font-size: 13px; }

/* the welcome / goodbye screen: the logo turns in, a soft circle breathes, two arcs run around it (same as the Excel splash) */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  transition: opacity .45s; }
.splash.out { opacity: 0; pointer-events: none; }
.sp-box { position: relative; width: 260px; height: 260px; }
.sp-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-glow { fill: #865e7c; transform-origin: 100px 100px; animation: breathe 2.2s ease-in-out infinite; }
.sp-faint { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.2; }
.sp-a1, .sp-a2 { fill: none; stroke-width: 3.2; stroke-linecap: round; transform-origin: 100px 100px; }
.sp-a1 { stroke: #F2A688; stroke-dasharray: 169 384; animation: spin 1.55s linear infinite; }
.sp-a2 { stroke: var(--teal); stroke-dasharray: 92 461; animation: spin 2.25s linear infinite reverse; }
.sp-logo { position: absolute; left: 50%; top: 50%; width: 150px; margin: -38px 0 0 -75px; animation: logoIn 1.3s cubic-bezier(.2,.8,.2,1) both; }
.sp-t1 { font-size: 34px; font-weight: 800; margin-top: 18px; opacity: 0; animation: up .6s .55s ease-out forwards; }
.sp-t2 { font-size: 17px; color: #F2A688; margin-top: 8px; opacity: 0; animation: up .6s .75s ease-out forwards; }
.sp-t3 { position: absolute; bottom: 7vh; font-size: 13px; color: #c8b2c2; }
@keyframes breathe { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes logoIn { from { transform: rotate(-360deg) scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* temporary lock */
.lockscr { position: fixed; inset: 0; z-index: 90; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-d) 60%, var(--teal) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; animation: viewIn .3s; }
.lk-logo { width: 170px; margin-bottom: 10px; }
.lk-t { font-size: 26px; font-weight: 800; } .lk-s { opacity: .85; }
.lk-card { display: flex; flex-direction: column; gap: 10px; width: 300px; margin-top: 14px; }
.lk-card input { text-align: center; font-size: 18px; color: var(--ink); }
.lk-card .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; border-top: 4px solid var(--ac, var(--teal));
  opacity: 0; animation: tileIn .45s ease-out forwards; animation-delay: calc(var(--i) * 60ms); }
.kcard span { color: var(--muted); font-size: 13px; } .kcard b { display: block; font-size: 24px; margin: 4px 0; font-variant-numeric: tabular-nums; }
.kcard small { font-size: 12.5px; }
.charts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 1000px) { .charts { grid-template-columns: 1fr; } }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; overflow: hidden; }
.chart h4 { margin: 0 0 10px; font-size: 15px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gbar { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.chart .hbar { transform-box: fill-box; transform-origin: right; animation: growx .7s cubic-bezier(.2,.8,.2,1) both; }
.chart .gline { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 1.4s ease-out forwards; }
.chart .gslice { animation: fadein .6s ease-out both; }
@keyframes grow { from { transform: scaleY(0); } } @keyframes growx { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes fadein { from { opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: middle; }
.insights { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.insights li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

/* app pages */
.tbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.tbar h1 { font-size: 22px; margin: 0 0 4px; flex: 1 0 100%; }
.tbar h1 + .sp { display: none; }
.tbar .sp { flex: 1; }
.tbar label { min-width: 130px; }
.tbar input, .tbar select { padding: 9px 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; }
.chips button b { background: var(--bg); border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; font-size: 13px; }
.chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips button.on b { background: rgba(255,255,255,.2); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; overflow: auto; }
.panel h3 { margin: 0 0 10px; font-size: 17px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1000px) { .cols2 { grid-template-columns: 1fr; } }
.btn.sm { padding: 6px 10px; font-size: 14px; }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.noRows { color: var(--muted); padding: 30px 10px; text-align: center; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; min-width: 150px; }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat b { font-size: 22px; font-variant-numeric: tabular-nums; }

/* grid table */
table.grid { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.grid th { position: sticky; top: 0; background: color-mix(in srgb, var(--brand) 10%, var(--card)); text-align: right; padding: 9px 10px;
  border-bottom: 2px solid var(--brand); font-weight: 700; white-space: nowrap; }
.grid td:first-child { min-width: 160px; }
.grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid td.n { text-align: left; direction: ltr; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid th.n { text-align: left; }
.grid tbody tr:hover td { background: color-mix(in srgb, var(--teal) 6%, transparent); }
.grid tr[data-i] { cursor: pointer; }
.grid tr.rtH td { font-weight: 800; background: color-mix(in srgb, var(--brand) 6%, transparent); }
.grid tr.rtT td { font-weight: 700; border-top: 2px solid var(--ink); }
.grid .act { text-align: left; }
.grid .act .btn { margin: 2px 0 2px 4px; white-space: nowrap; }
.grid .act .btn { margin-inline-start: 4px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--bg); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }

/* report cards */
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rcard { text-align: right; background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--ac, var(--brand));
  border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.rcard:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.rcard b { font-size: 16px; }
.rcard small { color: var(--muted); line-height: 1.5; }
.rsets h3 { margin: 18px 0 8px; }

/* treasury lines */
.lines td { padding: 4px; }
.lines input, .lines select { padding: 8px; font-size: 15px; }
.lines .amt { width: 120px; }
.lines .x { border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); }
.tsum { display: flex; gap: 20px; justify-content: flex-end; font-size: 17px; margin-top: 10px; }

/* dialogs (same look as the cashier) */
.modal { position: fixed; inset: 0; z-index: 35; background: rgba(15, 10, 20, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.m-card { background: var(--card); border-radius: 16px; padding: 20px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3); max-height: 92vh; overflow: auto; }
.m-card.wide { max-width: 760px; }
.m-card h3 { margin: 0; font-size: 19px; }
.m-card p { margin: 0; line-height: 1.8; }
.m-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.fgrid { display: flex; flex-wrap: wrap; gap: 10px; }
.fgrid > label { flex: 1 1 100%; }
.fgrid > label.half { flex: 1 1 calc(50% - 5px); }
.fgrid input, .fgrid select, textarea { padding: 10px 12px; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; }
.fnote { flex: 1 1 100%; background: var(--warn-bg); color: var(--warn); padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 1.7; }
.chk { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; }
.chk input { width: 20px; height: 20px; }
.toast { bottom: 24px; max-width: 600px; font-size: 16px; white-space: pre-line; }
.toast.ok { background: var(--ok); }
.toast.bad { background: var(--bad); }

/* A4 printing */
.print { display: none; }
@media print {
  html, body { background: #fff !important; }
  #app { display: none !important; }
  .print { display: block; color: #000; }
}
.a4 { position: relative; font-family: "TbEmoji", Tahoma, "Segoe UI", Arial, sans-serif; font-size: 11.5px; color: #000; }
.a4 .wm { position: fixed; top: 50%; left: 50%; width: 45%; transform: translate(-50%, -50%); opacity: .06; z-index: 0; }
.a4h { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #714B67; padding-bottom: 8px; margin-bottom: 10px; position: relative; }
.a4h img { height: 62px; }
.a4h .a4t { flex: 1; }
.a4h .club { font-size: 13px; color: #555; font-weight: 700; }
.a4h .ttl { font-size: 20px; font-weight: 800; color: #714B67; }
.a4h .sub { font-size: 12.5px; color: #333; }
.a4h .a4d { font-size: 11px; color: #555; }
.a4b { position: relative; z-index: 1; }
.a4b h3 { font-size: 14px; margin: 12px 0 6px; color: #017E84; page-break-after: avoid; }
.a4b table.grid { font-size: 10.5px; width: 100%; border-collapse: collapse; color: #000; }
.a4b .grid th { background: #efe9ee !important; color: #000 !important; border-bottom: 1.5px solid #714B67; padding: 4px 5px; position: static !important; white-space: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4b .grid td { padding: 3px 5px; border-bottom: .5px solid #bbb; color: #000 !important; }
.a4b .grid td:not(.n) { white-space: normal; }
.a4b .grid tr { page-break-inside: avoid; }
.a4b .grid thead { display: table-header-group; }
.a4b .grid tr.rtT td { border-top: 1.5px solid #000; font-weight: 700; }
.a4b .grid tr.rtH td { background: #f6f2f5 !important; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4b .tsum, .a4b .noRows { color: #000; }
.a4f { margin-top: 14px; border-top: 1px solid #999; padding-top: 4px; font-size: 9.5px; color: #555; display: flex; justify-content: space-between; align-items: center; }
.a4f .a4by { display: inline-flex; align-items: center; gap: 5px; }
.a4f .a4by img { height: 16px; }
.voucher { border: 1.5px solid #000; border-radius: 6px; padding: 10px 14px; margin-bottom: 14px; page-break-inside: avoid; }
.voucher .vr { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: .5px dotted #999; font-size: 13px; }
.voucher .big { font-size: 18px; font-weight: 800; }
.voucher .sig { display: flex; justify-content: space-between; margin-top: 30px; font-size: 12px; }
@media (max-width: 700px) { .clock, .who { display: none; } .view { padding: 12px; } }
a.btn { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
a.btn.primary { color: #fff; }
.cols2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
@media (max-width: 1000px) { .cols2 { grid-template-columns: 1fr; } }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.pgrid .chk { font-size: 15px; }

/* payroll sheet: many columns, keep each one its set width */
.wideLines table.lines { table-layout: fixed; width: 100%; }
.wideLines table.lines input { width: 100%; min-width: 0; box-sizing: border-box; }
.wideLines table.lines th { white-space: normal; line-height: 1.3; }
.chart.wide { grid-column: 1 / -1; }
.kcard { animation: tileIn .5s calc(var(--i, 0) * 60ms) cubic-bezier(.2,.8,.2,1) both; }
.mcard { animation: tileIn .45s calc(var(--i, 0) * 45ms) cubic-bezier(.2,.8,.2,1) both; }
.insights li { animation: viewIn .5s .3s both; }
@media (prefers-reduced-motion: reduce) { .kcard, .mcard, .insights li { animation: none; } }

/* v1.8.1: always the light Odoo look (even when Windows is in dark mode) and Odoo's softer colors */
.obody { color-scheme: light; --bg: #F9FAFB; --card: #ffffff; --ink: #374151; --muted: #6b7280; --line: #dee2e6;
  background: var(--bg); color: var(--ink); }
.obody .xhead { border-bottom-color: var(--teal); }
.obody .xtab.on { color: var(--brand); border-bottom-color: var(--brand); }
.obody .xmod { background: transparent !important; color: var(--brand); font-size: 16px; font-weight: 800; margin: 0; padding: 0 12px; border-radius: 0; }
.obody .view.home, .obody .homebg { background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--brand) 8%, #fff) 100%); }
.mod .mi { background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 70%, #fff) 0%, var(--ac) 100%);
  box-shadow: 0 8px 18px -10px var(--ac), 0 1px 2px rgba(0,0,0,.08); font-size: 54px; }
.mod:hover .mi { box-shadow: 0 16px 26px -12px var(--ac), 0 1px 2px rgba(0,0,0,.08); }
.mod b { font-weight: 600; color: #374151; }
.mcard .ci { background: linear-gradient(145deg, color-mix(in srgb, var(--ac) 70%, #fff) 0%, var(--ac) 100%); }
.chips button.on { background: var(--brand); border-color: var(--brand); }

/* v1.8.2: the screens you opened, as tabs at the bottom like Excel's sheet tabs; each stays as you left it until you close it */
.otabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; align-items: flex-end; gap: 2px; padding: 0 10px;
  background: #e9ecef; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; height: 38px; }
body.hasTabs .view { padding-bottom: 70px; }
.otab { display: flex; align-items: center; gap: 4px; max-width: 230px; height: 32px; padding: 0 6px 0 12px; background: #f8f9fa; color: var(--ink);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; text-decoration: none; font-size: 13.5px; white-space: nowrap; flex: 0 0 auto; }
.otab span { overflow: hidden; text-overflow: ellipsis; }
.otab:hover { background: #fff; }
.otab.on { background: #fff; color: var(--brand); font-weight: 700; height: 36px; border-top: 3px solid var(--brand); }
.otab.home { padding: 0 12px; font-size: 17px; }
.otab .ox { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; padding: 3px 5px; border-radius: 5px; }
.otab .ox:hover { background: #f1e9ef; color: var(--bad); }
.toast { bottom: 52px; }
/* v1.9.3: fiscal year chip (finance manager) — orange when working in an older year */
.xbtn.ychip { font-weight: 700; }
.xbtn.ychip.old { background: #F4A460; color: #3b2300; border-color: #e08e3c; }

/* v1.9.5: كشف حساب + بحث سريع */
.qs .qsl { display: block; font-weight: 700; }
.qs .qsl input { width: 100%; font-size: 18px; padding: 12px 14px; margin-top: 6px; border: 2px solid var(--brand); border-radius: 12px; }
.qsbar { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.qsbar .sp { flex: 1; }
.qsres { max-height: 300px; overflow: auto; border-radius: 10px; }
.qsr { display: grid; grid-template-columns: 26px 1fr auto 130px; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.qsr:hover { background: var(--bg); }
.qsr.on { background: #F3EAF1; }
.qsr .qck { width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; text-align: center; line-height: 18px; color: #fff; font-weight: 700; }
.qsr.on .qck { background: var(--brand); border-color: var(--brand); }
.qsr small { color: var(--muted, #777); }
.qsr .qbal { text-align: left; direction: ltr; font-variant-numeric: tabular-nums; }
.qsr .qbal.neg { color: #b91c1c; }
.qssel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.qchip { background: var(--brand); color: #fff; border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.qchip button { border: 0; background: rgba(255,255,255,.25); color: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 11px; }
@media (max-width: 700px) { .qsr { grid-template-columns: 26px 1fr 100px; } .qsr small { display: none; } }
/* v1.9.6: text typed in a drop-down that is not in its list */
input.badpick { border-color: #b91c1c !important; background: #fdecec !important; }
/* v1.9.7: the details behind a number (double-click) */
.drill { position: fixed; inset: 0; background: rgba(20,10,20,.4); z-index: 800; display: flex; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow: auto; }
.drillCard { background: var(--card, #fff); border-radius: 14px; padding: 16px 18px; width: min(1200px, 100%); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.drillCard h1 { font-size: 19px; }
.rsets td.n { cursor: zoom-in; }

/* v1.9.15: الوضع المظلم */
html[data-theme="dark"] .obody { color-scheme: dark; --bg: #15171c; --card: #1e2128; --ink: #e5e7eb; --muted: #9ca3af; --line: #2f3440; }
html[data-theme="dark"] .obody .view.home, html[data-theme="dark"] .obody .homebg { background: linear-gradient(180deg, #1a1c22 0%, color-mix(in srgb, var(--brand) 14%, #1a1c22) 100%); }
html[data-theme="dark"] .mod b { color: var(--ink); }
html[data-theme="dark"] .obody .xmod, html[data-theme="dark"] .obody .xtab.on { color: color-mix(in srgb, var(--brand) 45%, #fff); }
html[data-theme="dark"] .otabs { background: #111317; }
html[data-theme="dark"] .otab { background: #1b1e24; }
html[data-theme="dark"] .otab:hover, html[data-theme="dark"] .otab.on { background: var(--card); }
html[data-theme="dark"] .otab.on { color: color-mix(in srgb, var(--brand) 45%, #fff); }
html[data-theme="dark"] .otab .ox:hover { background: color-mix(in srgb, var(--brand) 35%, #1e2128); }
html[data-theme="dark"] .qsr.on { background: color-mix(in srgb, var(--brand) 35%, #1e2128); }
html[data-theme="dark"] input.badpick { background: #3a1414 !important; }
@media print { html[data-theme="dark"] .obody { color-scheme: light; --bg: #fff; --card: #fff; --ink: #000; --muted: #555; --line: #ccc; } }

/* v1.9.17 «إيضاحات الرقم»: نافذة بتنبثق من الرقم اللى اتداس عليه */
#view table.grid tr:not([data-i]) td.n.xok:not(:empty) { cursor: zoom-in; }   /* 65: بس الرقم اللى وراه قيود (xWorth) */
#view table.grid tr:not([data-i]) td.n.xok:not(:empty):hover { background: color-mix(in srgb, var(--teal) 12%, transparent); box-shadow: inset 0 -2px 0 var(--teal); }
#view .kcard { cursor: zoom-in; }
td.xhit, .kcard.xhit { animation: xhit .9s ease; }
@keyframes xhit { 0% { background: var(--gold); } 100% { background: transparent; } }
.xpop { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-start; justify-content: center; padding: 26px 14px; overflow: auto; background: rgba(20,10,20,0); transition: background .25s, backdrop-filter .25s; }
.xpop.on { background: rgba(20,10,20,.45); backdrop-filter: blur(3px); }
.xcard { background: var(--card); color: var(--ink); border-radius: 18px; width: min(1000px, 100%); box-shadow: 0 24px 70px rgba(0,0,0,.4); overflow: hidden;
  transform: scale(.15); opacity: 0; transition: transform .38s cubic-bezier(.2,1.25,.35,1), opacity .22s; }
.xpop.on .xcard { transform: none; opacity: 1; }
.xtop { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(90deg, var(--brand), var(--teal)); color: #fff; position: sticky; top: 0; z-index: 2; }
.xtop .btn { background: rgba(255,255,255,.18); color: #fff; border-color: transparent; min-width: 38px; }
.xtop .btn:hover { background: rgba(255,255,255,.3); }
.xpath { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xpath a { color: #fff; opacity: .8; cursor: pointer; text-decoration: underline dotted; }
.xbody { padding: 14px 18px 20px; }
.xlvl.fwd { animation: xfwd .32s ease both; }
.xlvl.back { animation: xbk .32s ease both; }
@keyframes xfwd { from { opacity: 0; transform: translateX(-40px); } }
@keyframes xbk { from { opacity: 0; transform: translateX(40px); } }
.xhero { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 10px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.xhero small { color: var(--muted); font-size: 14px; }
.xbig { display: block; font-size: 38px; font-weight: 800; color: var(--teal); direction: ltr; text-align: right; font-variant-numeric: tabular-nums; animation: xpulse .9s ease; }
@keyframes xpulse { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.xsub { color: var(--muted); font-size: 13px; }
.xsay { margin: 6px 0 10px; padding-inline-start: 20px; line-height: 2; }
div.xsay { padding: 0; }
.xsay .up { color: var(--ok); font-weight: 700; } .xsay .dn { color: var(--bad); font-weight: 700; }
.xh3 { margin: 18px 0 6px; padding-top: 10px; border-top: 2px solid var(--line); }
.xbody h4 { margin: 14px 0 6px; font-size: 15px; }
.xchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.xchips span { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; font-weight: 700; animation: xfwd .3s ease both; }
.xchips small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.xbars { display: grid; gap: 4px; }
.xbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 120px; align-items: center; gap: 10px; padding: 3px 6px; border-radius: 8px; }
.xbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.xbar em { height: 14px; background: var(--bg); border-radius: 7px; overflow: hidden; }
.xbar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal), #5DA9DD); border-radius: 7px; animation: xgrow .8s cubic-bezier(.2,.9,.3,1) both; }
.xbar i.neg { background: linear-gradient(90deg, var(--bad), #f4a3a3); }
.xbar b { direction: ltr; text-align: left; font-size: 13px; font-variant-numeric: tabular-nums; }
.xbar.hot { background: color-mix(in srgb, var(--gold) 30%, transparent); }
.xbar.click { cursor: pointer; } .xbar.click:hover { background: color-mix(in srgb, var(--teal) 14%, transparent); transform: translateX(-3px); transition: transform .15s; }
@keyframes xgrow { from { width: 0; } }
.xcols { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding: 18px 4px 0; direction: rtl; }
.xcol { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.xcol i { display: block; width: 70%; height: var(--h); background: linear-gradient(0deg, var(--teal), #6CC1ED); border-radius: 6px 6px 2px 2px; animation: xrise .8s cubic-bezier(.2,.9,.3,1) both; }
.xcol i.neg { background: linear-gradient(0deg, var(--bad), #f4a3a3); }
.xcol.hot i { background: linear-gradient(0deg, var(--brand), var(--gold)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 45%, transparent); }
.xcol small { font-size: 10px; color: var(--muted); white-space: nowrap; direction: ltr; }
.xcol span { font-size: 11px; margin-top: 4px; white-space: nowrap; }
.xcol.click { cursor: pointer; } .xcol.click:hover i { filter: brightness(1.15); }
@keyframes xrise { from { height: 0; } }
.xlines tbody tr, .xbody tbody tr[data-i] { cursor: pointer; }
.xload { padding: 18px; color: var(--muted); }
.xload i { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: var(--teal); animation: xdot 1s infinite ease-in-out; }
.xload i:nth-child(2) { animation-delay: .15s; } .xload i:nth-child(3) { animation-delay: .3s; }
@keyframes xdot { 0%, 80%, 100% { transform: scale(.4); opacity: .4; } 40% { transform: none; opacity: 1; } }
@media (max-width: 640px) { .xbar { grid-template-columns: 38% 1fr 90px; } .xbig { font-size: 30px; } .xcols { height: 140px; } .xcol small { display: none; } }
@media print { .xpop { display: none; } }

/* v1.9.18 الرئيسية الجديدة: بحث + مطلوب منك + مفضلة */
.hsearch { display: flex; align-items: center; gap: 12px; width: min(680px, 100%); margin: 18px auto 6px; padding: 14px 18px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--muted); font: inherit; font-size: 16px; cursor: text; box-shadow: 0 6px 22px rgba(0,0,0,.06); transition: border-color .2s, box-shadow .2s, transform .2s; }
.hsearch:hover { border-color: var(--teal); box-shadow: 0 10px 30px color-mix(in srgb, var(--teal) 18%, transparent); transform: translateY(-1px); }
.hsearch em { flex: 1; font-style: normal; text-align: start; }
.hsearch kbd, .palin kbd { font: 12px monospace; padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--muted); direction: ltr; }
.hwrap { width: min(1100px, 100%); margin: 14px auto 0; display: grid; gap: 14px; }
.hsec h3 { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
.htasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.htask { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--teal);
  color: var(--ink); text-decoration: none; animation: tileIn .45s calc(var(--i, 0) * 70ms) cubic-bezier(.2,.8,.2,1) both; transition: transform .15s, box-shadow .15s; }
.htask:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.htask.warn { border-inline-start-color: var(--warn); } .htask.bad { border-inline-start-color: var(--bad); } .htask.info { border-inline-start-color: #5DA9DD; }
.htask .hi { font-size: 24px; } .htask .hn { font-size: 26px; font-weight: 800; min-width: 34px; text-align: center; color: var(--teal); }
.htask.warn .hn { color: var(--warn); } .htask.bad .hn { color: var(--bad); }
.htask span b { display: block; font-size: 14.5px; } .htask small { color: var(--muted); font-size: 12.5px; }
.hok { padding: 12px 16px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.hfavs { display: flex; flex-wrap: wrap; gap: 8px; }
.hfavs a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--gold); color: var(--ink); text-decoration: none; font-weight: 600;
  animation: tileIn .4s calc(var(--i, 0) * 50ms) both; }
.hfavs a::before { content: "⭐ "; } .hfavs a:hover { background: color-mix(in srgb, var(--gold) 25%, var(--card)); }
.xbtn.xfind { border: 1px solid var(--line); border-radius: 10px; padding-inline: 10px; }
#btnFav.on { color: #e0a100; }
/* 🔍 البحث فى كل حاجة */
.pal { position: fixed; inset: 0; z-index: 950; background: rgba(20,10,20,0); display: flex; justify-content: center; align-items: flex-start; padding: 9vh 14px; transition: background .2s; }
.pal.on { background: rgba(20,10,20,.45); backdrop-filter: blur(3px); }
.palbox { width: min(640px, 100%); background: var(--card); color: var(--ink); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden;
  transform: translateY(-14px) scale(.97); opacity: 0; transition: transform .22s cubic-bezier(.2,1.2,.4,1), opacity .18s; }
.pal.on .palbox { transform: none; opacity: 1; }
.palin { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 18px; }
.palin input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; }
.pall { max-height: 56vh; overflow: auto; padding: 6px; }
.palr { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.palr .pi { font-size: 20px; width: 28px; text-align: center; }
.palr b { display: block; font-size: 15px; } .palr small { color: var(--muted); font-size: 12.5px; }
.palr.on, .palr:hover { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.palf { padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
/* 🧭 خطوات آخر الشهر */
.mebar { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; flex-wrap: wrap; }
.metrack { flex: 1; min-width: 160px; height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.metrack i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal), #30C381); border-radius: 6px; animation: xgrow 1s cubic-bezier(.2,.9,.3,1) both; }
.mepc { font-size: 20px; color: var(--teal); }
.menext { padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 22%, var(--card)); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.menext.ok { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.mesteps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; counter-reset: none; }
.mestep { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; animation: tileIn .4s calc(var(--i, 0) * 60ms) both; }
.mestep.cur { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.mestep.ok { opacity: .75; }
.mnum { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--bg); border: 2px solid var(--line); }
.mestep.ok .mnum { background: var(--ok); border-color: var(--ok); color: #fff; }
.mestep.todo .mnum { border-color: var(--warn); color: var(--warn); }
.mtxt { flex: 1; } .mtxt b { display: block; font-size: 15px; } .mtxt small { color: var(--muted); }
.msay { margin-top: 4px; font-size: 13px; color: var(--warn); }
.mst { font-size: 13px; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--bg); }
.mst.ok { background: var(--ok-bg); color: var(--ok); } .mst.todo { background: var(--warn-bg); color: var(--warn); }
.mst.man { cursor: pointer; display: inline-flex; flex-direction: row; gap: 6px; align-items: center; min-width: auto; margin: 0; font-weight: 400; }
.mst.man input { margin: 0; width: auto; }
@media (max-width: 640px) { .mestep { flex-wrap: wrap; } .hsearch kbd { display: none; } .xbtn.xfind span { display: none; } }

/* v1.9.19 «مطلوب منك» sticky note on the side of every screen */
.snote { position: fixed; left: 14px; top: 166px; z-index: 24; width: 262px; max-height: calc(100vh - 240px); display: flex; flex-direction: column;
  background: linear-gradient(175deg, #FFF7C2, #FFEFA0); color: #3b3418; border-radius: 4px 4px 14px 4px; box-shadow: 0 14px 28px rgba(60,50,10,.18), 0 2px 4px rgba(0,0,0,.08);
  transform: rotate(-.6deg); transition: width .25s, transform .25s; animation: snIn .5s cubic-bezier(.2,.9,.3,1.2) both; }
.snote::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 18px; margin-left: -35px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.05); transform: rotate(2deg); }
@keyframes snIn { from { opacity: 0; transform: translateX(-30px) rotate(-4deg); } }
.snote:hover { transform: rotate(0); }
.sn-h { all: unset; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 12px 12px 8px; font-size: 15px; }
.sn-h b { flex: 1; } .sn-tg { font-style: normal; transition: transform .25s; }
.sn-c { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff; background: #8a8a8a; }
.sn-c.bad { background: var(--bad, #d64545); animation: snBeat 1.6s infinite; } .sn-c.warn { background: #e09a1e; } .sn-c.ok { background: #2e9d6b; }
@keyframes snBeat { 50% { transform: scale(1.15); } }
.sn-b { overflow: auto; padding: 0 8px 4px; display: grid; gap: 6px; }
.sn-i { display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; background: rgba(255,255,255,.45); border-inline-start: 4px solid #5DA9DD;
  animation: snRow .35s ease-out both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes snRow { from { opacity: 0; transform: translateY(6px); } }
a.sn-i:hover { background: rgba(255,255,255,.8); }
.sn-i.bad { border-inline-start-color: var(--bad, #d64545); } .sn-i.warn { border-inline-start-color: #e09a1e; }
.sn-ico { font-size: 18px; line-height: 1.2; } .sn-t { flex: 1; min-width: 0; }
.sn-t b { display: block; font-size: 13px; line-height: 1.35; } .sn-t small { display: block; font-size: 11.5px; opacity: .75; }
.sn-t u { display: inline-block; margin-top: 3px; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--bad, #d64545); }
.sn-i em { font-style: normal; font-weight: 800; font-size: 16px; }
.sn-i.done { opacity: .55; border-inline-start-color: #2e9d6b; background: transparent; }
.sn-i.done b { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #2e9d6b; }
.sn-i.done .sn-ico { color: #2e9d6b; font-weight: 900; }
.sn-ok { padding: 8px; font-size: 13px; }
.sn-f { display: flex; align-items: center; gap: 6px; padding: 6px 12px 10px; font-size: 11px; opacity: .7; }
.sn-f button { all: unset; cursor: pointer; font-size: 15px; }
.snote.min { width: auto; } .snote.min .sn-b, .snote.min .sn-f { display: none; } .snote.min .sn-tg { transform: rotate(90deg); }
@media (min-width: 1200px) { body.noteOn .view { padding-left: 300px; } }
@media (max-width: 700px) { .snote { top: auto; bottom: 64px; left: 10px; max-height: 60vh; } }
html[data-theme="dark"] .snote { background: linear-gradient(175deg, #4a4220, #3c3518); color: #f3e9c0; }
html[data-theme="dark"] .sn-i { background: rgba(0,0,0,.18); } html[data-theme="dark"] a.sn-i:hover { background: rgba(0,0,0,.32); }
@media print { .snote, .ghint { display: none !important; } }

/* v1.9.19 field guidance: glow on the field the user is in + a small hint */
.view input:focus, .view select:focus, .m-card input:focus, .m-card select:focus, .m-card textarea:focus, .view textarea:focus {
  outline: none; border-color: var(--teal, #017E84) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal, #017E84) 28%, transparent) !important; transition: box-shadow .2s; }
.gpulse { animation: gPulse .8s ease-in-out 2; }
@keyframes gPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal, #017E84) 35%, transparent); transform: scale(1.04); } }
.ghint { position: fixed; bottom: 14px; left: 50%; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
  background: #2b2f36; color: #fff; padding: 6px 14px; border-radius: 18px; font-size: 12.5px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.ghint.on { opacity: .92; transform: translate(-50%, 0); }
body.hasTabs .ghint { bottom: 62px; }
.ghint kbd { background: rgba(255,255,255,.18); border-radius: 5px; padding: 1px 6px; font-family: inherit; }

/* v1.9.20 هيكل النادى: شجرة النادى ← المناطق ← الأقسام، والقسم بيفتح فى لوحة جنب الشاشة */
.orgt { text-align: center; padding: 6px 0 10px; }
.orgroot { all: unset; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 30px; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, var(--brand), var(--brand-d)); box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 35%, transparent); position: relative;
  animation: orgPop .5s cubic-bezier(.2,.9,.3,1.3) both; transition: transform .2s; }
.orgroot:hover { transform: translateY(-3px); }
.orgroot img { height: 54px; border-radius: 8px; background: #fff; padding: 3px; }
.orgroot b { font-size: 20px; } .orgroot small { opacity: .9; }
.orgroot::after { content: ""; position: absolute; top: 100%; left: 50%; height: 26px; border-left: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
@keyframes orgPop { from { opacity: 0; transform: scale(.7); } }
.orgregs { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 26px; padding-top: 24px; position: relative; text-align: right; }
.orgregs::before { content: ""; position: absolute; top: 0; left: 18%; right: 18%; border-top: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
.orgreg { flex: 1 1 340px; max-width: 640px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.orgreg::before { content: ""; position: absolute; top: -24px; left: 50%; height: 24px; border-left: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); }
.orgrh { align-self: center; background: var(--teal); color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 999px; }
.orgrh small { opacity: .85; font-weight: 400; margin-inline-start: 4px; }
.odept { all: unset; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--brand); box-shadow: 0 3px 10px rgba(0,0,0,.05);
  animation: orgIn .45s ease-out both; animation-delay: calc(var(--i) * 60ms); transition: transform .18s, box-shadow .18s; }
.odept:hover, .odept:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
@keyframes orgIn { from { opacity: 0; transform: translateY(14px); } }
.odept .oi { grid-row: span 3; font-size: 32px; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 10%, var(--card)); }
.odept > b { font-size: 17px; }
.owarn { font-style: normal; font-size: 12px; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 2px 8px; }
.omoney { grid-column: 2 / -1; display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.omoney b, .odm b { color: var(--ink); font-variant-numeric: tabular-nums; }
.omoney .neg b, .odm .neg b { color: var(--bad); } .omoney .pos b, .odm .pos b { color: var(--ok); }
.obar { grid-column: 2 / -1; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.obar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--brand)); border-radius: 3px; animation: obarGrow 1s ease-out both; }
@keyframes obarGrow { from { width: 0; } }
.ocnt { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.ocnt span { background: var(--bg); border-radius: 999px; padding: 2px 9px; }
.odrwbg { position: fixed; inset: 0; z-index: 28; background: rgba(15,15,25,0); transition: background .25s; }
.odrwbg.on { background: rgba(15,15,25,.35); }
.odrw { position: absolute; top: 0; bottom: 0; left: 0; width: min(760px, 96vw); background: var(--bg); box-shadow: 0 0 40px rgba(0,0,0,.25); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .25s ease-out; }
.odrwbg.on .odrw { transform: none; }
.odh { display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: var(--brand); color: #fff; flex-wrap: wrap; }
.odh b { font-size: 21px; } .odh small { opacity: .85; flex: 1; }
.ox2 { margin-inline-start: auto; border: 0; background: rgba(255,255,255,.18); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.ox2:hover { background: rgba(255,255,255,.32); }
.odm { display: flex; gap: 18px; align-items: center; padding: 10px 18px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.odm .btn { margin-inline-start: auto; }
.odt { padding: 12px 18px 0; margin: 0; }
.odb { flex: 1; overflow: auto; padding: 12px 18px 18px; }
.odb h4 { margin: 14px 0 6px; }
.odb .stat.sm { padding: 6px 12px; min-width: 0; } .odb .stat.sm b { font-size: 17px; }
.otb { width: 100%; background: var(--card); border-radius: 10px; }
.otb tr.click { cursor: pointer; } .otb tr.click:hover td { background: color-mix(in srgb, var(--brand) 7%, var(--card)); }
.otb .oed { opacity: .45; font-size: 12px; }
.owarnt { color: var(--warn); }
.oprice { width: 110px; padding: 6px 8px; text-align: left; direction: ltr; border-radius: 8px; transition: background .3s, border-color .3s; }
.oprice.saving { background: var(--warn-bg); } .oprice.saved { background: var(--ok-bg); border-color: var(--ok); } .oprice.bad { background: var(--bad-bg); border-color: var(--bad); }
.olinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 700px) { .orgregs::before, .orgreg::before { display: none; } }


/* v1.9.21 شئون الموظفين */
.hrhero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; padding: 18px 22px; border-radius: 18px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 60%, var(--teal)) 100%); box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 30%, transparent); }
.hrhero h1 { margin: 0; font-size: 24px; } .hrhero p { margin: 4px 0 0; opacity: .9; }
.hrq { display: flex; flex-wrap: wrap; gap: 10px; }
.hq { min-width: 92px; text-align: center; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.14); backdrop-filter: blur(4px); animation: orgIn .4s ease-out both; animation-delay: calc(var(--i) * 70ms); }
.hq b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; } .hq span { font-size: 12px; opacity: .92; }
.hq.bad b { color: #fecaca; } .hq.warn b { color: #fde68a; } .hq.ok b { color: #bbf7d0; }
.hrtabs b { background: var(--bad) !important; color: #fff; }
.hrgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.hrgrid .panel { margin: 0; }
.hrring { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.hrring .rbg { fill: none; stroke: var(--bg); stroke-width: 14; }
.hrring .rfg { fill: none; stroke: var(--teal); stroke-width: 14; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 70px 70px;
  stroke-dasharray: var(--L); stroke-dashoffset: var(--off); animation: ringIn 1.1s ease-out both; }
@keyframes ringIn { from { stroke-dashoffset: var(--L); } }
.hrring .rtx { position: absolute; top: 62px; text-align: center; } .hrring .rtx b { display: block; font-size: 30px; } .hrring .rtx span { font-size: 12px; color: var(--muted); }
.hdrow { display: grid; grid-template-columns: 120px 1fr 52px; gap: 10px; align-items: center; padding: 6px 4px; color: var(--ink); text-decoration: none; border-radius: 8px; animation: orgIn .4s ease-out both; animation-delay: calc(var(--i) * 50ms); }
.hdrow:hover { background: var(--bg); } .hdrow b { text-align: left; font-variant-numeric: tabular-nums; }
.hbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg); }
.hbar i { width: var(--w); animation: obarGrow .9s ease-out both; }
.ok-c, .hbar i.ok, .hleg i.ok { background: #16a34a; } .hbar i.bad, .hleg i.bad { background: #dc2626; } .hbar i.lv, .hleg i.lv { background: #0ea5e9; } .hbar i.no, .hleg i.no { background: #d1d5db; }
.hleg { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; } .hleg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-inline-start: 8px; }
.hav { --h: 300; width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h) 55% 55%), hsl(var(--h) 55% 38%)); box-shadow: 0 2px 6px hsl(var(--h) 50% 40% / .35); }
.hav.big { width: 54px; height: 54px; font-size: 19px; }
.hpers { display: flex; align-items: center; gap: 10px; padding: 7px 4px; cursor: pointer; border-radius: 10px; }
.hpers:hover { background: var(--bg); } .hpers b { display: block; } .hpers small { color: var(--muted); } .hpers em { margin-inline-start: auto; font-style: normal; color: var(--warn); font-weight: 700; }
.hpers.sm { cursor: default; padding: 0; } .hpers.sm:hover { background: none; } .hpers.sm .hav { width: 30px; height: 30px; font-size: 12px; }
.hchips { display: flex; flex-wrap: wrap; gap: 6px; }
.hchips button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 3px 10px 3px 4px; cursor: pointer; font: inherit; font-size: 13px; }
.hchips .hav { width: 24px; height: 24px; font-size: 10px; }
.hst { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.hst.ok { background: var(--ok-bg); color: var(--ok); } .hst.bad { background: var(--bad-bg); color: var(--bad); } .hst.lv { background: color-mix(in srgb, #0ea5e9 15%, var(--card)); color: #0284c7; }
.hst.rs { background: color-mix(in srgb, #a855f7 14%, var(--card)); color: #9333ea; } .hst.ms { background: var(--warn-bg); color: var(--warn); }
.hsum { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 10px; color: var(--muted); font-size: 14px; } .hsum b { color: var(--ink); }
.hcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.hcard { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 16px 12px 12px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); border-top: 4px solid hsl(var(--h) 50% 50%); box-shadow: 0 3px 10px rgba(0,0,0,.05); animation: orgIn .4s ease-out both; animation-delay: calc(var(--i) * 25ms); transition: transform .18s, box-shadow .18s; }
.hcard:hover, .hcard:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(0,0,0,.1); }
.hcard b { font-size: 15px; } .hcard small { color: var(--muted); }
.hcard .hdept { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: hsl(var(--h) 60% 50% / .12); color: hsl(var(--h) 45% 38%); }
html[data-theme="dark"] .hcard .hdept { color: hsl(var(--h) 60% 75%); }
.hcard.st-ساب, .hcard.st-موقوف { opacity: .6; }
.hmoney { display: flex; gap: 10px; font-size: 12px; color: var(--muted); } .hmoney b { color: var(--ink); } .hmoney .neg b { color: var(--bad); }
.hatt td { vertical-align: middle; }
.hatt tr.dirty td { background: color-mix(in srgb, var(--warn) 8%, var(--card)); }
.hseg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hseg button { border: 0; border-inline-start: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 5px 8px; cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; }
.hseg button:first-child { border-inline-start: 0; }
.hseg button span { display: none; } .hseg button.on span { display: inline; }
.hseg button.on.ok { background: #16a34a; color: #fff; } .hseg button.on.bad { background: #dc2626; color: #fff; } .hseg button.on.lv { background: #0ea5e9; color: #fff; }
.hseg button.on.rs { background: #9333ea; color: #fff; } .hseg button.on.ms { background: #d97706; color: #fff; }
.hatt input[type=time] { width: 110px; padding: 5px 6px; direction: ltr; } .hatt input.tnote { min-width: 130px; padding: 5px 8px; }
.hlate { color: var(--warn); font-weight: 700; }
/* 1.9.98: الإضافى + الوردية الأوبن */
.hover { color: var(--ok); font-weight: 700; white-space: nowrap; }
.htl.open { background: repeating-linear-gradient(135deg, var(--bg) 0 8px, transparent 8px 16px); border: 1px dashed var(--line); }
.htl.open em { top: 5px; transform: none; left: 0; right: 0; text-align: center; font-size: 11px; }
.stat.warn b { color: var(--warn); }
input.oin { width: 110px; }
.tsum .warn { color: var(--warn); }
.hleaves { display: grid; gap: 10px; }
.hlv { display: grid; grid-template-columns: auto minmax(140px, 1.2fr) minmax(150px, 1fr) 1.3fr auto; align-items: center; gap: 14px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line);
  border-inline-start: 5px solid #0ea5e9; border-radius: 14px; animation: orgIn .35s ease-out both; animation-delay: calc(var(--i) * 40ms); }
.hlv.st-مستنية { border-inline-start-color: var(--warn); } .hlv.st-مرفوضة { border-inline-start-color: var(--bad); opacity: .75; } .hlv.st-موافق { border-inline-start-color: var(--ok); }
.hlvm b, .hlvk b { display: block; } .hlvm small, .hlvk small, .hlvn small { display: block; color: var(--muted); font-size: 12px; }
.hkind { font-size: 12px; background: var(--bg); padding: 1px 8px; border-radius: 999px; }
.hlvb { display: flex; gap: 6px; }
@media (max-width: 800px) { .hlv { grid-template-columns: auto 1fr; } }
.hshifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hshift { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); animation: orgIn .4s ease-out both; animation-delay: calc(var(--i) * 60ms); }
.hshift:hover { box-shadow: 0 10px 22px rgba(0,0,0,.08); } .hshift.off { opacity: .5; } .hshift b { font-size: 17px; } .hshift span { font-size: 20px; font-weight: 700; color: var(--teal); direction: ltr; text-align: right; } .hshift small { color: var(--muted); }
.htl { position: relative; height: 26px; background: var(--bg); border-radius: 8px; margin-bottom: 10px; }
.htl i { position: absolute; top: 4px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--teal)); }
.htl em { position: absolute; top: 18px; transform: translateX(-50%); font-size: 10px; font-style: normal; color: var(--muted); }
/* v1.9.21: اللوايح */
.hrgrid2 { display: grid; gap: 12px; margin-bottom: 12px; }
.hrules { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.hrule { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); animation: orgIn .4s ease-out both; animation-delay: calc(var(--i) * 50ms); }
.hrule:hover { box-shadow: 0 8px 18px rgba(0,0,0,.08); } .hrule.off { opacity: .5; } .hrule b { font-size: 15px; } .hrule em { font-style: normal; font-weight: 700; color: var(--bad, #c0392b); } .hrule small { color: var(--muted); }
.hrmin { font-size: 20px; font-weight: 800; color: var(--teal); } .hrmin small { font-size: 12px; font-weight: 400; color: var(--muted); }
.hrdrw .odh .hav { box-shadow: 0 0 0 3px rgba(255,255,255,.35); } .hrdrw .odh > div { flex: 1; } .hrdrw .odh small { display: block; }
.hkv { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hkv div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; } .hkv span { display: block; font-size: 12px; color: var(--muted); } .hkv b { word-break: break-word; }
.hmon { min-width: 130px; text-align: center; font-size: 17px; }
.hcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.hcw { display: contents; } .hcw span { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 2px; }
.hcd { position: relative; min-height: 54px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); padding: 4px 6px; font-size: 12px; }
.hcd.e { background: none; border: 0; } .hcd b { color: var(--muted); font-weight: 600; } .hcd i { position: absolute; bottom: 4px; left: 6px; font-style: normal; font-size: 15px; }
.hcd em { position: absolute; top: 4px; left: 5px; font-style: normal; font-size: 10px; color: var(--warn); font-weight: 700; }
.hcd.ok { background: color-mix(in srgb, #16a34a 14%, var(--card)); border-color: color-mix(in srgb, #16a34a 35%, var(--line)); }
.hcd.bad { background: color-mix(in srgb, #dc2626 14%, var(--card)); border-color: color-mix(in srgb, #dc2626 35%, var(--line)); }
.hcd.lv { background: color-mix(in srgb, #0ea5e9 14%, var(--card)); } .hcd.rs { background: color-mix(in srgb, #9333ea 10%, var(--card)); } .hcd.ms { background: var(--warn-bg); }
.hpay { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.hpay div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hpay i { width: 70%; height: var(--h); min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--teal), var(--brand)); animation: payUp .8s ease-out both; }
@keyframes payUp { from { height: 0; } }
.hpay small { font-size: 10px; color: var(--muted); }
b.neg { color: var(--bad); }
.hcount { display: inline-block; min-width: 22px; padding: 0 7px; margin-inline-start: 6px; border-radius: 11px; background: var(--brand); color: #fff; font-size: 13px; text-align: center; }

/* v1.9.24 phones: the top band and menu bar must fit the phone width (owner's phone showed the page wider than the screen) */
@media (max-width: 700px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .xhead { gap: 10px; padding: 8px 12px; min-height: 0; }
  .xclub { height: 42px; }
  .xbrand img { height: 38px; }
  .xttl { min-width: 0; }
  .xttl b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xttl small { font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .xnav { flex-wrap: wrap; padding: 0 4px; row-gap: 0; }
  .xnav .obar-sp { display: none; }
  .xtab { padding: 0 8px; font-size: 14px; }
  .xbtn { padding: 0 7px; min-height: 42px; }
  .xwho, .xclock, #btnFull { display: none; }
  .xmid { order: 9; flex-basis: 100%; }
  .xmid:empty { display: none; }
  .crumb { padding: 8px 12px 0; flex-wrap: wrap; }
  .view { max-width: 100vw; box-sizing: border-box; }
  .m-card { max-width: calc(100vw - 24px); box-sizing: border-box; }
  .m-btns > * { flex: 1 1 auto; }
}

/* v1.9.35 تقارير بشكل تقارير الحسابات فى الإكسيل: شريط العنوان 13234A، رأس الجدول 24407A، الإجمالى EEF2F9 */
.fin { font-family: "TbEmoji", "Segoe UI", Tahoma, Arial, sans-serif; }
.fin .finband { display: flex; align-items: center; justify-content: center; gap: 12px; background: #13234A; color: #fff; font-size: 17px; font-weight: 700;
  padding: 9px 14px; min-height: 52px; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fin .finband img { height: 36px; border-radius: 4px; background: #fff; padding: 2px; }
.fin .finsub { text-align: center; color: #24407A; font-weight: 600; font-size: 13px; padding: 6px 0 8px; border-bottom: 2px solid #24407A; margin-bottom: 10px; }
.fin h3 { color: #13234A !important; font-size: 14px; margin: 14px 0 6px; padding-inline-start: 8px; border-inline-start: 4px solid #24407A; }
.fin table.grid { border-collapse: collapse; width: 100%; }
.fin table.grid th { background: #24407A !important; color: #fff !important; font-weight: 700; font-size: 12px; text-align: center !important; border: 0 !important;
  padding: 7px 6px; white-space: normal; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fin table.grid td { color: #1E2A44; border: 0 !important; border-bottom: 1px solid #E2E8F0 !important; padding: 5px 7px; }
.fin table.grid tbody tr:last-child td { border-bottom: 1px solid #CBD5E1 !important; }
.fin table.grid tr.rtT td { background: #EEF2F9 !important; font-weight: 700; color: #1E2A44; border-top: 2px solid #24407A !important;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fin table.grid tr.rtH td { background: #F4F6FB !important; font-weight: 800; color: #13234A; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fin table.grid td.n { font-variant-numeric: tabular-nums; }
.fscr { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(19,35,74,.08); padding-bottom: 8px; }
.fscr .finband { border-radius: 0; }
.fscr .panel { box-shadow: none; border: 0; margin: 0 10px 8px; border-radius: 0; }
.fscr > h3 { margin-inline: 10px; }
html[data-theme="dark"] .fscr { background: var(--card); }
html[data-theme="dark"] .fscr table.grid td { color: var(--ink); border-bottom-color: #2f3440 !important; }
html[data-theme="dark"] .fscr table.grid tr.rtT td { background: #1d2a44 !important; color: #e5e7eb; }
html[data-theme="dark"] .fscr table.grid tr.rtH td { background: #182238 !important; color: #c7d2fe; }
html[data-theme="dark"] .fscr .finsub { color: #93a8d6; }
.a4.fin { color: #1E2A44; }
.a4.fin .finband { margin-bottom: 0; }
.a4.fin .a4b table.grid { font-size: 10.5px; }
.a4.fin .a4b .grid th { background: #24407A !important; color: #fff !important; border-bottom: 0; }
.a4.fin .a4b .grid td { color: #1E2A44 !important; border-bottom: .6px solid #E2E8F0 !important; }
.a4.fin .a4b .grid tr.rtT td { border-top: 1.5px solid #24407A !important; background: #EEF2F9 !important; }
.a4.fin .wm { width: 55%; opacity: .07; }
.a4.fin .a4f { border-top: 0; justify-content: flex-end; }
.fin table.grid th { white-space: nowrap; }
html[data-theme="dark"] .fscr h3 { color: #c7d2fe !important; border-inline-start-color: #5b7bc4; }
.dchips{display:flex;flex-wrap:wrap;gap:6px}.dchips .btn{padding:4px 10px;font-size:13px}
/* v1.9.37 الاعتمادات + ملخص المدير */
.hquick { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.hquick .hq { flex: 1 1 240px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.hquick .hq:hover { border-color: var(--brand); }
.hquick .hq span { grid-row: 1 / 3; font-size: 28px; }
.hquick .hq b { font-size: 16px; }
.hquick .hq small { grid-column: 2; color: var(--muted); }
.hquick .hq em { grid-row: 1 / 3; grid-column: 3; font-style: normal; background: #dc2626; color: #fff; border-radius: 99px; min-width: 28px; padding: 3px 9px; text-align: center; font-weight: 700; }
.apsum { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, var(--card)); margin-bottom: 12px; font-size: 16px; }
.apsum.ok { background: color-mix(in srgb, #16a34a 14%, var(--card)); }
.apgrp { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.apgrp.info { opacity: .92; border-style: dashed; }
.aph { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.aph .api { font-size: 22px; } .aph b { font-size: 16px; }
.aph em { font-style: normal; background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 9px; font-weight: 700; }
.aph .sp, .tbar .sp { flex: 1; }
.apgrp tr[data-h] { cursor: pointer; } .apgrp tr[data-h]:hover td { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.apgrp td.bad { color: #dc2626; font-weight: 700; }
.gmtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.gmt { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  text-decoration: none; color: var(--ink); }
.gmt.ok { border-top-color: #16a34a; } .gmt.warn { border-top-color: #f59e0b; } .gmt.bad { border-top-color: #dc2626; }
.gmt .gmi { font-size: 24px; } .gmt small { color: var(--muted); font-size: 13.5px; }
.gmt b { font-size: 28px; font-variant-numeric: tabular-nums; } .gmt em { font-style: normal; font-size: 13px; color: var(--muted); }
a.gmt:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.gmrow { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 10px; }
@media (max-width: 800px) { .gmrow { grid-template-columns: 1fr; } }
.gmbox { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.gmbox h3 { margin: 2px 0 10px; font-size: 16px; }
.gmbars { display: flex; align-items: flex-end; gap: 8px; height: 200px; }
.gmbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.gmbar i { display: block; width: 100%; height: var(--h); background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 55%, #fff)); border-radius: 6px 6px 2px 2px; }
.gmbar span { font-size: 11px; color: var(--muted); white-space: nowrap; } .gmbar small { font-size: 12px; }
/* v1.9.38 العدادات */
.mtcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.mtc { background: var(--card); border: 1px solid var(--line); border-top: 4px solid #E9A23B; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.mtc.high { border-top-color: #dc2626; } .mtc.off { opacity: .6; }
.mth { display: flex; align-items: center; gap: 8px; } .mth span { font-size: 24px; } .mth b { flex: 1; font-size: 16px; }
.mtn b { font-size: 30px; font-variant-numeric: tabular-nums; } .mtn em { font-style: normal; color: var(--muted); margin-inline-start: 6px; }
.mtl { font-size: 13.5px; } .mtl.bad { color: #dc2626; font-weight: 700; }
.mtc .btn.primary { margin-top: 6px; }

/* v1.9.39 📎 صور الفواتير */
.attBox { border: 1px dashed var(--line, #ccc); border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: var(--card, #fff); }
.attH { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.attH > .btn, .attH > .attAdd { margin-inline-start: auto; }
/* club 67 📠 سكان + 🖼 رفع صورة */
.attAdd { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.scanOv { z-index: 60; }
.scanCard { max-width: 520px; }
.scanSt { display: flex; align-items: center; gap: 10px; line-height: 1.7; }
.scanSpin { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent, #714B67) 25%, transparent); border-top-color: var(--accent, #714B67); animation: scanRot .9s linear infinite; }
@keyframes scanRot { to { transform: rotate(360deg); } }
.scanN { color: #15803d; font-weight: 700; }
.scanErr { background: color-mix(in srgb, #dc2626 12%, var(--card, #fff)); color: inherit; border: 1px solid #dc2626; border-radius: 10px; padding: 8px 12px; line-height: 1.7; white-space: pre-line; }
.scanHelp { border: 1px dashed var(--line, #ccc); border-radius: 10px; padding: 10px 12px; line-height: 1.8; font-size: 14px; }
.scanHelp ol { margin: 6px 0; padding-inline-start: 22px; }
@media (max-width: 560px) { .scanBtns .btn { flex: 1 1 100%; } }
.attList { display: flex; flex-wrap: wrap; gap: 8px; }
.attT { position: relative; width: 92px; height: 92px; border: 1px solid var(--line, #ddd); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #fafafa; display: flex; align-items: center; justify-content: center; }
.attT img { width: 100%; height: 100%; object-fit: cover; }
.attT .x { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; }
.attDoc { display: flex; flex-direction: column; align-items: center; font-size: 30px; color: #555; }
.attDoc small { font-size: 10px; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attView { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: flex; flex-direction: column; }
.attBar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #111; color: #fff; flex-wrap: wrap; }
.attBar .muted { color: #bbb; } .attBar .sp { flex: 1; }
.attImg { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 10px; }
.attImg img { max-width: 100%; max-height: 100%; background: #fff; }
.attMini { border: 0; background: none; cursor: pointer; font-size: 16px; padding: 2px 4px; }
.attMini b { font-size: 11px; color: var(--accent, #714B67); }
@media print { .attBox { display: none; } }
.wideLines { overflow-x: auto; }
.wideLines table.lines { min-width: 1560px; }

.attBar .btn{background:#fff;color:#111}
/* v1.9.40 الصيانة */
.kv{display:flex;gap:10px;padding:5px 0;border-bottom:1px dashed var(--line)} .kv span{min-width:90px;color:var(--muted)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px} @media(max-width:760px){.grid2{grid-template-columns:1fr}}
.frm{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px} .frm label{flex:1 1 100%;display:flex;flex-direction:column;gap:4px} .frm label.half{flex:1 1 45%}
table.grid tr.click{cursor:pointer}
/* v1.9.41 📱 الموبايل */
.mobT{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.mobB{display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 10px;border-radius:18px;background:var(--card);border:1px solid var(--line);text-decoration:none;color:inherit;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.mobB span{font-size:40px} .mobB b{font-size:17px} .mobB small{color:var(--muted)}
.mrRow{display:flex;flex-direction:column;gap:4px;padding:10px 0;border-bottom:1px dashed var(--line)}
.mrQ{display:flex;align-items:center;gap:8px} .mrQ input{width:110px;font-size:18px;padding:8px}
.btn.big{width:100%;font-size:18px;padding:14px}

/* v1.9.44: ⭐ النقاط */
.ptpod { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 18px 0 8px; flex-wrap: wrap; }
.ptp { position: relative; width: 190px; padding: 14px 12px 0; border-radius: 18px 18px 6px 6px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
  background: var(--card); box-shadow: 0 10px 30px rgba(0,0,0,.08); animation: ptUp .6s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * .12s); }
.ptp .m { font-size: 44px; line-height: 1; }
.ptp b { font-size: 17px; color: var(--ink, inherit); }
.ptp small { opacity: .7; min-height: 18px; }
.ptp em { font-style: normal; font-weight: 800; font-size: 22px; }
.ptp .st { margin: 8px -12px 0; border-radius: 0 0 6px 6px; color: #fff; font-weight: 900; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.ptp.pt1 .st { height: 90px; background: linear-gradient(180deg, #FBBF24, #B45309); }
.ptp.pt2 .st { height: 62px; background: linear-gradient(180deg, #CBD5E1, #64748B); }
.ptp.pt3 .st { height: 44px; background: linear-gradient(180deg, #FB923C, #9A3412); }
.ptrew { text-align: center; font-weight: 700; }
.ptg td:last-child { font-size: 16px; }
@keyframes ptUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* v1.9.44: ⭐ النقاط */
.ptpod { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 18px 0 8px; flex-wrap: wrap; }
.ptp { position: relative; width: 190px; padding: 14px 12px 0; border-radius: 18px 18px 6px 6px; text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
  background: var(--card); box-shadow: 0 10px 30px rgba(0,0,0,.08); animation: ptUp .6s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * .12s); }
.ptp .m { font-size: 44px; line-height: 1; }
.ptp b { font-size: 17px; color: var(--ink, inherit); }
.ptp small { opacity: .7; min-height: 18px; }
.ptp em { font-style: normal; font-weight: 800; font-size: 22px; }
.ptp .st { margin: 8px -12px 0; border-radius: 0 0 6px 6px; color: #fff; font-weight: 900; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.ptp.pt1 .st { height: 90px; background: linear-gradient(180deg, #FBBF24, #B45309); }
.ptp.pt2 .st { height: 62px; background: linear-gradient(180deg, #CBD5E1, #64748B); }
.ptp.pt3 .st { height: 44px; background: linear-gradient(180deg, #FB923C, #9A3412); }
.ptrew { text-align: center; font-weight: 700; }
.ptg td:last-child { font-size: 16px; }
@keyframes ptUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* v1.9.46: زرار الخروج واضح فى كل الشاشات (والموبايل) */
.xbtn.xout { border: 1.5px solid #C0392B; color: #C0392B; font-weight: 700; padding: 0 12px; min-height: 34px; }
.xbtn.xout:hover { background: #C0392B; color: #fff; }
.xbtn.xout span { display: inline !important; }
.xbtn.xmob { border: 1.5px solid #017E84; color: #017E84; font-weight: 700; padding: 0 12px; min-height: 34px; }
.xbtn.xmob:hover { background: #017E84; color: #fff; }
.xbtn.xmob span { display: inline !important; }
html[data-theme="dark"] .xbtn.xmob { border-color: #5CC8CD; color: #5CC8CD; }
@media (max-width: 700px) { .xbtn.xmob { display: none !important; } }
.mobq { text-align: center; } .mobq img { width: 260px; height: 260px; image-rendering: pixelated; border: 8px solid #fff; outline: 3px solid #017E84; border-radius: 10px; }
.mobq .u { direction: ltr; font-weight: 700; color: #017E84; margin: 6px 0 10px; font-size: 16px; }
.mobq ol { text-align: right; line-height: 1.9; margin: 0; padding-inline-start: 22px; }
html[data-theme="dark"] .xbtn.xout { border-color: #F08A7E; color: #F08A7E; }
.mobOut { display: block; width: 100%; margin-top: 18px; border: 1.5px solid #C0392B; color: #C0392B; font-weight: 700; }
.fnote:has(.mobq) { background: none; color: inherit; }

/* v1.9.76: radio/checkbox choices in «القالب الذكى» (the box on the same line as its text) */
.smr { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 4px 0; }
.smr input { width: auto !important; min-width: 0 !important; margin: 0; flex: none; }
.smr select { width: auto; }
/* v1.9.81 «شغلك بالترتيب» */
.hwork { max-width: 1100px; margin: 0 auto 14px; }
.hwork h3 { margin: 0 0 8px; }
.hsteps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.hsteps a { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.hsteps a:hover { border-color: var(--brand, #714B67); transform: translateY(-1px); }
.hsteps em { position: absolute; top: 8px; left: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand, #714B67); color: #fff; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.hsteps span { font-size: 24px; }
.hsteps b { font-size: 16px; }
.hsteps small { opacity: .75; font-size: 13px; line-height: 1.5; }
.fzr { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } /* v1.9.81 فريز */
/* v1.9.83 ملف الموظف الكامل */
.ereg { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.ereg-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ereg-side h3 { margin: 0; }
.ereg-side .btn.big { width: 100%; }
.esec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.esec h3 em { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--brand, #714B67); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.egrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.ef { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--muted); }
.ef[hidden] { display: none; }
.ef.w { grid-column: 1 / -1; }
.ef > span em { color: var(--bad); font-style: normal; }
.ef input, .ef select, .ef textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.ef.miss input, .ef.miss select { border-color: color-mix(in srgb, var(--warn) 60%, var(--line)); background: color-mix(in srgb, var(--warn) 6%, var(--card)); }
.ef small { min-height: 1em; font-size: 12px; } .ef small.ok { color: var(--ok); } .ef small.bad { color: var(--bad); }
.ef.chkf .chk { display: flex; align-items: center; gap: 6px; color: var(--ink); padding-top: 8px; }
.eqk { display: inline-flex; gap: 4px; margin-left: 6px; } .eqk .btn.sm { padding: 1px 8px; font-size: 12px; }
.edet { margin: 8px 0; } .edet summary { cursor: pointer; color: var(--brand, #714B67); font-weight: 600; margin-bottom: 8px; }
.echk { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 10px 0 4px; } .echk .chk { color: var(--ink); display: flex; gap: 6px; align-items: center; }
.emiss { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); margin-bottom: 10px; }
.emiss b { width: 100%; } .emiss span { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; }
.ereg-side .emiss b { width: 100%; }
.fnote.ok { color: var(--ok); background: var(--ok-bg); } .fnote.bad { color: var(--bad); background: var(--bad-bg); }
.hpct { display: inline-flex; align-items: center; gap: 6px; min-width: 110px; } .hpct i { flex: 1; height: 8px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.hpct i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--warn); border-radius: 99px; }
html[dir="rtl"] .hpct i::after { inset: 0 0 0 auto; }
.hpct.ok i::after { background: var(--ok); } .hpct.low i::after { background: var(--bad); } .hpct b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ereg-side .hpct { width: 100%; } .ereg-side .hpct b { font-size: 22px; }
.hdocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.hdoc { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--card); }
.hdoc > i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); flex: none; }
.hdoc.ok > i { background: var(--ok-bg); color: var(--ok); } .hdoc.miss { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); } .hdoc.miss > i { background: var(--warn-bg); color: var(--warn); }
.hdoc.opt { opacity: .75; }
.hdoc > div { flex: 1; min-width: 0; } .hdoc b { display: block; font-size: 14px; } .hdoc small { color: var(--muted); font-size: 12px; }
.hdoc > span { display: flex; gap: 4px; flex: none; }
@media (max-width: 900px) { .ereg { grid-template-columns: 1fr; } .ereg-side { position: static; order: -1; } }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.otb tr.ooff td { opacity: .6; } .otb tr.ooff td:last-child { opacity: 1; }
/* v1.9.91: تقرير حضور موظف لفترة (كليندر لكل شهر) */
.hrng { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-bottom: 12px; }
.hrng .panel h3 { margin: 0 0 8px; }
#print .hrng { grid-template-columns: repeat(3, 1fr); gap: 6px; }
#print .hrng .panel { padding: 6px; border: 1px solid #ddd; }
#print .hcd { min-height: 30px; font-size: 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#print .hcd i { font-size: 11px; }
/* v1.9.94: الأذونات */
.hpm { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hpm.wait { background: #fef3c7; color: #92400e; }
.hpmcfg { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.hpers .btn.sm[data-pm] { margin-inline-start: 6px; }
html[data-theme="dark"] .hpm { background: #3b2a63; color: #ddd6fe; } html[data-theme="dark"] .hpm.wait { background: #4a3510; color: #fde68a; }

/* v1.9.101 🎛 تشغيل وإيقاف + 🏷 مراكز التكلفة */
.ftlist { display: grid; gap: 8px; }
.ftrow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ftrow.off { opacity: .72; }
.ftrow .ftt { flex: 1; min-width: 0; }
.ftrow .ftt b { display: block; }
.ftrow .ftt small { color: var(--muted, #6b7280); }
.ftrow input.ftn { width: 74px; text-align: center; }
.tsw { position: relative; display: inline-block; width: 50px; height: 28px; flex: none; cursor: pointer; }
.tsw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tsw i { position: absolute; inset: 0; border-radius: 999px; background: #c9ccd3; transition: background .15s; }
.tsw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.tsw input:checked + i { background: var(--teal, #0f766e); }
.tsw input:checked + i::after { transform: translateX(-22px); }
[dir=ltr] .tsw input:checked + i::after { transform: translateX(22px); }
.tsw input:focus-visible + i { outline: 3px solid var(--teal, #0f766e); outline-offset: 2px; }
.tsw input:disabled + i { opacity: .5; cursor: not-allowed; }
.secrow.off td { color: var(--muted, #6b7280); }
/* 1.9.116.24 🌐 موقع النادى: الشات والميديا */
.wchat { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: start; }
@media (max-width: 800px) { .wchat { grid-template-columns: 1fr; } }
.wcl { padding: 8px; max-height: 70vh; overflow: auto; }
.wcl input { width: 100%; margin-bottom: 8px; }
.wci { display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 8px 6px; cursor: pointer; border-radius: 8px; }
.wci.on, .wci:hover { background: var(--bg); }
.wci .muted { grid-column: 1 / -1; }
.wci .tag { grid-column: 1 / -1; justify-self: start; }
.wcf2 { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.wcn { font-style: normal; background: #1fa855; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; align-self: start; }
.wcm { display: flex; flex-direction: column; min-height: 50vh; }
.wch { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.wch .sp { flex: 1; }
.wcb { flex: 1; overflow: auto; max-height: 55vh; padding: 10px 2px; display: flex; flex-direction: column; gap: 8px; }
.wmsg { max-width: 75%; background: var(--bg); border-radius: 12px; padding: 8px 10px; align-self: flex-start; white-space: pre-wrap; }
.wmsg.me { align-self: flex-end; background: #DCF3E4; }
.wmsg img { max-width: 220px; max-height: 220px; border-radius: 8px; display: block; }
.wcf { display: flex; gap: 6px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 8px; }
.wcf textarea { flex: 1; }
.wmg { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wmi { padding: 8px; }
.wmi.off { opacity: .55; }
.wmt { height: 120px; display: grid; place-items: center; background: var(--bg); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.wmt.big { height: 180px; }
.wmt img, .wmt video { width: 100%; height: 100%; object-fit: cover; }
.wma { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.wprog { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.wprog i { display: block; height: 100%; width: 0; background: var(--brand); }

/* 1.9.116.26 🎥 فيلم الشهر */
@font-face { font-family: "Cairo"; src: url(fonts/cairo-arabic-600-normal.woff2) format("woff2"); font-weight: 600; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; src: url(fonts/cairo-arabic-700-normal.woff2) format("woff2"); font-weight: 700; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; src: url(fonts/cairo-arabic-800-normal.woff2) format("woff2"); font-weight: 800 900; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: "Cairo"; src: url(fonts/cairo-latin-700-normal.woff2) format("woff2"); font-weight: 600 900; unicode-range: U+0000-00FF, U+2010-2027, U+2030-205E, U+2190-25FF; }
.fmhead { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.fmhead h1 { margin: 0; font-size: 24px; }
.fmhead small { color: var(--muted, #667); }
.fmbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fmbar select { width: auto; min-width: 120px; margin: 0; }
.fmstage { max-width: max(560px, calc((100vh - 300px) * 16 / 9)); margin: 0 auto; position: relative; background: #05081a; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(10, 20, 60, .35); }
.fmstage canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; cursor: pointer; }
.fmstage:fullscreen { max-width: none; display: flex; align-items: center; background: #000; border-radius: 0; }
.fmstage:fullscreen canvas { max-height: 100vh; object-fit: contain; }
.fmprog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .08); }
.fmprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd166, #4f7bff); }
.fmwarn { background: #fff4e0; color: #7a4a00; border: 1px solid #f0c060; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.fmnote { margin-top: 8px; }
.fmrec { color: #c0262d; animation: fmblink 1s infinite; }
@keyframes fmblink { 50% { opacity: .45; } }
/* 1.9.116.34 👁 الشاشات اللى تظهر لليوزر */
.pscr { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(44,131,151,.06); border: 1px dashed rgba(44,131,151,.35); }
.pscr h4 { margin: 2px 0 8px; }
.pscr .chk.off span { text-decoration: line-through; opacity: .6; }

/* club 38: «🔗 المواقع» */
#btnLinks[hidden] { display: none !important; }
#btnLinks { white-space: nowrap; }
.xbtn.xlinks { border: 1.5px solid var(--brand, #714B67); color: var(--brand, #714B67); font-weight: 700; padding: 0 12px; min-height: 34px; }
.xbtn.xlinks:hover { background: var(--brand, #714B67); color: #fff; }
.xbtn.xlinks span { display: inline !important; }
html[data-theme="dark"] .xbtn.xlinks { border-color: #C9A9C0; color: #E6D3E1; }
@media (max-width: 700px) { .xbtn.xlinks { padding: 0 8px; } .xbtn.xlinks span { display: none !important; } }
.sln-list { display: flex; flex-direction: column; gap: 10px; }
.sln-row { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; align-items: center; padding: 10px; border: 1px solid var(--line, #ddd); border-radius: 12px; background: color-mix(in srgb, var(--card, #fff) 92%, var(--brand, #714B67)); }
.sln-ic { font-size: 26px; text-align: center; grid-row: span 1; }
.sln-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sln-tx b { font-size: 15px; }
.sln-tx small { opacity: .75; font-size: 12.5px; }
.sln-tx code { font-size: 12.5px; direction: ltr; text-align: left; overflow-wrap: anywhere; opacity: .85; }
.sln-me { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: #1fa855; color: #fff; margin-inline-start: 4px; }
.sln-bt { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.sln-bt .btn { flex: 1 1 70px; min-height: 38px; padding-inline: 6px; }
.sln-qr { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sln-qr[hidden] { display: none; }
.sln-qr img { width: 180px; height: 180px; background: #fff; padding: 6px; border-radius: 8px; image-rendering: pixelated; }
.sln-qr span { font-size: 12.5px; opacity: .8; }
@media (min-width: 701px) { .sln-row { grid-template-columns: 44px 1fr auto; } .sln-bt { grid-column: auto; flex-wrap: nowrap; } .sln-bt .btn { flex: 0 0 auto; } }

/* 1.9.116.42 🛰 متابعة البرنامج */
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wcard { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--card); border-inline-start: 5px solid #f59e0b; }
.wcard.on { border-inline-start-color: #16a34a; }
.wcard .wtop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; font-size: 15px; }
.wcard .wdot { width: 10px; height: 10px; border-radius: 50%; background: #f59e0b; flex: none; }
.wcard.on .wdot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.wcard .wl { margin-top: 3px; line-height: 1.5; overflow-wrap: anywhere; }
.wcard .wl.out { color: #b45309; font-weight: 600; }
.stat.wbad b, .wred { color: #dc2626; }
.stat.wwarn b { color: #b45309; }
.stat small { display: block; opacity: .75; }
.wscroll { overflow-x: auto; }
.wgrid td { vertical-align: top; }
.wgrid.wlog { min-width: 680px; }
.wgrid.wlog td:last-child { min-width: 220px; }
tr.woff td { opacity: .6; }
.wday { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wday .sp { flex: 1; }
.wday input[type=date] { margin-inline-start: 6px; }
.wtwo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 12px; margin-bottom: 14px; }
.wtwo .grid { min-width: 0; }
.wtwo > .panel { min-width: 0; margin: 0; }
.wfil { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.wfil input { flex: 1; min-width: 180px; }
h2.wh { margin: 6px 2px 10px; font-size: 18px; }
/* build 49: التطبيقات متصنفة (CRM، المبيعات، الشراء، المخزون، التصنيع، المحاسبة، نقطة البيع، المشروع، الموظفون، الإعدادات) */
.mgrps { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 26px 34px; max-width: 1180px; margin: 30px auto 10px; }
.mgrp { flex: 0 1 auto; min-width: 150px; }
.mgrp .mods { margin: 14px 0 0; gap: 22px 30px; justify-content: center; }
.mgh { margin: 0; padding: 0 8px 6px; font-size: 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.mgh small { color: var(--muted); font-weight: 500; font-size: 12px; }
@media (max-width: 640px) { .mgrp .mods { gap: 18px 14px; } .mgrp .mod { width: 96px; } .mgrp .mod .mi { width: 84px; height: 84px; border-radius: 20px; font-size: 40px; } .mgrp .mod b { font-size: 14px; text-align: center; } }
.ftgh { margin-top: 10px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); padding: 0 4px 4px; } .ftgh:first-child { margin-top: 0; } .ftgh small { color: var(--muted); font-weight: 500; font-size: 12px; }
html.tb-en .mgh small, html.tb-en .ngh small, html.tb-en .lgh small, html.tb-en .ftgh small { display: none; }

/* ---------- build 50 (طلب المالك 2026-11-15): القايمة الجانبية لكل مديول بدل الشريط اللى فوق + خانة بحث فى البرنامج كله */
.xbody { flex: 1; display: flex; align-items: flex-start; min-width: 0; }
.xmain { flex: 1; min-width: 0; display: flex; flex-direction: column; align-self: stretch; }
.xside { --sw: 248px; position: sticky; top: calc(var(--navH, 56px) + 10px); width: var(--sw); flex: none; box-sizing: border-box;
  max-height: calc(100vh - var(--navH, 56px) - 20px); margin: 10px 12px 10px 0; margin-inline: 12px 0; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.25); overflow: hidden; z-index: 15; }
.xside[hidden] { display: none; }
.sdh { display: flex; align-items: center; gap: 6px; padding: 10px 10px 6px; }
.xside { --mac: var(--brand); }   /* build 54: القايمة بتاخد لون الشكل اللى اختاره اليوزر */
.sdm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: #fff; font-weight: 700;
  background: linear-gradient(120deg, var(--brand), var(--brand-d, color-mix(in srgb, var(--brand) 70%, #000))); }
html[data-theme="dark"] .xside { --mac: color-mix(in srgb, var(--brand) 55%, #fff); }
.sdm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.sdm .si { font-size: 18px; }
.sdx { display: none; border: 0; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.sdq { display: flex; flex-direction: row; align-items: center; gap: 6px; color: var(--muted); margin: 4px 10px 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); cursor: text; }
.sdq:focus-within { border-color: var(--mac, var(--teal)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mac, var(--teal)) 18%, transparent); }
.sdq input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; padding: 0; }
.sdq kbd { font: 11px monospace; padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); direction: ltr; white-space: nowrap; }
.sdl { flex: 1; overflow-y: auto; padding: 2px 8px 8px; scrollbar-width: thin; }
.sdg { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 10px 8px 4px; cursor: pointer; user-select: none; border-radius: 8px; }
.sdg::after { content: "▾"; font-size: 11px; opacity: .7; transition: transform .2s; }
.sdg.off::after { transform: rotate(90deg); }
.sdg.static { cursor: default; } .sdg.static::after { content: none; }
.sdg.cur { color: var(--mac, var(--teal)); }
.sdg:hover:not(.static) { color: var(--ink); }
.sdg:focus-visible, .sdi:focus-visible { outline: 2px solid var(--mac, var(--teal)); outline-offset: 1px; }
.sdi { display: flex; align-items: center; gap: 9px; width: 100%; box-sizing: border-box; padding: 7px 10px; margin: 1px 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); text-decoration: none; font: inherit; font-size: 14.5px; text-align: start; cursor: pointer; position: relative; }
.sdi:hover { background: color-mix(in srgb, var(--mac, var(--teal)) 9%, transparent); }
.sdi.on { background: color-mix(in srgb, var(--mac, var(--teal)) 17%, var(--card)); font-weight: 700; }
.sdi.on::before { content: ""; position: absolute; inset-inline-start: -8px; top: 7px; bottom: 7px; width: 4px; border-radius: 4px; background: var(--mac, var(--teal)); }
.sdi .si { width: 22px; text-align: center; flex: none; font-size: 16px; }
.sdi .st { flex: 1; min-width: 0; line-height: 1.35; }
.sdi .st small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdi .sb { font-style: normal; background: #dc2626; color: #fff; border-radius: 99px; min-width: 20px; padding: 0 6px; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 19px; }
.sdi.sdall { color: var(--muted); font-size: 13px; }
.sdnone { color: var(--muted); font-size: 13.5px; padding: 14px 10px; }
.sdfold { border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; padding: 9px 14px; text-align: start; cursor: pointer; }
.sdfold:hover { color: var(--ink); background: var(--bg); }
/* الشريط اللى فوق جوه الشاشة اتنقل للقايمة */
body.sideOn .view > .chips.sdhid { display: none; }
/* ☰ جنب اسم المديول */
.xham { border: 0; background: transparent; color: var(--ink); font-size: 19px; padding: 0 10px; cursor: pointer; border-radius: 8px; margin: 6px 0; }
.xham:hover { background: var(--bg); }
.xmid:has(.xham) { min-height: 0; }
/* متصغّرة: أيقونات بس */
body.sideMini .xside { --sw: 64px; }
body.sideMini .xside .sdm b, body.sideMini .xside .st, body.sideMini .xside .sdq input, body.sideMini .xside .sdq kbd, body.sideMini .xside .sb { display: none; }
body.sideMini .xside .sdm { justify-content: center; padding: 8px 0; }
body.sideMini .xside .sdq { justify-content: center; padding: 7px 0; margin-inline: 8px; cursor: pointer; }
body.sideMini .xside .sdg { font-size: 0; padding: 6px 0 2px; border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0; }
body.sideMini .xside .sdg::after { content: none; }
body.sideMini .xside .sdi { justify-content: center; padding: 8px 0; }
body.sideMini .xside .sdi .si { font-size: 18px; }
body.sideMini .xside .sdfold { text-align: center; padding: 9px 0; }
/* «مطلوب منك» على الشمال: مكانها محفوظ */
@media (min-width: 1200px) { body.noteOn.sideOn .view { padding-left: 290px; } }
/* الموبايل والشاشات الصغيرة: القايمة بتفتح من ☰ وبتقفل لما تختار */
.sdshade { display: none; }
@media (max-width: 900px) {
  .xside { position: fixed; top: 0; bottom: 0; right: 0; left: auto; margin: 0; max-height: none; width: min(300px, 86vw) !important; border-radius: 0 0 0 0;
    border-width: 0 0 0 1px; transform: translateX(105%); transition: transform .25s ease; z-index: 60; box-shadow: none; }
  body.sideOpen .xside { transform: none; box-shadow: -18px 0 40px -10px rgba(0,0,0,.35); }
  body.sideOpen .sdshade { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 55; }
  .sdx { display: block; }
  .sdfold, .sdq kbd { display: none; }
  body.sideMini .xside .sdm b, body.sideMini .xside .st, body.sideMini .xside .sdq input, body.sideMini .xside .sb { display: revert; }
  body.sideMini .xside .sdg { font-size: 12.5px; }
  body.sideMini .xside .sdi { justify-content: flex-start; padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) { .xside, .sdg::after { transition: none; } }
/* نيون وهاكر: النافبار نفسه على اليمين، فالقايمة بتيجى جنبه */
@media (min-width: 901px) {
  html:is([data-look="neon"],[data-look="hack"]) .xside { top: 12px; max-height: calc(100vh - 24px); margin: 12px 0 12px 0; margin-inline-end: 0;
    background: var(--nglass); border: 1px solid var(--nedge); border-radius: 22px; backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
  html:is([data-look="neon"],[data-look="hack"]) .xbody { padding-inline-start: 0; }
}
.msec { margin: 6px 0 18px; }
.msec h3 { margin: 0 0 10px; font-size: 15px; color: var(--muted); font-weight: 700; }

/* ---------- build 50: رئيسية أسلس (الشكل الكلاسيك): ترحيب + بحث كبير، والتطبيقات كروت صغيرة متصنفة فى شاشة واحدة */
.hhero { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: min(1180px, 100%); margin: 14px auto 14px; }
.hhi { flex: 0 1 auto; min-width: 0; }
.hhi b { display: block; font-size: 23px; font-weight: 800; line-height: 1.3; }
.hhi small { display: block; color: var(--muted); font-size: 13.5px; }
.hhero .hsearch.hfind { flex: 1 1 360px; width: auto; margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--card); color: var(--muted); font: inherit; cursor: pointer; }
.hhero .hsearch.hfind span { font-size: 18px; }
.hask2 { flex: none; display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, #7c3aed 35%, var(--line));
  background: color-mix(in srgb, #7c3aed 8%, var(--card)); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.hask2:hover { background: color-mix(in srgb, #7c3aed 16%, var(--card)); }
.view > .hquick, .view > .hwork { width: min(1180px, 100%); margin-inline: auto; }
.view > .hquick .hq { flex: 1 1 220px; padding: 10px 14px; }
.mgrps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; max-width: 1180px; margin: 6px auto 10px; align-items: start; }
.mgrp { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 14px; box-shadow: 0 8px 24px -18px rgba(0,0,0,.3); }
.mgh { border-bottom: 0; padding: 0 4px 2px; font-size: 14.5px; }
.mgrp .mods { margin: 10px 0 0; gap: 10px 6px; justify-content: flex-start; max-width: none; }
.mgrp .mod { width: 86px; gap: 7px; }
.mgrp .mod .mi { width: 60px; height: 60px; border-radius: 17px; font-size: 30px; }
.mgrp .mod b { font-size: 13.5px; text-align: center; line-height: 1.3; }
.mgrp .mod:hover .mi { transform: translateY(-3px) scale(1.04); }
.hlinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; width: min(1180px, 100%); margin: 16px auto 0; }
.hlinks h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.hchips { display: flex; flex-wrap: wrap; gap: 6px; }
.hchips a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13.5px; }
.hchips a.fav { border-color: var(--gold); }
.hchips a:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 640px) {
  .hhero { margin-top: 6px; } .hhi b { font-size: 20px; } .hask2 span { display: none; }
  .mgrps { grid-template-columns: 1fr; gap: 10px; }
  .mgrp .mod { width: 76px; } .mgrp .mod .mi { width: 54px; height: 54px; font-size: 27px; border-radius: 15px; } .mgrp .mod b { font-size: 12.5px; }
}
/* build 50: لما القايمة الجانبية ظاهرة والشاشة مش عريضة، «مطلوب منك» بتبقى زرار فى القايمة (والأرقام الحمرا جنب الشاشات) وبتفتح لما تدوس عليه */
.xside .sdnote { display: none; margin: 0 0 4px; background: color-mix(in srgb, #f5c542 22%, var(--card)); }
@media (max-width: 1599px) {
  body.sideOn:not(.noteShow) .snote { display: none; }
  body.sideOn.noteShow .snote { z-index: 40; box-shadow: 0 20px 50px -10px rgba(0,0,0,.35); }
  .xside .sdnote { display: flex; }
  body.noteOn.sideOn .view { padding-left: 20px; }
}
.sdnw { padding: 0 8px; }
body.sideMini .xside .sdnote { justify-content: center; }
@media (min-width: 641px) { body:not(.noteOn):has(.snote) .hhero { padding-inline-end: 150px; box-sizing: border-box; } }
/* club 59: تفاصيل الوردية فى اعتماد الإيراد */
.rvDet details { margin: 6px 0; border: 1px solid var(--line, #ddd); border-radius: 10px; padding: 4px 8px; }
.rvDet summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.rvDet .rvW { border-color: var(--brand, #7a3d6b); }
.rvDet .rvPays { margin: 2px 0 6px; line-height: 1.9; }
.rvDet .rvT { max-height: 240px; overflow: auto; }
.rvDet .rvT table { width: 100%; font-size: 13px; }
.rvDet .rvT td { vertical-align: top; }

/* 2026-11-19 (owner phone screenshot): the side-menu layout (build 50) reused the class «xbody», so the «الرقم ده جه منين» popup body
   became a flex row: its content grew to the widest table and the numbers were cut off on phones. Keep the popup body a plain block. */
.xpop .xcard .xbody { display: block; flex: none; min-width: 0; padding: 14px 18px 20px; }
.xpop .xcard .xlvl { min-width: 0; max-width: 100%; }
.xpop .xcard table { display: block; max-width: 100%; overflow-x: auto; }
/* looks with a see-through card (glass/neon/hack): the popup must hide the report behind it */
.xpop .xcard { background-color: var(--bg); background-image: linear-gradient(var(--card), var(--card)); }
@media (max-width: 640px) { .xpop .xcol span { font-size: 9px; } .xpop .xcard .xbody { padding: 12px 10px 18px; } .xpop .xbar { grid-template-columns: minmax(0, 36%) minmax(0, 1fr) auto; gap: 6px; } }
/* 1.9.116.65 (owner screenshot from the server, hacker look): the popup must never show the screen behind it.
   A solid card in every look, and a darker cover in the dark looks (the matrix rain and neon glow showed through the light cover). */
.xpop .xcard, .xpop .xcard .xbody, .xpop .xcard .xlvl { background-color: var(--bg); }
.xpop .xcard { background-image: linear-gradient(var(--card), var(--card)); isolation: isolate; }
html[data-look="hack"] .xpop.on, html[data-theme="dark"] .xpop.on { background: rgba(0,0,0,.72); }
html[data-look="hack"] .xpop .xcard { box-shadow: 0 0 0 1px color-mix(in srgb, var(--g1) 45%, transparent), 0 24px 70px rgba(0,0,0,.7); }
/* 65 (owner phone screenshot): on a phone every table in the popup becomes cards — each line shows its account, description and amounts
   with the column name above each value, instead of a wide table cut to its first 3 columns with very tall rows */
@media (max-width: 640px) {
  .xpop .xcard table.grid, .xpop .xcard table.grid tbody { display: block; width: 100%; overflow: visible; }
  .xpop .xcard table.grid thead { display: none; }
  .xpop .xcard table.grid tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
  .xpop .xcard table.grid td { display: block; min-width: 0; padding: 0; border: 0; background: transparent !important; box-shadow: none !important; white-space: normal; overflow-wrap: anywhere; text-align: start; direction: inherit; height: auto; }
  .xpop .xcard table.grid td.n { direction: ltr; text-align: end; }
  .xpop .xcard table.grid td.xw { grid-column: 1 / -1; font-weight: 600; }
  .xpop .xcard table.grid td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); direction: rtl; text-align: start; }
  .xpop .xcard table.grid td:empty { display: none; }
}
