/* ══ UTILITIES ════════════════════════════════════════════════════════════
   Single-property helpers replacing the most common inline style="" attributes
   (B1 compliance sweep). !important is intentional: inline styles previously won
   the cascade (specificity 1,0,0,0) over base/descendant rules, so these classes
   must too, to reproduce the exact computed result. u- prefix avoids collisions.
   ════════════════════════════════════════════════════════════════════════ */
.u-tae{text-align:end!important}
.u-fs11{font-size:11px!important}
.u-fs12{font-size:12px!important}
.u-fs16{font-size:16px!important}
.u-fs18{font-size:18px!important}
.u-fs22{font-size:22px!important}
.u-m0{margin:0!important}
.u-mt6{margin-top:6px!important}
.u-mt8{margin-top:8px!important}
.u-mt10{margin-top:10px!important}
.u-mt12{margin-top:12px!important}
.u-mt14{margin-top:14px!important}
.u-mt16{margin-top:16px!important}
.u-w70{width:70px!important}
.u-w90{width:90px!important}
.u-w110{width:110px!important}
.u-w120{width:120px!important}
.u-w160{width:160px!important}
.u-wfull{width:100%!important}
.u-gap8{gap:8px!important}
.u-gap4{gap:4px!important}
.u-gap6{gap:6px!important}
.u-jcsb{justify-content:space-between!important}
.u-w60{width:60px!important}
.u-w80{width:80px!important}
.u-w130{width:130px!important}
.u-w140{width:140px!important}
.u-w180{width:180px!important}
.u-w200{width:200px!important}
.u-wauto{width:auto!important}
.u-w50p{width:50%!important}
.u-fs20{font-size:20px!important}
.u-flex1{flex:1!important}
.u-nowrap{white-space:nowrap!important}
.u-mt0{margin-top:0!important}
.u-mb12{margin-bottom:12px!important}
.u-mlauto{margin-inline-start:auto!important}
.aud-role{color:var(--am);font-weight:600}
.emp-photo-prev{width:72px;height:72px;border-radius:50%;object-fit:cover;border:2px solid var(--bo2)}
.u-bd-ac{border-color:var(--ac)!important;box-shadow:0 0 0 1px var(--ac)}
.u-fw6{font-weight:600!important}
.u-tac{text-align:center!important}
/* composites */
.u-fe{gap:8px!important;align-items:flex-end!important}
.u-few{gap:8px!important;align-items:flex-end!important;flex-wrap:wrap!important}
.u-fcol12{display:flex!important;flex-direction:column!important;font-size:12px!important}
.u-mt6fs12{margin-top:6px!important;font-size:12px!important}
.chk{display:inline-flex!important;align-items:center!important;gap:6px!important;font-size:13px!important}
.tbl-export-bar{display:flex;justify-content:flex-end;margin:0 0 6px}
/* JS-rendered helpers (notification panel / omni search empty-states) — replace inline style="" in site.js */
.nc-msg{padding:24px;text-align:center;color:var(--t3);font-size:12px}
.srch-msg{cursor:default;color:var(--t3)}
.u-upper{text-transform:uppercase!important}
/* R3: Users & access — the fixed role and the custom role stacked in one cell */
.u-rolecell{display:flex;flex-direction:column;gap:6px;min-width:0}
.u-rolecell select{max-width:100%}
/* L1: data-show-when fields (behaviors.js) — the hidden attribute must beat the modal rows' display */
[data-show-when][hidden]{display:none!important}
/* C1: the work-calendar screen (plan mock 'calendar') — month grid left, the level's settings right */
.cal-level{display:grid;grid-template-columns:3fr 2fr;gap:12px;align-items:start}
@media (max-width:900px){.cal-level{grid-template-columns:1fr}}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal-hd{font-size:11px;font-weight:600;color:var(--muted,#6b7280);text-align:center;padding:4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.cal-day{min-height:58px;border:1px solid var(--line,#e5e7eb);border-radius:8px;padding:4px 6px;font-size:12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.cal-day em{font-style:normal;font-size:10.5px;line-height:1.25;overflow-wrap:anywhere}
.cal-day.w{background:color-mix(in srgb,var(--muted,#6b7280) 10%,transparent);color:var(--muted,#6b7280)}
.cal-day.h{background:color-mix(in srgb,#d97706 14%,transparent)}
.cal-day.o{outline:2px solid var(--ac,#0f766e);outline-offset:-2px}
.cal-day.r{background:color-mix(in srgb,var(--ac,#0f766e) 12%,transparent)}
.cal-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.cal-items li{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.cal-items li.inh .cal-it{color:var(--muted,#6b7280)}
.cal-it{display:flex;flex-direction:column;min-width:0;flex:1}

/* SEP1 — separation and settlement: two cards side by side, one column on a phone; Form 6 prints without the app chrome */
.sep-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
@media (max-width:760px){.sep-cols{grid-template-columns:1fr}}
.f6{max-width:760px}
.f6-title{font-size:18px;margin:0 0 4px}
.f6-sub{margin:0 0 12px}
.f6-table th{width:38%;text-align:start}
.f6-sign{display:flex;justify-content:space-between;margin-top:40px;padding-top:8px;border-top:1px dashed var(--bo)}
@media print{.sb,.sidebar,.topbar,.breadcrumbs,.no-print,.fab{display:none!important}.f6{border:0;box-shadow:none;max-width:none}}
.sep-kv{width:100%}.sep-kv th{text-align:start;font-weight:600;width:42%;vertical-align:top}

/* P1 — the earnings and deductions screen: the selected item, the scope pickers, a field across both columns */
.p1-span2,.md-grid2 .u-span2{grid-column:1/-1}
.chips-pick{display:flex;flex-wrap:wrap;gap:6px 12px}
.chips-pick .chk{font-weight:400}
tr.is-selected td{background:color-mix(in srgb,var(--ac) 10%,transparent)}
.u-w100{width:100%}
.chip[hidden]{display:none!important}   /* P1: a chip shown or hidden by script (the grade-limits warning) */
.ot-add{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px 10px;align-items:end}   /* P1: the add-band row wraps at 390 */
.ot-add .field{margin-bottom:0;max-width:none}
.sep-cols.p1-cols{grid-template-columns:3fr 2fr}   /* P1: the items list beside the side form (mock 'components' 3-2) */
@media (max-width:760px){.sep-cols.p1-cols{grid-template-columns:1fr}}
.u-ox{overflow-x:auto;max-width:100%}   /* P7: a wide grid scrolls inside its panel (the weekly roster at 390) */
td.u-wrap{white-space:normal;min-width:170px;max-width:320px}   /* P3: a long reason or action wraps instead of pushing the table off-screen */
td.is-changed{background:color-mix(in srgb,var(--am) 16%,transparent)}   /* P7: a roster cell changed after the lock (the original kept) */
/* P4 — the off-cycle wizard's three steps side by side; the cash and cheque sheets' signature column and branch totals */
.oc-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:900px){.oc-cols{grid-template-columns:1fr}}
.oc-cols .field{display:flex;flex-direction:column;gap:2px;margin-top:8px}
.sign-col{min-width:140px}
tr.subtotal th{border-top:1px solid var(--bo)}
.print-only{display:none}
@media print{.print-only{display:block;margin-bottom:8px}.sign-col{min-width:180px;border-bottom:1px solid #999}}
/* EG2 — the tax sheet's notes stay narrow: chips stack instead of widening the table */
.tax-note{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
[data-tax-sheet] th{white-space:normal;min-width:72px;vertical-align:bottom}   /* EG2: two-word headers wrap so the eight columns fit at 1280 */
/* P5 — the bylaw tab: the cap/acknowledgement and the two bracket editors side by side (one column when narrow); the
   bylaw grid's main headings read as group rows */
.p5-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:12px;align-items:start}
[data-lateness] input[type=number]{width:72px}[data-lateness] select{min-width:118px}
[data-lateness] th,[data-lateness] td{padding-inline:5px}[data-lateness] th{white-space:normal}   /* the four bracket columns fit a half-width panel at 1280 */
.p5-panels .panel{margin:0;min-width:0}
[data-bylaw] tr.grp td{background:var(--s2);border-top:1px solid var(--bo2)}
.p5-reverse{display:inline-block;vertical-align:middle}.p5-reverse>summary{list-style:none}.p5-reverse>summary::-webkit-details-marker{display:none}
.p5-reverse[open]>form{display:flex;margin-top:4px}   /* P5: reversing a penalty asks its reason only when opened, so the list fits at 1280 */

/* P8 — the appraisal forms: each item's weight as a bar (punctuality from attendance in teal); the selected form's row; the
   employee's appraisal card (score out of 100, the grade, the weighted items) */
.p8-bars{display:grid;gap:8px}.p8-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,160px) 48px;gap:8px;align-items:center}
.p8-bar .progress-bar{margin-top:0;display:block}.p8-bar .progress-fill{display:block}.p8-bar b{text-align:end}.progress-fill.p8-att{background:var(--te)}
[data-perf-forms] tr.sel td{background:var(--s2)}
.p8-mine{max-width:680px}.p8-score{text-align:center;padding:6px 0 10px}.p8-score>b{font-size:34px;line-height:1.1;display:block}
.p8-items{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}.p8-items li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center}
[data-designer-items] input:not([type=number]){min-width:140px;width:100%}
