@import "./rwaqDashboardPalette.css";
/* Decision home — summaries on the page, details in one side panel. Fixed layout; heights follow content. */
.rwaq-decision,.rd-drawer{--rd-gold:#B78B1E;--rd-gold-ink:#8A6512;--rd-ink:var(--rw-brown);--rd-ivory:#FFF7EE;--rd-text:var(--rw-brown);--rd-hover:hsl(var(--surface-hover));--rd-card:hsl(var(--card,0 0% 100%));--rd-muted:hsl(var(--muted-foreground,210 5% 42%));--rd-soft:hsl(var(--muted,36 13% 96%));--rd-line:hsl(var(--border,30 10% 88%));
  --rd-active:var(--rw-active);--rd-done:var(--rw-done);--rd-waiting:var(--rw-neutral);--rd-stopped:var(--rw-stopped);--rd-late:var(--rw-late)}
.rwaq-decision{width:100%;margin:0;padding:0;color:var(--rd-text);font-size:15px;line-height:1.5;box-sizing:border-box;container-type:inline-size;container-name:rd}
.rwaq-decision *,.rd-drawer *{box-sizing:border-box}
:where(.rwaq-decision,.rd-drawer) :where(h1,h2,h3,p,ul){margin:0}
:where(.rwaq-decision,.rd-drawer) :where(ul){padding:0;list-style:none}
:where(.rwaq-decision,.rd-drawer) :where(a){color:inherit;text-decoration:none}
:where(.rwaq-decision,.rd-drawer) :where(button){font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:start}
:is(.rwaq-decision,.rd-drawer) :is(a,button):focus-visible{outline:2px solid var(--rd-gold);outline-offset:2px;border-radius:8px}
:is(.rwaq-decision,.rd-drawer)[dir="ltr"] .rd-dir{transform:scaleX(-1)}

/* 1. Header */
.rd-header{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:12px}
.rwaq-decision h1{font-size:22px;font-weight:700;line-height:1.3}
.rd-role{font-size:13px;font-weight:600;color:var(--rd-muted);border:1px solid var(--rd-line);border-radius:999px;padding:1px 10px;background:var(--rd-card)}
.rd-meta{margin-inline-start:auto;font-size:13px;color:var(--rd-muted)}

/* Sections */
.rd-section{background:var(--rd-card);border:1px solid var(--rd-line);border-radius:10px;min-width:0}
.rd-sec-head{display:flex;align-items:center;gap:8px;padding:10px 14px}
.rd-sec-head h2{font-size:16px;font-weight:700}
.rd-sec-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:var(--rd-soft);color:var(--rd-muted);flex:none}
.rd-count{display:inline-block;min-width:24px;padding:0 8px;border-radius:999px;background:var(--rd-soft);border:1px solid var(--rd-line);font-size:13px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums}

/* 2. Needs your attention — fixed-order indicator grid */
.rd-attention{margin-bottom:14px}
.rd-clear{display:inline-flex;align-items:center;gap:6px;margin-inline-start:auto;font-size:14px;color:var(--rd-muted)}
.rd-clear svg{color:var(--rd-done)}
.rd-inds{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:8px;padding:0 14px 14px}
.rd-ind{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 12px;border:1px solid var(--rd-line);border-radius:9px;background:var(--rd-card);transition:border-color .15s ease,background .15s ease}
.rd-ind:hover{border-color:var(--rd-gold);background:var(--rd-hover)}
.rd-ind-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none;background:var(--rd-soft);color:var(--rd-muted)}
.rd-ind-name{flex:1;min-width:0;font-size:14px;font-weight:600;line-height:1.35}
.rd-ind-side{display:flex;flex-direction:column;align-items:flex-end;gap:0;flex:none}
.rd-ind-num{font-size:22px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums}
.rd-ind-side small{font-size:12px;color:var(--rd-muted)}
.rd-ind.is-zero .rd-ind-num{color:var(--rd-muted);font-weight:600}
.rd-ind.is-zero .rd-ind-name{color:var(--rd-muted);font-weight:500}
.rd-ind.is-error .rd-ind-side small{color:var(--rw-late-fg)}
.rd-ind.is-error{border-style:dashed}
/* Like the projects stat cards: white card, even border, status colour on the icon only; the number stays brown. */
.rd-ind.is-hot .rd-ind-icon{color:var(--rd-text)}
.rd-ind.is-hot.rd-ind--late .rd-ind-icon{color:var(--rd-late)}
.rd-ind.is-hot.rd-ind--stopped .rd-ind-icon{color:var(--rd-stopped)}
.rd-ind.is-hot.rd-ind--active .rd-ind-icon{color:var(--rd-active)}

/* 3. Work area: fixed ⅔ | ⅓ columns, each column stacks its own sections */
.rd-layout{display:flex;flex-direction:column;gap:14px;min-width:0}
.rd-work{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;align-items:start}
/* Lower sections: two equal columns, row by row in the fixed order; cards keep their own height (no stretching, no inner scroll). */
.rd-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.rd-col{display:flex;flex-direction:column;gap:14px;min-width:0}

/* Analysis: one chart, short tabs */
.rd-info{display:grid;place-items:center;width:36px;height:36px;margin-inline-start:auto;border-radius:8px;color:var(--rd-muted)}
.rd-info:hover,.rd-info[aria-expanded="true"]{background:var(--rd-soft);color:var(--rd-text)}
.rd-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:0 14px 8px}
.rd-tabs button{min-height:36px;padding:0 12px;border-radius:8px;border:1px solid var(--rd-line);font-size:14px;font-weight:600;color:var(--rd-muted);background:var(--rd-card)}
.rd-tabs button.is-on{color:var(--rd-ink);border-color:var(--rd-gold);background:var(--rd-ivory)}
.rd-chart{padding:0 8px 12px}
.rd-chart-title{font-size:15px;font-weight:700;padding:0 6px 6px}
.rd-chart-info{font-size:13px;color:var(--rd-muted);background:var(--rd-soft);border-radius:8px;padding:6px 10px;margin:0 6px 8px}
.rd-chart>.rd-status{padding:6px}
.rd-bars{display:grid;gap:2px}
.rd-bar{display:grid;grid-template-columns:minmax(90px,34%) minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:40px;padding:4px 8px;border-radius:8px}
button.rd-bar:hover{background:var(--rd-hover)}
.rd-bar-label{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.rd-bar-label small{display:block;font-size:12px;color:var(--rd-muted)}
.rd-bar-track{display:flex;height:12px;border-radius:4px;background:var(--rd-soft);overflow:hidden;gap:1px}
.rd-seg{display:block;height:100%;position:relative}
.rd-bar-value{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;min-width:38px;text-align:end}
.rd-late-num{color:var(--rd-late)}
.rd-fill-active{background:var(--rd-active)}.rd-fill-done{background:var(--rd-done)}.rd-fill-waiting,.rd-fill-neutral{background:var(--rd-waiting)}.rd-fill-stopped{background:var(--rd-stopped)}.rd-fill-late{background:var(--rd-late)}
.rd-bar-icon{display:inline-block;vertical-align:-2px;margin-inline-end:6px}
.rd-legend svg{flex:none}
.rd-legend{display:flex;flex-wrap:wrap;gap:4px 14px;padding:6px 8px 0;font-size:13px;color:var(--rd-muted)}
.rd-legend li,.rd-stack-legend button{display:inline-flex;align-items:center;gap:6px}
.rd-legend i,.rd-stack-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
/* Approved chart sample (charts-v5), light mode only — dark mode keeps the previous solid fills above (not reviewed).
   Light fill + dark same-hue edge + light pattern; names, icons and numbers in dark brown. Tokens: rwaqDashboardPalette.css. */
html:not(.dark) .rd-bar-track{height:16px;background:var(--rw-chart-track);gap:3px;border-radius:4px}
html:not(.dark) .rd-seg{border-radius:3px;box-shadow:inset 0 0 0 1.5px var(--rd-edge)}
html:not(.dark) .rd-seg--dept{background-image:none}
html:not(.dark) :is(.rd-seg,.rd-legend i).rd-fill-active{background:var(--rw-chart-active-fill);--rd-edge:var(--rw-chart-active-edge)}
html:not(.dark) :is(.rd-seg,.rd-legend i):is(.rd-fill-waiting,.rd-fill-neutral){background:var(--rw-chart-waiting-pattern),var(--rw-chart-waiting-fill);--rd-edge:var(--rw-chart-waiting-edge)}
html:not(.dark) :is(.rd-seg,.rd-legend i).rd-fill-stopped{background:var(--rw-chart-stopped-pattern),var(--rw-chart-stopped-fill);--rd-edge:var(--rw-chart-stopped-edge)}
html:not(.dark) :is(.rd-seg,.rd-legend i).rd-fill-done{background:var(--rw-chart-done-pattern),var(--rw-chart-done-fill);--rd-edge:var(--rw-chart-done-edge)}
html:not(.dark) :is(.rd-seg,.rd-legend i).rd-fill-late{background:var(--rw-chart-late-pattern),var(--rw-chart-late-fill);--rd-edge:var(--rw-chart-late-edge)}
html:not(.dark) .rd-legend{color:var(--rd-text)}
html:not(.dark) .rd-legend i{width:22px;height:14px;border-radius:3px;box-shadow:inset 0 0 0 1.5px var(--rd-edge)}
html:not(.dark) .rd-late-num{color:var(--rd-text);font-weight:700}
/* Small values: drawn to scale; a marker under the segment start (and its number in multi-part rows). Zero has no bar and no marker. */
.rd-bar-track.has-tiny{overflow:visible;margin-bottom:16px}
.rd-seg.is-tiny{border-radius:1px}
.rd-seg-mark{position:absolute;top:calc(100% + 2px);inset-inline-start:0;display:inline-flex;align-items:center;gap:3px;font-size:12px;line-height:1;color:var(--rd-text);white-space:nowrap;pointer-events:none}
.rd-seg-mark::before{content:"";width:0;height:0;border-inline:5px solid transparent;border-bottom:8px solid var(--rd-edge,currentColor);margin-inline-start:-4px}
.rd-seg-mark b{font-weight:700;font-variant-numeric:tabular-nums}
.rd-bar.is-selected{box-shadow:inset 0 0 0 1.5px var(--rd-gold)}
.rd-bar.is-selected .rd-bar-label{font-weight:700}
.rd-stack{padding:2px 6px}
.rd-stack-bar{display:flex;height:18px;border-radius:5px;overflow:hidden;background:var(--rd-soft);gap:2px}
.rd-stack-bar span{display:block;height:100%;min-width:4px}
.rd-stack-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;margin-top:8px}
.rd-stack-legend button{width:100%;min-height:40px;padding:4px 8px;border-radius:8px;font-size:14px}
.rd-stack-legend button:not(:disabled):hover{background:var(--rd-hover)}
.rd-stack-legend b{margin-inline-start:auto;font-variant-numeric:tabular-nums}

/* Compact summaries: name · small context | number */
.rd-sums{padding:0 8px 8px}
.rd-sums>li+li{border-top:1px solid var(--rd-line)}
.rd-sum{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:6px 8px;border-radius:8px}
.rd-sum:hover{background:var(--rd-hover)}
.rd-sum-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;flex:none;background:var(--rd-soft);color:var(--rd-muted)}
.rd-sum-icon--gold{background:var(--rd-ivory);color:var(--rd-gold-ink)}
.rd-sum-main{flex:1;min-width:0;display:flex;flex-direction:column}
.rd-sum-name{font-size:14px;font-weight:600}
.rd-sum-main small{font-size:13px;color:var(--rd-muted)}
.rd-sum-main small.is-error{color:var(--rw-late-fg)}
.rd-sum-num{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.rd-sum-num.is-zero{color:var(--rd-muted);font-weight:600}
.rd-sum>.rd-dir{color:var(--rd-muted);flex:none}

/* Status lines */
.rd-status{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--rd-muted);padding:12px 14px;margin:0}
.rd-status>svg{flex:none}
.rd-status--ready>svg{color:var(--rd-done)}
.rd-status--error{color:var(--rw-late-fg);background:var(--rw-late-bg);border:1px solid var(--rw-late-bg);border-radius:8px;flex-wrap:wrap}
.rd-status--error>span{flex:1;min-width:160px}
.rd-retry{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid hsl(var(--input))!important;border-radius:8px;background:var(--rd-card)!important;font-weight:600;color:var(--rd-text)}

/* Unified side panel (shared Dialog, restyled as a sheet from the inline end) */
/* !important: the shared dialog ships centred-modal utilities and enter/exit animations that must not apply to the sheet, whatever the stylesheet order. */
.rd-drawer.rd-drawer{position:fixed!important;top:0!important;bottom:0!important;left:auto!important;right:auto!important;inset-inline-end:0!important;transform:none!important;translate:none!important;width:min(480px,100vw)!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;border:0!important;border-inline-start:1px solid var(--rd-line)!important;display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;overflow:hidden!important;background:var(--rd-card)!important;color:var(--rd-text);font-size:15px;line-height:1.5;animation:none!important;transition:none!important}
/* Scrim of this panel only (other dialogs keep theirs): brown instead of black. */
[data-rwaq-overlay="dialog"]:has(+ .rd-drawer){background:var(--rw-scrim)!important}
.rd-drawer>button[class*="right-4"]{display:none}
.rd-drawer-head{display:flex;align-items:center;gap:10px;padding:14px 16px 6px}
.rd-drawer-title{flex:1;display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;line-height:1.35;text-align:start}
.rd-close{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;border:1px solid var(--rd-line)!important;flex:none}
.rd-drawer-def{padding:0 16px 10px;border-bottom:1px solid var(--rd-line);font-size:14px;color:var(--rd-text);text-align:start}
.rd-drawer-def>p:first-child{color:var(--rd-text)}
.rd-drawer-scope{display:flex;flex-wrap:wrap;gap:2px 14px;margin-top:4px!important;font-size:13px;color:var(--rd-muted)}
.rd-drawer-body{flex:1;overflow-y:auto;overscroll-behavior:contain}
.rd-drawer-body>.rd-status{margin:12px 16px}
.rd-items>li+li{border-top:1px solid var(--rd-line)}
.rd-item{display:flex;flex-direction:column;gap:6px;padding:10px 16px;min-height:56px}
.rd-item:hover{background:var(--rd-hover)}
.rd-item-main strong{display:block;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.rd-item-main small{display:flex;flex-wrap:wrap;gap:0 10px;font-size:13px;color:var(--rd-muted)}
.rd-item-side{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rd-chip{display:inline-block;font-size:13px;font-weight:600;padding:0 8px;border-radius:6px;border:1px solid currentColor;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--rd-card)}
/* Projects status badge: soft fill + dark text of the same hue, no coloured border. */
.rd-chip{display:inline-flex;align-items:center;gap:4px;min-width:0;border-color:transparent}.rd-chip svg{flex:none}.rd-chip-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rd-chip.rd-tone-late{color:var(--rw-late-fg);background:var(--rw-late-bg)}.rd-chip.rd-tone-active{color:var(--rw-active-fg);background:var(--rw-active-bg)}.rd-chip.rd-tone-done{color:var(--rw-done-fg);background:var(--rw-done-bg)}.rd-chip.rd-tone-stopped{color:var(--rw-stopped-fg);background:var(--rw-stopped-bg)}.rd-chip.rd-tone-waiting,.rd-chip.rd-tone-neutral{color:var(--rw-neutral-fg);background:var(--rw-neutral-bg)}
.rd-act{display:inline-flex;align-items:center;gap:2px;margin-inline-start:auto;font-size:13px;font-weight:600;color:var(--rd-gold-ink);border:1px solid #DCC58E;border-radius:7px;padding:4px 10px;background:var(--rd-ivory);white-space:nowrap}
.rd-item:hover .rd-act{border-color:var(--rd-gold)}
.rd-load-more{display:block;width:calc(100% - 32px);margin:8px 16px 12px;min-height:44px;border:1px solid var(--rd-line)!important;border-radius:8px;font-weight:600;text-align:center!important}
.rd-drawer-foot{display:flex;justify-content:flex-end;padding:8px 16px;border-top:1px solid var(--rd-line)}
.rd-page-link{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:600;min-height:40px}
.rd-page-link:hover{color:var(--rd-gold-ink)}
.rd-note{padding:12px 16px}
.rd-note>section{margin:0!important;max-width:none!important}
/* The shared note widget keeps its note colour; inside this panel only, its black hairlines become brown. */
.rd-note .text-foreground{color:var(--rd-text)!important}
.rd-note [class*="border-black"]{border-color:rgb(63 53 46 / .12)!important}
.rd-note [class*="ring-black"]{--tw-ring-color:rgb(63 53 46 / .2)!important}
.rd-note [class*="shadow"]{--tw-shadow:0 1px 2px 0 rgb(63 53 46 / .08)!important}

/* Operational sections (same card, border, text and status tokens as the rest of the page) */
.rd-ind-note{display:block;font-size:12px;font-weight:500;color:var(--rd-muted);line-height:1.35}
.rd-panel-def{padding:0 14px 6px;font-size:13px;color:var(--rd-muted)}
.rd-panel-scope{overflow-wrap:anywhere}
.rd-panel-all{display:inline-flex;align-items:center;gap:2px;margin-inline-start:auto;min-height:36px;padding:0 10px;border-radius:8px;border:1px solid var(--rd-line);font-size:13px;font-weight:600}
.rd-panel-all:hover{background:var(--rd-hover);border-color:var(--rd-gold)}
.rd-prows{padding:0 8px 8px}
.rd-prows>li+li{border-top:1px solid var(--rd-line)}
.rd-prow{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:6px 8px;border-radius:8px}
button.rd-prow:hover{background:var(--rd-hover)}
.rd-prow.is-selected{box-shadow:inset 0 0 0 1.5px var(--rd-gold)}.rd-prow.is-selected .rd-prow-name{font-weight:700}
.rd-prow-main{flex:1;min-width:0;display:flex;flex-direction:column}
.rd-prow-name{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.rd-prow-main small{font-size:12px;color:var(--rd-muted)}
.rd-prow-flag{color:var(--rw-late-fg,#991B1B)!important}
.rd-cells{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 12px;flex:none;max-width:60%}
.rd-cell{display:inline-flex;flex-direction:column;align-items:center;min-width:44px;line-height:1.2}
.rd-cell b{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--rd-text)}
.rd-cell small{font-size:11px;color:var(--rd-muted);white-space:nowrap}
.rd-cell--late b{color:var(--rw-late-fg,#991B1B)}.rd-cell--stopped b{color:var(--rw-stopped-fg,#9A3412)}.rd-cell--active b{color:var(--rw-active-fg,#1E40AF)}
.rd-na{color:var(--rd-muted);font-weight:600}
.rd-panel-cov{display:flex;gap:6px;align-items:flex-start;margin:0 14px 12px!important;padding:6px 10px;border-radius:8px;background:var(--rd-soft);font-size:12px;color:var(--rd-muted)}
.rd-panel-cov svg{flex:none;margin-top:2px}
.rd-area-analysis~.rd-panel{margin-top:0}
/* Side-panel list tools */
.rd-tools{display:flex;flex-direction:column;gap:6px;padding:8px 16px;border-bottom:1px solid var(--rd-line)}
.rd-search{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 10px;border:1px solid hsl(var(--input));border-radius:8px;background:var(--rd-card)}
.rd-search:focus-within{outline:2px solid var(--rd-gold);outline-offset:1px}
.rd-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:var(--rd-text)}
.rd-filters{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}
.rd-filters select{min-height:36px;padding:0 8px;border:1px solid hsl(var(--input));border-radius:8px;background:var(--rd-card);font:inherit;font-size:13px;color:var(--rd-text)}
.rd-filters select:focus-visible{outline:2px solid var(--rd-gold);outline-offset:1px}
.rd-tools-count{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--rd-muted)}
.rd-tools-reset{font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px;color:var(--rd-text)}
.rd-group-head{display:flex;align-items:center;gap:8px;padding:8px 16px 4px;font-size:13px;font-weight:700;background:var(--rd-soft);position:sticky;top:0;z-index:1}

/* Department head: scope and page tabs (same card, border, gold selection and text tokens as the analysis tabs) */
.rd-scope{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:10px;padding:10px 14px;background:var(--rd-card);border:1px solid var(--rd-line);border-radius:10px}
.rd-scope-label{font-size:13px;font-weight:700;color:var(--rd-muted)}
.rd-scope-select{min-height:40px;max-width:100%;padding:0 10px;border:1px solid hsl(var(--input));border-radius:8px;background:var(--rd-card);font:inherit;font-size:14px;font-weight:600;color:var(--rd-text)}
.rd-scope-select:focus-visible{outline:2px solid var(--rd-gold);outline-offset:1px}
.rd-scope-one{font-size:14px}
.rd-scope-note{flex-basis:100%;display:flex;gap:6px;align-items:flex-start;font-size:12px;color:var(--rd-muted)}
.rd-scope-note svg{flex:none;margin-top:2px}
.rd-scope-note--error{color:var(--rw-late-fg,#991B1B)}
.rd-pagetabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:14px}
.rd-pagetabs button{flex:none;min-height:40px;padding:0 14px;border-radius:8px;border:1px solid var(--rd-line);background:var(--rd-card);font-size:14px;font-weight:600;color:var(--rd-muted);white-space:nowrap}
.rd-pagetabs button:hover{color:var(--rd-text);background:var(--rd-hover)}
.rd-pagetabs button.is-on{color:var(--rd-ink);border-color:var(--rd-gold);background:var(--rd-ivory)}
.rd-tabpage{display:flex;flex-direction:column;gap:14px}
.rd-period{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:10px 14px;background:var(--rd-card);border:1px solid var(--rd-line);border-radius:10px;font-size:13px}
.rd-period label{font-weight:700;color:var(--rd-muted)}
.rd-period select{min-height:36px;padding:0 8px;border:1px solid hsl(var(--input));border-radius:8px;background:var(--rd-card);font:inherit;color:var(--rd-text)}
.rd-period small{flex-basis:100%;color:var(--rd-muted)}

/* Narrow content area: one column in the fixed reading order */
@container rd (max-width:860px){
  .rd-work,.rd-pairs,.rd-col{display:contents}
  /* Priority order in one column: decisions, analysis, «أدائي وتطوري», sections, upcoming, updates, tools. */
  .rd-area-decide{order:1}.rd-area-analysis{order:2}.rd-personal{order:3}.rd-panel{order:4}.rd-area-upcoming{order:5}.rd-area-updates{order:6}.rd-area-tools{order:7}
}
@container rd (max-width:560px){
  .rwaq-decision h1{font-size:20px}
  .rd-inds{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rd-ind{flex-wrap:wrap;align-items:flex-start;gap:4px 8px}
  .rd-ind-side{flex-direction:row;align-items:baseline;gap:6px;width:100%}
  .rd-bar{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label value" "track track";row-gap:4px}
  .rd-bar-label{grid-area:label}.rd-bar-track{grid-area:track}.rd-bar-value{grid-area:value}
  .rd-clear{width:100%;margin-inline-start:0}
  .rd-sec-head{flex-wrap:wrap}
  .rd-prow{flex-wrap:wrap}.rd-cells{max-width:100%;width:100%;justify-content:flex-start}
}
@media (max-width:560px){.rd-drawer.rd-drawer{width:100vw!important;border-inline-start:0!important}}
@media (prefers-reduced-motion:reduce){.rwaq-decision *,.rd-drawer *{transition:none!important}}

/* ---- Summary layout (CEO / department head / employee) + «أدائي وتطوري» (all roles) ---- */
.rd-inds--3{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.rd-ind-num--text{font-size:17px;overflow-wrap:anywhere;text-align:end}
.rd-ind-note{display:block;font-size:12px;font-weight:500;color:var(--rd-muted);overflow-wrap:anywhere}
.rd-personal .rd-disclosure{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;width:calc(100% - 28px);margin:0 14px 14px;min-height:48px;padding:8px 12px;border:1px solid var(--rd-line);border-radius:9px;background:var(--rd-card);color:var(--rd-text);font-weight:600;text-align:start;cursor:pointer;transition:border-color .15s,background-color .15s}
.rd-personal .rd-disclosure:hover{background:var(--rd-hover);border-color:var(--rd-gold)}
.rd-personal .rd-disclosure:focus-visible{outline:2px solid var(--rd-gold);outline-offset:2px}
.rd-disclosure-action{display:inline-flex;align-items:center;gap:6px;color:var(--rd-gold-ink);font-size:13px}
.rd-disclosure-chev{transition:transform .15s}
.rd-disclosure[aria-expanded="true"] .rd-disclosure-chev{transform:rotate(180deg)}
.rd-disclosure-body{display:grid;gap:12px;padding:0 14px 14px}
.rd-disclosure-body .rd-chart-title{margin:0 0 4px}
@media (prefers-reduced-motion:reduce){.rd-disclosure-chev{transition:none}}
.rd-subhead{padding:10px 14px 2px}
.rd-disclosure-count{font-weight:600;color:var(--rd-gold-ink)}

/* Compact overview cards («الفريق»، «التسليمات القادمة»): definition behind the info button, short tag, no reserved height. */
.rd-head-actions{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.rd-head-actions .rd-info{margin-inline-start:0}
.rd-tag{white-space:nowrap}
.rd-panel-info{margin:0 14px 10px}
.rd-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 14px 14px;list-style:none;margin:0}
.rd-stat{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;padding:10px 6px;border:1px solid var(--rd-line);border-radius:9px;background:var(--rd-card);transition:border-color .15s ease,background .15s ease}
button.rd-stat:hover{border-color:var(--rd-gold);background:var(--rd-hover)}
button.rd-stat:focus-visible{outline:2px solid var(--rd-gold);outline-offset:2px}
.rd-stat b{font-size:22px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums;color:var(--rd-text)}
.rd-stat small{font-size:12px;color:var(--rd-muted)}
.rd-stat.rd-cell--late b{color:var(--rw-late-fg,#991B1B)}
.rd-prows--next{border-top:1px solid var(--rd-line);margin-top:2px;padding-top:2px}
.rd-panel--compact .rd-prows:last-of-type{padding-bottom:6px}
.rd-scope-info{flex-basis:100%;margin:0}
.rd-scope .rd-info{margin-inline-start:0}

/* Turns the notification-setup banner into a small gold button beside the bell.
   The component, its state checks and its guide dialog are unchanged; the status sentence stays available to screen readers. */
.rwaq-notif-slot{display:inline-flex;align-items:center;margin-inline:2px}
.rwaq-notif-slot>div{margin:0!important;padding:0!important;border:0!important;background:none!important;border-radius:0!important;gap:0!important;flex-wrap:nowrap!important}
.rwaq-notif-slot>div>div:first-child{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.rwaq-notif-slot>div>button{display:inline-flex!important;align-items:center;gap:6px;min-height:32px!important;height:32px!important;padding:0 10px!important;font-size:12px!important;border-radius:999px!important;white-space:nowrap;box-shadow:none!important}
.rwaq-notif-slot>div>button::before{content:"";width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E") center/contain no-repeat}
@media (max-width:640px){.rwaq-notif-slot>div>button{width:32px;padding:0!important;justify-content:center;font-size:0!important;gap:0}}

/* Approved for this button only (not the shared gold variant): fill #B78B1E, text #2F2722 (4.69:1).
   Pressed keeps the same gold and shows an inset brown shadow plus a 1px nudge; focus is an outline because the slot removes box-shadow rings. */
.rwaq-notif-cta.rwaq-notif-cta{background:#B78B1E;border-color:#B78B1E;color:#2F2722}
.rwaq-notif-cta.rwaq-notif-cta:hover{background:hsl(var(--gold-light));border-color:hsl(var(--gold-light));color:#2F2722}
.rwaq-notif-cta.rwaq-notif-cta:active{background:#B78B1E;border-color:#B78B1E;color:#2F2722;box-shadow:inset 0 2px 4px rgb(47 39 34 / .45)!important;transform:translateY(1px)}
.rwaq-notif-cta.rwaq-notif-cta:focus-visible{outline:2px solid #B78B1E;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.rwaq-notif-cta.rwaq-notif-cta:active{transform:none}}

/* Dashboard header (/ERP) only — replaces the solid gold for this button there: the site's approved selected-state
   fill and border, taken from the rendered selected tab (.rd-tabs / .rd-pagetabs button.is-on): #FFF7EE, 1px #B78B1E,
   brown text #3F352E (contrast 11.2:1). Hover/pressed reuse existing tokens; other pages keep the solid gold above. */
.rwaq-dash-header .rwaq-notif-cta.rwaq-notif-cta{background:#FFF7EE;border:1px solid #B78B1E;color:#3F352E}
.rwaq-dash-header .rwaq-notif-cta.rwaq-notif-cta:hover{background:hsl(var(--surface-hover));border-color:#8A6512;color:#3F352E}
.rwaq-dash-header .rwaq-notif-cta.rwaq-notif-cta:active{background:#FFF7EE;border-color:#8A6512;color:#3F352E;box-shadow:inset 0 2px 4px rgb(47 39 34 / .25)!important;transform:translateY(1px)}
.rwaq-dash-header .rwaq-notif-cta.rwaq-notif-cta:focus-visible{outline:2px solid #B78B1E;outline-offset:2px}

/* Period label next to the dashboard title: same pill as the role badge (card fill, site border, brown text). */
.rwaq-period-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border:1px solid hsl(var(--border));border-radius:999px;background:hsl(var(--card));color:#3F352E;font-size:12px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.dark .rwaq-period-badge{color:hsl(var(--foreground))}
/* Dashboard header (/ERP only): lets the title + date wrap on phones without hiding the tools (plain CSS; no new utilities). */
header.rwaq-dash-header{height:auto;min-height:3.5rem;padding-block:.25rem;flex-wrap:wrap}
@media (min-width:640px){header.rwaq-dash-header{min-height:4rem;flex-wrap:nowrap}}

/* Mobile assistant trigger (DockableAssistantTrigger). Plain CSS so the published stylesheet needs no new utilities.
   Approved gold #B78B1E with #2F2722 icon; inner corners rounded; safe areas respected. */
.rwaq-dock-tab{position:fixed;z-index:40;bottom:calc(5rem + env(safe-area-inset-bottom, 0px));right:env(safe-area-inset-right, 0px);display:flex;align-items:center;justify-content:center;width:24px;height:56px;border:0;border-radius:12px 0 0 12px;background:#B78B1E;color:#2F2722;box-shadow:0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1);cursor:pointer;transition:filter .15s}
.rwaq-dock-tab:hover{filter:brightness(.95)}
.rwaq-dock-tab:active{filter:brightness(.9)}
.rwaq-dock-tab:focus{outline:none}
.rwaq-dock-tab:focus-visible{outline:2px solid #2F2722;outline-offset:2px}
.rwaq-dock-wrap{position:fixed;z-index:40;bottom:calc(5rem + env(safe-area-inset-bottom, 0px));right:calc(1rem + env(safe-area-inset-right, 0px));display:flex;align-items:flex-end;gap:4px}
.rwaq-dock-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));box-shadow:0 1px 2px 0 rgb(0 0 0 / .05);cursor:pointer}
.rwaq-dock-btn:hover{color:hsl(var(--foreground))}
.rwaq-dock-btn:focus{outline:none}
.rwaq-dock-btn:focus-visible{outline:2px solid #B78B1E;outline-offset:2px}
.rwaq-dock-icon{width:16px;height:16px}
@media print{.rwaq-dock-tab,.rwaq-dock-wrap{display:none}}
