/* ============================================================================
   FREK theme — Phase 1
   Utility class library that gives every page zero inline styles.
   Token values sourced from Figma "Frek – Redesign" (see .apexlang/frek-fr.md §3).
   ============================================================================ */

:root {
  /* palette */
  --frek-bg: #F4F5F7;
  --frek-nav-bg: #0E0E0E;
  --frek-nav-divider: #333333;
  --frek-nav-text: #999999;
  --frek-nav-text-active: #FFD600;
  --frek-nav-active-bg: rgba(255, 214, 0, 0.12);
  --frek-nav-accent: #FFD600;
  --frek-surface: #FFFFFF;
  --frek-border: #E8E8E8;
  --frek-text: #111111;
  --frek-text-2: #555555;
  --frek-text-mute: #999999;
  --frek-accent: #FFD600;
  --frek-accent-ink: #0E0E0E;
  --frek-gold: #FFD600;    /* alias for --frek-accent — many ESS rules reference it */
  --frek-muted: #999999;   /* alias for --frek-text-mute — 12 rules referenced it undefined */

  --frek-status-active: #16A34A;
  --frek-status-warn:   #D97706;
  --frek-status-info:   #2563EB;
  --frek-status-danger: #DC2626;

  --frek-badge-info-bg:    #DBEAFE;
  --frek-badge-warn-bg:    #FEF3C7;
  --frek-badge-danger-bg:  #FEE2E2;
  --frek-badge-draft-bg:   #F4F5F7;
  --frek-badge-payroll-bg: #0E0E0E;

  /* shape */
  --frek-radius-card: 12px;
  --frek-radius-btn: 8px;
  --frek-radius-badge: 4px;
  --frek-radius-dot: 4px;
  --frek-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.07);
  --frek-shadow-topbar: 0 2px 4px rgba(0, 0, 0, 0.07);

  /* type */
  --frek-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --frek-font-brand: "Montserrat", var(--frek-font-body);
}

/* ---------- app-wide baseline ---------- */
body,
body.t-Body {
  background-color: var(--frek-bg);
  color: var(--frek-text);
  font-family: var(--frek-font-body);
}

/* ---------- typography helpers ---------- */
.frek-h1  { font-size: 20px; font-weight: 600; color: var(--frek-text); line-height: 1.2; margin: 0; }
.frek-h2  { font-size: 16px; font-weight: 600; color: var(--frek-text); margin: 0; }
.frek-h3  { font-size: 13px; font-weight: 600; color: var(--frek-text); margin: 0; }
.frek-body   { font-size: 13px; color: var(--frek-text); }
.frek-body-sm { font-size: 12px; color: var(--frek-text); }
.frek-mute   { font-size: 11px; color: var(--frek-text-mute); }
.frek-strong { font-weight: 600; }
.frek-num    { font-size: 22px; font-weight: 700; color: var(--frek-text); }

/* ---------- layout helpers ---------- */
.frek-flex        { display: flex; }
.frek-flex-col    { display: flex; flex-direction: column; }
.frek-flex-between{ display: flex; justify-content: space-between; align-items: center; }
.frek-flex-center { display: flex; align-items: center; }
.frek-gap-4  { gap: 4px; }
.frek-gap-6  { gap: 6px; }
.frek-gap-8  { gap: 8px; }
.frek-gap-10 { gap: 10px; }
.frek-gap-12 { gap: 12px; }
.frek-gap-14 { gap: 14px; }
.frek-gap-16 { gap: 16px; }
.frek-gap-24 { gap: 24px; }
.frek-w-full { width: 100%; }
.frek-grid   { display: grid; }
.frek-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- surfaces ---------- */
.frek-card {
  background: var(--frek-surface);
  border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card);
  overflow: hidden;
}
.frek-card--pad-16 { padding: 16px; }
.frek-card--pad-24 { padding: 24px; }
.frek-divider { height: 1px; background: var(--frek-border); }

/* Vertical rhythm between stacked detail cards on the Employee Detail page
   (Overview / Personal / Job tabs). blank-with-attributes regions carry no
   margin, so cards in adjacent grid rows would otherwise touch. Only the detail
   page uses the bare .frek-card / .frek-benefit-banner surfaces (Home uses
   .frek-panel and .frek-card--pad-* utilities), so a class-scoped margin is
   effectively page-safe. Matches the 16px gap used inside the detail grids. */
.frek-card,
.frek-benefit-banner { margin-bottom: 16px; }

/* Job tab right column (Figma 4307:36): Performance and Attendance stack flush
   — they share the y=582 edge with no vertical gap. The whole stack keeps the
   normal 16px rhythm below it. Inner touching corners are squared so the two
   flush cards read as a clean seam rather than two rounded cards colliding. */
.frek-colstack--flush { margin-bottom: 16px; }
.frek-colstack--flush > .frek-card { margin-bottom: 0; }
.frek-colstack--flush > .frek-card:not(:last-child) {
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.frek-colstack--flush > .frek-card:not(:first-child) {
  border-top-left-radius: 0; border-top-right-radius: 0;
}

/* Tall panel used for the three home-page secondary cards (Upcoming Pay Runs,
   My Tasks, Payroll Spend). Keeps the row visually consistent per Figma. */
.frek-panel {
  background: var(--frek-surface);
  border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card);
  overflow: hidden;
  height: 566px;
  display: flex;
  flex-direction: column;
}
.frek-panel__list { overflow-y: auto; flex: 1; }

/* Home page vertical rhythm is handled per-region via the `margin-bottom-md`
   template option (see p00001-home greeting / quick-actions / kpi-row). An
   earlier `#p1-home` / `body[id^="pageBody-1"]` rule lived here, but the stock
   Universal Theme page template never emits those ids, so it was dead. */

/* ---------- sidebar (Universal Theme side-nav overrides) ---------- */
/* Colour + padding only — never touch width/display so Universal Theme's own
   collapse machinery (js-defaultCollapsed / js-navCollapsed--hidden) works,
   and the FREK header/topbar remain visible in every state. */
.t-PageBody--leftNav .t-Body-nav,
.a-TreeView-node--top {
  background-color: var(--frek-nav-bg);
}
.t-PageBody--leftNav .t-Body-nav {
  padding: 16px 12px 20px;
}
/* Mobile: a collapsed side-nav must slide fully off-canvas — no dark sliver
   stealing screen width — and the content must go full-width. The hamburger
   still expands it (js-navExpanded) as an overlay. */
@media (max-width: 767px) {
  body.js-navCollapsed .t-Body-nav,
  body.js-navCollapsed #t_Body_nav {
    transform: translateX(-100%) !important;
    box-shadow: none !important;
  }
  body.js-navCollapsed .t-Body-main {
    margin-inline-start: 0 !important;
    inset-inline-start: 0 !important;
  }
}
.t-TreeNav .a-TreeView-content {
  color: var(--frek-nav-text);
  font-family: var(--frek-font-body);
  font-size: 12px;
  border-radius: var(--frek-radius-btn);
  height: 36px;
  padding-left: 12px;
  padding-right: 10px;
}
/* Selected / active nav row. Universal Theme's default sets this via blue
   background + blue left border. Force gold-only. */
.t-TreeNav .a-TreeView-node.is-current > .a-TreeView-row,
.t-TreeNav .a-TreeView-node.is-current .a-TreeView-content,
.t-TreeNav .a-TreeView-node .a-TreeView-content.is-current--top,
.t-TreeNav .a-TreeView-node.is-hover > .a-TreeView-row,
.t-TreeNav .a-TreeView-node .a-TreeView-content:hover,
.t-TreeNav .a-TreeView-node .a-TreeView-content:focus {
  background-color: var(--frek-nav-active-bg) !important;
  color: var(--frek-nav-text-active) !important;
  font-weight: 600;
  position: relative;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Universal Theme paints the selection marker on the row itself in blue;
   flatten it and let our ::before pseudo-element carry the gold accent. */
.t-TreeNav .a-TreeView-row {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.t-TreeNav .a-TreeView-content:focus-visible {
  outline: 2px solid var(--frek-nav-accent) !important;
  outline-offset: -2px;
}
/* Kill the light-blue top accent bar Universal Theme puts above the page
   template. In UT 26.1 (Iris style) it is the `.t-Header::before` "header
   strip" pseudo-element sized by --ut-header-strip-size and coloured by
   --ut-palette-primary; zero it out and hide the pseudo entirely. */
:root, .t-PageBody { --ut-header-strip-size: 0 !important; }
.t-Header::before, .t-PageBody .t-Header::before { display: none !important; content: none !important; block-size: 0 !important; }
.t-PageBody .t-Header,
.t-PageBody .t-Header-nav,
.t-Body-title { border-top: none !important; }
.t-PageBody::before, .t-Body::before { display: none !important; }
.t-TreeNav .a-TreeView-node.is-current .a-TreeView-content::before,
.t-TreeNav .a-TreeView-node .a-TreeView-content.is-current--top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--frek-nav-accent);
}
.t-Header-branding, .t-Header-logo-link {
  color: var(--frek-nav-text-active);
  font-family: var(--frek-font-brand);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.374px;
}

/* ---------- topbar ---------- */
.frek-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 10px 24px;
  background: var(--frek-surface);
  box-shadow: var(--frek-shadow-topbar);
}
.frek-topbar__right { display: flex; align-items: center; gap: 12px; }
.frek-topbar__bell {
  width: 32px; height: 32px; border-radius: var(--frek-radius-btn);
  background: var(--frek-bg); display: inline-flex; align-items: center; justify-content: center;
  color: var(--frek-text-2); text-decoration: none;
}

.frek-org-switcher {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px;
  background: #F3F4F6; border: 1px solid #E5E7EB;
  border-radius: var(--frek-radius-btn);
  cursor: pointer;
  color: var(--frek-text); font-size: 13px; font-weight: 600;
}
.frek-org-switcher__mono {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--frek-nav-bg); color: var(--frek-accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
}
.frek-org-switcher__chev { font-size: 9px; color: #9CA3AF; }

/* ---------- buttons ---------- */
.frek-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--frek-radius-btn);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.frek-btn--primary {
  background: var(--frek-accent); color: var(--frek-accent-ink);
}
.frek-btn--secondary {
  background: var(--frek-surface); color: var(--frek-text);
  border-color: var(--frek-border);
  box-shadow: var(--frek-shadow-card);
}
.frek-btn--icon { padding: 0; width: 36px; }
.frek-btn[disabled], .frek-btn.is-disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- badges (pills) ---------- */
.frek-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 8px;
  border-radius: var(--frek-radius-badge);
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.frek-badge--info    { background: var(--frek-badge-info-bg);    color: var(--frek-status-info); }
.frek-badge--warn,
.frek-badge--warning { background: var(--frek-badge-warn-bg);    color: var(--frek-status-warn); }
.frek-badge--danger  { background: var(--frek-badge-danger-bg);  color: var(--frek-status-danger); }
.frek-badge--success { background: #DCFCE8; color: var(--frek-status-active); }
.frek-badge--draft   { background: var(--frek-badge-draft-bg);   color: var(--frek-text-2); }
.frek-badge--payroll { background: var(--frek-badge-payroll-bg); color: var(--frek-accent); font-size: 10px; }

/* status→badge aliases so views can emit STATUS_CLASS/TAG_CLASS directly */
.frek-badge--Scheduled  { background: var(--frek-badge-info-bg);   color: var(--frek-status-info); }
.frek-badge--Processing { background: var(--frek-badge-warn-bg);   color: var(--frek-status-warn); }
.frek-badge--Draft      { background: var(--frek-badge-draft-bg);  color: var(--frek-text-2); }
.frek-badge--HR         { background: var(--frek-badge-info-bg);   color: var(--frek-status-info); }
.frek-badge--Payroll    { background: var(--frek-badge-payroll-bg); color: var(--frek-accent); font-size: 10px; }
.frek-badge--Statutory  { background: var(--frek-badge-warn-bg);   color: var(--frek-status-warn); }

/* ---------- status dots ---------- */
.frek-dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--frek-radius-dot); }
.frek-dot--active { background: var(--frek-status-active); }
.frek-dot--warn   { background: var(--frek-status-warn); }
.frek-dot--info   { background: var(--frek-status-info); }
.frek-dot--danger { background: var(--frek-status-danger); }
.frek-dot--accent { background: var(--frek-accent); }

/* ---------- status chips (segmented control on Employees list) ---------- */
.frek-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px;
  padding: 0 14px; border-radius: var(--frek-radius-btn);
  font-size: 12px; font-weight: 400;
  background: var(--frek-surface); border: 1px solid var(--frek-border);
  color: var(--frek-text-2); text-decoration: none;
}
.frek-chip.is-active {
  background: var(--frek-nav-bg); color: var(--frek-accent);
  border-color: transparent; font-weight: 600;
}
.frek-chip__count {
  display: inline-block; padding: 1px 6px; border-radius: 10px;
  font-size: 10px; font-weight: 500;
  background: var(--frek-bg); color: var(--frek-text-mute);
}
.frek-chip.is-active .frek-chip__count { background: #4D4D4D; color: var(--frek-accent); }

/* ---------- KPI card ---------- */
.frek-kpi {
  background: var(--frek-surface);
  border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card);
  padding: 16px;
  height: 88px;
  display: flex; flex-direction: column; gap: 4px;
  /* Grow equally so the KPI strip fills the full content width (Figma home). */
  flex: 1 1 0; min-width: 0;
}
.frek-kpi__row  { display: flex; justify-content: space-between; align-items: center; height: 18px; }
.frek-kpi__label { font-size: 11px; font-weight: 500; color: var(--frek-text-mute); }
.frek-kpi__value { font-size: 22px; font-weight: 700; color: var(--frek-text); }
.frek-kpi__meta  { font-size: 11px; color: var(--frek-text-mute); }

/* ---------- list card row (Upcoming Pay Runs, My Tasks) ---------- */
.frek-list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px; min-height: 46px;
  border-top: 1px solid var(--frek-border);
}
.frek-list-row:first-of-type { border-top: none; }
.frek-list-row__title    { font-size: 13px; font-weight: 500; color: var(--frek-text); }
.frek-list-row__subtitle { font-size: 11px; color: var(--frek-text-mute); }

/* ---------- avatar (photo or initials fallback) ---------- */
.frek-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--frek-text); font-size: 12px; font-weight: 600;
  overflow: hidden; flex-shrink: 0;
}
.frek-avatar img { width: 100%; height: 100%; object-fit: cover; }
.frek-avatar--sm { width: 24px; height: 24px; font-size: 10px; }
.frek-avatar--md { width: 40px; height: 40px; font-size: 14px; }

/* Tints for initials fallback (AVATAR_TINT column is NUMBER 0..8 in practice) */
.frek-tint-0 { background: #F3F4F6; color: #374151; }
.frek-tint-1 { background: #FEE2E2; color: #991B1B; }
.frek-tint-2 { background: #FEF3C7; color: #92400E; }
.frek-tint-3 { background: #D1FAE5; color: #065F46; }
.frek-tint-4 { background: #DBEAFE; color: #1E40AF; }
.frek-tint-5 { background: #E0E7FF; color: #3730A3; }
.frek-tint-6 { background: #FCE7F3; color: #9D174D; }
.frek-tint-7 { background: #F3F4F6; color: #374151; }
.frek-tint-8 { background: #F0FDF4; color: #14532D; }

.frek-name-cell { display: flex; align-items: center; gap: 10px; }

/* ---------- greeting / quick actions ---------- */
.frek-greeting {
  font-size: 20px; font-weight: 600; color: var(--frek-text);
}
.frek-tab-switcher {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: var(--frek-radius-btn);
  background: var(--frek-border);
}
.frek-tab-switcher__tab {
  padding: 6px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 500; color: var(--frek-text-2);
  text-decoration: none; cursor: pointer;
}
.frek-tab-switcher__tab.is-active {
  background: var(--frek-nav-bg); color: var(--frek-accent); font-weight: 600;
}

/* ---------- employee-detail cards ---------- */
.frek-empdetail-header {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 8px;
}
.frek-empdetail-header__title { font-size: 18px; font-weight: 600; color: var(--frek-text); }
.frek-empdetail-header__meta  { font-size: 12px; color: var(--frek-text-mute); }

.frek-detail-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.frek-detail-card__label { font-size: 11px; color: var(--frek-text-mute); text-transform: uppercase; letter-spacing: 0.3px; }
.frek-detail-card__value { font-size: 13px; color: var(--frek-text); font-weight: 500; margin-top: 2px; }

/* ---------- HR & Staffing home page ---------- */

/* Time-range chips row inside New Starters card. Padded inside the panel body,
   uses smaller chips than the Employees status segmented control. */
.frek-starter__chips { padding: 12px 20px; }
.frek-starter__chips .frek-chip { font-size: 11px; padding: 4px 10px; height: 24px; }

/* New Starters list row: avatar | name+meta | join-date pill. */
.frek-starter {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border-top: 1px solid var(--frek-border);
}
.frek-starter:first-of-type { border-top: none; }
.frek-starter__body { flex: 1; min-width: 0; }
.frek-starter__date {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--frek-bg);
  font-size: 10px;
  font-weight: 500;
  color: var(--frek-text-mute);
  white-space: nowrap;
}
.frek-list-row--footer {
  background: var(--frek-bg);
  justify-content: center;
  min-height: 40px;
}
.frek-list-row__link {
  color: var(--frek-status-info);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.frek-list-row__link:hover { text-decoration: underline; }

/* Headcount by Department: bar row with name + count + coloured progress fill. */
.frek-dept { display: flex; flex-direction: column; gap: 6px; }
.frek-dept__name  { font-size: 12px; color: var(--frek-text); }
.frek-dept__count { font-size: 11px; font-weight: 600; color: var(--frek-text-2); }
.frek-progress {
  height: 12px;
  border-radius: 6px;
  background: var(--frek-border);
  overflow: hidden;
  position: relative;
}
.frek-progress__fill {
  height: 100%;
  border-radius: 6px;
  width: var(--pct, 0%);
  transition: width 200ms ease-out;
}
/* Colour cycle for the department bars (per Figma). PL/SQL emits frek-bar-c0..5. */
.frek-bar-c0 { background: #FFD600; }  /* gold   */
.frek-bar-c1 { background: #2563EB; }  /* blue   */
.frek-bar-c2 { background: #16A34A; }  /* green  */
.frek-bar-c3 { background: #D97706; }  /* amber  */
.frek-bar-c4 { background: #7C3AED; }  /* purple */
.frek-bar-c5 { background: #808080; }  /* grey   */

/* ---------- Employees list header ---------- */
/* Title bar sitting above the status chips: "Employees" title + right-aligned
   Search / Filter / Add Employee actions. Mirrors Figma 4294:16 header row. */
.frek-page-title { font-size: 18px; font-weight: 600; color: var(--frek-text); }
.frek-search-input {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; width: 220px; padding: 0 12px;
  background: var(--frek-surface); border: 1px solid var(--frek-border);
  border-radius: var(--frek-radius-btn);
  font-size: 13px; color: var(--frek-text-mute);
}

/* Two-line name cell for the Employees IR NAME column. Avatar 30 + stacked
   name (Inter Medium 13 #111) / position subtitle (Inter Regular 11 #999). */
.frek-name-cell { display: flex; align-items: center; gap: 10px; }
.frek-name-cell__body { display: flex; flex-direction: column; gap: 2px; }
.frek-name-cell__name { font-size: 13px; font-weight: 500; color: var(--frek-text); line-height: 1.2; }
.frek-name-cell__sub  { font-size: 11px; color: var(--frek-text-mute); line-height: 1.2; }
.frek-avatar--table { width: 30px; height: 30px; font-size: 11px; }

/* Universal Theme IR overrides so the Employees table matches Figma density
   and spacing. Header row 44px with 11px uppercase tracking; data row 54px;
   row separator in --frek-border. Scoped by the IR's htmlDomId so we don't
   affect other reports in the app. */
#employees_ir .a-IRR-table thead th {
  background: #F8F8F9;
  font-size: 11px; font-weight: 600;
  color: var(--frek-text-mute);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  height: 44px; padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--frek-border);
}
#employees_ir .a-IRR-table tbody td {
  padding: 0 8px 0 16px;
  height: 54px;
  font-size: 13px; color: var(--frek-text);
  border-bottom: 1px solid var(--frek-border);
  vertical-align: middle;
}
#employees_ir .a-IRR-table tbody tr:hover td { background: #FAFAFB; }
/* Wrap the IR in the Frek card look. Universal Theme wraps the IR body in
   .a-IRR-container which is what we round + shadow. */
#employees_ir .a-IRR-container {
  background: var(--frek-surface);
  border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card);
  overflow: hidden;
}

/* ---------- Employee Detail (page 3) — Overview / Personal / Job tabs ---------- */

/* Header row that sits at the top of the employee detail body: back button,
   avatar + name/meta, and right-aligned Edit + Add Note buttons. */
.frek-emp-hdr {
  display: flex; align-items: center; gap: 12px;
  height: 68px; padding: 0 20px;
  background: var(--frek-surface);
  border-bottom: 1px solid var(--frek-border);
}
.frek-emp-hdr__back {
  width: 32px; height: 32px; border-radius: var(--frek-radius-btn);
  background: var(--frek-bg); border: 1px solid var(--frek-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--frek-text-2); text-decoration: none; font-size: 14px;
  flex-shrink: 0;
}
.frek-emp-hdr__avatar { width: 40px; height: 40px; font-size: 14px; flex-shrink: 0; margin-left: 12px; }
.frek-emp-hdr__body { flex: 1; min-width: 0; padding-left: 8px; }
.frek-emp-hdr__name { font-size: 16px; font-weight: 600; color: var(--frek-text); line-height: 1.1; }
.frek-emp-hdr__meta { font-size: 12px; color: var(--frek-text-mute); line-height: 1.2; margin-top: 2px; }
.frek-emp-hdr__actions { display: flex; gap: 10px; }
.frek-emp-hdr__actions .frek-btn { height: 34px; }

/* Tab bar under the header. Three 110px slots, active tab is Inter Semi Bold
   with a 3px gold underline. */
.frek-tabbar {
  display: flex; align-items: flex-end;
  height: 44px; padding: 0 24px;
  background: var(--frek-surface);
  border-bottom: 1px solid var(--frek-border);
  /* Separate the header/tab block from the first row of content cards. The
     inter-card rhythm comes from .frek-card margin-bottom (applied by the card
     above), but the first row's "card above" is this tab bar, so it needs its
     own bottom gap to match the 16px rhythm on every tab. */
  margin-bottom: 16px;
}
.frek-tabbar__tab {
  position: relative;
  width: 110px; height: 44px;
  display: inline-flex; align-items: center;
  font-size: 13px; color: var(--frek-text-mute);
  text-decoration: none;
}
.frek-tabbar__tab.is-active { font-weight: 600; color: var(--frek-text); }
.frek-tabbar__tab.is-active::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 110px; height: 3px; border-radius: 2px;
  background: var(--frek-accent);
}

/* Small uppercase section header that appears at the top of every detail
   card: "CURRENT APPOINTMENT", "NOTIFICATIONS", "TASKS", "PERSONAL INFORMATION"
   etc. Tracking 0.8px per Figma. */
.frek-card-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  min-height: 44px;
}
.frek-card-hdr__title {
  font-size: 10px; font-weight: 600;
  color: var(--frek-text-mute);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.frek-card-hdr__actions { display: flex; align-items: center; gap: 10px; }

/* ProfileCard on the Overview tab (272w, gold top bar). */
.frek-profile-card {
  position: relative;
  background: var(--frek-surface);
  border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card);
  overflow: hidden;
  padding: 20px 16px;
}
.frek-profile-card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--frek-accent);
}
.frek-profile-card__row { display: flex; gap: 12px; align-items: flex-start; }
.frek-profile-card__body { flex: 1; min-width: 0; }
.frek-profile-card__name { font-size: 14px; font-weight: 600; color: var(--frek-text); }
.frek-profile-card__title { font-size: 12px; color: var(--frek-text-2); margin-top: 2px; }
.frek-profile-card__divider { height: 1px; background: var(--frek-border); margin: 14px 0; }
.frek-profile-card__meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: var(--frek-text-mute);
}
.frek-profile-card__entity { font-size: 12px; font-weight: 500; color: var(--frek-text-2); margin-top: 8px; }
.frek-profile-card__loc    { font-size: 11px; color: var(--frek-text-mute); }
.frek-avatar--profile { width: 72px; height: 72px; font-size: 22px; }

/* Multi-column appointment grid: 5 fields with vertical dividers. */
.frek-appt-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; padding: 12px 16px;
}
.frek-appt-grid > div { padding-right: 16px; border-right: 1px solid var(--frek-border); }
.frek-appt-grid > div:last-child { border-right: none; }
.frek-field-label {
  font-size: 10px; color: var(--frek-text-mute);
  text-transform: none; font-weight: 500;
}
.frek-field-value { font-size: 13px; font-weight: 500; color: var(--frek-text); margin-top: 4px; }

/* Personal-tab two-column mini-grid inside a card. */
.frek-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  padding: 12px 16px;
}
.frek-info-single { padding: 12px 16px; }
.frek-info-single .frek-field-value + .frek-field-label { margin-top: 12px; }

/* Notification row (Overview). */
.frek-notif {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--frek-border);
}
.frek-notif:first-of-type { border-top: none; }
.frek-notif__body { flex: 1; font-size: 12px; color: var(--frek-text); }
.frek-notif__time { font-size: 11px; color: var(--frek-text-mute); }

/* Task row (Overview). Checkbox + text + optional due + category badge. */
.frek-task {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--frek-border);
}
.frek-task:first-of-type { border-top: none; }
.frek-task__check {
  width: 18px; height: 18px; border-radius: 9px;
  border: 1px solid var(--frek-border);
  background: var(--frek-surface);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.frek-task__check.is-done {
  background: var(--frek-accent); border-color: var(--frek-accent);
  color: var(--frek-accent-ink); font-size: 10px; font-weight: 700;
}
.frek-task__body { flex: 1; }
.frek-task__title { font-size: 13px; font-weight: 500; color: var(--frek-text); }
.frek-task__title.is-done { color: var(--frek-text-mute); font-weight: 400; }
.frek-task__meta  { font-size: 11px; color: var(--frek-text-mute); margin-top: 2px; }
.frek-task__meta--done { color: var(--frek-status-active); }

/* Job-tab Actions card: 7 coloured pill buttons in a row. */
.frek-actions-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 16px;
  flex-wrap: wrap;
}
.frek-btn--action {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 14px;
  border-radius: var(--frek-radius-btn);
  font-size: 12px; font-weight: 600;
  border: none; cursor: pointer;
  color: var(--frek-accent-ink);
  background: var(--frek-accent);
}
.frek-btn--action--success { background: #DCFCE8; color: var(--frek-status-active); }
.frek-btn--action--danger  { background: var(--frek-badge-danger-bg); color: var(--frek-status-danger); }
.frek-btn--action--info    { background: var(--frek-badge-info-bg);   color: var(--frek-status-info); }
.frek-btn--action--warn    { background: var(--frek-badge-warn-bg);   color: var(--frek-status-warn); }
.frek-btn--action--purple  { background: #EDE9FE; color: #7C3AED; }

/* Job-tab Salary card: label / value 2-column layout. */
.frek-salary-row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 6px 16px;
  align-items: baseline;
  font-size: 13px;
}
.frek-salary-row__label { color: var(--frek-text-mute); font-size: 11px; }
.frek-salary-row__value { color: var(--frek-text); font-weight: 500; }

/* Job-tab Time Off tiles (Annual / Sick / Maternity). */
.frek-leave-tiles { display: flex; gap: 10px; padding: 8px 16px; }
.frek-leave-tile {
  background: var(--frek-bg);
  border-radius: var(--frek-radius-btn);
  padding: 6px 10px;
  min-width: 120px;
}
.frek-leave-tile__type   { font-size: 10px; font-weight: 500; color: var(--frek-text-mute); }
.frek-leave-tile__value  { font-size: 12px; font-weight: 600; color: var(--frek-text); margin-top: 2px; }
.frek-leave-tile__detail { font-size: 10px; color: var(--frek-text-mute); }

/* Job-tab benefits banner (purple full-width link). */
.frek-benefit-banner {
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
  padding: 10px 16px 10px 22px;
  background: #EDE9FE;
  border-radius: 10px;
  color: #7C3AED;
  text-decoration: none;
}
.frek-benefit-banner::before {
  content: "";
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px;
  background: #7C3AED;
}
.frek-benefit-banner__title { font-size: 12px; font-weight: 600; }
.frek-benefit-banner__sub   { font-size: 9px; }

/* ---------- edit forms ----------
   Field grid capped to the Figma card (~620px → two ~280px columns, full-width
   fields ~580px). Title/footer stay full-width. */
.frek-editcard .t-Region-body { max-width: 620px; }
.frek-editcard-footer { max-width: 620px; }

/* Input controls sized to the Figma spec (40px tall, #F9F9FA, 8px radius, Inter
   13px). Scoped to .frek-editcard so only create/edit forms are affected. */
.frek-editcard input[type="text"],
.frek-editcard input[type="number"],
.frek-editcard input[type="password"],
.frek-editcard input[type="email"],
.frek-editcard input.apex-item-text,
.frek-editcard input.apex-item-datepicker,
.frek-editcard select,
.frek-editcard select.apex-item-select {
  box-sizing: border-box;
  width: 100%;
  height: 40px !important;
  padding: 0 11px !important;
  background-color: #F9F9FA !important;
  border: 1px solid var(--frek-border) !important;
  border-radius: var(--frek-radius-btn) !important;
  font-family: var(--frek-font-body) !important;
  font-size: 13px !important;
  color: var(--frek-text) !important;
  box-shadow: none !important;
}
/* APEX wraps every textarea in .apex-item-group--textarea sized to the
   item's cols attribute (~180px), so the textarea's width:100% resolved
   against that stub instead of the form column. Make the wrapper follow
   the column; the textarea then fills its container app-wide. */
.frek-editcard .apex-item-group--textarea { width: 100% !important; }
.frek-editcard textarea,
.frek-editcard textarea.apex-item-textarea {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 80px;
  padding: 9px 11px !important;
  background-color: #F9F9FA !important;
  border: 1px solid var(--frek-border) !important;
  border-radius: var(--frek-radius-btn) !important;
  font-family: var(--frek-font-body) !important;
  font-size: 13px !important;
  line-height: 1.45;
  color: var(--frek-text) !important;
  box-shadow: none !important;
}
.frek-editcard input:focus,
.frek-editcard select:focus,
.frek-editcard textarea:focus {
  border-color: var(--frek-accent) !important;
  outline: none !important;
}
/* datepicker / select trigger buttons align to the 40px control */
.frek-editcard .apex-item-group--datepicker .apex-item-datepicker { border-radius: var(--frek-radius-btn) 0 0 var(--frek-radius-btn) !important; }
.frek-editcard .apex-item-group--datepicker .ui-datepicker-trigger,
.frek-editcard .a-Button--datePicker { height: 40px !important; }
/* field labels above inputs (Figma: 11px medium, muted) */
.frek-editcard .t-Form-label {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--frek-text-mute) !important;
}
/* compact spacing between stacked field rows */
.frek-editcard .t-Form-fieldContainer { margin-bottom: 8px; }
.frek-editcard .t-Form-label { margin-bottom: 3px !important; }
/* description fields: multi-line + span the full form width (both columns) */
.frek-editcard .frek-fullcol { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.frek-editcard .frek-fullcol textarea { min-height: 64px; }
/* General rule: any multi-line (textarea) field spans the full width of the
   two input columns in a row — no per-item tagging needed. */
.frek-editcard .t-Form-fieldContainer:has(textarea) {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* clickable summary rows (e.g. Time Off rows on the Job landing) */
.frek-salary-row--link { text-decoration: none; color: inherit; cursor: pointer; border-radius: 6px; transition: background .12s; }
.frek-salary-row--link:hover { background: #F5F6F8; }
.frek-row-chev { color: var(--frek-text-mute); margin-left: 6px; }
.frek-editpage-title { font-size: 18px; font-weight: 700; color: var(--frek-text); margin-top: 4px; }
.frek-editpage-sub   { font-size: 12px; color: var(--frek-text-2); margin: 2px 0 6px; }
.frek-btn--edit {
  height: 28px; font-size: 11px; text-decoration: none;
  display: inline-flex; align-items: center;
}

/* ---------- list / detail screens ---------- */
.frek-listhdr { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.frek-listhdr .frek-btn { text-decoration: none; }
.frek-listcard { padding: 0; overflow-x: auto; }
.frek-list-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.frek-list-table thead th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--frek-text-mute);
  padding: 14px 16px; border-bottom: 1px solid var(--frek-border); white-space: nowrap;
}
.frek-sort-th { padding: 0 !important; }
.frek-sort-th > a { display: flex; align-items: center; gap: 6px; padding: 14px 16px; color: inherit; text-decoration: none; cursor: pointer; }
.frek-sort-th > a:hover { color: var(--frek-text); }
.frek-sort-th__i { font-size: 9px; color: var(--frek-border); line-height: 1; }
.frek-sort-th > a:hover .frek-sort-th__i { color: var(--frek-text-mute); }
.frek-sort-th__i.is-on { color: var(--frek-text); }
.frek-list-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--frek-border); color: var(--frek-text); vertical-align: middle; }
.frek-list-table tbody tr:last-child td { border-bottom: none; }
.frek-list-table tbody tr:hover { background: var(--frek-bg); }
.frek-ta-r { text-align: right; }
.frek-check { color: #16A34A; font-weight: 700; }
.frek-check--inline { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; background: #DCFCE7; color: #16A34A; font-size: 11px; line-height: 1; vertical-align: middle; }
.frek-rowlink { text-decoration: none; font-size: 14px; color: var(--frek-text-2); padding: 0 4px; }
.frek-rowlink:hover { color: var(--frek-text); }
.frek-rowlink--danger:hover { color: #DC2626; }
.frek-celllink { color: var(--frek-text); text-decoration: none; font-weight: 600; }
.frek-celllink:hover { color: var(--frek-accent-ink, #B58900); text-decoration: underline; }

/* Personal landing two-column flex (top-aligned so both columns start level). */
.frek-2col { display: flex; gap: 16px; align-items: flex-start; }
.frek-2col__col { min-width: 0; }
.frek-2col__left  { flex: 5 1 0; }
.frek-2col__right { flex: 7 1 0; }
@media (max-width: 900px) { .frek-2col { flex-direction: column; } }

/* Clickable mini-list row inside a summary card (navigates to the detail). */
.frek-cardrow {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; text-decoration: none; color: var(--frek-text);
  border-bottom: 1px solid var(--frek-border);
}
.frek-cardrow:last-child { border-bottom: none; }
.frek-cardrow:hover { background: var(--frek-bg); }
.frek-cardrow__main  { min-width: 0; }
.frek-cardrow__title { font-size: 13px; font-weight: 600; }
.frek-cardrow__sub   { font-size: 12px; color: var(--frek-text-2); margin-top: 2px; }
.frek-cardrow__chev  { color: var(--frek-text-mute); font-size: 18px; flex-shrink: 0; }

/* KPI strip above a list table (Qualifications / Work Experience) needs a gap
   before the list card. */
.frek-kpi-strip { margin-bottom: 16px; }

/* ---------- My Team page ---------- */
.frek-teamlead {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-left: 4px solid var(--frek-accent); margin-bottom: 16px;
}
.frek-teamlead__body { flex: 1; min-width: 0; }
.frek-teamlead__name { font-size: 14px; font-weight: 600; color: var(--frek-text); }
.frek-teamlead__sub  { font-size: 12px; color: var(--frek-text-2); margin-top: 2px; }
.frek-badge--dark { background: #0E0E0E; color: #fff; }

.frek-mgrgrid { margin-bottom: 20px; align-items: stretch; }
.frek-mgrcard { flex: 1 1 0; min-width: 0; padding: 16px; }
.frek-mgrcard__top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.frek-mgrcard__name { font-size: 13px; font-weight: 600; color: var(--frek-text); }
.frek-mgrcard__pos  { font-size: 12px; color: var(--frek-text-2); margin-top: 2px; }
.frek-mgrcard__dept { font-size: 11px; color: var(--frek-text-mute); margin-top: 2px; }

.frek-teamfull-hdr { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--frek-text-mute); margin-bottom: 10px; }
.frek-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.frek-cellwho { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--frek-text); }
.frek-cellwho__text { display: flex; flex-direction: column; min-width: 0; }
.frek-cellwho__name { font-size: 13px; font-weight: 600; }
.frek-cellwho__name:hover { text-decoration: underline; }
.frek-cellwho__sub  { font-size: 11px; color: var(--frek-text-mute); }

/* Statutory-ID reminder banner (NIS/TIN missing) on the employee Personal tab. */
.frek-reminder {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 10px;
  background: #FEF3C7; color: #92400E; font-size: 13px; line-height: 1.5;
  border: 1px solid #FDE68A;
}

/* ---------- new-employee wizard ---------- */
.frek-stepper { display: flex; align-items: center; gap: 10px; padding: 20px 24px; }
.frek-step { display: flex; align-items: center; gap: 10px; }
.frek-step__badge {
  width: 28px; height: 28px; border-radius: 50%; background: var(--frek-border);
  color: var(--frek-text-2); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.frek-step.is-active .frek-step__badge { background: var(--frek-accent); color: #0E0E0E; }
.frek-step.is-done  .frek-step__badge { background: #16A34A; color: #fff; }
.frek-step__title { font-size: 13px; font-weight: 600; color: var(--frek-text-mute); }
.frek-step.is-active .frek-step__title, .frek-step.is-done .frek-step__title { color: var(--frek-text); }
.frek-step__sub { font-size: 11px; color: var(--frek-text-mute); margin-top: 1px; }
.frek-step__line { flex: 1; height: 2px; background: var(--frek-border); }
.frek-step__line.is-done { background: #16A34A; }

.frek-about { padding: 16px; }
.frek-about__title { font-size: 14px; font-weight: 600; color: var(--frek-text); }
.frek-about .frek-divider { margin: 12px -16px; }
.frek-about__body { font-size: 12px; color: var(--frek-text-2); line-height: 1.6; }
.frek-about__flow { margin-top: 12px; padding: 12px 14px; background: #EFF6FF; border-radius: 8px; font-size: 12px; color: #1E40AF; line-height: 1.5; }
.frek-listhdr__actions { display: flex; gap: 10px; align-items: center; }
.frek-listhdr__actions .frek-btn { text-decoration: none; }

/* Compact mini-table used by Attendance / Training / Awards / Assets. */
.frek-mini-table { width: 100%; border-collapse: collapse; }
.frek-mini-table thead th {
  background: #F8F8F9;
  padding: 8px 4px 8px 16px;
  font-size: 10px; font-weight: 600;
  color: var(--frek-text-mute);
  letter-spacing: 0.5px;
  text-align: left;
  border-bottom: 1px solid var(--frek-border);
}
.frek-mini-table tbody td {
  padding: 8px 4px 8px 16px;
  font-size: 12px;
  border-bottom: 1px solid var(--frek-border);
}
.frek-mini-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Job-tab sections: KPI accents, detail lists, row links ---------- */
.frek-kpi__sub { font-size: 11px; color: var(--frek-text-mute); }
.frek-kpi--top-blue  { border-top: 3px solid #2563EB; }
.frek-kpi--top-green { border-top: 3px solid #16A34A; }
.frek-kpi--top-amber { border-top: 3px solid #D97706; }
.frek-kpi--top-grey  { border-top: 3px solid #94A3B8; }
.frek-kpi--top-red   { border-top: 3px solid #DC2626; }

/* definition list used on detail cards */
/* direct card children of a 2-col flex row must be able to shrink, else long
   values overflow/clip the card */
.frek-2col > .frek-card { flex: 1 1 0; min-width: 0; }
.frek-dl { display: flex; flex-direction: column; padding: 4px 18px 12px; }
.frek-dl__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--frek-border); }
.frek-dl__row:last-child { border-bottom: none; }
.frek-dl__k { font-size: 12px; color: var(--frek-text-mute); flex: 0 0 40%; }
.frek-dl__v { font-size: 13px; color: var(--frek-text); font-weight: 500; text-align: right; flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }

/* filter chip row + leave usage bar (Time Off) */
.frek-chiprow { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.frek-chiprow .frek-chip { height: 30px; font-size: 12px; text-decoration: none; }
.frek-usage { padding: 14px 18px; margin-bottom: 14px; }
.frek-usage__hdr { font-size: 12px; color: var(--frek-text-2); margin-bottom: 8px; }
.frek-usage__track { height: 10px; border-radius: 6px; background: var(--frek-border); overflow: hidden; }
.frek-usage__fill { height: 100%; background: var(--frek-accent); border-radius: 6px; }
.frek-badge--muted { background: var(--frek-border); color: var(--frek-text-mute); }

/* inline list search (right of the title, Enter to search) — wrapper is the box,
   icon + borderless input inside so the icon keeps the box's left padding */
.frek-search {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; min-width: 240px;
  border: 1px solid var(--frek-border); border-radius: var(--frek-radius-btn); background: var(--frek-surface);
}
.frek-search:focus-within { border-color: var(--frek-accent); }
.frek-search__icon { color: var(--frek-text-mute); font-size: 12px; flex-shrink: 0; }
.frek-search-inline { flex: 1 1 auto; min-width: 0; height: 100%; border: none; background: transparent; outline: none; color: var(--frek-text); font-size: 13px; padding: 0; }

/* hidden client-state region (holds JS-set text items) */
.frek-hidden { display: none !important; }

/* organisation logo block at the top of the profile card */
.frek-org-logo { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 16px 10px; gap: 6px; }
.frek-org-logo__avatar { margin: 0; }
.frek-org-logo__name { font-size: 16px; font-weight: 700; color: var(--frek-text); }
.frek-org-logo__sub { font-size: 12px; color: var(--frek-text-mute); }

/* map placeholder in location edit sidebar */
.frek-map-placeholder { background: var(--frek-bg); border: 1px dashed var(--frek-border); border-radius: 8px; height: 150px; display: flex; align-items: center; justify-content: center; color: var(--frek-text-mute); font-size: 12px; margin: 12px; text-align: center; }

/* org hierarchy tree (Organisation module) */
.frek-tree { display: flex; flex-direction: column; }
.frek-tree__node { display: flex; align-items: center; gap: 8px; padding: 8px 12px; text-decoration: none; color: var(--frek-text); border-bottom: 1px solid var(--frek-border); font-size: 13px; }
.frek-tree__node:last-child { border-bottom: none; }
.frek-tree__node:hover { background: var(--frek-bg); }
.frek-tree__node.is-active { background: #FFF7E0; font-weight: 600; }
.frek-tree__type { font-size: 10px; color: var(--frek-text-mute); text-transform: uppercase; letter-spacing: .3px; margin-left: auto; }
.frek-hint { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; font-size: 12px; padding: 8px 12px; border-radius: 8px; margin: 4px 0 12px; line-height: 1.5; }
.frek-tree__droproot { border: 2px dashed var(--frek-border); border-radius: 8px; padding: 10px 12px; margin: 4px 8px 10px; color: var(--frek-text-mute); font-size: 12px; text-align: center; background: var(--frek-bg); }
.frek-btn--danger { color: #DC2626; }
.frek-btn--danger:hover { border-color: #DC2626; }
.frek-drag { cursor: move; }
.frek-drag:active { opacity: .6; }
.frek-drop-hover { background: #FFF3C4 !important; outline: 2px dashed var(--frek-accent); outline-offset: -2px; }

/* clickable table rows */
.frek-row-link { cursor: pointer; }
.frek-row-link:hover { background: var(--frek-bg); }
.frek-cell-actions { text-align: right; white-space: nowrap; }
.frek-cell-actions a { text-decoration: none; font-size: 14px; color: var(--frek-text-2); padding: 0 4px; }
.frek-cell-actions a:hover { color: var(--frek-text); }

/* ---------- login logo: transparent background + full (uncropped) logo ---------- */
.t-Login-logo,
.t-Login-region .t-Login-logo,
.t-Login-logo-container,
.t-Login-logo img {
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* the logo is a background-image on .t-Login-logo; the default fixed box crops the
   top of the figure — force it to render the whole PNG (contain) with room to breathe */
.t-Login-logo,
.t-Login-region .t-Login-logo {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  overflow: visible !important;
  width: 132px !important;
  height: 96px !important;
  border-radius: 0 !important;
}
.t-Login-logo img {
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
  height: auto !important;
}

/* ============================================================================
   Organisation Profile dashboard (page 40 · Figma 4743:600 "Option B")
   ============================================================================ */
.frek-orgp-hdr { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.frek-orgp-hdr__name { font-size: 18px; font-weight: 700; color: var(--frek-text); }
.frek-orgp-hdr__meta { font-size: 12px; color: var(--frek-text-mute); margin-top: 2px; }
.frek-push-right { margin-left: auto; }

.frek-avatar--44  { width: 44px; height: 44px; font-size: 15px; }
.frek-avatar--org { background: var(--frek-accent); color: var(--frek-accent-ink); }
.frek-avatar--logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--frek-border); flex: 0 0 auto; }

/* 4-across stat tiles — reuse .frek-kpi surface + top accent bars */
.frek-statgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.frek-statgrid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.frek-kpi--top-gold { border-top: 3px solid var(--frek-accent); }
.frek-kpi--top-purple { border-top: 3px solid #7C3AED; }
/* clickable count cards (Pay Elements): filter the list on tap */
.frek-kpi--link { text-decoration: none; cursor: pointer; transition: box-shadow .12s; }
.frek-kpi--link:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.10); }
.frek-kpi--link.is-active { box-shadow: 0 0 0 2px var(--frek-accent); }
.frek-badge--purple { background: #EDE9FE; color: #7C3AED; }
.frek-pe-summary { background: var(--frek-badge-info-bg); border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.6; color: var(--frek-status-info); }
/* top-of-form action buttons (detail/edit pages), opposite the title */
.frek-hdr-actions { align-items: center; }
.frek-hdr-actions .frek-btn { white-space: nowrap; }
.frek-btn-sep { display: inline-block; width: 1px; height: 24px; background: var(--frek-border); margin: 0 4px; align-self: center; }
/* Field Reference help list (e.g. Work Activity add) */
.frek-helplist { display: flex; flex-direction: column; }
.frek-help-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-bottom: 1px solid var(--frek-border); }
.frek-help-row:last-child { border-bottom: none; }
.frek-help-row b { font-size: 12px; color: var(--frek-text); }
.frek-help-row span { font-size: 11px; color: var(--frek-text-mute); line-height: 1.4; }
/* full-width non-DB items on edit forms (Pay Element formula / payslip textareas) */
.frek-editcard #P9_PE_FORMULA_CONTAINER,
.frek-editcard #P9_PE_PAYSLIP_CONTAINER { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }

/* 3-across modular card grid */
.frek-cardgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.frek-cardgrid > .frek-card { margin-bottom: 0; }

.frek-card-hdr__link { font-size: 12px; font-weight: 500; color: var(--frek-text); text-decoration: none; }
.frek-card-body { padding: 12px 16px; }

/* filled/authorised progress bar (Positions card) */
.frek-prog { height: 6px; border-radius: 3px; background: var(--frek-border); overflow: hidden; margin: 0 16px 4px; }
.frek-prog__fill { height: 100%; background: var(--frek-accent); }

/* Edit Profile right rail — logo + help cards with coloured top accents */
.frek-card--top-gold { border-top: 3px solid var(--frek-accent); }
.frek-card--top-blue { border-top: 3px solid var(--frek-status-info); }
/* Formula-explained card (pay element edit) */
.frek-formula-expr { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5;
    background: #F9F9FA; border: 1px solid #E8E8E8; border-radius: 8px; padding: 10px 12px; word-break: break-word; margin-bottom: 12px; }
.frek-formula-tbl td code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #FFF7CC; color: #6b5600;
    padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.frek-uploadbox { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px; }
.frek-uploadbox__hint { font-size: 11px; color: var(--frek-text-mute); }
.frek-helpcard__body { padding: 4px 16px 16px; font-size: 12px; color: var(--frek-text-2); line-height: 1.5; }

@media (max-width: 900px) {
  .frek-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frek-cardgrid { grid-template-columns: 1fr; }
}

/* ============================================================================
   Settings hub (page 9 · Figma 4330:136)
   ============================================================================ */
.frek-setgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.frek-setcard { padding: 0 0 6px; }
.frek-setcard__hdr {
  font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--frek-text-mute); padding: 16px 16px 10px; border-bottom: 1px solid var(--frek-border);
}
.frek-setrow {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  border-bottom: 1px solid var(--frek-border); text-decoration: none; color: var(--frek-text); font-size: 13px;
}
.frek-setcard .frek-setrow:last-child { border-bottom: none; }
.frek-setrow:hover { background: var(--frek-bg); }
.frek-setrow > span:first-child { flex: 1 1 auto; min-width: 0; }
.frek-setrow__count { font-size: 11px; color: var(--frek-text-mute); }
.frek-setrow__ico { flex: none; width: 22px; text-align: center; color: var(--frek-gold-ink, #8a6d00); font-size: 14px; }
.frek-setrow--soon .frek-setrow__ico { color: var(--frek-text-mute); }
.frek-setrow__arrow { color: var(--frek-text-mute); font-size: 14px; }
.frek-setrow--soon { color: var(--frek-text-mute); }
.frek-backlink { display: inline-block; font-size: 12px; color: var(--frek-text-mute); text-decoration: none; margin-bottom: 4px; }
.frek-backlink:hover { color: var(--frek-text); }

@media (max-width: 900px) { .frek-setgrid { grid-template-columns: 1fr; } }

/* ---------- responsiveness ---------- */
@media (max-width: 992px) {
  .frek-grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frek-detail-grid { grid-template-columns: 1fr; }
}

/* ==================== Performance module (page 41) ==================== */
.frek-card__body { padding: 4px 16px 16px; }
.frek-card-hdr__sub { font-size: 11px; color: var(--frek-muted); font-weight: 400; margin-left: auto; }

/* completion bar inside list tables */
.frek-list-table .frek-prog { margin: 4px 0 2px; }
.frek-prog__bar { height: 100%; background: var(--frek-accent); border-radius: 3px; }
.frek-prog__bar.is-full { background: #16A34A; }
.frek-prog__bar.is-part { background: #F59E0B; }
.frek-prog__pct { display: block; font-size: 11px; color: var(--frek-muted); }
.frek-num-blue { color: #2563EB; font-weight: 600; }
.frek-num-green { color: #16A34A; font-weight: 600; }

/* wider-left two-column split */
.frek-2col--wide > .frek-card:first-child { flex: 2 1 0; }
.frek-2col--wide > .frek-card:last-child { flex: 1 1 0; }

/* competency group cards */
.frek-grpcard { display: block; text-decoration: none; background: #F9F9FA; border: 1px solid var(--frek-border); border-radius: 10px; padding: 12px; margin-top: 10px; color: inherit; }
.frek-grpcard:hover { border-color: var(--frek-accent); }
.frek-grpcard__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.frek-grpcard__title { font-weight: 600; font-size: 13px; }
.frek-grpcard__meta { font-size: 11px; color: var(--frek-muted); }
.frek-chip-sm { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 10px; background: #EEF0F3; color: #4B5563; }

/* type legend */
.frek-legend { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--frek-border); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.frek-legend__label { font-size: 11px; color: var(--frek-muted); width: 100%; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* evaluation-usage / group-member cards */
.frek-usecard { background: #F9F9FA; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.frek-usecard b { font-size: 13px; }
.frek-usecard__sec { font-size: 11px; color: var(--frek-muted); }
.frek-usecard__wt { font-size: 11px; color: #16A34A; font-weight: 600; }
.frek-help-sub { font-size: 11px; color: var(--frek-muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 6px; }
/* subtitle at top of a standard side-panel region body (replaces card-hdr__sub) */
.frek-side-sub { font-size: 11px; color: var(--frek-muted); margin: -2px 0 12px; }

/* employee photo upload card */
.frek-photocard .t-Region-body { max-width: 100%; }
.frek-photo-img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 1px solid var(--frek-border); display: block; margin: 0 auto; }

/* ---------------------------------------------------------------------
   Employee photo card: the picture is the content, so let it fill the
   card instead of sitting as a thumbnail inside a stack of labels,
   links and helper text.
   --------------------------------------------------------------------- */
.frek-photocard .frek-uploadbox { padding: 0; gap: 8px; }
/* The image comes from the region's dynamic content and the picker is a
   separate page item, which APEX emits first. Flex ordering puts the picture on
   top without restructuring the markup. Selectors verified against the rendered
   DOM: the region body's children are .t-Region-orderBy, .container (the item
   grid) and the <a-dynamic-content> custom element -- an earlier guess at
   .js-apex-region / .t-Form-fieldContainer matched none of them. */
.frek-photocard .t-Region-body { display: flex; flex-direction: column; }
.frek-photocard .t-Region-body > .t-Region-orderBy { order: 0; }
.frek-photocard .t-Region-body > a-dynamic-content  { order: 1; }
.frek-photocard .t-Region-body > .container         { order: 2; }
.frek-photocard .frek-photo-img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  max-width: none; border-radius: 12px;
}
.frek-photocard .frek-uploadbox__hint { font-size: 10.5px; opacity: .7; text-align: center; }

/* Compact controls under the image: two icon buttons, no labels. The card
   heading already says Employee Photo, and APEX's own file-browse glyph reads
   as a generic document rather than a picture.
   a-file-upload renders into the light DOM, so its parts are styleable
   directly -- verified against the rendered markup before writing these. The
   accessible names survive: the choose button keeps aria-label="Choose File"
   and the download anchor keeps its text (font-size:0 hides it visually but
   leaves it in the accessibility tree). */
.frek-photocard .t-Form-labelContainer { display: none !important; }
.frek-photocard .t-Form-fieldContainer { margin: 10px 0 0 !important; }
.frek-photocard a-file-upload {
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.frek-photocard .a-FileDrop {
  display: inline-flex; align-items: center;
  padding: 0; border: 0; background: none; min-height: 0;
}
.frek-photocard .a-FileDrop-body,
.frek-photocard .a-FileDrop-progress { display: none !important; }
.frek-photocard .a-FileDrop-icon { margin: 0; }
.frek-photocard .a-FileDrop-action .a-Button {
  font-size: 0 !important; padding: 0 !important; height: auto !important;
  border: 0 !important; background: none !important; box-shadow: none !important;
}
/* camera, for replacing the picture */
.frek-photocard .a-FileDrop-icon .a-Icon::before { content: "" !important; }
.frek-photocard .a-FileDrop-icon .a-Icon {
  width: 20px; height: 20px; display: inline-block;
  background-repeat: no-repeat; background-position: center; background-size: 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6168' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5A1.5 1.5 0 0 1 4.5 7h2.2l1.2-2h8.2l1.2 2h2.2A1.5 1.5 0 0 1 21 8.5v9A1.5 1.5 0 0 1 19.5 19h-15A1.5 1.5 0 0 1 3 17.5z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E");
}
/* download arrow, replacing the "Download" text link */
.frek-photocard .a-FileDrop-download {
  font-size: 0 !important; display: inline-block;
  width: 26px; height: 26px; border-radius: 6px; vertical-align: middle;
  background-repeat: no-repeat; background-position: center; background-size: 17px 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6168' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11'/%3E%3Cpath d='m7.5 10 4.5 4.5 4.5-4.5'/%3E%3Cpath d='M4.5 20h15'/%3E%3C/svg%3E");
}
.frek-photocard .a-FileDrop-download:hover,
.frek-photocard .a-FileDrop-icon .a-Icon:hover { background-color: #F1F2F4; }

.frek-photo-empty {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
  border: 1px dashed var(--frek-border); background: #F9F9FA;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--frek-text-mute);
}
.frek-photo-empty span { font-size: 34px; line-height: 1; opacity: .5; }
.frek-photo-empty div { font-size: 11.5px; }
/* photo rendered inside a circular avatar slot */
.frek-avatar-img { object-fit: cover; padding: 0 !important; background: none !important; }

/* tinted note banners (job-action intro notes, success messages) */
.frek-note { border-radius: 8px; padding: 11px 14px; font-size: 12.5px; line-height: 1.5; }
.frek-note--info    { background: #EEF4FF; color: #1E40AF; }
.frek-note--danger  { background: #FEECEC; color: #B42318; }
.frek-note--warn    { background: #FEF6E7; color: #92400E; }
.frek-note--purple  { background: #F3EEFE; color: #6D28D9; }
.frek-note--success { background: #E7F8EF; color: #15803D; }

/* Applies-To (targeting) panel header */
.frek-targethdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.frek-targethdr__btns { display: flex; gap: 8px; }

/* custom modal dialog (Add Competency / Add Item on the definition editor) */
.frek-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
.frek-modal.is-shown { display: flex; }
.frek-modal__bd { position: absolute; inset: 0; background: rgba(17, 17, 17, .45); }
.frek-modal__card { position: relative; z-index: 1; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); width: 460px; max-width: calc(100vw - 40px); overflow: hidden; }
.frek-modal__hdr { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--frek-border); font-weight: 600; font-size: 15px; }
.frek-modal__x { background: none; border: none; font-size: 22px; line-height: 1; color: #9CA3AF; cursor: pointer; padding: 0; }
.frek-modal__x:hover { color: var(--frek-text); }
.frek-modal__body { padding: 18px 20px; }
.frek-modal__lbl { display: block; font-size: 11px; font-weight: 500; color: var(--frek-muted); margin-bottom: 5px; }
.frek-modal__ctl { width: 100%; height: 40px; padding: 0 11px; background: #F9F9FA; border: 1px solid var(--frek-border); border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.frek-modal__ctl:focus { outline: none; border-color: var(--frek-accent); background: #fff; }
.frek-modal__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.frek-modal__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--frek-border); background: #FCFCFD; }
/* reusable delete-confirmation dialog */
.frek-modal__card--sm { width: 384px; text-align: center; }
.frek-confirm__icon { width: 48px; height: 48px; border-radius: 50%; background: #FEECEC; color: #DC2626; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 22px auto 6px; }
.frek-confirm__icon--warn { background: #FFF4D6; color: #B7791F; }
.frek-confirm__title { font-weight: 700; font-size: 16px; margin: 6px 22px 6px; }
.frek-confirm__msg { font-size: 13px; color: var(--frek-muted); margin: 0 26px 10px; line-height: 1.5; }
.frek-modal__actions--center { justify-content: center; border-top: none; background: transparent; padding: 8px 20px 20px; }
.frek-btn--danger-solid { background: #DC2626; color: #fff; border: none; }
.frek-btn--danger-solid:hover { background: #B91C1C; color: #fff; }

/* definition-editor competency rows */
.frek-evalrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-left: 3px solid var(--frek-accent); background: #F9F9FA; border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.frek-evalrow__main { display: flex; flex-direction: column; gap: 2px; }
.frek-evalrow__main b { font-size: 13px; }
.frek-evalrow__sec { font-size: 11px; color: var(--frek-muted); }
.frek-evalrow__wt { font-size: 11px; }
.frek-req { color: #2563EB; font-weight: 600; }
.frek-asset { color: #D97706; font-weight: 600; }
.frek-evalrow__del, .frek-itemrow .frek-evalrow__del { color: #9CA3AF; text-decoration: none; font-size: 18px; line-height: 1; }
.frek-evalrow__del:hover { color: #DC2626; }
.frek-sumbar { margin-top: 6px; padding: 8px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; text-align: center; }
.frek-sumbar.is-ok { background: #DCFCE7; color: #166534; }
.frek-sumbar.is-warn { background: #FEF3C7; color: #92400E; }
.frek-itemrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border: 1px solid var(--frek-border); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.frek-itemrow__txt { font-size: 12px; margin-bottom: 4px; }

/* period timeline */
.frek-timeline { display: flex; flex-direction: column; padding: 4px 0; }
.frek-tl__row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.frek-tl__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--frek-border); margin-top: 3px; flex: 0 0 auto; box-shadow: 0 0 0 3px #fff; }
.frek-tl__row.is-done .frek-tl__dot { background: #16A34A; }
.frek-tl__row b { display: block; font-size: 12px; }
.frek-tl__row span { display: block; font-size: 11px; color: var(--frek-muted); }

/* add-child area on the definition editor */
.frek-childadd .frek-childadd-hdr { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.frek-childadd-actions { display: flex; gap: 8px; margin-top: 8px; }
.frek-btn--block { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
.frek-btn--wide-green { display: block; width: 100%; text-align: center; background: #16A34A; color: #fff; border: none; margin-top: 10px; }
.frek-btn--wide-green:hover { background: #15803D; color: #fff; }

/* ---------- My Performance (page 42): evaluation cards ---------- */
.frek-evalcards { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.frek-evalcard {
  display: flex; align-items: stretch; gap: 20px;
  background: var(--frek-surface); border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card); padding: 18px 20px; text-decoration: none;
  border-left: 4px solid var(--frek-accent);
}
.frek-evalcard:hover { box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.frek-evalcard__main { flex: 1 1 auto; min-width: 0; }
.frek-evalcard__title { font-size: 15px; font-weight: 600; color: var(--frek-text); }
.frek-evalcard__sub { font-size: 12px; color: var(--frek-text-2); margin-top: 2px; }
.frek-evalcard__meta { font-size: 12px; color: var(--frek-text-mute); margin-top: 2px; }
.frek-evalcard__prog { flex: 0 0 300px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.frek-progline { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--frek-text-2); }
.frek-progline > span:first-child { flex: 0 0 88px; }
.frek-progline__n { flex: 0 0 auto; color: var(--frek-status-info); font-weight: 600; }
.frek-evalcard__open { align-self: flex-end; margin-top: 4px; }
.frek-sectionhdr { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--frek-text-mute); margin: 22px 0 10px; }
.frek-prevlist { padding: 4px 0; }
.frek-prevrow { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; text-decoration: none; border-top: 1px solid var(--frek-border); color: var(--frek-text); }
.frek-prevrow:first-of-type { border-top: none; }
.frek-prevrow:hover { background: var(--frek-bg); }
.frek-prevrow__right { display: flex; align-items: center; gap: 14px; }
.frek-prevrow__score { font-size: 12px; color: var(--frek-text-2); font-weight: 600; }

/* ---------- Assessment form (page 42): per-item multi-party cards ---------- */
.frek-itemcard {
  display: flex; gap: 24px; align-items: stretch;
  background: var(--frek-surface); border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card); padding: 16px 18px; margin-bottom: 12px;
  border-left: 4px solid var(--frek-accent);
}
.frek-itemcard__meta { flex: 1 1 auto; min-width: 0; }
.frek-itemcard__title { font-size: 14px; font-weight: 600; color: var(--frek-text); }
.frek-itemcard__sub { font-size: 12px; color: var(--frek-text-mute); margin-top: 2px; }
.frek-itemcard__ev { flex: 0 0 400px; }
.frek-evhdr { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--frek-text-mute); margin-bottom: 4px; }
.frek-evrow { display: flex; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 6px; }
.frek-evrow.is-active { background: rgba(37,99,235,.08); }
.frek-evrow.is-final  { background: rgba(22,140,86,.12); }
.frek-evrow__role { flex: 0 0 66px; font-size: 11px; font-weight: 600; color: var(--frek-text); }
.frek-evrow.is-final .frek-evrow__role { color: #167A45; }
.frek-evrow__score { flex: 0 0 34px; font-size: 12px; font-weight: 700; color: var(--frek-status-info); }
.frek-evrow.is-final .frek-evrow__score { color: #167A45; }
.frek-evrow__cmt { flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--frek-text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frek-badge--mid { background: #EDE9FE; color: #6D28D9; font-size: 10px; }

/* ---------- My Team hub (page 5) ---------- */
.frek-hubsection { margin-top: 22px; }
.frek-kpi__sub { font-size: 11px; color: var(--frek-text-mute); margin-top: 2px; }
.frek-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.frek-chips .frek-chip { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--frek-bg); color: var(--frek-text-2); border: 1px solid var(--frek-border); }
.frek-chips .frek-chip.is-blue  { background: #EFF6FF; color: #1E40AF; border-color: #DBEAFE; }
.frek-chips .frek-chip.is-amber { background: #FFF7ED; color: #B45309; border-color: #FED7AA; }
.frek-chips .frek-chip.is-green { background: #ECFDF5; color: #167A45; border-color: #D1FAE5; }

/* ---------- My Team: attendance heatmap + sparkline ---------- */
.frek-spark { width: 100%; height: 52px; display: block; margin-top: 8px; }
.frek-hm { border-collapse: separate; border-spacing: 4px; font-size: 12px; width: 100%; }
.frek-hm thead th { font-size: 11px; color: var(--frek-text-mute); font-weight: 600; text-align: center; padding: 4px; }
.frek-hm thead th span { display: block; font-size: 10px; color: var(--frek-text-2); }
.frek-hm__whohdr { text-align: left !important; }
.frek-hm__who { text-align: left; font-weight: 600; color: var(--frek-text); white-space: nowrap; padding-right: 10px; }
.frek-hm__cell { min-width: 58px; height: 40px; text-align: center; border-radius: 6px; color: #0E3B2A; font-weight: 600; position: relative; padding: 3px 4px; vertical-align: middle; }
.frek-hm__hrs { display: block; line-height: 1.1; }
.frek-hm__time { display: block; font-size: 9px; font-weight: 600; color: #0E3B2A; opacity: .7; margin-top: 1px; white-space: nowrap; letter-spacing: -.2px; }
.frek-hm__time i { font-style: normal; margin: 0 1px; opacity: .6; }
.frek-hm__tot { font-weight: 700; color: var(--frek-status-info); text-align: center; }
.frek-hm__lost { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #DC2626; position: absolute; top: 3px; right: 3px; }

/* 14-day labelled team-hours bar chart */
.frek-bars { display: flex; align-items: flex-end; gap: 5px; height: 132px; margin-top: 10px; padding-top: 14px; }
.frek-bars__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.frek-bars__val { font-size: 10px; font-weight: 700; color: var(--frek-text-2); height: 14px; line-height: 14px; }
.frek-bars__track { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.frek-bars__bar { width: 62%; min-height: 2px; background: #2563EB; opacity: .78; border-radius: 3px 3px 0 0; transition: opacity .15s; }
.frek-bars__col:hover .frek-bars__bar { opacity: 1; }
.frek-bars__day { margin-top: 6px; font-size: 10px; color: var(--frek-text-mute); text-align: center; line-height: 1.15; }
.frek-bars__day b { display: block; font-weight: 700; color: var(--frek-text); font-size: 11px; }
.frek-bars__day span { display: block; font-size: 9px; }

/* Client-side search bar (switch company, errors & skips, etc.) */
.frek-searchbar { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 0 12px; border: 1px solid var(--frek-border); border-radius: 8px; background: var(--frek-surface); }
.frek-searchbar:focus-within { border-color: var(--frek-accent); box-shadow: 0 0 0 3px rgba(255,214,0,.18); }
.frek-searchbar__icon { flex: 0 0 auto; color: var(--frek-text-mute); font-size: 12px; pointer-events: none; }
.frek-searchbar__input { flex: 1 1 auto; border: none; outline: none; background: transparent; padding: 8px 0; font-size: 13px; color: var(--frek-text); width: 240px; }
.frek-searchbar--sm { margin: 0 0 0 auto; padding: 0 10px; gap: 8px; }
.frek-searchbar--sm .frek-searchbar__icon { font-size: 11px; }
.frek-searchbar--sm .frek-searchbar__input { width: 160px; font-size: 12px; padding: 5px 0; }
.frek-hm__legend { display: flex; gap: 18px; margin-top: 12px; font-size: 11px; color: var(--frek-text-2); align-items: center; }
.frek-hm__legend span { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.frek-hm__legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; position: static; }

/* ---------- Edit-screen side panels (blank region styled as a card) ---------- */
.frek-sidecard {
  background: var(--frek-surface);
  border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card);
  padding: 20px 22px;
}
.frek-sidecard .frek-card-hdr { margin: -4px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--frek-border); }

/* ---------- clickable card (Job Performance -> My Evaluations) ---------- */
a.frek-cardlink { display: block; text-decoration: none; color: inherit; transition: box-shadow .12s; }
a.frek-cardlink:hover { box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.frek-cardlink__go { color: var(--frek-text-mute); font-weight: 700; margin-left: 6px; }
a.frek-cardlink:hover .frek-cardlink__go { color: var(--frek-status-info); }

/* ---------- assessment form: editable scoring rows ---------- */
.frek-evrow.is-edit { background: rgba(37,99,235,.06); padding-top: 6px; padding-bottom: 6px; }
.frek-ev-score { flex: 0 0 58px; width: 58px; padding: 5px 6px; border: 1px solid var(--frek-border); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--frek-status-info); text-align: center; }
.frek-ev-cmt { flex: 1 1 auto; min-width: 0; padding: 5px 8px; border: 1px solid var(--frek-border); border-radius: 6px; font-size: 11px; }
.frek-ev-score:focus, .frek-ev-cmt:focus { outline: none; border-color: var(--frek-status-info); box-shadow: 0 0 0 2px rgba(37,99,235,.15); }
.frek-savebar { margin-top: 16px; display: flex; justify-content: flex-end; }

/* ---------- assessment Summary tab ---------- */
.frek-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .frek-2col { grid-template-columns: 1fr; } }
.frek-scoresum { display: flex; align-items: center; gap: 24px; padding: 14px 4px 18px; }
.frek-scoresum__scorebox { display: flex; align-items: baseline; gap: 4px; }
.frek-scoresum__big { font-size: 44px; font-weight: 700; color: var(--frek-status-info); line-height: 1; }
.frek-scoresum__max { font-size: 15px; color: var(--frek-text-mute); }
.frek-scoresum__split { display: flex; gap: 28px; }
.frek-scoresum__split > div { display: flex; flex-direction: column; }
.frek-scoresum__split span { font-size: 11px; color: var(--frek-text-mute); }
.frek-scoresum__split b { font-size: 15px; color: var(--frek-text); }
.frek-scoresum__split small { font-size: 10px; color: var(--frek-text-mute); }
.frek-recap { border-top: 1px solid var(--frek-border); padding-top: 8px; }
.frek-recap__row { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid var(--frek-border); font-size: 12px; }
.frek-recap__row:last-child { border-bottom: none; }
.frek-recap__row span { color: var(--frek-text-2); }
.frek-recap__row b { color: var(--frek-status-info); }

/* ---------- My Team: overview action cards + captions ---------- */
.frek-cap { font-size: 11px; color: var(--frek-text-mute); margin: 2px 0 8px; }
.frek-actioncard {
  flex: 1 1 0; min-width: 180px; text-decoration: none;
  background: var(--frek-surface); border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card); padding: 18px 20px; border-left: 4px solid var(--frek-accent);
}
.frek-actioncard:hover { box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.frek-actioncard__n { font-size: 30px; font-weight: 700; color: var(--frek-text); line-height: 1; }
.frek-actioncard__l { font-size: 12px; color: var(--frek-text-2); margin-top: 4px; }

/* ---------- assessment CTA banner ---------- */
.frek-cta {
  background: #EFF6FF; border: 1px solid #DBEAFE; color: #1E40AF;
  border-radius: 10px; padding: 14px 16px; font-size: 13px; line-height: 1.5; margin-bottom: 16px;
}
.frek-cta b { color: #1E3A8A; }

/* ---------- #9: multi-line text inputs span the full row width ---------- */
.t-Form-fieldContainer textarea,
textarea.text_field,
textarea.apex-item-textarea,
textarea.apex-item-auto-height { width: 100% !important; box-sizing: border-box; }

/* ---------- #1-3: two-column edit screens — top-align form card & side card ---------- */
.t-Body-content .container > .row { align-items: flex-start; }
.frek-editcard, .frek-sidecard { margin-top: 0 !important; }
.frek-sidecard { align-self: flex-start; }

/* ---------- Switch Company (page 90) ---------- */
.frek-evalcard.is-current { border-left-color: #167A45; background: #F6FEF9; }

/* ---------- Overview tab: star ratings + polished summary ---------- */
.frek-stars { position: relative; display: inline-block; white-space: nowrap; font-size: 15px; line-height: 1; letter-spacing: 2px; vertical-align: middle; }
.frek-stars__bg { color: #D7DEE8; }
.frek-stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #2563EB; }
.frek-sumhead { display: flex; align-items: center; gap: 22px; padding: 6px 2px 18px; flex-wrap: wrap; }
.frek-sumhead__stars { display: flex; align-items: center; gap: 8px; }
.frek-sumhead__overall .frek-stars { font-size: 17px; }
.frek-sumhead__num { font-size: 13px; font-weight: 700; color: var(--frek-text-2); }
.frek-sumhead__lbl { font-size: 12px; color: var(--frek-text-mute); margin-top: 4px; }
.frek-sumhead__sep { width: 1px; align-self: stretch; min-height: 42px; background: var(--frek-border); }
.frek-sumhead__n { font-size: 21px; font-weight: 700; color: var(--frek-text); line-height: 1; }
.frek-sumhead__k { font-size: 12px; color: var(--frek-text); margin-top: 4px; }
.frek-sumhead__k span { display: block; color: var(--frek-text-mute); font-size: 11px; }
/* compact variant shown on the My Evaluations cards (mirrors the Overview summary header) */
.frek-sumhead--card { gap: 14px; padding: 0 0 10px; margin-bottom: 8px; border-bottom: 1px solid var(--frek-border); }
.frek-sumhead--card .frek-sumhead__stars { color: var(--frek-accent); font-size: 15px; font-weight: 700; }
.frek-sumhead--card .frek-sumhead__num { font-size: 16px; color: var(--frek-text); }
.frek-sumhead--card .frek-sumhead__max { font-size: 11px; color: var(--frek-text-mute); font-weight: 600; }
.frek-sumhead--card .frek-sumhead__lbl { font-size: 10px; margin-top: 2px; }
.frek-sumhead--card .frek-sumhead__n { font-size: 16px; }
.frek-sumhead--card .frek-sumhead__k { font-size: 10px; }
.frek-sumhead--card .frek-sumhead__sep { min-height: 28px; }
.frek-scoretbl { margin-top: 2px; }
.frek-scorerow { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px; }
.frek-scorerow:nth-child(odd) { background: #F7F9FC; }
.frek-scorerow__nm { font-size: 13px; color: var(--frek-text); padding-right: 12px; }
.frek-scorerow.is-off .frek-scorerow__nm { color: var(--frek-text-mute); font-style: italic; }
.frek-scorerow__sc { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.frek-scorerow__sc b { font-size: 13px; color: var(--frek-text-2); min-width: 24px; text-align: right; }
.frek-mgrrow { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--frek-border); }
.frek-mgrrow__k { font-size: 13px; color: var(--frek-text-2); }
.frek-mgrrow__k.is-i { font-style: italic; color: var(--frek-text-mute); }
.frek-mgrrow__v { font-size: 15px; font-weight: 700; color: var(--frek-text); }
.frek-mgrrow__v.is-mute { color: var(--frek-text-mute); font-weight: 600; }
.frek-mgrrow__v.is-blue { color: var(--frek-status-info); }
.frek-overallbox { display: flex; align-items: center; justify-content: space-between; background: #EFF4FE; border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.frek-overallbox__k { font-size: 14px; font-weight: 700; color: var(--frek-status-info); }
.frek-overallbox__v { display: flex; align-items: center; gap: 8px; }
.frek-overallbox__v .frek-stars { font-size: 16px; }
.frek-overallbox__v b { color: var(--frek-status-info); font-size: 15px; }
.frek-metricgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.frek-metricbox { background: #F4F6FA; border-radius: 10px; padding: 15px 16px; text-align: center; }
.frek-metricbox--wide { width: 100%; }
.frek-metricbox__k { font-size: 11px; letter-spacing: .04em; color: var(--frek-text-mute); }
.frek-metricbox__v { font-size: 16px; font-weight: 700; color: var(--frek-text); margin-top: 5px; }
.frek-payhdr { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--frek-text-mute); margin: 18px 0 2px; }
.frek-locknote { display: flex; gap: 10px; align-items: flex-start; background: var(--frek-bg); border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-size: 12px; color: var(--frek-text-2); line-height: 1.5; }
.frek-locknote__ic { color: var(--frek-text-mute); flex: 0 0 auto; }
.frek-mask { color: #CBD5E1; letter-spacing: 1px; }
.frek-note--caps { text-transform: uppercase; font-size: 11px; letter-spacing: .03em; font-weight: 600; }

/* ---------- Legal-Entity switcher pill (top-right nav) ---------- */
.t-Header .frek-orgpill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 12px; background: rgba(255,255,255,.08); }
.t-Header .frek-orgpill:hover { background: rgba(255,255,255,.14); }
.frek-orgpill__mono { width: 30px; height: 30px; border-radius: 8px; background: #111827; color: var(--frek-accent); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .5px; }
.frek-orgpill__name { font-weight: 600; font-size: 14px; color: #fff; }
/* hide the default nav-bar dropdown caret on the switcher */
.t-Header li.frek-orgswitch-li .a-Icon.icon-menu-drop-down,
.t-Header li.frek-orgswitch-li .t-Header-navBar-caret,
.t-Header li.frek-orgswitch-li .fa-angle-down { display: none !important; }
/* Prevent the on-every-navigation flash: keep the raw switcher entry (still holding
   the .fa-building icon) hidden until orgpill-js rebuilds it into the pill. This rule
   is in the render-blocking head CSS, so the raw text never paints. Once JS runs, the
   anchor no longer contains .fa-building, so it falls back to visible automatically. */
.t-Header a:has(.fa-building) { visibility: hidden; }
.t-Header a:has(.frek-orgpill) { visibility: visible; }

/* ---------- Talent 9-Box grid (Performance › Talent 9-Box) ---------- */
.frek-9box-wrap { display: flex; gap: 16px; align-items: flex-start; margin-top: 4px; }
.frek-9box { flex: 1 1 auto; display: grid; grid-template-columns: 96px 1fr 1fr 1fr; gap: 8px; }
.frek-9box__corner { }
.frek-9box__colhdr { display: flex; align-items: flex-end; justify-content: center; font-size: 11px; font-weight: 600; color: var(--frek-text-2); padding-bottom: 6px; text-align: center; }
.frek-9box__rowhdr { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; font-size: 13px; font-weight: 700; color: #111; }
.frek-9box__rowhdr span { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #9aa0aa; margin-top: 2px; }
.frek-9box__cell { min-height: 168px; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.frek-9box__cell-hd { font-size: 13px; font-weight: 700; }
.frek-9box__cell-cnt { font-size: 11px; color: var(--frek-text-2); margin: 2px 0 8px; }
.frek-9box__chips { display: flex; flex-direction: column; gap: 4px; margin-top: auto; max-height: 108px; overflow: auto; }
.frek-9box__chip { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #333; white-space: nowrap; }
.frek-9box__ava { width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--cc, #555); border: 1px solid rgba(0,0,0,.06); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex: 0 0 auto; }
.frek-9box__empty { font-size: 10px; color: #9aa0aa; margin-top: auto; }
.frek-9box-legend { width: 220px; flex: 0 0 auto; background: #fff; border-radius: 12px; box-shadow: var(--frek-shadow-card); padding: 14px 16px; }
.frek-9box-legend h4 { margin: 0 0 6px; font-size: 13px; color: #111; }
.frek-9box-legend__row { display: flex; gap: 8px; padding: 5px 0; align-items: flex-start; }
.frek-9box-legend__dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 3px; flex: 0 0 auto; }
.frek-9box-legend__name { font-size: 11px; font-weight: 600; }
.frek-9box-legend__desc { font-size: 9px; color: var(--frek-text-2); }
@media (max-width: 1100px) { .frek-9box-wrap { flex-direction: column; } .frek-9box-legend { width: 100%; } }

/* ---------- My Team roster live-status dot ---------- */
.frek-status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.frek-status-dot--success { background: #16A34A; }
.frek-status-dot--warn    { background: #D97706; }
.frek-status-dot--danger  { background: #DC2626; }
.frek-status-dot--info    { background: #2563EB; }
.frek-status-dot--muted   { background: #9AA0AA; }
.frek-teamfull-asof { float: right; font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; }

/* ---------- Pay-outcome editor (manager/mediator appraisal summary) ---------- */
.frek-porow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.frek-porow__k { font-size: 12px; color: var(--frek-text-2); font-weight: 500; }
.frek-po-input { width: 130px; padding: 6px 8px; border: 1px solid var(--frek-border); border-radius: 7px; font-size: 13px; text-align: right; background: #fff; }
.frek-po-input:focus { outline: none; border-color: var(--frek-accent); box-shadow: 0 0 0 2px rgba(255,214,0,.25); }
.frek-po-hint { font-size: 10px; color: var(--frek-text-2); margin-top: 8px; line-height: 1.5; }

/* ---------- Pay Run (page 50): quick-links + lifecycle stepper ---------- */
.frek-quicklinks { display: flex; gap: 22px; margin: 2px 0 14px; flex-wrap: wrap; }
.frek-quicklink { font-size: 12px; font-weight: 600; color: #2563EB; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.frek-quicklink span { color: #9AA0AA; }
.frek-quicklink:hover { text-decoration: underline; }
.frek-runsteps { display: flex; align-items: flex-start; background: #fff; border-radius: 12px; box-shadow: var(--frek-shadow-card); padding: 18px 24px; margin-bottom: 14px; }
.frek-runstep { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; text-align: center; }
/* connector line runs between the circles (at circle-centre height), behind them, so it never crosses the labels below */
.frek-runstep:not(:last-child)::after { content: ""; position: absolute; left: 50%; right: -50%; top: 14px; height: 2px; background: #E8E8E8; z-index: 0; }
.frek-runstep.is-done::after { background: #16A34A; }
.frek-runstep__dot { width: 28px; height: 28px; border-radius: 50%; background: #EEF0F3; color: #999; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; z-index: 1; flex: 0 0 auto; }
.frek-runstep.is-active .frek-runstep__dot { background: var(--frek-accent); color: #0E0E0E; }
.frek-runstep.is-done .frek-runstep__dot { background: #16A34A; color: #fff; }
.frek-runstep__lbl { font-size: 12px; font-weight: 600; color: #999; line-height: 1.2; }
.frek-runstep.is-active .frek-runstep__lbl, .frek-runstep.is-done .frek-runstep__lbl { color: #111; }

/* ---- Pay-run lifecycle: payslip / approve / finalise ---- */
.frek-statgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frek-row-total td { border-top: 2px solid var(--frek-border); background: var(--frek-bg); }
.frek-row-total:hover td { background: var(--frek-bg); }
.frek-paynet { display: flex; align-items: center; justify-content: space-between; background: #0E0E0E; color: #fff; border-radius: 12px; padding: 18px 24px; margin-top: 4px; font-weight: 700; font-size: 15px; }
.frek-paynet__amt { font-size: 22px; color: var(--frek-accent); }
.frek-preflight { display: flex; flex-direction: column; gap: 8px; }
.frek-preflight__row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--frek-text); }
.frek-preflight__row span { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.frek-preflight__row--ok span { background: #DCFCE7; color: #16A34A; }
.frek-preflight__row--warn span { background: var(--frek-badge-warn-bg); color: var(--frek-status-warn); }
.frek-banner { border-radius: 12px; padding: 14px 18px; font-size: 13px; font-weight: 600; margin-top: 4px; }
.frek-banner--ok { background: #DCFCE7; color: #15803D; }
.frek-banner--warn { background: var(--frek-badge-warn-bg); color: var(--frek-status-warn); }
.frek-banner--info { background: var(--frek-badge-info-bg); color: var(--frek-status-info); }
.frek-var-up { color: #15803D; font-weight: 700; }
.frek-var-dn { color: #DC2626; font-weight: 700; }

/* Pay Run Inputs workbench (per-employee) */
.frek-inp-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; align-items: start; }
.frek-inp-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.frek-inp-main .frek-card { margin: 0; }
.frek-inp-side { position: sticky; top: 12px; }
.frek-inp-side .frek-card { margin: 0; padding: 16px; }
.frek-empsel { padding: 6px 10px; border: 1px solid var(--frek-border); border-radius: 8px; font-size: 13px; background: var(--frek-surface); color: var(--frek-text); max-width: 220px; }
.frek-addrow { color: #2563EB; font-weight: 600; font-size: 12px; text-decoration: none; }
.frek-addrow:hover { text-decoration: underline; }
.frek-addrow-tr td { background: var(--frek-bg); text-align: center; padding: 10px !important; }
.frek-addrow-tr:hover td { background: var(--frek-bg); }
.frek-iconbtn { border: none; background: transparent; color: var(--frek-text-mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 6px; }
.frek-iconbtn:hover { background: #FEE2E2; color: #DC2626; }
.frek-iconbtn--go:hover { background: #DCFCE8; color: var(--frek-status-active, #16A34A); }
.frek-btn--block { display: block; width: 100%; text-align: center; }
.frek-inp-summary td { padding: 8px 4px; font-size: 12px; border-bottom: 1px solid var(--frek-border); }
@media (max-width: 1100px) { .frek-inp-grid { grid-template-columns: 1fr; } .frek-inp-side { position: static; } }

/* Add-dialog computed-amount box + reference panels */
.frek-amtbox { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.frek-amtbox__lbl { font-size: 11px; font-weight: 600; color: #2563EB; text-transform: uppercase; letter-spacing: .02em; }
.frek-amtbox__val { font-size: 22px; font-weight: 700; color: #1E3A8A; margin-top: 2px; }
.frek-refcard { background: var(--frek-surface); border: 1px solid var(--frek-border); border-radius: 12px; padding: 16px 18px; }
.frek-refcard__hdr { font-size: 14px; font-weight: 700; color: var(--frek-text); }
.frek-refcap { font-size: 12px; color: var(--frek-text-mute); margin: 2px 0 4px; }
.frek-refsec { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--frek-text-mute); margin: 16px 0 8px; border-bottom: 1px solid var(--frek-border); padding-bottom: 6px; }
.frek-refrow { margin-bottom: 9px; font-size: 12px; line-height: 1.45; }
.frek-refrow b { display: inline-block; color: #2563EB; font-weight: 700; }
.frek-refrow span { display: block; color: var(--frek-text-2); }
.frek-refprio { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--frek-text); margin-bottom: 8px; }
.frek-refprio__n { flex: 0 0 auto; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.frek-refprio__n--r { background: #FEE2E2; color: #B91C1C; }
.frek-refprio__n--a { background: #FEF3C7; color: #B45309; }
.frek-refprio__n--g { background: #DCFCE7; color: #15803D; }
.frek-refnote { font-size: 12px; color: var(--frek-text-2); line-height: 1.5; background: var(--frek-bg); border-radius: 8px; padding: 10px 12px; }
.frek-schedtype { position: relative; border-radius: 8px; padding: 10px 12px 10px 14px; margin-bottom: 8px; font-size: 12px; line-height: 1.4; }
.frek-schedtype b { font-weight: 700; color: var(--frek-text); }
.frek-schedtype span { display: block; color: var(--frek-text-2); margin-top: 2px; }
.frek-schedtype .frek-flag { display: inline-block; float: right; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.06); color: var(--frek-text); }
.frek-schedtype--dr { background: #FEF2F2; border-left: 3px solid #DC2626; }
.frek-schedtype--cr { background: #F0FDF4; border-left: 3px solid #16A34A; }
.frek-schedtype--pu { background: #F5F3FF; border-left: 3px solid #7C3AED; }

/* compact per-row action buttons (run-detail employee register) */
.frek-rowbtns { display: inline-flex; gap: 6px; justify-content: flex-end; }
.frek-btn--mini { padding: 4px 12px; font-size: 12px; border-radius: 7px; white-space: nowrap; }
.frek-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--frek-text-mute); }
.frek-authtag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.frek-authtag--gra { background: #FEE2E2; color: #B91C1C; }
.frek-authtag--nis { background: #FEF3C7; color: #B45309; }
.frek-authtag--oth { background: var(--frek-border); color: var(--frek-text); }
.frek-countpill { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--frek-status-warn); color: #fff; font-size: 11px; font-weight: 700; }

/* Structure Org Chart (d3-org-chart alternative view, page 40) */
.frek-orgchart { width: 100%; height: 640px; background: var(--frek-bg); }
.frek-ocnode { box-sizing: border-box; height: 100%; padding: 11px 14px; background: #fff;
  border: 1px solid var(--frek-border); border-left: 4px solid var(--frek-accent);
  border-radius: 10px; box-shadow: var(--frek-shadow-card);
  display: flex; flex-direction: column; justify-content: center; }
.frek-ocnode--root { border-left-color: var(--frek-nav-bg); background: var(--frek-nav-bg); }
.frek-ocnode--root .frek-ocnode__title { color: #fff; }
.frek-ocnode--root .frek-ocnode__sub { color: rgba(255,255,255,0.6); }
.frek-ocnode__title { font-weight: 700; font-size: 13.5px; color: var(--frek-text); line-height: 1.2;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.frek-ocnode__meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.frek-ocnode__badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  background: var(--frek-border); color: var(--frek-text); }
.frek-ocnode__badge.is-full { background: #DCFCE8; color: #16A34A; }
.frek-ocnode__badge.is-part { background: #FEF3C7; color: #B45309; }
.frek-ocnode__sub { font-size: 10px; color: var(--frek-text-mute); text-transform: uppercase; letter-spacing: 0.02em; }

/* Team org tree nodes (My Team → Team → Org Tree) — with photo/initials */
.frek-tmnode { box-sizing: border-box; height: 100%; padding: 12px 14px; background: #fff;
  border: 1px solid var(--frek-border); border-radius: 12px; box-shadow: var(--frek-shadow-card);
  display: flex; align-items: center; gap: 12px; }
.frek-tmnode.is-me { border: 2px solid var(--frek-accent); }
.frek-tmnode--root { background: var(--frek-nav-bg); border: none; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: 2px; }
.frek-tmnode--root .frek-tmnode__name { color: #fff; }
.frek-tmnode--root .frek-tmnode__pos { color: rgba(255,255,255,0.6); }
.frek-tmnode__ph { width: 46px; height: 46px; min-width: 46px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; overflow: hidden; }
.frek-tmnode__id { min-width: 0; flex: 1 1 auto; }
.frek-tmnode__name { font-weight: 700; font-size: 13.5px; color: var(--frek-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frek-tmnode__pos { font-size: 11px; color: var(--frek-text-mute); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frek-tmnode__you { font-size: 9px; background: var(--frek-nav-bg); color: #fff;
  padding: 1px 6px; border-radius: 5px; margin-left: 4px; vertical-align: middle; font-weight: 700; }

/* Pay Run Inputs — searchable employee switcher relocated into the title row */
.frek-emppick-actions { display: flex; align-items: center; gap: 8px; }
.frek-emppick-actions .t-Form-fieldContainer { margin: 0 !important; padding: 0 !important; }
.frek-emppick-actions .t-Form-labelContainer { display: none !important; }
.frek-emppick-actions .t-Form-inputContainer { padding: 0 !important; }
.frek-emppick-actions .apex-item-group { min-width: 240px; }
.frek-emppick-actions input.apex-item-popup-lov,
.frek-emppick-actions input[type="text"] { min-width: 220px; height: 34px; }

/* Loans & Advances — key/value terms strip */
.frek-kv-row { display: flex; flex-wrap: wrap; gap: 28px; }
.frek-kv { display: flex; flex-direction: column; gap: 2px; }
.frek-kv > span { font-size: 11px; font-weight: 600; color: var(--frek-muted); text-transform: uppercase; letter-spacing: .02em; }
.frek-kv > b { font-size: 15px; color: var(--frek-text); }

/* ============================================================
   Sign In / Login (page 9999) — split-screen brand + form card.
   All rules scoped to .t-PageBody--login so nothing leaks.
   ============================================================ */
.t-PageBody--login {
  background: var(--frek-bg);
  /* form column is a FIXED width; the carousel flexes to fill the rest */
  --frek-login-w: 720px;
}

/* Left brand panel = full-bleed image carousel — wide screens only.
   Each slide image carries its own baked-in headline, so no CSS wordmark. */
@media (min-width: 992px) {
  .t-PageBody--login .frek-login-carousel {
    position: fixed; top: 0; bottom: 0; left: 0; right: var(--frek-login-w); width: auto;
    overflow: hidden; background: var(--frek-nav-bg); z-index: 0;
    container-type: inline-size;   /* type scales to THIS panel's width (cqi) */
  }
  .t-PageBody--login .frek-login-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center center; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1.1s ease-in-out;
  }
  .t-PageBody--login .frek-login-slide.is-active { opacity: 1; }
  /* legibility scrim over each image */
  .t-PageBody--login .frek-login-slide::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(158deg,
      rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.28) 40%, rgba(0,0,0,0.10) 66%, rgba(0,0,0,0.45) 100%);
  }
  /* decoupled caption — adaptive position + scale (container-query units) */
  .t-PageBody--login .frek-login-cap {
    position: absolute; left: 0; right: 0; top: 0; z-index: 2;
    padding: clamp(34px, 7cqi, 84px) clamp(30px, 6cqi, 76px) 0;
    color: #fff;
  }
  .t-PageBody--login .frek-login-cap__h {
    margin: 0; font-family: var(--frek-font-brand);
    font-weight: 700; text-transform: uppercase;
    font-size: clamp(26px, 6cqi, 54px); line-height: 1.07; letter-spacing: -0.5px;
    max-width: 15ch; text-shadow: 0 2px 26px rgba(0,0,0,0.5);
  }
  .t-PageBody--login .frek-login-cap__h span { color: var(--frek-accent); }
  .t-PageBody--login .frek-login-cap__p {
    margin: clamp(10px, 1.6cqi, 20px) 0 0; font-family: var(--frek-font-body);
    font-weight: 500; font-size: clamp(13px, 1.9cqi, 19px);
    color: rgba(255,255,255,0.88); letter-spacing: 0.2px; max-width: 34ch;
    text-shadow: 0 1px 14px rgba(0,0,0,0.45);
  }

  .t-PageBody--login .frek-login-dots {
    position: fixed; left: 0; right: var(--frek-login-w); width: auto; bottom: 22px;
    display: flex; gap: 8px; justify-content: center; z-index: 2; pointer-events: none;
  }
  .t-PageBody--login .frek-login-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, width 0.3s ease;
  }
  .t-PageBody--login .frek-login-dots span.is-active {
    background: var(--frek-accent); width: 20px; border-radius: 4px;
  }

  .t-PageBody--login .t-Login-container {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: 2;
    width: var(--frek-login-w) !important; max-width: none !important;
    margin: 0 !important;
    display: flex; align-items: center; justify-content: center;
  }
}
/* Carousel is desktop-only; the card centres full-width on mobile */
@media (max-width: 991px) {
  .t-PageBody--login .frek-login-carousel,
  .t-PageBody--login .frek-login-dots { display: none; }
}

/* The form card */
.t-PageBody--login .t-Login-region,
.t-PageBody--login .t-Login-container .t-Region {
  background: var(--frek-surface);
  border: 1px solid var(--frek-border);
  border-radius: var(--frek-radius-card);
  box-shadow: var(--frek-shadow-card);
  width: 100%; max-width: 404px;
  padding: 36px 34px 30px;
}

/* Logo + title + eyebrow */
.t-PageBody--login .t-Login-logo { text-align: center; margin-bottom: 8px; }
.t-PageBody--login .t-Login-logo img { max-height: 46px; width: auto; }
.t-PageBody--login .t-Login-title {
  font-family: var(--frek-font-brand);
  font-weight: 700; font-size: 22px; color: var(--frek-text);
  text-align: center; margin: 0 0 22px;
}
.t-PageBody--login .t-Login-title::after {
  content: "Enterprise HCM";
  display: block;
  font-family: var(--frek-font-body);
  font-weight: 600; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--frek-text-mute);
  margin-top: 6px;
}

/* Fields */
.t-PageBody--login .t-Form-fieldContainer { margin-bottom: 16px; }
.t-PageBody--login input[type="text"],
.t-PageBody--login input[type="password"],
.t-PageBody--login input[type="email"],
.t-PageBody--login .apex-item-text,
.t-PageBody--login .apex-item-password {
  height: 42px; width: 100%;
  border: 1px solid var(--frek-border);
  border-radius: var(--frek-radius-btn);
  padding: 0 14px 0 42px; font-size: 14px; color: var(--frek-text);
  background: var(--frek-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.t-PageBody--login input[type="text"]:focus,
.t-PageBody--login input[type="password"]:focus,
.t-PageBody--login input[type="email"]:focus {
  border-color: var(--frek-accent);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.25);
  outline: none;
}
/* Field prefix icons (fa-user / fa-key) */
.t-PageBody--login .t-Form-itemText--pre,
.t-PageBody--login .t-Form-itemWrapper .fa { color: var(--frek-text-mute); }

/* Remember-me row */
.t-PageBody--login .t-Login-rememberMe,
.t-PageBody--login .apex-item-wrapper--checkbox { margin: 2px 0 6px; }
.t-PageBody--login .t-Login-rememberMe label { color: var(--frek-text-2); font-size: 13px; }

/* Sign In button */
.t-PageBody--login .t-Login-buttons .t-Button,
.t-PageBody--login .t-Button--hot {
  background: var(--frek-accent) !important;
  color: var(--frek-accent-ink) !important;
  border: none !important;
  border-radius: var(--frek-radius-btn) !important;
  height: 44px; width: 100%;
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  box-shadow: none;
  transition: filter 0.15s ease, transform 0.05s ease;
}
.t-PageBody--login .t-Button--hot:hover { filter: brightness(0.96); }
.t-PageBody--login .t-Button--hot:active { transform: scale(0.99); }

/* brand-coloured remember-me checkbox (default browser accent is teal,
   which clashes with the gold theme; browsers pick the check glyph's
   contrast colour automatically — black on this gold, like the button) */
.t-PageBody--login input[type="checkbox"] {
  accent-color: var(--frek-accent);
  width: 15px; height: 15px;
}

/* Footer credit line */
.t-PageBody--login .t-Login-region::after,
.t-PageBody--login .t-Login-container .t-Region::after {
  content: "\00A9 2026 FREK HCM Solutions \00B7 All rights reserved";
  display: block; margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--frek-border);
  text-align: center; font-size: 11px; color: var(--frek-text-mute);
}

/* ============================================================================
   Tax & NIS Configuration (page 45) — statutory config cards, notes, slab tables
   ============================================================================ */
.frek-statcard { position: relative; background: var(--frek-surface); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07); padding: 16px 20px 18px; margin-bottom: 16px; overflow: hidden; }
.frek-statcard::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--acc, #16A085); }
.frek-statcard--nis  { --acc: #D97706; }  /* NIS — brown */
.frek-statcard--paye { --acc: #16A34A; }  /* PAYE / GRA — green */
.frek-statcard--wage { --acc: #16A085; }  /* Minimum wage — teal */
.frek-statcard__hdr { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.frek-statcard__title { font-weight: 600; font-size: 14px; color: var(--frek-text); }
.frek-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 18px; }
.frek-statgrid--3 { grid-template-columns: repeat(3, 1fr); }
.frek-statfield__label { font-size: 10px; font-weight: 500; color: var(--frek-text-mute); margin-bottom: 3px; letter-spacing: .1px; }
.frek-statfield__value { font-size: 16px; font-weight: 700; color: var(--frek-text); }
.frek-statfield__value--sm  { font-size: 14px; font-weight: 600; color: var(--frek-text-2); }
.frek-statfield__value--acc { color: var(--acc, #16A085); }
.frek-note { display: flex; gap: 8px; align-items: flex-start; border-radius: 8px; padding: 9px 12px; font-size: 11px; line-height: 1.45; margin-top: 14px; }
.frek-note__ico { flex: 0 0 auto; font-weight: 700; }
.frek-note--info { background: #DBEAFE; color: #2563EB; }
.frek-note--warn { background: #FEF3C7; color: #D97706; }
.frek-note--nis  { background: #DCF8F4; color: #16A085; }
/* accent-matched note: tints itself from the surrounding statcard's --acc */
.frek-statcard .frek-note--tint { background: color-mix(in srgb, var(--acc, #16A085) 12%, #fff); color: var(--acc, #16A085); }
.frek-btn--stat { border: 1px solid var(--acc, #16A085); color: var(--acc, #16A085); background: var(--frek-surface);
  border-radius: 6px; font-size: 11px; font-weight: 600; padding: 6px 12px; text-decoration: none; white-space: nowrap; }
.frek-btn--stat:hover { background: var(--acc, #16A085); color: #fff; }
.frek-btn--teal { background: #16A085; color: #fff; border: none; }
.frek-btn--teal:hover { background: #12856E; color: #fff; }
/* slab history table */
.frek-slabtbl { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 6px; }
.frek-slabtbl th { text-align: left; font-size: 9px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
  color: var(--frek-text-mute); padding: 8px; border-bottom: 1px solid var(--frek-border); background: #F8F8F9; }
.frek-slabtbl td { padding: 8px; border-bottom: 1px solid var(--frek-border); color: var(--frek-text-2); }
.frek-slabtbl tr.is-current td { background: #DCF8F4; color: #16A085; font-weight: 500; }
.frek-slabtbl tr.is-current--paye td { background: #FEF6E0; color: #B7791F; }
/* statutory nav tiles (benefits row on landing) */
.frek-stattiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.frek-stattile { position: relative; border-radius: 10px; padding: 12px 14px; background: #F6F7F9; text-decoration: none; display: block; }
.frek-stattile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--acc, #16A085); }
.frek-stattile__title { font-size: 12px; font-weight: 600; color: var(--acc, #16A085); }
.frek-stattile__meta { font-size: 9px; color: var(--acc, #16A085); opacity: .85; margin-top: 4px; }
.frek-viewhint { font-size: 11px; color: var(--frek-text-mute); }

/* ============================================================================
   Onboarding — implementation checklist (page 10)
   ============================================================================ */
.frek-chklist { display: flex; flex-direction: column; gap: 8px; }
.frek-chk { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #F6F7F9; }
.frek-chk--done { background: #E7F6EC; }
.frek-chk__ico { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #CBD2DA; color: #fff; margin-top: 1px; }
.frek-chk--done .frek-chk__ico { background: #16A34A; }
.frek-chk__title { font-size: 12px; font-weight: 600; color: var(--frek-text); }
.frek-chk--done .frek-chk__title { color: #15803D; }
.frek-chk__meta { font-size: 11px; color: var(--frek-text-mute); margin-top: 2px; }
.frek-chk--done .frek-chk__meta { color: #3F9D5F; }
/* onboarding data-import row */
.frek-improw { border: 1px solid var(--frek-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.frek-improw__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.frek-improw__name { font-size: 12px; font-weight: 600; color: var(--frek-text); }
.frek-improw__meta { font-size: 11px; color: var(--frek-text-mute); margin-top: 3px; }
.frek-btn--success-solid { background: #16A34A; color: #fff; border: none; }
.frek-btn--success-solid:hover { background: #128A3D; color: #fff; }

/* First-load splash overlay (dark, plays the FREK brand animation once post-login) */
.frek-splash { position: fixed; inset: 0; z-index: 100000; background: #0E0E0E;
  display: none; align-items: center; justify-content: center; opacity: 1; transition: opacity .45s ease; }
.frek-splash.is-shown { display: flex; }
.frek-splash.is-leaving { opacity: 0; }
.frek-splash__anim { width: 240px; height: 240px; }

/* =====================================================================
   Employee Self-Service (ESS) — one centred content column that reads as
   mobile-first but is deliberately spacious and refined on desktop. Every
   ESS region (dynamicContent heroes/cards AND the APEX form/footer regions)
   snaps to the same 760px centred band so the page reads as one column.
   ===================================================================== */
.frek-ess { max-width: 760px; margin: 0 auto; padding: 8px 20px 56px; }
.frek-ess + .frek-ess { padding-top: 0; }
/* page header */
.frek-ess-hero { padding: 2px 2px 18px; }
.frek-ess-hero__hi { font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--frek-text, #1b1f27); }
.frek-ess-hero__sub { font-size: 14.5px; color: var(--frek-text-mute, #8a909c); margin-top: 6px; max-width: 56ch; }
.frek-ess-card { background: #fff; border-radius: 18px; border: 1px solid rgba(16,24,40,.05);
                 box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.22);
                 padding: 20px 22px; margin-bottom: 16px; }
.frek-ess-card__hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.frek-ess-card__title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--frek-text-mute, #8a909c); font-weight: 800; }
.frek-ess-card__link { font-size: 13px; font-weight: 700; color: #2563EB; text-decoration: none; }
.frek-ess-card__link:hover { text-decoration: underline; }
/* stat tiles (YTD glance) */
.frek-ess-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.frek-ess-stat { background: #fff; border-radius: 14px; border: 1px solid rgba(16,24,40,.05);
                 box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 22px -18px rgba(16,24,40,.20); padding: 15px 16px; border-top: 3px solid #d0d5dd; }
.frek-ess-stat--gold  { border-top-color: var(--frek-gold, #FFD600); }
.frek-ess-stat--green { border-top-color: #16A34A; }
.frek-ess-stat--blue  { border-top-color: #2563EB; }
.frek-ess-stat--red   { border-top-color: #DC2626; }
.frek-ess-stat__label { font-size: 11px; color: var(--frek-text-mute, #8a909c); text-transform: uppercase; letter-spacing: .03em; }
.frek-ess-stat__value { font-size: 18px; font-weight: 700; margin-top: 4px; color: var(--frek-text, #1b1f27); }
/* tap rows (payslip list, line items) */
.frek-ess-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
                min-height: 54px; padding: 12px 4px; border-bottom: 1px solid #eef0f4; text-decoration: none; color: inherit; }
.frek-ess-row:last-child { border-bottom: 0; }
.frek-ess-row--link:active { background: #f7f8fa; }
.frek-ess-row__main { display: flex; flex-direction: column; }
.frek-ess-row__t { font-size: 15px; font-weight: 600; color: var(--frek-text, #1b1f27); }
.frek-ess-row__s { font-size: 12px; color: var(--frek-text-mute, #8a909c); margin-top: 2px; }
.frek-ess-row__r { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.frek-ess-amt { font-size: 15px; font-weight: 700; color: var(--frek-text, #1b1f27); }
.frek-ess-amt--neg { color: #DC2626; }
.frek-ess-chev { color: #c2c7d0; font-size: 18px; }
.frek-ess-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 2px;
                  border-top: 2px solid #1b1f27; margin-top: 6px; }
.frek-ess-total__l { font-weight: 700; }
.frek-ess-total__v { font-weight: 800; font-size: 18px; }
.frek-ess-net { background: #101828; color: #fff; border-radius: 14px; padding: 14px 16px; display: flex;
                align-items: center; justify-content: space-between; margin-top: 12px; }
.frek-ess-net__v { font-size: 20px; font-weight: 800; color: var(--frek-gold, #FFD600); }
/* segmented tabs */
.frek-ess-tabs { display: flex; gap: 6px; background: #eef0f4; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.frek-ess-tab { flex: 1; text-align: center; padding: 9px 8px; border-radius: 9px; font-size: 13px; font-weight: 600;
                color: var(--frek-text-mute, #8a909c); text-decoration: none; }
.frek-ess-tab.is-active { background: #fff; color: var(--frek-text, #1b1f27); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.frek-ess-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
                 color: var(--frek-text-mute, #8a909c); text-decoration: none; padding: 7px 15px 7px 11px; margin-bottom: 16px;
                 background: #fff; border: 1px solid rgba(16,24,40,.08); border-radius: 999px; box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: color .12s, border-color .12s; }
.frek-ess-back:hover { color: var(--frek-text, #1b1f27); border-color: rgba(16,24,40,.18); }
.frek-ess-empty { text-align: center; color: var(--frek-text-mute, #8a909c); padding: 28px 12px; font-size: 14px; }
.frek-ess-btn { display: block; width: 100%; text-align: center; background: var(--frek-gold, #FFD600); color: #1b1f27;
                font-weight: 700; padding: 14px; border-radius: 12px; border: 0; font-size: 15px; text-decoration: none; margin-top: 8px; }
/* --- GRA Form 7B (PAYE tax certificate) --- */
.frek-7b { max-width: 760px; margin: 0 auto; background: #fff; color: #111; border-radius: 14px;
    box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04); padding: 26px 30px 30px;
    font-size: 13px; line-height: 1.5; font-family: Arial, Helvetica, sans-serif; }
.frek-7b__head { text-align: center; margin-bottom: 14px; }
.frek-7b__gra { font-size: 20px; font-weight: 800; }
.frek-7b__ttl { font-size: 15px; font-weight: 700; margin-top: 2px; }
.frek-7b__code { font-size: 10px; color: #888; }
.frek-7b__sub { font-size: 11px; margin-top: 6px; }
.frek-7b__grp { font-weight: 800; margin: 12px 0 6px; }
.frek-7b__grp2 { font-weight: 700; margin: 10px 0 2px; }
.frek-7b__fld { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.frek-7b__fldlbl { width: 90px; flex: none; color: #333; }
.frek-7b__fldval { flex: 1; border-bottom: 1px solid #cfd4dc; min-height: 20px; padding: 1px 4px; }
.frek-7b__fld3 { display: flex; gap: 14px; margin: 6px 0; }
.frek-7b__fld3 > div { display: flex; flex-direction: column; gap: 3px; }
.frek-7b__fld3 .frek-7b__fldlbl { width: auto; font-size: 11px; text-align: center; }
.frek-7b__boxes { display: inline-flex; gap: 2px; flex-wrap: wrap; }
.frek-7b__box { width: 16px; height: 20px; border: 1px solid #9aa1ab; display: inline-flex; align-items: center;
    justify-content: center; font-size: 12px; font-weight: 600; }
.frek-7b__salute { margin: 12px 0 6px; }
.frek-7b__chk { font-size: 15px; vertical-align: -1px; }
.frek-7b__period { display: flex; align-items: flex-start; gap: 14px; margin: 2px 0 12px; }
.frek-7b__pcol { display: inline-flex; gap: 2px; }
.frek-7b__pcell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.frek-7b__plab { font-size: 9px; color: #555; letter-spacing: .5px; }
.frek-7b__pto { align-self: center; font-weight: 600; }
.frek-7b__amounts { position: relative; }
.frek-7b__dollar { text-align: right; font-weight: 700; margin-bottom: 2px; }
.frek-7b__row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.frek-7b__lbl { flex: 1; }
.frek-7b__lbl.is-indent { padding-left: 20px; }
.frek-7b__val { width: 150px; flex: none; text-align: right; border-bottom: 1px solid #cfd4dc; font-variant-numeric: tabular-nums; }
.frek-7b__row.is-strong .frek-7b__lbl, .frek-7b__row.is-strong .frek-7b__val { font-weight: 800; }
.frek-7b__row.is-top { border-top: 1px solid #111; margin-top: 4px; padding-top: 5px; }
.frek-7b__cntbox { display: inline-flex; width: 22px; height: 20px; border: 1px solid #9aa1ab; align-items: center;
    justify-content: center; font-weight: 700; vertical-align: -4px; }
.frek-7b__taxwrap { position: relative; }
.frek-7b__qr { position: absolute; right: 172px; top: 34%; width: 104px; text-align: center;
    background: #fff; padding: 2px; }
.frek-7b__qr #frek7bQr { width: 100px; height: 100px; margin: 0 auto; }
.frek-7b__qr #frek7bQr svg { width: 100px; height: 100px; display: block; }
.frek-7b__qrcap { font-size: 10px; color: #666; margin-top: 3px; }
.frek-7b__foot { margin-top: 16px; font-size: 10.5px; color: #333; }
.frek-7b__foot p { margin: 6px 0; }
.frek-7b__sign { margin-top: 22px; text-align: right; font-size: 11px; }
@media (max-width: 560px) {
  .frek-7b { padding: 16px; }
  .frek-7b__qr { position: static; left: auto; top: auto; width: 100px; margin: 8px auto; }
  .frek-7b__val { width: 110px; }
  .frek-7b__fld3 { flex-direction: column; gap: 8px; }
  .frek-7b__period { flex-wrap: wrap; }
}
@media print {
  .t-Header, .t-Body-nav, .a-Header, .t-Footer, .frek-noprint, .frek-ess-back { display: none !important; }
  .t-Body, .t-Body-main, .t-Body-content, .u-Body { margin: 0 !important; padding: 0 !important; }
  .frek-ess { max-width: none; padding: 0; }
  .frek-7b { box-shadow: none; border-radius: 0; max-width: none; padding: 0; font-size: 11px; }
  .frek-7b__qr { position: absolute !important; right: 172px !important; top: 34% !important; }
}

/* --- Self-service hub (launch cards) --- */
.frek-hub { max-width: 980px; margin: 0 auto; padding: 20px 16px 48px; }
.frek-hub-head { margin: 0 4px 18px; }
.frek-hub-head__hi { font-size: 22px; font-weight: 800; color: var(--frek-text, #1b1f27); }
.frek-hub-head__sub { font-size: 14px; color: var(--frek-text-mute, #8a909c); margin-top: 2px; }
.frek-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.frek-hub-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 18px; padding: 22px;
    box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04); text-decoration: none; color: inherit;
    border-top: 3px solid var(--frek-gold, #FFD600); transition: transform .12s ease, box-shadow .12s ease; }
.frek-hub-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,40,.10); color: inherit; }
.frek-hub-card__ico { width: 48px; height: 48px; border-radius: 14px; background: #FFF7CC; color: #8a6d00;
    display: flex; align-items: center; justify-content: center; font-size: 22px; }
.frek-hub-card__title { font-size: 17px; font-weight: 700; color: var(--frek-text, #1b1f27); }
.frek-hub-card__sub { font-size: 13px; color: var(--frek-text-mute, #8a909c); line-height: 1.4; }
@media (max-width: 520px) { .frek-hub-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .frek-hub-card { padding: 16px; } .frek-hub-card__sub { display: none; } }

.frek-ess-mini { display: inline-block; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px;
                 text-decoration: none; margin-left: 6px; }
.frek-ess-mini--go { background: #DCFCE8; color: var(--frek-status-active, #16A34A); }
.frek-ess-mini--no { background: var(--frek-badge-danger-bg, #FEE2E2); color: var(--frek-status-danger, #DC2626); }
@media (min-width: 700px) {
  .frek-ess { padding: 22px 24px 64px; }
  .frek-ess-hero { padding-bottom: 22px; }
  .frek-ess-hero__hi { font-size: 30px; }
  .frek-ess-card { padding: 24px 26px; }
}

/* --- APEX form & footer regions rendered as ESS cards in the same column ---
   Applied alongside frek-editcard; centres the region to the 760 band and
   lets its body fill the card (overriding the 620 edit-card cap). */
.frek-ess-form { max-width: 760px; margin: 0 auto 16px; border-radius: 18px !important;
                 border: 1px solid rgba(16,24,40,.05); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 28px -18px rgba(16,24,40,.22); }
.frek-ess-form .t-Region-header { padding: 20px 24px 0; background: transparent; border: 0; }
.frek-ess-form .t-Region-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
                 color: var(--frek-text-mute, #8a909c); font-weight: 800; }
.frek-ess-form .t-Region-body { max-width: none !important; padding: 14px 24px 22px; }
.frek-ess-form .t-Form-fieldContainer { margin-bottom: 16px; }
.frek-ess-form .t-Form-fieldContainer:last-child { margin-bottom: 4px; }
.frek-ess-form .t-Form-label { font-size: 13px; font-weight: 600; color: var(--frek-text, #1b1f27); }
/* footer: transparent strip holding a single full-width primary CTA */
.frek-ess-foot { max-width: 760px; margin: 4px auto 48px !important; background: transparent !important;
                 box-shadow: none !important; border: 0 !important; }
.frek-ess-foot .t-Region-header { display: none; }
.frek-ess-foot .t-Region-body, .frek-ess-foot .t-Region-bodyWrap { padding: 0 !important; }
.frek-ess-foot .t-Button, .frek-ess-foot button.t-Button { display: block; width: 100%; text-align: center; padding: 15px 18px;
                 border-radius: 12px; font-size: 15px; font-weight: 800; background: var(--frek-gold, #FFD600);
                 color: #1b1f27; border: 0; box-shadow: 0 6px 18px -8px rgba(255,214,0,.7); }
.frek-ess-foot .t-Button:hover { background: #F0C800; }
@media (max-width: 480px) { .frek-ess { padding: 12px 14px 44px; } .frek-ess-hero__hi { font-size: 23px; } }

/* --- ESS letter (employment / salary) --- */
.frek-ltr { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
            padding: 24px 22px; color: #1b1f27; line-height: 1.6; font-size: 14px; }
.frek-ltr__head { border-bottom: 2px solid var(--frek-gold, #FFD600); padding-bottom: 12px; margin-bottom: 18px; }
.frek-ltr__org { font-size: 18px; font-weight: 800; letter-spacing: .01em; }
.frek-ltr__addr { font-size: 12px; color: var(--frek-text-mute, #8a909c); margin-top: 2px; }
.frek-ltr__date { text-align: right; font-size: 13px; color: var(--frek-text-mute, #8a909c); margin-bottom: 16px; }
.frek-ltr__to { font-weight: 700; margin-bottom: 14px; }
.frek-ltr__re { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 4px 0 14px; }
.frek-ltr__p { margin: 0 0 12px; }
.frek-ltr__sign { margin-top: 26px; }
.frek-ltr__signname { font-weight: 700; margin-top: 22px; }
@media print {
  .t-Header, .t-Body-nav, .a-Header, .t-Footer, .frek-noprint, .frek-ess-back { display: none !important; }
  .t-Body, .t-Body-main, .t-Body-content, .u-Body { margin: 0 !important; padding: 0 !important; }
  .frek-ess { max-width: none; padding: 0; }
  .frek-ltr { box-shadow: none; border-radius: 0; padding: 0; }
}

/* --- clickable dashboard task rows (My Tasks -> Review dialog) --- */
.frek-list-row--link { text-decoration: none; color: inherit; cursor: pointer; border-radius: 8px;
    margin: 0 -6px; padding-left: 6px; padding-right: 6px; transition: background .12s ease; }
.frek-list-row--link:hover { background: #f5f6f8; color: inherit; }
.frek-list-row--link .frek-list-row__title { color: #2563EB; }

/* --- Command Centre (host, back-office main theme — full width) --- */
.frek-cc-back { display: inline-block; font-size: 13px; font-weight: 500; color: var(--frek-text-mute);
    text-decoration: none; margin-bottom: 12px; }
.frek-cc-back:hover { color: var(--frek-text); }
.frek-cc-head { display: flex; align-items: baseline; gap: 12px; margin: 2px 0 16px; flex-wrap: wrap; }
.frek-cc-head__sub { font-size: 13px; color: var(--frek-text-mute); }
.frek-cc-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; text-decoration: none; color: inherit; }
.frek-cc-card:hover { color: inherit; box-shadow: 0 4px 14px rgba(16,24,40,.10); }
.frek-cc-card__ico { width: 42px; height: 42px; border-radius: 10px; background: #FFF7CC; color: #8a6d00;
    display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.frek-cc-card__title { font-size: 15px; font-weight: 600; color: var(--frek-text); }
.frek-cc-card__sub { font-size: 12px; color: var(--frek-text-mute); margin-top: 3px; line-height: 1.4; }

/* --- support impersonation banner (fixed top bar on every page) --- */
.frek-imp-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 99990; background: #7C2D12; color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px;
    font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.frek-imp-banner b { color: #FEF3C7; }
.frek-imp-banner__act { color: #FCA5A5; font-weight: 800; }
.frek-imp-banner__actions { display: flex; gap: 8px; flex: none; }
.frek-imp-banner__btn { background: rgba(255,255,255,.16); color: #fff; padding: 5px 12px; border-radius: 6px;
    text-decoration: none; font-weight: 700; white-space: nowrap; }
.frek-imp-banner__btn:hover { background: rgba(255,255,255,.30); color: #fff; }
.frek-imp-banner__btn--exit { background: #fff; color: #7C2D12; }
.frek-imp-banner__btn--exit:hover { background: #FEF3C7; color: #7C2D12; }
body.frek-impersonating { padding-top: 40px !important; }
body.frek-impersonating .t-Header { top: 40px !important; }

/* --- generic case review modal (p112) --- */
.frek-review { padding: 2px; }
.frek-review__top { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.frek-review__title { font-size: 18px; font-weight: 700; color: var(--frek-text, #1b1f27); line-height: 1.3; }
.frek-review__meta { font-size: 12px; color: var(--frek-text-mute, #8a909c); margin-top: 5px; }
.frek-review__body { margin-top: 16px; }
/* namespaced so it can't collide with the Loans .frek-kv (which is stacked) */
.frek-review-kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #eef0f4; }
.frek-review-kv:last-child { border-bottom: 0; }
.frek-review-kv__k { font-size: 13px; color: var(--frek-text-mute, #8a909c); }
.frek-review-kv__v { font-size: 13px; font-weight: 600; color: var(--frek-text, #1b1f27); text-align: right; }

/* ===== Full-page navigation smoothing (2026-07-18) =====
   Cross-document view transitions: the browser holds the old page painted and
   cross-fades to the new one, so the shell (nav rail + header) appears
   persistent even though every APEX navigation is a full round trip.
   Progressive enhancement — unsupported browsers just navigate normally. */
html { background: #F4F5F7; } /* pre-CSS paint matches the app bg — kills the white flash */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .17s; }
/* snapshot the chrome separately: identical pixels on both pages => appears frozen */
#t_Body_nav { view-transition-name: frek-navrail; }
.t-Header   { view-transition-name: frek-header; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* slim gold progress bar while the next page is being fetched */
.frek-navload { position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: #FFD600; z-index: 20000; border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(255,214,0,.55); pointer-events: none; }
.frek-navload.is-going { width: 78%; transition: width 6s cubic-bezier(.15,.6,.3,1); }

/* =====================================================================
   Inline line icons inside buttons (home quick actions and anywhere else
   a stroked SVG sits beside a label). Inherits the button's colour, so
   the same markup works on primary and secondary treatments.
   ===================================================================== */
.frek-btn__ico { width: 16px; height: 16px; flex: none; }

/* ---------------------------------------------------------------------
   Focus rings. The browser default is a blue box that looked wrong on
   the gold/graphite palette, most visibly around a just-clicked tab.
   Pointer focus gets no ring; keyboard focus keeps a clear one in the
   house accent, so this stays accessible.
   --------------------------------------------------------------------- */
.frek-tabbar__tab:focus,
.frek-listhdr a:focus,
.frek-btn:focus { outline: none; }
.frek-tabbar__tab:focus-visible,
.frek-btn:focus-visible {
  outline: 2px solid var(--frek-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* APEX paints its own blue ring on some themed controls */
.frek-editcard .apex-item-wrapper :focus { outline-color: var(--frek-accent); }

/* ---------------------------------------------------------------------
   Action buttons inside edit cards and modal dialogs sat flush against
   the last field. Give them air, and keep them off the field grid's
   bottom margin.
   --------------------------------------------------------------------- */
.frek-editcard .t-Button,
.t-Dialog-page .frek-editcard .t-Button { margin-top: 14px; }
.frek-editcard .t-Form-fieldContainer:last-child { margin-bottom: 4px; }

/* =====================================================================
   Suffix icons in form fields (item: "identify the nature of the data").
   A tagger in the global page adds .frek-fi + a .frek-fi--<kind> class
   by inspecting each item's id, so this stays declarative and applies
   app-wide without touching individual pages.
   Icons are inert: pointer-events stay on the input underneath.
   ===================================================================== */
.frek-editcard input.frek-fi {
  padding-right: 34px !important;
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px 15px;
}
.frek-fi--mail   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.frek-fi--phone  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h4l2 5-2.5 1.5a12 12 0 0 0 5 5L16 12l5 2v4a2 2 0 0 1-2.2 2A17 17 0 0 1 4 5.2 2 2 0 0 1 6 3z'/%3E%3C/svg%3E"); }
.frek-fi--money  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M16.5 7.5A3.5 3.5 0 0 0 13 5h-1.5a3 3 0 0 0 0 6h1a3 3 0 0 1 0 6H11a3.5 3.5 0 0 1-3.5-2.5'/%3E%3C/svg%3E"); }
.frek-fi--pct    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 19 14-14'/%3E%3Ccircle cx='7.5' cy='7.5' r='2.5'/%3E%3Ccircle cx='16.5' cy='16.5' r='2.5'/%3E%3C/svg%3E"); }
.frek-fi--id     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='11' r='2'/%3E%3Cpath d='M5.5 16c.6-1.3 1.7-2 3-2s2.4.7 3 2M14.5 10h4M14.5 13.5h4'/%3E%3C/svg%3E"); }
.frek-fi--num    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3 7 21M17 3l-2 18M3.5 8.5h17M2.5 15.5h17'/%3E%3C/svg%3E"); }
.frek-fi--globe  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18 15 15 0 0 1 0-18z'/%3E%3C/svg%3E"); }
.frek-fi--user   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 20v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3C/svg%3E"); }
.frek-fi--bank   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18L12 4 3 10zM5 10v7M9.5 10v7M14.5 10v7M19 10v7M3 20h18'/%3E%3C/svg%3E"); }
.frek-fi--clock  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.5l3.5 2'/%3E%3C/svg%3E"); }
.frek-fi--year   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0A6' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------------
   Password show/hide toggle: APEX ships the two glyphs the wrong way
   round. Verified in the DOM -- hidden password renders aria-label
   "Show Password" with fa-eye-slash, and revealing it switches to
   "Hide Password" with fa-eye. The icon should show the ACTION, so an
   open eye means "click to reveal". Swap the glyphs rather than the
   labels: the aria-labels are already correct and screen readers must
   keep reading them.
   Scoped to the toggle button so fa-eye elsewhere is untouched.
   --------------------------------------------------------------------- */
.t-Button--passwordVisibility .fa-eye-slash::before { content: "\f06e"; }  /* eye      */
.t-Button--passwordVisibility .fa-eye::before       { content: "\f070"; }  /* eye-slash */

/* =====================================================================
   Change Password (p9998)
   A single focused task, so it gets a centred card rather than the wide
   two-column edit-card treatment used for record forms.
   ===================================================================== */
.frek-pwshell { padding: 40px 16px 64px; }
/* The card is the grid container: with a blank region template there is no
   .t-Region-body to hang it on, and the page items sit in .container > .row. */
.frek-pwshell > .container {
  max-width: 420px; margin: 0 auto;
  background: var(--frek-surface);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 28px rgba(16,24,40,.08);
  padding: 26px 24px 24px;
}
.frek-pwback {
  display: inline-block; margin: 0 0 6px 4px;
  font-size: 12px; color: var(--frek-text-mute); text-decoration: none;
}
.frek-pwback:hover { color: var(--frek-text); }

.frek-pwhead { text-align: center; margin-bottom: 18px; }
.frek-pwhead__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(255, 214, 0, .18);
  color: #8A6D00;
}
.frek-pwhead__badge svg { width: 22px; height: 22px; }
.frek-pwhead__title { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--frek-text); }
.frek-pwhead__sub   { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--frek-text-mute); }

/* Requirement checklist. Neutral until the field is touched, then green or
   amber -- never red, since a short password on the way to a long one is
   not an error. */
.frek-pwreq { list-style: none; margin: 0 0 16px; padding: 11px 13px;
  background: #F9F9FA; border-radius: 10px; }
.frek-pwreq li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--frek-text-mute); padding: 3px 0;
}
.frek-pwreq__dot {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid #D3D6DB; position: relative;
}
/* Met: filled green with a tick. */
.frek-pwreq li.is-ok { color: #1B7F4B; }
.frek-pwreq li.is-ok .frek-pwreq__dot { border-color: #1B7F4B; background: #1B7F4B; }
.frek-pwreq li.is-ok .frek-pwreq__dot::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 3.5px; height: 7px; border: solid #fff;
  border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
/* Not met, once there is something to judge: filled red with a cross. The
   cross carries the meaning for anyone who cannot separate the two hues. */
.frek-pwreq li.is-bad { color: #B42318; }
.frek-pwreq li.is-bad .frek-pwreq__dot { border-color: #B42318; background: #B42318; }
.frek-pwreq li.is-bad .frek-pwreq__dot::before,
.frek-pwreq li.is-bad .frek-pwreq__dot::after {
  content: ""; position: absolute; left: 5.4px; top: 2.6px;
  width: 1.6px; height: 6.8px; background: #fff; border-radius: 1px;
}
.frek-pwreq li.is-bad .frek-pwreq__dot::before { transform: rotate(45deg); }
.frek-pwreq li.is-bad .frek-pwreq__dot::after  { transform: rotate(-45deg); }

/* APEX renders each item label as a bare text node in the grid column here,
   so the column carries the label typography and the control below resets
   its own. */
.frek-pwshell > .container .col {
  font-size: 11px; font-weight: 500; color: var(--frek-text-mute);
}
.frek-pwshell .apex-item-group--password {
  position: relative; display: block; margin: 4px 0 12px;
}
.frek-pwshell .apex-item-group--password input {
  box-sizing: border-box; width: 100%; height: 42px;
  padding: 0 40px 0 12px !important;
  background: #F9F9FA !important;
  border: 1px solid var(--frek-border) !important;
  border-radius: var(--frek-radius-btn) !important;
  font-size: 13px !important; font-weight: 400; color: var(--frek-text) !important;
  box-shadow: none !important;
}
.frek-pwshell .apex-item-group--password input:focus {
  border-color: var(--frek-accent) !important; outline: none !important;
}
.frek-pwshell .t-Button--passwordVisibility {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  color: var(--frek-text-mute) !important;
}
.frek-pwshell .t-Button--passwordVisibility:hover { color: var(--frek-text) !important; }

/* Primary action: full width in the house accent, not the theme's dark hot. */
.frek-pwshell .frek-pwbtn.t-Button {
  display: block; width: 100%; margin-top: 8px; height: 42px;
  background: var(--frek-accent) !important;
  color: var(--frek-accent-ink) !important;
  border: 0 !important; border-radius: var(--frek-radius-btn) !important;
  font-size: 13.5px !important; font-weight: 600 !important;
  box-shadow: none !important;
}
.frek-pwshell .frek-pwbtn.t-Button:hover { filter: brightness(.96); }

/* =====================================================================
   Edit-form layout — Users & Roles (p13) and any future editor.

   These four classes were referenced by the p13 markup but had never been
   written, so the form fell back to raw browser defaults: labels inline
   with their inputs, unstyled checkboxes, no grid. The markup was also
   borrowing .frek-po-input, which is the 130px right-aligned PAY POINT
   input — hence the two tiny text boxes next to two full-width ones.
   ===================================================================== */

.frek-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
@media (max-width: 760px) { .frek-form-grid { grid-template-columns: 1fr; } }

.frek-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.frek-fld > label {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--frek-text-mute);
}

/* The general-purpose form control. Full width of its field, left aligned —
   the opposite of .frek-po-input, which stays as it is for pay points. */
.frek-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid var(--frek-border); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--frek-text);
  background: var(--frek-surface);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.frek-input:focus {
  outline: none; border-color: var(--frek-accent);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, .25);
}
.frek-input[readonly] {
  background: var(--frek-bg); color: var(--frek-text-2); cursor: default;
}
.frek-input[readonly]:focus { border-color: var(--frek-border); box-shadow: none; }

select.frek-input {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}

/* ---- role picker ---------------------------------------------------- */

.frek-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 10px; margin-top: 10px;
}

.frek-rolechip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--frek-border); border-radius: 10px;
  background: var(--frek-surface); cursor: pointer;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.frek-rolechip:hover { border-color: #D4D4D4; background: #FCFCFD; }

.frek-rolechip > input[type="checkbox"] {
  flex: none; width: 16px; height: 16px; margin: 1px 0 0;
  /* dark fill rather than gold: the browser draws a white tick, which is
     legible — a gold box would put a near-white tick on yellow. */
  accent-color: var(--frek-accent-ink);
  cursor: pointer;
}
.frek-rolechip > span { min-width: 0; }
.frek-rolechip b {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--frek-text); line-height: 1.35;
}

/* selected: gold edge, not a gold fill behind text */
.frek-rolechip:has(input:checked) {
  border-color: var(--frek-accent);
  background: rgba(255, 214, 0, .07);
  box-shadow: inset 0 0 0 1px var(--frek-accent);
}
/* locked (already held, not grantable by this user) */
.frek-rolechip:has(input:disabled) {
  cursor: default; background: var(--frek-bg); opacity: .78;
}
.frek-rolechip:has(input:disabled):hover { border-color: var(--frek-border); }

/* Clamp a long generated message to three lines in a list.
   The absence manager writes full explanatory paragraphs ("BLOCKED - Leave
   request for X exceeds available balance ... approve as an advance against
   future entitlement, convert the shortfall to Leave Without Pay, or reject"),
   which is right on the case screen but swamped Home's My Tasks panel. The
   full text stays available as the element's title attribute and on the
   linked page -- nothing is lost, it is only folded. */
.frek-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Star score control (.frek-rate) -- replaced the 0-5 number box on the
   appraisal tabs (p42 Goals / Competencies) and the read-only stage scores on
   p41. Flat solid stars, no outline: filled in the brand gold, the remainder a
   light neutral grey, tight spacing, the score as a small caption beneath.

   --edit is driven by frekRate in p42's Form JS: hover previews, leaving
   restores, click commits into the hidden input.frek-ev-score that the save
   collector reads. --ro is display only, and is deliberately styled so it
   reads as a record rather than a control someone is failing to operate: the
   fill is muted slate instead of gold, and there is no pointer cursor, no
   hover and no focus ring. Editable and read-only are therefore told apart at
   a glance, without hovering.

   The fill is a percentage width, so a stored 4.7 shows as 94% of five stars
   and is not rounded to 4.5 by merely being displayed.
   --------------------------------------------------------------------------- */
.frek-rate { display: inline-flex; flex-direction: column; align-items: center;
             gap: 1px; white-space: nowrap; flex: 0 0 auto; }
.frek-rate__stars { position: relative; display: inline-block; white-space: nowrap;
                    font-size: 16px; line-height: 1.1; letter-spacing: .5px; }
.frek-rate__bg { color: #E3E6EB; }
.frek-rate__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: var(--frek-accent); }
.frek-rate__cap { display: inline-flex; align-items: center; gap: 4px;
                  font-size: 11px; line-height: 1.2; color: var(--frek-text-2); }
.frek-rate__num { font-weight: 700; }
.frek-rate--edit .frek-rate__stars { cursor: pointer; padding: 2px; margin: -2px; border-radius: 4px; }
.frek-rate--edit .frek-rate__stars:focus { outline: none; box-shadow: 0 0 0 2px rgba(255, 214, 0, .75); }
.frek-rate--edit.is-preview .frek-rate__num { color: var(--frek-text-mute); }
.frek-rate--edit.is-preview .frek-rate__fill { opacity: .7; }
.frek-rate__clr { border: 0; background: none; padding: 0 1px; margin: 0; cursor: pointer;
                  line-height: 1; font-size: 10px; color: var(--frek-text-mute); border-radius: 4px; }
.frek-rate__clr:hover { color: var(--frek-status-danger); }
.frek-rate__clr:focus { outline: none; box-shadow: 0 0 0 2px rgba(255, 214, 0, .75); }
/* a score the viewer may not change: muted, and inert to the eye as well as the mouse */
.frek-rate--ro { cursor: default; }
.frek-rate--ro .frek-rate__stars { cursor: default; }
.frek-rate--ro .frek-rate__bg { color: #EBEDF1; }
.frek-rate--ro .frek-rate__fill { color: #9AA4B2; }
.frek-rate--ro .frek-rate__cap { color: var(--frek-text-mute); font-weight: 400; }
.frek-rate--ro .frek-rate__num { font-weight: 600; }
/* the read-only score cell was a 34px number slot; stars need their own width */
.frek-evrow__score--stars { flex: 0 0 auto; }

/* ---------------------------------------------------------------------------
   Completion gauge (.frek-cgauge) -- sits in p42's Form Header, so it shows on
   every tab of an appraisal. Counts what the stage's evaluator still has to
   score: every goal, and every competency marked Required. Competencies marked
   Asset are optional and are reported separately, never as a blocker.
   --------------------------------------------------------------------------- */
.frek-cgauge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
               margin: 0 0 14px; padding: 10px 16px; border-radius: 10px;
               background: var(--frek-surface); box-shadow: var(--frek-shadow-card);
               font-size: 13px; }
.frek-cgauge__state { font-weight: 700; white-space: nowrap; }
.frek-cgauge.is-ready .frek-cgauge__state { color: var(--frek-status-active); }
.frek-cgauge.is-open  .frek-cgauge__state { color: #8a6d00; }
.frek-cgauge__parts { display: flex; gap: 14px; flex-wrap: wrap; color: var(--frek-text-2); }
.frek-cgauge__part b { color: var(--frek-text); }
.frek-cgauge__opt { color: var(--frek-text-mute); }
.frek-cgauge__bar { flex: 1 1 140px; min-width: 120px; height: 6px; border-radius: 3px;
                    background: #E3E6EB; overflow: hidden; }
.frek-cgauge__barfill { display: block; height: 100%; border-radius: 3px;
                        background: var(--frek-accent); }
.frek-cgauge.is-ready .frek-cgauge__barfill { background: var(--frek-status-active); }
.frek-cgauge__who { color: var(--frek-text-mute); white-space: nowrap; }

/* ============================================================================
   Shell: slimmer top bar, and the breadcrumb trail that now lives in it
   (2026-10-27)

   Measured in the running app before writing any of this, because the bar was
   not tall for the reason it looks like. .t-Header-branding is a grid whose
   row is as tall as its tallest cell, and the tallest cell was *our own*
   company chip, not the theme: .frek-orgpill__mono is a 30px square, the pill
   adds 5px top and bottom, the nav-bar button another 7px and a border, which
   is 56px — and the theme's 8px/7px block padding then makes 72. The logo was
   an effect of that height, not a cause: .t-Header-logo-link img is
   max-height: var(--ut-header-logo-height, <header height minus padding>), so
   it had grown to 40px on its own.

   So three things come down together, and all three are needed — shrinking the
   logo alone would have left the bar exactly as tall:

     the theme's own levers   --ut-header-height / --ut-header-padding-y
     the mark and wordmark    --ut-header-logo-height, and the 24px font-size
                              set further up this file
     our chip                 the mono square, the pill padding, and the
                              nav-bar button's --a-button-padding-y

   Result measured in the app: 72px -> 48px, with the chip, Help and the user
   menu all still on the bar. The chip's own rules are left where they are and
   overridden here, so this block stays one contiguous edit at the end of the
   file.

   The trail is appended into .t-Header-logo by the shell navigator. That cell
   is `grid-area: logo` in the branding grid and is already `display: flex`,
   so the crumbs flow beside the brand without touching the grid definition —
   the navbar cell (company chip, Help, user menu) keeps its 1fr and stays
   where it was.
   ============================================================================ */
:root,
.t-PageBody {
  --ut-header-height: 48px;      /* branding min-height, and the logo's basis */
  --ut-header-padding-y: 4px;    /* was .5rem, via --ut-header-item-spacing */
  --ut-header-logo-height: 26px;
}
/* the 24px wordmark set further up this file is the other half of the height */
.t-PageBody .t-Header-branding,
.t-PageBody .t-Header-logo-link {
  font-size: 15px;
  letter-spacing: 0.3px;
}
.t-PageBody .t-Header-logo-link img { max-height: 26px; }

/* the company chip: what actually set the old height (see above) */
.t-Header .frek-orgpill {
  gap: 8px;
  padding: 3px 12px 3px 3px;
  border-radius: 10px;
}
.t-Header .frek-orgpill__mono {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.t-Header .frek-orgpill__name { font-size: 13px; }
/* only the chip's own button needs tightening; the others are already shorter
   than the bar. They do shrink with it, though — their padding comes off the
   header height — so hold a 32px hit area for Help and the user menu. */
.t-Header .frek-orgswitch-li .t-Button--navBar { --a-button-padding-y: 2px; }
.t-Header .t-Header-navBar .t-Button--navBar { min-block-size: 32px; }

.frek-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-inline-start: 14px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--frek-font-body);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}
.frek-crumbs:empty { display: none; }
.frek-crumbs__a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  flex: none;
}
.frek-crumbs__a:hover,
.frek-crumbs__a:focus-visible { color: var(--frek-accent); }
.frek-crumbs__sep { color: rgba(255, 255, 255, 0.28); flex: none; }
.frek-crumbs__cur {
  color: #FFFFFF;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* below this the company chip, Help and the user menu need the whole bar */
@media (max-width: 900px) { .frek-crumbs { display: none; } }
@media print { .frek-crumbs { display: none; } }
