/* DigiPixel HRMS — AMS design system overlay (after main.css)
   Inter is loaded via self-hosted inter.css from the layout.
   Do not concatenate Blade <style> dumps or print/email CSS into this file. */

:root {
  color-scheme: light;

  --brand-50: #e5e9f5;
  --brand-100: #cdd5eb;
  --brand-200: #9bacd8;
  --brand-300: #7d94c9;
  --brand-400: #4a62b8;
  --brand-500: #2644b1;
  --brand-600: #2644b1;
  --brand-700: #02076f;
  --brand-800: #010948;
  --brand-900: #010135;
  --brand-950: #010135;
  --brand-primary: #2644b1;
  --brand-dark: #010135;
  --brand-surface: #e5e9f5;

  --accent-50: #fbf3eb;
  --accent-100: #fdd5ad;
  --accent-300: #f98612;
  --accent-400: #f98612;
  --accent-500: #ed4b00;
  --accent-600: #ed4b00;
  --accent-700: #c23d00;
  --accent-800: #672100;
  --accent-900: #672100;
  --accent-primary: #ed4b00;
  --accent-surface: #fbf3eb;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #64748b;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --emerald-50: #ecfdf5;
  --emerald-600: #047857;
  --emerald-700: #047857;
  --red-50: #fef2f2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --amber-600: #b45309;

  /* Incumbent theme bridge — full AMS primary scale (beats main.css :root) */
  --base: #2644b1;
  --base-d-100: #1f3a99;
  --base-d-200: #02076f;
  --base-d-300: #010948;
  --base-d-400: #010135;
  --base-d-500: #010135;
  --base-l-100: #2f4fc0;
  --base-l-200: #4a62b8;
  --base-l-300: #7d94c9;
  --base-l-400: #9bacd8;
  --base-l-500: #cdd5eb;
  --base-l-600: #d9e0f2;
  --base-l-700: #e5e9f5;
  --base-l-800: #eef1f8;
  --base-l-900: #f5f7fb;
  --hrm-accent: var(--brand-primary);
  --hrm-accent-hover: var(--brand-700);
  --hrm-ink: var(--slate-900);
  --hrm-muted: var(--slate-500);
  --hrm-surface: var(--slate-50);
  --hrm-surface-2: #ffffff;
  --hrm-border: var(--slate-200);
  --hrm-success: var(--emerald-700);
  --hrm-warning: var(--amber-600);
  --hrm-danger: var(--red-700);

  --radius-control: 0.375rem;
  --radius-surface: 0.5rem;
  --hrm-radius: var(--radius-surface);
  --control-height: 2rem;

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --duration: 160ms;

  --font-sans: "Inter", "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hrm-font: var(--font-sans);

  --shadow-lift: 0 1px 2px rgb(15 23 42 / 0.05);
  --shadow-pop: 0 4px 12px -2px rgb(15 23 42 / 0.10),
    0 1px 3px -1px rgb(15 23 42 / 0.06);
  --shadow-float: 0 16px 40px -12px rgb(15 23 42 / 0.18);
  --hrm-shadow: var(--shadow-lift);

  --bg-page-ground: #f4f5f7;
  --bg-surface: #ffffff;
  --bg-brand-fill: #2644b1;
  --bg-header-bar: #ffffff;

  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;

  --fs-xs: 0.6875rem;
  --fs-sm: 0.75rem;
  --fs-base: 0.8125rem;
  --fs-md: 0.875rem;
  --fs-lg: 0.9375rem;
  --fs-xl: 1.125rem;
  --fs-2xl: 1.375rem;
  --fs-input: 1rem;

  --row-h: 3.5rem;
  --tap-min: 2.75rem;
  --rail-w: 16rem;
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1200px;
}

html {
  font-size: 100%;
}

/* Layout primitives — the ONLY place spacing is defined */

.hrm-stack { display: flex; flex-direction: column; }
.hrm-stack--1 { gap: var(--sp-1); }
.hrm-stack--2 { gap: var(--sp-2); }
.hrm-stack--3 { gap: var(--sp-3); }
.hrm-stack--4 { gap: var(--sp-4); }
.hrm-stack--5 { gap: var(--sp-5); }
.hrm-stack--6 { gap: var(--sp-6); }

.hrm-row-flex { display: flex; }
.hrm-row-flex--2 { gap: var(--sp-2); }
.hrm-row-flex--3 { gap: var(--sp-3); }
.hrm-row-flex--4 { gap: var(--sp-4); }
.hrm-row-flex.is-center   { align-items: center; }
.hrm-row-flex.is-start    { align-items: flex-start; }
.hrm-row-flex.is-baseline { align-items: baseline; }
.hrm-row-flex.is-between  { justify-content: space-between; }
.hrm-row-flex.is-start-j  { justify-content: flex-start; }

.hrm-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-5);
  align-items: start;
}
.hrm-grid > * { grid-column: span 3; }
.hrm-grid > [data-span="1"]  { grid-column: span 1; }
.hrm-grid > [data-span="2"]  { grid-column: span 2; }
.hrm-grid > [data-span="3"]  { grid-column: span 3; }
.hrm-grid > [data-span="4"]  { grid-column: span 4; }
.hrm-grid > [data-span="5"]  { grid-column: span 5; }
.hrm-grid > [data-span="6"]  { grid-column: span 6; }
.hrm-grid > [data-span="7"]  { grid-column: span 7; }
.hrm-grid > [data-span="8"]  { grid-column: span 8; }
.hrm-grid > [data-span="9"]  { grid-column: span 9; }
.hrm-grid > [data-span="10"] { grid-column: span 10; }
.hrm-grid > [data-span="11"] { grid-column: span 11; }
.hrm-grid > [data-span="12"] { grid-column: span 12; }

@media (max-width: 1200px) {
  .hrm-grid > * { grid-column: span 12 !important; }
}

.hrm-block {
  background: var(--bg-surface);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.hrm-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
}
.hrm-block__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--hrm-ink);
  margin: 0;
}
.hrm-block__sub {
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
  margin: var(--sp-1) 0 0;
}
.hrm-block > .hrm-stack,
.hrm-block > form,
.hrm-block > .hrm-block__body { padding: 0 var(--sp-4) var(--sp-4); }

::selection {
  background-color: var(--brand-200);
  color: var(--brand-900);
}

body,
.dd-content,
.sidebar-menu,
.form-control,
.form-select,
.btn,
.modal,
.dropdown-menu,
.select2-container,
.select2-selection,
.select2-results {
  font-family: "Inter", "Inter Variable", system-ui, sans-serif !important;
}

body,
body.hrm-ams {
  font-size: var(--fs-md) !important;
  line-height: 1.375rem !important;
  font-weight: 400 !important;
  color: var(--slate-900) !important;
  background: var(--bg-page-ground) !important;
}

/* ---------- Focus ---------- */
.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
a:focus-visible,
.page-link:focus,
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
  outline: 2px solid var(--brand-primary) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

.table td:focus-visible,
.table th:focus-visible,
.table tr:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: -2px;
}

.form-check-input:focus {
  outline-offset: 1px;
}

/* ---------- Page rhythm ---------- */
.hrm-page {
  padding-bottom: var(--sp-6);
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  max-width: 100%;
  overflow-x: clip;
}

.dd-content {
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

/* Staff pages yield outside the header shell; a second .dd-content
   supplies the rail offset. Nested copies must not add a second offset. */
body.hrm-ams .dd-content .dd-content {
  margin-left: 0 !important;
}

body.hrm-ams .dd-content .form-control,
body.hrm-ams .dd-content textarea.form-control {
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}

body.hrm-ams .dd-content .form-select {
  padding-left: var(--sp-3);
  padding-right: var(--sp-6) !important;
}

body.hrm-ams .dd-content .card-body {
  padding: var(--sp-4);
}

.hrm-payslip-doc,
.payslip,
.hrm-is-20efda63,
.hrm-is-ce67f13b {
  padding: var(--sp-5);
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .dd-content,
  .hrm-page {
    padding-left: var(--sp-5);
    padding-right: var(--sp-5);
  }
}

@media (min-width: 992px) {
  .dd-content,
  .hrm-page {
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
  }
}

.hrm-page .container-fluid {
  max-width: 1680px;
}

/* ---------- Surfaces ---------- */
.hrm-card,
.dd-content .card,
.ess-card,
.home .card.ess-card,
.addons-card,
.addons-card.hrm-employee-card {
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-surface) !important;
  box-shadow: var(--shadow-lift) !important;
}

.hrm-card {
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.hrm-card:hover {
  transform: none;
}

.hrm-hero-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-lift);
}

/* ---------- Page header ---------- */
.hrm-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
  max-width: 100%;
  min-width: 0;
}

.hrm-page-header h1,
.hrm-page-header .hrm-title {
  font-size: var(--fs-xl);
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--slate-900);
}

.hrm-page-header .hrm-subtitle {
  margin: var(--sp-1) 0 0;
  color: var(--slate-500);
  font-size: var(--fs-base);
  line-height: 1.25rem;
  font-weight: 400;
}

.hrm-actions,
.hrm-quick-actions,
.hrm-filter-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
}

.hrm-page-header .hrm-actions {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Buttons (compact, flat, tight clusters) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1) !important;
  border-radius: var(--radius-control) !important;
  font-weight: 500;
  font-size: var(--fs-base) !important;
  line-height: 1.25rem !important;
  padding: var(--sp-2) var(--sp-4) !important;
  min-height: 2.25rem;
  margin: var(--sp-1);
  box-shadow: none !important;
  transition:
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    opacity var(--duration) var(--ease-out);
}

.btn iconify-icon,
.btn i {
  font-size: var(--fs-lg);
}

.btn:active:not(:disabled) {
  transform: none;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
}

.btn-sm {
  padding: var(--sp-2) var(--sp-3) !important;
  min-height: 2rem;
  font-size: var(--fs-base) !important;
  line-height: 1.125rem !important;
}

.btn-lg {
  padding: var(--sp-2) var(--sp-4) !important;
  min-height: 2.25rem;
  font-size: var(--fs-md) !important;
}

.btn-base,
.btn-primary,
a.btn-base,
button.btn-base {
  color: #fff !important;
  border: 1px solid var(--brand-primary) !important;
  border-radius: var(--radius-control) !important;
  background-color: var(--brand-primary) !important;
  background-image: none !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

.btn-base:hover,
.btn-base:focus,
.btn-base:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff !important;
  filter: none;
  background-color: var(--brand-700) !important;
  background-image: none !important;
  border-color: var(--brand-700) !important;
}

.btn-base.pill {
  border-radius: var(--radius-control) !important;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-secondary {
  color: var(--slate-700) !important;
  background-color: #fff !important;
  background-image: none !important;
  border: 1px solid var(--slate-200) !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-secondary:hover {
  color: var(--slate-900) !important;
  background-color: var(--slate-50) !important;
  border-color: var(--slate-300) !important;
}

.btn-outline-base {
  color: var(--brand-700) !important;
  background: #fff !important;
  border: 1px solid var(--slate-300) !important;
}

.btn-outline-base:hover {
  background: var(--brand-50) !important;
  border-color: var(--brand-200) !important;
}

.btn-light,
.btn-link {
  color: var(--slate-600) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.btn-light:hover,
.btn-link:hover {
  color: var(--slate-800) !important;
  background: var(--slate-100) !important;
}

.btn-danger {
  color: #fff !important;
  border: 1px solid var(--red-600) !important;
  background-color: var(--red-600) !important;
  background-image: none !important;
}

.btn-danger:hover,
.btn-danger:focus {
  color: #fff !important;
  filter: none;
  background-color: var(--red-700) !important;
  border-color: var(--red-700) !important;
}

.btn-info,
.btn-success,
.btn-warning {
  border-radius: var(--radius-control) !important;
  font-weight: 500;
}

.btn-info {
  color: var(--brand-700) !important;
  background: var(--brand-50) !important;
  border: 1px solid var(--brand-100) !important;
}

.btn-success {
  color: var(--emerald-700) !important;
  background: var(--emerald-50) !important;
  border: 1px solid #a7f3d0 !important;
}

.btn-warning {
  color: var(--accent-800) !important;
  background: var(--accent-50) !important;
  border: 1px solid var(--accent-100) !important;
}

/* ---------- Forms ---------- */
.form-label,
.col-form-label {
  display: block;
  margin-bottom: var(--sp-1);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--slate-700);
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: var(--radius-control) !important;
  border: 1px solid var(--slate-200) !important;
  background-color: #fff !important;
  color: var(--slate-900) !important;
  font-size: var(--fs-base);
  line-height: 1.25rem;
  padding: var(--sp-1) var(--sp-2);
  min-height: var(--control-height);
  transition: border-color var(--duration) var(--ease-out);
}

.form-select {
  padding-right: var(--sp-6) !important;
  background-position: right var(--sp-3) center;
  background-size: var(--sp-4) var(--sp-3);
  min-width: 7rem;
}

.form-control::placeholder {
  color: var(--slate-400);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--slate-400) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-600) !important;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: var(--slate-50) !important;
  color: var(--slate-500) !important;
}

textarea.form-control {
  min-height: 5.5rem;
  padding-top: var(--sp-2);
  padding-bottom: var(--sp-2);
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-control[aria-invalid="true"] {
  border-color: var(--red-500) !important;
}

/* ---------- Native dropdowns ---------- */
.dropdown-menu {
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-surface) !important;
  box-shadow: var(--shadow-pop) !important;
  padding: var(--sp-1);
  background: #fff;
}

.dropdown-item {
  border-radius: var(--radius-control);
  font-size: var(--fs-md);
  color: var(--slate-800);
  padding: var(--sp-2) var(--sp-3);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--slate-100);
  color: var(--slate-900);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* ---------- Select2 ---------- */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-control) !important;
  background-color: #fff !important;
  min-height: var(--control-height);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--slate-900) !important;
  line-height: 30px !important;
  padding-left: var(--sp-2);
  font-size: var(--fs-base);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 30px;
}

.select2-container--default .select2-selection--multiple {
  padding: var(--sp-1) var(--sp-1);
}

.select2-dropdown {
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-surface) !important;
  box-shadow: var(--shadow-pop);
  background: #fff;
  overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--brand-50) !important;
  color: var(--brand-700) !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: var(--brand-100);
  color: var(--brand-700);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--slate-300) !important;
  border-radius: var(--radius-control) !important;
  padding: var(--sp-2) var(--sp-3);
}

.select2-container--default.select2-container--disabled .select2-selection {
  background-color: var(--slate-50) !important;
}

/* ---------- Modals ---------- */
.modal-backdrop.show {
  background-color: rgb(15 23 42 / 0.3);
  opacity: 1;
}

.modal-content {
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-surface) !important;
  box-shadow: var(--shadow-float) !important;
  background: #fff;
}

.modal-header {
  border-bottom: 1px solid rgb(226 232 240 / 0.7);
  padding: var(--sp-4) var(--sp-4);
}

.modal-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.modal-footer {
  border-top: 1px solid rgb(226 232 240 / 0.7);
}

.modal.fade .modal-dialog {
  transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out);
}

.modal.show .modal-dialog {
  transform: none;
}

/* ---------- Tables ---------- */
/* Clip card corners. Horizontal scroll lives on an inner .table-responsive,
   never on the card itself — combining both classes used to set overflow:
   hidden and made Action columns unreachable. */
.dd-content .card.table-v1 {
  overflow: hidden;
}

.dd-content .table-responsive.card,
.dd-content .card.table-v1 > .table-responsive,
.dd-content .hrm-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.dd-content .hrm-table-scroll::-webkit-scrollbar {
  height: var(--sp-3);
}

.dd-content .hrm-table-scroll::-webkit-scrollbar-track {
  background: var(--slate-100);
}

.dd-content .hrm-table-scroll::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: var(--radius-control);
}

.dd-content .table {
  --bs-table-hover-bg: rgb(248 250 252 / 0.7);
  color: var(--slate-800);
  margin-bottom: 0;
}

.dd-content .table > :not(caption) > * > * {
  border-bottom-color: var(--slate-100);
}

.dd-content .table thead th,
.dd-content .table-v1 thead th,
.dt-container thead th {
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 100%);
  color: var(--slate-500) !important;
  font-weight: 500 !important;
  font-size: var(--fs-sm);
  line-height: 1rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-bottom: 1px solid var(--slate-200) !important;
  white-space: nowrap;
}

.dd-content .table tbody td {
  font-size: var(--fs-md);
  vertical-align: middle;
}

.dd-content .hrm-table-scroll tbody td {
  white-space: nowrap;
  min-height: var(--row-h);
  height: var(--row-h);
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--slate-800);
}

.hrm-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-1);
  align-items: center;
  justify-content: flex-end;
}

.hrm-table-scroll th.hrm-col-act-end,
.hrm-table-scroll td.hrm-col-act-end {
  background: var(--bg-surface);
  width: 1%;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hrm-table-scroll th.hrm-col-act-end,
  .hrm-table-scroll td.hrm-col-act-end {
    position: sticky;
    right: 0;
    z-index: 2;
    box-shadow: -1px 0 0 var(--slate-200);
  }

  .hrm-table-scroll thead th.hrm-col-act-end {
    background: linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 100%);
    z-index: 3;
  }

  .dd-content .table tbody tr:hover td.hrm-col-act-end {
    background-color: color-mix(in srgb, var(--slate-50) 70%, transparent);
  }
}

.dd-content .hrm-table-scroll tbody td.hrm-col-act-end,
.dd-content .hrm-table-scroll tbody td[colspan] {
  overflow: visible;
  white-space: normal;
  height: auto;
}

@media (max-width: 767.98px) {
  .hrm-table-scroll th:first-child,
  .hrm-table-scroll td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-surface);
    box-shadow: 1px 0 0 var(--slate-200);
  }

  .hrm-table-scroll thead th:first-child {
    background: linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 100%);
    z-index: 4;
  }

  .dd-content .table tbody tr:hover td:first-child {
    background-color: color-mix(in srgb, var(--slate-50) 70%, transparent);
  }
}

.dd-content .table tbody tr:hover {
  background-color: rgb(248 250 252 / 0.7);
}

.dd-content .table a:not(.btn) {
  color: var(--slate-900);
  font-weight: 500;
  text-decoration: none;
}

.dd-content .table a:not(.btn):hover {
  color: var(--brand-700);
}

.dt-container .dt-search input,
.dt-container .dt-length select {
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-control);
  font-size: var(--fs-md);
}

/* ---------- Tabs ---------- */
.nav-tabs {
  border-bottom: 1px solid rgb(226 232 240 / 0.7);
}

.nav-tabs .nav-link {
  color: var(--hrm-ink);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-weight: 500;
  font-size: var(--fs-base);
  padding: var(--sp-2) var(--sp-3);
  text-decoration: none;
}

.nav-tabs .nav-link:hover {
  color: var(--hrm-ink);
  border-bottom-color: var(--slate-300);
  isolation: isolate;
  text-decoration: none;
}

.nav-tabs .nav-link.active {
  color: var(--hrm-ink) !important;
  background: transparent !important;
  font-weight: 600;
  border-bottom: 2px solid var(--brand-primary) !important;
}

/* ---------- Badges ---------- */
.hrm-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1rem;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.hrm-badge-secondary,
.badge.bg-secondary,
.badge.text-bg-secondary {
  background: var(--slate-100) !important;
  color: var(--slate-700) !important;
  border-color: transparent;
}

.hrm-badge-info,
.badge.bg-info,
.badge.text-bg-info,
.badge.bg-primary {
  background: var(--brand-50) !important;
  color: var(--brand-700) !important;
}

.hrm-badge-success,
.badge.bg-success,
.badge.text-bg-success {
  background: var(--emerald-50) !important;
  color: var(--emerald-700) !important;
}

.hrm-badge-warning,
.badge.bg-warning,
.badge.text-bg-warning {
  background: var(--accent-50) !important;
  color: var(--accent-800) !important;
}

.hrm-badge-danger,
.badge.bg-danger,
.badge.text-bg-danger {
  background: var(--red-50) !important;
  color: var(--red-700) !important;
}

/* ---------- Empty / stepper / money ---------- */
.hrm-empty {
  text-align: center;
  padding: var(--sp-6) var(--sp-5);
  color: var(--slate-500);
}

.hrm-empty-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto var(--sp-3);
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
}

.hrm-empty h5,
.hrm-empty-title {
  color: var(--slate-900);
  font-weight: 600;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-1);
}

.hrm-empty--slot {
  padding: var(--sp-4) var(--sp-2) var(--sp-3);
}

.hrm-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.hrm-stepper .hrm-step {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-control);
  font-size: var(--fs-base);
  font-weight: 500;
  border: 1px solid var(--slate-200);
  background: #fff;
  color: var(--slate-500);
}

.hrm-stepper .hrm-step.is-active,
.hrm-stepper .hrm-step.is-done {
  background: var(--brand-50);
  border-color: var(--brand-100);
  color: var(--brand-700);
}

.hrm-money,
.hrm-table td.money,
.table .hrm-money,
.nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- Shell layout ---------- */
body.hrm-ams main.hrm-shell {
  min-height: 100dvh;
}

/* ---------- Shell: sidebar ---------- */
.sidebar-menu.hrm-sidebar {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid rgb(226 232 240 / 0.7);
  box-shadow: none;
  height: 100dvh;
  overflow-y: auto;
}

.sidebar-menu .logo-wrapper.hrm-brand,
.sidebar-menu.hrm-sidebar .logo-wrapper.hrm-brand,
.sidebar-menu .logo-wrapper,
.hrm-sidebar .logo-wrapper,
.hrm-sidebar .hrm-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: var(--sp-1);
  width: 100%;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  box-sizing: border-box;
  border-bottom: 0;
}

.sidebar-menu.hrm-sidebar a.hrm-brand-link,
.hrm-brand-link {
  display: block;
  width: auto;
  max-width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.hrm-logo {
  display: block;
  max-height: calc(var(--fs-2xl) + var(--sp-4));
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  background: transparent;
}

.hrm-auth-logo,
img.hrm-auth-logo {
  display: block;
  margin-inline: auto;
  max-width: 12rem;
  max-height: calc(var(--fs-2xl) + var(--sp-5));
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.hrm-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hrm-wordmark {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--slate-500);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrm-wordmark--solo {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--slate-900);
}

.hrm-brand-sub {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--slate-500);
  line-height: 1.25;
}

.hrm-sidebar-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: var(--sp-1) var(--sp-3) var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  width: calc(100% - 1.7rem);
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: var(--fs-base);
  text-align: left;
}

.hrm-sidebar-search kbd {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--slate-400);
  border: 1px solid var(--slate-200);
  border-radius: 0.25rem;
  padding: var(--sp-1) var(--sp-1);
}

.hrm-sidebar .sidebar-menu-list {
  flex: 1 1 auto;
  min-height: 0;
}

.hrm-sidebar-foot {
  margin-top: auto;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--slate-200);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-500);
  letter-spacing: 0.02em;
}

.hrm-logo-preview {
  width: 6.5rem;
  height: 6.5rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: var(--sp-1);
}

@media (min-width: 1200px) {
  html.hrm-rail-collapsed .sidebar-menu {
    width: 4.5rem;
  }

  html.hrm-rail-collapsed .dd-content {
    margin-left: var(--sp-7) !important;
  }

  html.hrm-rail-collapsed .hrm-brand-text,
  html.hrm-rail-collapsed .hrm-wordmark,
  html.hrm-rail-collapsed .sidebar-menu-list__link .text,
  html.hrm-rail-collapsed .sidebar-menu-list__link .badge,
  html.hrm-rail-collapsed .hrm-sidebar-search span,
  html.hrm-rail-collapsed .hrm-sidebar-search kbd,
  html.hrm-rail-collapsed .sidebar-submenu,
  html.hrm-rail-collapsed .sidebar-title,
  html.hrm-rail-collapsed .hrm-ams-exit--sidebar span {
    display: none !important;
  }

  html.hrm-rail-collapsed .hrm-sidebar-foot {
    display: flex;
    justify-content: center;
    padding: var(--sp-3);
  }

  html.hrm-rail-collapsed .hrm-ams-exit--sidebar {
    width: var(--tap-min);
    min-width: var(--tap-min);
    padding: 0;
    justify-content: center;
  }

  html.hrm-rail-collapsed .hrm-brand-link {
    justify-content: center;
  }

  html.hrm-rail-collapsed .hrm-sidebar-search {
    width: 2.5rem;
    margin: var(--sp-1) auto var(--sp-3);
    padding: var(--sp-2);
    justify-content: center;
  }

  html.hrm-rail-collapsed .sidebar-menu-list__link {
    justify-content: center;
    padding-left: var(--sp-2);
    padding-right: var(--sp-2);
  }

  html.hrm-rail-collapsed .sidebar-menu-list__item.has-dropdown > a:after {
    display: none;
  }

  html.hrm-rail-collapsed .hrm-logo {
    max-width: 2.25rem;
    max-height: 2.25rem;
  }
}

.sidebar-menu .sidebar-title {
  font-size: var(--fs-base) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--slate-500) !important;
  margin-top: var(--sp-4) !important;
  margin-bottom: var(--sp-1) !important;
}

.sidebar-menu-list__link {
  border-radius: var(--radius-control);
  color: var(--slate-700);
  font-weight: 400;
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.sidebar-menu-list__link:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.sidebar-menu-list__link.active,
.sidebar-submenu-list__link.active,
.sidebar-menu-list__item.has-dropdown.active > .sidebar-menu-list__link {
  background: var(--brand-50) !important;
  background-color: #e5e9f5 !important;
  color: var(--brand-700) !important;
  font-weight: 500 !important;
}

.sidebar-menu-list__link.active .icon,
.sidebar-menu-list__link.active .text,
.sidebar-submenu-list__link.active {
  color: #02076f !important;
}

.sidebar-menu-list__link:hover {
  background: #f1f5f9 !important;
}

.sidebar-submenu-list__link {
  color: var(--slate-600);
  border-radius: var(--radius-control);
}

.sidebar-submenu-list__link:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* ---------- Shell: header ---------- */
.dd-head,
.hrm-app-header.dd-head {
  background-color: #fff !important;
  background-image: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0 !important;
  border-bottom: 1px solid var(--slate-200) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-bottom: var(--sp-4) !important;
  padding-top: var(--sp-2) !important;
  padding-bottom: var(--sp-2) !important;
  position: sticky;
  top: 0;
  z-index: 30;
}

.hrm-app-header .title {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  font-size: var(--fs-xl);
}

.hrm-app-header .time {
  font-size: var(--fs-base);
  color: var(--slate-500);
  line-height: 1.3;
}

.hrm-app-header button.u-info {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
}

.hrm-app-header button.u-info:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}

.hrm-avatar {
  --sz: 32px;
  width: var(--sz);
  height: var(--sz);
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hrm-avatar-initials {
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
  font-size: calc(var(--sz) * 0.36);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hrm-app-header .u-img .hrm-avatar {
  --sz: 40px;
}

.hrm-app-header .d-icon {
  color: var(--slate-500);
  border-radius: var(--radius-control);
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.hrm-app-header .d-icon:hover {
  background: var(--slate-100);
  color: var(--slate-800);
}

.hrm-ams-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-control);
  background: var(--slate-50);
  color: var(--slate-700);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.hrm-ams-exit:hover,
.hrm-ams-exit:focus-visible {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-200);
}

.hrm-ams-exit:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.hrm-ams-exit iconify-icon {
  font-size: var(--fs-lg);
}

.hrm-ams-exit__short {
  display: none;
}

.hrm-ams-exit--sidebar {
  width: 100%;
  justify-content: flex-start;
}

.hrm-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1rem;
  height: 1rem;
  padding: 0 var(--sp-1);
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: var(--fs-xs);
  line-height: 1rem;
  text-align: center;
  font-weight: 600;
}

.hrm-notif-menu {
  width: min(22rem, 92vw);
  max-height: 24rem;
  overflow: hidden;
}

.hrm-notif-list {
  max-height: 18rem;
  overflow-y: auto;
}

.hrm-notif-item {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--slate-100);
  text-decoration: none;
  color: inherit;
}

.hrm-notif-item:hover {
  background: var(--slate-50);
}

.hrm-notif-item.hrm-notif-unread {
  background: var(--brand-50);
}

.hrm-notif-title {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--slate-800);
}

.hrm-notif-body {
  display: block;
  font-size: var(--fs-sm);
  color: var(--slate-600);
  margin-top: var(--sp-1);
}

.hrm-notif-time {
  display: block;
  font-size: var(--fs-xs);
  color: var(--slate-400);
  margin-top: var(--sp-1);
}

/* ---------- Breadcrumb quiet ---------- */
.breadcrumb-section .breadcrumb-item,
.breadcrumb-section .breadcrumb-item a {
  color: var(--slate-500);
  font-size: var(--fs-base);
}

.breadcrumb-section .breadcrumb-item.active {
  color: var(--slate-700);
}

/* ---------- Bootstrap colour bridges ---------- */
.text-primary,
a.text-primary,
.link-primary {
  color: var(--brand-700) !important;
}

.bg-primary,
.bg-primary-subtle {
  background-color: var(--brand-50) !important;
  color: var(--brand-700) !important;
}

.border-primary {
  border-color: var(--brand-200) !important;
}

.text-secondary {
  color: var(--slate-500) !important;
}

/* ---------- Alerts / toastr bridge ---------- */
.alert-warning {
  background: var(--accent-50);
  color: var(--accent-800);
  border-color: var(--accent-100);
}

.alert-primary {
  background: var(--brand-50);
  color: var(--brand-700);
  border-color: var(--brand-100);
}

.swal2-confirm.swal2-styled {
  background-image: var(--bg-brand-fill) !important;
  background-color: var(--brand-primary) !important;
  border-radius: var(--radius-control) !important;
  font-weight: 500 !important;
}

.swal2-cancel.swal2-styled {
  border-radius: var(--radius-control) !important;
}

.swal2-popup {
  border-radius: var(--radius-surface) !important;
  box-shadow: var(--shadow-float) !important;
  font-family: var(--font-sans) !important;
}

/* ---------- ESS helpers ---------- */
.ess-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--slate-900);
}

.ess-meta {
  font-size: var(--fs-base);
  color: var(--slate-500);
}

.ess-metric {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:active:not(:disabled),
  .hrm-card:hover {
    transform: none !important;
  }
}

/* List recipe */
.hrm-data-table {
  font-size: var(--fs-md);
}

.hrm-data-table thead th {
  font-weight: 500;
  color: var(--slate-600);
  white-space: nowrap;
  border-bottom-width: 1px;
}

.hrm-data-table tbody td {
  padding: var(--sp-2) var(--sp-3);
  vertical-align: middle;
}

.hrm-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 0 1px 0 var(--slate-200);
}

.hrm-list-filters .form-label-sm {
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

/* Global search (Ctrl+K) */
.hrm-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  width: auto;
  max-width: none;
  justify-content: flex-start;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-control);
  background: var(--slate-50);
  color: var(--hrm-muted) !important;
  font-size: var(--fs-sm);
}

.hrm-search-trigger kbd {
  font-size: var(--fs-xs);
  border: 1px solid var(--slate-300);
  border-radius: 0.25rem;
  padding: var(--sp-1) var(--sp-1);
  background: var(--slate-50);
  color: var(--slate-500);
}

.hrm-search-dialog[hidden] {
  display: none !important;
}

.hrm-search-dialog {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16vh var(--sp-4) var(--sp-6);
  margin: 0 !important;
}

.hrm-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 0.48);
}

.hrm-search-panel {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.85rem;
  box-shadow: 0 28px 64px rgb(15 23 42 / 0.28);
  padding: 0;
  overflow: hidden;
}

.hrm-search-field {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--slate-200);
}

.hrm-search-field iconify-icon {
  font-size: var(--fs-xl);
  color: var(--slate-500);
}

.hrm-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  font-size: var(--fs-xl);
  color: var(--slate-900);
}

.hrm-search-field kbd {
  font-size: var(--fs-xs);
  color: var(--slate-500);
  border: 1px solid var(--slate-200);
  border-radius: 0.3rem;
  padding: var(--sp-1) var(--sp-1);
  background: var(--slate-50);
}

.hrm-search-results {
  max-height: min(22rem, 46vh);
  overflow: auto;
  margin-top: 0;
  padding: var(--sp-2);
}

.hrm-search-group {
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: var(--sp-2) var(--sp-2) var(--sp-1);
}

.hrm-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: 0.5rem;
  color: var(--slate-900);
  text-decoration: none;
  font-size: var(--fs-md);
}

.hrm-search-item:hover,
.hrm-search-item.is-active {
  background: var(--brand-50);
  color: var(--brand-700);
}

.hrm-search-item .meta {
  color: var(--slate-500);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.hrm-search-hint {
  font-size: var(--fs-sm);
  color: var(--slate-500);
  margin-top: 0;
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  border-top: 1px solid var(--slate-100);
}

/* Form field + sectioned employee profile */
.hrm-field .req {
  color: var(--danger, #dc2626);
  margin-left: var(--sp-1);
}

.hrm-field .opt {
  font-size: var(--fs-sm);
  font-weight: 400;
  margin-left: var(--sp-1);
}

.hrm-field.has-error .form-control,
.hrm-field.has-error .form-select {
  border-color: var(--danger, #dc2626);
}

.hrm-field .invalid-feedback {
  font-size: var(--fs-base);
}

.hrm-field .form-label,
.hrm-field-tip-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.hrm-field-tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.hrm-field-tip__btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.hrm-field-tip__btn::-webkit-details-marker,
.hrm-field-tip__btn::marker {
  display: none;
}

.hrm-field-tip__btn span[aria-hidden="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--sp-4);
  height: var(--sp-4);
  border: 1px solid var(--hrm-border);
  border-radius: 50%;
  background: var(--hrm-surface-2);
  color: var(--slate-600);
}

.hrm-field-tip[open] .hrm-field-tip__btn span[aria-hidden="true"] {
  border-color: var(--brand-700);
  color: var(--brand-700);
}

.hrm-field-tip__pop {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 30;
  width: max-content;
  max-width: min(20rem, 80vw);
  padding: var(--sp-3);
  border: 1px solid var(--slate-800);
  border-radius: var(--radius-control);
  background: var(--slate-900);
  color: var(--hrm-surface);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.4;
  box-shadow: var(--shadow-2, none);
}

.hrm-error-summary ul {
  padding-left: var(--sp-4);
}

.hrm-error-summary a {
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
}

.hrm-section-card {
  margin-bottom: var(--sp-4);
}

.hrm-section-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.hrm-section-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-lg);
  font-weight: 650;
  line-height: 1.3;
  color: var(--slate-900);
}

.hrm-section-card__sub {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

.hrm-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  min-height: var(--tap-min);
  font-size: var(--fs-md);
  color: var(--slate-700);
}

.hrm-check input {
  width: var(--sp-4);
  height: var(--sp-4);
  margin-top: var(--sp-1);
  flex-shrink: 0;
}

.hrm-dl,
.hrm-section-card .hrm-dl {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  column-gap: var(--sp-4);
  row-gap: var(--sp-3);
  align-items: baseline;
  margin: 0;
  font-size: var(--fs-md);
}

.hrm-dl dt,
.hrm-dl dd,
.hrm-section-card .hrm-dl dt,
.hrm-section-card .hrm-dl dd {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.hrm-dl dt,
.hrm-section-card .hrm-dl dt {
  color: var(--slate-500);
  font-weight: 500;
}

.hrm-dl dd,
.hrm-section-card .hrm-dl dd {
  color: var(--slate-900);
  overflow-wrap: anywhere;
}

@media (max-width: 479.98px) {
  .hrm-section-card .hrm-dl {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .hrm-section-card .hrm-dl dt {
    margin-top: var(--sp-3);
  }

  .hrm-section-card .hrm-dl dt:first-child {
    margin-top: 0;
  }
}

.hrm-section-card.is-editing {
  border-color: var(--brand-300, #93c5fd);
  box-shadow: 0 0 0 1px var(--brand-100, #dbeafe);
}

.hrm-section-has-errors {
  border-color: #fca5a5;
}

.hrm-audit-note {
  font-size: var(--fs-base);
  color: var(--slate-600);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-control, 0.375rem);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-4);
}

.hrm-section-form .form-control,
.hrm-section-form .form-select {
  max-width: 32rem;
}

.hrm-pfile-table {
  font-size: var(--fs-base);
}

.hrm-pfile-table th {
  font-weight: 500;
  color: var(--slate-500);
  border-bottom-color: var(--slate-200);
}

.hrm-pfile-table td,
.hrm-pfile-table th {
  padding: var(--sp-2) var(--sp-2);
  vertical-align: middle;
}

.hrm-increment-form {
  max-width: 56rem;
}

.hrm-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--slate-200);
}

.hrm-sidebar .sidebar-menu-list__link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hrm-sidebar .sidebar-menu-list__link .badge {
  margin-left: auto;
}

/* ---------- Cohesion: one chrome, one surface, one list ---------- */
body:has(.hrm-page) .hrm-chrome-title {
  display: none;
}

body:has(.hrm-page) .hrm-app-header.dd-head {
  margin-bottom: var(--sp-4) !important;
}

section.container-fluid.hrm-page {
  max-width: 72rem;
}

.hrm-page .fw-bold {
  font-weight: 600 !important;
}

.hrm-page .form-control,
.hrm-page .form-select,
.hrm-page .btn:not(.btn-sm):not(.btn-link):not(.btn-lg) {
  min-height: var(--control-height);
}

.hrm-crumbs {
  font-size: var(--fs-base);
  --bs-breadcrumb-divider-color: var(--slate-300);
}

.hrm-crumbs .breadcrumb-item a {
  color: var(--slate-500);
  text-decoration: none;
}

.hrm-crumbs .breadcrumb-item a:hover {
  color: var(--brand-700);
}

.hrm-crumbs .breadcrumb-item.active {
  color: var(--slate-700);
}

.hrm-quiet {
  color: var(--slate-500);
  font-size: var(--fs-base);
  padding: var(--sp-1) 0 var(--sp-2);
}

.hrm-panel,
.hrm-list:not(.hrm-list--flush),
.hrm-stat-strip {
  background-color: #fff;
  background-image: none;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-pop);
}

.hrm-panel {
  padding: var(--sp-4);
}

.hrm-form {
  max-width: 42rem;
}

.hrm-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.hrm-panel-head--rule {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--slate-200);
}

.hrm-panel-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  margin: 0;
}

.hrm-panel-meta {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-base);
  color: var(--slate-500);
}

.hrm-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: var(--sp-1);
  background-color: var(--slate-200);
  background-image: none;
  overflow: hidden;
}

.hrm-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  background: #fff;
  transition: background-color var(--duration) var(--ease-out);
}

a.hrm-stat:hover {
  background: var(--slate-50);
  color: inherit;
}

.hrm-stat-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-500);
}

.hrm-stat-value {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.hrm-stat.is-late {
  background: var(--red-50);
}

.hrm-stat.is-late .hrm-stat-value {
  color: var(--red-700);
}

.hrm-stat-value small {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--slate-500);
  letter-spacing: 0;
}

.hrm-stat-meta {
  font-size: var(--fs-sm);
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hrm-list {
  overflow: hidden;
}

.hrm-list--flush {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hrm-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--slate-100);
}

.hrm-list--flush .hrm-list-row {
  padding-left: 0;
  padding-right: 0;
}

.hrm-list--flush .hrm-list-row:first-child {
  padding-top: var(--sp-1);
}

.hrm-list-row:last-child {
  border-bottom: 0;
}

a.hrm-list-row--link {
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration) var(--ease-out);
}

a.hrm-list-row--link:hover {
  background: var(--slate-50);
}

.hrm-list-title {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--slate-900);
}

.hrm-list-meta {
  font-size: var(--fs-base);
  color: var(--slate-500);
  margin-top: var(--sp-1);
}

.hrm-list-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-1);
  flex-shrink: 0;
  text-align: right;
}

.hrm-list-amount {
  font-size: var(--fs-lg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--slate-900);
}

.hrm-list-link {
  font-size: var(--fs-sm);
  color: var(--brand-700);
}

.hrm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-2) var(--sp-3);
  padding: 0;
  margin: 0 0 var(--sp-3);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hrm-filter-bar .form-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-500);
  margin-bottom: var(--sp-1);
}

.hrm-filter-bar .form-select,
.hrm-filter-bar .form-control,
.hrm-list-filters .form-select,
.hrm-list-filters .form-control {
  min-width: 9rem;
}

.hrm-filter-bar .form-select,
.hrm-filter-bar .form-control,
.hrm-list-filters .form-select,
.hrm-list-filters .form-control {
  min-height: var(--control-height);
  border-radius: var(--radius-control) !important;
}

.hrm-filter-bar-actions {
  display: flex;
  gap: var(--sp-1);
  padding-bottom: var(--sp-1);
}

.hrm-list-filters.hrm-filter-bar {
  padding: 0;
  margin-bottom: var(--sp-4);
}

.hrm-year-group + .hrm-year-group {
  margin-top: var(--sp-5);
}

.hrm-year-label {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--slate-600);
  margin: 0 0 var(--sp-2);
}

.hrm-date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  color: var(--slate-700);
}

.hrm-date-chip-day {
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hrm-date-chip-mon {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--slate-500);
  text-transform: none;
}

.hrm-dl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-4);
}

.hrm-preview-frame {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-control);
  overflow: hidden;
  background: #fff;
  min-height: 28rem;
}

.hrm-preview-frame iframe {
  width: 100%;
  height: 28rem;
  border: 0;
  display: block;
}

.hrm-empty-title {
  color: var(--slate-900);
  font-weight: 600;
  font-size: var(--fs-lg);
  margin: 0 0 var(--sp-1);
}

.hrm-list .hrm-empty {
  text-align: left;
  padding: var(--sp-5) var(--sp-4);
}

.hrm-list--flush .hrm-empty {
  padding-left: 0;
  padding-right: 0;
}

.hrm-list .hrm-empty-icon {
  display: none;
}

.hrm-card:hover {
  transform: none;
}

@media (max-width: 991.98px) {
  .hrm-dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hrm-dl-grid {
    grid-template-columns: 1fr;
  }

  .hrm-page-header .hrm-actions {
    width: 100%;
  }
}

/* ---------- Performance grades ---------- */
.hrm-grade {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate-700);
}

.hrm-grade-label {
  font-weight: 400;
  letter-spacing: 0;
  font-size: var(--fs-base);
  color: var(--slate-500);
}

.hrm-grade--lg {
  font-size: var(--fs-2xl);
  line-height: 1.1;
}

.hrm-grade--a { color: var(--emerald-700); }
.hrm-grade--b { color: var(--brand-700); }
.hrm-grade--c { color: var(--slate-700); }
.hrm-grade--d { color: var(--accent-800); }
.hrm-grade--e { color: var(--red-700); }

.hrm-grade-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
}

.hrm-grade-percent {
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.1;
}

.hrm-score-scale {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.hrm-score-option {
  flex: 1 1 5.5rem;
  min-width: 5.5rem;
  max-width: 8rem;
  margin: 0;
  cursor: pointer;
}

.hrm-score-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hrm-score-option .hrm-score-n,
.hrm-score-option .hrm-score-caption {
  display: block;
  text-align: center;
}

.hrm-score-option .hrm-score-n {
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: var(--sp-1) var(--sp-1);
  font-weight: 600;
  background: #fff;
}

.hrm-score-option .hrm-score-caption {
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  line-height: 1.2;
  color: var(--slate-500);
}

.hrm-score-option input:checked + .hrm-score-n {
  border-color: var(--brand-600, var(--brand-700));
  background: var(--brand-50);
  color: var(--brand-700);
}

.hrm-score-option input:focus-visible + .hrm-score-n {
  outline: 2px solid var(--brand-600, var(--brand-700));
  outline-offset: 1px;
}

.hrm-list-row.hrm-expiry-overdue {
  background: var(--red-50);
  border-radius: 0.375rem;
}

.hrm-expiry-overdue .hrm-list-aside .hrm-list-meta {
  color: var(--red-700);
  font-weight: 600;
}

.hrm-dashboard .card.hrm-card {
  margin-bottom: 0;
}

.hrm-dashboard .card-header {
  align-items: flex-start;
}

.hrm-dashboard .card-header .btn {
  margin: 0;
  flex-shrink: 0;
}

.hrm-dash-headcount {
  font-size: var(--fs-base);
  color: var(--slate-500);
}

.hrm-dash-stories {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

@media (min-width: 768px) {
  .hrm-dash-stories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hrm-dash-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 11.5rem;
  padding: var(--sp-4) var(--sp-4) var(--sp-4);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.hrm-dash-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  color: inherit;
}

.hrm-dash-story:active {
  transform: translateY(0);
}

.hrm-dash-story-icon {
  font-size: var(--fs-2xl);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.hrm-dash-story-n {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hrm-dash-story-word {
  margin-top: var(--sp-2);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hrm-dash-story-hint {
  margin-top: var(--sp-1);
  font-size: var(--fs-base);
  opacity: 0.8;
}

.hrm-dash-story-tag {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  opacity: 0.7;
}

.hrm-dash-story.is-ok {
  background: var(--emerald-50);
  border-color: #a7f3d0;
  color: var(--emerald-700);
}

.hrm-dash-story.is-go {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
}

.hrm-dash-story.is-wait {
  background: var(--accent-50);
  border-color: #fdd5ad;
  color: var(--accent-800);
}

.hrm-dash-story.is-stop {
  background: var(--red-50);
  border-color: #fecaca;
  color: var(--red-700);
}

.hrm-dash-bar--on-story {
  margin-top: auto;
  padding-top: var(--sp-3);
  background: rgba(15, 23, 42, 0.08);
}

.hrm-dash-story.is-ok .hrm-dash-bar--on-story > span {
  background: var(--emerald-600);
}

.hrm-dash-story.is-wait .hrm-dash-bar--on-story > span,
.hrm-dash-story.is-stop .hrm-dash-bar--on-story > span {
  background: currentColor;
}

.hrm-dash-pictures {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.hrm-dash-pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-width: 5.75rem;
  padding: var(--sp-3) var(--sp-3) var(--sp-2);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface);
  background: #fff;
  color: var(--slate-800);
  text-decoration: none;
  text-align: center;
  transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.hrm-dash-pic iconify-icon {
  font-size: var(--fs-2xl);
  color: var(--slate-600);
}

.hrm-dash-pic-n {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hrm-dash-pic-label {
  font-size: var(--fs-sm);
  color: var(--slate-600);
  max-width: 7rem;
  line-height: 1.2;
}

.hrm-dash-pic:hover {
  transform: translateY(-1px);
  border-color: var(--brand-200);
  color: var(--slate-900);
}

.hrm-dash-pic.is-hot,
.hrm-dash-pic.is-stop {
  background: var(--red-50);
  border-color: #fecaca;
}

.hrm-dash-pic.is-hot iconify-icon,
.hrm-dash-pic.is-stop iconify-icon,
.hrm-dash-pic.is-hot .hrm-dash-pic-n,
.hrm-dash-pic.is-stop .hrm-dash-pic-n {
  color: var(--red-700);
}

.hrm-dash-pic.is-wait {
  background: var(--accent-50);
  border-color: #fdd5ad;
}

.hrm-dash-pic.is-wait iconify-icon,
.hrm-dash-pic.is-wait .hrm-dash-pic-n {
  color: var(--accent-800);
}

.hrm-dash-focus {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

@media (min-width: 992px) {
  .hrm-dash-focus {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
    align-items: start;
  }
}

.hrm-dash-side {
  display: grid;
  gap: var(--sp-4);
}

.hrm-dash-panel {
  padding-bottom: var(--sp-4);
}

.hrm-dash-queues {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: var(--sp-2);
}

.hrm-dash-q {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-3) var(--sp-3);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface);
  background: var(--slate-50);
  color: inherit;
  text-decoration: none;
  min-height: 5.5rem;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.hrm-dash-q:hover {
  transform: translateY(-1px);
  border-color: var(--brand-200);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  color: inherit;
}

.hrm-dash-q:active {
  transform: translateY(0);
}

.hrm-dash-q-n {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--slate-900);
}

.hrm-dash-q-label {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--slate-700);
}

.hrm-dash-q-meta {
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

.hrm-dash-q.is-hot {
  background: var(--accent-50);
  border-color: #fdd5ad;
}

.hrm-dash-q.is-hot .hrm-dash-q-n,
.hrm-dash-q.is-hot .hrm-dash-q-meta {
  color: var(--accent-800);
}

.hrm-dash-pay-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.hrm-dash-pay-pct {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hrm-dash-bar {
  height: 0.4rem;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}

.hrm-dash-bar > span {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--brand-primary);
  border-radius: inherit;
  transform-origin: left center;
  transition: width 420ms var(--ease-out);
}

.hrm-dash-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.hrm-dash-dates strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hrm-dash-date-cap {
  display: block;
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

.hrm-dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.hrm-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-800);
  text-decoration: none;
  font-size: var(--fs-base);
  transition: transform var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.hrm-dash-chip:hover {
  transform: translateY(-1px);
  border-color: var(--brand-200);
  color: var(--slate-900);
}

.hrm-dash-chip-n {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hrm-dash-chip-flag {
  color: var(--red-700);
  font-size: var(--fs-sm);
}

.hrm-dash-chip.is-overdue {
  background: var(--red-50);
  border-color: #fecaca;
}

.hrm-week-strip {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--sp-2);
  overflow-x: auto;
}

.hrm-week-day {
  flex: 1 0 7rem;
  min-width: 7rem;
  min-height: 7.25rem;
  padding: var(--sp-2) var(--sp-2);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface);
  background: var(--slate-50);
  transition: border-color var(--duration) var(--ease-out), background-color var(--duration) var(--ease-out);
}

.hrm-week-day.is-today {
  background: #fff;
  border-color: var(--brand-primary);
}

.hrm-week-day.has-items:not(.is-today) {
  background: #fff;
}

.hrm-week-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--hrm-ink);
  margin-bottom: var(--sp-2);
}

.hrm-week-count {
  font-weight: 500;
  color: var(--slate-500);
}

.hrm-week-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-1);
  font-size: var(--fs-sm);
  line-height: 1.25;
}

.hrm-week-pip {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--slate-300);
}

.hrm-week-item--leave .hrm-week-pip {
  background: var(--brand-500);
}

.hrm-week-item--mc .hrm-week-pip {
  background: var(--accent-500);
}

.hrm-week-item--holiday .hrm-week-pip {
  background: var(--slate-400);
}

.hrm-week-name {
  font-weight: 500;
  color: var(--hrm-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrm-week-empty {
  color: var(--slate-400);
  font-size: var(--fs-sm);
}

.hrm-week-more {
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

.hrm-week-key {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  margin-right: var(--sp-3);
}

.hrm-week-key::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--slate-400);
}

.hrm-week-key--leave::before {
  background: var(--brand-500);
}

.hrm-week-key--mc::before {
  background: var(--accent-500);
}

@media (prefers-reduced-motion: reduce) {
  .hrm-dash-q,
  .hrm-dash-chip,
  .hrm-dash-story,
  .hrm-dash-pic,
  .hrm-dash-bar > span,
  .hrm-week-day {
    transition: none;
  }

  .hrm-dash-q:hover,
  .hrm-dash-chip:hover,
  .hrm-dash-story:hover,
  .hrm-dash-pic:hover {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .hrm-week-strip {
    padding-bottom: var(--sp-1);
  }

  .hrm-week-day {
    flex: 0 0 7.5rem;
  }

  .hrm-search-trigger {
    width: auto;
    max-width: none;
  }
}

.hrm-form--wide {
  max-width: none;
}

.hrm-onboard-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 1100px) {
  .hrm-onboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
    align-items: start;
  }

  .hrm-onboard-grid--form {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem);
  }

  .hrm-onboard-aside {
    position: sticky;
    top: 1rem;
  }
}

.hrm-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

.hrm-pipeline-step {
  flex: 1 1 0;
  min-width: 5.5rem;
  text-align: center;
  position: relative;
  padding-top: var(--sp-1);
}

.hrm-pipeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: calc(50% + 0.7rem);
  right: calc(-50% + 0.7rem);
  height: 1px;
  background: var(--slate-200);
}

.hrm-pipeline-step.is-done:not(:last-child)::after,
.hrm-pipeline-step.is-current:not(:last-child)::after {
  background: var(--brand-200);
}

.hrm-pipeline-dot {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0 auto var(--sp-2);
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: #fff;
  color: var(--slate-500);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hrm-pipeline-step.is-done .hrm-pipeline-dot {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-700);
}

.hrm-pipeline-step.is-current .hrm-pipeline-dot {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.hrm-pipeline-step.is-failed .hrm-pipeline-dot {
  background: var(--red-50);
  border-color: var(--red-500);
  color: var(--red-600);
}

.hrm-pipeline-label {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.2;
  color: var(--slate-500);
}

.hrm-pipeline-step.is-current .hrm-pipeline-label {
  color: var(--slate-900);
  font-weight: 500;
}

.hrm-pipeline-step.is-failed .hrm-pipeline-label {
  color: var(--red-600);
}

.hrm-pipeline-dots {
  display: inline-flex;
  gap: var(--sp-1);
  align-items: center;
}

.hrm-pipeline-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--slate-200);
}

.hrm-pipeline-dots span.is-done,
.hrm-pipeline-dots span.is-current {
  background: var(--brand-400);
}

.hrm-pipeline-dots span.is-current {
  background: var(--brand-primary);
}

.hrm-pipeline-dots span.is-failed {
  background: var(--red-500);
}

.hrm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-4);
  margin: 0;
}

.hrm-facts div {
  min-width: 0;
}

.hrm-facts dt {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

.hrm-facts dd {
  margin: var(--sp-1) 0 0;
  color: var(--slate-900);
}

.hrm-letter-sheet {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
}

.hrm-letter-sheet--preview {
  min-height: 22rem;
}

.hrm-letter-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--slate-200);
}

.hrm-letter-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hrm-letter-logo {
  height: 1.75rem;
  width: auto;
}

.hrm-letter-company {
  font-weight: 600;
  color: var(--slate-900);
  letter-spacing: -0.01em;
}

.hrm-letter-head time,
.hrm-letter-kicker {
  font-size: var(--fs-base);
  color: var(--slate-500);
}

.hrm-letter-sheet h1 {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-1);
  color: var(--slate-900);
}

.hrm-letter-body {
  white-space: pre-wrap;
  line-height: 1.65;
  max-width: 68ch;
  color: var(--slate-800);
  font-size: var(--fs-lg);
}

.hrm-letter-tabs {
  display: flex;
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}

.hrm-letter-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-size: var(--fs-base);
  font-weight: 500;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-control, 0.5rem);
}

.hrm-letter-tabs button[aria-selected="true"] {
  background: var(--brand-50);
  color: var(--brand-700);
}

.hrm-letter-signoff {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--slate-200);
}

.hrm-letter-signoff .btn-base {
  min-width: 10rem;
}

.hrm-letter-decline {
  margin-top: var(--sp-3);
}

.hrm-letter-decline summary {
  cursor: pointer;
  color: var(--slate-600);
  font-size: var(--fs-base);
  list-style: none;
}

.hrm-letter-decline summary::-webkit-details-marker {
  display: none;
}

.hrm-letter-decline[open] summary {
  margin-bottom: var(--sp-3);
}

.hrm-public-letter {
  background: var(--slate-100);
  min-height: 100dvh;
}

.hrm-public-letter-stage {
  max-width: 42rem;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-7);
}

.hrm-public-letter .hrm-letter-sheet {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hrm-public-flash {
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-surface);
  font-size: var(--fs-md);
}

.hrm-public-flash--ok {
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.hrm-public-flash--err {
  background: var(--red-50);
  color: var(--red-600);
}

.hrm-sign-line {
  margin-top: var(--sp-4);
}

.hrm-sign-line .form-control {
  max-width: 22rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hrm-pipeline-step.is-current .hrm-pipeline-dot {
    transition: transform 180ms var(--ease-out, ease-out), box-shadow 180ms var(--ease-out, ease-out);
  }
}

/* Personnel file — glance + jump */
.hrm-pfile-hero {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-4);
}

.hrm-pfile-hero img,
.hrm-pfile-hero .hrm-avatar {
  width: var(--row-h);
  height: var(--row-h);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--slate-200);
  flex-shrink: 0;
}

.hrm-pfile-hero-copy {
  min-width: 0;
}

.hrm-pfile-hero-name {
  font-size: var(--fs-xl);
  font-weight: 650;
  line-height: 1.25;
  color: var(--slate-900);
}

.hrm-pfile-hero-nick {
  font-weight: 400;
  color: var(--slate-500);
}

.hrm-pfile-hero-meta {
  font-size: var(--fs-base);
  color: var(--slate-500);
  margin-top: var(--sp-1);
  overflow-wrap: anywhere;
}

.hrm-pfile-hero-status {
  margin-top: var(--sp-2);
}

.hrm-pfile-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
}

@media (min-width: 768px) {
  .hrm-pfile-glance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hrm-pfile-fact {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--sp-3);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-surface, 10px);
  background: var(--hrm-surface-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hrm-pfile-fact:hover,
.hrm-pfile-fact:focus-visible {
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px var(--brand-100);
  transform: translateY(-1px);
  color: inherit;
}

.hrm-pfile-fact-k {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: var(--sp-1);
}

.hrm-pfile-fact-v {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 650;
  line-height: 1.3;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.hrm-pfile-fact-v.nums {
  font-variant-numeric: tabular-nums;
}

.hrm-pfile-fact-h {
  display: block;
  font-size: var(--fs-sm);
  color: var(--slate-500);
  margin-top: var(--sp-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrm-pfile-jumps {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-4);
  padding: var(--sp-2) 0;
  overflow-x: auto;
  background: color-mix(in srgb, var(--slate-50) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

.hrm-pfile-jumps a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: var(--tap-min);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--hrm-surface-2);
  color: var(--slate-700);
  font-size: var(--fs-base);
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.hrm-pfile-jumps a:hover,
.hrm-pfile-jumps a:focus-visible {
  border-color: var(--brand-300);
  color: var(--slate-900);
}

.hrm-pfile-jumps a.is-on {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: var(--hrm-surface-2);
}

.hrm-pfile-jumps a.is-warn {
  border-color: var(--red-500);
  color: var(--red-700);
}

.hrm-pfile-sublist {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--slate-200);
}

.hrm-pfile-sublist-title {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--slate-500);
}

.hrm-pfile-sublist ul {
  margin: 0;
  padding-left: var(--sp-4);
}

.hrm-pfile-sublist li + li {
  margin-top: var(--sp-1);
}

.hrm-pfile-entitlements.hrm-block {
  margin-bottom: var(--sp-4);
}

.hrm-pfile-entitlements--after {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--slate-200);
}

.hrm-pfile-entitlements .hrm-list-aside {
  font-size: var(--fs-lg);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

body:has(.hrm-pfile--own) .hrm-chrome-title {
  display: block;
}

.hrm-pfile--own .hrm-pfile-hero {
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--slate-200);
}

@media (max-width: 767.98px) {
  .hrm-pfile--own .table-responsive {
    overflow-x: auto;
  }

  .hrm-pfile--own .hrm-pfile-table th:first-child,
  .hrm-pfile--own .hrm-pfile-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--hrm-surface-2);
  }
}

#section-personal,
#section-identity,
#section-contact,
#section-employment,
#section-compensation,
#section-statutory,
#section-leave,
#pfile-salary,
#pfile-performance,
#pfile-activity,
[id^="expiry-"] {
  scroll-margin-top: calc(var(--tap-min) + var(--sp-5));
}

@media (prefers-reduced-motion: reduce) {
  .hrm-pfile-fact {
    transition: none;
  }

  .hrm-pfile-fact:hover,
  .hrm-pfile-fact:focus-visible {
    transform: none;
  }
}

/* Visual lock — primitives must paint even if main.css fights */
.dd-content .hrm-stat-strip,
.hrm-page .hrm-stat-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)) !important;
  gap: var(--sp-1) !important;
  background-color: var(--slate-200) !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-surface) !important;
  box-shadow: var(--shadow-pop) !important;
  overflow: hidden !important;
}

.dd-content .hrm-stat,
.hrm-page .hrm-stat {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--sp-1) !important;
  padding: var(--sp-4) var(--sp-4) !important;
  background: #fff !important;
}

.dd-content .hrm-stat-value,
.hrm-page .hrm-stat-value {
  display: block !important;
  font-size: var(--fs-2xl) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  color: var(--slate-900) !important;
}

.dd-content .hrm-stat-value--date,
.hrm-page .hrm-stat-value--date {
  font-size: var(--fs-xl) !important;
}

.dd-content .hrm-stat-label,
.hrm-page .hrm-stat-label {
  display: block !important;
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  color: var(--slate-500) !important;
}

.dd-content .hrm-stat.is-late,
.hrm-page .hrm-stat.is-late {
  background: var(--red-50) !important;
}

.dd-content .hrm-stat.is-late .hrm-stat-value,
.hrm-page .hrm-stat.is-late .hrm-stat-value {
  color: var(--red-700) !important;
}

.dd-content .hrm-panel,
.hrm-page .hrm-panel {
  display: block !important;
  background: #fff !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--radius-surface) !important;
  box-shadow: var(--shadow-pop) !important;
  padding: var(--sp-4) !important;
}

.dd-content .hrm-panel-title,
.hrm-page .hrm-panel-title,
.dd-content .hrm-list-title,
.hrm-page .hrm-list-title {
  font-weight: 650 !important;
  color: var(--slate-900) !important;
}

.dd-content .hrm-list-row,
.hrm-page .hrm-list-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--sp-3) !important;
  padding: var(--sp-3) var(--sp-3) !important;
  border-bottom: 1px solid var(--slate-100) !important;
}

.dd-content .hrm-list-row:last-child,
.hrm-page .hrm-list-row:last-child {
  border-bottom: 0 !important;
}

.dd-content .hrm-badge,
.hrm-page .hrm-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: var(--sp-1) var(--sp-2) !important;
  border-radius: 999px !important;
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  line-height: 1rem !important;
}

.hrm-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin: 0 0 var(--sp-4);
}

.hrm-jumps a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: #fff;
  color: var(--slate-700);
  font-size: var(--fs-base);
  font-weight: 550;
  text-decoration: none;
  box-shadow: var(--shadow-lift);
}

.hrm-jumps a:hover,
.hrm-jumps a:focus-visible {
  border-color: var(--brand-300);
  color: var(--slate-900);
}

.hrm-jumps a.is-late {
  background: var(--red-50);
  border-color: #fecaca;
  color: var(--red-700);
}

/* Dashboard — contract primitives only */
.hrm-dash-hello {
  margin: 0;
}

.hrm-dash-greet {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--hrm-muted);
}

.hrm-dash-headline {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hrm-ink);
  line-height: 1.3;
}

.hrm-dash-sub {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-base);
  color: var(--hrm-muted);
}

.hrm-dashboard .hrm-dash-alert {
  background: var(--accent-surface);
  border-color: var(--accent-100);
}

.hrm-dashboard .hrm-dash-alert .hrm-block__title,
.hrm-dash-alert-lead {
  color: var(--accent-900);
}

.hrm-dash-alert-lead {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 600;
}

.hrm-dashboard .hrm-dash-alert a {
  color: var(--hrm-ink);
  font-weight: 500;
  text-decoration: none;
}

.hrm-dashboard .hrm-dash-alert a:hover {
  color: var(--brand-700);
}

.hrm-dashboard .hrm-dash-kpi {
  display: block;
  padding: var(--sp-4);
  text-decoration: none;
  color: var(--hrm-ink);
  background: var(--bg-surface);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-lift);
}

.hrm-dashboard .hrm-dash-kpi:hover {
  color: var(--hrm-ink);
  border-color: var(--brand-300);
}

.hrm-dashboard .hrm-dash-kpi iconify-icon {
  display: block;
  font-size: var(--fs-xl);
  color: var(--brand-primary);
  margin-bottom: var(--sp-2);
}

.hrm-dashboard .hrm-dash-kpi.is-stop iconify-icon { color: var(--red-700); }
.hrm-dashboard .hrm-dash-kpi.is-wait iconify-icon { color: var(--accent-primary); }
.hrm-dashboard .hrm-dash-kpi.is-ok iconify-icon { color: var(--emerald-700); }

.hrm-dash-kpi-n {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hrm-dash-kpi-l {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-md);
  font-weight: 600;
}

.hrm-dash-kpi-h {
  display: block;
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--row-h);
  padding: 0;
  border-bottom: 1px solid var(--slate-100);
  color: inherit;
  text-decoration: none;
}

.hrm-row:last-child {
  border-bottom: 0;
}

a.hrm-row:hover {
  color: inherit;
}

.hrm-row__title {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--hrm-ink);
}

.hrm-row__meta {
  display: block;
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-dashboard .hrm-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.hrm-dashboard .hrm-week-day {
  padding: var(--sp-3);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-surface);
  background: var(--slate-50);
}

.hrm-dashboard .hrm-week-day.is-today {
  background: var(--bg-surface);
  border-color: var(--brand-primary);
}

.hrm-dashboard .hrm-week-label,
.hrm-dashboard .hrm-week-count {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.hrm-dashboard .hrm-week-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
}

.hrm-dashboard .hrm-week-pip {
  display: inline-block;
  width: var(--sp-2);
  height: var(--sp-2);
  border-radius: 999px;
  background: var(--slate-300);
  flex-shrink: 0;
}

.hrm-dashboard .hrm-week-item--leave .hrm-week-pip { background: var(--brand-primary); }
.hrm-dashboard .hrm-week-item--mc .hrm-week-pip { background: var(--accent-primary); }
.hrm-dashboard .hrm-week-item--holiday .hrm-week-pip { background: var(--slate-500); }

.hrm-dashboard .hrm-week-empty,
.hrm-dashboard .hrm-week-more {
  margin-top: var(--sp-2);
  color: var(--slate-400);
  font-size: var(--fs-sm);
}

.hrm-week-key {
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-week-key::before {
  content: "";
  display: inline-block;
  width: var(--sp-2);
  height: var(--sp-2);
  margin-right: var(--sp-1);
  border-radius: 999px;
  background: var(--slate-300);
  vertical-align: middle;
}

.hrm-week-key--leave::before { background: var(--brand-primary); }
.hrm-week-key--mc::before { background: var(--accent-primary); }
.hrm-week-key--holiday::before { background: var(--slate-500); }

@media (max-width: 1200px) {
  /* Revert to the base flex layout below the desktop grid breakpoint.
     A 7-track grid here forces --sp-7-wide tracks while .hrm-week-day
     keeps min-width: 7rem, so every cell spilled 4rem into its
     neighbour and the count badges landed on the next day's label. */
  .hrm-dashboard .hrm-week-strip {
    display: flex;
  }
}

/* Design-gate utilities — token spacing only */
.hrm-clear { clear: both; }
.hrm-break-page { page-break-after: always; }
.hrm-break-avoid { page-break-after: avoid; }
.hrm-bg-paper { background-color: var(--bg-surface); }
.hrm-bg-ink { background-color: var(--slate-900); color: var(--bg-surface); }
.hrm-bg-wash { background-color: var(--slate-300); }
.hrm-col-n { width: 3rem; }
.hrm-col-act { width: 7rem; }
.hrm-col-st { width: 8rem; }
.hrm-col-mid { width: 9rem; }
.hrm-col-wide { width: 12rem; }
.hrm-min-act { min-width: 7rem; }
.hrm-min-mid { min-width: 9rem; }
.hrm-min-wide { min-width: 12rem; }
.hrm-half { width: 50%; }
.hrm-rule { height: var(--sp-2); }
.hrm-logo-sm {
  width: auto;
  height: auto;
  max-height: var(--sp-7);
  object-fit: contain;
}
.hrm-type-xs { font-size: var(--fs-xs); }
.hrm-type-sm { font-size: var(--fs-sm); }
.hrm-type-base { font-size: var(--fs-base); }
.hrm-type-md { font-size: var(--fs-md); }
.hrm-type-lg { font-size: var(--fs-lg); }
.hrm-type-xl { font-size: var(--fs-xl); }
.hrm-type-2xl { font-size: var(--fs-2xl); }
.hrm-swatch { display: inline-block; width: var(--sp-5); height: var(--sp-4); }
.hrm-space-0 { margin: 0; }
.hrm-inset-0 { padding: 0; }
.hrm-space-0 { margin: 0; }
.hrm-inset-0 { padding: 0; }
.hrm-space-t0 { margin-top: 0; }
.hrm-inset-t0 { padding-top: 0; }
.hrm-space-b0 { margin-bottom: 0; }
.hrm-inset-b0 { padding-bottom: 0; }
.hrm-space-s0 { margin-inline-start: 0; }
.hrm-inset-s0 { padding-inline-start: 0; }
.hrm-space-e0 { margin-inline-end: 0; }
.hrm-inset-e0 { padding-inline-end: 0; }
.hrm-space-x0 { margin-inline: 0; }
.hrm-inset-x0 { padding-inline: 0; }
.hrm-space-y0 { margin-block: 0; }
.hrm-inset-y0 { padding-block: 0; }
.hrm-space-1 { margin: var(--sp-1); }
.hrm-inset-1 { padding: var(--sp-1); }
.hrm-space-t1 { margin-top: var(--sp-1); }
.hrm-inset-t1 { padding-top: var(--sp-1); }
.hrm-space-b1 { margin-bottom: var(--sp-1); }
.hrm-inset-b1 { padding-bottom: var(--sp-1); }
.hrm-space-s1 { margin-inline-start: var(--sp-1); }
.hrm-inset-s1 { padding-inline-start: var(--sp-1); }
.hrm-space-e1 { margin-inline-end: var(--sp-1); }
.hrm-inset-e1 { padding-inline-end: var(--sp-1); }
.hrm-space-x1 { margin-inline: var(--sp-1); }
.hrm-inset-x1 { padding-inline: var(--sp-1); }
.hrm-space-y1 { margin-block: var(--sp-1); }
.hrm-inset-y1 { padding-block: var(--sp-1); }
.hrm-space-2 { margin: var(--sp-2); }
.hrm-inset-2 { padding: var(--sp-2); }
.hrm-space-t2 { margin-top: var(--sp-2); }
.hrm-inset-t2 { padding-top: var(--sp-2); }
.hrm-space-b2 { margin-bottom: var(--sp-2); }
.hrm-inset-b2 { padding-bottom: var(--sp-2); }
.hrm-space-s2 { margin-inline-start: var(--sp-2); }
.hrm-inset-s2 { padding-inline-start: var(--sp-2); }
.hrm-space-e2 { margin-inline-end: var(--sp-2); }
.hrm-inset-e2 { padding-inline-end: var(--sp-2); }
.hrm-space-x2 { margin-inline: var(--sp-2); }
.hrm-inset-x2 { padding-inline: var(--sp-2); }
.hrm-space-y2 { margin-block: var(--sp-2); }
.hrm-inset-y2 { padding-block: var(--sp-2); }
.hrm-space-3 { margin: var(--sp-4); }
.hrm-inset-3 { padding: var(--sp-4); }
.hrm-space-t3 { margin-top: var(--sp-4); }
.hrm-inset-t3 { padding-top: var(--sp-4); }
.hrm-space-b3 { margin-bottom: var(--sp-4); }
.hrm-inset-b3 { padding-bottom: var(--sp-4); }
.hrm-space-s3 { margin-inline-start: var(--sp-4); }
.hrm-inset-s3 { padding-inline-start: var(--sp-4); }
.hrm-space-e3 { margin-inline-end: var(--sp-4); }
.hrm-inset-e3 { padding-inline-end: var(--sp-4); }
.hrm-space-x3 { margin-inline: var(--sp-4); }
.hrm-inset-x3 { padding-inline: var(--sp-4); }
.hrm-space-y3 { margin-block: var(--sp-4); }
.hrm-inset-y3 { padding-block: var(--sp-4); }
.hrm-space-4 { margin: var(--sp-5); }
.hrm-inset-4 { padding: var(--sp-5); }
.hrm-space-t4 { margin-top: var(--sp-5); }
.hrm-inset-t4 { padding-top: var(--sp-5); }
.hrm-space-b4 { margin-bottom: var(--sp-5); }
.hrm-inset-b4 { padding-bottom: var(--sp-5); }
.hrm-space-s4 { margin-inline-start: var(--sp-5); }
.hrm-inset-s4 { padding-inline-start: var(--sp-5); }
.hrm-space-e4 { margin-inline-end: var(--sp-5); }
.hrm-inset-e4 { padding-inline-end: var(--sp-5); }
.hrm-space-x4 { margin-inline: var(--sp-5); }
.hrm-inset-x4 { padding-inline: var(--sp-5); }
.hrm-space-y4 { margin-block: var(--sp-5); }
.hrm-inset-y4 { padding-block: var(--sp-5); }
.hrm-space-5 { margin: var(--sp-7); }
.hrm-inset-5 { padding: var(--sp-7); }
.hrm-space-t5 { margin-top: var(--sp-7); }
.hrm-inset-t5 { padding-top: var(--sp-7); }
.hrm-space-b5 { margin-bottom: var(--sp-7); }
.hrm-inset-b5 { padding-bottom: var(--sp-7); }
.hrm-space-s5 { margin-inline-start: var(--sp-7); }
.hrm-inset-s5 { padding-inline-start: var(--sp-7); }
.hrm-space-e5 { margin-inline-end: var(--sp-7); }
.hrm-inset-e5 { padding-inline-end: var(--sp-7); }
.hrm-space-x5 { margin-inline: var(--sp-7); }
.hrm-inset-x5 { padding-inline: var(--sp-7); }
.hrm-space-y5 { margin-block: var(--sp-7); }
.hrm-inset-y5 { padding-block: var(--sp-7); }
.hrm-w-0 { width: 0%; }
.hrm-w-1 { width: 1%; }
.hrm-w-2 { width: 2%; }
.hrm-w-3 { width: 3%; }
.hrm-w-4 { width: 4%; }
.hrm-w-5 { width: 5%; }
.hrm-w-6 { width: 6%; }
.hrm-w-7 { width: 7%; }
.hrm-w-8 { width: 8%; }
.hrm-w-9 { width: 9%; }
.hrm-w-10 { width: 10%; }
.hrm-w-11 { width: 11%; }
.hrm-w-12 { width: 12%; }
.hrm-w-13 { width: 13%; }
.hrm-w-14 { width: 14%; }
.hrm-w-15 { width: 15%; }
.hrm-w-16 { width: 16%; }
.hrm-w-17 { width: 17%; }
.hrm-w-18 { width: 18%; }
.hrm-w-19 { width: 19%; }
.hrm-w-20 { width: 20%; }
.hrm-w-21 { width: 21%; }
.hrm-w-22 { width: 22%; }
.hrm-w-23 { width: 23%; }
.hrm-w-24 { width: 24%; }
.hrm-w-25 { width: 25%; }
.hrm-w-26 { width: 26%; }
.hrm-w-27 { width: 27%; }
.hrm-w-28 { width: 28%; }
.hrm-w-29 { width: 29%; }
.hrm-w-30 { width: 30%; }
.hrm-w-31 { width: 31%; }
.hrm-w-32 { width: 32%; }
.hrm-w-33 { width: 33%; }
.hrm-w-34 { width: 34%; }
.hrm-w-35 { width: 35%; }
.hrm-w-36 { width: 36%; }
.hrm-w-37 { width: 37%; }
.hrm-w-38 { width: 38%; }
.hrm-w-39 { width: 39%; }
.hrm-w-40 { width: 40%; }
.hrm-w-41 { width: 41%; }
.hrm-w-42 { width: 42%; }
.hrm-w-43 { width: 43%; }
.hrm-w-44 { width: 44%; }
.hrm-w-45 { width: 45%; }
.hrm-w-46 { width: 46%; }
.hrm-w-47 { width: 47%; }
.hrm-w-48 { width: 48%; }
.hrm-w-49 { width: 49%; }
.hrm-w-50 { width: 50%; }
.hrm-w-51 { width: 51%; }
.hrm-w-52 { width: 52%; }
.hrm-w-53 { width: 53%; }
.hrm-w-54 { width: 54%; }
.hrm-w-55 { width: 55%; }
.hrm-w-56 { width: 56%; }
.hrm-w-57 { width: 57%; }
.hrm-w-58 { width: 58%; }
.hrm-w-59 { width: 59%; }
.hrm-w-60 { width: 60%; }
.hrm-w-61 { width: 61%; }
.hrm-w-62 { width: 62%; }
.hrm-w-63 { width: 63%; }
.hrm-w-64 { width: 64%; }
.hrm-w-65 { width: 65%; }
.hrm-w-66 { width: 66%; }
.hrm-w-67 { width: 67%; }
.hrm-w-68 { width: 68%; }
.hrm-w-69 { width: 69%; }
.hrm-w-70 { width: 70%; }
.hrm-w-71 { width: 71%; }
.hrm-w-72 { width: 72%; }
.hrm-w-73 { width: 73%; }
.hrm-w-74 { width: 74%; }
.hrm-w-75 { width: 75%; }
.hrm-w-76 { width: 76%; }
.hrm-w-77 { width: 77%; }
.hrm-w-78 { width: 78%; }
.hrm-w-79 { width: 79%; }
.hrm-w-80 { width: 80%; }
.hrm-w-81 { width: 81%; }
.hrm-w-82 { width: 82%; }
.hrm-w-83 { width: 83%; }
.hrm-w-84 { width: 84%; }
.hrm-w-85 { width: 85%; }
.hrm-w-86 { width: 86%; }
.hrm-w-87 { width: 87%; }
.hrm-w-88 { width: 88%; }
.hrm-w-89 { width: 89%; }
.hrm-w-90 { width: 90%; }
.hrm-w-91 { width: 91%; }
.hrm-w-92 { width: 92%; }
.hrm-w-93 { width: 93%; }
.hrm-w-94 { width: 94%; }
.hrm-w-95 { width: 95%; }
.hrm-w-96 { width: 96%; }
.hrm-w-97 { width: 97%; }
.hrm-w-98 { width: 98%; }
.hrm-w-99 { width: 99%; }
.hrm-w-100 { width: 100%; }

/* Hashed replacements for former style= attributes */
.hrm-is-00a841b4 { font-family: Arial, Helvetica, sans-serif; color: #1f2937; line-height: 1.5; padding: var(--sp-5); background: #f8fafc; }
.hrm-is-0574ae66 { padding: var(--sp-2); border: 1px solid #333; overflow: hidden; }
.hrm-is-05af20ec { --bs-breadcrumb-divider: "/"; }
.hrm-is-05b623ce { min-width: 20rem; }
.hrm-is-09001f4e { min-height: 200px; }
.hrm-is-0a4a5fec { max-width: 95px; }
.hrm-is-0b3016ee { list-style-type: none; padding-left: 0; }
.hrm-is-0bd4d42d { margin-top: var(--sp-2); margin-bottom: var(--sp-2); }
.hrm-is-0cb2b3b1 { min-width: 8rem; }
.hrm-is-0d61cfcd { max-width: 18rem; }
.hrm-is-0dc08e8c { height: 30px; }
.hrm-is-0f49ce87 { border-collapse: collapse; }
.hrm-is-0fdf6c16 { width: 5rem; }
.hrm-is-10ad7cf3 { height: 70vh; overflow: auto; }
.hrm-is-172f1688 { min-height: 600px; }
.hrm-is-1a669fc4 { width: 11rem; }
.hrm-is-1c244e6b { margin: 0; }
.hrm-is-1c851c6c { max-width: 28rem; }
.hrm-is-1d7f4a87 { padding-top: var(--sp-4); }
.hrm-is-1e487c4c { height: 300px; }
.hrm-is-20efda63 { padding: var(--sp-2); border: 1px solid #333; }
.hrm-is-210797b9 { width: 80%; }
.hrm-is-217d400f { padding: var(--sp-1) var(--sp-3); background-color: #ccc; border: none; border-radius: 4px; cursor: pointer; }
.hrm-is-2352ccda { color: #002654; }
.hrm-is-245e78ba { border-collapse: collapse; padding: var(--sp-2); }
.hrm-is-26590802 { cursor: pointer; }
.hrm-is-26eb8a80 { position: absolute; z-index: 9; padding: var(--sp-1); border: 1px solid #77a1ab; }
.hrm-is-274c99d4 { width: 40px; }
.hrm-is-2797cb18 { padding: var(--sp-1); }
.hrm-is-27bff684 { right: 10px; top: 50%; transform: translateY(10%); cursor: pointer; }
.hrm-is-27dc1432 { margin-top: var(--sp-2); }
.hrm-is-2a7facf9 { clear: both; vertical-align: top; }
.hrm-is-2cdeced0 { height: 10.5rem !important; }
.hrm-is-2d30943f { height: 100%; }
.hrm-is-2f137752 { height: 50px; }
.hrm-is-2f694666 { font-size: var(--fs-sm); }
.hrm-is-2faeaee4 { width: 400px; margin-top: var(--sp-2); }
.hrm-is-2fb93580 { width: 2.5rem; }
.hrm-is-325ac614 { border-left: none; border-top: none; border-right: none; }
.hrm-is-351c5e59 { overflow-y: auto; max-height: 80vh; min-height: 60vh; }
.hrm-is-3536f691 { min-width: 16rem; }
.hrm-is-37ccaecd { width: 20px; }
.hrm-is-3a6fb9a7 { color: rgb(253, 5, 5); }
.hrm-is-3d088a8d { width: 20px; border: none !important; }
.hrm-is-3d50042b { border: 1px solid black; }
.hrm-is-3f01608f { max-width: 640px; margin: 0 auto; background: #fff; padding: var(--sp-5); border-radius: 8px; }
.hrm-is-401555fd { min-width: 3rem; }
.hrm-is-409674c8 { color: rgb(14, 74, 102); }
.hrm-is-42f7e1c9 { width: 53px; height: auto; }
.hrm-is-434118da { width: 20%; }
.hrm-is-43473b8a { width: 70%; }
.hrm-is-4381d40b { border-right: none; border-top: none; }
.hrm-is-46f7e7ff { color: rgb(36, 122, 180); }
.hrm-is-4a8aa4e1 { border-top: 0; padding-top: 0; margin-top: 0; }
.hrm-is-4b0e4885 { background-color: #000; padding: var(--sp-1); }
.hrm-is-4c0b62d3 { margin-top: var(--sp-4); }
.hrm-is-500f52e1 { margin-top: var(--sp-7); }
.hrm-is-51378c6f { width: 90px; }
.hrm-is-5173dcee { width: 20%; padding-right: var(--sp-2); }
.hrm-is-5317bbf8 { clear: both; }
.hrm-is-5457e931 { margin-bottom: var(--sp-4); }
.hrm-is-54fbc1eb { padding: var(--sp-1) var(--sp-3); background-color: red; border: none; border-radius: 4px; cursor: pointer; }
.hrm-is-55ed0b9f { border: 0px !important; }
.hrm-is-578256f2 { color: #aa1818; }
.hrm-is-5a77967a { clear: both; margin: var(--sp-2); }
.hrm-is-5c99c042 { max-width: 720px; }
.hrm-is-641323e7 { border: 1px solid #333; border-top: none; border-left: none; padding: var(--sp-2); }
.hrm-is-64fbecbb { border-collapse: collapse; border: 1px white solid; }
.hrm-is-65142e4c { background-image: url("../img/login/bg.png"); }
.hrm-is-656f5b97 { font-weight: lighter; }
.hrm-is-65b4c205 { color: #206b2c; }
.hrm-is-665ef56a { min-width: 40%; }
.hrm-is-6b8418c6 { min-height: 450px; }
.hrm-is-6bd4e1ce { color: #999; padding: var(--sp-4); margin-top: var(--sp-7); }
.hrm-is-6f982333 { width: 60%; }
.hrm-is-75900294 { width: 0%; }
.hrm-is-7e5ddecc { width: 105px; }
.hrm-is-7ebebcd8 { color: #565656; }
.hrm-is-7f04ebc4 { background-color: #f7f7f7; padding: var(--sp-2); border-radius: 4px; display: inline-block; margin: var(--sp-2) 0; color: #2c3e50; }
.hrm-is-7f3d121c { border: 1px solid #333; border-top: none; padding: var(--sp-2); vertical-align: top; }
.hrm-is-8117a157 { min-width: 10rem; }
.hrm-is-828e8eb9 { width: 10%; }
.hrm-is-82f013af { padding: var(--sp-1) var(--sp-3); }
.hrm-is-83290b03 { background-color: rgb(145, 146, 148); }
.hrm-is-86ac3cc0 { color: #575757; }
.hrm-is-86ece6ab { max-width: 12rem; }
.hrm-is-8904e997 { max-width: 8rem; }
.hrm-is-8918079a { min-width: 14rem; }
.hrm-is-8b39a0e4 { width: 150px; height: 55px; }
.hrm-is-8b8cfced { border: 1px solid #333; border-top: none; border-left: none; padding: var(--sp-2); vertical-align: top; }
.hrm-is-8c12dbbb { padding: 0 var(--sp-2); }
.hrm-is-8dc2be46 { width: 20px; border-right: none !important; }
.hrm-is-907747ad { font-size: var(--fs-lg); }
.hrm-is-93a976f7 { border: none; border: none !important; }
.hrm-is-96ce7ef3 { display: block; }
.hrm-is-9bc2e3df { border: 1px solid #333; border-right: none; padding: var(--sp-2); }
.hrm-is-9bc45b01 { display: inline-block; background: #2644b1; color: #fff; text-decoration: none; padding: var(--sp-2) var(--sp-4); border-radius: 6px; }
.hrm-is-9ef3f224 { margin: var(--sp-5) 0 0; color: #6b7280; }
.hrm-is-a12bcd5c { width: auto; }
.hrm-is-a2ae6286 { border: 1px solid #333; border-left: none; padding: var(--sp-2); vertical-align: top; }
.hrm-is-a542fe27 { padding: var(--sp-1) !important; height: 0px !important; }
.hrm-is-a55a0683 { color: rgb(255, 0, 0); }
.hrm-is-a6acfc2e { font-weight: normal; padding-left: var(--sp-4); }
.hrm-is-ac9cb6fd { margin: 0 auto; background-color: #ffffff; padding: var(--sp-4); border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
.hrm-is-b12aa269 { justify-content: space-between; width: 75%; }
.hrm-is-b1e40424 { border: 1px solid black; border-collapse: collapse; }
.hrm-is-b3faf33f { width: 400px; height: 25px; margin-top: var(--sp-2); }
.hrm-is-b632c338 { background-color: #000 !important; }
.hrm-is-b9f7900c { width: 90px; border-left: none; }
.hrm-is-bb09b47d { border: none; padding: var(--sp-1) var(--sp-2); }
.hrm-is-bc382335 { margin: 0 0 var(--sp-4); white-space: pre-line; }
.hrm-is-bce1792c { margin-bottom: var(--sp-1); }
.hrm-is-c2d8e060 { margin-bottom: var(--sp-7); }
.hrm-is-c72e42ae { margin: var(--sp-4); max-width: 800px; margin: auto; padding: var(--sp-4); border: 1px solid #ccc; border-radius: 5px; }
.hrm-is-c8eba8fd { border-collapse: collapse; border: 1px solid #000; }
.hrm-is-ca0ed000 { font-weight: normal; }
.hrm-is-ca362336 { object-fit: cover; }
.hrm-is-cc858296 { table-layout: fixed; }
.hrm-is-ce67f13b { border: 1px solid #000; padding: var(--sp-4); max-width: 800px; margin: 0 auto; }
.hrm-is-ce7d8038 { padding-left: var(--sp-5) !important; }
.hrm-is-ced43b4e { border-left: none; border: none !important; padding: var(--sp-1); }
.hrm-is-cf42e593 { font-size: var(--fs-xs); }
.hrm-is-cf5948e3 { font-weight: 500; }
.hrm-is-cf9f3efa { margin-bottom: var(--sp-2); }
.hrm-is-d3d01643 { border: none !important; }
.hrm-is-d44c18c4 { width: 120px; }
.hrm-is-d4b53a2f { color: #007BFF; text-decoration: none; }
.hrm-is-d59efb16 { border-right: none; }
.hrm-is-d5ecfba9 { width: 75%; }
.hrm-is-d64bd9fc { border: 1px solid #333; border-left: none; padding: var(--sp-2); }
.hrm-is-d756b558 { min-width: 6rem; }
.hrm-is-d80d6b5f { color: red; min-height: 100px; }
.hrm-is-da2ce30b { max-width: 7rem; }
.hrm-is-db80b537 { width: 80px; }
.hrm-is-dda7c731 { color: #002F69; }
.hrm-is-df54de02 { border-left: none !important; padding: var(--sp-1); }
.hrm-is-dfd72599 { color: rgb(12, 136, 238); }
.hrm-is-e0cb13e7 { max-width: 62ch; }
.hrm-is-e408b525 { border-collapse: collapse; margin-top: var(--sp-2); padding: var(--sp-4); }
.hrm-is-e52938e0 { max-width: 600px; }
.hrm-is-e6abce47 { border: 1px solid red; }
.hrm-is-e9475ee1 { padding-left: var(--sp-3); }
.hrm-is-e9edbb5e { background-color: #000; }
.hrm-is-ec3bb484 { max-width: 20rem; }
.hrm-is-ed6ac08e { max-height: 400px; overflow-y: auto; }
.hrm-is-ee8391be { border-bottom: 1px solid #d1d1d1; }
.hrm-is-eee54a20 { max-width: 120px; }
.hrm-is-ef4edb55 { border: 1px solid #333; border-top: none; padding: var(--sp-2); }
.hrm-is-f3806f41 { cursor: not-allowed; }
.hrm-is-f49362ee { margin: var(--sp-5) 0; }
.hrm-is-f829ee4c { border: 1px solid #333; padding: var(--sp-2); }
.hrm-is-f8857377 { width: 40%; padding: var(--sp-1) !important; height: 0px !important; }
.hrm-is-f91c155c { padding-left: var(--sp-2); padding-right: var(--sp-2); width: 100px; }
.hrm-is-fa18b98c { min-width: 240px; }
.hrm-is-fa486ad4 { width: 200px; }
.hrm-is-fc583e16 { width: 100rem; }
.hrm-is-fcf34e29 { width: 24rem; }
.hrm-is-fd5307af { width: 90px; border-bottom: none; border-top: none; }
.hrm-is-fdd975bc { margin: 0 0 var(--sp-4); }

/* Hashed replacements pass2 */
.hrm-is-0574ae66 { padding: var(--sp-2); border: 1px solid #333; overflow: hidden; }
.hrm-is-0bd4d42d { margin-top: var(--sp-2); margin-bottom: var(--sp-2); }
.hrm-is-0f49ce87 { border-collapse: collapse; }
.hrm-is-1c244e6b { margin: 0; }
.hrm-is-20efda63 { padding: var(--sp-2); border: 1px solid #333; }
.hrm-is-210797b9 { width: 80%; }
.hrm-is-2797cb18 { padding: var(--sp-1); }
.hrm-is-27dc1432 { margin-top: var(--sp-2); }
.hrm-is-2a7facf9 { clear: both; vertical-align: top; }
.hrm-is-325ac614 { border-left: none; border-top: none; border-right: none; }
.hrm-is-37ccaecd { width: 20px; }
.hrm-is-434118da { width: 20%; }
.hrm-is-43473b8a { width: 70%; }
.hrm-is-4381d40b { border-right: none; border-top: none; }
.hrm-is-4b0e4885 { background-color: #000; padding: var(--sp-1); }
.hrm-is-4c0b62d3 { margin-top: var(--sp-4); }
.hrm-is-51378c6f { width: 90px; }
.hrm-is-5317bbf8 { clear: both; }
.hrm-is-5457e931 { margin-bottom: var(--sp-4); }
.hrm-is-5a77967a { clear: both; margin: var(--sp-2); }
.hrm-is-641323e7 { border: 1px solid #333; border-top: none; border-left: none; padding: var(--sp-2); }
.hrm-is-7e5ddecc { width: 105px; }
.hrm-is-7f3d121c { border: 1px solid #333; border-top: none; padding: var(--sp-2); vertical-align: top; }
.hrm-is-828e8eb9 { width: 10%; }
.hrm-is-86ac3cc0 { color: #575757; }
.hrm-is-8b39a0e4 { width: 150px; height: 55px; }
.hrm-is-8b8cfced { border: 1px solid #333; border-top: none; border-left: none; padding: var(--sp-2); vertical-align: top; }
.hrm-is-8c12dbbb { padding: 0 var(--sp-2); }
.hrm-is-8dc2be46 { width: 20px; border-right: none !important; }
.hrm-is-907747ad { font-size: var(--fs-lg); }
.hrm-is-9bc2e3df { border: 1px solid #333; border-right: none; padding: var(--sp-2); }
.hrm-is-a2ae6286 { border: 1px solid #333; border-left: none; padding: var(--sp-2); vertical-align: top; }
.hrm-is-b632c338 { background-color: #000 !important; }
.hrm-is-b9f7900c { width: 90px; border-left: none; }
.hrm-is-bb09b47d { border: none; padding: var(--sp-1) var(--sp-2); }
.hrm-is-c8eba8fd { border-collapse: collapse; border: 1px solid #000; }
.hrm-is-cc858296 { table-layout: fixed; }
.hrm-is-ce67f13b { border: 1px solid #000; padding: var(--sp-4); max-width: 800px; margin: 0 auto; }
.hrm-is-ced43b4e { border-left: none; border: none !important; padding: var(--sp-1); }
.hrm-is-cf9f3efa { margin-bottom: var(--sp-2); }
.hrm-is-d44c18c4 { width: 120px; }
.hrm-is-d59efb16 { border-right: none; }
.hrm-is-d64bd9fc { border: 1px solid #333; border-left: none; padding: var(--sp-2); }
.hrm-is-df54de02 { border-left: none !important; padding: var(--sp-1); }
.hrm-is-e9475ee1 { padding-left: var(--sp-3); }
.hrm-is-e9edbb5e { background-color: #000; }
.hrm-is-ef4edb55 { border: 1px solid #333; border-top: none; padding: var(--sp-2); }
.hrm-is-f829ee4c { border: 1px solid #333; padding: var(--sp-2); }
.hrm-is-fd5307af { width: 90px; border-bottom: none; border-top: none; }

/* ---------- Mobile shell (3.1) ---------- */
* { min-width: 0; }
img, svg, video { max-width: 100%; height: auto; }

.hrm-drawer-backdrop {
  display: none;
}

.dashboard-body__bar-icon.hrm-drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sidebar-menu__close.hrm-drawer-close {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  width: var(--tap-min);
  height: var(--tap-min);
  line-height: 1;
  padding: 0;
}

.notification {
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
}

.notification .close-btn {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
}

@media (max-width: 767.98px) {
  .form-control,
  .form-select,
  textarea,
  .select2-container--default .select2-selection--single,
  .select2-container--default .select2-selection--multiple,
  .select2-container .select2-search--dropdown .select2-search__field,
  .select2-search__field {
    font-size: var(--fs-input) !important;
    min-height: var(--tap-min);
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: var(--fs-input);
    line-height: var(--tap-min);
  }

  .sidebar-menu.hrm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--rail-w), 86%);
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-100%);
    z-index: 1040;
    transition: transform var(--duration) var(--ease-out);
  }

  html.hrm-drawer-open .sidebar-menu.hrm-sidebar,
  .sidebar-menu.hrm-sidebar.show-sidebar {
    transform: translateX(0);
  }

  .hrm-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgb(15 23 42 / 0.4);
    z-index: 1035;
  }

  .hrm-drawer-backdrop[hidden] {
    display: none !important;
  }

  html.hrm-drawer-open,
  html.hrm-drawer-open body {
    overflow: hidden;
  }

  .sidebar-menu__close.hrm-drawer-close {
    display: inline-flex;
  }

  body.hrm-ams .dd-content {
    margin-left: 0 !important;
  }

  .hrm-app-header .time,
  .hrm-app-header .u-content,
  .hrm-search-trigger span,
  .hrm-search-trigger kbd,
  .hrm-ams-exit__full {
    display: none !important;
  }

  .hrm-ams-exit__short {
    display: inline !important;
  }

  .hrm-ams-exit {
    min-width: var(--tap-min);
    padding-left: var(--sp-2);
    padding-right: var(--sp-2);
  }

  .hrm-search-trigger {
    width: var(--tap-min);
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    justify-content: center;
    padding: 0;
  }

  .hrm-app-header .d-icon,
  .hrm-app-header button.u-info {
    min-width: var(--tap-min);
    min-height: var(--tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hrm-app-header .title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Time-only daterangepicker (replaces jquery-timepicker) */
.daterangepicker.hrm-timepicker .drp-calendar {
  max-width: none;
}
.daterangepicker.hrm-timepicker .calendar-table,
.daterangepicker.hrm-timepicker .calendar-table table {
  display: none;
}
.daterangepicker.hrm-timepicker .drp-calendar.left {
  padding: var(--sp-3);
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .sidebar-menu.hrm-sidebar {
    transform: none !important;
    position: fixed;
    width: var(--rail-w);
    height: 100dvh;
  }

  body.hrm-ams .dd-content {
    margin-left: var(--rail-w) !important;
  }

  .sidebar-menu__close.hrm-drawer-close,
  .hrm-drawer-backdrop {
    display: none !important;
  }
}

/* Enterprise error pages + session expiry warning */
.hrm-error-standalone {
  min-height: 100dvh;
  margin: 0;
  background: var(--hrm-surface);
  color: var(--hrm-ink);
  font-family: var(--font-sans);
}

.hrm-error-standalone__inner {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  padding: var(--sp-6) var(--sp-4);
  padding-bottom: calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
}

.hrm-error-page {
  width: 100%;
  max-width: 36rem;
  padding: var(--sp-6) var(--sp-4);
}

.hrm-error-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-bottom: var(--sp-5);
}

.hrm-error-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hrm-error-mark {
  display: block;
  width: calc(var(--fs-2xl) + var(--sp-2));
  height: calc(var(--fs-2xl) + var(--sp-2));
  flex-shrink: 0;
}

.hrm-error-mark__bg {
  fill: var(--brand-primary);
}

.hrm-error-mark__tile {
  fill: var(--hrm-surface-2);
  fill-opacity: 0.55;
}

.hrm-error-mark__tile--on {
  fill-opacity: 0.95;
}

.hrm-error-wordmark {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--hrm-ink);
}

.hrm-error-heading {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--hrm-ink);
}

.hrm-error-copy {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--hrm-muted);
}

.hrm-error-ref {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
  font-variant-numeric: tabular-nums;
}

.hrm-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hrm-error-actions a,
.hrm-error-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  color: var(--hrm-ink);
  font-size: var(--fs-md);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hrm-error-actions a.is-primary,
.hrm-error-actions button.is-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--hrm-surface-2);
}

.hrm-error-actions form {
  margin: 0;
}

.hrm-session-warn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface);
  border-top: 1px solid var(--hrm-border);
  box-shadow: var(--shadow-float);
}

.hrm-session-warn[hidden] {
  display: none;
}

.hrm-session-warn p {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--hrm-ink);
}

.hrm-session-warn button {
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-control);
  background: var(--brand-primary);
  color: var(--hrm-surface-2);
  font-size: var(--fs-md);
  font-family: inherit;
  cursor: pointer;
}

/* ESS 390px contract */
.hrm-ess-page .hrm-list-title {
  font-size: var(--fs-base);
  font-weight: 600;
}

.hrm-ess-page .hrm-list-meta {
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-ess-page .hrm-list-row,
.hrm-page.hrm-ess-page .hrm-list-row {
  min-height: var(--row-h);
  align-items: center;
}

.hrm-ess-page .hrm-stat-meta {
  white-space: normal;
}

.hrm-ess-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hrm-ess-toolbar .btn,
.hrm-ess-page .btn {
  min-height: var(--tap-min);
}

.hrm-ess-dash {
  display: grid;
  gap: var(--sp-5);
}

.hrm-ess-dash__stats {
  min-width: 0;
}

.hrm-ess-page .form-control,
.hrm-ess-page textarea.form-control {
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}

.hrm-ess-page .form-select {
  padding-left: var(--sp-3);
  padding-right: var(--sp-6) !important;
}

.hrm-ess-form-grid {
  display: grid;
  gap: var(--sp-4);
}

.hrm-ess-form-grid > .hrm-field {
  margin-bottom: 0;
}

.hrm-account-photo {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.hrm-account-photo img {
  width: var(--row-h);
  height: var(--row-h);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--slate-200);
  flex-shrink: 0;
}

.hrm-account-photo .hrm-field {
  flex: 1;
  min-width: 0;
}

body:has(.hrm-account-page) .hrm-chrome-title {
  display: block;
}

.hrm-ess-apply {
  display: grid;
  gap: var(--sp-5);
  grid-template-areas:
    "context"
    "form";
}

.hrm-ess-apply__form {
  grid-area: form;
  min-width: 0;
}

.hrm-ess-context {
  grid-area: context;
  min-width: 0;
}

.hrm-ess-context__details {
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-surface);
  background: var(--hrm-surface-2);
}

.hrm-ess-context__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--tap-min);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  list-style: none;
}

.hrm-ess-context__summary::-webkit-details-marker {
  display: none;
}

.hrm-ess-context__summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--hrm-muted);
  font-size: var(--fs-lg);
  line-height: 1;
}

.hrm-ess-context__details[open] > .hrm-ess-context__summary::after {
  content: "\2212";
}

.hrm-ess-context__summary-copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.hrm-ess-context__summary-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--hrm-ink);
}

.hrm-ess-context__summary-hint {
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-ess-context__body {
  padding: 0 var(--sp-4) var(--sp-4);
}

.hrm-ess-context__period,
.hrm-ess-context__empty {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-ess-context__heading {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hrm-muted);
}

.hrm-ess-context__heading:first-child {
  margin-top: 0;
}

.hrm-ess-context__more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand-700);
  text-decoration: none;
}

.hrm-ess-context__more:hover {
  color: var(--brand-primary);
}

.hrm-ess-context-row.is-current {
  background: var(--brand-50);
  border-radius: var(--radius-control);
}

.hrm-ess-form-grid .hrm-field--full {
  grid-column: 1 / -1;
}

.hrm-ess-callout {
  margin: 0;
  padding: var(--sp-4);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-surface);
  background: var(--accent-surface);
  color: var(--hrm-ink);
  font-size: var(--fs-md);
}

.hrm-ess-field-error {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-sm);
  color: var(--hrm-danger);
}

.hrm-ess-help {
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-ess-filters {
  margin-bottom: var(--sp-4);
}

.hrm-ess-filter-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.hrm-ess-filter-toggle,
.hrm-ess-filter-close,
.hrm-ess-filter-actions a,
.hrm-ess-filter-actions button,
.hrm-ess-dock a,
.hrm-ess-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-control);
  background: var(--bg-surface);
  color: var(--hrm-ink);
  font-size: var(--fs-md);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hrm-ess-filter-toggle.is-primary,
.hrm-ess-filter-actions button.is-primary,
.hrm-ess-dock a.is-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--hrm-surface-2);
}

.hrm-ess-filter-count {
  margin-left: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-ess-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.hrm-ess-chip {
  font-size: var(--fs-sm);
  padding-inline: var(--sp-3);
}

.hrm-ess-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-3);
}

.hrm-ess-filter-form .form-select {
  min-width: 8rem;
}

.hrm-ess-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.hrm-ess-filter-backdrop {
  display: none;
}

body.hrm-ess-filter-lock {
  overflow: hidden;
}

.hrm-ess-filter-panel-head {
  display: none;
}

.hrm-ess-dock {
  display: none;
}

.hrm-ess-score-cards {
  display: none;
}

.hrm-ess-preview iframe {
  width: 100%;
  max-width: 100%;
  height: 70dvh;
  border: 0;
  display: block;
  background: var(--hrm-surface-2);
}

.hrm-ess-preview {
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-control);
  overflow: hidden;
  background: var(--bg-surface);
}

.hrm-ess-payslip {
  display: grid;
  gap: var(--sp-5);
}

.hrm-ess-dl {
  display: grid;
  gap: var(--sp-4);
}

.hrm-ess-dl__item {
  min-width: 0;
}

.hrm-ess-dl__item .hrm-list-meta {
  margin-bottom: var(--sp-1);
}

.hrm-ess-dl--money {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hrm-border);
}

.hrm-payslip-doc {
  padding: var(--sp-5);
  border: 1px solid var(--hrm-border);
  background: var(--hrm-surface-2);
  box-sizing: border-box;
}

.hrm-payslip-logo,
.hrm-payslip-doc .hrm-logo-sm,
.payslip .logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--sp-7);
  max-width: 12rem;
  object-fit: contain;
  object-position: left center;
}

.hrm-field[data-hrm-dropzone] {
  position: relative;
}

.hrm-dropzone__picker,
.hrm-dropzone__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.hrm-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: calc(var(--tap-min) + var(--sp-7));
  padding: var(--sp-5);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-surface);
  background: var(--hrm-surface-2);
  color: var(--slate-500);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--duration) var(--ease-out),
    background-color var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out);
}

.hrm-dropzone:hover,
.hrm-dropzone:focus-visible {
  border-color: var(--brand-400);
  background: var(--brand-50);
  color: var(--brand-700);
}

.hrm-dropzone.is-over {
  border-color: var(--brand-primary);
  border-style: solid;
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: var(--shadow-pop);
  transform: scale(1.02);
}

.hrm-dropzone.is-dropped {
  transform: scale(0.99);
}

.hrm-dropzone.is-reject {
  border-color: var(--hrm-danger);
  background: var(--accent-surface);
  animation: hrm-drop-reject 360ms var(--ease-out);
}

.hrm-dropzone.is-filled {
  border-style: solid;
  border-color: var(--slate-200);
}

.hrm-dropzone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  color: var(--brand-500);
  transition: transform 220ms var(--ease-out);
}

.hrm-dropzone.is-over .hrm-dropzone__icon {
  transform: translateY(calc(var(--sp-2) * -1));
}

.hrm-dropzone__title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--hrm-ink);
}

.hrm-dropzone__sub {
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-dropzone__files {
  list-style: none;
  margin: var(--sp-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.hrm-dropzone__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: var(--tap-min);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--hrm-border);
  border-radius: var(--radius-control);
  background: var(--hrm-surface);
  animation: hrm-drop-in 200ms var(--ease-out);
}

.hrm-dropzone__file.is-out {
  opacity: 0;
  transform: translateY(calc(var(--sp-2) * -1));
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.hrm-dropzone__file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hrm-dropzone__file-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--hrm-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hrm-dropzone__file-meta {
  font-size: var(--fs-sm);
  color: var(--hrm-muted);
}

.hrm-dropzone__remove {
  flex-shrink: 0;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0 var(--sp-2);
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.hrm-dropzone__remove:hover,
.hrm-dropzone__remove:focus-visible {
  color: var(--hrm-danger);
}

@keyframes hrm-drop-in {
  from {
    opacity: 0;
    transform: translateY(var(--sp-2));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hrm-drop-reject {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(var(--sp-1)); }
  75% { transform: translateX(calc(var(--sp-1) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
  .hrm-dropzone,
  .hrm-dropzone__icon,
  .hrm-dropzone__file,
  .hrm-dropzone__file.is-out {
    animation: none;
    transition: none;
    transform: none;
  }
}

.hrm-ess-payslip-embed {
  padding: var(--sp-4);
  background: var(--hrm-surface-2);
}

@media (min-width: 768px) {
  .hrm-ess-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hrm-ess-dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hrm-ess-apply {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    grid-template-areas: "form context";
    align-items: start;
  }

  .hrm-ess-context {
    position: sticky;
    top: var(--sp-5);
  }

  .hrm-ess-context__details > *:not(summary) {
    display: block;
  }

  .hrm-ess-context__summary {
    cursor: default;
    pointer-events: none;
  }

  .hrm-ess-context__summary::after {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hrm-ess-dash {
    grid-template-columns: 1.4fr 1fr;
  }

  .hrm-ess-dash__stats {
    grid-column: 1 / -1;
  }

  .hrm-ess-dl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hrm-ess-page .hrm-stat-strip,
  .hrm-page.hrm-ess-page .hrm-stat-strip {
    grid-template-columns: 1fr !important;
  }

  .hrm-ess-page--docked .hrm-ess-toolbar {
    display: none;
  }

  .hrm-ess-filter-bar {
    display: flex;
  }

  .hrm-ess-filter-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
  }

  .hrm-ess-filter-sheet.is-open {
    display: block;
  }

  .hrm-ess-filter-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--slate-900);
    opacity: 0.4;
  }

  .hrm-ess-filter-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--sp-4);
    padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
    background: var(--bg-surface);
    border-top: 1px solid var(--hrm-border);
    border-radius: var(--radius-surface) var(--radius-surface) 0 0;
  }

  .hrm-ess-filter-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
  }

  .hrm-ess-filter-panel-title {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--hrm-ink);
  }

  .hrm-ess-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hrm-ess-filter-form .hrm-field,
  .hrm-ess-filter-form .form-select {
    width: 100%;
  }

  .hrm-ess-page--docked {
    padding-bottom: calc(var(--tap-min) + var(--sp-6) + env(safe-area-inset-bottom, 0px));
  }

  .hrm-ess-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: var(--sp-3) var(--sp-4);
    padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    background: var(--bg-surface);
    border-top: 1px solid var(--hrm-border);
  }

  .hrm-ess-dock a {
    flex: 1;
  }

  .hrm-ess-score-table {
    display: none;
  }

  .hrm-ess-score-cards {
    display: block;
  }

  .hrm-ess-page .hrm-preview-frame,
  .hrm-ess-page .hrm-preview-frame iframe {
    min-height: 0;
    height: 50dvh;
    max-width: 100%;
  }

  .hrm-ess-page .hrm-list-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-min);
  }
}

.hrm-skel-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.hrm-skel-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-4);
}

.hrm-skel {
  display: block;
  min-height: var(--sp-4);
  background: var(--slate-200);
  border-radius: var(--sp-1);
  animation: hrm-skel-pulse 1.2s ease-in-out infinite;
}

@keyframes hrm-skel-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hrm-concurrency,
.hrm-calc-errors {
  margin-block: var(--sp-4);
  padding: var(--sp-4);
  background: var(--accent-50);
  border: 1px solid var(--accent-300);
  border-radius: var(--sp-2);
  color: var(--hrm-ink);
}

.hrm-concurrency-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

.hrm-calc-errors ul {
  margin: 0;
  padding-inline-start: var(--sp-5);
}

button[aria-busy="true"] {
  pointer-events: none;
}

.hrm-undo {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--slate-900);
  color: var(--slate-50);
  border-radius: var(--sp-2);
  min-height: var(--tap-min);
}

.hrm-undo .btn-link {
  color: var(--slate-50);
}

/* Auth screen — must stay last so a dumped extract cannot hide it */
.login-form {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--brand-800);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.login-form.hrm-is-65142e4c {
  background-image: url("../img/login/bg.png");
}

.login-form .main-form {
  width: min(100%, 28rem);
  padding: var(--sp-6) var(--sp-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  border-radius: var(--radius-surface);
  border: 1px solid color-mix(in srgb, var(--slate-50) 50%, transparent);
  background: color-mix(in srgb, var(--brand-400) 28%, transparent);
  backdrop-filter: blur(0.5rem);
}

.login-form .form-area {
  width: 100%;
  max-width: 22rem;
}

.login-form .header-content {
  text-align: center;
}

.login-form .header-content h4,
.login-form .header-content p,
.login-form label,
.login-form .text-reset {
  color: var(--slate-50);
}

.login-form .header-content h4 {
  font-weight: 700;
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}

.login-form .header-content p {
  font-size: var(--fs-lg);
}

.login-form .form-area .form-control {
  padding: var(--sp-4);
  background: var(--hrm-surface-2);
  color: var(--hrm-ink);
}

.login-form .field-icon {
  float: right;
  margin-right: var(--sp-2);
  position: relative;
  z-index: 2;
  color: var(--slate-500);
}

.login-form .login-meta {
  align-items: center;
  gap: var(--sp-2);
}

.login-form .form-check {
  padding-left: 0;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
}

.login-form button[type="submit"] {
  min-height: var(--tap-min);
}

@media (max-width: 768px) {
  .login-form .main-form {
    width: calc(100% - var(--sp-6));
    padding: var(--sp-5);
  }

  .login-form .form-area .form-control {
    font-size: var(--fs-input);
  }
}

/* Dumped print/email extracts set body { width: 210mm }. Keep that off screen. */
@media screen {
  html,
  body {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
  }
}
