/* النمط C (W9) — شاشات المالك/الإدارة والمشتركة: الرئيسية، بانتظار قرارك، الطلبات، الحضور اليوم، الفريق، النشاط،
   الإعدادات، تدقيق التخزين، شاشة المكتب، الإشعارات، الدخول. كل القواعد تحت html[data-ui="c"] ومتغيّرات الألوان فقط (الداكن مجاني). */

/* ── عام ── */
html[data-ui="c"] .co-mut { color: var(--muted); font-size: var(--fs-6); margin: 6px 0 0; }
html[data-ui="c"] .co-sub { color: var(--muted); font-size: var(--fs-5); margin: -6px 0 16px; }
html[data-ui="c"] .co-cta { display: flex; justify-content: flex-end; margin-top: 12px; }
html[data-ui="c"] .co-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
html[data-ui="c"] .co-time { min-width: 52px; height: 44px; padding: 0 8px; border-radius: 14px; background: var(--sunk); display: grid; place-items: center; font-weight: 600; font-size: var(--fs-6); flex: none; }
html[data-ui="c"] .co-prog { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .28); overflow: hidden; margin: 12px 0 14px; }
html[data-ui="c"] .co-prog i { display: block; height: 100%; border-radius: inherit; background: var(--hero-ink); }
html[data-ui="c"] .co-prog.br { background: var(--sunk); }
html[data-ui="c"] .co-prog.br i { background: var(--brand); }
html[data-ui="c"] .co-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-6); color: var(--muted); margin-top: 10px; }
html[data-ui="c"] .co-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); margin-inline-end: 6px; vertical-align: middle; }

/* ── رئيسية المالك ── */
html[data-ui="c"] .co-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -8px 0 16px; }
html[data-ui="c"] .co-head p { margin: 0; color: var(--muted); font-size: var(--fs-5); }
html[data-ui="c"] .co-acts { display: flex; gap: 8px; flex-wrap: wrap; }
html[data-ui="c"] .co-home .c-note { margin-bottom: 16px; }
html[data-ui="c"] .co-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
html[data-ui="c"] .co-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
html[data-ui="c"] .co-col > .c-card, html[data-ui="c"] .co-col > .c-hero { margin: 0; }
html[data-ui="c"] .co-mine { margin-top: 16px; }
@media (max-width: 1180px) { html[data-ui="c"] .co-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } html[data-ui="c"] .co-cols > .co-col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (max-width: 760px) {
  html[data-ui="c"] .co-cols, html[data-ui="c"] .co-cols > .co-col:nth-child(3) { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  html[data-ui="c"] .co-cols { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  html[data-ui="c"] .co-cols > .co-col, html[data-ui="c"] .co-cols > .co-col:nth-child(3) { display: contents; }
  html[data-ui="c"] .co-col > * { order: var(--o, 50); min-width: 0; }
  html[data-ui="c"] .co-head { margin-top: 0; }
  html[data-ui="c"] .co-acts .c-btn { flex: 1; }
}
/* U2 (تصميم 2): مساحة أقل فارغة — الحالات الفارغة داخل بطاقات الرئيسية سطر مدمج بدل أيقونة 84px، و«عملي» يمرّر داخله على سطح المكتب */
@media (min-width: 761px) {
  html[data-ui="c"] .co-mine .mw-body { max-height: 400px; overflow: hidden; } /* بلا تمرير داخلي: العجلة تمرّر الصفحة دائماً؛ «عرض كل عملي» يفتحها */
  html[data-ui="c"] .co-mine.clip .mw-body { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
  html[data-ui="c"] .co-mine.open .mw-body { max-height: none; }
  html[data-ui="c"] .co-mine .co-mine-all { width: calc(100% - 32px); align-self: center; margin: 4px 16px 8px; }
  html[data-ui="c"] .co-mine .mw-g { position: sticky; top: 0; z-index: 1; }
}
/* المال (بطاقة ذهبية) */
html[data-ui="c"] .co-money { display: block; color: var(--hero-ink); text-decoration: none !important; }
html[data-ui="c"] .co-money-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
html[data-ui="c"] .co-money-big span { color: var(--hero-mut); font-size: var(--fs-5); }
html[data-ui="c"] .co-mt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-ui="c"] .co-mt > span { background: rgba(255, 255, 255, .14); border-radius: 16px; padding: 10px 14px; min-width: 0; }
html[data-ui="c"] .co-mt small { color: var(--hero-mut); }
html[data-ui="c"] .co-mt b { display: block; font-size: var(--fs-3); font-weight: 600; color: var(--hero-ink); }
/* الأعمدة البيانية */
html[data-ui="c"] .co-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 6px; }
html[data-ui="c"] .co-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 6px; }
html[data-ui="c"] .co-bar i { display: block; border-radius: 10px 10px 4px 4px; background: var(--brand-tint); border: 1px solid var(--brand-line); min-height: 4px; }
html[data-ui="c"] .co-bar.on i { background: var(--brand); border-color: var(--brand); }
html[data-ui="c"] .co-bar span { font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
/* وجوه الفريق */
html[data-ui="c"] .co-faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
html[data-ui="c"] .co-face { display: flex; flex-direction: column; align-items: center; gap: 2px; color: inherit; text-decoration: none !important; min-width: 0; }
html[data-ui="c"] .co-face .avatar { width: 52px; height: 52px; font-size: 17px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c-ring, var(--line)); margin-bottom: 6px; }
html[data-ui="c"] .co-face.ok { --c-ring: var(--ok); } html[data-ui="c"] .co-face.warn { --c-ring: var(--warn); } html[data-ui="c"] .co-face.bad { --c-ring: var(--bad); }
html[data-ui="c"] .co-face.info { --c-ring: var(--info); } html[data-ui="c"] .co-face.muted { --c-ring: var(--line); }
html[data-ui="c"] .co-face b { font-size: var(--fs-6); font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .co-face small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
html[data-ui="c"] .co-off { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: var(--fs-6); margin: 14px 0 0; }
html[data-ui="c"] .co-off svg { width: 16px; height: 16px; }
html[data-ui="c"] .co-board .c-seg { margin-bottom: 8px; width: 100%; overflow-x: auto; scrollbar-width: none; }
html[data-ui="c"] .co-board .c-seg button { flex: 1; }
html[data-ui="c"] .co-salrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
html[data-ui="c"] .co-salrow b { font-size: var(--fs-2); font-weight: 600; }
html[data-ui="c"] .co-salrow b small { font-size: var(--fs-6); color: var(--muted); }
html[data-ui="c"] .co-act .act-tl { --max: 5; }

/* ── بطاقة القرار (كومة) ── */
html[data-ui="c"] .co-stack { position: relative; padding-bottom: 14px; }
html[data-ui="c"] .co-dec { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-card); padding: 18px; box-shadow: var(--sh); touch-action: pan-y; transition: transform var(--t-stack) var(--ease), opacity var(--t-stack) var(--ease); user-select: none; }
html[data-ui="c"] .co-deccard .co-dec { border: 0; box-shadow: none; padding: 0; }
html[data-ui="c"] .co-deccard .co-stack { padding-bottom: 6px; }
html[data-ui="c"] .co-deccard .co-dec-ghost { display: none; }
html[data-ui="c"] .co-deccard .c-list { border-top: 1px solid var(--line2); margin-top: 10px; }
html[data-ui="c"] .co-dec.drag { transition: none; }
html[data-ui="c"] .co-dec[data-lean="yes"] { box-shadow: 0 0 0 2px var(--ok), var(--sh); }
html[data-ui="c"] .co-dec[data-lean="no"] { box-shadow: 0 0 0 2px var(--bad), var(--sh); }
html[data-ui="c"] .co-dec.out-yes { transform: translateX(120%) rotate(8deg); opacity: 0; }
html[data-ui="c"] .co-dec.out-no { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
html[data-ui="c"] .co-dec.busy { opacity: .6; pointer-events: none; }
html[data-ui="c"] .co-dec-ghost { position: absolute; inset-inline: 16px; bottom: 6px; height: 40px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line2); z-index: 1; }
html[data-ui="c"] .co-dec-ghost.g2 { inset-inline: 32px; bottom: 0; z-index: 0; opacity: .7; }
html[data-ui="c"] .co-dec-top { display: flex; align-items: center; gap: 12px; }
html[data-ui="c"] .co-dec-top .avatar { width: 52px; height: 52px; font-size: 18px; }
html[data-ui="c"] .co-dec-who { flex: 1; min-width: 0; }
html[data-ui="c"] .co-dec-who b { display: block; font-size: var(--fs-5); font-weight: 600; }
html[data-ui="c"] .co-dec-who small { color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .co-dec-t { font-size: var(--fs-2); font-weight: 600; margin: 14px 0 4px; line-height: 1.35; }
html[data-ui="c"] .co-dec-n { color: var(--ink2); font-size: var(--fs-5); margin: 0 0 6px; }
/* «بدون راتب»: مرضية بلا رصيد — سطر يشرح الخصم فوق زرّي القرار */
html[data-ui="c"] .co-dec-unpaid { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: var(--fs-6); line-height: 1.5; }
html[data-ui="c"] .co-dec-unpaid svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
html[data-ui="c"] .co-req .c-tag { vertical-align: middle; }
html[data-ui="c"] .co-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: var(--fs-6); margin: 8px 0 16px; }
html[data-ui="c"] .co-meta > span { display: inline-flex; align-items: center; gap: 6px; }
html[data-ui="c"] .co-meta svg { width: 16px; height: 16px; }
html[data-ui="c"] .co-dec-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html[data-ui="c"] .co-dec-act .c-btn { width: 100%; }
html[data-ui="c"] .co-hint { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: var(--fs-6); margin: 8px 0 0; text-align: center; }
html[data-ui="c"] .co-hint svg { width: 16px; height: 16px; flex: none; }

/* ── صفحة القرارات ── */
html[data-ui="c"] .co-decgrid { display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; gap: 20px; align-items: start; }
html[data-ui="c"] .co-decside { position: sticky; top: var(--c-stick-top, 16px); max-height: calc(100dvh - var(--c-stick-top, 16px) - 8px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; padding: 2px 8px 16px; margin: -2px -8px -16px; } /* auto: بعد نهاية القائمة الجانبية يكمل التمرير للصفحة (كان يتوقف فلا يُوصل لآخر الصفحة) */ /* أطول من المساحة تحت الرأس: تُمرَّر من داخلها بدل أن يبقى أسفلها مقصوصاً */
html[data-ui="c"] .co-dectbl { padding: 16px 0 8px; overflow: hidden; }
html[data-ui="c"] .co-dectbl > .c-chips { padding: 0 16px 8px; }
html[data-ui="c"] .co-tbl { display: grid; }
html[data-ui="c"] .co-tr { display: grid; grid-template-columns: minmax(130px, 1.3fr) 76px minmax(130px, 2fr) 84px 76px 100px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line2); font-size: var(--fs-6); }
html[data-ui="c"] .co-th { color: var(--muted); border-top: 0; padding-block: 6px; }
html[data-ui="c"] .co-tr.on { background: var(--brand-tint); }
html[data-ui="c"] .co-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-ui="c"] .co-who b { display: block; font-size: var(--fs-5); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .co-who small, html[data-ui="c"] .co-req small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .co-req { min-width: 0; font-size: var(--fs-5); overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .co-ra { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 1100px) { html[data-ui="c"] .co-decgrid { grid-template-columns: 1fr; } html[data-ui="c"] .co-decside { position: static; } }
@media (max-width: 760px) {
  html[data-ui="c"] .co-th { display: none; }
  html[data-ui="c"] .co-tr { grid-template-columns: 1fr auto; grid-template-areas: "who ra" "req req" "kind amt"; gap: 6px 10px; }
  html[data-ui="c"] .co-tr > :nth-child(1) { grid-area: who; } html[data-ui="c"] .co-tr > :nth-child(2) { grid-area: kind; }
  html[data-ui="c"] .co-tr > :nth-child(3) { grid-area: req; } html[data-ui="c"] .co-tr > :nth-child(4) { grid-area: amt; text-align: end; }
  html[data-ui="c"] .co-tr > :nth-child(5) { display: none; } html[data-ui="c"] .co-tr > :nth-child(6) { grid-area: ra; }
}

/* ── مركز الطلبات ── */
html[data-ui="c"] .co-rqh { margin: -8px 0 12px; }
html[data-ui="c"] .co-rqh p { margin: 0; color: var(--muted); font-size: var(--fs-5); }
html[data-ui="c"] .co-rqh .btn { margin-inline-start: auto; }
html[data-ui="c"] .co-rqtabs { margin-bottom: 16px; }
html[data-ui="c"] .co-rqtabs .c-bd { margin-inline-start: 6px; }
html[data-ui="c"] .co-bal { padding: 8px 0; margin-bottom: 16px; }
html[data-ui="c"] .co-br { display: grid; grid-template-columns: minmax(170px, 1.6fr) 1fr 1fr 90px 1fr minmax(150px, 1.3fr) 110px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line2); font-size: var(--fs-5); }
html[data-ui="c"] .co-bh { border-top: 0; color: var(--muted); font-size: var(--fs-6); padding-block: 8px; }
html[data-ui="c"] .co-br small { display: block; font-size: 12px; }
html[data-ui="c"] .co-rem { font-size: var(--fs-4); font-weight: 600; }
html[data-ui="c"] .co-mut2 { color: var(--muted); }
html[data-ui="c"] .bad-t { color: var(--bad); } html[data-ui="c"] .warn-t { color: var(--warn); } html[data-ui="c"] .info-t { color: var(--info); } html[data-ui="c"] .ok-t { color: var(--ok); }
html[data-ui="c"] .co-ex { display: grid; gap: 6px; font-size: var(--fs-6); }
html[data-ui="c"] .co-ex i { display: block; height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
html[data-ui="c"] .co-ex i b { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
html[data-ui="c"] .co-ex.low i b { background: var(--warn); }
html[data-ui="c"] .co-balk .c-kp { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh); padding: 18px 20px; }
@media (max-width: 1100px) { html[data-ui="c"] .co-br { grid-template-columns: minmax(150px, 1.4fr) 1fr 80px 1fr minmax(130px, 1.2fr) 96px; } html[data-ui="c"] .co-br > :nth-child(3) { display: none; } }
@media (max-width: 760px) {
  html[data-ui="c"] .co-bh { display: none; }
  html[data-ui="c"] .co-br { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px 16px; }
  html[data-ui="c"] .co-br > .co-who { grid-column: 1 / -1; }
  html[data-ui="c"] .co-br > :nth-child(3) { display: block; }
  html[data-ui="c"] .co-br > [data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
  html[data-ui="c"] .co-br > .co-ra { grid-column: 1 / -1; justify-content: flex-start; }
  /* أرصدة الطلبات: صف مدمج — الاسم + المتبقي من السنوية + سهم؛ التفاصيل في ورقة */
  html[data-ui="c"] .co-br[data-bal] { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 10px; padding: 10px 16px; min-height: 64px; cursor: pointer; }
  html[data-ui="c"] .co-br[data-bal] > :not(.co-who):not(.co-rem):not(.co-brgo) { display: none; }
  html[data-ui="c"] .co-br[data-bal] > .co-who { grid-column: auto; }
  html[data-ui="c"] .co-br[data-bal] > .co-rem { font-size: 22px; text-align: end; }
  html[data-ui="c"] .co-br[data-bal] > .co-rem::before { content: attr(data-l); display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
  html[data-ui="c"] .co-br[data-bal] > .co-brgo { display: block; width: 18px; height: 18px; color: var(--muted); }
}
html[data-ui="c"] .co-brgo { display: none; }
html[data-ui="c"][dir="rtl"] .co-brgo { transform: scaleX(-1); }
html[data-ui="c"] .co-atdl .co-ex { min-width: 140px; }
@media (max-width: 760px) { html[data-ui="c"] .c-fend > .co-mut { display: none; } }

/* ── لوحة الحضور اليوم: خمسة أرقام كفلاتر + قائمة واحدة ── */
html[data-ui="c"] .co-atbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
html[data-ui="c"] .co-atnav { display: flex; align-items: center; gap: 6px; }
html[data-ui="c"] .co-atnav .input { width: auto; min-height: 40px; }
html[data-ui="c"] .co-atnav .c-ibtn { width: 40px; height: 40px; background: var(--surface); box-shadow: var(--sh); }
html[data-ui="c"] .co-flip svg { transform: scaleX(-1); }
html[data-ui="c"] .co-atsch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-6); margin-inline-start: auto; }
html[data-ui="c"] .co-atsch svg { width: 15px; height: 15px; color: var(--brand); }
html[data-ui="c"] .co-at5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
html[data-ui="c"] .co-at5t { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--r-tile, 16px); box-shadow: var(--sh); padding: 14px 18px; border-inline-start: 3px solid var(--line); transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
html[data-ui="c"] .co-at5t small { color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .co-at5t b { font-size: 26px; line-height: 1.1; color: var(--ink); }
html[data-ui="c"] .co-at5t.ok { border-inline-start-color: var(--ok); } html[data-ui="c"] .co-at5t.warn { border-inline-start-color: var(--warn); } html[data-ui="c"] .co-at5t.bad { border-inline-start-color: var(--bad); } html[data-ui="c"] .co-at5t.info { border-inline-start-color: var(--info); } html[data-ui="c"] .co-at5t.muted { border-inline-start-color: var(--muted); }
html[data-ui="c"] .co-at5t:hover { box-shadow: var(--sh-lg); }
html[data-ui="c"] .co-at5t:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
html[data-ui="c"] .co-at5t.on { background: var(--brand-tint); box-shadow: inset 0 0 0 1.5px var(--brand-line), var(--sh); }
html[data-ui="c"] .co-at > [data-c-chips="atf"] { display: none; }
html[data-ui="c"] .co-atc .c-card-h { padding: 18px 20px 6px; margin: 0; }
html[data-ui="c"] .co-atavg { font-style: normal; font-weight: 400; font-size: var(--fs-6); color: var(--muted); margin-inline-start: 10px; }
html[data-ui="c"] .co-atavg b { color: var(--ink); font-weight: 600; }
html[data-ui="c"] table.co-att { width: 100%; border-collapse: collapse; font-size: var(--fs-5); }
html[data-ui="c"] .co-att th { text-align: start; font-weight: 400; color: var(--muted); font-size: var(--fs-6); padding: 8px 12px; }
html[data-ui="c"] .co-att td { padding: 10px 12px; border-top: 1px solid var(--line2); vertical-align: middle; }
html[data-ui="c"] .co-att :is(th, td):first-child { padding-inline-start: 20px; }
html[data-ui="c"] .co-att :is(th, td):last-child { padding-inline-end: 20px; }
html[data-ui="c"] .co-att tbody tr { cursor: pointer; }
html[data-ui="c"] .co-att tbody tr:hover { background: var(--sunk); }
html[data-ui="c"] .co-att tr.miss { background: color-mix(in srgb, var(--bad-bg) 35%, transparent); }
html[data-ui="c"] .co-att td small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
html[data-ui="c"] .co-att td .mono { font-size: 11px; }
html[data-ui="c"] .co-att .co-at-m { display: none; }
html[data-ui="c"] .co-att .co-ra { min-height: 44px; align-items: center; }
html[data-ui="c"] .co-atw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 110px; max-width: 160px; }
html[data-ui="c"] .co-atw small { margin: 0 !important; }
html[data-ui="c"] .co-atw i { flex: 1 0 100%; height: 5px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
html[data-ui="c"] .co-atw i b { display: block; height: 100%; border-radius: 4px; background: var(--brand); }
html[data-ui="c"] .co-atw i b.ok { background: var(--ok); }
html[data-ui="c"] .co-atw i b.run { background: linear-gradient(90deg, var(--ok), var(--brand)); }
html[data-ui="c"] .co-athint { display: none; }
html[data-ui="c"] .co-atdh { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
html[data-ui="c"] .co-atdh > span:nth-child(2) { flex: 1; min-width: 0; }
html[data-ui="c"] .co-atdh b, html[data-ui="c"] .co-atdh small { display: block; }
html[data-ui="c"] .co-atdh small { color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .co-atdl { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line2); font-size: var(--fs-5); }
html[data-ui="c"] .co-atdl > span { color: var(--muted); }
html[data-ui="c"] .co-atdl > b { font-weight: 500; text-align: end; }
@media (max-width: 1180px) { html[data-ui="c"] .co-att :is(th, td):nth-child(6) { display: none; } }
@media (max-width: 760px) {
  html[data-ui="c"] .co-atbar { gap: 8px; }
  html[data-ui="c"] .co-atsch { margin-inline-start: 0; width: 100%; }
  html[data-ui="c"] .co-atnav { flex: 1 1 auto; min-width: 0; }
  html[data-ui="c"] .co-atnav .input, html[data-ui="c"] .co-atnav .picker { flex: 1 1 auto; min-width: 0; }
  html[data-ui="c"] .co-at5 { display: none; }
  html[data-ui="c"] .co-at > [data-c-chips="atf"] { display: flex; margin-bottom: 6px; }
  html[data-ui="c"] .co-atc .c-card-h { padding: 14px 16px 2px; flex-wrap: wrap; }
  html[data-ui="c"] .co-atavg { display: none; }
  html[data-ui="c"] .co-att thead { display: none; }
  html[data-ui="c"] .co-att tbody tr { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line2); min-height: 64px; }
  html[data-ui="c"] .co-att td { border: 0; padding: 0 !important; }
  html[data-ui="c"] .co-att td:first-child { flex: 1; min-width: 0; }
  html[data-ui="c"] .co-att td:nth-child(n+3) { display: none; }
  html[data-ui="c"] .co-att td:nth-child(2) small { display: none; }
  html[data-ui="c"] .co-att .co-at-d { display: none; }
  html[data-ui="c"] .co-att .co-at-m { display: block; }
  html[data-ui="c"] .co-athint { display: block; color: var(--muted); font-size: 12px; margin: 10px 4px 0; }
}

/* ── الفريق ── */
html[data-ui="c"] .co-gender { margin-bottom: 16px; }
html[data-ui="c"] .co-gender .c-li-e { display: flex; gap: 6px; }
html[data-ui="c"] .co-ppl { padding: 8px 0; margin-top: 12px; }
html[data-ui="c"] .co-pr { display: grid; grid-template-columns: minmax(200px, 2fr) 1.1fr 1fr 1fr 80px 1.1fr 70px 52px; gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line2); font-size: var(--fs-5); cursor: pointer; min-height: 78px; }
html[data-ui="c"] .co-pr:hover { background: var(--sunk); }
html[data-ui="c"] .co-pr.off { opacity: .6; }
html[data-ui="c"] .co-ph { border-top: 0; min-height: 0; color: var(--muted); font-size: var(--fs-6); cursor: default; padding-block: 8px; }
html[data-ui="c"] .co-ph:hover { background: none; }
html[data-ui="c"] .co-pr small { display: block; font-size: 12px; color: var(--muted); }
html[data-ui="c"] .co-pr .avatar.co-av58 { width: 58px; height: 58px; font-size: 18px; flex: none; }
html[data-ui="c"] .co-pr .c-tag + small { margin-top: 4px; }
@media (max-width: 1100px) { html[data-ui="c"] .co-pr { grid-template-columns: minmax(180px, 2fr) 1fr 1fr 1fr 70px 44px; } html[data-ui="c"] .co-pr > :nth-child(5), html[data-ui="c"] .co-pr > :nth-child(6) { display: none; } }
@media (max-width: 760px) {
  html[data-ui="c"] .co-ph { display: none; }
  html[data-ui="c"] .co-pr { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px 16px; }
  html[data-ui="c"] .co-pr > .co-who { grid-column: 1 / -1; }
  html[data-ui="c"] .co-pr > :nth-child(5), html[data-ui="c"] .co-pr > :nth-child(6) { display: block; }
  html[data-ui="c"] .co-pr > [data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: 12px; }
  html[data-ui="c"] .co-pr > .co-ra { position: absolute; }
  html[data-ui="c"] .co-pr { position: relative; }
  html[data-ui="c"] .co-pr > .co-ra { inset-inline-end: 12px; top: 14px; }
}

/* ── ملف الموظف ── */
html[data-ui="c"] .co-prof { position: relative; margin-bottom: 16px; }
html[data-ui="c"] .co-prof .co-prof-h { margin: 0 0 14px; padding: 0; }
html[data-ui="c"] .co-prof .co-prof-h h2 { font-size: var(--fs-2); }
html[data-ui="c"] .co-prof .co-prof-h .avatar.lg { width: 64px; height: 64px; }
html[data-ui="c"] .co-prof-st { position: absolute; inset-inline-end: 20px; top: 20px; display: flex; gap: 8px; align-items: center; }
html[data-ui="c"] .co-prof .co-prof-h .actions { margin-top: 44px; }
html[data-ui="c"] .co-prof-tabs { margin: 4px 0 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
html[data-ui="c"] .co-prof-tabs a { display: inline-flex; align-items: center; text-decoration: none !important; color: inherit; }
/* فحص الهاتف 2026-11-23: «نظرة · الحضور · المهام · رسالة» في ملف الموظف كانت تُمرَّر و«رسالة» مقصوصة عند الحافة — أربعة أجزاء متساوية بعرض البطاقة */
@media (max-width: 760px) { html[data-ui="c"] .co-prof-tabs { display: flex; width: 100%; overflow: visible; } html[data-ui="c"] .co-prof-tabs > * { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: 4px; white-space: nowrap; } html[data-ui="c"] .co-prof-tabs > a svg { flex: none; } }
html[data-ui="c"] .co-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
html[data-ui="c"] .co-tile { background: var(--sunk); border-radius: var(--r-tile); padding: 10px 14px; min-width: 0; }
html[data-ui="c"] .co-tile small { display: block; color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .co-tile b { display: block; font-weight: 600; font-size: var(--fs-5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .co-tile.ltr b { direction: ltr; text-align: end; unicode-bidi: plaintext; }
html[data-ui="c"] .co-prof-stats { margin-top: 10px; gap: 10px; }
html[data-ui="c"] .co-prof-stats .card.stat { background: var(--sunk); box-shadow: none; border: 0; border-radius: var(--r-tile); padding: 10px 14px; }
html[data-ui="c"] .co-prof-stats .card.stat .ic { display: none; }
@media (max-width: 900px) { html[data-ui="c"] .co-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { html[data-ui="c"] .co-prof-st { position: static; margin-bottom: 10px; } html[data-ui="c"] .co-prof .co-prof-h .actions { margin-top: 12px; } }

/* ── تدقيق التخزين ── */
html[data-ui="c"] .co-sa-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 12px; }
html[data-ui="c"] .co-sa-h .co-sub { margin: 0; }
html[data-ui="c"] .co-sa { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; align-items: start; }
html[data-ui="c"] .co-sa-side { display: flex; flex-direction: column; gap: 16px; }
html[data-ui="c"] .co-sa-side .c-card, html[data-ui="c"] .co-sa-side .c-note { margin: 0; }
html[data-ui="c"] .co-sak .c-kp { background: var(--surface); border-radius: 20px; box-shadow: var(--sh); padding: 14px 18px; }
html[data-ui="c"] .co-sa-t { padding: 8px 0; }
html[data-ui="c"] .co-sar { display: grid; grid-template-columns: minmax(0, 2fr) 80px 90px 150px; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line2); font-size: var(--fs-5); cursor: pointer; list-style: none; }
html[data-ui="c"] .co-sar::-webkit-details-marker { display: none; }
html[data-ui="c"] .co-sah { border-top: 0; color: var(--muted); font-size: var(--fs-6); cursor: default; padding-block: 8px; }
html[data-ui="c"] .co-sac { display: flex; align-items: center; gap: 10px; min-width: 0; }
html[data-ui="c"] .co-sac svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
html[data-ui="c"] .co-sac b { font-weight: 500; }
html[data-ui="c"] .co-sar > span:last-child { display: flex; gap: 6px; flex-wrap: wrap; }
html[data-ui="c"] .co-sad[open] > .co-sar { background: var(--brand-tint); }
html[data-ui="c"] .co-sal { max-height: 360px; overflow: auto; padding: 4px 20px 12px; background: var(--sunk); }
html[data-ui="c"] .co-saf { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) 80px 100px 60px; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line2); font-size: var(--fs-6); align-items: center; }
html[data-ui="c"] .co-saf > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="c"] .co-bad { background: var(--bad-bg) !important; color: var(--bad) !important; }
@media (max-width: 1000px) { html[data-ui="c"] .co-sa { grid-template-columns: 1fr; } html[data-ui="c"] .co-sa-side { order: -1; } }
@media (max-width: 760px) { html[data-ui="c"] .co-sar { grid-template-columns: minmax(0, 1fr) 54px 72px; } html[data-ui="c"] .co-sar > :nth-child(4) { grid-column: 1 / -1; } html[data-ui="c"] .co-sah > :nth-child(4) { display: none; } html[data-ui="c"] .co-saf { grid-template-columns: minmax(0, 1fr) 64px; } html[data-ui="c"] .co-saf > :nth-child(2), html[data-ui="c"] .co-saf > :nth-child(4) { display: none; } }
html[data-ui="c"] .co-sa0 { cursor: default; color: var(--muted); }

/* ── شاشة المكتب (A6): لا أسطح سوداء — المعاينة والجهاز بالذهبي ── */
html[data-ui="c"] .tvc-tv { background: var(--brand-tint); color: var(--brand-ink); box-shadow: none; border: 1px solid var(--brand-line); }
html[data-ui="c"] .tvc-tv.is-on { background: var(--hero); color: var(--hero-ink); border: 0; }
html[data-ui="c"] .tvc-tv i { border-color: var(--surface); }
html[data-ui="c"] .tvc-pv { background: var(--hero) !important; color: var(--hero-ink); box-shadow: var(--sh); border: 0; aspect-ratio: 16 / 5; }
html[data-ui="c"] .tvc-pv-tile { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
html[data-ui="c"] .tvc-pv-tag { color: var(--hero-mut); }
html[data-ui="c"] .tvc-pv-banner { background: rgba(255, 255, 255, .22); box-shadow: none; color: var(--hero-ink); }
html[data-ui="c"] .tvc-main { gap: 16px; }
html[data-ui="c"] .tvc-quick { gap: 16px; }

/* ── الإعدادات: الرئيسية ── */
html[data-ui="c"] .co-set { display: grid; grid-template-columns: 7fr 4fr; gap: 16px; align-items: start; margin-bottom: 16px; }
html[data-ui="c"] .co-set[hidden], html[data-ui="c"] .co-set-back[hidden], html[data-ui="c"] .settings-grid[hidden] { display: none; }
html[data-ui="c"] .co-set-srch { width: 100%; margin-bottom: 12px; }
html[data-ui="c"] .co-set-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
html[data-ui="c"] .co-set-t { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: start; background: var(--surface); border: 0; border-radius: 20px; box-shadow: var(--sh); padding: 16px; min-height: 112px; color: inherit; text-decoration: none !important; font: inherit; cursor: pointer; transition: transform var(--t-fast) var(--ease); }
html[data-ui="c"] .co-set-t:hover { transform: translateY(-2px); }
html[data-ui="c"] .co-set-t[hidden] { display: none; }
html[data-ui="c"] .co-set-t svg { width: 22px; height: 22px; color: var(--brand); margin-bottom: 6px; }
html[data-ui="c"] .co-set-t b { font-size: var(--fs-5); font-weight: 600; }
html[data-ui="c"] .co-set-t small { font-size: var(--fs-6); color: var(--muted); line-height: 1.4; }
html[data-ui="c"] .co-set-t.warn small { color: var(--warn); }
html[data-ui="c"] .co-set-dot { position: absolute; top: 14px; inset-inline-end: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
html[data-ui="c"] .co-set-side .c-card { margin: 0; }
html[data-ui="c"] .co-set-back { margin-bottom: 8px; }
html[data-ui="c"][dir="ltr"] .co-set-back svg { transform: scaleX(-1); } /* U4: «كل الإعدادات» يشير للخلف في الإنجليزية أيضاً */
@media (max-width: 1000px) { html[data-ui="c"] .co-set { grid-template-columns: 1fr; } }
@media (max-width: 760px) { html[data-ui="c"] .co-set-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } html[data-ui="c"] .co-set-t { min-height: 100px; padding: 14px; } }

/* ── الدخول والتحقق بخطوتين ── */
html[data-ui="c"] .login { background: radial-gradient(60% 50% at 60% 30%, var(--brand-tint), transparent 70%), var(--bg); min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
html[data-ui="c"] .login-box { background: var(--surface); border: 0; border-radius: var(--r-card); box-shadow: var(--sh-lg); padding: 36px 36px 28px; width: min(440px, 100%); text-align: center; }
html[data-ui="c"] .login-box .login-wordmark { display: none; }
html[data-ui="c"] .c-login-mark { display: block !important; width: 64px; height: 64px; margin: 0 auto 10px; }
html[data-ui="c"] .c-login-t { display: block !important; font-size: var(--fs-2); font-weight: 600; margin: 0 0 2px; }
html[data-ui="c"] .login-box > p { color: var(--muted); font-size: var(--fs-5); margin: 0 0 20px; }
html[data-ui="c"] .login-box form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; text-align: start; }
html[data-ui="c"] .login-box label { display: block; font-size: var(--fs-6); color: var(--muted); font-weight: 400; margin-bottom: 6px; }
html[data-ui="c"] .login-box form > div:has(> .c-login-ic), html[data-ui="c"] .login-box .pw-wrap { position: relative; }
html[data-ui="c"] .c-login-ic { display: grid !important; place-items: center; position: absolute; inset-inline-start: 16px; bottom: 0; height: 52px; color: var(--muted); pointer-events: none; z-index: 1; }
html[data-ui="c"] .pw-wrap .c-login-ic { top: 0; }
html[data-ui="c"] .c-login-ic svg { width: 18px; height: 18px; }
html[data-ui="c"] .login-box .input { height: var(--btn-h); border-radius: var(--r-pill); padding-inline: 44px 18px; font-size: var(--fs-5); background: var(--sunk); border: 1.5px solid transparent; }
html[data-ui="c"] .login-box .input:focus { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
html[data-ui="c"] .login-box .pw-eye { inset-inline-end: 12px; }
html[data-ui="c"] .login-box .btn-signin { height: var(--btn-h); border-radius: var(--r-pill) !important; background: var(--brand); color: var(--on-brand); font-size: var(--fs-5); font-weight: 600; border: 0; width: 100%; box-shadow: none; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
html[data-ui="c"] .c-login-foot { display: block !important; color: var(--muted); font-size: var(--fs-6); margin: 28px 0 0; }
html[data-ui="c"] .login .code-input.c-otp-src, html[data-ui="c"] .c-otp-src { position: absolute !important; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
html[data-ui="c"] .c-otp { display: flex; gap: 8px; max-width: 100%; justify-content: center; margin: 6px 0; }
html[data-ui="c"] .c-otp-b { width: 46px; min-width: 0; flex: 0 1 46px; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--sunk); text-align: center; font-size: var(--fs-2); font-weight: 600; color: var(--ink); font-family: var(--font-c); padding: 0; }
html[data-ui="c"] .c-otp-b:focus { outline: 0; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-tint); }
html[data-ui="c"] .c-otp-b.on { background: var(--surface); }
html[data-ui="c"] .c-otp-alt { background: none; border: 0; color: var(--brand-ink); font: inherit; font-size: var(--fs-6); cursor: pointer; margin: 0 auto; display: block; }
html[data-ui="c"] .c-steps { display: flex; gap: 8px; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; font-size: var(--fs-6); color: var(--muted); }
html[data-ui="c"] .c-steps li { display: flex; align-items: center; gap: 6px; }
html[data-ui="c"] .c-steps li + li::before { content: ''; width: 14px; height: 1px; background: var(--line); margin-inline-end: 4px; }
html[data-ui="c"] .c-steps i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--sunk); }
html[data-ui="c"] .c-steps li.on { color: var(--ink); font-weight: 600; } html[data-ui="c"] .c-steps li.on i { background: var(--brand); color: var(--on-brand); }
html[data-ui="c"] .c-steps li.done i { background: var(--ok); color: #fff; }
@media (max-width: 760px) { html[data-ui="c"] .login-box { padding: 28px 20px 22px; } html[data-ui="c"] .c-otp { gap: 6px; } html[data-ui="c"] .c-otp-b { width: 44px; height: 54px; } }

/* ── الإشعارات ── */
html[data-ui="c"] .co-nh { margin: -8px 0 12px; }
html[data-ui="c"] .co-nh p { margin: 0; color: var(--muted); font-size: var(--fs-5); }
html[data-ui="c"] .co-notif { display: grid; grid-template-columns: 7fr 4fr; gap: 16px; align-items: start; }
html[data-ui="c"] .co-nlist { padding: 16px 20px; }
html[data-ui="c"] .co-nbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
html[data-ui="c"] .co-nbar .c-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
html[data-ui="c"] .co-ng { font-size: var(--fs-6); color: var(--muted); font-weight: 500; margin: 14px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--line2); }
html[data-ui="c"] .co-n { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 6px; border-bottom: 1px solid var(--line2); cursor: pointer; border-radius: 12px; }
html[data-ui="c"] .co-n:hover { background: var(--sunk); }
html[data-ui="c"] .co-n.unread .co-nt b::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-inline-start: 8px; vertical-align: middle; }
html[data-ui="c"] .co-nic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--sunk); color: var(--muted); }
html[data-ui="c"] .co-nic svg { width: 20px; height: 20px; }
html[data-ui="c"] .co-nic.ok { background: var(--ok-bg); color: var(--ok); } html[data-ui="c"] .co-nic.warn { background: var(--warn-bg); color: var(--warn); } html[data-ui="c"] .co-nic.bad { background: var(--bad-bg); color: var(--bad); }
html[data-ui="c"] .co-nic.info { background: var(--info-bg); color: var(--info); } html[data-ui="c"] .co-nic.pur { background: var(--pur-bg); color: var(--pur); } html[data-ui="c"] .co-nic.br { background: var(--brand-tint); color: var(--brand-ink); }
html[data-ui="c"] .co-nt { flex: 1; min-width: 0; }
html[data-ui="c"] .co-nt b { display: block; font-weight: 500; font-size: var(--fs-5); }
html[data-ui="c"] .co-nt small { display: block; font-size: var(--fs-6); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="c"] .co-nside .c-card { margin: 0; }
html[data-ui="c"] .co-nside .c-li-e { display: flex; gap: 6px; align-items: center; }
@media (max-width: 1000px) { html[data-ui="c"] .co-notif { grid-template-columns: 1fr; } }
@media (max-width: 760px) { html[data-ui="c"] .co-nlist { padding: 14px; } html[data-ui="c"] .co-n > .c-btn { display: none; } }
/* QA (2FA): زر نسخ المفتاح، ورابط الخروج، والمراحل في سطر واحد على الهاتف */
.tf-copy { display: block; margin: 6px auto 4px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--brand-tint, #fdf6ea); color: var(--brand-ink, #8a560c); font: 600 13px var(--font-c, inherit); cursor: pointer; }
.tf-out { display: block; margin: 14px auto 0; min-height: 44px; padding: 0 18px; border: 0; background: none; color: var(--muted, #6b6f80); font: 500 14px var(--font-c, inherit); cursor: pointer; }
@media (max-width: 480px) { html[data-ui="c"] .login-box .c-steps { flex-wrap: nowrap; gap: 4px; } html[data-ui="c"] .login-box .c-steps li:not(.on) span { display: none; } }
/* QA (الدخول): أزرار اللغة والوضع الداكن صغيرة (36×30) — 44 على الأقل */
html[data-ui="c"] .login-lang button { min-width: 44px; min-height: 40px; }
html[data-ui="c"] .login-theme { width: 44px; height: 44px; }
/* شاشة قصيرة (آيفون SE داخل سفاري ≈ 550px): البطاقة في الوسط كانت تصعد تحت زرّي اللغة والوضع الداكن الثابتين في الأعلى فيتداخلان —
   على الهاتف نحجز لهما مكاناً فوق البطاقة ويتحركان مع الصفحة */
@media (max-width: 760px) { html[data-ui="c"] .login { padding-top: calc(env(safe-area-inset-top) + 76px); } html[data-ui="c"] .login-theme, html[data-ui="c"] .login-lang { position: absolute; } }

/* U2 (تصميم 2) — الهاتف: وجوه أصغر 4 في الصف، أعمدة أقصر */
@media (max-width: 760px) {
  html[data-ui="c"] .co-home .co-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 6px; }
  html[data-ui="c"] .co-home .co-face .avatar { width: 42px; height: 42px; font-size: 14px; margin-bottom: 4px; }
  html[data-ui="c"] .co-home .co-face small { font-size: 11px; }
  html[data-ui="c"] .co-home .co-bars { height: 110px; }
  /* الهاتف: «لوحة الحضور» تكرّر وجوه «الفريق اليوم» نفسها (8 صفوف) — تكفي الوجوه ورابطها للوحة الكاملة */
  html[data-ui="c"] .co-home .co-board { display: none; }
}

/* تصميم 2 — ملف الموظف: «تعطيل الحساب» زر ثانوي أحمر الحدود (لا يزاحم «تعديل» كأنه الإجراء الأساسي)، وعلى الهاتف الأزرار شبكة 2×2 و«رسالة» في زاوية البطاقة */
html[data-ui="c"] .co-prof .co-prof-h .actions .btn-danger { background: var(--surface); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
html[data-ui="c"] .co-prof .co-prof-h .actions .btn-danger:hover { background: var(--bad-bg); }
@media (max-width: 760px) {
  html[data-ui="c"] .co-prof-st { position: absolute; top: 16px; inset-inline-end: 16px; margin: 0; z-index: 1; }
  html[data-ui="c"] .co-prof .co-prof-h .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  html[data-ui="c"] .co-prof .co-prof-h .actions > .btn { width: 100%; min-width: 0; justify-content: center; margin: 0; padding-inline: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* تصميم 2 — الإشعارات: «إعدادات سريعة» القصيرة تبقى ظاهرة بجانب القائمة الطويلة بدل فراغ تحتها */
@media (min-width: 1001px) { html[data-ui="c"] .co-nside { position: sticky; top: var(--c-stick-top, 16px); } }
html[data-ui="c"] .co-atsp { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; font-weight: 500; }
html[data-ui="c"] .co-atsp i { font-style: normal; color: var(--muted); }
html[data-ui="c"][dir="ltr"] .co-atnav .c-ibtn svg { transform: scaleX(-1); }
html[data-ui="c"][dir="ltr"] .co-atnav .co-flip svg { transform: none; }
/* «بانتظار قرارك»: ملخص حسب النوع تحت الكومة؛ الهاتف يُخفي خلية المبلغ الفارغة ويعرض «منذ» مكانها */
html[data-ui="c"] .co-decsum { margin-top: 16px; padding: 16px; }
html[data-ui="c"] .co-decsum .c-card-h { margin-bottom: 6px; }
html[data-ui="c"] .co-decsum-l { display: flex; flex-direction: column; }
html[data-ui="c"] .co-decsum-r, html[data-ui="c"] .co-decsum-t { display: grid; grid-template-columns: 1fr 36px minmax(90px, auto); gap: 10px; align-items: center; min-height: 44px; padding: 4px 8px; font-size: var(--fs-6); }
html[data-ui="c"] .co-decsum-r { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr 36px minmax(90px, auto); gap: 10px; align-items: center; min-height: 44px; padding: 4px 8px; border-radius: 12px; cursor: pointer; font-size: var(--fs-6); }
html[data-ui="c"] .co-decsum-r:hover { background: var(--sunk); }
html[data-ui="c"] .co-decsum-r.on { background: var(--brand-tint); }
html[data-ui="c"] .co-decsum-r:focus-visible { outline: 2px solid var(--brand); }
html[data-ui="c"] :is(.co-decsum-r, .co-decsum-t) > :nth-child(2) { text-align: center; }
html[data-ui="c"] :is(.co-decsum-r, .co-decsum-t) > :nth-child(3) { text-align: end; color: var(--ink2); }
html[data-ui="c"] .co-decsum-t { border-top: 1px solid var(--line2); margin-top: 6px; padding-top: 10px; font-weight: 600; }
html[data-ui="c"] .co-decsum .co-mut { margin: 6px 8px 0; font-size: 12px; }
html[data-ui="c"] .co-amt0 { font-style: normal; color: var(--muted); }
@media (max-width: 1100px) { html[data-ui="c"] .co-decsum { display: none; } }
@media (max-width: 760px) {
  html[data-ui="c"] .co-tr:has(.co-amt0) > :nth-child(4) { display: none; }
  html[data-ui="c"] .co-tr:has(.co-amt0) > :nth-child(5) { display: block; grid-area: amt; text-align: end; }
}
html[data-ui="c"] .co-decsum-r > .c-tag { justify-self: start; }
/* ── العمل عن بعد: جدول واحد (موظف × 4 مفاتيح) وشرح المفاتيح مرة واحدة ── */
html[data-ui="c"] .rw-mxc { margin-top: 4px; }
html[data-ui="c"] .rw-mxc > .c-card-h { padding: 18px 20px 4px; margin: 0; display: flex; align-items: center; gap: 8px; }
html[data-ui="c"] .rw-leg { display: none; margin: 0; padding: 6px 16px 10px; font-size: 12px; color: var(--muted); }
html[data-ui="c"] .rw-leg > div { display: flex; gap: 6px; padding: 2px 0; }
html[data-ui="c"] .rw-leg dt { font-weight: 600; color: var(--ink2); flex: none; min-width: 48px; }
html[data-ui="c"] .rw-leg dd { margin: 0; }
html[data-ui="c"] .rw-leg dd b { font-weight: 500; color: var(--ink2); }
html[data-ui="c"] .rw-mx { display: grid; }
html[data-ui="c"] .rw-mr { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(110px, 1fr)); gap: 12px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line2); }
html[data-ui="c"] .rw-mr.live { box-shadow: inset 3px 0 0 var(--ok); }
html[data-ui="c"][dir="rtl"] .rw-mr.live { box-shadow: inset -3px 0 0 var(--ok); }
html[data-ui="c"] .rw-mh { border-top: 0; align-items: end; padding-block: 8px 10px; color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .rw-mh > span:not(:first-child) { text-align: center; }
html[data-ui="c"] .rw-mh b { display: block; font-weight: 600; color: var(--ink2); }
html[data-ui="c"] .rw-mh small { display: block; font-size: 11.5px; line-height: 1.4; }
html[data-ui="c"] .rw-mh em { display: none; font-style: normal; }
html[data-ui="c"] .rw-who { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-width: 0; }
html[data-ui="c"] .rw-c { display: flex; justify-content: center; align-items: center; min-height: 44px; }
html[data-ui="c"] .rw-c input.sw { width: 44px; height: 26px; }
html[data-ui="c"] .rw-c input.sw::after { width: 20px; height: 20px; }
html[data-ui="c"] .rw-c input.sw:checked::after { inset-inline-start: 21px; }
@media (max-width: 1100px) { html[data-ui="c"] .rw-mr { grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(70px, 1fr)); } html[data-ui="c"] .rw-mh small { display: none; } }
@media (max-width: 760px) {
  html[data-ui="c"] .rw-leg { display: block; }
  html[data-ui="c"] .rw-mr { grid-template-columns: minmax(0, 1fr) repeat(4, 46px); gap: 4px; padding: 8px 12px; }
  html[data-ui="c"] .rw-mh b { display: none; }
  html[data-ui="c"] .rw-mh em { display: block; font-size: 11px; }
  html[data-ui="c"] .rw-who { flex-direction: column; align-items: flex-start; gap: 4px; }
  html[data-ui="c"] .rw-who .rw-g { font-size: 11px; }
  html[data-ui="c"] .rw-c input.sw { width: 40px; height: 24px; }
  html[data-ui="c"] .rw-c input.sw::after { width: 18px; height: 18px; }
  html[data-ui="c"] .rw-c input.sw:checked::after { inset-inline-start: 19px; }
}
/* ── شاشة المكتب: تبويبات بدل صفحة واحدة طويلة ── */
html[data-ui="c"] .tvc-tabs { margin: 0 0 16px; }
html[data-ui="c"] .tvc-pane[hidden] { display: none !important; }
html[data-ui="c"] .tvc-pane > .tvc-quick { margin-top: 16px; }
html[data-ui="c"] .tvc-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
html[data-ui="c"] .tvc-two .tvc-col { gap: 16px; }
@media (max-width: 1000px) { html[data-ui="c"] .tvc-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { html[data-ui="c"] .tvc-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } html[data-ui="c"] .tvc-tabs button { white-space: nowrap; } }
html[data-ui="c"] .tvc-tabs button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
html[data-ui="c"] .tvc-tabs button svg { width: 18px; height: 18px; flex: none; }
/* ── تدقيق التخزين على الهاتف: صف مدمج (الفئة · العدد · الحجم) والملاحظة شارة صغيرة تحت الاسم؛ الأرقام 2×2 ── */
@media (max-width: 760px) {
  html[data-ui="c"] .co-sak { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  html[data-ui="c"] .co-sak .c-kp { padding: 12px 14px; }
  html[data-ui="c"] .co-sak .c-kp b { font-size: 22px; }
  html[data-ui="c"] .co-sar { grid-template-columns: minmax(0, 1fr) 40px 74px; gap: 2px 10px; padding: 10px 16px; min-height: 52px; }
  html[data-ui="c"] .co-sar > :nth-child(1) { grid-row: 1; }
  html[data-ui="c"] .co-sar > :nth-child(2), html[data-ui="c"] .co-sar > :nth-child(3) { grid-row: 1 / span 2; text-align: end; font-size: var(--fs-6); }
  html[data-ui="c"] .co-sar > :nth-child(4) { grid-column: 1; grid-row: 2; padding-inline-start: 28px; }
  html[data-ui="c"] .co-sar > :nth-child(4):not(:has(.c-tag)) { display: none; }
  html[data-ui="c"] .co-sar > :nth-child(4) .c-tag { font-size: 11px; padding-block: 1px; }
  html[data-ui="c"] .co-sac b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-6); }
  html[data-ui="c"] .co-sa0 { min-height: 44px; padding-block: 6px; }
}
@media (max-width: 760px) { html[data-ui="c"] .co-sar > :nth-child(4) .co-mut2 { display: none; } }
html[data-ui="c"] .co-cols > .co-col:empty { display: none !important; }
@media (max-width: 760px) { html[data-ui="c"][dir="ltr"] .rw-mh em { font-size: 10px; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; } html[data-ui="c"] .rw-mh > span { min-width: 0; } }

/* ═════════ «يحتاجني» (needs-me.js) + رئيسية المالك على الهاتف (القرار 11) ═════════ */
html[data-ui="c"] .nm-page { max-width: 760px; }
html[data-ui="c"] .nm-sub { margin: -4px 0 12px; color: var(--muted); font-size: var(--fs-5); }
html[data-ui="c"] .nm-chipsbar { position: sticky; top: var(--nm-stick, 0px); z-index: 5; background: var(--bg); margin: 0 -16px 8px; padding: 4px 16px 10px; }
html[data-ui="c"] .nm-groups { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
html[data-ui="c"] .nm-groups .c-chip { flex: none; min-height: 44px; gap: 6px; }
html[data-ui="c"] .nm-groups .c-chip svg { width: 16px; height: 16px; }
html[data-ui="c"] .nm-sec { margin: 0 0 18px; }
html[data-ui="c"] .nm-h { display: flex; align-items: baseline; gap: 8px; margin: 6px 2px 10px; font-size: var(--fs-4); font-weight: 700; }
html[data-ui="c"] .nm-h small { color: var(--muted); font-size: var(--fs-5); font-weight: 500; }
html[data-ui="c"] .nm-h a, html[data-ui="c"] .nm-h .nm-bulk { margin-inline-start: auto; min-width: 44px; text-align: end; color: var(--brand-ink); font-size: var(--fs-5); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; font-family: inherit; }
html[data-ui="c"] .nm-card { background: var(--surface); border-radius: var(--r-card, 24px); box-shadow: var(--sh); padding: 16px; margin: 0 0 12px; display: grid; gap: 10px; transition: opacity .2s, transform .2s; }
html[data-ui="c"] .nm-card.gone, html[data-ui="c"] .nm-rw.gone { opacity: 0; transform: scale(.97); }
html[data-ui="c"] .nm-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
html[data-ui="c"] .nm-top > .avatar, html[data-ui="c"] .nm-av { width: 44px; height: 44px; flex: none; }
html[data-ui="c"] .nm-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--sunk); color: var(--ink); }
html[data-ui="c"] .nm-ic svg { width: 22px; height: 22px; }
html[data-ui="c"] .nm-ic.t-ok { background: var(--ok-bg); color: var(--ok); } html[data-ui="c"] .nm-ic.t-info { background: var(--info-bg); color: var(--info); }
html[data-ui="c"] .nm-ic.t-warn { background: var(--warn-bg); color: var(--warn); } html[data-ui="c"] .nm-ic.t-bad { background: var(--bad-bg); color: var(--bad); }
html[data-ui="c"] .nm-ic.t-pur { background: var(--pur-bg); color: var(--pur); } html[data-ui="c"] .nm-ic.t-br { background: var(--brand-tint); color: var(--brand-ink); }
html[data-ui="c"] .nm-tt { flex: 1; min-width: 0; display: grid; gap: 2px; }
html[data-ui="c"] .nm-title { font-size: var(--fs-4); font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html[data-ui="c"] .nm-tt small { color: var(--muted); font-size: var(--fs-6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .nm-amt { flex: none; display: inline-flex; align-items: baseline; gap: 3px; } html[data-ui="c"] .nm-amt b { font-size: var(--fs-3); font-weight: 700; } html[data-ui="c"] .nm-amt small { color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .nm-note { margin: 0; color: var(--ink-2, var(--ink)); font-size: var(--fs-5); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html[data-ui="c"] .nm-flag { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: var(--fs-6); font-weight: 600; color: var(--bad); }
html[data-ui="c"] .nm-flag.warn { color: var(--warn); } html[data-ui="c"] .nm-flag svg { width: 16px; height: 16px; }
html[data-ui="c"] .nm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html[data-ui="c"] .nm-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--sunk); font-size: var(--fs-6); color: var(--ink); max-width: 100%; }
html[data-ui="c"] .nm-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } html[data-ui="c"] .nm-chip svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
html[data-ui="c"] .nm-act { display: flex; gap: 8px; align-items: center; }
html[data-ui="c"] .nm-act .c-btn { min-height: 48px; }
html[data-ui="c"] .nm-act .nm-yes { flex: 1 1 50%; order: -1; } html[data-ui="c"] .nm-act .nm-no { flex: 1 1 30%; }
html[data-ui="c"] .nm-act .nm-more { flex: none; width: 48px; padding: 0; justify-content: center; }
html[data-ui="c"] .nm-act .nm-no svg { color: var(--bad); }
/* الصفوف المضغوطة + السحب للموافقة */
html[data-ui="c"] .nm-list { overflow: hidden; }
html[data-ui="c"] .nm-rw { position: relative; overflow: hidden; transition: opacity .2s; }
html[data-ui="c"] .nm-rw + .nm-rw { border-top: 1px solid var(--line); }
html[data-ui="c"] .nm-sw { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding-inline: 22px; background: var(--ok); color: #fff; font-weight: 700; opacity: 0; }
html[data-ui="c"] .nm-rw.drag .nm-sw { opacity: .75; } html[data-ui="c"] .nm-rw.arm .nm-sw { opacity: 1; }
html[data-ui="c"] .nm-sw svg { width: 20px; height: 20px; }
html[data-ui="c"] .nm-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; background: var(--surface); color: inherit; text-decoration: none !important; touch-action: pan-y; transition: transform .2s var(--ease); }
html[data-ui="c"] .nm-rw.drag .nm-row { transition: none; }
html[data-ui="c"] .nm-ra { flex: none; display: inline-flex; gap: 8px; align-items: center; }
html[data-ui="c"] .nm-rb { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; }
html[data-ui="c"] .nm-rb svg { width: 20px; height: 20px; }
html[data-ui="c"] .nm-rb.yes { background: var(--ok-bg); color: var(--ok); } html[data-ui="c"] .nm-rb.no { background: var(--bad-bg); color: var(--bad); }
html[data-ui="c"] .nm-go { width: 18px; height: 18px; color: var(--muted); }
html[data-ui="c"][dir="rtl"] .nm-go, html[data-ui="c"][dir="rtl"] .cop-go { transform: scaleX(-1); }
html[data-ui="c"] .nm-hint { display: flex; gap: 6px; align-items: center; margin: 10px 4px 0; color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .nm-hint svg { width: 15px; height: 15px; flex: none; }
/* التراجع */
html[data-ui="c"] .nm-undo { position: fixed; z-index: 470; inset-inline: 12px; bottom: calc(var(--tabbar-h, 88px) + 12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--sh-lg); overflow: hidden; animation: nm-up .2s var(--ease); max-width: 520px; margin-inline: auto; }
html[data-ui="c"][dir="rtl"] .nm-undo { padding: 10px 16px 10px 10px; }
html[data-ui="c"] .nm-undo svg { width: 20px; height: 20px; color: var(--ok-bg); flex: none; }
html[data-ui="c"] .nm-undo-t { flex: 1; font-size: var(--fs-5); font-weight: 600; }
html[data-ui="c"] .nm-undo-b { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 0; background: rgba(255, 255, 255, .14); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
html[data-ui="c"] .nm-undo-p { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; width: 100%; background: var(--brand-300, #d6a24a); transform-origin: left; animation: nm-bar 5s linear forwards; }
html[data-ui="c"][dir="rtl"] .nm-undo-p { transform-origin: right; }
@keyframes nm-up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nm-bar { to { transform: scaleX(0); } }
@media (min-width: 761px) { html[data-ui="c"] .nm-undo { bottom: 24px; } }
/* بطاقة الرئيسية: سكة أفقية — قرار واحد ظاهر والسحب للتالي */
html[data-ui="c"] .nm-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 10px; overscroll-behavior-x: contain; }
html[data-ui="c"] .nm-rail::-webkit-scrollbar { display: none; }
html[data-ui="c"] .nm-rail > .nm-card { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
html[data-ui="c"] .nm-card.home .nm-title { font-size: var(--fs-3); }
html[data-ui="c"] .nm-all, html[data-ui="c"] .nm-done { display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; color: inherit; text-decoration: none !important; min-height: 180px; }
html[data-ui="c"] .nm-all svg, html[data-ui="c"] .nm-done svg { width: 32px; height: 32px; color: var(--brand-ink); }
html[data-ui="c"] .nm-done svg { color: var(--ok); } html[data-ui="c"] .nm-all span, html[data-ui="c"] .nm-done span { color: var(--muted); font-size: var(--fs-5); }
html[data-ui="c"] .nm-pos { margin: 0 0 14px; text-align: center; color: var(--muted); font-size: var(--fs-6); display: flex; justify-content: center; align-items: center; gap: 4px; }
html[data-ui="c"] .nm-pos svg { width: 14px; height: 14px; }
/* رئيسية المالك على الهاتف */
html[data-ui="c"] .cop-date { margin: -6px 0 12px; color: var(--muted); font-size: var(--fs-5); }
html[data-ui="c"] .cop-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
html[data-ui="c"] .cop-money > a { background: var(--surface); border-radius: 20px; box-shadow: var(--sh); padding: 12px; min-width: 0; color: inherit; text-decoration: none !important; display: grid; gap: 2px; align-content: start; }
html[data-ui="c"] .cop-money small { color: var(--muted); font-size: var(--fs-6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .cop-money b { font-size: var(--fs-3); font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .cop-money em { font-style: normal; color: var(--muted); font-size: var(--fs-6); }
html[data-ui="c"] .cop-money .bad-t { color: var(--bad); }
html[data-ui="c"] .cop-prog { display: block; height: 4px; border-radius: 2px; background: var(--sunk); overflow: hidden; margin-top: 4px; } html[data-ui="c"] .cop-prog > i { display: block; height: 100%; background: var(--brand); border-radius: 2px; }
html[data-ui="c"] .cop-sec { margin: 0 0 14px; }
html[data-ui="c"] .cop-list { overflow: hidden; margin: 0 0 14px; }
html[data-ui="c"] .cop-w, html[data-ui="c"] .cop-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; color: inherit; text-decoration: none !important; cursor: pointer; }
html[data-ui="c"] .cop-w + .cop-w, html[data-ui="c"] .cop-row + .cop-row { border-top: 1px solid var(--line); }
html[data-ui="c"] .cop-w input { position: absolute; opacity: 0; pointer-events: none; }
html[data-ui="c"] .cop-ck { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--brand); display: grid; place-items: center; color: transparent; }
html[data-ui="c"] .cop-ck svg { width: 16px; height: 16px; } html[data-ui="c"] .cop-ck.tk { border: 0; background: var(--brand-tint); color: var(--brand-ink); border-radius: 10px; }
html[data-ui="c"] .cop-w.done .cop-ck { background: var(--ok); border-color: var(--ok); color: #fff; } html[data-ui="c"] .cop-w.done b { text-decoration: line-through; color: var(--muted); }
html[data-ui="c"] .cop-wt { flex: 1; min-width: 0; display: grid; gap: 2px; }
html[data-ui="c"] .cop-wt b { font-size: var(--fs-5); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .cop-wt small { color: var(--muted); font-size: var(--fs-6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-ui="c"] .cop-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); }
html[data-ui="c"] .cop-ic svg { width: 20px; height: 20px; }
html[data-ui="c"] .cop-go { width: 18px; height: 18px; flex: none; color: var(--muted); }
html[data-ui="c"] .cop-pill { flex: none; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--fs-6); font-weight: 700; }
html[data-ui="c"] .cop-pill.bad { background: var(--bad-bg); color: var(--bad); }
html[data-ui="c"] .cop-empty { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-5); }
html[data-ui="c"] .cop-empty svg { width: 20px; height: 20px; color: var(--ok); } html[data-ui="c"] .cop-empty .c-btn { margin-inline-start: auto; }
html[data-ui="c"] .cop-setup { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; background: var(--warn-bg); color: var(--warn); text-decoration: none !important; }
html[data-ui="c"] .cop-setup > svg:first-child { width: 20px; height: 20px; flex: none; }
html[data-ui="c"] .cop-setup span { flex: 1; min-width: 0; display: grid; } html[data-ui="c"] .cop-setup b { font-size: var(--fs-5); }
html[data-ui="c"] .cop-setup small { color: var(--ink); font-size: var(--fs-6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { html[data-ui="c"] .cop-money b { font-size: var(--fs-4); } html[data-ui="c"] .cop-money > a { padding: 10px; } }
/* الهاتف: مقطّع «الرئيسية | بانتظار قرارك» يكرّر عنوان «بانتظار قرارك» على الرئيسية و«يحتاجني» — يُخفى (الرئيسية في الشريط السفلي) */
@media (max-width: 760px) {
  html[data-ui="c"]:has(.cop) .hub-slot, html[data-ui="c"]:has(.nm-page) .hub-slot { display: none !important; }
  html[data-ui="c"]:has(.cop), html[data-ui="c"]:has(.nm-page) { --c-hub-h: 0px; }
}
/* أزرار القرار لا تدفع البطاقة خارج الشاشة (الإنجليزية: «Confirm receipt») */
html[data-ui="c"] .nm-card { min-width: 0; overflow: hidden; }
html[data-ui="c"] .nm-act .c-btn { min-width: 0; }
html[data-ui="c"] .nm-act .c-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-ui="c"] .nm-top > .c-tag { flex: none; }
html[data-ui="c"] .nm-card > * { min-width: 0; }
html[data-ui="c"] .nm-act .nm-yes { flex: 1 1 0; } html[data-ui="c"] .nm-act .nm-no { flex: 0 0 auto; padding-inline: 14px; gap: 6px; }
html[data-ui="c"] .nm-act .nm-yes { flex: 1 0 auto; } html[data-ui="c"] .nm-act .nm-no { flex: 1 1 auto; min-width: 0; }
html[data-ui="c"] .nm-chipsbar { top: var(--c-top-h, 0px); }
/* لوحة الحضور في الرئيسية: أول 6 أشخاص ثم «عرض الكل» (طول الصفحة — 2026-11-23) */
html[data-ui="c"] .co-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--sunk); color: var(--brand-ink); font: 600 var(--fs-6) var(--font-c); cursor: pointer; }
html[data-ui="c"] .co-more svg { width: 16px; height: 16px; }
html[data-ui="c"] .co-more[hidden] { display: none; }

/* لوحة اليوم (27/11): الجدول كان يخرج من الصفحة حين يضيق المحتوى (القائمة الكلاسيكية أو نافذة ~1000) —
   الأعمدة الثانوية تختفي بحسب عرض البطاقة نفسها لا عرض النافذة، بلا تمرير أفقي للصفحة. */
@media (min-width: 761px) {
  html[data-ui="c"] [data-atrows] { container: atrows / inline-size; }
  html[data-ui="c"] .co-att .atd-ex { max-width: 190px; }
  @container atrows (max-width: 980px) { html[data-ui="c"] .co-att :is(th, td):nth-child(6) { display: none; } }
  @container atrows (max-width: 860px) { html[data-ui="c"] .co-att :is(th, td):nth-child(4) { display: none; } html[data-ui="c"] .co-att :is(th, td) { padding-inline: 8px; } }
  @container atrows (max-width: 700px) { html[data-ui="c"] .co-att .co-at-d { display: none; } html[data-ui="c"] .co-att .atd-ex { max-width: 150px; } html[data-ui="c"] .co-att :is(th, td):first-child { padding-inline-start: 14px; } html[data-ui="c"] .co-att :is(th, td):last-child { padding-inline-end: 10px; } }
  @container atrows (max-width: 600px) { html[data-ui="c"] [data-atrows] > table.co-att { display: block; overflow-x: auto; } }
}

/* ملف الموظف (E2): أربعة أرقام في سطر، والتبويب يعرض قسمه بعرض كامل */
html[data-ui="c"] .co-tiles.co-tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-ui="c"] .co-tile.co-warn b { color: var(--warn); }
html[data-ui="c"] .co-tile.co-bad b { color: var(--bad); }
html[data-ui="c"] .co-prof-grid:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { html[data-ui="c"] .co-tiles.co-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* الرئيسية: سطر حالات الفريق اليوم (بدل لوحة الحضور الكاملة ورسم 14 يوماً — المكان الكامل «الحضور») */
html[data-ui="c"] .co-teamline { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
html[data-ui="c"] .co-tl { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: var(--fs-6); text-decoration: none; background: var(--sunk); color: var(--ink2); }
html[data-ui="c"] .co-tl b { font-weight: 600; }
html[data-ui="c"] .co-tl.ok { background: var(--ok-bg); color: var(--ok); }
html[data-ui="c"] .co-tl.warn { background: var(--warn-bg); color: var(--warn); }
html[data-ui="c"] .co-tl.bad { background: var(--bad-bg); color: var(--bad); }

/* ملف الموظف (28/11 — X7): الإجراءات في سطر واحد بمحاذاة الرأس (رسالة · تعديل · ⋯)، والبطاقات الثانوية ثلاثة أعمدة متساوية */
@media (min-width: 761px) {
  html[data-ui="c"] .co-prof .co-prof-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  html[data-ui="c"] .co-prof .co-prof-h .actions { margin-top: 28px; flex-wrap: nowrap; }
  html[data-ui="c"] .co-prof-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── تحسين التصميم (المالك 28/11): أسباب مشتركة تظهر في كل الواجهات ── */
/* أرقام البطاقات: خط الواجهة بأرقام متساوية العرض — كان خط البرمجة بتباعد سالب يفرّق «د.أ» و«س» العربية */
html[data-ui="c"] :is(.stat .value, .strip .value, .balance-num, .qp-items li > span, .qp-tot b) { font-family: var(--font-c); font-variant-numeric: tabular-nums; letter-spacing: 0; }
html[data-ui="c"] .stat .value small { font-family: var(--font-c); }
/* القيم اللاتينية (بريد، هاتف، IBAN) في قوائم البيانات: تُقرأ من اليسار لكن تبقى في عمودها بمحاذاة باقي القيم */
html[data-ui="c"][dir="rtl"] .kv dd.mono, html[data-ui="c"] [dir="rtl"] .kv dd.mono { text-align: right; }
html[data-ui="c"] .kv dd.mono { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }

/* ملف الموظف: صفّا الأرقام بنفس الشكل والمقاسات — 4 أعمدة، والراتب يأخذ عمودين */
html[data-ui="c"] .co-prof-stats .card.stat { padding: 10px 14px; min-width: 0; }
html[data-ui="c"] .co-prof-stats .card.stat .label { font-size: var(--fs-6); color: var(--muted); }
html[data-ui="c"] .co-prof-stats .card.stat .value { font-size: var(--fs-4) !important; font-weight: 600; margin-top: 2px; line-height: 1.4; }
html[data-ui="c"] .co-prof-stats .card.stat .value small { font-size: var(--fs-6); }
html[data-ui="c"] .co-prof-stats .card.stat .hint { font-size: var(--fs-6); color: var(--muted); margin-top: 2px; line-height: 1.6; }
@media (min-width: 901px) {
  html[data-ui="c"] .co-prof-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  html[data-ui="c"] .co-prof-stats > .card.stat.tone-brand { grid-column: span 2; }
}
/* «البيانات الوظيفية»: سطور مرتبة بفواصل — العنوان بعرض ثابت والقيمة بجانبه مباشرة (كانت القيم متباعدة في منتصف البطاقة) */
html[data-ui="c"] .co-prof-grid .kv { grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 0 24px; }
html[data-ui="c"] .co-prof-grid .kv > dt, html[data-ui="c"] .co-prof-grid .kv > dd { padding: 10px 0; border-bottom: 1px solid var(--line2); }
html[data-ui="c"] .co-prof-grid .kv > dt:last-of-type, html[data-ui="c"] .co-prof-grid .kv > dd:last-of-type { border-bottom: 0; }

/* تعديل الموظف — جدول الدوام: اليوم · الساعات · النوع بأعمدة ثابتة، وملخص الأيام في صندوق واضح */
html[data-ui="c"] .wp-days { gap: 8px; }
html[data-ui="c"] .wp-day { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-color: var(--line); border-radius: var(--r-tile); }
html[data-ui="c"] .wp-day .wp-dh { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
html[data-ui="c"] .wp-day .wp-dh[hidden] { display: none; }
html[data-ui="c"] .wp-day .seg { grid-column: 3; justify-self: end; background: var(--sunk); padding: 3px; border-radius: var(--r-pill); }
html[data-ui="c"] .wp-day .seg span { border-radius: var(--r-pill); }
html[data-ui="c"] .wp-sum { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; background: var(--sunk); border-radius: var(--r-tile); }
html[data-ui="c"] .wp-sum:empty { display: none; }
html[data-ui="c"] .wp-sum .ja-row > span { color: var(--muted); min-width: 120px; }
@media (max-width: 760px) {
  html[data-ui="c"] .wp-day { grid-template-columns: minmax(0, 1fr) auto; }
  html[data-ui="c"] .wp-day .wp-dh { grid-column: 1 / -1; grid-row: 2; }
  html[data-ui="c"] .wp-day .seg { grid-column: 2; grid-row: 1; }
}
html[data-ui="c"] .wp-day .wp-dh > .picker { flex: 0 1 150px; min-width: 0; }
html[data-ui="c"] .wp-day .wp-dh .input { width: 100%; }
@media (max-width: 760px) { html[data-ui="c"] .wp-day .wp-dh > .picker { flex: 1 1 0; } }
/* الهاتف: «رسالة» و«تعديل» جنباً إلى جنب و«⋯» بجانبهما في سطر واحد */
@media (max-width: 760px) {
  html[data-ui="c"] .co-prof .co-prof-h .actions { width: 100%; }
  html[data-ui="c"] .co-prof .co-prof-h .actions > :is([data-dm], [data-edit]) { flex: 1 1 0; min-width: 0; width: auto; margin: 0; justify-content: center; }
}
/* الهاتف: العنوان فوق القيمة في كل بطاقات الملف (كانت القيمة تقفز فوق العنوان في الصف الثاني فقط) */
html[data-ui="c"] .co-prof-stats .card.stat .value { order: 0; }
@media (max-width: 900px) {
  html[data-ui="c"] .co-prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-flow: dense; }
  html[data-ui="c"] .co-prof-stats > .card.stat.tone-brand { grid-column: 1 / -1; }
}
