/* Uranus One — round-2 fixes (one-crm-admission, 2026-11-12). Loaded last on index.html, program-accounts.html and
   hr-accounts.html. */

/* R2-ONE-005 (display rule 1): counts, key caps and initials never under 11.5px (One does not load uranus-glass.css). */
html body :is(.u-badge, .u-kbd, .one-kbd-key) { font-size: 11.5px; }

/* R2-ONE-003: the count inside a filter chip keeps the chip's own text colour (it was faded to 75%: 3.87:1 in light). */
.onef-n { opacity: 1; }

/* R2-ONE-004 (rule 9): a long one-word name or e-mail wraps inside its cell instead of widening the table. */
#accountList :is(td, .u-cell-person, .u-cell-person *), .onef-act-title, .onef-act-detail, .one-req-item__reason { min-width: 0; overflow-wrap: anywhere; }

/* ONE-008 (regressed): the brand preview text keeps AA on any primary colour the admin picks (a light primary made
   the dark art pale); a dark backing behind the name and company line. */
.one-brand-preview__art:not(.is-light) :is(b, span) { background: rgb(27 13 38 / .72); border-radius: 8px; padding-inline: 8px; }
.one-brand-preview__art:not(.is-light) span { color: #E2D8EC; }

/* ONE-008 (regressed): a disabled primary button («إرسال الطلب» with nothing left to request) is drawn flat with
   readable text instead of a 60% faded fill (3.71:1). */
#app .u-btn--primary:disabled { opacity: 1; background: var(--u-surface-3); color: var(--u-muted); border-color: var(--u-line-2, transparent); box-shadow: none; }

/* ONE-008 (regressed), stand-alone account pages: muted text (intro, hints, e-mail column) at AA in dark
   (#A797BA was 4.12–4.37:1), and disabled «إدارة» buttons flat and readable instead of 60% faded. */
html[data-glass-selects]:not([data-theme="light"]) { --u-muted: #B9ADC9; }
html[data-glass-selects] button.secondary:disabled { opacity: 1; background: transparent; color: var(--u-muted); border-style: dashed; }

/* 2026-11-24 branch chips on the accounts list */
.one-branch-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.one-branch-chip{font-size:11px;line-height:18px;padding:0 8px;border-radius:9px;background:#F3F0F9;color:#4B2E83;white-space:nowrap}
html[data-theme=dark] .one-branch-chip{background:#2b2540;color:#d9ccf5}
