/**
 * Pera: the company workspace's visual system (2026-11-02), in the NSCDevChat brand palette
 * (aubergine shell, brand purple actions, brick-orange accents; sampled from the logo).
 *
 * Loaded after hris-enterprise-dense.css. The dense layer keeps density and
 * shape; this file re-points its tokens and adds the world: a deep
 * shell (now the NSCDevChat aubergine), a validated set of data inks,
 * Public Sans for text and Spline Sans Mono for figures, and one motion
 * grammar (content rises 6px and fades in on navigation).
 */

:root {
  /* Eleven-step cool neutral ramp: the only greys. */
  --p-n0: #ffffff; --p-n1: #f6f7f9; --p-n2: #eef1f5; --p-n3: #e2e7ee; --p-n4: #cfd6e0; --p-n5: #a7b1c0;
  --p-n6: #7c8798; --p-n7: #5a6577; --p-n8: #3d4757; --p-n9: #252d3a; --p-n10: #141a24;
  /* Note blue (₱1000) shell and the denomination inks. */
  --p-note: #1c0c34; --p-note-2: #2d1a4d; --p-note-3: #2d1a4d; --p-note-line: #3b2860; --p-note-ink: #ddd4ee; --p-note-dim: #a99ac9;
  --p-blue: #4b2a86; --p-blue-hover: #2d1a4d; --p-blue-soft: #f0ebf8; --p-gold: #f06a46;
  --p-ok: #2f7a40; --p-warn: #8a6a06; --p-bad: #b0302f;
  --p-mono: "Spline Sans Mono", ui-monospace, Consolas, monospace;
  --p-ease: cubic-bezier(.16, 1, .3, 1);

  --d-primary: var(--p-blue);
  --d-primary-hover: var(--p-blue-hover);
  --d-primary-soft: var(--p-blue-soft);
  --d-text: var(--p-n10);
  --d-text-2: var(--p-n8);
  --d-muted: var(--p-n7);
  --d-border: var(--p-n3);
  --d-border-strong: var(--p-n4);
  --d-bg: var(--p-n1);
  --d-surface: var(--p-n0);
  --d-subtle: #f9fafb;
  --d-sider: var(--p-note);
  --d-sider-hover: rgba(255, 255, 255, .06);
  --d-sider-active: var(--p-note-3);
  --d-radius: 6px;
  --d-radius-lg: 10px;
  --d-font: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hris-primary: var(--p-blue);
  --hris-primary-hover: var(--p-blue-hover);
  --hris-primary-soft: var(--p-blue-soft);
  --hris-font: var(--d-font);
}

/* ——— Browser surfaces ——— */
html body ::selection { background: #e3d9f5; color: var(--p-n10); }
html body { accent-color: var(--p-blue); -webkit-font-smoothing: antialiased; }
html body :focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }
html body * { scrollbar-color: var(--p-n4) transparent; scrollbar-width: thin; }
html body .ant-layout-sider * { scrollbar-color: var(--p-note-line) transparent; }
/* Chrome/Edge on Windows draw arrow buttons on the standard thin scrollbar
   (the sidebar showed up/down arrows). Where ::-webkit-scrollbar exists, use it
   instead: 8px thumb, no buttons; the sidebar thumb brightens on hover. Firefox
   keeps the thin standard scrollbar above. */
@supports selector(::-webkit-scrollbar) {
  html body *, html body .ant-layout-sider * { scrollbar-width: auto; scrollbar-color: auto; }
  html body ::-webkit-scrollbar { width: 8px; height: 8px; }
  html body ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  html body ::-webkit-scrollbar-track, html body ::-webkit-scrollbar-corner { background: transparent; }
  html body ::-webkit-scrollbar-thumb { background: var(--p-n4); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
  html body ::-webkit-scrollbar-thumb:hover { background-color: var(--p-n5, #8a94a6); }
  html body .ant-layout-sider ::-webkit-scrollbar { width: 6px; }
  html body .ant-layout-sider ::-webkit-scrollbar-thumb { background: rgba(221, 212, 238, .14); border: 0; }
  html body .ant-layout-sider:hover ::-webkit-scrollbar-thumb { background: rgba(221, 212, 238, .32); }
}
html body table, html body .ant-statistic-content, html body .ant-pagination { font-variant-numeric: tabular-nums; }

/* ——— Sidebar: the note ——— */
/* 1px in the rail's own colour: invisible, but keeps the zero-width phone drawer measurable. */
html body .ant-layout-sider { border-right: 1px solid var(--p-note) !important; }
html body .ant-layout-sider .ant-menu-item,
html body .ant-drawer .ant-menu-item {
  height: 36px !important;
  line-height: 36px !important;
  margin: 1px 10px !important;
  width: calc(100% - 20px) !important;
  color: var(--p-note-ink) !important;
  position: relative;
}
html body .ant-layout-sider .ant-menu-item .anticon,
html body .ant-layout-sider .ant-menu-item .hris-nav-icon { color: var(--p-note-dim) !important; transition: color .15s; }
html body .ant-layout-sider .ant-menu-item:not(.ant-menu-item-selected):hover { color: #fff !important; }
html body .ant-layout-sider .ant-menu-item:not(.ant-menu-item-selected):hover .anticon { color: #fff !important; }
html body .ant-layout-sider .ant-menu-item-selected,
html body .ant-layout-sider .ant-menu .ant-menu-item.ant-menu-item-selected,
html body .ant-drawer .ant-menu-item-selected,
html body.hris-embed-active .ant-layout-sider .hris-embed-item.ant-menu-item-selected,
html body.hris-embed-dashboard .ant-layout-sider .ant-menu-item-selected:not(.hris-embed-item) {
  background: var(--p-note-3) !important;
  color: #fff !important;
  box-shadow: none !important;
}
/* Gold dot for the open page (a marker, not a side stripe). */
html body .ant-layout-sider .ant-menu-item-selected::after,
html body .ant-drawer .ant-menu-item-selected::after {
  content: "";
  position: absolute !important;
  left: auto !important;
  right: 12px !important;
  top: 50% !important;
  bottom: auto !important;
  width: 6px !important;
  height: 6px !important;
  margin-top: -3px;
  border: 0 !important;
  border-radius: 50%;
  background: var(--p-gold) !important;
  opacity: 1 !important;
  transform: none !important;
}
html body .ant-layout-sider .ant-menu-item-selected .anticon,
html body .ant-layout-sider .ant-menu-item-selected .hris-nav-icon { color: var(--p-gold) !important; }
html body .ant-layout-sider .ant-menu-item-group-title,
html body .ant-drawer .ant-menu-item-group-title {
  color: var(--p-note-dim) !important;
  font-size: 11px !important;
  letter-spacing: .08em;
  padding: 16px 20px 6px !important;
}
html body .ant-layout-sider .ant-menu-item-divider { border-color: var(--p-note-line) !important; }
/* Hover motion on the rail (hris-rail-motion.js): one highlight glides between items with a slight spring
   overshoot, the hovered icon pops once (lift, tilt, settle) and the label eases 3px forward; a press settles to .98.
   Timings follow the motion tokens: 150ms fades, 280ms smooth-out/bounce moves, 450ms emphasis pop. */
html body .ant-layout-sider .ant-menu-root { position: relative; }
html body #hris-rail-glide {
  position: absolute; top: 0; left: 0; z-index: 0; pointer-events: none; list-style: none;
  border-radius: 8px; opacity: 0;
  background: linear-gradient(90deg, rgba(240, 106, 70, .16), rgba(255, 255, 255, .07) 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform 280ms cubic-bezier(.34, 1.36, .64, 1), width 280ms cubic-bezier(.22, 1, .36, 1),
              height 280ms cubic-bezier(.22, 1, .36, 1), opacity 150ms ease-out;
}
html body #hris-rail-glide.on { opacity: 1; }
html body #hris-rail-glide.over-selected { opacity: 0; }
html body .ant-layout-sider .ant-menu-item { position: relative; z-index: 1; }
html body.hris-rail-fx .ant-layout-sider .ant-menu-item:not(.ant-menu-item-selected):hover { background: transparent !important; }
html body .ant-layout-sider .ant-menu-item {
  transition: background-color 150ms ease-out, color 150ms ease-out, scale 150ms cubic-bezier(.22, 1, .36, 1) !important;
}
html body .ant-layout-sider .ant-menu-item .ant-menu-title-content {
  transition: transform 280ms cubic-bezier(.22, 1, .36, 1), color 150ms ease-out !important;
}
html body .ant-layout-sider:not(.ant-layout-sider-collapsed) .ant-menu-item:not(.ant-menu-item-selected):hover .ant-menu-title-content { transform: translateX(3px); }
html body .ant-layout-sider .ant-menu-item[data-rail-pop] .ant-menu-item-icon,
html body .ant-layout-sider .ant-menu-item[data-rail-pop] > .anticon { animation: rail-icon-pop 450ms cubic-bezier(.22, 1, .36, 1); color: #fff !important; }
html body .ant-layout-sider .ant-menu-item[data-rail-pop]:not(.ant-menu-item-selected) .hris-nav-icon { color: var(--p-gold) !important; }
/* Name bubble for shell-added items in the collapsed rail; matches AntD's tooltip. */
#hris-rail-tip {
  position: fixed; z-index: 1070; pointer-events: none; transform: translate(-4px, -50%); opacity: 0;
  padding: 6px 10px; border-radius: 6px; background: var(--p-n10, #141a24); color: #fff;
  font: 500 13px/1.3 "Public Sans", "Segoe UI", system-ui, sans-serif; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(28, 12, 52, .25);
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}
#hris-rail-tip::before {
  content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  background: inherit; transform: rotate(45deg); border-radius: 1px;
}
#hris-rail-tip.on { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { #hris-rail-tip { transition: opacity 150ms ease-out; transform: translate(0, -50%); } }
@keyframes rail-icon-pop {
  0% { transform: none; }
  35% { transform: translateY(-2px) scale(1.18) rotate(-8deg); }
  70% { transform: translateY(0) scale(.96) rotate(3deg); }
  100% { transform: none; }
}
html body .ant-layout-sider .ant-menu-item:active { scale: .98; }
@media (prefers-reduced-motion: reduce) {
  html body #hris-rail-glide { transition: opacity 150ms ease-out; }
  html body .ant-layout-sider .ant-menu-item .ant-menu-title-content { transition: color 150ms ease-out !important; transform: none !important; }
  html body .ant-layout-sider .ant-menu-item[data-rail-pop] .ant-menu-item-icon,
  html body .ant-layout-sider .ant-menu-item[data-rail-pop] > .anticon { animation: none; }
  html body .ant-layout-sider .ant-menu-item:active { scale: 1; }
}
/* Collapsed rail: items added by the shell scripts hide their label and centre their icon like native items. */
html body .ant-layout-sider-collapsed .hris-embed-item .ant-menu-title-content { display: none !important; }
html body .ant-layout-sider-collapsed .hris-embed-item { padding-inline: calc(50% - 8px) !important; }
/* No browser focus ring after a mouse click; keyboard focus keeps the visible ring. */
html body .ant-btn:focus:not(:focus-visible), html body .ant-menu-item:focus:not(:focus-visible) { outline: none !important; }

/* Breathing room at the end of every page. */
html body .ant-layout-content { padding-bottom: 88px !important; }
/* Money cells (marked by hris-ux-fixes.js) in the figure face. */
html body td.hux-money { font-family: var(--p-mono) !important; font-size: 12px !important; }

/* ——— Header ——— */
html body .ant-layout-header .ant-avatar { background: #4b2a86 !important; }
html body .ant-layout-header {
  height: 56px !important;
  line-height: 56px !important;
  border-bottom: 1px solid var(--p-n3) !important;
}
/* Floating Guide button (pages without the app header): a 40px icon, name kept in aria-label and title. */
html body #hris-guide-btn { width: 40px; height: 40px; border-radius: 20px; padding: 0; justify-content: center; }
html body #hris-guide-btn .lbl { display: none; }
html body #hris-guide-btn .dot { position: absolute; top: -4px; right: -4px; }
/* Docked in the header beside the bell. */
html body #hris-guide-btn.in-header {
  position: relative; inset: auto; width: auto; height: 32px; padding: 0 12px 0 10px; border-radius: 6px;
  background: var(--p-blue-soft); color: var(--p-blue-hover); box-shadow: none; gap: 6px;
}
html body #hris-guide-btn.in-header:hover { background: #e6ddf5; }
html body #hris-guide-btn.in-header .lbl { display: inline; }
html body #hris-guide-btn.in-header .dot { position: static; background: var(--p-bad); color: #fff; }
@media (max-width: 640px) {
  html body #hris-guide-btn.in-header { width: 32px; padding: 0; justify-content: center; }
  html body #hris-guide-btn.in-header .lbl { display: none; }
  html body #hris-guide-btn.in-header .dot { position: absolute; top: -5px; right: -5px; }
}
html body #hqs-btn { border-color: var(--p-n3) !important; background: var(--p-n1) !important; }

/* ——— Page content: one motion on navigation ——— */
html body .ant-layout-content > * { animation: pera-rise .18s var(--p-ease) both; }
@keyframes pera-rise { from { opacity: 0; transform: translateY(6px); } }
html body .ant-layout-content h1,
html body .ant-layout-content h2.ant-typography,
html body .ant-layout-content h1.ant-typography {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -.015em;
}

/* ——— Cards and tables ——— */
html body .ant-card { border-color: var(--p-n3) !important; }
html body .ant-card-head { border-bottom-color: var(--p-n2) !important; }
html body .ant-card-head-title { font-size: 15px !important; font-weight: 700 !important; }
html body .ant-table-wrapper .ant-table-container { border-color: var(--p-n3); border-radius: 10px; overflow: hidden; }
html body .ant-table-thead > tr > th,
html body .ant-table-thead > tr > td {
  background: var(--p-n1) !important;
  color: var(--p-n7) !important;
  border-bottom-color: var(--p-n3) !important;
}
html body .ant-table-tbody > tr > td { border-bottom-color: var(--p-n2) !important; }
html body .ant-table-tbody > tr:hover > td,
html body .ant-table-tbody > tr.ant-table-row:hover > td { background: #f6f3fb !important; }
html body .ant-table-tbody > tr > td a,
html body .ant-table-tbody > tr > td span[style*="cursor: pointer"] { color: var(--p-blue) !important; font-weight: 500; }

/* ——— Controls ——— */
html body .ant-btn { font-weight: 600 !important; transition: background-color .15s, border-color .15s, color .15s, scale .1s !important; }
html body .ant-btn:not(:disabled):active { scale: .97; }
html body .ant-btn-primary:not(.ant-btn-dangerous):not(:disabled) { box-shadow: 0 1px 2px rgba(28, 12, 52, .18) !important; }
html body .ant-input:focus,
html body .ant-input-focused,
html body .ant-input-affix-wrapper-focused,
html body .ant-picker-focused,
html body .ant-select-focused .ant-select-selector { box-shadow: 0 0 0 3px rgba(75, 42, 134, .14) !important; }
html body .ant-checkbox-checked .ant-checkbox-inner,
html body .ant-radio-checked .ant-radio-inner,
html body .ant-switch-checked { background-color: var(--p-blue) !important; border-color: var(--p-blue) !important; }
html body .ant-tabs-ink-bar { background: var(--p-blue) !important; }
html body .ant-tag { border-radius: 4px !important; }
html body .ant-tag-green, html body .ant-tag-success { background: #e9f4ec !important; color: var(--p-ok) !important; border-color: #cfe6d5 !important; }
html body .ant-tag-red, html body .ant-tag-error { background: #fbe9e8 !important; color: var(--p-bad) !important; border-color: #f2cfcd !important; }
html body .ant-tag-orange, html body .ant-tag-gold, html body .ant-tag-warning { background: #fbf3d9 !important; color: var(--p-warn) !important; border-color: #efdea6 !important; }
html body .ant-tag-blue, html body .ant-tag-processing { background: var(--p-blue-soft) !important; color: var(--p-blue) !important; border-color: #d9cdef !important; }

/* ——— Overlays ———
   No animation override on modals: AntD drives its own enter/leave motion classes
   and only removes them on animationend. */
html body .ant-modal .ant-modal-content { border-radius: 12px !important; box-shadow: 0 24px 60px rgba(28, 12, 52, .28), 0 2px 8px rgba(28, 12, 52, .12) !important; }
html body .ant-modal .ant-modal-header { border-radius: 12px 12px 0 0 !important; }
html body .ant-modal-mask { background: rgba(28, 12, 52, .45) !important; }
html body .ant-dropdown .ant-dropdown-menu,
html body .ant-select-dropdown { box-shadow: 0 12px 32px rgba(28, 12, 52, .16), 0 1px 3px rgba(28, 12, 52, .1) !important; }
html body .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { background: var(--p-blue-soft) !important; color: var(--p-blue-hover) !important; }

/* ——— Embedded pages fade in as the frame loads ——— */
html body #hris-embed-overlay { background: var(--p-n1) !important; }
html body #hris-embed-overlay iframe { animation: pera-rise .18s var(--p-ease) both; }

/* ——— Statistic figures use the figure face ——— */
html body .ant-statistic-content { font-family: var(--p-mono) !important; }

@media (prefers-reduced-motion: reduce) {
  html body .ant-layout-content > *, html body #hris-embed-overlay iframe { animation: none !important; }
  html body .ant-btn:not(:disabled):active { scale: 1; }
}

/* ——— Configuration: settings hub ———
   Hub mode: header + cards grouped by area. Screen mode: "All settings" bar + the chosen
   setting full-width. The SPA's Configuration tabs remain the screens; their tab strip is
   hidden. Everything is scoped to `.hris-settings > …` (Gov't Contributions has nested tabs). */
html body .hris-settings-page { --set-ease: cubic-bezier(.22, 1, .36, 1); }

/* Header (hub only) */
html body .hris-settings-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title meter" "sub find"; gap: 6px 32px; align-items: end; margin-bottom: 26px; }
html body .hris-settings-head > div:first-child { display: contents; }
html body .hris-settings-head h2 { grid-area: title; margin: 0 !important; font-size: 28px !important; font-weight: 700 !important; letter-spacing: -.02em; color: var(--p-n10) !important; }
html body .hris-settings-sub { grid-area: sub; margin: 0; color: var(--p-n7); font-size: 14px; max-width: 60ch; text-wrap: pretty; }
html body .hris-settings-filter { grid-area: find; justify-self: end; width: 300px; max-width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--p-n4); border-radius: 10px;
  background: var(--p-n0) no-repeat 12px 50% / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c8798' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  font: inherit; font-size: 14px; color: var(--p-n10); transition: border-color .15s, box-shadow .2s var(--set-ease); }
html body .hris-settings-filter:focus { outline: none; border-color: var(--p-blue); box-shadow: 0 0 0 3px rgba(75, 42, 134, .14); }
html body .hris-setup-meter { grid-area: meter; justify-self: end; width: 300px; }
html body .hris-setup-meter .sm-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; color: var(--p-n7); }
html body .hris-setup-meter .sm-top span { font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 11px; }
html body .hris-setup-meter .sm-top b { font: 600 15px var(--p-mono); color: var(--p-n10); }
html body .hris-setup-meter .sm-top small { font: 500 12px "Public Sans", system-ui, sans-serif; color: var(--p-n7); }
html body .hris-setup-meter .sm-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
html body .hris-setup-meter .sm-seg { all: unset; box-sizing: border-box; height: 8px; border-radius: 3px; cursor: pointer; position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, #f4dfc9 0 3px, #fbefe2 3px 6px); transition: transform .15s var(--set-ease); }
html body .hris-setup-meter .sm-seg.ok { background: var(--p-n3); }
html body .hris-setup-meter .sm-seg::after { content: ""; position: absolute; inset: 0; background: #2f8f4f; transform: scaleX(0); transform-origin: left; }
html body .hris-setup-meter .sm-seg.ok::after { transform: scaleX(1); }
html body .hris-setup-meter.is-in .sm-seg.ok::after { animation: setFill .5s var(--set-ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
html body .hris-setup-meter .sm-seg:hover { transform: scaleY(1.5); }
html body .hris-setup-meter .sm-seg:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }
@keyframes setFill { from { transform: scaleX(0); } }

/* Mode switching */
html body .hris-settings-page:not([data-mode="screen"]) .hris-settings-context,
html body .hris-settings-page:not([data-mode="screen"]) .hris-settings { display: none !important; }
html body .hris-settings-page[data-mode="screen"] .hris-settings-hub,
html body .hris-settings-page[data-mode="screen"] .hris-settings-head { display: none !important; }

/* Hub */
html body .hris-settings-hub { display: grid; gap: 28px; }
html body .hris-settings-page:not([data-mode="screen"]) .hris-settings-hub { animation: setFromLeft .28s var(--set-ease) both; }
html body .set-group[hidden], html body .set-card[hidden], html body .set-empty[hidden] { display: none !important; }
html body .set-group h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--p-n6); }
html body .set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
html body .set-card { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 14px; align-items: start; padding: 16px; cursor: pointer;
  background: var(--p-n0); border: 1px solid var(--p-n3); border-radius: 12px; text-align: left;
  transition: transform .2s var(--set-ease), box-shadow .2s var(--set-ease), border-color .2s;
  animation: setRise .34s var(--set-ease) both; animation-delay: calc(min(var(--i), 14) * 22ms); }
html body .set-card:hover { transform: translateY(-2px); border-color: #c9bce3; box-shadow: 0 10px 24px rgba(28, 12, 52, .08), 0 1px 2px rgba(28, 12, 52, .05); }
html body .set-card:active { transform: translateY(0) scale(.99); }
html body .set-card:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }
html body .set-card .ic { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--p-blue-soft); color: var(--p-blue); }
html body .set-card .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .set-card .ic.has-logo { background: #fff; border: 1px solid var(--p-n3); overflow: hidden; }
html body .set-card .ic.has-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
html body .set-card.is-todo .ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: #e0892f; box-shadow: 0 0 0 2px #fff; }
html body .set-card .tx { display: grid; gap: 3px; min-width: 0; }
html body .set-card .tx b { font-size: 15px; font-weight: 650; color: var(--p-n10); letter-spacing: -.005em; }
html body .set-card .tx small { font-size: 13px; line-height: 1.45; color: var(--p-n7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .set-card .sts { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 13px; }
html body .set-card .st-ok { color: var(--p-n8); } html body .set-card .st-ok b { font: 600 13px var(--p-mono); color: var(--p-n10); }
html body .set-card .st-muted, html body .set-card .st-wait { color: var(--p-n6); }
html body .set-card .st-todo { color: #8a4b0c; background: #fdf0e1; border: 1px solid #f3d6b4; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 600; }
html body .set-card .go { width: 16px; height: 16px; margin-top: 12px; fill: none; stroke: var(--p-n5); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--set-ease), stroke .2s; }
html body .set-card:hover .go { transform: translateX(3px); stroke: var(--p-blue); }
html body .set-empty { margin: 0; padding: 28px; text-align: center; color: var(--p-n7); border: 1px dashed var(--p-n4); border-radius: 12px; }
@keyframes setRise { from { opacity: 0; transform: translateY(8px); filter: blur(2px); } }
@keyframes setFromLeft { from { opacity: 0; transform: translateX(-14px); filter: blur(3px); } }
@keyframes setFromRight { from { opacity: 0; transform: translateX(14px); filter: blur(3px); } }

/* Screen: "All settings" bar + the chosen setting full width */
html body .hris-settings-context { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
html body .hris-settings-page[data-mode="screen"] .hris-settings-context,
html body .hris-settings-page[data-mode="screen"] .hris-settings > .ant-tabs-content-holder { animation: setFromRight .28s var(--set-ease) both; }
html body .set-back { all: unset; box-sizing: border-box; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 8px; border: 1px solid var(--p-n3);
  border-radius: 999px; background: var(--p-n0); font-size: 13px; font-weight: 600; color: var(--p-n8); cursor: pointer; transition: border-color .15s, color .15s, transform .15s var(--set-ease); }
html body .set-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--set-ease); }
html body .set-back:hover { border-color: var(--p-blue); color: var(--p-blue); }
html body .set-back:hover svg { transform: translateX(-2px); }
html body .set-back:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }
html body .hris-settings-context .ctx-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p-n7); }
html body .hris-settings-context .ctx-crumb i { font-style: normal; color: var(--p-n5); }
html body .hris-settings-context .ctx-crumb b { color: var(--p-n10); font-weight: 650; font-size: 20px; letter-spacing: -.01em; }
html body .hris-settings-context .ctx-desc { margin: 4px 0 8px; font-size: 14px; color: var(--p-n8); max-width: 80ch; text-wrap: pretty; }
html body .hris-settings-context .ctx-used { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--p-n7); }
html body .hris-settings-context .ctx-used em { font-style: normal; padding: 1px 8px; border: 1px solid var(--p-n3); border-radius: 999px; background: var(--p-n0); color: var(--p-n8); }
html body .hris-settings-context .ctx-guide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--p-n8); }
html body .hris-settings-context .ctx-guide button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px;
  background: var(--p-blue); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
html body .hris-settings-context .ctx-guide button:hover { filter: brightness(1.12); }
html body .hris-settings-context .ctx-guide button:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 2px; }
html body .hris-settings-context .ctx-guide svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html body .hris-settings.ant-tabs { display: block !important; }
html body .hris-settings > .ant-tabs-nav { display: none !important; }
html body .hris-settings > .ant-tabs-content-holder { border-left: 0 !important; margin: 0 !important; min-width: 0; }
html body .hris-settings > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane { padding-left: 0 !important; }
html body .hris-settings > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane > .ant-row { margin: 0 !important; }
html body .hris-settings > .ant-tabs-content-holder > .ant-tabs-content > .ant-tabs-tabpane > .ant-row > .ant-col { padding: 0 !important; }
html body .hris-settings > .ant-tabs-content-holder .ant-tabs-tabpane-active > .ant-row > .ant-card,
html body .hris-settings > .ant-tabs-content-holder .ant-tabs-tabpane-active > .ant-row > .ant-col > .ant-card { border: 1px solid var(--p-n3) !important; border-radius: 12px !important; box-shadow: 0 1px 2px rgba(20, 26, 36, .04) !important; }
html body .hris-settings > .ant-tabs-content-holder .ant-card-head { min-height: 56px; padding: 0 20px; border-bottom: 1px solid var(--p-n2); }
html body .hris-settings > .ant-tabs-content-holder .ant-card-head-title { font-size: 16px !important; font-weight: 650 !important; }
/* Wide tables scroll sideways instead of breaking the page */
html body .hris-settings > .ant-tabs-content-holder .ant-table-container { overflow-x: auto; }
html body .hris-settings > .ant-tabs-content-holder .ant-table-container table { min-width: 640px; }

@media (max-width: 960px) {
  html body .hris-settings-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "sub" "meter" "find"; gap: 8px; }
  html body .hris-setup-meter, html body .hris-settings-filter { justify-self: stretch; width: 100%; }
  html body .hris-setup-meter { margin-top: 8px; }
}
@media (max-width: 640px) {
  html body .hris-settings-head h2 { font-size: 22px !important; }
  /* Cards become compact rows, like phone settings */
  html body .hris-settings-hub { gap: 20px; }
  html body .set-grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--p-n0); border: 1px solid var(--p-n3); border-radius: 12px; overflow: hidden; }
  html body .set-card { grid-template-columns: 36px minmax(0, 1fr) 14px; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-radius: 0; border-top: 1px solid var(--p-n2); }
  html body .set-card:first-child { border-top: 0; }
  html body .set-card:hover { transform: none; box-shadow: none; background: var(--p-n1); }
  html body .set-card .ic { width: 36px; height: 36px; }
  html body .set-card .tx small { display: none; }
  html body .set-card .sts { margin-top: 2px; }
  html body .set-card .go { margin-top: 0; }
  html body .hris-settings-context .ctx-used { display: none; }
  html body .hris-settings > .ant-tabs-content-holder .ant-card-head-wrapper { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  html body .hris-settings > .ant-tabs-content-holder .ant-card-extra { margin-left: 0 !important; }
  html body .hris-settings > .ant-tabs-content-holder .ant-card-body { padding: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body .set-card, html body .hris-settings-hub, html body .hris-settings-context, html body .hris-settings > .ant-tabs-content-holder,
  html body .hris-setup-meter.is-in .sm-seg.ok::after { animation: none !important; }
  html body .set-card, html body .set-card .go, html body .set-back, html body .set-back svg { transition: none !important; }
}

/* Company profile: settings rows. Section title + note on the left, fields on the right, a hairline between rows. */
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-card-body { padding: 8px 28px 28px !important; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); column-gap: 44px; align-items: start; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > * { grid-column: 2; min-width: 0; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form::before,
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form::after { grid-column: 1; padding-top: 24px; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form::before { content: "Company"; grid-row: 1; font-size: 15px; font-weight: 650; color: var(--p-n10); }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form::after { content: "Your logo, legal name and address. They appear on payslips, reports and your careers page."; grid-row: 1 / span 3; align-self: start;
  padding-top: 54px; font-size: 13px; line-height: 1.5; color: var(--p-n7); }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > :first-child { margin-top: 24px; }
/* Section titles (the old big icon headings) become the left column of each row */
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography { grid-column: 1; display: block; margin: 0 !important; padding-top: 28px; border-top: 1px solid var(--p-n2);
  font-size: 15px !important; font-weight: 650 !important; letter-spacing: 0; text-transform: none; color: var(--p-n10) !important; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography .anticon,
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography .ant-divider { display: none !important; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography::after { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--p-n7); }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography:nth-of-type(1)::after { content: "How employees, clients and agencies reach the company."; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography:nth-of-type(2)::after { content: "Official email and website, shown on documents and your careers page."; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography:nth-of-type(3)::after { content: "Basis for dependent benefits."; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography:nth-of-type(4)::after { content: "Multipliers applied to the hourly rate when the DTR is generated."; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography:has(+ span) { grid-row: span 2; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography + div,
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography + span { padding-top: 28px; border-top: 1px solid var(--p-n2); margin-bottom: 4px; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > span.ant-typography-secondary { display: block; margin: 0 0 14px; font-size: 13px; color: var(--p-n7); }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > span.ant-typography-secondary + div { padding-top: 0; }
/* Logo tile */
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > div:has(.hris-profile-logo) { display: flex; align-items: center; gap: 16px; text-align: left !important; margin: 24px 0 20px !important;
  padding: 0; border: 0; background: none; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > div:has(.hris-profile-logo) > div { margin: 0 !important; font-size: 13px !important; color: var(--p-n7) !important; }
html body .hris-settings > .ant-tabs-content-holder .hris-profile-logo { width: 72px; height: 72px; object-fit: contain; padding: 8px !important; border-radius: 14px !important; border: 1px solid var(--p-n3) !important; background: #fff !important;
  box-shadow: 0 1px 2px rgba(20, 26, 36, .06); }
/* Fields: calmer labels and inputs */
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form-item { margin-bottom: 18px; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form-item-label { padding-bottom: 6px !important; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input, html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input-affix-wrapper,
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input-number { border-radius: 8px !important; font-size: 14px !important; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input-affix-wrapper, html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > .ant-form-item .ant-input { min-height: 40px; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input-prefix .anticon { color: var(--p-n6); }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input-number { width: 100%; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input-number-input { height: 38px; padding: 0 12px !important; font-family: var(--p-mono); font-size: 14px; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-input-number-input::placeholder { font-family: "Public Sans", system-ui, sans-serif; }
html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form-item-extra { font-size: 12px; color: var(--p-n6); margin-top: 4px; }
@media (max-width: 1100px) {
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form { grid-template-columns: minmax(0, 1fr); }
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > *,
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography,
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form::before,
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form::after { grid-column: 1; grid-row: auto; }
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form::after { display: none; }
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography + div,
  html body .hris-settings > .ant-tabs-content-holder [id$="-panel-3"] .ant-form > h4.ant-typography + span { border-top: 0; padding-top: 12px; }
}
html body .hris-settings > .ant-tabs-content-holder .ant-form-item-label > label { font-weight: 600; color: var(--p-n8); font-size: 13px; }
