/* AccessHR shell. Tokens from docs/UI_GUIDE.md; layout from docs/ui-samples/Main.dc.html and Dashboard.dc.html. */
:root {
  --ahr-brand: #0F766E;
  --ahr-brand-dark: #115E59;
  --ahr-bg: #F6F7F9;
  --ahr-surface: #FFFFFF;
  --ahr-border: #E3E7EC;
  --ahr-border-strong: #CBD2DA;
  --ahr-text: #14202B;
  --ahr-text-2: #5B6B7A;
  --ahr-muted-bg: #F1F3F6;
  --ahr-chip-bg: #E7EAEE;
  --ahr-menu-bg: #0E1B24;
  --ahr-menu-text: #C9D4DD;
  --ahr-menu-active: rgba(255, 255, 255, 0.1);
  --ahr-accent: #F2A33A;
  --ahr-success: #1A9E5C;
  --ahr-success-text: #146B3A;
  --ahr-danger: #D92D20;
  --ahr-info: #4C7DF0;
  --ahr-warning-bg: #FFF6E5;
  --ahr-warning-border: #F5D9A1;
  --ahr-warning-text: #7A4B00;
  --ahr-radius-card: 14px;
  --ahr-radius-input: 10px;
  --ahr-menu-w: 248px;
  --ahr-menu-w-mini: 72px;
  --ahr-font: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.ahr-dark {
  --ahr-bg: #0B141B;
  --ahr-surface: #121E27;
  --ahr-border: #22313D;
  --ahr-border-strong: #33465A;
  --ahr-text: #E6EDF3;
  --ahr-text-2: #9FB0BF;
  --ahr-muted-bg: #1A2833;
  --ahr-chip-bg: #1A2833;
  --ahr-warning-bg: #3A2C12;
  --ahr-warning-border: #6B4E1A;
  --ahr-warning-text: #F8D9A0;
}

html, body { margin: 0; }
body { font-family: var(--ahr-font); color: var(--ahr-text); background: var(--ahr-bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ahr-brand); outline-offset: 2px; }
.ahr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell ---------- */
.ahr-shell { display: flex; min-height: 100vh; background: var(--ahr-bg); color: var(--ahr-text); }

.ahr-nav {
  flex: 0 0 var(--ahr-menu-w); width: var(--ahr-menu-w); box-sizing: border-box;
  background: var(--ahr-menu-bg); color: var(--ahr-menu-text);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  transition: width .2s, flex-basis .2s, padding .2s;
}
.ahr-shell.is-mini .ahr-nav { flex-basis: var(--ahr-menu-w-mini); width: var(--ahr-menu-w-mini); padding: 20px 8px; }
.ahr-nav :focus-visible { outline-color: #FFFFFF; }

.ahr-nav-brand { display: flex; align-items: center; padding: 4px 10px 20px; }
.ahr-shell.is-mini .ahr-nav-brand { justify-content: center; padding: 4px 0 20px; }
.ahr-nav-brand img, .ahr-nav-foot img { display: block; max-width: 100%; width: auto; }

.ahr-nav-toggle {
  align-self: flex-end; width: 32px; height: 32px; margin-bottom: 8px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--ahr-menu-text);
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.ahr-nav-toggle:hover { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.ahr-shell.is-mini .ahr-nav-toggle { align-self: center; }
.ahr-shell.is-mini .ahr-nav-toggle svg { transform: rotate(180deg); }

.ahr-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; min-height: 44px; box-sizing: border-box;
  border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ahr-menu-text); text-decoration: none;
}
.ahr-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #FFFFFF; }
.ahr-nav-item.active { background: var(--ahr-menu-active); color: #FFFFFF; }
.ahr-nav-item svg { flex: none; }
.ahr-shell.is-mini .ahr-nav-item { justify-content: center; }
/* Hidden visually, still read by screen readers, so collapsed links keep their names. */
.ahr-shell.is-mini .ahr-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ahr-nav-foot { margin-top: auto; padding: 16px 4px 4px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; align-items: center; }
.ahr-shell.is-mini .ahr-nav-foot { justify-content: center; }

.ahr-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }

.ahr-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 28px; background: var(--ahr-surface); border-bottom: 1px solid var(--ahr-border);
}
.ahr-header-left, .ahr-header-right { display: flex; align-items: center; gap: 14px; }
.ahr-header-left { flex: 1 1 280px; min-width: 0; }
.ahr-search {
  display: flex; align-items: center; gap: 10px; background: var(--ahr-muted-bg); border-radius: 10px;
  padding: 0 14px; height: 42px; width: 100%; max-width: 360px; min-width: 0; box-sizing: border-box; color: var(--ahr-text-2);
}
.ahr-search input { border: 0; background: transparent; outline: none; font-size: 14px; color: var(--ahr-text); width: 100%; min-width: 0; }
.ahr-search input::placeholder { color: var(--ahr-text-2); }

.ahr-lang { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ahr-text-2); }
.ahr-lang a { color: var(--ahr-text-2); text-decoration: none; padding: 6px 4px; border-radius: 6px; }
.ahr-lang a:hover { color: var(--ahr-text); }
.ahr-lang a[aria-current="true"] { color: var(--ahr-text); }

.ahr-icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--ahr-border);
  background: var(--ahr-surface); color: var(--ahr-text); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.ahr-icon-btn:hover { background: var(--ahr-muted-bg); }
.ahr-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #CCE7E3; color: #0B5A53;
  display: inline-flex; align-items: center; justify-content: center;
}

.ahr-content { flex: 1; padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 20px; }

.ahr-footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ahr-border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12px; color: var(--ahr-text-2);
}
.ahr-credit-link { color: var(--ahr-brand); font-weight: 600; text-decoration: none; }
.ahr-credit-link:hover, .ahr-credit-link:focus { color: var(--ahr-brand-dark); text-decoration: none; }
/* Brand text on dark backgrounds uses a lighter shade to keep 4.5:1 contrast. */
.ahr-dark .ahr-credit-link, .ahr-dark .ahr-login-row a { color: var(--ahr-brand-light, #5EC4B8); }
.ahr-dark .ahr-credit-link:hover, .ahr-dark .ahr-credit-link:focus { color: #FFFFFF; }

.ahr-burger { display: none; }
.ahr-backdrop { display: none; }

/* ---------- Page blocks ---------- */
.ahr-page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ahr-page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.ahr-page-sub { color: var(--ahr-text-2); font-size: 14px; margin-top: 4px; }
.ahr-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.ahr-card { background: var(--ahr-surface); border: 1px solid var(--ahr-border); border-radius: var(--ahr-radius-card); padding: 20px; min-width: 0; box-sizing: border-box; }
.ahr-card h2 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.ahr-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.ahr-card-head h2 { margin: 0; }
.ahr-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ahr-col-2 { flex: 2 1 480px; }
.ahr-col-1 { flex: 1 1 300px; }

.ahr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.ahr-kpi { padding: 18px; }
.ahr-kpi-label { display: flex; justify-content: space-between; align-items: center; color: var(--ahr-text-2); font-size: 13px; font-weight: 600; }
.ahr-kpi-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ahr-kpi-value { font-size: 32px; font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; }
.ahr-kpi-note { font-size: 12px; color: var(--ahr-text-2); margin-top: 4px; }

.ahr-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--ahr-text-2); font-size: 14px; padding: 24px 12px; min-height: 120px; }
.ahr-empty svg { color: var(--ahr-border-strong); }

.ahr-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px;
  background: var(--ahr-warning-bg); border: 1px solid var(--ahr-warning-border); color: var(--ahr-warning-text);
}
.ahr-banner-text { flex: 1 1 320px; font-size: 14px; line-height: 1.45; }
.ahr-banner-btn { height: 38px; padding: 0 16px; border-radius: 9px; border: 0; background: var(--ahr-warning-text); color: var(--ahr-surface); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; }

.ahr-btn {
  height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ahr-border-strong); background: var(--ahr-surface);
  color: var(--ahr-text); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.ahr-btn-primary { border: 0; background: var(--ahr-brand); color: #FFFFFF; font-weight: 700; padding: 0 18px; }
.ahr-btn-primary:hover { background: var(--ahr-brand-dark); }
.ahr-btn[disabled] { cursor: not-allowed; opacity: .6; }

/* ---------- Login (static page) ---------- */
.ahr-login { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--ahr-bg); }
.ahr-login-brand {
  flex: 1 1 520px; min-width: 0; background: var(--ahr-brand); color: #FFFFFF; padding: 48px 56px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden;
}
.ahr-login-brand::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.ahr-login-brand::after { content: ""; position: absolute; right: 60px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, 0.05); }
.ahr-login-brand > * { position: relative; }
.ahr-login-brand > img { align-self: flex-start; }
.ahr-login-brand h1 { margin: 0 0 16px; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.ahr-login-brand p { margin: 0; font-size: 17px; line-height: 1.55; opacity: 0.88; max-width: 520px; }
.ahr-login-credit { font-size: 13px; line-height: 1.7; opacity: 0.85; }
.ahr-login-credit a { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.ahr-login-credit a:hover, .ahr-login-credit a:focus { color: #FFE2B5; text-decoration: none; }
.ahr-login-credit-stacked { display: none; }

.ahr-login-panel { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; padding: 32px 40px; box-sizing: border-box; }
.ahr-login-top { display: flex; justify-content: flex-end; }
.ahr-segmented { display: flex; background: var(--ahr-chip-bg); border-radius: 10px; padding: 3px; }
.ahr-segmented a { border: 0; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ahr-text-2); min-height: 20px; }
.ahr-segmented a[aria-current="true"] { background: var(--ahr-surface); color: var(--ahr-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ahr-login-center { flex: 1; display: flex; align-items: center; justify-content: center; }
.ahr-login-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.ahr-login-form h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.ahr-login-lead { color: var(--ahr-text-2); font-size: 15px; }
.ahr-login-logo { margin-bottom: 18px; display: block; width: auto; }
.ahr-field { display: flex; flex-direction: column; gap: 6px; }
.ahr-field label { font-size: 13px; font-weight: 600; }
.ahr-field input {
  height: 48px; border: 1px solid var(--ahr-border-strong); border-radius: var(--ahr-radius-input); padding: 0 14px;
  font-size: 15px; background: var(--ahr-surface); color: var(--ahr-text); box-sizing: border-box;
}
.ahr-field input:focus { outline: 2px solid var(--ahr-brand); outline-offset: 1px; }
.ahr-field input[type=checkbox] { width: 18px; height: 18px; padding: 0; align-self: flex-start; accent-color: var(--ahr-brand); }
.ahr-login-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.ahr-login-row label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ahr-login-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ahr-brand); }
.ahr-login-row a { color: var(--ahr-brand); }
.ahr-login-row a:hover { color: var(--ahr-brand-dark); }
.ahr-login-submit { height: 50px; border: 0; border-radius: 10px; background: var(--ahr-brand); color: #FFFFFF; font-size: 16px; font-weight: 700; cursor: pointer; }
.ahr-login-submit:hover { background: var(--ahr-brand-dark); }
.ahr-notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  background: var(--ahr-warning-bg); color: var(--ahr-warning-text); font-size: 13px; line-height: 1.45;
}
.ahr-notice svg { flex: none; margin-top: 1px; }

/* ---------- Sign-in and account forms (S1.1) ---------- */
.ahr-login-form form { display: flex; flex-direction: column; gap: 20px; }
.ahr-login-form a { color: var(--ahr-brand); }
.ahr-notice-ok { background: #E6F4F1; color: #0B5A53; }
.ahr-dark .ahr-notice-ok { background: #12332F; color: #9FE3D8; }
.ahr-button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #FFFFFF !important; }
.ahr-btn-danger { color: var(--ahr-danger); border-color: var(--ahr-danger); }
.ahr-fieldset { border: 1px solid var(--ahr-border); border-radius: var(--ahr-radius-input); padding: 12px 16px 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ahr-fieldset legend { font-size: 13px; font-weight: 700; padding: 0 6px; }
.ahr-steps { margin: 0; padding-left: 20px; font-size: 14px; }
.ahr-qr { display: block; width: 180px; height: 180px; border: 1px solid var(--ahr-border); border-radius: 12px; background: #FFFFFF; }
.ahr-key, .ahr-codes code, .ahr-temp-password code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 15px; letter-spacing: .04em; }
.ahr-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ahr-codes li { background: var(--ahr-muted-bg); border-radius: 8px; padding: 8px 10px; text-align: center; }
.ahr-temp-password { font-size: 20px; background: var(--ahr-muted-bg); border-radius: 10px; padding: 12px; text-align: center; }

/* ---------- Header user menu ---------- */
/* MudBlazor gives the activator display: contents, which can never take the keyboard focus it asks for with tabindex. */
.mud-menu > div.mud-menu-activator { display: inline-flex; border-radius: 8px; }
.ahr-user { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; border: 0; background: transparent; padding: 0 4px; font: inherit; color: inherit; border-radius: 10px; }
.ahr-user:hover { background: var(--ahr-muted-bg); }
.ahr-user .ahr-avatar { font-weight: 700; font-size: 14px; }
.ahr-user-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.ahr-user-name { font-size: 14px; font-weight: 700; color: var(--ahr-text); }
.ahr-user-role { font-size: 12px; color: var(--ahr-text-2); }
.ahr-menu-form { margin: 0; }
.ahr-menu-button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 16px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-align: left; min-height: 40px; }
.ahr-menu-button:hover { background: var(--ahr-muted-bg); }

/* ---------- Lists (DataList) ---------- */

.ahr-list { padding: 0; overflow: hidden; }
.ahr-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ahr-border); }
.ahr-list-search { flex: 1 1 260px; max-width: 420px; }
.ahr-list-actions { margin-left: auto; display: flex; gap: 8px; }
.ahr-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 44px; }
.ahr-check input { width: 18px; height: 18px; accent-color: var(--ahr-brand); }
/* position: relative keeps absolutely placed children (hidden labels, menus) inside the scroll area. */
.ahr-table-wrap { overflow-x: auto; position: relative; }
.ahr-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.ahr-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--ahr-text-2); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; background: var(--ahr-muted-bg); }
.ahr-table td { padding: 12px 16px; border-top: 1px solid var(--ahr-border); vertical-align: middle; }
.ahr-cell-main { font-weight: 600; }
.ahr-cell-sub { font-size: 12px; color: var(--ahr-text-2); }
.ahr-cell-actions { width: 56px; text-align: right; }
.ahr-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ahr-chip-bg); color: var(--ahr-text); margin: 2px 4px 2px 0; }
.ahr-chip-ok { background: #E6F4F1; color: #0B5A53; }
.ahr-chip-warn { background: var(--ahr-warning-bg); color: var(--ahr-warning-text); }
.ahr-chip-muted { color: var(--ahr-text-2); }
.ahr-list-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--ahr-border); font-size: 13px; color: var(--ahr-text-2); }
.ahr-page-size { display: flex; align-items: center; gap: 8px; }
.ahr-page-size select { height: 36px; border: 1px solid var(--ahr-border-strong); border-radius: 8px; background: var(--ahr-surface); color: var(--ahr-text); padding: 0 8px; font: inherit; font-weight: 600; }
.ahr-pager { display: flex; gap: 8px; }
.ahr-flip svg { transform: rotate(180deg); }
.ahr-icon-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Forms and tiles ---------- */
.ahr-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.ahr-link-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ahr-link-list a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; color: var(--ahr-text); text-decoration: none; font-weight: 600; min-height: 44px; }
.ahr-link-list a:hover { background: var(--ahr-muted-bg); }
.ahr-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ahr-text); }
.ahr-tile:hover { border-color: var(--ahr-brand); }
.ahr-tile span { font-size: 13px; color: var(--ahr-text-2); }
.ahr-tile svg { color: var(--ahr-brand); }
.ahr-tile-muted { opacity: .7; }

/* ---------- Narrow screens: menu becomes an overlay drawer ---------- */
@media (max-width: 959.98px) {
  .ahr-nav {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 1300; transform: translateX(-100%); transition: transform .2s;
    width: var(--ahr-menu-w) !important; flex-basis: auto !important; padding: 20px 14px !important;
  }
  .ahr-shell.nav-open .ahr-nav { transform: none; }
  .ahr-shell .ahr-nav-label { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; }
  .ahr-shell .ahr-nav-item { justify-content: flex-start !important; }
  .ahr-shell .ahr-nav-brand { justify-content: flex-start !important; padding: 4px 10px 20px !important; }
  .ahr-nav-toggle { display: none; }
  .ahr-burger { display: inline-flex; }
  .ahr-shell.nav-open .ahr-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 1299; border: 0; padding: 0; }
  .ahr-header, .ahr-content { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 599.98px) {
  .ahr-header-right { gap: 8px; }
}

/* Below 1000px the two 520px and 480px login panels would stack, pushing the form off the first screen:
   the left panel becomes a logo strip holding the language switch, and the credit moves below the form. */
@media (max-width: 999.98px) {
  .ahr-login { flex-direction: column; flex-wrap: nowrap; min-height: 100dvh; position: relative; }
  .ahr-login-brand { flex: none; padding: 12px 16px; min-height: 68px; justify-content: center; }
  .ahr-login-brand::before, .ahr-login-brand::after, .ahr-login-brand > div { display: none; }
  .ahr-login-panel { flex: 1 1 auto; padding: 20px 16px 16px; }
  .ahr-login-top { position: absolute; top: 12px; right: 16px; }
  .ahr-login-center { align-items: flex-start; }
  .ahr-login-logo { margin-bottom: 8px; }
  .ahr-login-form { gap: 16px; }
  .ahr-login-form form { gap: 16px; }
  .ahr-login-credit-stacked { display: block; margin-top: 24px; color: var(--ahr-text-2); opacity: 1; }
  .ahr-login-credit-stacked a { color: var(--ahr-brand); }
  .ahr-login-credit-stacked a:hover, .ahr-login-credit-stacked a:focus { color: var(--ahr-brand-dark); }
}

@media (pointer: coarse) {
  .ahr-nav-toggle { width: 44px; height: 44px; }
  .ahr-icon-btn { width: 44px; height: 44px; }
  .ahr-lang a { padding: 12px 6px; }
  .ahr-segmented a { padding: 12px 16px; }
}

/* ---------- Settings: modules and support access (S1.2) ---------- */

.ahr-banner-info { background: #E8F0FE; border-color: #C3D5FB; color: #1F3F8F; }
.ahr-dark .ahr-banner-info { background: #142440; border-color: #27406B; color: #C9DAFB; }
.ahr-module-list { list-style: none; margin: 0; padding: 0; }
.ahr-module-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px; border-top: 1px solid var(--ahr-border); font-weight: 600; }
.ahr-module-item:first-child { border-top: 0; }
.ahr-module-sub { padding-left: 24px; font-weight: 400; color: var(--ahr-text-2); }

/* ---------- Vendor console (ui-samples/Vendor.dc.html) ---------- */

.ahr-vendor {
  --v-bg: #0B141B; --v-card: #101D27; --v-line: #1E3040; --v-input: #2B4256; --v-text: #E8EEF3; --v-muted: #8FA2B1; --v-soft: #B8C6D2; --v-accent: #F2A33A;
  min-height: 100vh; display: flex; flex-direction: column; background: var(--v-bg); color: var(--v-text); font-family: var(--ahr-font);
}
.ahr-vendor :focus-visible { outline-color: var(--v-accent); }
.ahr-vendor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 32px; background: var(--v-card); border-bottom: 1px solid var(--v-line); }
.ahr-vendor-brand { display: flex; align-items: center; gap: 12px; }
.ahr-vendor-title { font-weight: 800; font-size: 16px; }
.ahr-vendor-sub { font-size: 12px; color: var(--v-muted); }
.ahr-vendor-user { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--v-muted); }
.ahr-vendor-user form { margin: 0; }
.ahr-vendor-main { padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1240px; width: 100%; box-sizing: border-box; }
.ahr-vendor-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ahr-vendor-row > * { flex: 1 1 340px; }
.ahr-vendor-row > .ahr-vendor-validity { flex: 2 1 480px; }
.ahr-vendor-card { background: var(--v-card); border: 1px solid var(--v-line); border-radius: 14px; padding: 22px; min-width: 0; box-sizing: border-box; }
.ahr-vendor-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.ahr-vendor-label { font-size: 12px; font-weight: 700; color: var(--v-muted); letter-spacing: .06em; text-transform: uppercase; }
.ahr-vendor-company { font-size: 22px; font-weight: 800; margin-top: 8px; }
.ahr-vendor-h2 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.ahr-vendor-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 16px 0 0; font-size: 14px; }
.ahr-vendor-facts dt { color: var(--v-muted); }
.ahr-vendor-facts dd { margin: 0; overflow-wrap: anywhere; }
.ahr-vendor-status { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #12352A; color: #7FE0B4; }
.ahr-vendor-status-expiring, .ahr-vendor-status-ingrace { background: #3A2A08; color: #F8C873; }
.ahr-vendor-status-expired, .ahr-vendor-status-tampered, .ahr-vendor-status-notset { background: #3D1512; color: #FFA79F; }
.ahr-vendor-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ahr-vendor-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--v-soft); min-width: 0; }
.ahr-vendor-field input, .ahr-vendor-field select, .ahr-vendor-from input {
  height: 46px; box-sizing: border-box; border: 1px solid var(--v-input); border-radius: 10px; padding: 0 14px; background: var(--v-bg); color: var(--v-text); font-size: 15px; width: 100%; color-scheme: dark;
}
.ahr-vendor-grow { flex: 1 1 240px; }
.ahr-vendor-extend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: flex-end; font-size: 13px; color: var(--v-muted); }
.ahr-vendor-extend > span { align-self: center; }
.ahr-vendor-explain { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--v-bg); font-size: 13px; line-height: 1.5; color: var(--v-soft); }
.ahr-vendor-btn {
  min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--v-input); background: transparent; color: var(--v-text);
  font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; font-family: inherit;
}
.ahr-vendor-btn:hover { border-color: var(--v-accent); }
.ahr-vendor-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ahr-vendor-btn-primary { border: 0; background: var(--v-accent); color: #1A1204; font-weight: 800; }
.ahr-vendor-btn-lg { padding: 0 20px; font-size: 14px; border-radius: 10px; }
.ahr-vendor-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ahr-vendor-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ahr-vendor-module { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-bg); min-width: 0; }
.ahr-vendor-switch { display: flex; align-items: flex-start; gap: 12px; }
.ahr-vendor-switch-sub { padding-left: 14px; }
.ahr-vendor-switch-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ahr-vendor-switch-name { font-size: 14px; font-weight: 600; }
.ahr-vendor-switch-sub .ahr-vendor-switch-name { font-weight: 500; color: var(--v-soft); }
.ahr-vendor-from { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 12px; color: var(--v-muted); }
.ahr-vendor-from input { height: 40px; font-size: 13px; }

/* A real button with role="switch"; the 44 px touch target comes from the padding around the track. */
.ahr-switch {
  flex: none; width: 50px; height: 44px; border: 0; padding: 9px 3px; background: transparent; cursor: pointer; margin-top: -9px;
  display: flex; align-items: center;
}
.ahr-switch .ahr-switch-knob { width: 20px; height: 20px; border-radius: 50%; background: #8FA2B1; display: block; box-shadow: 0 0 0 3px #2B4256; margin-left: 3px; transition: margin .15s; }
.ahr-switch { background-image: linear-gradient(#2B4256, #2B4256); background-size: 44px 26px; background-position: center; background-repeat: no-repeat; border-radius: 13px; }
.ahr-switch[aria-checked="true"] { background-image: linear-gradient(#F2A33A, #F2A33A); }
.ahr-switch[aria-checked="true"] .ahr-switch-knob { background: #1A1204; box-shadow: 0 0 0 3px #F2A33A; margin-left: 24px; }

.ahr-vendor-warning { font-size: 12px; color: #F8C873; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ahr-vendor-link-btn { background: none; border: 0; padding: 0 4px; color: var(--v-accent); font-weight: 700; font-size: 12px; cursor: pointer; min-height: 44px; font-family: inherit; }
.ahr-vendor-save { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.ahr-vendor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.ahr-vendor-ok { color: #7FE0B4; font-size: 13px; }
.ahr-vendor-error { color: #FFA79F; font-size: 13px; }
.ahr-vendor-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ahr-vendor-history li { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0; border-top: 1px solid var(--v-line); font-size: 13px; }
.ahr-vendor-history li:first-child { border-top: 0; }
.ahr-vendor-foot { margin-top: auto; padding: 16px 32px; border-top: 1px solid var(--v-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 12px; color: var(--v-muted); }
.ahr-vendor-link { color: var(--v-accent); font-weight: 600; text-decoration: none; }
.ahr-vendor-link:hover { color: #F8C873; }

@media (max-width: 599.98px) {
  .ahr-vendor-head, .ahr-vendor-main, .ahr-vendor-foot { padding-left: 16px; padding-right: 16px; }
  .ahr-vendor-row > * { flex-basis: 100%; }
}

/* ---------- Roles and permission matrix (ui-samples/Permissions.dc.html, S1.3) ---------- */

.ahr-btn-small { height: 36px; padding: 0 12px; font-size: 13px; }
.ahr-segmented { flex-wrap: wrap; gap: 2px; }
.ahr-segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ahr-text-2); cursor: pointer; min-height: 36px; }
.ahr-segmented button.is-on { background: var(--ahr-surface); color: var(--ahr-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ahr-segmented button[disabled] { cursor: default; }
.ahr-rbac { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ahr-rbac-roles { flex: 1 1 240px; max-width: 320px; padding: 16px; }
.ahr-rbac-main { flex: 999 1 560px; min-width: 0; }
.ahr-rbac-role-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ahr-rbac-role {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 12px;
  min-height: 44px; font-size: 14px; text-align: left; background: transparent; color: var(--ahr-text); cursor: pointer; font-family: inherit;
}
.ahr-rbac-role:hover { background: var(--ahr-muted-bg); }
.ahr-rbac-role.is-active { background: var(--ahr-brand); color: #FFFFFF; }
.ahr-rbac-count { font-size: 12px; white-space: nowrap; }
.ahr-rbac-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ahr-rbac-head h2 { margin: 0 0 4px; }
.ahr-rbac-scope { border: 0; padding: 0; margin: 16px 0; }
.ahr-rbac-scope legend { font-size: 13px; font-weight: 700; color: var(--ahr-text-2); margin-bottom: 8px; }
.ahr-rbac-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.ahr-rbac-tool { flex: 1 1 180px; min-width: 0; }
.ahr-rbac-tool input[type=file] { max-width: 100%; }
.ahr-rbac-matrix { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
.ahr-rbac-matrix th { font-size: 12px; font-weight: 700; color: var(--ahr-text-2); padding: 10px 6px; background: var(--ahr-muted-bg); text-align: center; white-space: nowrap; }
.ahr-rbac-matrix td { padding: 4px; border-top: 1px solid var(--ahr-border); text-align: center; white-space: nowrap; }
.ahr-rbac-matrix .ahr-rbac-feature { text-align: left; font-size: 14px; font-weight: 600; color: var(--ahr-text); background: transparent; border-top: 1px solid var(--ahr-border); }
.ahr-rbac-matrix thead .ahr-rbac-feature { background: var(--ahr-muted-bg); color: var(--ahr-text-2); font-size: 12px; }
.ahr-rbac-group th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; background: var(--ahr-surface); color: var(--ahr-brand); padding-top: 16px; }
.ahr-rbac-colhead, .ahr-rbac-rowhead { border: 0; background: none; padding: 6px 4px; font: inherit; color: inherit; cursor: pointer; min-height: 36px; text-align: inherit; }
.ahr-rbac-colhead:hover, .ahr-rbac-rowhead:hover { color: var(--ahr-brand); }
.ahr-rbac-cell { width: 36px; height: 36px; border-radius: 8px; font-weight: 800; font-size: 15px; cursor: pointer; border: 1.5px solid var(--ahr-border-strong); background: var(--ahr-surface); color: var(--ahr-text-2); }
.ahr-rbac-cell.ahr-rbac-allow { border-color: var(--ahr-brand); background: var(--ahr-brand); color: #FFFFFF; }
.ahr-rbac-cell.ahr-rbac-deny { border-color: var(--ahr-danger); background: #FDECEA; color: var(--ahr-danger); }
.ahr-rbac-cell.is-changed { box-shadow: 0 0 0 3px var(--ahr-accent); }
.ahr-rbac-cell[disabled] { cursor: default; }
.ahr-rbac-compare { display: inline-block; width: 18px; margin-left: 4px; font-size: 12px; font-weight: 800; color: var(--ahr-text-2); }
.ahr-rbac-compare.ahr-rbac-allow { color: var(--ahr-brand); }
.ahr-rbac-compare.ahr-rbac-deny { color: var(--ahr-danger); }
.ahr-rbac-h3 { margin: 24px 0 4px; font-size: 15px; }
.ahr-rbac-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 16px; margin-top: 12px; }
.ahr-rbac-field { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ahr-rbac-import { margin-top: 16px; }
.ahr-savebar {
  position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 12px 16px; border: 1px solid var(--ahr-border); border-radius: 12px; background: var(--ahr-surface); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}
.ahr-savebar > span { margin-right: auto; }
.ahr-savebar-note { flex: 1 1 260px; margin: 0; }
.ahr-modal { position: fixed; inset: 0; z-index: 1400; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ahr-modal-box { background: var(--ahr-surface); color: var(--ahr-text); border-radius: 14px; padding: 22px; width: 100%; max-width: 480px; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.ahr-modal-box h2 { margin: 0 0 12px; font-size: 18px; }
.ahr-modal-box .ahr-actions { justify-content: flex-end; margin-top: 16px; }
.ahr-toast { position: fixed; right: 16px; bottom: 16px; z-index: 1500; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; background: var(--ahr-text); color: var(--ahr-surface); font-size: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
@media (pointer: coarse) { .ahr-rbac-cell { width: 44px; height: 44px; } .ahr-segmented button { min-height: 44px; } }
@media (max-width: 599.98px) { .ahr-rbac-roles { max-width: none; } }

/* ---------- Business settings (ui-samples/BusinessSettings.dc.html, S1.4) ---------- */

.ahr-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--ahr-border); scrollbar-width: thin; }
.ahr-tab { flex: none; border: 0; background: none; padding: 12px 14px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ahr-text-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ahr-tab:hover { color: var(--ahr-text); }
.ahr-tab.is-on { color: var(--ahr-brand); border-bottom-color: var(--ahr-brand); }
.ahr-bset { min-width: 0; }
.ahr-bset-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ahr-bset-h2 { margin: 0; font-size: 16px; }
.ahr-field-wide { grid-column: 1 / -1; }
.ahr-field-hint { font-size: 12px; color: var(--ahr-text-2); font-weight: 400; }
.ahr-required { color: var(--ahr-danger); }
.ahr-field textarea, .ahr-field select { width: 100%; box-sizing: border-box; border: 1px solid var(--ahr-border-strong); border-radius: var(--ahr-radius-input); padding: 10px 12px; font: inherit; font-size: 15px; background: var(--ahr-surface); color: var(--ahr-text); }
.ahr-field select { height: 46px; padding: 0 12px; }
.ahr-bset-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ahr-bset-logo { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--ahr-border); border-radius: 12px; min-width: 0; }
.ahr-bset-logo-box { flex: none; width: 120px; min-height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--ahr-muted-bg); overflow: hidden; }
.ahr-bset-logo-box.is-dark { background: var(--ahr-menu-bg); }
.ahr-bset-logo-box img { max-width: 112px; object-fit: contain; }
.ahr-bset-logo-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ahr-bset-logo-text p { margin: 0; }
.ahr-bset-size { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ahr-text-2); }
.ahr-bset-size input[type=range] { width: 100%; accent-color: var(--ahr-brand); min-height: 32px; }
.ahr-upload { position: relative; cursor: pointer; }
.ahr-bset-color { display: flex; gap: 8px; align-items: center; }
.ahr-bset-color input[type=color] { width: 46px; height: 46px; padding: 2px; border: 1px solid var(--ahr-border-strong); border-radius: 10px; background: var(--ahr-surface); }
.ahr-bset-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ahr-bset-preview-label { font-size: 13px; font-weight: 700; color: var(--ahr-text-2); margin-bottom: 6px; }
.ahr-bset-login-preview { display: flex; border: 1px solid var(--ahr-border); border-radius: 12px; overflow: hidden; min-height: 150px; }
.ahr-bset-login-preview > img { padding: 10px; align-self: flex-start; }
.ahr-bset-login-preview-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--ahr-muted-bg); }
.ahr-bset-menu-preview { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; background: var(--ahr-menu-bg); min-height: 150px; }
.ahr-bset-menu-item { width: 70%; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .15); }
.ahr-bset-menu-item.is-on { background: var(--preview-brand, var(--ahr-brand)); }
.ahr-bset-menu-sw { margin-top: auto; }
.ahr-bset-days { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ahr-bset-test { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ahr-bset-test input { flex: 1 1 220px; height: 44px; border: 1px solid var(--ahr-border-strong); border-radius: var(--ahr-radius-input); padding: 0 12px; font: inherit; background: var(--ahr-surface); color: var(--ahr-text); }
.ahr-bset-saved { color: var(--ahr-success-text); font-size: 14px; font-weight: 600; }

/* ---------- Bell, approvals, workflow designer, audit (S1.5) ---------- */

.ahr-bell { position: relative; }
.ahr-bell-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ahr-danger); color: #FFFFFF; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-sizing: border-box; }
.ahr-bell-popover { width: min(360px, calc(100vw - 24px)); }
.ahr-bell-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--ahr-border); }
.ahr-link-btn { border: 0; background: none; color: var(--ahr-brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 32px; }
.ahr-bell-empty { padding: 18px 14px; color: var(--ahr-text-2); font-size: 14px; }
.ahr-bell-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.ahr-bell-item { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: left; border: 0; background: none; padding: 10px 14px; cursor: pointer; font: inherit; color: var(--ahr-text); border-bottom: 1px solid var(--ahr-border); }
.ahr-bell-item:hover { background: var(--ahr-muted-bg); }
.ahr-bell-item.is-unread { box-shadow: inset 3px 0 0 var(--ahr-brand); }
.ahr-bell-title { font-weight: 700; font-size: 14px; }
.ahr-bell-body { font-size: 13px; color: var(--ahr-text-2); }
.ahr-bell-time { font-size: 12px; color: var(--ahr-text-2); }
.ahr-bell-foot { display: block; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ahr-brand); text-decoration: none; }
.ahr-kpi-link { text-decoration: none; color: inherit; display: contents; }
.ahr-approval-list { list-style: none; margin: 0; padding: 0; }
.ahr-approval { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--ahr-border); }
.ahr-approval:first-child { border-top: 0; }
.ahr-approval-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ahr-approval-actions { flex: 1 1 300px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.ahr-approval-actions .ahr-field { flex: 1 1 200px; margin: 0; }
.ahr-approval-history { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--ahr-text-2); }
.ahr-wf-flow { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.ahr-wf-flow > li { position: relative; }
.ahr-wf-flow > li + li { margin-top: 22px; }
.ahr-wf-flow > li + li::before { content: ""; position: absolute; left: 28px; top: -22px; height: 22px; border-left: 2px solid var(--ahr-border-strong); }
.ahr-wf-start, .ahr-wf-end { align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--ahr-muted-bg); font-size: 13px; font-weight: 700; color: var(--ahr-text-2); }
.ahr-wf-end { background: #E6F4F1; color: #0B5A53; }
.ahr-wf-step { border: 1px solid var(--ahr-border-strong); border-radius: 12px; padding: 12px 14px; background: var(--ahr-surface); }
.ahr-wf-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ahr-wf-number { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ahr-brand); color: #FFFFFF; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ahr-wf-name { flex: 1 1 auto; min-width: 0; height: 40px; border: 1px solid var(--ahr-border); border-radius: 8px; padding: 0 10px; font: inherit; font-weight: 700; background: var(--ahr-surface); color: var(--ahr-text); }
.ahr-wf-grid { border: 0; padding: 0; margin: 0; }
.ahr-wf-add { align-self: flex-start; }
.ahr-audit-filter { flex: 0 1 170px; margin: 0; }
.ahr-audit-filter input, .ahr-audit-filter select { height: 40px; }
.ahr-audit-changes { font-size: 13px; max-width: 380px; white-space: normal; }
.ahr-audit-changes del { color: var(--ahr-danger); text-decoration: line-through; }
.ahr-audit-changes ins { color: var(--ahr-success-text); text-decoration: none; }
.ahr-template-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ahr-template { border: 1px solid var(--ahr-border); border-radius: 12px; padding: 12px 14px; }
.ahr-template-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ahr-template-head .ahr-check { margin-left: auto; }

/* Employees (S1.6) */
.ahr-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ahr-muted-bg); border: 1px solid var(--ahr-border); }
.ahr-bulkbar .ahr-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ahr-cell-check { width: 44px; text-align: center; }
.ahr-cell-check input { width: 20px; height: 20px; }
.ahr-person { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.ahr-person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ahr-person:hover .ahr-cell-main { text-decoration: underline; }
.ahr-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.ahr-avatar-lg { width: 72px; height: 72px; font-size: 24px; font-weight: 700; flex: none; }
.ahr-emp-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.ahr-emp-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ahr-emp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ahr-emp-head-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.ahr-emp-head-text { flex: 1 1 240px; min-width: 0; }
.ahr-emp-head-text h1 { margin: 0; font-size: 22px; }
.ahr-facts { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 8px 12px; margin: 0; }
.ahr-facts dt { color: var(--ahr-text-2); font-size: 13px; }
.ahr-facts dd { margin: 0; overflow-wrap: anywhere; }
.ahr-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--ahr-border); display: flex; flex-direction: column; gap: 14px; }
.ahr-timeline li { position: relative; }
.ahr-timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ahr-brand); }
.ahr-timeline-date { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ahr-modal-box.ahr-modal-wide { max-width: 760px; max-height: calc(100vh - 32px); overflow-y: auto; }
.ahr-records input { width: 100%; min-width: 110px; min-height: 40px; }
.ahr-orgchart { overflow-x: auto; }
.ahr-tree, .ahr-tree ul { list-style: none; margin: 0; padding: 0; }
.ahr-tree ul { margin-left: 22px; padding-left: 14px; border-left: 1px dashed var(--ahr-border); }
.ahr-tree li { margin: 8px 0; }
.ahr-tree-node { display: inline-flex; flex-direction: column; padding: 8px 12px; min-height: 44px; border: 1px solid var(--ahr-border); border-radius: 10px; color: inherit; text-decoration: none; background: var(--ahr-surface); }
.ahr-tree-node:hover, .ahr-tree-node:focus-visible { border-color: var(--ahr-brand); }

/* Data import (S1.7) */
.ahr-notice-error { background: #FDECEA; color: #8A1C12; }
.ahr-dark .ahr-notice-error { background: #3A1512; color: #F6B5AE; }
.ahr-text-danger { color: var(--ahr-danger); font-weight: 600; }
.ahr-import-targets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ahr-import-target { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 64px; padding: 12px 14px; text-align: left; border: 1px solid var(--ahr-border); border-radius: 12px; background: var(--ahr-surface); color: var(--ahr-text); cursor: pointer; font: inherit; }
.ahr-import-target:hover { border-color: var(--ahr-brand); }
.ahr-import-target-on { border-color: var(--ahr-brand); box-shadow: inset 0 0 0 1px var(--ahr-brand); background: var(--ahr-muted-bg); }
.ahr-import-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ahr-import-summary h2 { margin: 0; overflow-wrap: anywhere; }
.ahr-import-progress { display: flex; flex-direction: column; gap: 6px; min-width: min(320px, 100%); }
.ahr-import-progress progress { width: 100%; height: 12px; accent-color: var(--ahr-brand); }
.ahr-import-counts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.ahr-import-counts div { display: flex; flex-direction: column; }
.ahr-import-counts dt { font-size: 12px; color: var(--ahr-text-2); }
.ahr-import-counts dd { margin: 0; font-size: 22px; font-weight: 700; }
.ahr-import-map select { width: 100%; min-width: 160px; min-height: 40px; }
.ahr-import-map td { vertical-align: middle; overflow-wrap: anywhere; }
.ahr-import-problems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ahr-import-problems li { border-left: 3px solid var(--ahr-warning-text); padding: 4px 0 4px 12px; }
.ahr-import-problems li.ahr-import-problem-error { border-left-color: var(--ahr-danger); }
.ahr-import-problems .ahr-chip { margin-left: 6px; }

/* Attendance (S1.8) */
.ahr-chip-danger { background: #FDECEA; color: #8A1C12; }
.ahr-chip-info { background: #E8F0FE; color: #1E40AF; }
.ahr-dark .ahr-chip-danger { background: #3A1512; color: #F6B5AE; }
.ahr-dark .ahr-chip-info { background: #162447; color: #A9C1FF; }
.ahr-att-departments summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.ahr-att-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ahr-att-weekday { font-size: 12px; font-weight: 600; color: var(--ahr-text-2); text-align: center; padding: 4px 0; }
.ahr-att-day { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 72px; padding: 6px 8px; border: 1px solid var(--ahr-border); border-radius: 10px; background: var(--ahr-surface); color: var(--ahr-text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ahr-att-day:hover { border-color: var(--ahr-brand); }
.ahr-att-day.is-on { box-shadow: inset 0 0 0 2px var(--ahr-brand); }
.ahr-att-day.is-today .ahr-att-daynum { color: var(--ahr-brand); }
.ahr-att-daynum { font-weight: 700; }
.ahr-att-daystatus { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ahr-att-daytime { font-size: 11px; color: var(--ahr-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ahr-att-present { border-left: 4px solid #1A9E5C; }
.ahr-att-late, .ahr-att-halfday, .ahr-att-missingpunch { border-left: 4px solid #F2A33A; }
.ahr-att-absent { border-left: 4px solid var(--ahr-danger); }
.ahr-att-onduty, .ahr-att-tour, .ahr-att-workfromhome, .ahr-att-leave { border-left: 4px solid #3B82F6; }
.ahr-att-weekend, .ahr-att-holiday, .ahr-att-dayoff, .ahr-att-notemployed { background: var(--ahr-muted-bg); }
.ahr-att-deleted { opacity: .55; text-decoration: line-through; }
.ahr-att-days { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 1px solid var(--ahr-border); border-radius: 10px; padding: 8px 12px; margin: 12px 0; }
.ahr-att-days legend { font-weight: 600; padding: 0 4px; }
.ahr-att-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ahr-att-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--ahr-text-2); }
.ahr-att-swatch { display: inline-flex; align-items: center; gap: 6px; }
.ahr-att-swatch > span { width: 12px; height: 12px; border-radius: 3px; }
.ahr-roster-wrap { overflow-x: auto; padding: 0; }
.ahr-roster { min-width: 760px; }
.ahr-roster th[scope="row"] { min-width: 150px; text-align: left; position: sticky; left: 0; background: var(--ahr-surface); z-index: 1; }
.ahr-roster th.is-today { color: var(--ahr-brand); }
.ahr-roster-cell { min-width: 92px; vertical-align: top; }
.ahr-roster-cell select { width: 100%; min-height: 36px; border-left: 4px solid var(--ahr-border); }
.ahr-roster-label { display: block; font-size: 11px; color: var(--ahr-text-2); margin-top: 2px; }
.ahr-roster-weekend, .ahr-roster-holiday, .ahr-roster-dayoff { background: var(--ahr-muted-bg); }
.ahr-roster-cell.has-warning { box-shadow: inset 0 0 0 2px #F2A33A; }
.ahr-roster-warn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #F2A33A; color: #fff; font-size: 12px; font-weight: 700; }
@media (max-width: 600px) {
  .ahr-att-day { min-height: 56px; padding: 4px; }
  .ahr-att-daytime { display: none; }
}
.ahr-kpis-compact { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ahr-kpis-compact .ahr-kpi { padding: 14px; }
.ahr-kpis-compact .ahr-kpi-value { font-size: 24px; margin-top: 6px; }
.ahr-list-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }

/* Late rules (S1.9) */
.ahr-late-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ahr-late-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ahr-late-step { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--ahr-border); border-radius: 12px; padding: 12px; }
.ahr-late-stepnum { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ahr-muted-bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ahr-late-stepbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ahr-late-step > .ahr-chip { flex: none; }
.ahr-late-stepedit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.ahr-late-stepedit input[type="number"] { width: 80px; min-height: 36px; }
.ahr-late-stepedit select { min-height: 36px; }
.ahr-late-toggles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ahr-late-toggles li { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.ahr-late-toggles .ahr-switch { flex: none; width: 44px; height: 26px; border: 0; padding: 0; cursor: pointer; background-image: linear-gradient(#C9D2DB, #C9D2DB); }
.ahr-late-toggles .ahr-switch[aria-checked="true"] { background-image: linear-gradient(var(--ahr-brand), var(--ahr-brand)); }
.ahr-late-toggles .ahr-switch .ahr-switch-knob { background: #fff; box-shadow: none; }
.ahr-late-toggles .ahr-switch[aria-checked="true"] .ahr-switch-knob { margin-left: 21px; }
.ahr-late-preview { position: sticky; top: 16px; }
.ahr-late-sample { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .ahr-late-sample { grid-template-columns: 1fr; } .ahr-late-step { flex-wrap: wrap; } }
.ahr-late-stepedit input, .ahr-late-stepedit select, .ahr-late-toggles input { border: 1px solid var(--ahr-border-strong); border-radius: 8px; padding: 6px 8px; background: var(--ahr-surface); color: var(--ahr-text); font: inherit; }
.ahr-late-stepedit label { display: inline-flex; align-items: center; gap: 6px; }

/* ESS punch set-up (S1.10) */
.ahr-ess-photo { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: block; }
.ahr-ess-agent { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Biometric devices (S1.11) ---------- */
.ahr-dev-guide { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; line-height: 1.5; }
.ahr-dev-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.ahr-dev-facts dt { color: var(--ahr-text-2); }
.ahr-dev-facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ahr-dev-map { display: flex; gap: 6px; align-items: center; }
.ahr-dev-map input { width: 120px; min-height: 36px; }
.ahr-dev-import { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.ahr-dev-command { display: block; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; background: var(--ahr-muted-bg); border-radius: 8px; padding: 8px 10px; margin-top: 6px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .ahr-dev-facts { grid-template-columns: 1fr; } }

/* ---------- Leave (S1.12) ---------- */
.ahr-lv-balances { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ahr-lv-balance { text-align: center; padding: 14px 10px; }
.ahr-lv-balance-value { font-size: 26px; font-weight: 800; color: var(--ahr-brand); line-height: 1.2; }
.ahr-lv-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ahr-lv-types .ahr-btn { flex: 1 1 110px; }
.ahr-lv-quote { margin: 8px 0; }
.ahr-lv-requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ahr-lv-requests li { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid var(--ahr-border); border-radius: 12px; padding: 10px 14px; flex-wrap: wrap; }
.ahr-lv-request-end { display: flex; gap: 8px; align-items: center; }
.ahr-lv-month { margin: 0; flex: 1; }
.ahr-lv-calendar th, .ahr-lv-calendar td { padding: 4px; text-align: center; min-width: 30px; }
.ahr-lv-calendar th[scope="row"] { text-align: left; min-width: 160px; }
.ahr-lv-cell { display: inline-block; min-width: 26px; padding: 2px 3px; border-radius: 6px; background: var(--ahr-brand); color: #fff; font-size: 11px; font-weight: 700; }
.ahr-lv-cell.is-pending { opacity: .55; outline: 2px dashed currentColor; }
.ahr-lv-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--ahr-chip-bg); vertical-align: middle; }

/* ---------- Payroll (S1.13) ---------- */
.ahr-mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; }
.ahr-pay-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; counter-reset: step; }
.ahr-pay-steps li { counter-increment: step; padding: 6px 12px; border-radius: 999px; background: var(--ahr-muted-bg); color: var(--ahr-text-2); font-size: 13px; font-weight: 600; }
.ahr-pay-steps li::before { content: counter(step) ". "; }
.ahr-pay-steps li.is-done { background: var(--ahr-chip-bg); color: var(--ahr-text); }
.ahr-pay-steps li.is-current { background: var(--ahr-brand); color: #fff; }
.ahr-pay-totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ahr-pay-totals .ahr-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.ahr-pay-totals strong { font-size: 20px; }
.ahr-pay-totals span { color: var(--ahr-text-2); font-size: 13px; }
.ahr-pay-totals .is-warn strong { color: var(--ahr-danger); }
.ahr-table tr.is-error td { background: var(--ahr-warning-bg); }
.ahr-table tr.is-override td:first-child { box-shadow: inset 3px 0 0 var(--ahr-accent); }
.ahr-pay-detail td { background: var(--ahr-muted-bg); }
.ahr-pay-lines { display: grid; grid-template-columns: max-content max-content; gap: 4px 24px; margin: 0 0 8px; }
.ahr-pay-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ahr-pay-lines dd.is-deduction { color: var(--ahr-danger); }
.ahr-pay-items { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.ahr-pay-items li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ahr-pay-items select { min-height: 40px; min-width: 110px; }
.ahr-pay-items input { flex: 1 1 220px; min-height: 40px; }
.ahr-loan { display: grid; gap: 8px; margin-bottom: 12px; }
.ahr-loan-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Tax working (S1.14): label and amount, amounts right-aligned, the total row in bold. */
.ahr-tax-working td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ahr-row-total td { font-weight: 600; border-top: 2px solid var(--ahr-border); }

/* Letter preview (S1.15): the merged text as it will read. */
.ahr-letter-preview { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.55; background: var(--ahr-bg); border: 1px solid var(--ahr-border); border-radius: 10px; padding: 14px; margin: 0; max-height: 480px; overflow: auto; }

/* Dashboard (S1.16, Dashboard.dc.html) */
.ahr-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ahr-text-2); flex-wrap: wrap; }
.ahr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ahr-week { display: flex; align-items: flex-end; gap: 18px; height: 200px; padding: 0 6px; }
.ahr-week-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; font-size: 12px; color: var(--ahr-text-2); }
.ahr-week-bar { width: 100%; max-width: 44px; display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; min-height: 4px; }
.ahr-hbar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; }
.ahr-hbar-track { height: 8px; border-radius: 4px; background: var(--ahr-muted-bg); }
.ahr-hbar-track div { height: 8px; border-radius: 4px; background: var(--ahr-brand); }
.ahr-dash-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; padding: 6px 0; }
.ahr-dash-approval { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ahr-border); }
.ahr-dash-approval-text { flex: 1 1 200px; display: flex; flex-direction: column; font-size: 14px; }
.ahr-dash-approval-text span { font-size: 12px; color: var(--ahr-text-2); }
.ahr-setup-steps { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ahr-setup-steps li { display: flex; align-items: center; gap: 10px; }
.ahr-step-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ahr-border-strong); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.ahr-setup-steps li.is-done .ahr-step-mark { border: 0; background: var(--ahr-success); color: #fff; }
.ahr-setup-steps li.is-done a { color: var(--ahr-text-2); }
.ahr-news { border-top: 1px solid var(--ahr-border); padding: 12px 0; }
.ahr-news h3 { margin: 0 0 2px; font-size: 15px; }
.ahr-news p { margin: 6px 0 0; white-space: pre-line; font-size: 14px; }
.ahr-link { color: var(--ahr-brand); font-size: 13px; font-weight: 600; text-decoration: none; }

/* Report library (S1.16) */
.ahr-report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.ahr-report { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--ahr-border); }
.ahr-report p { margin: 2px 0 0; }
.ahr-report-run { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ahr-report-run input, .ahr-report-run select { min-height: 36px; border: 1px solid var(--ahr-border-strong); border-radius: 8px; padding: 0 8px; background: var(--ahr-surface); color: var(--ahr-text); }

/* Public careers pages (S2.1). */
.ahr-careers { min-height: 100vh; display: flex; flex-direction: column; background: var(--ahr-bg); color: var(--ahr-text); }
.ahr-careers-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; background: var(--ahr-surface); border-bottom: 1px solid var(--ahr-border); }
.ahr-careers-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.ahr-careers-foot { padding: 16px; font-size: 13px; color: var(--ahr-text-2); text-align: center; }
.ahr-careers-text p { white-space: pre-line; }
.ahr-careers-consent { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.ahr-careers-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Onboarding (S2.2). */
.ahr-onb-link { display: block; overflow-wrap: anywhere; padding: 8px; background: var(--ahr-chip-bg); border-radius: 8px; }
.ahr-onb-submission { margin-top: 12px; padding: 12px; border: 1px solid var(--ahr-border); border-radius: 8px; }
.ahr-onb-template { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ahr-border); }

/* Payroll check settings: fixed columns, so rows with and without a threshold line up. */
.ahr-check-rule { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr) auto; align-items: center; gap: 12px 16px; padding: 10px 0; border-top: 1px solid var(--ahr-border); }
@media (max-width: 600px) {
  .ahr-check-rule { grid-template-columns: 1fr; }
  .ahr-check-rule-threshold:empty { display: none; }
  .ahr-check-rule .ahr-btn { justify-self: start; }
}
