/* [next]/internal/font/google/ibm_plex_sans_arabic_73c2aced.module.css [app-client] (css) */
@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/c9a0d344f313d307-s.p.3ik2qu-u9tgho.woff2") format("woff2");
  unicode-range: U+6??, U+750-77F, U+870-891, U+897-8E1, U+8E3-8FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF?, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/aa914dbbd9a27e94-s.0n4hkusom70ae.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/5a1ede1938590d51-s.19gzon4xl8qiz.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../media/5d6231e6818a3930-s.p.2vs72h_x6qrve.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/280fac012b00b901-s.p.3ihiqn4pviisd.woff2") format("woff2");
  unicode-range: U+6??, U+750-77F, U+870-891, U+897-8E1, U+8E3-8FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF?, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/65b08f011bd29e21-s.00vfn3_g-ftpg.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/a1b65e215f8df202-s.3w3hylgez90of.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../media/3347fc7792f0b5ea-s.p.0c7ha31nuacbu.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/ceec3e50f42c26e3-s.p.0da8nscnv1nkd.woff2") format("woff2");
  unicode-range: U+6??, U+750-77F, U+870-891, U+897-8E1, U+8E3-8FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF?, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/b140408e2d7eae5d-s.2x1j3gzzngp4x.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/d3af3242084a193c-s.1jr_z050he_qo.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../media/441492499fc86682-s.p.1fbvi_fot8u4l.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/5ad8fdb5805e9b4a-s.p.0-uv4l43gdmt7.woff2") format("woff2");
  unicode-range: U+6??, U+750-77F, U+870-891, U+897-8E1, U+8E3-8FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF?, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/bb8a9270184a3556-s.0phk7_etl12r4.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/b3f2ed44161db83e-s.3c64at4xi6rda.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: IBM Plex Sans Arabic;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../media/84cd8d504984ae62-s.p.0iritm8hg8q1a.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: IBM Plex Sans Arabic Fallback;
  src: local(Arial);
  ascent-override: 107.25%;
  descent-override: 41.02%;
  line-gap-override: 0.0%;
  size-adjust: 101.17%;
}

.ibm_plex_sans_arabic_73c2aced-module__TaVNxG__className {
  font-family: IBM Plex Sans Arabic, IBM Plex Sans Arabic Fallback;
  font-style: normal;
}

.ibm_plex_sans_arabic_73c2aced-module__TaVNxG__variable {
  --font-app: "IBM Plex Sans Arabic", "IBM Plex Sans Arabic Fallback";
}

/* [project]/src/components/dev/dev-persona-switcher.module.css [app-client] (css) */
@layer utilities {
  .dev-persona-switcher-module__5dK5HW__root {
    z-index: 2147483000;
    align-items: flex-end;
    gap: var(--space-2, 8px);
    font-family: var(--font-app, inherit);
    flex-direction: column;
    display: flex;
    position: fixed;
    inset-block-end: var(--space-3, 12px);
    inset-inline-end: var(--space-3, 12px);
  }

  .dev-persona-switcher-module__5dK5HW__root[data-sign-in] {
    align-items: flex-start;
    inset-inline-start: var(--space-3, 12px);
    inset-inline-end: auto;
  }

  @media (max-width: 599.98px) {
    .dev-persona-switcher-module__5dK5HW__root {
      inset-block-end: calc(64px + env(safe-area-inset-bottom, 0px) + var(--space-3, 12px));
    }

    body:has([class*="actionBar"]) .dev-persona-switcher-module__5dK5HW__root {
      inset-block-end: calc(64px + 72px + env(safe-area-inset-bottom, 0px) + var(--space-3, 12px));
    }
  }

  .dev-persona-switcher-module__5dK5HW__trigger {
    align-items: center;
    gap: var(--space-2, 8px);
    min-block-size: 44px;
    padding-inline: var(--space-4, 16px);
    border: 1px solid var(--neutral-700);
    border-radius: var(--radius-full, 999px);
    background: var(--neutral-900);
    color: var(--neutral-0);
    font-size: var(--font-size-body-sm, 13px);
    font-weight: var(--font-weight-semibold, 600);
    cursor: pointer;
    box-shadow: var(--elevation-md);
    display: inline-flex;
  }

  .dev-persona-switcher-module__5dK5HW__trigger:focus-visible, .dev-persona-switcher-module__5dK5HW__item:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
  }

  .dev-persona-switcher-module__5dK5HW__dot {
    border-radius: var(--radius-full, 999px);
    background: var(--color-status-warning-solid);
    block-size: 8px;
    inline-size: 8px;
  }

  .dev-persona-switcher-module__5dK5HW__panel {
    max-block-size: min(70dvh, 520px);
    inline-size: min(300px, 100vw - 24px);
    padding: var(--space-3, 12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 8px);
    background: var(--color-surface);
    box-shadow: var(--elevation-lg);
    scrollbar-width: thin;
    overflow-y: auto;
  }

  .dev-persona-switcher-module__5dK5HW__heading {
    margin: 0 0 var(--space-2, 8px);
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption, 12px);
    font-weight: var(--font-weight-semibold, 600);
  }

  .dev-persona-switcher-module__5dK5HW__list {
    gap: var(--space-1, 4px);
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .dev-persona-switcher-module__5dK5HW__item {
    align-items: center;
    gap: 0 var(--space-2, 8px);
    min-block-size: 44px;
    inline-size: 100%;
    padding-block: var(--space-2, 8px);
    padding-inline: var(--space-3, 12px);
    border-radius: var(--radius-md, 6px);
    color: var(--color-text);
    text-align: start;
    cursor: pointer;
    background: none;
    border: 0;
    grid-template-columns: 1fr auto;
    display: grid;
  }

  .dev-persona-switcher-module__5dK5HW__item:hover {
    background: var(--color-surface-subtle);
  }

  .dev-persona-switcher-module__5dK5HW__item[aria-current="true"] {
    background: var(--color-selected-bg);
  }

  .dev-persona-switcher-module__5dK5HW__item:disabled {
    cursor: progress;
  }

  .dev-persona-switcher-module__5dK5HW__role {
    font-size: var(--font-size-body-sm, 13px);
    font-weight: var(--font-weight-semibold, 600);
  }

  .dev-persona-switcher-module__5dK5HW__name {
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption, 12px);
    grid-column: 1;
  }

  .dev-persona-switcher-module__5dK5HW__status {
    color: var(--color-text-secondary);
    font-size: var(--font-size-caption, 12px);
    grid-area: 1 / 2 / span 2;
  }

  .dev-persona-switcher-module__5dK5HW__error {
    margin: var(--space-2, 8px) 0 0;
    color: var(--color-status-danger-fg);
    font-size: var(--font-size-caption, 12px);
  }
}

/* [project]/src/styles/layers.css [app-client] (css) */
@layer legacy, reset, tokens, brand, base, primitives, patterns, modules, utilities;

/* [project]/src/app/globals.css [app-client] (css) */
@layer legacy {
  :root {
    --navy-950: #061b2b;
    --navy-900: #143342;
    --navy-800: #123a55;
    --navy-700: #1b4d6d;
    --yellow: #ecc500;
    --yellow-soft: #fff8cf;
    --ink: #122433;
    --text-2: #4a5d6b;
    --text-3: #556877;
    --muted: #556877;
    --line: #e2e8ee;
    --canvas: #eef1f5;
    --card: #fff;
    --focus: #1b4d6d;
    --green: #14966c;
    --green-soft: #e9f8f2;
    --red: #d14343;
    --red-soft: #fff0ef;
    --amber: #d98b12;
    --amber-soft: #fff7e7;
    --blue: #2e74b8;
    --blue-soft: #edf5fc;
    --purple: #7357c6;
    --purple-soft: #f2efff;
    --shadow-sm: none;
    --shadow-md: 0 16px 50px #071d2c1f;
    --sidebar-width: 292px;
    --sidebar-collapsed: 84px;
    --sidebar-bg: #123542;
    --sidebar-line: #ffffff14;
    --sidebar-item: #b9c9d4;
    --sidebar-label: #9db2c0;
    --density-space: 1;
    --density-row: 1;
    --density-control: 1;
    --density-table-leading: 1.75;
  }

  [data-density="compact"] {
    --density-space: .66;
    --density-row: .74;
    --density-control: .86;
    --density-table-leading: 1.5;
  }

  @media (pointer: coarse) {
    [data-density="compact"] {
      --density-control: 1;
    }
  }

  * {
    box-sizing: border-box;
  }

  html, body {
    background: var(--canvas);
    min-height: 100%;
    color: var(--ink);
    margin: 0;
  }

  body {
    font-family: var(--font-app), "Segoe UI", "Segoe UI Arabic", "Noto Sans Arabic", Tahoma, system-ui, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    line-height: 1.75;
  }

  button, input, select, textarea {
    font: inherit;
  }

  button, a {
    -webkit-tap-highlight-color: transparent;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  [dir="rtl"] :not([dir="ltr"]):not(kbd):not(.protected-number) {
    letter-spacing: normal;
  }

  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .sidebar :focus-visible, .module-hero :focus-visible, .login-showcase :focus-visible {
    outline-color: var(--yellow);
  }

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

  .locale-root {
    min-height: 100vh;
  }

  .app-shell {
    background: var(--canvas);
    min-height: 100vh;
  }

  .sidebar {
    z-index: 40;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: #d9e3e9;
    border-inline-end: 1px solid var(--sidebar-line);
    flex-direction: column;
    transition: width .24s, transform .24s;
    display: flex;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
  }

  .workspace {
    min-height: 100vh;
    margin-inline-start: var(--sidebar-width);
    transition: margin .24s;
  }

  .is-collapsed .sidebar {
    width: var(--sidebar-collapsed);
  }

  .is-collapsed .workspace {
    margin-inline-start: var(--sidebar-collapsed);
  }

  .app-shell.has-hub-rail {
    padding-left: 48px;
  }

  .locale-root[dir="ltr"] .has-hub-rail .sidebar {
    left: 48px;
  }

  .has-hub-rail .sidebar {
    z-index: 39;
  }

  @media (max-width: 820px) {
    .has-hub-rail .header-tools-panel {
      left: 62px;
    }
  }

  .sidebar-head {
    border-bottom: 1px solid #ffffff12;
    justify-content: space-between;
    align-items: center;
    height: 74px;
    padding: 0 18px;
    display: flex;
  }

  .brand {
    align-items: center;
    gap: 11px;
    min-width: 0;
    display: flex;
  }

  .brand-mark {
    background: #fff;
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    display: grid;
    overflow: hidden;
    box-shadow: 0 6px 20px #0000002e;
  }

  .brand-copy {
    flex-direction: column;
    line-height: 1.05;
    display: flex;
  }

  .brand-copy strong {
    color: #fff;
    letter-spacing: -.4px;
    font-size: 20px;
  }

  .brand-copy small {
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 5px;
    font-size: 12px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .icon-btn:hover {
    background: #ffffff14;
  }

  .company-switcher {
    border: 1px solid var(--sidebar-line);
    background: #ffffff0a;
    border-radius: 10px;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    margin: 10px 12px 2px;
    padding: 7px 9px;
    display: flex;
  }

  .company-avatar {
    background: var(--yellow);
    width: 30px;
    height: 30px;
    color: var(--navy-950);
    border-radius: 8px;
    flex: none;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    display: grid;
  }

  .company-details {
    flex-direction: column;
    flex: 1;
    min-width: 0;
    display: flex;
  }

  .company-details strong {
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    overflow: hidden;
  }

  .company-details small {
    color: #93a9b6;
    margin-top: 1px;
    font-size: 12px;
  }

  .nav-label {
    color: #93a9b6;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin: 0;
    padding: 5px 25px;
    font-size: 12px;
    font-weight: 700;
  }

  .main-nav {
    scrollbar-width: thin;
    scrollbar-color: #2b4c66 transparent;
    flex: 1;
    padding: 8px 10px 14px;
    overflow-y: auto;
  }

  .nav-group {
    margin-bottom: 0;
  }

  .nav-group-trigger {
    width: 100%;
    min-height: 26px;
    color: var(--sidebar-label);
    cursor: pointer;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-align: start;
    background: none;
    border: 0;
    border-radius: 8px;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
  }

  .nav-group:first-child > .nav-group-trigger {
    margin-top: 2px;
  }

  .nav-group-trigger > svg:first-child {
    display: none;
  }

  .nav-group-trigger:hover {
    color: #cfdde5;
    background: none;
  }

  .nav-group.has-active > .nav-group-trigger {
    color: #a8c0cf;
    background: none;
  }

  .nav-group-trigger span {
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    overflow: hidden;
  }

  .nav-group-trigger svg:last-child {
    opacity: .55;
    transition: transform .2s, opacity .15s;
  }

  .nav-group-trigger:hover svg:last-child {
    opacity: 1;
  }

  .nav-group-trigger svg:last-child.is-open {
    transform: rotate(-90deg);
  }

  [dir="ltr"] .nav-group-trigger svg:last-child.is-open {
    transform: rotate(90deg);
  }

  .nav-group-items {
    opacity: 0;
    max-height: 0;
    transition: max-height .24s, opacity .18s;
    overflow: hidden;
  }

  .nav-group-items.is-open {
    opacity: 1;
    max-height: 320px;
  }

  .main-nav a {
    min-height: 36px;
    color: var(--sidebar-item);
    border-radius: 8px;
    align-items: center;
    gap: 10px;
    margin: 1px 0;
    padding: 7px 11px;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
    display: flex;
  }

  .main-nav a svg {
    opacity: .9;
    flex: none;
  }

  .main-nav a:hover {
    color: #fff;
    background: #ffffff0d;
  }

  .main-nav a.active {
    color: #fff;
    box-shadow: inset 3px 0 0 var(--yellow);
    background: #ffffff17;
    font-weight: 600;
  }

  .locale-root[dir="rtl"] .main-nav a.active {
    box-shadow: inset -3px 0 0 var(--yellow);
  }

  .main-nav a.active svg {
    color: var(--yellow);
    opacity: 1;
  }

  .main-nav span {
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
    overflow: hidden;
  }

  .nav-count {
    background: var(--yellow);
    min-width: 24px;
    color: var(--navy-950);
    text-align: center;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
  }

  .nav-count.is-alert {
    background: var(--red, #c0392b);
    color: #fff;
    flex: none;
  }

  .sidebar :focus-visible {
    outline-offset: -2px;
  }

  .is-collapsed .nav-group-trigger, .is-collapsed .main-nav a {
    justify-content: center;
    margin-inline: 0;
    padding-inline: 0;
  }

  .is-collapsed .nav-group-trigger {
    min-height: 32px;
    margin-top: 8px;
  }

  .is-collapsed .nav-group-trigger > svg:first-child {
    opacity: .85;
    width: 16px;
    height: 16px;
    display: block;
  }

  .is-collapsed .nav-group.has-active > .nav-group-trigger > svg:first-child {
    color: var(--yellow);
    opacity: 1;
  }

  .is-collapsed .nav-group-items {
    opacity: 1;
    border-inline-start: 0;
    max-height: 320px;
    margin-inline: 0;
  }

  .is-collapsed .nav-group-trigger {
    color: #93a9b6;
    letter-spacing: normal;
  }

  .sidebar-footer {
    border-top: 1px solid var(--sidebar-line);
    padding: 8px 12px 12px;
  }

  .plan-card {
    min-height: 42px;
    color: var(--yellow);
    background: #fed12c12;
    border-radius: 10px;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    display: flex;
  }

  .plan-card span {
    flex-direction: column;
    display: flex;
  }

  .plan-card strong {
    color: #fff;
    font-size: 12px;
  }

  .plan-card small {
    color: #93a9b6;
    margin-top: 1px;
    font-size: 11px;
  }

  .powered-by {
    color: #93a9b6;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    font-size: 11px;
    display: flex;
  }

  .powered-by img {
    filter: brightness(0) invert();
    opacity: .75;
  }

  .topbar {
    z-index: 30;
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    background: #ffffffeb;
    justify-content: space-between;
    align-items: center;
    height: 74px;
    padding: 0 28px;
    display: flex;
    position: sticky;
    top: 0;
  }

  .global-search-wrap {
    width: min(500px, 44vw);
    position: relative;
  }

  .global-search {
    background: var(--canvas);
    width: 100%;
    height: 42px;
    color: var(--text-3);
    border: 1px solid #0000;
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    display: flex;
  }

  .global-search:focus-within {
    background: #fff;
    border-color: #9bb5c8;
    box-shadow: 0 0 0 3px #194a6a17;
  }

  .global-search input {
    width: 0;
    color: var(--ink);
    background: none;
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 14px;
  }

  .global-search kbd {
    color: var(--text-3);
    direction: ltr;
    background: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 12px;
  }

  .global-search-clear {
    width: 22px;
    height: 22px;
    color: var(--text-3);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 6px;
    place-items: center;
    padding: 0;
    display: grid;
  }

  .global-search-clear:hover {
    color: var(--navy-950);
    background: #e4e9ee;
  }

  .global-search-panel {
    top: calc(100% + 8px);
    z-index: 60;
    border: 1px solid var(--line);
    width: 100%;
    max-height: min(460px, 100vh - 110px);
    box-shadow: var(--shadow-md);
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    position: absolute;
    inset-inline-start: 0;
    overflow-y: auto;
  }

  .global-search-note {
    color: var(--text-3);
    text-align: center;
    margin: 0;
    padding: 14px 12px;
    font-size: 13px;
  }

  .global-search-note.is-error {
    color: #a62e2e;
  }

  .global-search-group + .global-search-group {
    border-top: 1px solid var(--line);
    margin-top: 2px;
    padding-top: 6px;
  }

  .global-search-group h4 {
    color: var(--text-3);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
    padding: 7px 12px 5px;
    font-size: 11px;
    font-weight: 700;
  }

  .global-search-result {
    color: var(--text-2);
    border-radius: 9px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    display: flex;
  }

  .global-search-result > svg {
    color: var(--text-3);
    flex: none;
  }

  .global-search-result span {
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    display: flex;
  }

  .global-search-result strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
  }

  .global-search-result small {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .global-search-result.is-highlighted, .global-search-result:hover {
    background: var(--canvas);
  }

  .global-search-result.is-highlighted > svg {
    color: var(--navy-900);
  }

  .topbar-actions {
    color: var(--text-2);
    align-items: center;
    gap: 4px;
    display: flex;
  }

  .topbar .icon-btn:hover {
    background: #f0f3f5;
  }

  .language-btn {
    border: 1px solid var(--line);
    min-width: 42px;
    height: 36px;
    color: var(--navy-900);
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
  }

  .notification-btn {
    position: relative;
  }

  .notification-btn span {
    top: 8px;
    background: var(--red);
    border: 1.5px solid #fff;
    border-radius: 50%;
    width: 7px;
    height: 7px;
    position: absolute;
    inset-inline-end: 9px;
  }

  .profile-wrap {
    position: relative;
  }

  .profile-button {
    color: var(--ink);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 12px;
    align-items: center;
    gap: 9px;
    margin-inline-start: 9px;
    padding: 4px 6px;
    display: flex;
  }

  .profile-button:hover {
    background: #f3f5f6;
  }

  .profile-button > svg:last-child {
    transition: transform .18s;
  }

  .profile-button > svg:last-child.is-open {
    transform: rotate(180deg);
  }

  .profile-menu {
    top: calc(100% + 8px);
    z-index: 60;
    border: 1px solid var(--line);
    min-width: 224px;
    box-shadow: var(--shadow-md);
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    position: absolute;
    inset-inline-end: 0;
  }

  .profile-menu-head {
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
    padding: 9px 12px 10px;
    display: flex;
  }

  .profile-menu-head strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .profile-menu-head small {
    color: var(--text-3);
    font-size: 12px;
  }

  .profile-menu a, .profile-menu button {
    width: 100%;
    min-height: 38px;
    color: var(--text-2);
    cursor: pointer;
    text-align: start;
    background: none;
    border: 0;
    border-radius: 8px;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .profile-menu a:hover, .profile-menu button:hover {
    background: var(--canvas);
    color: var(--navy-950);
  }

  .profile-menu .menu-danger {
    color: #a62e2e;
  }

  .profile-menu .menu-danger:hover {
    background: var(--red-soft);
    color: #8d2424;
  }

  .profile-menu button:disabled {
    opacity: .6;
    cursor: default;
  }

  .profile-avatar {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    border-radius: 12px;
    place-items: center;
    width: 36px;
    height: 36px;
    font-size: 13px;
    font-weight: 700;
    display: grid;
  }

  .profile-copy {
    text-align: start;
    flex-direction: column;
    display: flex;
  }

  .profile-copy strong {
    font-size: 14px;
  }

  .profile-copy small {
    color: var(--text-3);
    margin-top: 3px;
    font-size: 12px;
  }

  .mobile-menu, .mobile-close {
    display: none;
  }

  .page-container {
    max-width: 1760px;
    padding: calc(32px * var(--density-space)) 32px;
    margin: 0 auto;
  }

  .page-head {
    margin-bottom: calc(23px * var(--density-space));
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    display: flex;
  }

  .page-head > :first-child {
    min-width: 0;
  }

  .page-head h1 {
    color: var(--navy-950);
    letter-spacing: -.6px;
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
  }

  .page-head h1:before {
    content: "";
    width: 26px;
    height: 4px;
    margin-bottom: calc(12px * var(--density-space));
    background: var(--yellow);
    border-radius: 99px;
    display: block;
  }

  .page-head p {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.75;
  }

  .page-actions {
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    display: flex;
  }

  .btn {
    min-height: calc(42px * var(--density-control));
    border: 1px solid var(--line);
    color: var(--ink);
    white-space: nowrap;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    box-shadow: 0 1px 1px #00000005;
  }

  .btn > svg {
    flex: none;
  }

  .btn:hover {
    background: #fafbfb;
    border-color: #cbd4da;
  }

  .btn-primary {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: #fff;
  }

  .btn-primary:hover {
    background: var(--navy-800);
    border-color: var(--navy-800);
  }

  .btn-yellow, .btn-yellow:hover {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--navy-950);
  }

  .btn:active:not(:disabled) {
    filter: brightness(.94);
  }

  .btn-sm {
    min-height: calc(35px * var(--density-control));
    padding-inline: 12px;
    font-size: 13px;
  }

  .card {
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
  }

  .card-head {
    min-height: calc(60px * var(--density-row));
    padding: calc(15px * var(--density-space)) 18px;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .card-head h2, .card-head h3 {
    color: var(--navy-950);
    margin: 0;
    font-size: 16px;
  }

  .card-head p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 13px;
  }

  .card-head-actions {
    flex-wrap: wrap;
    flex: none;
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .text-link {
    color: var(--navy-700);
    cursor: pointer;
    background: none;
    border: 0;
    font-size: 13px;
    font-weight: 700;
  }

  .badge {
    white-space: nowrap;
    border-radius: 999px;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .badge-green {
    color: #087451;
    background: var(--green-soft);
  }

  .badge-red {
    color: #b62f2f;
    background: var(--red-soft);
  }

  .badge-amber {
    color: #a86a08;
    background: var(--amber-soft);
  }

  .badge-blue {
    color: #245f95;
    background: var(--blue-soft);
  }

  .badge-gray {
    color: var(--text-2);
    background: #eef1f3;
  }

  .badge-action {
    font: inherit;
    cursor: pointer;
    border: 1px solid #0000;
    font-size: 12px;
    font-weight: 700;
  }

  .badge-action:hover {
    border-color: currentColor;
  }

  .badge-action:focus-visible {
    outline: 2px solid var(--navy-700);
    outline-offset: 2px;
  }

  .stats-grid {
    gap: calc(14px * var(--density-space));
    margin-bottom: calc(18px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .stat-card {
    padding: calc(18px * var(--density-space)) 18px;
    position: relative;
    overflow: hidden;
  }

  .stat-top {
    color: var(--muted);
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    display: flex;
  }

  .stat-icon {
    border-radius: 10px;
    place-items: center;
    width: 36px;
    height: 36px;
    display: grid;
  }

  .stat-icon.blue {
    color: var(--blue);
    background: var(--blue-soft);
  }

  .stat-icon.green {
    color: var(--green);
    background: var(--green-soft);
  }

  .stat-icon.amber {
    color: var(--amber);
    background: var(--amber-soft);
  }

  .stat-icon.purple {
    color: var(--purple);
    background: var(--purple-soft);
  }

  .stat-value {
    margin-top: calc(12px * var(--density-space));
    align-items: flex-end;
    gap: 8px;
    display: flex;
  }

  .stat-value strong {
    color: var(--navy-950);
    font-size: 30px;
    line-height: 1;
  }

  .stat-value small {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
  }

  .stat-foot {
    color: var(--text-3);
    margin-top: 10px;
    font-size: 13px;
  }

  .alerts-panel {
    margin-bottom: calc(18px * var(--density-space));
    border-color: #f0d7d3;
  }

  .alerts-title {
    align-items: center;
    gap: 9px;
    display: flex;
  }

  .alerts-title > span {
    width: 34px;
    height: 34px;
    color: var(--red);
    background: var(--red-soft);
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .alert-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    display: grid;
  }

  .alert-item {
    min-height: calc(130px * var(--density-row));
    padding: calc(18px * var(--density-space)) 18px;
    border-inline-end: 1px solid var(--line);
    flex-direction: column;
    gap: 10px;
    display: flex;
    position: relative;
  }

  .alert-item:last-child {
    border-inline-end: 0;
  }

  .alert-meta {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .alert-item h3 {
    color: var(--navy-950);
    margin: 0;
    font-size: 15px;
  }

  .alert-item p {
    color: var(--muted);
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .alert-action {
    color: var(--navy-700);
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    display: flex;
  }

  .alert-count {
    color: #fff;
    background: var(--red);
    border-radius: 8px;
    place-items: center;
    width: 27px;
    height: 27px;
    font-size: 12px;
    display: grid;
  }

  .severity-high .alert-count {
    background: var(--amber);
  }

  .severity-medium .alert-count {
    background: var(--blue);
  }

  .dashboard-grid {
    gap: calc(18px * var(--density-space));
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, .85fr);
    display: grid;
  }

  .chart-area {
    --axis-label-gap: 9px;
    --axis-label-height: 16px;
    padding: 16px 18px 20px;
  }

  .chart-legend {
    color: var(--muted);
    align-items: center;
    gap: 14px;
    margin-bottom: 17px;
    font-size: 13px;
    display: flex;
  }

  .legend-dot {
    border-radius: 50%;
    width: 7px;
    height: 7px;
    margin-inline-end: 5px;
    display: inline-block;
  }

  .bar-chart {
    height: 218px;
    margin-bottom: calc(var(--axis-label-gap) + var(--axis-label-height));
    border-bottom: 1px solid var(--line);
    background: repeating-linear-gradient(to top, #0000 0 53px, #eef1f3 54px);
    justify-content: space-around;
    align-items: flex-end;
    gap: 12px;
    padding-top: 20px;
    display: flex;
  }

  .bar-group {
    flex: 1;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    height: 100%;
    display: flex;
    position: relative;
  }

  .bar {
    border-radius: 5px 5px 0 0;
    width: min(20px, 35%);
    min-height: 6px;
    transition: height .3s;
  }

  .bar.present {
    background: var(--navy-700);
  }

  .bar.late {
    background: var(--yellow);
  }

  .bar-group .bar-day {
    top: calc(100% + var(--axis-label-gap));
    font-size: 12px;
    line-height: var(--axis-label-height);
    color: var(--text-3);
    white-space: nowrap;
    position: absolute;
  }

  .donut-layout {
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 24px 18px;
    display: flex;
  }

  .donut {
    background: conic-gradient(var(--green) 0 72%, var(--amber) 72% 84%, var(--red) 84% 91%, #e5eaee 91%);
    border-radius: 50%;
    width: 145px;
    height: 145px;
    position: relative;
  }

  .donut:after {
    content: "";
    background: #fff;
    border-radius: 50%;
    position: absolute;
    inset: 23px;
  }

  .donut-center {
    z-index: 1;
    text-align: center;
    place-content: center;
    display: grid;
    position: absolute;
    inset: 0;
  }

  .donut-center strong {
    color: var(--navy-950);
    font-size: 23px;
  }

  .donut-center small {
    color: var(--muted);
    font-size: 12px;
  }

  .metric-list {
    flex-direction: column;
    gap: 12px;
    display: flex;
  }

  .metric-row {
    color: var(--muted);
    grid-template-columns: 9px 1fr auto;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    display: grid;
  }

  .metric-row b {
    color: var(--ink);
  }

  .chart-peek-anchor {
    position: relative;
  }

  .chart-peek-trigger {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 8px;
    margin: 0;
    padding: 0;
  }

  .chart-peek-trigger:focus-visible {
    outline: 2px solid var(--navy-700);
    outline-offset: 3px;
  }

  .bar-peek {
    flex: 1;
    height: 100%;
    display: flex;
  }

  .bar-peek > .chart-peek-trigger {
    border-radius: 6px 6px 0 0;
    flex: 1;
    height: 100%;
    display: flex;
  }

  .bar-peek:hover .bar, .bar-peek:focus-within .bar {
    filter: brightness(.92);
  }

  .metric-list > .chart-peek-anchor > .chart-peek-trigger {
    display: block;
  }

  .metric-list > .chart-peek-anchor:hover .metric-row span, .metric-list > .chart-peek-anchor:focus-within .metric-row span {
    color: var(--ink);
  }

  .chart-peek {
    z-index: 40;
    border: 1px solid var(--line);
    background: var(--card);
    width: max-content;
    min-width: 150px;
    max-width: min(230px, 100vw - 48px);
    box-shadow: var(--shadow-md);
    color: var(--ink);
    text-align: start;
    border-radius: 12px;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.35;
    display: flex;
    position: absolute;
  }

  .chart-peek-over {
    top: 0;
  }

  .chart-peek-below {
    top: 100%;
  }

  .chart-peek-start {
    inset-inline-start: 0;
  }

  .chart-peek-end {
    inset-inline-end: 0;
  }

  .chart-peek-center {
    left: 50%;
    transform: translateX(-50%);
  }

  .chart-peek-title {
    color: var(--navy-950);
    font-weight: 700;
  }

  .chart-peek-row {
    color: var(--muted);
    grid-template-columns: 9px 1fr auto;
    align-items: center;
    gap: 7px;
    display: grid;
  }

  .chart-peek-row b {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
  }

  .chart-peek-row.chart-peek-title {
    color: var(--navy-950);
  }

  .chart-peek-people {
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 3px;
    margin: 2px 0 0;
    padding: 6px 0 0;
    list-style: none;
    display: flex;
  }

  .chart-peek-people li {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .chart-peek-more {
    color: var(--muted);
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
  }

  a.chart-peek-more {
    color: #245f95;
    text-decoration: none;
  }

  a.chart-peek-more:hover {
    text-decoration: underline;
  }

  .activity-list {
    padding: 8px 18px 12px;
  }

  .activity-item {
    padding: calc(13px * var(--density-space)) 0;
    border-bottom: 1px solid #eef1f2;
    gap: 11px;
    display: flex;
  }

  .activity-item:last-child {
    border-bottom: 0;
  }

  .activity-dot {
    background: var(--blue);
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 4px var(--blue-soft);
    border-radius: 50%;
    margin-top: 5px;
  }

  .activity-dot.green {
    background: var(--green);
    box-shadow: 0 0 0 4px var(--green-soft);
  }

  .activity-dot.amber {
    background: var(--amber);
    box-shadow: 0 0 0 4px var(--amber-soft);
  }

  .activity-dot.purple {
    background: var(--purple);
    box-shadow: 0 0 0 4px var(--purple-soft);
  }

  .activity-copy {
    flex-direction: column;
    flex: 1;
    display: flex;
  }

  .activity-copy strong {
    font-size: 14px;
  }

  .activity-copy span {
    color: var(--muted);
    margin-top: 3px;
    font-size: 13px;
  }

  .activity-copy time {
    color: var(--text-3);
    margin-top: 5px;
    font-size: 12px;
  }

  .toolbar {
    padding: calc(12px * var(--density-space)) 16px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    gap: 9px;
    display: flex;
  }

  .toolbar-search, .search-box {
    min-width: 270px;
    max-width: 430px;
    height: calc(38px * var(--density-control));
    border: 1px solid var(--line);
    color: var(--text-3);
    background: #fff;
    border-radius: 10px;
    flex: 1;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    display: flex;
  }

  .toolbar-search input, .search-box input {
    background: none;
    border: 0;
    outline: 0;
    flex: 1;
    width: 0;
    font-size: 14px;
  }

  .toolbar-search:focus-within, .search-box:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px #1b4d6d26;
  }

  .select-field {
    height: calc(40px * var(--density-control));
    border: 1px solid var(--line);
    color: #4e5f6b;
    background: #fff;
    border-radius: 10px;
    outline: 0;
    min-width: 140px;
    padding: 0 11px;
    font-size: 14px;
  }

  .select-field:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .data-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
  }

  .data-table th {
    height: calc(46px * var(--density-row));
    text-align: start;
    color: var(--text-3);
    border-bottom: 1px solid var(--line);
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
    background: none;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
  }

  .data-table td {
    min-height: 60px;
    padding: calc(12px * var(--density-space)) 16px;
    line-height: var(--density-table-leading);
    vertical-align: middle;
    border-bottom: 1px solid #eef2f5;
  }

  .data-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .employee-cell {
    align-items: center;
    gap: 10px;
    min-width: 200px;
    display: flex;
  }

  .employee-avatar {
    width: 38px;
    height: 38px;
    color: var(--navy-700);
    background: #eaf0f4;
    border-radius: 12px;
    flex: none;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    display: grid;
  }

  .employee-cell span {
    flex-direction: column;
    display: flex;
  }

  .employee-cell strong {
    color: var(--navy-950);
    font-size: 14px;
  }

  .employee-cell small {
    color: var(--text-3);
    text-align: start;
    direction: ltr;
    margin-top: 4px;
    font-size: 13px;
  }

  .employee-cell .employee-name-alt {
    color: var(--text-2);
    font-weight: 600;
  }

  .employee-cell .employee-code {
    color: var(--text-3);
    letter-spacing: .25px;
    font-size: 12px;
  }

  .dual-value {
    color: var(--ink);
    flex-direction: column;
    font-weight: 600;
    display: flex;
  }

  .dual-value small {
    color: var(--text-3);
    margin-top: 3px;
    font-size: 13px;
    font-weight: 500;
  }

  .muted-cell {
    color: var(--muted);
  }

  .table-actions {
    justify-content: flex-end;
    gap: 4px;
    display: flex;
  }

  .table-actions button {
    width: 30px;
    height: 30px;
    color: var(--text-3);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 8px;
    place-items: center;
    display: grid;
  }

  .table-actions button:hover {
    color: var(--navy-700);
    background: #eff2f4;
  }

  .table-footer {
    min-height: calc(58px * var(--density-row));
    padding: calc(10px * var(--density-space)) 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    display: flex;
  }

  .pagination {
    direction: ltr;
    gap: 5px;
    display: flex;
  }

  .pagination button {
    border: 1px solid var(--line);
    width: 31px;
    height: 31px;
    color: var(--text-2);
    cursor: pointer;
    background: #fff;
    border-radius: 8px;
    font-size: 12px;
  }

  .pagination button.active {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: #fff;
  }

  .module-hero {
    background: linear-gradient(120deg,#0b2438,var(--sidebar-bg) 55%,#164a6b);
    color: #fff;
    min-height: 168px;
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    align-items: center;
    padding: 27px;
    display: flex;
    position: relative;
    overflow: hidden;
  }

  .module-hero:after {
    content: "";
    inset-inline-end: -70px;
    border: 55px solid #fed12c1a;
    border-radius: 50%;
    width: 260px;
    height: 260px;
    position: absolute;
    top: -110px;
  }

  .module-hero-icon {
    width: 58px;
    height: 58px;
    color: var(--navy-950);
    background: var(--yellow);
    border-radius: 16px;
    flex: none;
    place-items: center;
    margin-inline-end: 17px;
    display: grid;
  }

  .module-hero h1 {
    margin: 0;
    font-size: 30px;
  }

  .module-hero p {
    color: #c7d4dc;
    max-width: 760px;
    margin: 9px 0 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .module-hero-copy {
    z-index: 1;
    flex: 1;
    position: relative;
  }

  .module-eyebrow {
    color: var(--yellow);
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
  }

  .module-hero-action {
    z-index: 1;
    flex: none;
    margin-inline-start: 18px;
    position: relative;
  }

  .workspace-stats {
    gap: calc(14px * var(--density-space));
    margin-top: calc(18px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .workspace-stat {
    padding: calc(18px * var(--density-space)) 19px;
    flex-direction: column;
    display: flex;
  }

  .workspace-stat > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }

  .workspace-stat strong {
    color: var(--navy-950);
    margin-top: 8px;
    font-size: 27px;
    line-height: 1.15;
  }

  .workspace-stat small {
    color: var(--text-3);
    margin-top: 7px;
    font-size: 13px;
  }

  .module-grid {
    gap: calc(16px * var(--density-space));
    margin-top: calc(18px * var(--density-space));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
  }

  .module-card {
    padding: calc(20px * var(--density-space)) 20px;
  }

  .module-card-icon {
    width: 38px;
    height: 38px;
    color: var(--navy-700);
    background: var(--blue-soft);
    border-radius: 12px;
    place-items: center;
    display: grid;
  }

  .module-card h3 {
    margin: 14px 0 7px;
    font-size: 15px;
  }

  .module-card p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .action-grid {
    margin-top: 14px;
  }

  .action-card {
    border: 1px solid var(--line);
    text-align: start;
    cursor: pointer;
    width: 100%;
    color: var(--ink);
    grid-template-columns: auto 1fr;
    gap: 0 13px;
    display: grid;
  }

  .action-card:hover {
    border-color: #cbd6dd;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px #071d2c14;
  }

  .action-card > span:nth-child(2) {
    min-width: 0;
  }

  .action-card > b {
    color: var(--navy-700);
    grid-column: 2;
    align-items: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 13px;
    display: flex;
  }

  .operational-table {
    margin-top: 18px;
  }

  .bi-copy {
    flex-direction: column;
    min-width: 150px;
    display: flex;
  }

  .bi-copy strong {
    color: var(--navy-950);
    font-size: 14px;
  }

  .bi-copy small {
    color: var(--text-3);
    text-align: start;
    direction: ltr;
    margin-top: 4px;
    font-size: 13px;
  }

  .row-open {
    width: calc(34px * var(--density-control));
    height: calc(34px * var(--density-control));
    border: 1px solid var(--line);
    color: var(--navy-700);
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .row-open:hover {
    border-color: var(--navy-700);
    background: var(--blue-soft);
  }

  .progress-row {
    color: var(--muted);
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 12px;
    display: flex;
  }

  .progress {
    background: #edf0f2;
    border-radius: 99px;
    flex: 1;
    height: 6px;
    overflow: hidden;
  }

  .progress span {
    border-radius: inherit;
    background: var(--green);
    height: 100%;
    display: block;
  }

  .legal-note {
    margin-top: calc(18px * var(--density-space));
    padding: calc(15px * var(--density-space)) 17px;
    color: #685622;
    background: #fffbed;
    border: 1px solid #ecdba3;
    border-radius: 12px;
    gap: 10px;
    font-size: 13px;
    line-height: 1.75;
    display: flex;
  }

  .split-grid {
    gap: calc(16px * var(--density-space));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .summary-strip {
    border: 1px solid var(--line);
    background: var(--line);
    margin-bottom: calc(18px * var(--density-space));
    border-radius: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    display: grid;
    overflow: hidden;
  }

  .summary-item {
    padding: calc(17px * var(--density-space)) 17px;
    background: #fff;
  }

  .summary-item span {
    color: var(--muted);
    font-size: 13px;
  }

  .summary-item strong {
    color: var(--navy-950);
    margin-top: 8px;
    font-size: 21px;
    display: block;
  }

  .empty-state {
    min-height: calc(240px * var(--density-row));
    text-align: center;
    padding: calc(30px * var(--density-space)) 30px;
    place-content: center;
    justify-items: center;
    display: grid;
  }

  .empty-state-icon {
    background: var(--blue-soft);
    width: 52px;
    height: 52px;
    color: var(--navy-700);
    border-radius: 14px;
    place-items: center;
    display: grid;
  }

  .empty-state h3 {
    margin: 14px 0 6px;
  }

  .empty-state p {
    max-width: 460px;
    color: var(--muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
  }

  .sidebar-backdrop {
    display: none;
  }

  .login-page {
    background: #fff;
    grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr);
    min-height: 100vh;
    display: grid;
  }

  .login-showcase {
    color: #fff;
    background: linear-gradient(150deg,#0b2438,var(--sidebar-bg) 48%,#164a6b);
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 42px 54px;
    display: flex;
    position: relative;
    overflow: hidden;
  }

  .login-showcase:before {
    content: "";
    top: -210px;
    border: 95px solid #fed12c14;
    border-radius: 50%;
    width: 520px;
    height: 520px;
    position: absolute;
    inset-inline-start: -190px;
  }

  .login-showcase:after {
    content: "";
    bottom: -220px;
    border: 70px solid #ffffff09;
    border-radius: 50%;
    width: 360px;
    height: 360px;
    position: absolute;
    inset-inline-end: -90px;
  }

  .login-brand {
    z-index: 1;
    align-items: center;
    gap: 12px;
    display: flex;
    position: relative;
  }

  .login-brand > span:last-child {
    flex-direction: column;
    display: flex;
  }

  .login-brand strong {
    font-size: 22px;
  }

  .login-brand small {
    color: var(--yellow);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
    font-size: 12px;
  }

  .showcase-copy {
    z-index: 1;
    max-width: 530px;
    position: relative;
  }

  .showcase-badge {
    width: max-content;
    color: var(--yellow);
    background: #fed12c12;
    border: 1px solid #fed12c38;
    border-radius: 999px;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
  }

  .showcase-copy h1 {
    letter-spacing: -1.6px;
    margin: 22px 0 16px;
    font-size: 46px;
    line-height: 1.28;
  }

  .showcase-copy h1 em {
    color: var(--yellow);
    font-style: normal;
  }

  .showcase-copy > p {
    color: #b8c8d2;
    max-width: 480px;
    margin: 0;
    font-size: 14px;
    line-height: 1.95;
  }

  .showcase-metrics {
    border-top: 1px solid #ffffff1c;
    gap: 38px;
    margin-top: 42px;
    padding-top: 27px;
    display: flex;
  }

  .showcase-metrics span {
    flex-direction: column;
    display: flex;
  }

  .showcase-metrics strong {
    color: var(--yellow);
    font-size: 22px;
  }

  .showcase-metrics small {
    color: #9db1bd;
    margin-top: 5px;
    font-size: 12px;
  }

  .showcase-footer {
    z-index: 1;
    color: #93a9b6;
    text-align: start;
    direction: ltr;
    font-size: 11px;
    position: relative;
  }

  .login-form-panel {
    place-items: center;
    padding: 40px;
    display: grid;
    position: relative;
  }

  .login-lang {
    top: 22px;
    position: absolute;
    inset-inline-end: 26px;
  }

  .login-form-wrap {
    width: min(410px, 100%);
  }

  .login-form-wrap .eyebrow {
    color: var(--navy-700);
    font-size: 13px;
    font-weight: 700;
  }

  .login-form-wrap h2 {
    color: var(--navy-950);
    margin: 10px 0 8px;
    font-size: 27px;
  }

  .login-form-wrap > p {
    color: var(--muted);
    margin: 0 0 29px;
    font-size: 13px;
  }

  .login-form-wrap form > label {
    color: #344754;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    display: block;
  }

  .input-shell {
    height: 48px;
    color: var(--text-3);
    border: 1px solid #dce3e7;
    border-radius: 12px;
    align-items: center;
    gap: 9px;
    margin-top: 7px;
    padding: 0 13px;
    display: flex;
  }

  .input-affix {
    width: 30px;
    height: 30px;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 8px;
    place-items: center;
    margin-inline-end: -6px;
    padding: 0;
    display: grid;
  }

  .input-affix:hover {
    color: var(--navy-700);
    background: var(--canvas);
  }

  .input-shell:focus-within {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .input-shell input {
    width: 0;
    color: var(--ink);
    text-align: left;
    direction: ltr;
    background: none;
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 14px;
  }

  .login-options {
    color: var(--muted);
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    display: flex;
  }

  .login-options a {
    color: var(--navy-700);
    font-weight: 700;
  }

  .check-row {
    align-items: center;
    gap: 7px;
    display: flex;
  }

  .login-error {
    color: #a52d2d;
    background: var(--red-soft);
    border-radius: 10px;
    margin-top: 15px;
    padding: 10px;
    font-size: 13px;
  }

  .login-notice {
    color: var(--text-2);
    background: #f3f8fa;
    border: 1px solid #cfe0e8;
    border-radius: 10px;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 22px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.55;
    display: flex;
  }

  .login-notice svg {
    color: #245f95;
    flex: none;
    margin-top: 1px;
  }

  .login-notice.is-expired {
    color: #7a5313;
    background: #fdf7ec;
    border-color: #e8d3ae;
  }

  .login-notice.is-expired svg {
    color: #a97612;
  }

  .login-submit {
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 22px;
    font-size: 14px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 8px 22px #fed12c47;
  }

  .login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px #fed12c5c;
  }

  .security-note {
    border-top: 1px solid var(--line);
    color: var(--text-3);
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding-top: 18px;
    font-size: 12px;
    display: flex;
  }

  .mobile-login-brand {
    display: none;
  }

  .btn:disabled, .pagination button:disabled {
    opacity: .48;
    cursor: not-allowed;
  }

  .spin {
    animation: .9s linear infinite spin;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .table-state {
    min-height: calc(118px * var(--density-row));
    color: var(--muted);
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    display: flex;
  }

  .inline-error {
    color: #a72f2f;
    background: var(--red-soft);
    border: 1px solid #f1c9c9;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 14px 16px;
    padding: 12px 14px;
    font-size: 13px;
    display: flex;
  }

  .session-expired-overlay {
    z-index: 120;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: #02111bb8;
    place-items: center;
    padding: 24px;
    display: grid;
    position: fixed;
    inset: 0;
  }

  .session-expired-card {
    text-align: center;
    background: #fff;
    border-radius: 16px;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: min(380px, 100%);
    padding: 26px 24px;
    display: flex;
    box-shadow: 0 28px 80px #010f1852;
  }

  .session-expired-mark {
    color: #a97612;
    background: #fdf3e3;
    border-radius: 14px;
    place-items: center;
    width: 46px;
    height: 46px;
    display: grid;
  }

  .session-expired-card strong {
    color: var(--navy-950);
    font-size: 18px;
  }

  .session-expired-card p {
    color: var(--muted);
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .session-expired-progress {
    color: var(--navy-700);
    margin-top: 5px;
  }

  .modal-backdrop {
    z-index: 70;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background: #02111ba1;
    place-items: center;
    padding: 24px;
    display: grid;
    position: fixed;
    inset: 0;
  }

  .modal-card {
    background: #fff;
    border: 1px solid #ffffff29;
    border-radius: 16px;
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 28px 80px #010f1847;
  }

  .modal-shell, .settings-role-modal, .settings-user-modal {
    flex-direction: column;
    display: flex;
    overflow: hidden;
  }

  .modal-shell > .modal-head {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex: none;
    position: static;
  }

  .modal-card.modal-shell > form {
    flex-direction: column;
    flex: auto;
    min-height: 0;
    padding: 0;
    display: flex;
  }

  .modal-body {
    overscroll-behavior: contain;
    flex: auto;
    min-height: 0;
    padding: 2px 24px 8px;
    overflow-y: auto;
  }

  .modal-body > .inline-error:first-child {
    margin: 14px 0 0;
  }

  .modal-shell .modal-actions {
    flex: none;
    margin: 0;
    position: static;
  }

  .modal-head {
    z-index: 2;
    padding: calc(22px * var(--density-space)) 24px calc(18px * var(--density-space));
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: #fffffff7;
    justify-content: space-between;
    gap: 20px;
    display: flex;
    position: sticky;
    top: 0;
  }

  .modal-head .eyebrow {
    color: var(--navy-700);
    text-transform: uppercase;
    letter-spacing: .4px;
    font-size: 12px;
    font-weight: 700;
  }

  .modal-head h2 {
    color: var(--navy-950);
    margin: 5px 0;
    font-size: 22px;
  }

  .modal-head p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .icon-button {
    width: calc(38px * var(--density-control));
    height: calc(38px * var(--density-control));
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    flex: none;
    place-items: center;
    display: grid;
  }

  .modal-loading {
    min-height: 280px;
    color: var(--muted);
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .employee-modal form {
    padding: 2px 24px 24px;
  }

  .form-section {
    padding: calc(20px * var(--density-space)) 0 4px;
    border-bottom: 1px solid #edf0f2;
  }

  .form-section:last-of-type {
    border-bottom: 0;
  }

  .form-section:first-of-type {
    padding-top: 14px;
  }

  .form-section h3 {
    color: var(--navy-950);
    letter-spacing: .2px;
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
  }

  .form-section-note {
    color: var(--muted);
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.6;
  }

  .form-section h3 + .form-grid {
    margin-top: 13px;
  }

  .form-field .is-invalid, .form-field .is-invalid:focus {
    border-color: #d38b8b;
    box-shadow: 0 0 0 3px #9a29291a;
  }

  .form-grid {
    gap: calc(14px * var(--density-space));
    padding-top: calc(20px * var(--density-space));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .form-section .form-grid {
    padding-top: 0;
  }

  .form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .form-field {
    gap: calc(7px * var(--density-space));
    color: #445864;
    flex-direction: column;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .form-field input, .form-field select {
    width: 100%;
    height: calc(42px * var(--density-control));
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    outline: 0;
    padding: 0 11px;
    font-weight: 500;
  }

  .form-field input:focus, .form-field select:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .field-readonly {
    width: 100%;
    height: calc(42px * var(--density-control));
    color: var(--navy-950);
    font: inherit;
    background: #f4f6f8;
    border-radius: 10px;
    align-items: center;
    padding: 0 11px;
    font-weight: 700;
    display: flex;
  }

  .field-note {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
  }

  .modal-actions {
    margin: calc(22px * var(--density-space)) -24px -24px;
    padding: calc(16px * var(--density-space)) 24px;
    border-top: 1px solid var(--line);
    background: #fff;
    justify-content: flex-end;
    gap: 9px;
    display: flex;
    position: sticky;
    bottom: -24px;
  }

  .danger-ghost, .danger-ghost:hover {
    color: #a62e2e;
    background: #fff8f8;
    border-color: #efcece;
  }

  .page-loading, .empty-profile {
    min-height: calc(420px * var(--density-row));
    text-align: center;
    color: var(--navy-950);
    place-content: center;
    justify-items: center;
    gap: 9px;
    display: grid;
  }

  .page-loading small, .empty-profile p {
    color: var(--muted);
  }

  .profile-breadcrumb {
    color: var(--text-3);
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    display: flex;
  }

  .profile-breadcrumb a {
    color: var(--navy-700);
    align-items: center;
    gap: 5px;
    font-weight: 700;
    display: flex;
  }

  .employee-profile-hero {
    padding: calc(23px * var(--density-space)) 25px;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, #fff, #f7fafb);
    border: 1px solid #dbe4e9;
    border-radius: 16px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    display: flex;
  }

  .profile-identity {
    align-items: center;
    gap: 16px;
    min-width: 0;
    display: flex;
  }

  .profile-identity .profile-avatar {
    width: 68px;
    height: 68px;
    color: var(--yellow);
    background: linear-gradient(145deg,var(--navy-950),var(--navy-700));
    border-radius: 16px;
    flex: none;
    place-items: center;
    font-size: 19px;
    font-weight: 700;
    display: grid;
  }

  .profile-name-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .profile-name-row h1 {
    color: var(--navy-950);
    margin: 0;
    font-size: 27px;
  }

  .profile-alt-name {
    color: var(--text-2);
    text-align: start;
    direction: ltr;
    margin: 4px 0 9px;
    font-size: 14px;
    font-weight: 600;
  }

  .profile-meta {
    color: var(--muted);
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    display: flex;
  }

  .profile-meta span {
    align-items: center;
    gap: 5px;
    display: flex;
  }

  .profile-actions {
    flex: none;
    gap: 8px;
    display: flex;
  }

  .profile-kpis {
    gap: calc(14px * var(--density-space));
    margin: calc(17px * var(--density-space)) 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .profile-kpi {
    min-height: calc(105px * var(--density-row));
    padding: calc(17px * var(--density-space)) 17px;
    align-items: flex-start;
    gap: 12px;
    display: flex;
  }

  .profile-kpi-icon {
    width: 38px;
    height: 38px;
    color: var(--navy-700);
    background: var(--blue-soft);
    border-radius: 12px;
    flex: none;
    place-items: center;
    display: grid;
  }

  .profile-kpi-icon svg {
    width: 18px;
  }

  .profile-kpi div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .profile-kpi div > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .profile-kpi strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 6px;
    font-size: 15px;
    overflow: hidden;
  }

  .profile-kpi small {
    color: var(--text-3);
    margin-top: 5px;
    font-size: 12px;
  }

  .profile-kpi .salary-kpi-value {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .salary-kpi-toggle {
    width: 26px;
    height: 26px;
    color: var(--muted);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 8px;
    place-items: center;
    padding: 0;
    display: grid;
  }

  .salary-kpi-toggle:hover {
    color: var(--navy-700);
    background: var(--blue-soft);
  }

  .salary-hidden {
    gap: 12px;
  }

  .salary-hidden span {
    align-items: center;
    gap: 8px;
    display: inline-flex;
  }

  .profile-tabs {
    margin-bottom: calc(16px * var(--density-space));
    background: none;
    border: 0;
    gap: 6px;
    padding: 2px;
    display: flex;
    overflow-x: auto;
  }

  .profile-tabs button {
    min-width: max-content;
    height: calc(38px * var(--density-control));
    color: var(--text-2);
    cursor: pointer;
    background: none;
    border: 1px solid #0000;
    border-radius: 10px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
  }

  .profile-tabs button:hover {
    color: var(--navy-950);
    background: #ffffffa6;
  }

  .profile-tabs button.active {
    color: var(--navy-950);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
    background: #fff;
  }

  .profile-tabs small {
    min-width: 20px;
    color: inherit;
    background: #82919a29;
    border-radius: 99px;
    padding: 2px 5px;
    font-size: 11px;
  }

  .profile-content-grid {
    gap: calc(16px * var(--density-space));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .info-card {
    padding: 0;
    overflow: hidden;
  }

  .info-card-title {
    min-height: calc(55px * var(--density-row));
    border-bottom: 1px solid var(--line);
    background: #fbfcfc;
    align-items: center;
    gap: 9px;
    padding: 0 17px;
    display: flex;
  }

  .info-card-title span {
    width: 31px;
    height: 31px;
    color: var(--navy-700);
    background: var(--blue-soft);
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .info-card-title svg {
    width: 16px;
  }

  .info-card-title h3 {
    color: var(--navy-950);
    margin: 0;
    font-size: 14px;
  }

  .info-rows {
    padding: calc(7px * var(--density-space)) 17px calc(12px * var(--density-space));
  }

  .info-row {
    min-height: calc(51px * var(--density-row));
    padding: calc(9px * var(--density-space)) 0;
    border-bottom: 1px solid #eef1f3;
    grid-template-columns: minmax(115px, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 3px 14px;
    display: grid;
  }

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

  .info-row > span {
    color: var(--muted);
    font-size: 12px;
  }

  .info-row strong {
    color: var(--ink);
    overflow-wrap: anywhere;
    font-size: 13px;
  }

  .info-row small {
    color: var(--text-3);
    grid-column: 2;
    font-size: 12px;
  }

  .info-group + .info-group {
    border-top: 1px solid var(--line);
  }

  .info-group > h4 {
    color: var(--text-2);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin: 0;
    padding: 13px 17px 0;
    font-size: 12px;
    font-weight: 700;
  }

  .info-group > h4 + .info-rows {
    padding-top: 4px;
  }

  .info-group .card-empty {
    min-height: 74px;
  }

  .card-empty {
    min-height: calc(105px * var(--density-row));
    padding: calc(20px * var(--density-space)) 20px;
    color: var(--muted);
    text-align: center;
    place-items: center;
    font-size: 13px;
    display: grid;
  }

  .profile-table-card {
    overflow: hidden;
  }

  .profile-table-card .employee-name-alt {
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
    display: block;
  }

  .leave-balance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    display: grid;
  }

  .leave-years {
    gap: calc(24px * var(--density-space));
    display: grid;
  }

  .leave-year-title {
    color: var(--navy-950);
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
  }

  .leave-year-title:after {
    content: "";
    background: var(--line);
    flex: 1;
    height: 1px;
  }

  .leave-year-calendar {
    margin-top: calc(14px * var(--density-space));
    padding: 18px 20px;
  }

  .leave-year-calendar > summary {
    cursor: pointer;
    color: var(--navy-950);
    align-items: center;
    gap: 10px;
    font-size: 14px;
    list-style: none;
    display: flex;
  }

  .leave-year-calendar > summary::-webkit-details-marker {
    display: none;
  }

  .leave-year-calendar[open] > summary {
    margin-bottom: 14px;
  }

  .leave-calendar-toggle {
    color: var(--muted);
    flex: none;
    margin-inline-start: auto;
    transition: transform .15s;
  }

  .leave-year-calendar[open] .leave-calendar-toggle {
    transform: rotate(180deg);
  }

  .leave-balance-note {
    color: var(--muted);
    margin: 10px 0 0;
    font-size: 12px;
  }

  .leave-requests-card > .card-head {
    align-items: center;
  }

  .breakdown-equation {
    background: var(--blue-soft);
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    display: flex;
  }

  .breakdown-equation span {
    text-align: center;
    gap: 2px;
    min-width: 64px;
    display: grid;
  }

  .breakdown-equation small {
    color: var(--muted);
    font-size: 11px;
  }

  .breakdown-equation b {
    color: var(--navy-950);
    font-size: 18px;
  }

  .breakdown-equation i {
    color: var(--muted);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
  }

  .breakdown-equation .is-result b {
    color: var(--navy-700);
    font-size: 22px;
  }

  .breakdown-asof {
    color: var(--muted);
    margin: 0;
    font-size: 12px;
  }

  .calculator-compare {
    border-radius: 8px;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .calculator-compare.is-match {
    color: #17663a;
    background: #e8f6ee;
  }

  .calculator-compare.is-mismatch {
    color: #9a3412;
    background: #fff1e6;
  }

  .lr-body {
    gap: 16px;
    margin-top: 14px;
    display: grid;
  }

  .lr-muted {
    color: var(--muted);
    margin: 12px 0 0;
    font-size: 13px;
  }

  .lr-status {
    border-radius: 10px;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
  }

  .lr-status > svg {
    flex: none;
    margin-top: 3px;
  }

  .lr-status.is-ok {
    color: #17663a;
    background: #e8f6ee;
  }

  .lr-status.has-issues {
    color: #7c2d12;
    background: #fff4ea;
  }

  .lr-status ul {
    gap: 4px;
    margin: 6px 0 0;
    padding-inline-start: 18px;
    display: grid;
  }

  .lr-stats {
    background: var(--blue-soft);
    border-radius: 12px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    display: flex;
  }

  .lr-stats > div {
    text-align: center;
    gap: 2px;
    min-width: 86px;
    display: grid;
  }

  .lr-stats small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .lr-stats b {
    color: var(--navy-950);
    font-size: 20px;
  }

  .lr-stats > i {
    color: var(--muted);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
  }

  .lr-stats .is-result {
    background: #fff;
    border-radius: 10px;
    padding: 6px 14px;
  }

  .lr-stats .is-result b {
    color: var(--navy-700);
    font-size: 24px;
  }

  .lr-stats em {
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    display: inline-flex;
  }

  .lr-stats em.is-match {
    color: #17663a;
  }

  .lr-stats em.is-mismatch {
    color: #9a3412;
  }

  .lr-years .data-table td, .lr-years .data-table th {
    text-align: center;
  }

  .lr-group {
    display: grid;
  }

  .lr-group h4 {
    color: var(--navy-950);
    border-bottom: 1px solid #e6edf0;
    margin: 0 0 4px;
    padding-bottom: 6px;
    font-size: 13px;
  }

  .lr-rule {
    border-bottom: 1px solid #f0f4f5;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
    padding: 9px 0;
    display: grid;
  }

  .lr-rule:last-child {
    border-bottom: 0;
  }

  .lr-rule-text {
    color: var(--muted);
    gap: 8px;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    display: flex;
  }

  .lr-rule-text span {
    height: 20px;
    color: var(--navy-700);
    background: #eef4f7;
    border-radius: 50%;
    flex: 0 0 20px;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    display: grid;
  }

  .lr-rule-fact {
    color: var(--navy-950);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
  }

  .lr-rule-fact p {
    margin: 0;
  }

  .lr-calculator {
    border: 1px solid #e6edf0;
    border-radius: 12px;
  }

  .lr-calculator > summary {
    cursor: pointer;
    color: var(--navy-700);
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
    display: flex;
  }

  .lr-calculator > summary::-webkit-details-marker {
    display: none;
  }

  .lr-calculator > summary .leave-calendar-toggle {
    margin-inline-start: auto;
  }

  .lr-calculator[open] > summary .leave-calendar-toggle {
    transform: rotate(180deg);
  }

  .lr-calculator .leave-calculator {
    box-shadow: none;
    border: 0;
  }

  @media (max-width: 760px) {
    .lr-rule {
      grid-template-columns: 1fr;
      gap: 4px;
    }

    .lr-stats {
      justify-content: center;
    }
  }

  .breakdown-section h3 {
    color: var(--navy-950);
    margin: 0 0 8px;
    font-size: 14px;
  }

  .breakdown-section p {
    color: var(--ink);
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .breakdown-list {
    gap: 4px;
    margin: 0;
    padding-inline-start: 18px;
    font-size: 13px;
    display: grid;
  }

  .breakdown-table {
    font-size: 12.5px;
  }

  .breakdown-table tr.is-muted td {
    color: var(--muted);
  }

  .breakdown-table tfoot th {
    text-align: start;
  }

  .breakdown-table .badge {
    margin-inline-start: 6px;
  }

  .leave-calculator {
    gap: 14px;
    padding-bottom: 18px;
    display: grid;
  }

  .leave-calculator > :not(.card-head) {
    margin-inline: 18px;
  }

  .calculator-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    display: grid;
  }

  .calculator-form label {
    color: var(--muted);
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    display: grid;
  }

  .calculator-months > td {
    background: #f8fafb;
    padding: 10px !important;
  }

  @media (max-width: 760px) {
    .calculator-form {
      grid-template-columns: 1fr;
    }
  }

  .leave-rules {
    padding: 16px 20px;
  }

  .leave-rules > summary {
    cursor: pointer;
    color: var(--navy-950);
    align-items: center;
    gap: 10px;
    font-size: 14px;
    list-style: none;
    display: flex;
  }

  .leave-rules > summary::-webkit-details-marker {
    display: none;
  }

  .leave-rules > summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
  }

  .leave-rules[open] .leave-calendar-toggle {
    transform: rotate(180deg);
  }

  .leave-rules > ol {
    color: var(--navy-950);
    gap: 8px;
    margin: 14px 0 0;
    padding-inline-start: 20px;
    font-size: 13px;
    line-height: 1.6;
    display: grid;
  }

  .leave-calendar-legend {
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    font-weight: 400;
    display: flex;
  }

  .leave-calendar-legend span {
    align-items: center;
    gap: 6px;
    display: inline-flex;
  }

  .leave-calendar-legend i {
    border-radius: 3px;
    width: 12px;
    height: 12px;
  }

  .leave-calendar-legend b {
    color: var(--navy-950);
  }

  .leave-calendar-months {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 22px;
    display: grid;
  }

  .leave-calendar-month h4 {
    color: var(--navy-950);
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
  }

  .leave-calendar-grid {
    text-align: center;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 11px;
    display: grid;
  }

  .leave-calendar-weekday {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
  }

  .leave-calendar-day {
    aspect-ratio: 1;
    color: var(--navy-950);
    border-radius: 5px;
    place-items: center;
    display: grid;
  }

  .leave-calendar-day.is-leave {
    cursor: default;
    font-weight: 700;
  }

  @media (max-width: 1100px) {
    .leave-calendar-months {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 640px) {
    .leave-calendar-months {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .leave-balance {
    padding: 20px;
  }

  .leave-balance > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
  }

  .leave-balance > strong {
    color: var(--navy-950);
    margin: 11px 0 17px;
    font-size: 27px;
    display: block;
  }

  .leave-balance > strong small {
    color: var(--muted);
    font-size: 12px;
  }

  .leave-balance > div {
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(3, 1fr);
    padding-top: 13px;
    display: grid;
  }

  .leave-balance > div span {
    color: var(--muted);
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    display: flex;
  }

  .leave-balance > div b {
    color: var(--ink);
    font-size: 13px;
  }

  .activity-card {
    overflow: hidden;
  }

  .activity-row {
    border-bottom: 1px solid #edf0f2;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    display: flex;
  }

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

  .activity-icon {
    width: 33px;
    height: 33px;
    color: var(--navy-700);
    background: var(--blue-soft);
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .activity-row div {
    flex-direction: column;
    gap: 4px;
    display: flex;
  }

  .activity-row strong {
    color: var(--ink);
    font-size: 13px;
  }

  .activity-row small {
    color: var(--muted);
    font-size: 12px;
  }

  .attendance-kpis {
    gap: calc(14px * var(--density-space));
    margin-bottom: calc(18px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .attendance-kpi {
    min-height: calc(116px * var(--density-row));
    padding: calc(19px * var(--density-space)) 19px;
    align-items: flex-start;
    gap: 14px;
    display: flex;
  }

  .attendance-kpi-icon {
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 43px;
    height: 43px;
    display: grid;
  }

  .attendance-kpi-icon svg {
    width: 20px;
  }

  .attendance-kpi-icon.green {
    color: var(--green);
    background: var(--green-soft);
  }

  .attendance-kpi-icon.amber {
    color: var(--amber);
    background: var(--amber-soft);
  }

  .attendance-kpi-icon.red {
    color: var(--red);
    background: var(--red-soft);
  }

  .attendance-kpi-icon.blue {
    color: var(--blue);
    background: var(--blue-soft);
  }

  .attendance-kpi-icon.purple {
    color: var(--purple);
    background: var(--purple-soft);
  }

  .attendance-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .attendance-kpi > div > span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
  }

  .attendance-kpi strong {
    color: var(--navy-950);
    margin-top: 7px;
    font-size: 27px;
    line-height: 1.1;
  }

  .attendance-kpi small {
    color: var(--text-3);
    margin-top: 7px;
    font-size: 13px;
  }

  .attendance-tabs, .module-tabs {
    margin-bottom: calc(15px * var(--density-space));
    box-shadow: none;
    background: none;
    border: 0;
    align-items: center;
    gap: 6px;
    padding: 2px;
    display: flex;
    overflow-x: auto;
  }

  .attendance-tabs button, .module-tabs button {
    min-width: max-content;
    height: calc(38px * var(--density-control));
    color: var(--text-2);
    cursor: pointer;
    background: none;
    border: 1px solid #0000;
    border-radius: 10px;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
  }

  .attendance-tabs button:hover, .module-tabs button:hover {
    color: var(--navy-950);
    background: #ffffffa6;
  }

  .attendance-tabs button small, .module-tabs button small {
    min-width: 22px;
    color: var(--text-3);
    background: #e4eaef;
    border-radius: 99px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
  }

  .attendance-tabs button.active, .module-tabs button.active {
    color: var(--navy-950);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
    background: #fff;
  }

  .attendance-tabs button.active small, .module-tabs button.active small {
    color: var(--navy-950);
    background: var(--yellow);
  }

  .attendance-register {
    overflow: hidden;
  }

  .attendance-toolbar {
    min-height: calc(70px * var(--density-row));
    padding: calc(14px * var(--density-space)) 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfc;
    align-items: center;
    gap: 9px;
    display: flex;
  }

  .attendance-toolbar .toolbar-search {
    max-width: none;
  }

  .date-control {
    height: calc(40px * var(--density-control));
    border: 1px solid var(--line);
    min-width: 165px;
    color: var(--text-3);
    background: #fff;
    border-radius: 10px;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    display: flex;
  }

  .date-control input {
    width: 122px;
    color: var(--ink);
    background: none;
    border: 0;
    outline: 0;
    font-size: 14px;
    font-weight: 700;
  }

  .attendance-table {
    min-width: 1080px;
  }

  .attendance-table td {
    height: calc(78px * var(--density-row));
  }

  .shift-cell {
    grid-template-columns: 8px 1fr;
    align-items: center;
    gap: 3px 9px;
    min-width: 154px;
    display: grid;
  }

  .shift-cell i {
    border-radius: 99px;
    grid-row: 1 / 3;
    width: 8px;
    height: 37px;
  }

  .shift-cell strong {
    color: var(--ink);
    font-size: 13px;
  }

  .shift-cell small {
    color: var(--muted);
    text-align: start;
    direction: ltr;
    font-size: 12px;
  }

  .punch-pair {
    direction: ltr;
    align-items: center;
    gap: 9px;
    min-width: 170px;
    display: flex;
  }

  .punch-pair > span:not(.punch-arrow) {
    flex-direction: column;
    gap: 3px;
    display: flex;
  }

  .punch-pair b {
    color: var(--navy-950);
    font-size: 14px;
  }

  .punch-pair small {
    color: var(--text-3);
    letter-spacing: .5px;
    font-size: 11px;
  }

  .punch-arrow {
    color: var(--text-3);
  }

  .metric-value, .metric-warn, .metric-blue, .metric-muted {
    white-space: nowrap;
    font-size: 14px;
    display: block;
  }

  .metric-value {
    color: var(--navy-950);
  }

  .metric-warn {
    color: #b06c00;
  }

  .metric-blue {
    color: #21659b;
  }

  .metric-muted {
    color: var(--text-3);
    font-weight: 600;
  }

  .metric-sub {
    color: var(--text-3);
    white-space: nowrap;
    margin-top: 4px;
    font-size: 12px;
    display: block;
  }

  .flag-count {
    color: #a46b12;
    cursor: help;
    margin-top: 5px;
    font-size: 12px;
    display: block;
  }

  .reason-cell {
    min-width: 190px;
    max-width: 310px;
    color: var(--text-2);
    line-height: 1.55;
    display: block;
  }

  .decision-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    min-width: 106px;
    display: flex;
  }

  .decision-actions .icon-button {
    width: 32px;
    height: 32px;
  }

  .decision-approve, .decision-reject {
    cursor: pointer;
    background: #fff;
    border: 1px solid;
    border-radius: 10px;
    place-items: center;
    width: 32px;
    height: 32px;
    display: grid;
  }

  .decision-approve {
    color: #087451;
    border-color: #b8dfd1 !important;
  }

  .decision-approve:hover {
    background: var(--green-soft);
  }

  .decision-reject {
    color: #b62f2f;
    border-color: #efcaca !important;
  }

  .decision-reject:hover {
    background: var(--red-soft);
  }

  .locked-action {
    border: 1px dashed var(--line);
    width: 32px;
    height: 32px;
    color: var(--text-3);
    background: var(--canvas);
    cursor: help;
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .locked-action:hover {
    color: var(--text-2);
    border-color: #cdd7e0;
  }

  .locked-action:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .locked-action-tip {
    z-index: 95;
    color: #fff;
    background: var(--navy-900);
    width: 248px;
    box-shadow: var(--shadow-md);
    text-align: start;
    pointer-events: none;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    position: fixed;
  }

  .locked-action-tip.above {
    transform: translateY(-100%);
  }

  .section-actions {
    margin: 2px 0 calc(14px * var(--density-space));
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    display: flex;
  }

  .section-actions h2 {
    color: var(--navy-950);
    margin: 0;
    font-size: 19px;
  }

  .section-actions p {
    color: var(--muted);
    margin: 6px 0 0;
    font-size: 14px;
  }

  .shift-grid {
    gap: calc(15px * var(--density-space));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }

  .shift-card {
    padding: calc(20px * var(--density-space)) 20px;
  }

  .shift-card-head {
    grid-template-columns: 8px 1fr auto;
    align-items: start;
    gap: 0 13px;
    display: grid;
  }

  .shift-color {
    border-radius: 99px;
    grid-row: 1;
    width: 8px;
    height: 48px;
  }

  .shift-card-head > div > small {
    color: var(--text-3);
    letter-spacing: .6px;
    font-size: 12px;
  }

  .shift-card-head h3 {
    color: var(--navy-950);
    margin: 4px 0 0;
    font-size: 16px;
  }

  .shift-card-head p {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 13px;
  }

  .shift-time {
    min-height: 61px;
    color: var(--navy-700);
    direction: ltr;
    background: #f4f7f9;
    border-radius: 12px;
    align-items: center;
    gap: 10px;
    margin: 18px 0 13px;
    padding: 0 15px;
    display: flex;
  }

  .shift-time strong {
    color: var(--navy-950);
    font-size: 18px;
  }

  .shift-time small {
    color: var(--muted);
    margin-left: auto;
    font-size: 12px;
  }

  .shift-days {
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    display: grid;
  }

  .shift-days span {
    border: 1px solid var(--line);
    min-height: 31px;
    color: var(--text-3);
    border-radius: 8px;
    place-items: center;
    font-size: 11px;
    display: grid;
  }

  .shift-days span.active {
    color: var(--navy-800);
    background: var(--blue-soft);
    border-color: #c3d5df;
    font-weight: 700;
  }

  .shift-rules {
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    padding-top: 15px;
    display: grid;
  }

  .shift-rules span {
    color: var(--muted);
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    display: flex;
  }

  .shift-rules b {
    color: var(--ink);
    font-size: 13px;
  }

  .shift-card-actions {
    border-top: 1px solid var(--line);
    justify-content: flex-end;
    margin-top: 14px;
    padding-top: 13px;
  }

  .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    display: grid;
  }

  .device-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    grid-template-columns: 45px 1fr auto;
    gap: 13px;
    min-height: 205px;
    padding: 18px;
    display: grid;
    position: relative;
  }

  .device-icon {
    width: 45px;
    height: 45px;
    color: var(--text-2);
    background: #edf1f3;
    border-radius: 12px;
    place-items: center;
    display: grid;
  }

  .device-icon.active {
    color: var(--green);
    background: var(--green-soft);
  }

  .device-card > div > small {
    color: var(--text-3);
    letter-spacing: .5px;
    font-size: 12px;
  }

  .device-card h3 {
    color: var(--navy-950);
    margin: 5px 0;
    font-size: 14px;
  }

  .device-card p {
    color: var(--muted);
    margin: 0;
    font-size: 12px;
  }

  .device-card footer {
    border-top: 1px solid var(--line);
    color: var(--text-3);
    grid-column: 1 / 4;
    align-self: end;
    align-items: center;
    gap: 6px;
    padding-top: 13px;
    font-size: 12px;
    display: flex;
  }

  .attendance-modal {
    width: min(780px, 100%);
  }

  .attendance-modal > form > .modal-body {
    padding: 2px 24px 20px;
  }

  .attendance-modal .form-grid {
    padding-top: 22px;
  }

  .form-field textarea {
    resize: vertical;
    width: 100%;
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    outline: 0;
    padding: 10px 11px;
    font-weight: 500;
    line-height: 1.55;
  }

  .form-field textarea:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .form-field-wide {
    grid-column: 1 / -1;
  }

  .weekday-picker {
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    display: grid;
  }

  .weekday-picker label {
    cursor: pointer;
  }

  .weekday-picker input {
    opacity: 0;
    pointer-events: none;
    position: absolute;
  }

  .weekday-picker span {
    min-height: calc(38px * var(--density-control));
    border: 1px solid var(--line);
    color: var(--text-3);
    background: #fff;
    border-radius: 10px;
    place-items: center;
    font-size: 12px;
    display: grid;
  }

  .weekday-picker input:checked + span {
    border-color: var(--navy-700);
    color: #fff;
    background: var(--navy-800);
    font-weight: 700;
  }

  .toggle-field {
    min-height: calc(55px * var(--density-row));
    padding: calc(11px * var(--density-space)) 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    display: flex;
  }

  .toggle-field input {
    flex: none;
    width: 17px;
    height: 17px;
  }

  .shift-timing-note {
    border: 1px solid var(--line);
    color: var(--muted);
    background: #f7fafb;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 11px 13px;
    font-size: 12px;
    display: flex;
  }

  .shift-timing-note > span {
    flex-direction: column;
    gap: 3px;
    display: inline-flex;
  }

  .shift-timing-note b {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
  }

  .shift-timing-note > small {
    color: #a62e2e;
    flex: 1 0 100%;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
  }

  .shift-timing-note.is-invalid {
    background: #fff8f8;
    border-color: #ebc6c6;
  }

  .toggle-field span {
    flex-direction: column;
    gap: 4px;
    display: flex;
  }

  .toggle-field b {
    color: var(--ink);
    font-size: 13px;
  }

  .toggle-field small {
    color: var(--muted);
    font-size: 12px;
  }

  .leave-kpis {
    gap: calc(14px * var(--density-space));
    margin-bottom: calc(18px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .leave-table {
    min-width: 1090px;
  }

  .leave-type-cell {
    grid-template-columns: 8px 1fr;
    align-items: center;
    gap: 3px 9px;
    min-width: 150px;
    display: grid;
  }

  .leave-type-cell i {
    border-radius: 99px;
    grid-row: 1 / 3;
    width: 8px;
    height: 37px;
  }

  .leave-type-cell strong {
    color: var(--ink);
    font-size: 14px;
  }

  .leave-type-cell small {
    color: var(--text-3);
    font-size: 12px;
  }

  .leave-days {
    color: var(--navy-950);
    font-size: 19px;
  }

  .leave-days small {
    color: var(--muted);
    font-size: 12px;
  }

  .approval-stage {
    grid-template-columns: 24px 34px 24px;
    align-items: center;
    gap: 4px;
    min-width: 155px;
    display: grid;
  }

  .approval-stage i {
    width: 24px;
    height: 24px;
    color: var(--text-3);
    background: #fff;
    border: 1px solid #d9e0e4;
    border-radius: 50%;
    place-items: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    display: grid;
  }

  .approval-stage i.active {
    border-color: var(--yellow);
    color: var(--navy-950);
    background: var(--yellow);
  }

  .approval-stage i.done {
    border-color: var(--green);
    color: #fff;
    background: var(--green);
  }

  .approval-stage i.rejected {
    border-color: var(--red);
    color: #fff;
    background: var(--red);
  }

  .approval-stage > b {
    background: #dfe5e8;
    height: 2px;
  }

  .approval-stage > small {
    color: var(--muted);
    grid-column: 1 / 4;
    margin-top: 4px;
    font-size: 12px;
  }

  .balance-toolbar {
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin: 2px 0 14px;
    display: flex;
  }

  .balance-toolbar h2 {
    color: var(--navy-950);
    margin: 0;
    font-size: 19px;
  }

  .balance-toolbar p {
    color: var(--muted);
    margin: 6px 0 0;
    font-size: 14px;
  }

  .employee-balance-select {
    min-width: 285px;
  }

  .balance-grid {
    gap: calc(15px * var(--density-space));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
  }

  .balance-card {
    padding: calc(19px * var(--density-space)) 19px;
  }

  .balance-card header {
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .balance-card header > i {
    border-radius: 99px;
    width: 8px;
    height: 38px;
  }

  .balance-card header > div {
    flex-direction: column;
    gap: 4px;
    display: flex;
  }

  .balance-card header strong {
    color: var(--navy-950);
    font-size: 14px;
  }

  .balance-card header small {
    color: var(--muted);
    font-size: 12px;
  }

  .balance-available {
    align-items: flex-end;
    gap: 8px;
    margin: 19px 0 17px;
    display: flex;
  }

  .balance-available strong {
    color: var(--navy-950);
    font-size: 34px;
    line-height: 1;
  }

  .balance-available span {
    color: var(--muted);
    font-size: 12px;
  }

  .balance-breakdown {
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(3, 1fr);
    padding-top: 14px;
    display: grid;
  }

  .balance-breakdown span {
    color: var(--muted);
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    display: flex;
  }

  .balance-breakdown b {
    color: var(--ink);
    font-size: 14px;
  }

  .balance-ledger {
    margin-top: 15px;
    overflow: hidden;
  }

  .movement-out {
    color: #b62f2f;
  }

  .movement-in {
    color: #087451;
  }

  .leave-calendar-layout {
    gap: calc(15px * var(--density-space));
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr);
    display: grid;
  }

  .leave-calendar-layout.is-single {
    grid-template-columns: 1fr;
  }

  .leave-calendar, .holiday-card {
    overflow: hidden;
  }

  .holidays-layout {
    gap: calc(15px * var(--density-space));
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    display: grid;
  }

  .holiday-year-nav {
    align-items: center;
    gap: 6px;
    display: flex;
  }

  .holiday-year-nav .select-field {
    min-width: 110px;
  }

  .holiday-actions {
    white-space: nowrap;
    justify-content: flex-end;
    gap: 6px;
    display: flex;
  }

  .holiday-form-card {
    padding-bottom: 18px;
  }

  .holiday-form {
    gap: 12px;
    padding: 4px 18px 0;
    display: grid;
  }

  .holiday-form label {
    color: var(--muted);
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    display: grid;
  }

  .holiday-form-hint {
    color: var(--muted);
    margin: -4px 0 0;
    font-size: 12px;
  }

  .holiday-form-actions {
    gap: 8px;
    display: flex;
  }

  .holiday-fixed {
    border-top: 1px solid var(--line);
    gap: 10px;
    margin: 16px 18px 0;
    padding-top: 14px;
    display: grid;
  }

  .holiday-fixed p {
    color: var(--muted);
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  @media (max-width: 1000px) {
    .holidays-layout {
      grid-template-columns: 1fr;
    }
  }

  .holidays-layout.short-days {
    margin-top: calc(15px * var(--density-space));
  }

  .short-day-banner {
    border-inline-start: 3px solid var(--amber);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 14px;
    display: flex;
  }

  .short-day-banner small {
    color: var(--muted);
  }

  .short-day-targets {
    border: 1px dashed var(--line);
    border-radius: 10px;
    gap: 12px;
    padding: 12px;
    display: grid;
  }

  .short-day-targets > label, .short-day-devices {
    color: var(--muted);
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    display: grid;
  }

  .short-day-devices small {
    color: var(--muted);
  }

  .calendar-list {
    padding: 4px 18px 12px;
  }

  .calendar-list article {
    min-height: calc(78px * var(--density-row));
    border-bottom: 1px solid #edf0f2;
    grid-template-columns: 45px 5px 1fr auto;
    align-items: center;
    gap: 12px;
    display: grid;
  }

  .calendar-list article:last-child {
    border: 0;
  }

  .calendar-date {
    text-align: center;
    border: 1px solid var(--line);
    background: #fbfcfc;
    border-radius: 12px;
    place-content: center;
    width: 45px;
    height: 49px;
    display: grid;
  }

  .calendar-date b {
    color: var(--navy-950);
    font-size: 17px;
  }

  .calendar-date small {
    color: var(--muted);
    margin-top: 1px;
    font-size: 11px;
  }

  .calendar-list article > i {
    border-radius: 99px;
    width: 5px;
    height: 38px;
  }

  .calendar-list article > div strong {
    color: var(--ink);
    font-size: 14px;
  }

  .calendar-list article > div p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 12px;
  }

  .holiday-list {
    padding: 5px 17px 12px;
  }

  .holiday-list article {
    min-height: calc(70px * var(--density-row));
    border-bottom: 1px solid #edf0f2;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 10px;
    display: grid;
  }

  .holiday-list article:last-child {
    border: 0;
  }

  .holiday-list article > span:first-child {
    width: 36px;
    height: 36px;
    color: var(--navy-700);
    background: var(--blue-soft);
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .holiday-list div {
    flex-direction: column;
    gap: 4px;
    display: flex;
  }

  .holiday-list strong {
    color: var(--ink);
    font-size: 13px;
  }

  .holiday-list small {
    color: var(--muted);
    font-size: 12px;
  }

  .policy-grid {
    gap: calc(15px * var(--density-space));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
  }

  .policy-card {
    padding: calc(19px * var(--density-space)) 19px;
  }

  .policy-card header {
    gap: 12px;
    display: flex;
  }

  .policy-card header > span {
    color: #fff;
    border-radius: 12px;
    place-items: center;
    width: 42px;
    height: 42px;
    display: grid;
  }

  .policy-card header > div {
    flex-direction: column;
    display: flex;
  }

  .policy-card header small {
    color: var(--text-3);
    letter-spacing: .5px;
    font-size: 11px;
  }

  .policy-card header h3 {
    color: var(--navy-950);
    margin: 4px 0 0;
    font-size: 15px;
  }

  .policy-card header p {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 12px;
  }

  .policy-rules {
    border-block: 1px solid var(--line);
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 18px 0;
    padding: 14px 0;
    display: grid;
  }

  .policy-rules span {
    color: var(--muted);
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    display: flex;
  }

  .policy-rules b {
    color: var(--ink);
    font-size: 14px;
  }

  .policy-card footer {
    flex-wrap: wrap;
    gap: 6px;
    display: flex;
  }

  .leave-modal {
    width: min(820px, 100%);
  }

  .leave-modal > form > .modal-body {
    padding: 2px 24px 20px;
  }

  .leave-modal .form-grid {
    padding-top: 22px;
  }

  .leave-balance-note {
    color: var(--muted);
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 9px 2px 0;
    font-size: 11.5px;
    display: flex;
  }

  .leave-balance-note > span {
    align-items: baseline;
    gap: 5px;
    display: inline-flex;
  }

  .leave-balance-note b {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 700;
  }

  .leave-attachment-field small {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
  }

  .leave-attachment-link {
    color: #245f95;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
  }

  .leave-attachment-link span {
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .leave-attachment-link:hover {
    text-decoration: underline;
  }

  .same-time-off {
    max-width: 300px;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .same-time-off p {
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    font-weight: 700;
    display: flex;
  }

  .same-time-off p svg {
    flex: none;
    margin-top: 2px;
  }

  .same-time-off.is-clear {
    color: #087451;
  }

  .same-time-off.is-clear p {
    font-weight: 600;
  }

  .same-time-off-link {
    color: #1b4d6d;
    font: inherit;
    text-underline-offset: 2px;
    cursor: pointer;
    background: none;
    border: 0;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    display: inline-flex;
  }

  .same-time-off-link:hover {
    color: var(--navy-950);
  }

  .same-time-off-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .same-time-off.is-busy {
    color: #8a5606;
    background: var(--amber-soft);
    border: 1px solid #f3dfb5;
    border-radius: 10px;
    padding: 7px 9px;
  }

  .same-time-off ul {
    color: var(--text-2);
    gap: 2px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
  }

  .same-time-off li b {
    color: var(--ink);
    font-weight: 700;
  }

  .same-time-off li span {
    white-space: nowrap;
    font-weight: 700;
  }

  .same-time-off li .is-approved {
    color: #087451;
  }

  .same-time-off li .is-pending {
    color: #a86a08;
  }

  .same-time-off small {
    color: var(--text-3);
    margin-top: 2px;
    display: block;
  }

  .same-time-off-names {
    color: var(--ink);
    margin-top: 3px;
    font-weight: 600;
    display: block;
  }

  .same-time-off .same-time-off-link {
    display: flex;
  }

  .leave-decision-modal .same-time-off {
    max-width: none;
    margin: 0 0 14px;
    font-size: 13px;
  }

  .who-off {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    display: flex;
  }

  .who-off-head {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    display: flex;
  }

  .who-off-head h3 {
    color: var(--navy-950);
    margin: 0;
    font-size: 20px;
  }

  .who-off-head p {
    max-width: 640px;
    color: var(--text-2);
    margin: 5px 0 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .who-off-controls {
    flex-wrap: wrap;
    gap: 12px;
    display: flex;
  }

  .who-off-field {
    color: var(--text-2);
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
  }

  .who-off-field .select-field {
    min-width: 190px;
  }

  .who-off-nav {
    justify-content: center;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .who-off-nav strong {
    min-width: 170px;
    color: var(--navy-950);
    text-align: center;
    font-size: 17px;
  }

  .who-off-scroll {
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .who-off-board {
    --col: 64px;
    min-width: calc(var(--who-cols) * var(--col));
  }

  .who-off-board.is-month {
    --col: 40px;
  }

  .who-off-days, .who-off-counts, .who-off-grid, .who-off-row {
    grid-template-columns: repeat(var(--who-cols), minmax(0, 1fr));
    display: grid;
  }

  .who-off-days {
    border-bottom: 3px solid #dfe6ec;
  }

  .who-off-days span {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 0 7px;
    display: flex;
  }

  .who-off-days b {
    color: var(--navy-950);
    font-size: 16px;
    line-height: 1.2;
  }

  .who-off-days small {
    color: var(--text-2);
    font-size: 11px;
  }

  .who-off-days .is-weekend b, .who-off-days .is-weekend small {
    color: var(--text-3);
    font-weight: 500;
  }

  .who-off-days .is-today b {
    color: var(--purple);
  }

  .who-off-days em {
    color: #fff;
    background: var(--purple);
    white-space: nowrap;
    border-radius: 6px;
    order: 3;
    margin-top: 3px;
    padding: 1px 7px;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
  }

  .who-off-board.is-month .who-off-days small {
    font-size: 10px;
  }

  .who-off-board.is-month .who-off-days em {
    display: none;
  }

  .who-off-counts span {
    border-radius: 6px;
    place-items: center;
    min-height: 24px;
    margin: 4px 3px;
    font-size: 12px;
    font-weight: 700;
    display: grid;
  }

  .who-off-counts .level-1 {
    color: var(--text-2);
    background: #eef3f8;
  }

  .who-off-counts .level-2 {
    color: #7a4a00;
    background: var(--amber-soft);
  }

  .who-off-counts .level-3 {
    color: #6b3300;
    background: #ffd9ad;
  }

  .who-off-body {
    min-height: 120px;
    padding: 6px 0 12px;
    position: relative;
  }

  .who-off-grid {
    position: absolute;
    inset: 0;
  }

  .who-off-grid span {
    border-inline-start: 1px dashed #e3e9ee;
    position: relative;
  }

  .who-off-grid span:first-child {
    border-inline-start: 0;
  }

  .who-off-grid .is-weekend {
    background: #f3f5f8;
  }

  .who-off-grid .is-holiday {
    background: var(--purple-soft);
  }

  .who-off-grid .is-today:after {
    content: "";
    background: var(--purple);
    width: 2px;
    position: absolute;
    inset-block: 0;
    inset-inline-start: calc(50% - 1px);
  }

  .who-off-row {
    z-index: 1;
    align-items: center;
    min-height: 58px;
    position: relative;
  }

  .who-off-bar, .who-off-label {
    grid-row: 1;
  }

  .who-off-bar {
    --bar: #1b4d6d;
    border: 1.5px solid var(--bar);
    background: color-mix(in srgb, var(--bar) 17%, #fff);
    min-width: 0;
    height: 46px;
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    border-radius: 999px;
    align-items: center;
    gap: 9px;
    margin: 0 3px;
    padding-block: 0;
    padding-inline: 5px 12px;
    transition: box-shadow .15s, transform .15s;
    display: flex;
    overflow: hidden;
  }

  .who-off-bar:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px #071d2c24;
  }

  .who-off-bar:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .who-off-bar.is-pending {
    background: #fff;
    border-style: dashed;
    border-width: 2px;
  }

  .who-off-bar.is-selected {
    box-shadow: 0 0 0 3px var(--navy-950);
  }

  .who-off-bar.cut-start {
    border-start-start-radius: 6px;
    border-end-start-radius: 6px;
  }

  .who-off-bar.cut-end {
    border-start-end-radius: 6px;
    border-end-end-radius: 6px;
  }

  .who-off-bar.is-short {
    justify-content: center;
    padding: 0;
  }

  .who-off-bar.is-compact {
    gap: 6px;
    padding-inline: 4px 8px;
  }

  .who-off-avatar {
    background: color-mix(in srgb, var(--bar) 40%, #fff);
    width: 34px;
    height: 34px;
    color: var(--navy-950);
    border-radius: 50%;
    flex: 0 0 34px;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    display: grid;
  }

  .who-off-text {
    flex-direction: column;
    flex: auto;
    min-width: 0;
    line-height: 1.3;
    display: flex;
  }

  .who-off-text b, .who-off-text small {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .who-off-text b {
    color: var(--navy-950);
    font-size: 13.5px;
  }

  .who-off-text small {
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 600;
  }

  .who-off-bar > svg {
    color: var(--navy-800);
    flex: none;
  }

  .who-off-board.is-month .who-off-bar {
    height: 38px;
    margin: 0 2px;
  }

  .who-off-board.is-month .who-off-avatar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .who-off-label.is-before {
    text-align: end;
  }

  .who-off-label {
    min-width: 0;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-inline: 6px;
    font-size: 12.5px;
    font-weight: 600;
    overflow: hidden;
  }

  .who-off-empty {
    color: #075c41;
    background: var(--green-soft);
    border: 1px solid #b7e4d2;
    border-radius: 12px;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 90%;
    margin: 4px auto;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
  }

  .who-off-legend {
    color: var(--text-2);
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 12px;
    display: flex;
  }

  .who-off-legend span {
    align-items: center;
    gap: 6px;
    display: inline-flex;
  }

  .who-off-legend i {
    box-sizing: border-box;
    border: 1.5px solid var(--bar, #1b4d6d);
    background: color-mix(in srgb, var(--bar, #1b4d6d) 17%, #fff);
    border-radius: 999px;
    width: 24px;
    height: 13px;
  }

  .who-off-legend i.is-pending {
    background: #fff;
    border: 2px dashed #556877;
  }

  .who-off-legend b {
    text-align: center;
    border-radius: 6px;
    min-width: 22px;
    padding: 1px 6px;
  }

  .who-off-legend b.level-3 {
    color: #6b3300;
    background: #ffd9ad;
  }

  .leave-review {
    border: 1.5px solid var(--navy-700);
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    display: flex;
  }

  .leave-review-head {
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    display: flex;
  }

  .leave-review-facts {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0;
    display: grid;
  }

  .leave-review-facts div {
    background: #f7f9fb;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .leave-review-facts dt {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
  }

  .leave-review-facts dd {
    color: var(--navy-950);
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 700;
  }

  .leave-review .same-time-off {
    max-width: none;
    margin: 0;
    font-size: 13px;
  }

  .leave-review-actions {
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    display: flex;
  }

  .leave-review-actions .btn {
    min-height: 44px;
    padding-inline: 22px;
  }

  @media (max-width: 760px) {
    .who-off, .leave-review {
      padding: 14px;
    }

    .who-off-field, .who-off-field .select-field {
      width: 100%;
      min-width: 0;
    }

    .who-off-controls {
      width: 100%;
    }
  }

  .team-calendar {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    display: flex;
  }

  .team-calendar-head {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    display: flex;
  }

  .team-calendar-head h3 {
    color: var(--navy-950);
    margin: 0;
    font-size: 18px;
  }

  .team-calendar-head p {
    color: var(--text-2);
    margin: 5px 0 0;
    font-size: 13px;
  }

  .team-calendar-controls {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .team-calendar-department {
    color: var(--text-2);
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .team-calendar-department .select-field {
    min-width: 220px;
  }

  .team-calendar-month {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .team-calendar-month strong {
    min-width: 132px;
    color: var(--navy-950);
    text-align: center;
    font-size: 17px;
  }

  .team-calendar-focus {
    border-radius: 12px;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    font-size: 13px;
    line-height: 1.55;
    display: flex;
  }

  .team-calendar-focus > svg {
    flex: none;
    margin-top: 2px;
  }

  .team-calendar-focus > div {
    flex-direction: column;
    flex: auto;
    gap: 2px;
    display: flex;
  }

  .team-calendar-focus strong {
    font-size: 15px;
  }

  .team-calendar-focus.is-clear {
    color: #075c41;
    background: var(--green-soft);
    border: 1px solid #b7e4d2;
  }

  .team-calendar-focus.is-warn {
    color: #5c3a10;
    background: var(--amber-soft);
    border: 1px solid #f0d49c;
  }

  .team-calendar-focus.is-warn strong {
    color: #7a4a00;
  }

  .team-calendar-focus.is-busy {
    color: #5c3a10;
    background: #fff1e0;
    border: 1px solid #e9a24f;
  }

  .team-calendar-focus.is-busy strong {
    color: #7a3c00;
  }

  .team-calendar-scroll {
    overflow-x: auto;
  }

  .team-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    min-width: 760px;
    display: grid;
  }

  .team-calendar-weekday {
    color: var(--text-2);
    text-align: center;
    padding: 4px 2px;
    font-size: 12px;
    font-weight: 700;
  }

  .team-calendar-blank {
    min-height: 112px;
  }

  .team-calendar-day {
    border: 1px solid var(--line);
    min-width: 0;
    min-height: 112px;
    color: var(--ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    display: flex;
  }

  .team-calendar-day:hover {
    border-color: #9fb3c3;
  }

  .team-calendar-day:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .team-calendar-day.level-1 {
    background: #f3f7fb;
    border-color: #d6e2ec;
  }

  .team-calendar-day.level-2 {
    background: var(--amber-soft);
    border-color: #f0d49c;
  }

  .team-calendar-day.level-3 {
    background: #ffd9ad;
    border: 1.5px solid #d9822b;
  }

  .team-calendar-day.is-today .team-calendar-day-head b {
    color: #fff;
    background: var(--navy-800);
    border-radius: 999px;
    place-items: center;
    min-width: 24px;
    height: 24px;
    display: inline-grid;
  }

  .team-calendar-day.is-selected {
    box-shadow: 0 0 0 2px var(--navy-700);
  }

  .team-calendar-day-head {
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    display: flex;
  }

  .team-calendar-day-head b {
    color: var(--navy-950);
    font-size: 14px;
  }

  .team-calendar-day-head small {
    color: var(--text-2);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
  }

  .team-calendar-day.level-3 .team-calendar-day-head small {
    color: #6b3300;
  }

  .team-calendar-holiday {
    color: #5b3fa8;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
  }

  .team-calendar-chip {
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 6px;
    min-width: 0;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    display: block;
    overflow: hidden;
  }

  .team-calendar-chip.is-approved {
    color: #fff;
    background: var(--navy-700);
  }

  .team-calendar-chip.is-pending {
    color: #7a4a00;
    background: #fff;
    border: 1.5px dashed #b36b00;
    padding: 1px 5px;
  }

  .team-calendar-chip.is-focus {
    color: var(--navy-950);
    background: var(--yellow);
    font-weight: 700;
  }

  .team-calendar-more {
    color: var(--text-2);
    font-size: 11px;
    font-weight: 700;
  }

  .team-calendar-legend {
    color: var(--text-2);
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 12px;
    display: flex;
  }

  .team-calendar-legend span {
    align-items: center;
    gap: 6px;
    display: inline-flex;
  }

  .team-calendar-legend i {
    box-sizing: border-box;
    border-radius: 4px;
    width: 14px;
    height: 14px;
  }

  .team-calendar-legend i.is-focus {
    background: var(--yellow);
  }

  .team-calendar-legend i.is-approved {
    background: var(--navy-700);
  }

  .team-calendar-legend i.is-pending {
    background: #fff;
    border: 1.5px dashed #b36b00;
  }

  .team-calendar-legend i.is-busy {
    background: #ffd9ad;
    border: 1px solid #d9822b;
  }

  .team-calendar-detail {
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }

  .team-calendar-detail h4 {
    color: var(--navy-950);
    margin: 0 0 10px;
    font-size: 15px;
  }

  .team-calendar-detail-holiday {
    color: #5b3fa8;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
  }

  .team-calendar-detail ul {
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
  }

  .team-calendar-detail li {
    border: 1px solid var(--line);
    color: var(--text-2);
    border-radius: 10px;
    grid-template-columns: minmax(140px, 1.3fr) minmax(110px, 1fr) minmax(170px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    display: grid;
  }

  .team-calendar-detail li strong {
    color: var(--ink);
    font-size: 14px;
  }

  .team-calendar-detail li.is-focus {
    background: var(--yellow-soft);
    border-color: #e8d36b;
  }

  @media (max-width: 760px) {
    .team-calendar {
      padding: 14px;
    }

    .team-calendar-department {
      width: 100%;
    }

    .team-calendar-department .select-field {
      flex: auto;
      min-width: 0;
    }

    .team-calendar-detail li {
      grid-template-columns: 1fr auto;
    }
  }

  .leave-preview {
    background: #f5f9fb;
    border: 1px solid #cfdfe8;
    border-radius: 12px;
    grid-template-columns: auto repeat(3, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 13px;
    display: grid;
  }

  .leave-preview > span {
    border-inline-start: 1px solid #d9e4ea;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding-inline-start: 12px;
    display: flex;
  }

  .leave-preview small {
    color: var(--muted);
    font-size: 11px;
  }

  .leave-preview strong {
    color: var(--navy-950);
    font-size: 14px;
  }

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

    .dashboard-grid {
      grid-template-columns: 1fr;
    }

    .module-grid, .workspace-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-copy {
      display: none;
    }

    .profile-kpis, .attendance-kpis, .leave-kpis, .device-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leave-calendar-layout {
      grid-template-columns: 1fr;
    }

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

  @media (max-width: 820px) {
    .login-page {
      grid-template-columns: 1fr;
    }

    .login-showcase {
      display: none;
    }

    .login-form-panel {
      min-height: 100vh;
      padding: 25px;
    }

    .mobile-login-brand {
      color: var(--navy-950);
      align-items: center;
      gap: 9px;
      margin-bottom: 45px;
      font-size: 20px;
      display: flex;
    }

    .locale-root[dir="ltr"] .sidebar {
      transform: translateX(calc(var(--sidebar-width) * -1));
    }

    .locale-root[dir="rtl"] .sidebar {
      transform: translateX(var(--sidebar-width));
    }

    .sidebar {
      visibility: hidden;
      pointer-events: none;
    }

    .locale-root .sidebar.mobile-open {
      visibility: visible;
      pointer-events: auto;
      transform: translateX(0);
    }

    .workspace, .is-collapsed .workspace {
      margin-inline-start: 0;
    }

    .sidebar-backdrop {
      z-index: 39;
      -webkit-backdrop-filter: blur(2px);
      backdrop-filter: blur(2px);
      background: #03111b8c;
      border: 0;
      display: block;
      position: fixed;
      inset: 0;
    }

    .desktop-only {
      display: none;
    }

    .mobile-close, .mobile-menu {
      display: grid;
    }

    .topbar {
      gap: 10px;
      padding: 0 14px;
    }

    .global-search-wrap {
      flex: 1;
      width: auto;
    }

    .global-search kbd, .topbar-actions .icon-btn:not(.notification-btn):not(.panel-close) {
      display: none;
    }

    .page-container {
      padding: calc(20px * var(--density-space)) 14px;
    }

    .table-wrap {
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
    }

    .data-table:not(.permit-grid-table):not(.training-grid-table):not(.document-grid-table) {
      min-width: 820px;
    }

    .alert-list {
      grid-template-columns: 1fr;
    }

    .alert-item {
      border-inline-end: 0;
      border-bottom: 1px solid var(--line);
    }

    .alert-item:last-child {
      border-bottom: 0;
    }

    .summary-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-backdrop {
      padding: 10px;
    }

    .modal-card {
      max-height: calc(100vh - 20px);
    }

    .form-grid.three {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-profile-hero {
      align-items: flex-start;
    }

    .profile-actions {
      flex-direction: column;
    }

    .attendance-toolbar {
      flex-wrap: wrap;
    }

    .attendance-toolbar .toolbar-search {
      order: 4;
      min-width: 100%;
      max-width: none;
    }

    .shift-grid, .balance-grid {
      grid-template-columns: 1fr;
    }

    .leave-preview {
      grid-template-columns: repeat(3, 1fr);
    }

    .leave-preview .btn {
      grid-column: 1 / 4;
    }
  }

  @media (max-width: 560px) {
    .page-head {
      flex-direction: column;
    }

    .page-actions {
      width: 100%;
    }

    .page-actions .btn {
      flex: 1;
    }

    .stats-grid, .module-grid, .split-grid {
      grid-template-columns: 1fr;
    }

    .workspace-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar {
      flex-wrap: wrap;
      align-items: stretch;
    }

    .toolbar-search, .search-box {
      min-width: 100%;
      max-width: none;
    }

    .select-field {
      flex: 1;
      min-width: 125px;
    }

    .global-search input::placeholder {
      color: #0000;
    }

    .profile-button {
      margin-inline-start: 0;
      padding: 2px;
    }

    .profile-button svg {
      display: none;
    }

    .page-head h1 {
      font-size: 22px;
    }

    .module-hero {
      flex-wrap: wrap;
      align-items: flex-start;
      padding: 22px 18px;
    }

    .module-hero-action {
      width: 100%;
      margin: 18px 0 0;
    }

    .module-hero-icon {
      width: 47px;
      height: 47px;
    }

    .donut-layout {
      flex-direction: column;
    }

    .form-grid, .form-grid.three, .form-grid.four, .profile-content-grid, .profile-kpis, .leave-balance-grid {
      grid-template-columns: 1fr;
    }

    .modal-head {
      padding: 18px;
    }

    .employee-modal form {
      padding: 2px 18px 18px;
    }

    .modal-card.modal-shell > form {
      padding: 0;
    }

    .modal-card.modal-shell > form > .modal-body {
      padding: 2px 18px 8px;
    }

    .modal-actions {
      margin: 18px -18px -18px;
      padding: 14px 18px;
    }

    .employee-profile-hero {
      flex-direction: column;
      padding: 18px;
    }

    .profile-identity {
      align-items: flex-start;
    }

    .profile-identity .profile-avatar {
      border-radius: 14px;
      width: 54px;
      height: 54px;
      font-size: 15px;
    }

    .profile-name-row h1 {
      font-size: 21px;
    }

    .profile-actions {
      flex-direction: row;
      width: 100%;
    }

    .profile-actions .btn {
      flex: 1;
    }

    .profile-kpi {
      min-height: calc(92px * var(--density-row));
    }

    .attendance-kpis, .device-grid, .leave-kpis, .policy-grid {
      grid-template-columns: 1fr;
    }

    .attendance-kpi {
      min-height: calc(102px * var(--density-row));
    }

    .attendance-toolbar > * {
      flex: 1;
    }

    .attendance-toolbar .icon-button {
      flex: 0 0 40px;
    }

    .date-control {
      min-width: 0;
    }

    .date-control input {
      width: 100%;
    }

    .section-actions {
      flex-direction: column;
      align-items: flex-start;
    }

    .section-actions .page-actions {
      width: 100%;
    }

    .section-actions .btn {
      flex: 1;
    }

    .shift-card {
      padding: 16px;
    }

    .shift-rules {
      grid-template-columns: repeat(2, 1fr);
      gap: 13px;
    }

    .shift-days span {
      min-height: 28px;
      font-size: 11px;
    }

    .weekday-picker {
      grid-template-columns: repeat(4, 1fr);
    }

    .form-field-wide {
      grid-column: auto;
    }

    .balance-toolbar {
      flex-direction: column;
      align-items: stretch;
    }

    .employee-balance-select {
      width: 100%;
      min-width: 0;
    }

    .calendar-list {
      padding-inline: 13px;
    }

    .calendar-list article {
      grid-template-columns: 42px 4px 1fr;
    }

    .calendar-list article > .badge {
      grid-column: 3;
      width: max-content;
    }

    .leave-preview {
      grid-template-columns: 1fr;
    }

    .leave-preview .btn {
      grid-column: auto;
    }

    .leave-preview > span {
      border-inline-start: 0;
      border-top: 1px solid #d9e4ea;
      padding: 8px 0;
    }

    .leave-modal > form > .modal-body {
      padding: 2px 18px 14px;
    }
  }

  .toast {
    z-index: 90;
    color: #075d42;
    max-width: min(560px, 100vw - 28px);
    box-shadow: var(--shadow-md);
    background: #effbf7;
    border: 1px solid #a9ddcc;
    border-radius: 12px;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    position: fixed;
    top: 82px;
    left: 50%;
    transform: translateX(-50%);
  }

  .toast > span {
    min-width: 0;
  }

  .toast > svg:first-child {
    flex: none;
  }

  .toast.toast-error {
    color: #9a2929;
    background: #fff3f3;
    border-color: #efc0c0;
  }

  .toast.toast-warning {
    color: #8a5a08;
    background: #fff9ec;
    border-color: #eed9a8;
  }

  .toast.toast-info {
    color: #1b4d6d;
    background: #f1f7fc;
    border-color: #bcd4e8;
  }

  .toast button {
    width: 27px;
    height: 27px;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 8px;
    flex: none;
    place-items: center;
    margin-inline-start: auto;
    display: grid;
  }

  .toast button:focus-visible {
    outline-offset: 1px;
    outline: 2px solid;
  }

  .payroll-page-head .eyebrow {
    color: var(--text-3);
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    display: block;
  }

  .payroll-runbar {
    min-height: calc(88px * var(--density-row));
    margin-bottom: calc(15px * var(--density-space));
    padding: calc(15px * var(--density-space)) 17px;
    grid-template-columns: minmax(240px, 1.2fr) auto minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    display: grid;
  }

  .payroll-run-select {
    flex-direction: column;
    gap: 6px;
    display: flex;
  }

  .payroll-run-select label {
    color: var(--text-3);
    letter-spacing: .4px;
    font-size: 12px;
    font-weight: 700;
  }

  .payroll-run-select select {
    width: 100%;
    height: calc(42px * var(--density-control));
    color: var(--navy-950);
    font: inherit;
    background: #fff;
    border: 1px solid #d6dfe4;
    border-radius: 10px;
    outline: 0;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
  }

  .payroll-period {
    color: var(--ink);
    direction: ltr;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 7px 10px;
    font-size: 13px;
    font-weight: 700;
    display: grid;
  }

  .payroll-period b {
    color: var(--text-3);
  }

  .payroll-period small {
    color: var(--text-3);
    grid-column: 1 / 4;
    font-size: 12px;
    font-weight: 600;
  }

  .payroll-status {
    white-space: nowrap;
    border: 1px solid;
    border-radius: 99px;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .status-draft {
    color: var(--text-2);
    background: #f7f9fa;
    border-color: #d7dfe3;
  }

  .status-review {
    color: #7d5700;
    background: #fff8e6;
    border-color: #ead291;
  }

  .status-approved, .status-paid, .status-locked {
    color: #087451;
    background: #ecf9f4;
    border-color: #acd9c9;
  }

  .status-cancelled {
    color: #a22d2d;
    background: #fff1f1;
    border-color: #ebc4c4;
  }

  .page-loader {
    min-height: calc(260px * var(--density-row));
    color: var(--muted);
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    display: flex;
  }

  .payroll-kpis {
    margin-bottom: calc(15px * var(--density-space));
    gap: calc(12px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    display: grid;
  }

  .payroll-kpi {
    min-height: calc(108px * var(--density-row));
    padding: calc(16px * var(--density-space)) 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    background: #fff;
    border-radius: 14px;
    align-items: flex-start;
    gap: 12px;
    display: flex;
    overflow: hidden;
  }

  .payroll-kpi > span {
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 39px;
    height: 39px;
    display: grid;
  }

  .payroll-kpi svg {
    width: 18px;
    height: 18px;
  }

  .payroll-kpi > div {
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    display: flex;
  }

  .payroll-kpi small {
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.4;
  }

  .payroll-kpi strong {
    color: var(--navy-950);
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.2;
  }

  .tone-blue > span {
    color: #245f95;
    background: #eaf3fa;
  }

  .tone-teal > span {
    color: #08766f;
    background: #e8f8f6;
  }

  .tone-green > span {
    color: #087451;
    background: #eaf8f2;
  }

  .tone-navy > span {
    color: #153e59;
    background: #eaf0f4;
  }

  .tone-amber > span {
    color: #a86800;
    background: #fff4db;
  }

  .payroll-workflow {
    min-height: calc(95px * var(--density-row));
    margin-bottom: calc(15px * var(--density-space));
    padding: calc(15px * var(--density-space)) 17px;
    grid-template-columns: repeat(4, minmax(135px, 1fr)) auto;
    align-items: center;
    gap: 10px;
    display: grid;
  }

  .workflow-step {
    align-items: center;
    gap: 10px;
    min-width: 0;
    display: flex;
    position: relative;
  }

  .workflow-step:not(:nth-child(4)):after {
    content: "";
    background: #e4e9ec;
    width: 1px;
    height: 34px;
    position: absolute;
    inset-inline-end: -5px;
  }

  .workflow-step > span {
    width: 35px;
    height: 35px;
    color: var(--text-3);
    background: #edf1f3;
    border-radius: 50%;
    flex: none;
    place-items: center;
    display: grid;
  }

  .workflow-step svg {
    width: 16px;
  }

  .workflow-step > div {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .workflow-step strong {
    color: #475c68;
    white-space: nowrap;
    font-size: 12px;
  }

  .workflow-step small {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    overflow: hidden;
  }

  .workflow-step.active > span {
    color: #775200;
    background: var(--yellow);
    box-shadow: 0 0 0 4px #fff7dc;
  }

  .workflow-step.done > span {
    color: #fff;
    background: var(--green);
  }

  .workflow-step.done strong, .workflow-step.active strong {
    color: var(--navy-950);
  }

  .workflow-actions {
    justify-content: flex-end;
    display: flex;
  }

  .payroll-tabs .tab-alert {
    color: #8a5d00 !important;
    background: #ffe8a8 !important;
  }

  .payroll-register, .payroll-exceptions, .payroll-run-body {
    overflow: hidden;
  }

  .payroll-register .card-head, .payroll-exceptions .card-head {
    padding: calc(18px * var(--density-space)) 18px;
  }

  .payroll-register .search-box, .run-body-head .search-box {
    flex: none;
    width: min(320px, 100%);
    min-width: 0;
  }

  .payroll-table {
    min-width: 1120px;
  }

  .payroll-table tbody tr.payroll-row {
    cursor: pointer;
  }

  .payroll-table tbody tr.payroll-row:hover, .payroll-table tbody tr.payroll-row-open {
    background: #f4f8fa;
  }

  .payroll-table th:not(:first-child), .payroll-table td:not(:first-child) {
    text-align: end;
  }

  .payroll-table th:last-child, .payroll-table .payroll-row td:last-child {
    width: 38px;
  }

  .payroll-row-toggle {
    width: 34px;
    height: 34px;
    color: var(--navy-700);
    cursor: pointer;
    background: none;
    border: 1px solid #0000;
    border-radius: 9px;
    place-items: center;
    margin-inline-start: auto;
    padding: 0;
    display: grid;
  }

  .payroll-row-toggle:hover {
    border-color: var(--line);
    background: #fff;
  }

  .payroll-table tbody tr.payroll-detail-row, .payroll-table tbody tr.payroll-detail-row:hover {
    cursor: default;
    background: #f4f8fa;
  }

  .payroll-table .payroll-detail-row > td {
    text-align: start;
    width: auto;
    padding: 0;
  }

  .payroll-table td {
    font-variant-numeric: tabular-nums;
  }

  .table-sub {
    color: var(--text-3);
    margin-top: 3px;
    font-size: 11px;
    display: block;
  }

  .negative-money {
    color: #aa4242;
  }

  .net-money {
    color: #075d42;
  }

  .payroll-table .rotate {
    transform: rotate(180deg);
  }

  .payroll-table svg {
    transition: transform .18s;
  }

  .payroll-register .table-wrap, .payroll-run-body .table-wrap {
    container-type: inline-size;
  }

  .payslip-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 16px 0;
    display: flex;
  }

  .payroll-breakdown {
    background: #f8fbfc;
    border: 1px solid #cbdbe4;
    border-radius: 14px;
    width: calc(100cqi - 32px);
    max-width: calc(100% - 32px);
    margin: 4px 16px 18px;
    display: block;
    position: sticky;
    inset-inline-start: 0;
    overflow: hidden;
    box-shadow: inset 0 3px #d9e9f1;
  }

  .payroll-breakdown > header {
    border-bottom: 1px solid #dce6eb;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    display: flex;
  }

  .payroll-breakdown h3 {
    color: var(--navy-950);
    margin: 3px 0 0;
    font-size: 16px;
  }

  .breakdown-groups {
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 12px;
    padding: 15px;
    display: grid;
  }

  .breakdown-groups section {
    background: #fff;
    border: 1px solid #dde6ea;
    border-radius: 12px;
    flex-direction: column;
    padding: 14px;
    display: flex;
  }

  .breakdown-groups h4 {
    color: var(--text-2);
    letter-spacing: .4px;
    text-transform: uppercase;
    margin: 0 0 11px;
    font-size: 12px;
  }

  .breakdown-line {
    border-bottom: 1px dashed #e4e9ec;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 8px 0;
    display: flex;
  }

  .breakdown-line > span {
    color: #4c606b;
    overflow-wrap: anywhere;
    min-width: 0;
    font-size: 12px;
  }

  .breakdown-line > strong {
    flex: none;
  }

  .breakdown-empty {
    color: var(--text-3);
    margin: 0;
    padding: 8px 0 2px;
    font-size: 12px;
  }

  .breakdown-line small {
    color: var(--text-3);
    margin-top: 4px;
    font-size: 11px;
    display: block;
  }

  .breakdown-line strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
  }

  .breakdown-groups footer {
    color: var(--text-3);
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 12px;
    display: flex;
  }

  .breakdown-groups footer b {
    color: var(--navy-950);
    font-size: 12px;
  }

  .breakdown-net {
    color: #fff;
    background: var(--navy-900);
    justify-content: space-between;
    align-items: center;
    min-height: 66px;
    padding: 13px 18px;
    display: flex;
  }

  .breakdown-net span {
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    display: flex;
  }

  .breakdown-net small {
    color: #b9cbd5;
    font-size: 11px;
  }

  .breakdown-net strong {
    font-size: 19px;
  }

  .exception-summary {
    flex-wrap: wrap;
    gap: 6px;
    display: flex;
  }

  .exception-summary span, .severity-pill {
    text-transform: capitalize;
    border-radius: 99px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 700;
  }

  .sev-critical {
    color: #a12323;
    background: #ffe7e7;
  }

  .sev-high {
    color: #9b5600;
    background: #ffedd4;
  }

  .sev-medium {
    color: #785c00;
    background: #fff4c8;
  }

  .sev-low {
    color: #286b83;
    background: #e3f4fa;
  }

  .exception-filter {
    color: var(--text-2);
    background: #f3f8fa;
    border: 1px solid #cfe0e8;
    border-radius: 10px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 18px 12px;
    padding: 10px 12px;
    font-size: 12px;
    display: flex;
  }

  .exception-filter svg {
    color: #245f95;
    flex: none;
  }

  .exception-filter b {
    color: var(--navy-950);
  }

  .exception-filter .text-link {
    margin-inline-start: auto;
  }

  .exception-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    display: flex;
  }

  .exception-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .exception-guidance {
    color: var(--text-2);
  }

  .exception-resolution {
    color: #4c606b;
  }

  .payroll-decision-modal {
    width: min(560px, 100%);
  }

  .payroll-decision-modal form {
    padding: 20px 24px 24px;
  }

  .payroll-decision-modal .modal-head p {
    color: var(--muted);
  }

  .exception-list {
    padding: 0 18px 12px;
  }

  .exception-row {
    border-bottom: 1px solid #e8edef;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 86px;
    padding: 14px 0;
    display: grid;
  }

  .exception-row:last-child {
    border: 0;
  }

  .exception-icon {
    color: #9b6400;
    background: #fff3d5;
    border-radius: 10px;
    place-items: center;
    width: 38px;
    height: 38px;
    display: grid;
  }

  .severity-critical .exception-icon {
    color: #aa2727;
    background: #ffeaea;
  }

  .exception-title {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .exception-title strong {
    color: var(--ink);
    font-size: 14px;
  }

  .exception-row p {
    color: var(--text-2);
    margin: 5px 0;
    font-size: 12px;
  }

  .exception-row > div > small {
    color: var(--text-3);
    letter-spacing: .5px;
    font-size: 11px;
  }

  .empty-state {
    min-height: 190px;
    color: var(--text-3);
    place-content: center;
    justify-items: center;
    gap: 8px;
    display: grid;
  }

  .empty-state svg {
    width: 28px;
    height: 28px;
  }

  .empty-state p {
    margin: 0;
    font-size: 13px;
  }

  .empty-state .text-link {
    font-size: 12px;
  }

  .payroll-run-scope {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    display: flex;
  }

  .payroll-empty {
    margin-bottom: 15px;
  }

  .empty-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    display: flex;
  }

  .payroll-groups {
    margin-bottom: 15px;
  }

  .payroll-groups .legal-note {
    margin: 0 18px 14px;
  }

  .payroll-employee-picker {
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 6px;
  }

  .payroll-employee-picker .card-head {
    padding: 14px 0 10px;
  }

  .payroll-employee-picker h4 {
    color: var(--navy-950);
    margin: 0;
    font-size: 14px;
  }

  .payroll-employee-picker .card-head p {
    color: var(--text-3);
    margin: 4px 0 0;
    font-size: 12px;
  }

  .picker-list {
    border: 1px solid var(--line);
    border-radius: 10px;
    max-height: 230px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
  }

  .picker-list li {
    border-bottom: 1px solid #eef2f4;
  }

  .picker-list li:last-child {
    border: 0;
  }

  .picker-list label {
    cursor: pointer;
    color: var(--text-2);
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    display: flex;
  }

  .picker-list label:hover {
    background: #f7fafb;
  }

  .picker-list input {
    width: 16px;
    height: 16px;
    accent-color: var(--navy-700);
    flex: none;
  }

  .payroll-group-row {
    cursor: pointer;
  }

  .payroll-group-row:hover {
    background: #f7fafb;
  }

  .payroll-group-members {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 16px;
  }

  .payroll-group-members .card-head {
    padding: 8px 0 10px;
  }

  .payroll-group-members h4 {
    color: var(--navy-950);
    margin: 0;
    font-size: 14px;
  }

  .payroll-group-members .card-head p {
    color: var(--text-3);
    margin: 4px 0 0;
    font-size: 12px;
  }

  .member-row {
    color: var(--text-2);
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    display: flex;
  }

  .member-row .btn {
    padding: 4px 10px;
    font-size: 12px;
  }

  .member-empty {
    color: var(--text-3);
    justify-content: center;
  }

  .member-add {
    align-items: flex-start;
    gap: 10px;
    display: flex;
  }

  .member-add .search-select {
    flex: auto;
    min-width: 0;
  }

  .member-add .btn {
    flex: none;
    height: 42px;
  }

  .payroll-rules-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    display: grid;
  }

  .payroll-rule {
    min-height: 245px;
    padding: 18px;
  }

  .payroll-rule header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    display: flex;
  }

  .payroll-rule > small {
    color: var(--text-3);
    letter-spacing: .6px;
    font-size: 11px;
  }

  .payroll-rule h3 {
    min-height: 40px;
    color: var(--navy-950);
    margin: 7px 0 12px;
    font-size: 14px;
    line-height: 1.45;
  }

  .payroll-rule > strong {
    color: var(--green);
    font-size: 20px;
    display: block;
  }

  .payroll-rule p {
    min-height: 42px;
    color: var(--muted);
    margin: 10px 0 14px;
    font-size: 12px;
    line-height: 1.55;
  }

  .payroll-rule a {
    color: #245f95;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .payroll-legal {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: 12px;
  }

  .payroll-modal {
    width: min(740px, 100%);
  }

  .payroll-modal form {
    padding: 2px 24px 24px;
  }

  .payroll-modal .form-grid {
    padding-top: 20px;
  }

  .modal-info {
    color: var(--text-2);
    background: #f3f8fa;
    border: 1px solid #cfe0e8;
    border-radius: 10px;
    align-items: flex-start;
    gap: 9px;
    margin-top: 16px;
    padding: 12px 13px;
    font-size: 12px;
    line-height: 1.55;
    display: flex;
  }

  .modal-info svg {
    color: #245f95;
    flex: none;
  }

  @media (max-width: 1180px) {
    .payroll-kpis {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .payroll-workflow {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-step:nth-child(2):after {
      display: none;
    }

    .workflow-actions {
      grid-column: 1 / -1;
    }

    .payroll-rules-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payroll-runbar {
      grid-template-columns: minmax(240px, 1fr) auto auto;
      row-gap: 12px;
    }

    .payroll-run-scope {
      grid-column: 2 / -1;
    }

    .payroll-period {
      grid-column: 1 / 2;
    }
  }

  @media (max-width: 820px) {
    .payroll-runbar {
      grid-template-columns: 1fr auto;
    }

    .payroll-run-select, .payroll-run-scope {
      grid-column: 1 / -1;
    }

    .payroll-period {
      justify-self: start;
    }

    .payroll-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payroll-register .card-head, .payroll-exceptions .card-head {
      flex-direction: column;
      align-items: stretch;
    }

    .payroll-register .search-box {
      width: 100%;
    }

    .payroll-table {
      min-width: 1050px;
    }
  }

  @media (max-width: 560px) {
    .toast {
      top: 70px;
    }

    .payroll-runbar {
      grid-template-columns: 1fr;
    }

    .empty-actions .btn {
      justify-content: center;
      width: 100%;
    }

    .member-add {
      flex-direction: column;
    }

    .member-add .btn {
      justify-content: center;
      width: 100%;
    }

    .payroll-period, .payroll-status, .payroll-runbar > .btn {
      width: 100%;
    }

    .payroll-period, .payroll-runbar > .btn {
      justify-content: center;
    }

    .payroll-kpis {
      grid-template-columns: 1fr;
    }

    .payroll-kpi {
      min-height: calc(94px * var(--density-row));
    }

    .payroll-workflow {
      grid-template-columns: 1fr;
    }

    .workflow-step:after {
      display: none !important;
    }

    .workflow-actions {
      grid-column: auto;
    }

    .workflow-actions .btn {
      width: 100%;
    }

    .payroll-tabs {
      overflow-x: auto;
    }

    .payroll-tabs button {
      flex: none;
    }

    .payroll-rules-grid {
      grid-template-columns: 1fr;
    }

    .exception-row {
      grid-template-columns: 34px 1fr;
    }

    .exception-row > .exception-side {
      grid-column: 2;
      align-items: flex-start;
    }

    .exception-actions {
      justify-content: flex-start;
    }

    .payroll-decision-modal form {
      padding: 16px 18px 18px;
    }

    .exception-summary {
      margin-top: 8px;
    }

    .breakdown-net {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .payroll-modal form {
      padding: 2px 18px 18px;
    }
  }

  .dashboard-clear {
    color: #087451;
    background: linear-gradient(#fff, #f7fcfa);
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 112px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
  }

  .dashboard-clear.compact {
    background: none;
    min-height: 116px;
  }

  .activity-dot.blue {
    background: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft);
  }

  .btn-danger {
    color: #fff;
    background: #a62e2e;
    border-color: #a62e2e;
  }

  .btn-danger:hover {
    color: #fff;
    background: #8d2424;
    border-color: #8d2424;
  }

  .approval-register, .permit-register {
    overflow: hidden;
  }

  .approval-table {
    min-width: 1050px;
  }

  .approval-table td:nth-child(3) {
    max-width: 310px;
  }

  .approval-detail {
    color: var(--text-2);
    margin-bottom: 7px;
    line-height: 1.6;
    display: block;
  }

  .approval-empty {
    color: #087451;
    text-align: center;
    place-content: center;
    justify-items: center;
    gap: 7px;
    min-height: 230px;
    display: grid;
  }

  .approval-empty strong {
    color: var(--navy-950);
    margin-top: 5px;
    font-size: 14px;
  }

  .approval-empty span {
    color: var(--muted);
    font-size: 13px;
  }

  .approval-modal {
    width: min(640px, 100%);
  }

  .approval-modal form, .permit-modal form {
    padding: 2px 24px 24px;
  }

  .approval-decision-summary {
    border: 1px solid var(--line);
    background: #f8fafb;
    border-radius: 12px;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    display: flex;
  }

  .approval-decision-summary > div {
    min-width: 0;
  }

  .approval-decision-summary strong {
    color: var(--navy-950);
    font-size: 14px;
  }

  .approval-decision-summary p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .approval-decision-icon {
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    display: grid;
  }

  .approval-decision-icon.approved {
    color: #087451;
    background: var(--green-soft);
  }

  .approval-decision-icon.rejected {
    color: #a62e2e;
    background: var(--red-soft);
  }

  .field {
    color: #445864;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .field.wide {
    grid-column: 1 / -1;
  }

  .field > input, .field > select, .field > textarea {
    width: 100%;
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    outline: 0;
    padding: 0 11px;
    font-weight: 500;
  }

  .field > input, .field > select {
    height: 42px;
  }

  .field > textarea {
    resize: vertical;
    min-height: 94px;
    padding-block: 10px;
  }

  .field > input:focus, .field > select:focus, .field > textarea:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .search-select {
    min-width: 0;
    position: relative;
  }

  .search-select input {
    width: 100%;
    height: 42px;
    color: var(--ink);
    font: inherit;
    text-overflow: ellipsis;
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    outline: 0;
    padding-inline: 11px 58px;
    font-size: 13px;
    font-weight: 500;
  }

  .search-select input:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .search-select input::placeholder {
    color: var(--text-3);
    opacity: .85;
  }

  .search-select.is-disabled input {
    color: var(--text-3);
    cursor: not-allowed;
    background: #f4f6f8;
  }

  .search-select-affix {
    top: 0;
    height: 42px;
    color: var(--text-3);
    pointer-events: none;
    align-items: center;
    gap: 2px;
    display: flex;
    position: absolute;
    inset-inline-end: 9px;
  }

  .search-select-affix button {
    width: 24px;
    height: 24px;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
    background: none;
    border: 0;
    border-radius: 6px;
    place-items: center;
    display: grid;
  }

  .search-select-affix button:hover {
    color: #a62e2e;
    background: var(--red-soft);
  }

  .search-select-affix svg:last-child {
    transition: transform .18s;
  }

  .search-select-affix svg:last-child.is-open {
    transform: rotate(180deg);
  }

  .search-select-menu {
    top: 48px;
    z-index: 80;
    border: 1px solid var(--line);
    max-height: 284px;
    box-shadow: var(--shadow-md);
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    position: absolute;
    inset-inline: 0;
    overflow-y: auto;
  }

  .search-option {
    width: 100%;
    min-height: 38px;
    color: var(--text-2);
    cursor: pointer;
    text-align: start;
    background: none;
    border: 0;
    border-radius: 8px;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
  }

  .search-option span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .search-option.is-highlighted {
    background: var(--canvas);
    color: var(--navy-950);
  }

  .search-option.is-selected {
    color: var(--navy-950);
    font-weight: 600;
  }

  .search-option.is-selected svg {
    color: var(--green);
    flex: none;
  }

  .search-select-note {
    color: var(--text-3);
    padding: 9px 11px;
    font-size: 12px;
  }

  .search-select-chips {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
    display: flex;
  }

  .search-chip {
    background: var(--blue-soft);
    color: #245f95;
    border-radius: 99px;
    align-items: center;
    gap: 5px;
    padding: 4px 6px 4px 9px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
  }

  [dir="rtl"] .search-chip {
    padding: 4px 9px 4px 6px;
  }

  .search-chip button {
    width: 17px;
    height: 17px;
    color: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 50%;
    place-items: center;
    display: grid;
  }

  .search-chip button:hover {
    background: #245f9526;
  }

  .approval-modal > .modal-head + form > .field {
    margin-top: 17px;
  }

  .leave-decision-modal {
    width: min(520px, 100%);
  }

  .leave-decision-modal > form {
    padding: 0 24px 24px;
  }

  .leave-decision-modal .field {
    margin-top: 17px;
  }

  .leave-decision-modal .field > textarea {
    min-height: 76px;
  }

  .leave-decision-facts {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 7px 18px;
    min-width: 0;
    margin: 0;
    display: grid;
  }

  .leave-decision-facts dt {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .leave-decision-facts dd {
    min-width: 0;
    color: var(--navy-950);
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
  }

  .leave-decision-modal .approval-decision-summary {
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
  }

  @media (max-width: 560px) {
    .leave-decision-facts {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 2px;
    }

    .leave-decision-facts dd:not(:last-child) {
      margin-bottom: 9px;
    }
  }

  .protected-number {
    color: #415a68;
    letter-spacing: .4px;
    direction: ltr;
    background: #f7f9fa;
    border: 1px solid #d9e2e7;
    border-radius: 8px;
    align-items: center;
    gap: 7px;
    min-width: 94px;
    padding: 7px 9px;
    font-family: Consolas, Courier New, monospace;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .metric-sub {
    color: var(--text-3);
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    display: block;
  }

  .owner-select {
    border: 1px solid var(--line);
    min-width: 150px;
    height: 37px;
    color: var(--text-3);
    background: #fff;
    border-radius: 10px;
    align-items: center;
    gap: 6px;
    padding-inline: 9px;
    display: flex;
  }

  .owner-select select {
    color: #4e606b;
    background: none;
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    font-size: 12px;
  }

  .owner-select:has(select:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .permit-current {
    color: #087451;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .permit-modal {
    width: min(760px, 100%);
  }

  .renewal-overview {
    background: #dbe4e9;
    border: 1px solid #dbe4e9;
    border-radius: 12px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 20px;
    padding: 14px;
    display: grid;
    overflow: hidden;
  }

  .renewal-overview span {
    background: #f7fafb;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-height: 58px;
    padding: 10px 12px;
    display: flex;
  }

  .renewal-overview small {
    color: var(--text-3);
    font-size: 11px;
  }

  .renewal-overview strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  @media (max-width: 820px) {
    .approval-table {
      min-width: 1000px;
    }

    .summary-strip .summary-item:last-child:nth-child(odd) {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 560px) {
    .page-actions {
      flex-wrap: wrap;
    }

    .page-actions .btn {
      min-width: calc(50% - 5px);
    }

    .approval-modal form, .permit-modal form {
      padding: 2px 18px 18px;
    }

    .field.wide {
      grid-column: auto;
    }

    .renewal-overview {
      grid-template-columns: 1fr;
    }

    .approval-decision-summary {
      align-items: flex-start;
    }
  }

  .page-eyebrow {
    color: var(--text-3);
    letter-spacing: 1.2px;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    display: block;
  }

  .bi-copy em {
    width: max-content;
    color: var(--text-2);
    letter-spacing: .4px;
    background: #eef3f5;
    border-radius: 6px;
    margin-top: 5px;
    padding: 2px 6px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
  }

  .tabs {
    margin-bottom: calc(16px * var(--density-space));
    box-shadow: none;
    scrollbar-width: thin;
    background: none;
    border: 0;
    align-items: center;
    gap: 6px;
    padding: 2px;
    display: flex;
    overflow-x: auto;
  }

  .tabs button {
    min-width: max-content;
    height: calc(38px * var(--density-control));
    color: var(--text-2);
    cursor: pointer;
    background: none;
    border: 1px solid #0000;
    border-radius: 10px;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
  }

  .tabs button:hover {
    color: var(--navy-950);
    background: #ffffffa6;
  }

  .tabs button.active {
    color: var(--navy-950);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
    background: #fff;
  }

  .org-kpis, .recruitment-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    display: grid;
  }

  .org-kpi, .recruitment-kpi {
    min-height: calc(111px * var(--density-row));
    padding: calc(17px * var(--density-space)) 17px;
    align-items: flex-start;
    gap: 12px;
    display: flex;
    overflow: hidden;
  }

  .org-kpi-icon {
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 41px;
    height: 41px;
    display: grid;
  }

  .org-kpi-icon svg {
    width: 19px;
    height: 19px;
  }

  .org-kpi-icon.blue {
    color: #245f95;
    background: #eaf3fa;
  }

  .org-kpi-icon.green {
    color: #087451;
    background: #eaf8f2;
  }

  .org-kpi-icon.amber {
    color: #a86800;
    background: #fff4db;
  }

  .org-kpi-icon.purple {
    color: #6d4aa2;
    background: #f2ebfb;
  }

  .org-kpi-icon.red {
    color: #a62e2e;
    background: #fff0f0;
  }

  .org-kpi-icon.teal {
    color: #08766f;
    background: #e8f8f6;
  }

  .org-kpi-icon.gray {
    color: var(--text-2);
    background: #eef2f4;
  }

  .org-kpi > div, .recruitment-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .org-kpi small, .recruitment-kpi small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .org-kpi strong, .recruitment-kpi strong {
    color: var(--navy-950);
    margin-top: 7px;
    font-size: 25px;
    line-height: 1;
  }

  .org-kpi p, .recruitment-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 8px 0 0;
    font-size: 12px;
    overflow: hidden;
  }

  .org-register, .recruitment-register {
    overflow: hidden;
  }

  .org-table {
    min-width: 1120px;
  }

  .org-table.title-table {
    min-width: 940px;
  }

  .org-description {
    max-width: 270px;
    color: var(--text-2);
    line-height: 1.55;
  }

  .org-structure {
    border: 1px solid var(--line);
    min-height: 460px;
    box-shadow: var(--shadow-sm);
    background: radial-gradient(circle at top, #f5fafc, #eef3f5 58%, #e8edef);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
  }

  .org-root {
    border-top: 3px solid var(--yellow);
    align-items: center;
    gap: 14px;
    width: min(430px, 100%);
    margin: auto;
    padding: 18px;
    display: flex;
  }

  .org-root > span {
    color: #fff;
    background: var(--navy-900);
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    display: grid;
  }

  .org-root h2 {
    color: var(--navy-950);
    margin: 3px 0 0;
    font-size: 18px;
  }

  .org-root small {
    color: var(--text-3);
    letter-spacing: .7px;
    font-size: 11px;
    font-weight: 700;
  }

  .org-root p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 12px;
  }

  .org-connector {
    background: #9eb2bd;
    width: 1px;
    height: 37px;
    margin: auto;
  }

  .org-structure-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    display: grid;
    position: relative;
  }

  .org-structure-columns:before {
    content: "";
    background: #9eb2bd;
    height: 1px;
    position: absolute;
    top: -1px;
    left: 25%;
    right: 25%;
  }

  .org-structure-columns > section > header {
    color: #fff;
    background: var(--navy-800);
    border-radius: 99px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 180px;
    margin: 0 auto 13px;
    padding: 9px 13px;
    font-size: 12px;
    display: flex;
  }

  .org-structure-columns > section > header span {
    min-width: 21px;
    height: 21px;
    color: var(--navy-950);
    background: var(--yellow);
    border-radius: 50%;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    display: grid;
  }

  .org-structure-columns > section > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    display: grid;
  }

  .org-node {
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    min-height: 86px;
    padding: 14px;
    display: flex;
  }

  .org-node > div {
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    display: flex;
  }

  .org-node strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    overflow: hidden;
  }

  .org-node small {
    color: var(--text-3);
    font-size: 11px;
  }

  .org-node > span {
    max-width: 45%;
    color: var(--text-2);
    text-align: end;
    font-size: 11px;
    line-height: 1.5;
  }

  .org-node .manager-gap {
    color: #986600;
  }

  .organization-modal {
    width: min(820px, 100%);
  }

  .recruitment-modal form {
    padding: 2px 24px 24px;
  }

  .organization-modal > form > .modal-body {
    padding: 2px 24px 20px;
  }

  .recruitment-table {
    min-width: 1120px;
  }

  .recruitment-table td {
    height: calc(76px * var(--density-row));
  }

  .seat-progress {
    background: #e7ecef;
    border-radius: 99px;
    width: 72px;
    height: 5px;
    margin-top: 7px;
    overflow: hidden;
  }

  .seat-progress i {
    background: var(--green);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .decision-actions .btn {
    border-radius: 10px;
    width: auto;
    height: 32px;
    min-height: 32px;
    padding-inline: 10px;
    display: flex;
  }

  .stage-badge {
    white-space: nowrap;
    border-radius: 99px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .stage-badge.sourced {
    color: #245f95;
    background: #eaf3fa;
  }

  .stage-badge.screening {
    color: #6d4aa2;
    background: #f2ebfb;
  }

  .stage-badge.interview {
    color: #a86800;
    background: #fff4db;
  }

  .stage-badge.assessment {
    color: #0b6f74;
    background: #e5f5f5;
  }

  .stage-badge.offer {
    color: #087451;
    background: #eaf8f2;
  }

  .stage-badge.hired {
    color: #fff;
    background: #087451;
  }

  .stage-badge.rejected {
    color: #a62e2e;
    background: #fff0f0;
  }

  .stage-badge.withdrawn {
    color: var(--text-2);
    background: #eef2f4;
  }

  .pipeline-board {
    scrollbar-width: thin;
    background: #f4f7f8;
    grid-template-columns: repeat(5, minmax(235px, 1fr));
    gap: 10px;
    min-height: 440px;
    padding: 14px;
    display: grid;
    overflow-x: auto;
  }

  .pipeline-column {
    background: #edf2f4;
    border: 1px solid #dce4e8;
    border-radius: 12px;
    min-width: 235px;
    overflow: hidden;
  }

  .pipeline-column > header {
    background: #fff;
    border-bottom: 1px solid #dce4e8;
    justify-content: space-between;
    align-items: center;
    min-height: 47px;
    padding: 0 12px;
    display: flex;
  }

  .pipeline-column > header strong {
    color: var(--navy-950);
    font-size: 12px;
  }

  .pipeline-column > header span {
    min-width: 24px;
    height: 24px;
    color: var(--text-2);
    background: #edf2f4;
    border-radius: 8px;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    display: grid;
  }

  .pipeline-column > div {
    flex-direction: column;
    gap: 8px;
    max-height: 560px;
    padding: 9px;
    display: flex;
    overflow-y: auto;
  }

  .candidate-card {
    width: 100%;
    min-height: 116px;
    color: inherit;
    cursor: pointer;
    text-align: start;
    background: #fff;
    border: 1px solid #d8e1e6;
    border-radius: 12px;
    grid-template-columns: 35px 1fr;
    align-items: center;
    gap: 4px 9px;
    padding: 12px;
    display: grid;
    box-shadow: 0 2px 6px #102c3b0a;
  }

  .candidate-card:hover {
    border-color: #aebfc8;
    transform: translateY(-1px);
  }

  .candidate-card .employee-avatar {
    grid-row: 1 / 4;
    width: 35px;
    height: 35px;
  }

  .candidate-card strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .candidate-card small {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    overflow: hidden;
  }

  .candidate-card em {
    color: var(--text-3);
    font-size: 11px;
    font-style: normal;
  }

  .pipeline-empty {
    min-height: 90px;
    color: var(--text-3);
    place-items: center;
    font-size: 12px;
    display: grid;
  }

  .recruitment-modal {
    width: min(860px, 100%);
  }

  .recruitment-modal select[multiple] {
    height: auto;
    min-height: 96px;
    padding-block: 6px;
  }

  .consent-field {
    min-height: 58px;
    color: var(--text-2);
    background: #f4f9fb;
    border: 1px solid #ccdde5;
    border-radius: 10px;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    font-size: 12px;
    line-height: 1.6;
    display: flex;
  }

  .consent-field input {
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
  }

  .consent-field.wide {
    grid-column: 1 / -1;
  }

  .candidate-modal-summary {
    border: 1px solid var(--line);
    background: #f7fafb;
    border-radius: 12px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 13px 14px;
    display: flex;
  }

  .candidate-modal-summary strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .candidate-modal-summary span {
    color: var(--text-2);
    font-size: 12px;
  }

  @media (max-width: 1180px) {
    .org-kpis, .recruitment-kpis {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .org-structure-columns > section > div {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 820px) {
    .org-kpis, .recruitment-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .org-structure {
      padding: 16px;
      overflow-x: auto;
    }

    .org-structure-columns {
      min-width: 650px;
    }

    .org-table, .recruitment-table {
      min-width: 1060px;
    }

    .pipeline-board {
      grid-template-columns: repeat(5, 245px);
    }
  }

  @media (max-width: 560px) {
    .org-kpis, .recruitment-kpis {
      grid-template-columns: 1fr;
    }

    .org-kpi, .recruitment-kpi {
      min-height: calc(94px * var(--density-row));
    }

    .org-tabs, .recruitment-tabs {
      margin-inline: -4px;
    }

    .recruitment-modal form {
      padding: 2px 18px 18px;
    }

    .consent-field.wide {
      grid-column: auto;
    }

    .candidate-modal-summary {
      flex-direction: column;
      align-items: flex-start;
    }

    .pipeline-board {
      grid-template-columns: repeat(5, 250px);
      margin-inline: -1px;
      padding: 10px;
    }
  }

  .lifecycle-kpis {
    gap: calc(13px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .asset-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    display: grid;
  }

  .lifecycle-kpi, .asset-kpi {
    min-height: calc(108px * var(--density-row));
    padding: calc(17px * var(--density-space)) 17px;
    align-items: flex-start;
    gap: 12px;
    display: flex;
    overflow: hidden;
  }

  .lifecycle-kpi > div, .asset-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .lifecycle-kpi small, .asset-kpi small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .lifecycle-kpi strong, .asset-kpi strong {
    color: var(--navy-950);
    margin-top: 7px;
    font-size: 25px;
    line-height: 1;
  }

  .lifecycle-kpi p, .asset-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 8px 0 0;
    font-size: 12px;
    overflow: hidden;
  }

  .lifecycle-register, .asset-register {
    overflow: hidden;
  }

  .lifecycle-table {
    min-width: 962px;
  }

  .lifecycle-table td {
    height: calc(82px * var(--density-row));
  }

  .lifecycle-table th, .lifecycle-table td {
    padding-inline: 10px;
  }

  .lifecycle-table th {
    white-space: normal;
  }

  .lifecycle-table .employee-cell {
    min-width: 0;
  }

  .lifecycle-table .coordinator-cell {
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .lifecycle-table .metric-sub {
    white-space: normal;
  }

  .employee-cell .case-code span {
    white-space: nowrap;
    display: inline;
  }

  .lifecycle-table .decision-actions {
    flex-wrap: wrap;
    row-gap: 4px;
    min-width: 200px;
  }

  .lifecycle-table th:first-child {
    width: 26%;
  }

  .lifecycle-table th:nth-child(2), .lifecycle-table th:nth-child(3) {
    width: 10%;
  }

  .lifecycle-table th:nth-child(4) {
    width: 12%;
  }

  .lifecycle-table th:nth-child(5) {
    width: 8%;
  }

  .lifecycle-table th:nth-child(6) {
    width: 11%;
  }

  .lifecycle-table th:nth-child(7) {
    width: 10%;
  }

  .lifecycle-table th:nth-child(8) {
    width: 13%;
  }

  .asset-table {
    min-width: 1130px;
  }

  .custody-table {
    min-width: 1080px;
  }

  .process-pill {
    white-space: nowrap;
    border-radius: 99px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .process-pill.onboarding {
    color: #245f95;
    background: #eaf3fa;
  }

  .process-pill.offboarding {
    color: #7a4b93;
    background: #f4ebf8;
  }

  .progress-cell {
    width: 104px;
    color: inherit;
    cursor: pointer;
    text-align: start;
    background: none;
    border: 1px solid #0000;
    border-radius: 10px;
    flex-direction: column;
    gap: 6px;
    margin-inline-start: -8px;
    padding: 6px 8px;
    display: flex;
  }

  .progress-cell:hover {
    border-color: var(--line);
    background: #f4f8fa;
  }

  .progress-cell:hover b {
    text-decoration: underline;
  }

  .progress-cell > span {
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .progress-cell b {
    color: var(--navy-950);
    font-size: 13px;
  }

  .progress-cell small {
    color: var(--text-3);
    font-size: 11px;
  }

  .progress-cell > i {
    background: #e5ebee;
    border-radius: 99px;
    width: 100%;
    height: 6px;
    overflow: hidden;
  }

  .progress-cell > i > em {
    background: linear-gradient(90deg,var(--navy-700),#2f8a9d);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .overdue-text {
    font-weight: 700;
    color: #a62e2e !important;
  }

  .action-task-cta {
    color: #7a5200;
    background: #fdf7ea;
    border-color: #e2c98d;
  }

  .action-task-cta:hover {
    background: #fbf1dc;
    border-color: #cfae62;
  }

  .decision-actions .action-task-cta {
    white-space: normal;
    text-align: start;
    max-width: 120px;
    height: auto;
    min-height: 32px;
    padding-block: 5px;
    line-height: 1.3;
  }

  .task-check-static {
    cursor: default;
  }

  .action-blocker {
    color: #986600;
    align-items: flex-start;
    gap: 5px;
    max-width: 100px;
    line-height: 1.4;
    display: inline-flex;
  }

  .action-blocker svg {
    flex: none;
    margin-top: 1px;
  }

  .lifecycle-modal {
    width: min(760px, 100%);
  }

  .lifecycle-modal form, .asset-modal form {
    padding: 2px 24px 24px;
  }

  .tasks-modal {
    width: min(780px, 100%);
  }

  .task-list {
    flex-direction: column;
    gap: 8px;
    max-height: min(590px, 65vh);
    padding: 8px 24px 18px;
    display: flex;
    overflow-y: auto;
  }

  .lifecycle-task {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    flex: none;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px;
    min-height: 77px;
    padding: 12px;
    display: grid;
  }

  .lifecycle-task .task-check {
    margin-top: 2px;
  }

  .task-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    display: flex;
  }

  .task-open {
    border-radius: 10px;
    min-height: 32px;
    padding-inline: 10px;
    text-decoration: none;
  }

  .lifecycle-task.completed, .lifecycle-task.waived {
    background: #f8fbfa;
  }

  .lifecycle-task.blocked {
    background: #fff8f8;
    border-color: #ebc6c6;
  }

  .task-check {
    color: #fff;
    cursor: pointer;
    background: #fff;
    border: 1px solid #ccd7dd;
    border-radius: 10px;
    place-items: center;
    width: 32px;
    height: 32px;
    display: grid;
  }

  .task-check > span {
    background: #dce4e8;
    border-radius: 4px;
    width: 9px;
    height: 9px;
  }

  .completed .task-check, .waived .task-check {
    background: #087451;
    border-color: #087451;
  }

  .lifecycle-task > div {
    min-width: 0;
  }

  .lifecycle-task strong {
    color: var(--navy-950);
    overflow-wrap: anywhere;
    font-size: 13px;
    display: block;
  }

  .lifecycle-task > .task-body > small {
    color: var(--text-3);
    overflow-wrap: anywhere;
    margin-top: 3px;
    font-size: 11px;
    display: block;
  }

  .lifecycle-task p {
    flex-wrap: wrap;
    gap: 5px;
    margin: 7px 0 0;
    display: flex;
  }

  .lifecycle-task p span {
    color: var(--text-2);
    background: #edf2f4;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 11px;
  }

  .modal-inline-error {
    margin: 0 24px;
  }

  .tasks-modal > .modal-actions {
    margin: 0;
  }

  .lifecycle-task.cancelled {
    background: #f7f9fa;
  }

  .lifecycle-task.cancelled strong {
    color: var(--text-3);
    text-decoration: line-through;
  }

  .row-cancel {
    color: #a62e2e;
  }

  .row-cancel:hover {
    background: var(--red-soft);
    border-color: #a62e2e;
  }

  .lifecycle-cancel-case {
    color: #a62e2e;
    border-color: #e3c1c1;
    margin-inline-end: auto;
  }

  .lifecycle-cancel-reason {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 220px;
    display: -webkit-box;
    overflow: hidden;
  }

  .lifecycle-cancel-points {
    color: var(--muted);
    margin: 6px 0 0;
    padding-inline-start: 18px;
    font-size: 12px;
    line-height: 1.7;
  }

  .lifecycle-open-case, .lifecycle-cancelled-banner {
    color: #8a5a00;
    background: #fff8e8;
    border: 1px solid #f0d9a8;
    border-radius: 12px;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    display: flex;
  }

  .lifecycle-open-case strong, .lifecycle-cancelled-banner strong {
    color: var(--navy-950);
    font-size: 13px;
    display: block;
  }

  .lifecycle-open-case p, .lifecycle-cancelled-banner p {
    color: var(--text-2);
    overflow-wrap: anywhere;
    margin: 4px 0 8px;
    font-size: 12px;
    line-height: 1.6;
  }

  .lifecycle-open-case > svg, .lifecycle-cancelled-banner > svg {
    flex: none;
    margin-top: 1px;
  }

  .lifecycle-open-case.wide {
    grid-column: 1 / -1;
  }

  .lifecycle-cancelled-banner {
    color: #a62e2e;
    background: #fff8f8;
    border-color: #ebc6c6;
    margin: 0 24px 6px;
  }

  .lifecycle-cancelled-banner p {
    margin-bottom: 0;
  }

  .condition-cell {
    color: #4b6471;
    background: #eef3f5;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .asset-modal {
    width: min(820px, 100%);
  }

  .asset-return-summary {
    border: 1px solid var(--line);
    background: #f7fafb;
    border-radius: 12px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px;
    display: flex;
  }

  .asset-return-summary strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .asset-return-summary span {
    color: var(--text-3);
    font-size: 12px;
  }

  .asset-open {
    text-align: start;
    padding: 0;
    font-size: 13px;
  }

  .asset-open:hover {
    text-underline-offset: 2px;
    text-decoration: underline;
  }

  .asset-modal.modal-shell .modal-body h4 {
    color: var(--navy-950);
    margin: 18px 0 8px;
    font-size: 13px;
  }

  .asset-timeline {
    border-inline-start: 1px solid #cbd7dc;
    margin: 0 0 6px;
    padding-inline-start: 11px;
  }

  .asset-timeline article {
    min-height: 48px;
    padding: 0 15px 15px;
    position: relative;
  }

  .asset-timeline i {
    inset-inline-start: -16px;
    background: #2f8093;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 9px;
    height: 9px;
    position: absolute;
    top: 1px;
    box-shadow: 0 0 0 1px #9eb8c2;
  }

  .asset-timeline strong {
    color: var(--navy-950);
    font-size: 12px;
    display: block;
  }

  .asset-timeline span {
    color: var(--text-3);
    margin-top: 4px;
    font-size: 11px;
    display: block;
  }

  .asset-timeline p {
    color: var(--text-2);
    margin: 6px 0 0;
    font-size: 12px;
  }

  .asset-timeline .asset-timeline-notes {
    white-space: pre-wrap;
    color: var(--text-3);
    font-style: italic;
  }

  .asset-history-empty {
    color: var(--text-3);
    margin: 0 0 12px;
    font-size: 12px;
  }

  .asset-custody-periods {
    min-width: 640px;
  }

  .asset-custody-periods td {
    height: auto;
    padding-block: 9px;
  }

  .asset-history-toolbar {
    flex-wrap: wrap;
  }

  .asset-history-toolbar .select-field {
    min-width: 150px;
    max-width: 260px;
  }

  .asset-history-employee {
    flex: 220px;
    min-width: 220px;
  }

  .asset-history-table {
    min-width: 1280px;
  }

  .asset-history-table td {
    height: auto;
    padding-block: calc(10px * var(--density-space));
  }

  .asset-event-name {
    color: var(--navy-950);
    font-size: 12px;
    display: block;
  }

  .asset-history-notes {
    max-width: 240px;
    color: var(--text-2);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  @media (max-width: 1180px) {
    .asset-kpis {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 820px) {
    .lifecycle-kpis, .asset-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .asset-table {
      min-width: 1070px;
    }
  }

  @media (max-width: 560px) {
    .lifecycle-kpis, .asset-kpis {
      grid-template-columns: 1fr;
    }

    .lifecycle-kpi, .asset-kpi {
      min-height: calc(94px * var(--density-row));
    }

    .lifecycle-modal form, .asset-modal form {
      padding: 2px 18px 18px;
    }

    .task-list {
      padding-inline: 14px;
    }

    .lifecycle-task {
      grid-template-columns: 31px minmax(0, 1fr);
    }

    .lifecycle-task > .task-side {
      flex-flow: wrap;
      grid-column: 2;
      align-items: center;
    }

    .modal-inline-error {
      margin-inline: 14px;
    }

    .asset-return-summary {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  .request-kpis {
    gap: calc(13px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .document-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    display: grid;
  }

  .request-kpi, .document-kpi {
    min-height: calc(108px * var(--density-row));
    padding: calc(17px * var(--density-space)) 17px;
    align-items: flex-start;
    gap: 12px;
    display: flex;
    overflow: hidden;
  }

  .request-kpi > div, .document-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .request-kpi small, .document-kpi small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .request-kpi strong, .document-kpi strong {
    color: var(--navy-950);
    margin-top: 7px;
    font-size: 25px;
    line-height: 1;
  }

  .request-kpi p, .document-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 8px 0 0;
    font-size: 12px;
    overflow: hidden;
  }

  .request-register, .document-register {
    overflow: hidden;
  }

  .request-table {
    min-width: 1240px;
  }

  .request-table td {
    height: calc(84px * var(--density-row));
  }

  .letter-table {
    min-width: 990px;
  }

  .template-table {
    min-width: 930px;
  }

  .request-reference {
    max-width: 260px;
    color: inherit;
    cursor: pointer;
    text-align: start;
    background: none;
    border: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 0;
    display: flex;
  }

  .request-reference strong {
    color: #185477;
    font-size: 12px;
  }

  .request-reference span {
    max-width: 100%;
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
  }

  .request-reference:hover strong {
    text-decoration: underline;
  }

  .inline-select {
    border: 1px solid var(--line);
    min-width: 145px;
    height: 35px;
    color: var(--text-2);
    background: #fff;
    border-radius: 8px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .letter-ready {
    color: #087451;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
  }

  .request-modal {
    width: min(780px, 100%);
  }

  .request-modal form, .document-modal form {
    padding: 2px 24px 24px;
  }

  .request-detail-grid {
    background: #dce4e8;
    border: 1px solid #dce4e8;
    border-radius: 12px;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0 24px 18px;
    display: grid;
    overflow: hidden;
  }

  .request-detail-grid > span {
    background: #f8fafb;
    flex-direction: column;
    gap: 7px;
    min-height: 67px;
    padding: 11px;
    display: flex;
  }

  .request-detail-grid small {
    color: var(--text-3);
    font-size: 11px;
  }

  .request-detail-grid strong {
    color: var(--navy-950);
    font-size: 12px;
  }

  .request-resolution {
    color: #087451;
    background: #f0faf6;
    border: 1px solid #b9dfd1;
    border-radius: 10px;
    align-items: flex-start;
    gap: 10px;
    margin: 0 24px 18px;
    padding: 13px;
    display: flex;
  }

  .request-resolution svg {
    flex: none;
  }

  .request-resolution strong {
    font-size: 12px;
  }

  .request-resolution p {
    color: #46665a;
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .request-timeline {
    border-inline-start: 1px solid #cbd7dc;
    max-height: 340px;
    margin: 0 24px 18px;
    padding-inline-start: 11px;
    overflow-y: auto;
  }

  .request-timeline article {
    min-height: 58px;
    padding: 0 15px 15px;
    position: relative;
  }

  .request-timeline i {
    inset-inline-start: -16px;
    background: #2f8093;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 9px;
    height: 9px;
    position: absolute;
    top: 1px;
    box-shadow: 0 0 0 1px #9eb8c2;
  }

  .request-timeline strong {
    color: var(--navy-950);
    font-size: 12px;
    display: block;
  }

  .request-timeline span {
    color: var(--text-3);
    margin-top: 4px;
    font-size: 11px;
    display: block;
  }

  .request-timeline p {
    color: var(--text-2);
    margin: 6px 0 0;
    font-size: 12px;
  }

  .request-letter-button {
    width: max-content;
    margin: 0 24px 18px;
  }

  .letter-generation-note {
    color: #215d79;
    background: #f1f8fb;
    border: 1px solid #c7dce5;
    border-radius: 10px;
    align-items: flex-start;
    gap: 11px;
    margin-top: 16px;
    padding: 13px;
    display: flex;
  }

  .letter-generation-note > span {
    flex: 1;
  }

  .letter-generation-note strong {
    font-size: 12px;
  }

  .letter-generation-note p {
    color: var(--text-2);
    margin: 5px 0 9px;
    font-size: 12px;
  }

  .letter-generation-note select {
    background: #fff;
    border: 1px solid #bdd2dc;
    border-radius: 8px;
    height: 34px;
    font-size: 12px;
  }

  .document-title-cell {
    flex-direction: column;
    gap: 4px;
    max-width: 245px;
    display: flex;
  }

  .document-title-cell strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .document-title-cell small {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    overflow: hidden;
  }

  .document-title-cell em {
    color: #705a00;
    background: #fff6d8;
    border-radius: 6px;
    align-items: center;
    gap: 4px;
    width: max-content;
    padding: 3px 6px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    display: flex;
  }

  .company-record {
    color: var(--text-2);
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
  }

  .file-meta {
    flex-direction: column;
    gap: 5px;
    max-width: 210px;
    display: flex;
  }

  .file-meta strong {
    color: #455e6a;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .file-meta small {
    color: var(--text-3);
    font-size: 11px;
  }

  .verified-label {
    color: #087451;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
  }

  .document-modal {
    width: min(850px, 100%);
  }

  .document-modal .consent-field {
    align-items: center;
    min-height: 50px;
  }

  .template-preview {
    max-width: 390px;
    color: var(--text-2);
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .letter-preview-sheet {
    color: #263f4c;
    background: #fff;
    border: 1px solid #dce3e7;
    min-height: 380px;
    margin: 0 24px 18px;
    padding: 28px;
    box-shadow: 0 8px 24px #102c3b0f;
  }

  .letter-preview-sheet.rtl {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
  }

  .letter-preview-sheet header {
    border-bottom: 3px solid var(--yellow);
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    display: flex;
  }

  .letter-preview-sheet img {
    width: 90px;
    height: auto;
  }

  .letter-preview-sheet header span {
    color: var(--text-3);
    font-size: 11px;
  }

  .letter-preview-sheet h3 {
    color: var(--navy-950);
    text-align: center;
    margin: 28px 0 22px;
    font-size: 17px;
  }

  .letter-preview-sheet p {
    white-space: pre-wrap;
    margin: 0;
    font-size: 12px;
    line-height: 2;
  }

  @media (max-width: 1180px) {
    .document-kpis {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  @media (max-width: 820px) {
    .request-kpis, .document-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .request-table {
      min-width: 1160px;
    }

    .request-detail-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 560px) {
    .request-kpis, .document-kpis {
      grid-template-columns: 1fr;
    }

    .request-kpi, .document-kpi {
      min-height: calc(94px * var(--density-row));
    }

    .request-modal form, .document-modal form {
      padding: 2px 18px 18px;
    }

    .request-detail-grid {
      grid-template-columns: 1fr 1fr;
      margin-inline: 18px;
    }

    .request-resolution, .request-timeline, .letter-preview-sheet, .request-letter-button {
      margin-inline: 18px;
    }

    .document-tabs {
      margin-inline: -4px;
    }

    .letter-preview-sheet {
      padding: 20px;
    }

    .document-modal .consent-field {
      grid-column: auto;
    }
  }

  .document-register {
    container-type: inline-size;
  }

  .document-grid-table {
    table-layout: fixed;
    width: 100%;
  }

  .document-grid-table th {
    white-space: normal;
    line-height: 1.3;
  }

  .document-grid-table td {
    vertical-align: top;
  }

  .document-grid-table th, .document-grid-table td {
    padding-inline: 12px;
  }

  .document-grid-table .col-document {
    width: 16%;
  }

  .document-grid-table .col-owner {
    width: 17%;
  }

  .document-grid-table .col-type {
    width: 13%;
  }

  .document-grid-table .col-file, .document-grid-table .col-validity {
    width: 12%;
  }

  .document-grid-table .col-status {
    width: 11%;
  }

  .document-grid-table .col-actions {
    width: 19%;
  }

  .document-grid-table .document-title-cell, .document-grid-table .file-meta {
    min-width: 0;
    max-width: none;
  }

  .document-grid-table .employee-cell, .document-grid-table .employee-cell > span, .document-grid-table .bi-copy {
    min-width: 0;
  }

  .document-grid-table .document-title-cell strong, .document-grid-table .document-title-cell small, .document-grid-table .file-meta strong {
    white-space: normal;
  }

  .document-grid-table strong, .document-grid-table small {
    overflow-wrap: anywhere;
  }

  .document-grid-table .metric-sub {
    white-space: normal;
  }

  .document-grid-table .bi-copy small {
    direction: inherit;
  }

  .document-grid-table .document-title-cell em {
    max-width: 100%;
  }

  .document-grid-table .status-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    display: flex;
  }

  .document-grid-table .verified-label {
    margin-top: 0;
  }

  .document-grid-table .decision-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 0;
  }

  .document-grid-table .only-compact {
    display: none;
  }

  @container (max-width: 1099px) {
    .document-grid-table th, .document-grid-table td {
      padding-inline: 8px;
    }

    .document-grid-table .col-wide {
      display: none;
    }

    .document-grid-table .only-compact {
      display: flex;
    }

    .document-grid-table .file-meta.only-compact {
      flex-direction: column;
    }

    .document-grid-table .employee-avatar {
      display: none;
    }

    .document-grid-table .col-document {
      width: 26%;
    }

    .document-grid-table .col-owner {
      width: 22%;
    }

    .document-grid-table .col-validity, .document-grid-table .col-status {
      width: 16%;
    }

    .document-grid-table .col-actions {
      width: 20%;
    }

    .document-grid-table .decision-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .document-grid-table .decision-actions .btn {
      white-space: normal;
      text-align: center;
      justify-content: center;
      height: auto;
      min-height: 32px;
      padding-block: 5px;
      line-height: 1.25;
    }

    .document-grid-table .decision-actions .icon-btn {
      align-self: flex-start;
    }
  }

  @container (max-width: 639px) {
    .document-grid-table, .document-grid-table tbody, .document-grid-table tr, .document-grid-table td {
      width: auto;
      display: block;
    }

    .document-grid-table td[class*="col-"] {
      width: auto;
    }

    .document-grid-table thead {
      display: none;
    }

    .document-grid-table tbody tr {
      border-bottom: 1px solid var(--line);
      padding: 14px 16px 12px;
    }

    .document-grid-table tbody tr:last-child {
      border-bottom: 0;
    }

    .document-grid-table tbody tr:hover {
      background: none;
    }

    .document-grid-table td {
      border: 0;
      grid-template-columns: 104px minmax(0, 1fr);
      align-items: start;
      gap: 4px 10px;
      min-height: 0;
      padding: 6px 0;
      display: grid;
    }

    .document-grid-table td[data-label]:before {
      content: attr(data-label);
      color: var(--text-3);
      letter-spacing: .4px;
      text-transform: uppercase;
      grid-area: 1 / 1;
      padding-top: 2px;
      font-size: 11px;
      font-weight: 700;
    }

    .document-grid-table td[data-label] > * {
      grid-column: 2;
      justify-self: start;
      max-width: 100%;
    }

    .document-grid-table td[data-label] > .employee-cell, .document-grid-table td[data-label] > .bi-copy, .document-grid-table td[data-label] > .file-meta, .document-grid-table td[data-label] > .decision-actions {
      justify-self: stretch;
    }

    .document-grid-table td.cell-document {
      padding: 0 0 8px;
      display: block;
    }

    .document-grid-table td.cell-document:before, .document-grid-table td.cell-actions:before {
      content: none;
    }

    .document-grid-table td:not([data-label]) {
      padding: 0;
      display: block;
    }

    .document-grid-table .col-wide {
      display: grid;
    }

    .document-grid-table .only-compact {
      display: none;
    }

    .document-grid-table .employee-avatar {
      display: grid;
    }

    .document-grid-table td.cell-actions {
      padding-top: 10px;
      display: block;
    }

    .document-grid-table .decision-actions {
      flex-direction: row;
      align-items: center;
    }

    .document-grid-table .decision-actions .btn {
      flex: 1;
      justify-content: center;
      height: 36px;
      min-height: 36px;
    }
  }

  .expense-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    display: grid;
  }

  .expense-kpi {
    min-height: calc(112px * var(--density-row));
    padding: calc(17px * var(--density-space)) 17px;
    align-items: flex-start;
    gap: 12px;
    display: flex;
    overflow: hidden;
  }

  .expense-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .expense-kpi small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
  }

  .expense-kpi strong {
    color: var(--navy-950);
    white-space: nowrap;
    margin-top: 7px;
    font-size: 24px;
    line-height: 1;
  }

  .expense-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 8px 0 0;
    font-size: 12px;
    overflow: hidden;
  }

  .expense-tabs {
    margin-bottom: 0;
  }

  .expense-register {
    border-start-start-radius: 0;
    overflow: hidden;
  }

  .expense-table {
    min-width: 1280px;
  }

  .expense-table td {
    height: calc(86px * var(--density-row));
  }

  .request-reference small {
    color: var(--text-3);
    font-size: 12px;
  }

  .expense-amount {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 14px;
    display: block;
  }

  .receipt-metric {
    color: var(--text-2);
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
  }

  .approval-step-copy {
    flex-direction: column;
    gap: 5px;
    display: flex;
  }

  .approval-step-copy strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .approval-step-copy small {
    color: var(--text-3);
    font-size: 12px;
  }

  .approval-route {
    align-items: center;
    gap: 5px;
    display: flex;
  }

  .approval-route em {
    color: #245f95;
    background: #eaf3fa;
    border-radius: 8px;
    padding: 5px 7px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
  }

  .expense-analysis-grid {
    grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.5fr);
    gap: 15px;
    display: grid;
  }

  .expense-analysis-summary, .expense-category-chart {
    padding: 20px;
  }

  .expense-analysis-summary .card-head, .expense-category-chart .card-head {
    padding: 0 0 16px;
  }

  .expense-analysis-summary .card-head > svg, .expense-category-chart .card-head > svg {
    color: #2f7895;
  }

  .expense-summary-number {
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
    display: flex;
  }

  .expense-summary-number small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .expense-summary-number strong {
    color: #087451;
    font-size: 24px;
  }

  .expense-summary-number.warning strong {
    color: #a86800;
  }

  .expense-bars {
    flex-direction: column;
    gap: 14px;
    display: flex;
  }

  .expense-bar-row {
    grid-template-columns: minmax(125px, .8fr) minmax(140px, 1.5fr) 110px;
    align-items: center;
    gap: 14px;
    display: grid;
  }

  .expense-bar-row > span {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .expense-bar-row strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .expense-bar-row small {
    color: var(--text-3);
    font-size: 12px;
  }

  .expense-bar-row > div {
    background: #e9eef1;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
  }

  .expense-bar-row i {
    background: linear-gradient(90deg,var(--navy-700),#2d91a2);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .expense-bar-row b {
    color: #415966;
    font-variant-numeric: tabular-nums;
    text-align: end;
    white-space: nowrap;
    font-size: 12px;
  }

  .expense-modal {
    width: min(850px, 100%);
  }

  .expense-modal.wide {
    width: min(980px, 100%);
  }

  .expense-modal form {
    padding: 2px 24px 24px;
  }

  .expense-detail-summary {
    background: #dce4e8;
    border: 1px solid #dce4e8;
    border-radius: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 0 24px 18px;
    display: grid;
    overflow: hidden;
  }

  .expense-detail-summary > span {
    background: #f8fafb;
    flex-direction: column;
    gap: 7px;
    min-height: 70px;
    padding: 11px;
    display: flex;
  }

  .expense-detail-summary small {
    color: var(--text-3);
    font-size: 12px;
  }

  .expense-detail-summary strong {
    color: var(--navy-950);
    font-size: 13px;
    line-height: 1.4;
  }

  .expense-purpose {
    border: 1px solid var(--line);
    background: #f8fafb;
    border-radius: 12px;
    margin: 0 24px 18px;
    padding: 14px;
  }

  .expense-purpose strong, .section-title {
    color: var(--navy-950);
    font-size: 13px;
  }

  .expense-purpose p {
    color: var(--text-2);
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.65;
  }

  .section-title {
    margin: 17px 24px 9px;
  }

  .expense-lines {
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-direction: column;
    margin: 0 24px;
    display: flex;
  }

  .expense-lines article {
    border-bottom: 1px solid #e7edef;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    min-height: 66px;
    padding: 11px 12px;
    display: grid;
  }

  .expense-lines article:last-child {
    border: 0;
  }

  .expense-lines article > span {
    flex-direction: column;
    gap: 5px;
    display: flex;
  }

  .expense-lines strong {
    color: var(--navy-950);
    font-size: 12px;
  }

  .expense-lines small {
    color: var(--text-3);
    font-size: 12px;
  }

  .expense-lines b {
    color: #315466;
    white-space: nowrap;
    font-size: 12px;
  }

  .receipt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 24px;
    display: grid;
  }

  .receipt-list a {
    border: 1px solid var(--line);
    color: #245f95;
    background: #fff;
    border-radius: 10px;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 55px;
    padding: 10px 11px;
    text-decoration: none;
    display: grid;
  }

  .receipt-list a:hover {
    background: #f7fbfc;
    border-color: #aac4d1;
  }

  .receipt-list a > span {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .receipt-list strong {
    color: #415a68;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .receipt-list small {
    color: var(--text-3);
    font-size: 12px;
  }

  .expense-timeline {
    max-height: 210px;
  }

  .expense-detail-actions {
    margin-top: 0;
  }

  @media (max-width: 1180px) {
    .expense-kpis {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .expense-analysis-grid {
      grid-template-columns: 1fr;
    }

    .expense-detail-summary {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 820px) {
    .expense-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .expense-table {
      min-width: 1180px;
    }

    .expense-detail-summary {
      grid-template-columns: repeat(2, 1fr);
    }

    .expense-lines article {
      grid-template-columns: 1fr auto;
    }

    .expense-lines article > .badge {
      grid-column: 1 / -1;
      width: max-content;
    }

    .receipt-list {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    .expense-kpis {
      grid-template-columns: 1fr;
    }

    .expense-kpi {
      min-height: calc(94px * var(--density-row));
    }

    .expense-tabs {
      margin-inline: -4px;
      overflow-x: auto;
    }

    .expense-tabs button {
      flex: none;
    }

    .expense-analysis-summary, .expense-category-chart {
      padding: 16px;
    }

    .expense-bar-row {
      grid-template-columns: 1fr 80px;
    }

    .expense-bar-row > div {
      grid-column: 1;
    }

    .expense-detail-summary {
      grid-template-columns: 1fr 1fr;
      margin-inline: 18px;
    }

    .expense-purpose, .expense-lines, .receipt-list, .section-title {
      margin-inline: 18px;
    }

    .expense-modal form {
      padding: 2px 18px 18px;
    }

    .expense-detail-actions {
      flex-wrap: wrap;
    }

    .expense-detail-actions .btn {
      flex: 1;
    }

    .expense-lines article {
      grid-template-columns: 1fr;
    }

    .expense-lines article > .badge {
      grid-column: auto;
    }

    .expense-modal.wide {
      width: 100%;
    }
  }

  .training-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    display: grid;
  }

  .training-kpi {
    min-height: calc(116px * var(--density-row));
    padding: calc(18px * var(--density-space)) 18px;
    align-items: flex-start;
    gap: 13px;
    display: flex;
    overflow: hidden;
  }

  .training-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .training-kpi small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
  }

  .training-kpi strong {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    margin-top: 8px;
    font-size: 27px;
    line-height: 1;
  }

  .training-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.45;
    overflow: hidden;
  }

  .training-tabs {
    scrollbar-width: thin;
    margin-bottom: 0;
    overflow-x: auto;
  }

  .training-tabs button {
    flex: none;
    min-width: 145px;
    font-size: 13px;
  }

  .training-register {
    border-start-start-radius: 0;
    overflow: hidden;
    container-type: inline-size;
  }

  .training-grid-table {
    table-layout: fixed;
    width: 100%;
  }

  .training-grid-table th {
    white-space: normal;
    line-height: 1.3;
  }

  .training-grid-table td {
    vertical-align: top;
  }

  .training-grid-table th, .training-grid-table td {
    padding-inline: 12px;
  }

  .training-program-table .col-program {
    width: 20%;
  }

  .training-program-table .col-delivery {
    width: 11%;
  }

  .training-program-table .col-schedule {
    width: 15%;
  }

  .training-program-table .col-participants {
    width: 10%;
  }

  .training-program-table .col-progress {
    width: 12%;
  }

  .training-program-table .col-budget {
    width: 10%;
  }

  .training-program-table .col-status {
    width: 9%;
  }

  .training-program-table .col-actions {
    width: 13%;
  }

  .training-assignment-table .col-employee {
    width: 22%;
  }

  .training-assignment-table .col-program {
    width: 19%;
  }

  .training-assignment-table .col-attendance {
    width: 9%;
  }

  .training-assignment-table .col-progress {
    width: 11%;
  }

  .training-assignment-table .col-certificate {
    width: 9%;
  }

  .training-assignment-table .col-due {
    width: 10%;
  }

  .training-assignment-table .col-status {
    width: 11%;
  }

  .training-assignment-table .col-actions {
    width: 9%;
  }

  .certificate-table .col-employee {
    width: 15%;
  }

  .certificate-table .col-certificate {
    width: 17%;
  }

  .certificate-table .col-program {
    width: 16%;
  }

  .certificate-table .col-issuer {
    width: 12%;
  }

  .certificate-table .col-issued, .certificate-table .col-expiry {
    width: 10%;
  }

  .certificate-table .col-status {
    width: 9%;
  }

  .certificate-table .col-actions {
    width: 11%;
  }

  .training-grid-table .bi-copy, .training-grid-table .capacity-copy, .training-grid-table .training-delivery, .training-grid-table .attendance-copy, .training-grid-table .employee-cell, .training-grid-table .employee-cell > span {
    min-width: 0;
  }

  .training-grid-table .training-program-name {
    max-width: none;
  }

  .training-grid-table .training-progress {
    width: 100%;
  }

  .training-grid-table strong, .training-grid-table small, .training-grid-table em, .training-grid-table .cell-text {
    overflow-wrap: anywhere;
  }

  .training-grid-table .training-budget {
    white-space: normal;
  }

  .training-grid-table .training-delivery {
    flex-wrap: wrap;
  }

  .training-grid-table .certificate-download {
    white-space: normal;
  }

  .training-grid-table .status-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    display: flex;
  }

  .training-grid-table .only-compact {
    display: none;
  }

  .training-program-table td, .training-assignment-table td, .certificate-table td {
    height: calc(88px * var(--density-row));
    font-size: 12px;
  }

  .training-program-name {
    max-width: 270px;
  }

  .training-program-name em {
    color: #245f95;
    background: #eaf3fa;
    border-radius: 6px;
    width: max-content;
    padding: 4px 7px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
  }

  .training-delivery {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .training-delivery > svg {
    color: #347f95;
    flex: none;
  }

  .training-delivery > strong, .capacity-copy strong {
    color: var(--navy-950);
    font-size: 12px;
  }

  .training-delivery > small, .capacity-copy small {
    color: var(--text-3);
    margin-top: 4px;
    font-size: 12px;
    display: block;
  }

  .capacity-copy {
    flex-direction: column;
    display: flex;
  }

  .training-budget {
    color: #244b5d;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 13px;
  }

  .attendance-copy {
    flex-direction: column;
    gap: 5px;
    display: flex;
  }

  .attendance-copy strong {
    color: #425d6a;
    font-size: 12px;
  }

  .attendance-copy small {
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
  }

  .training-progress {
    flex-direction: column;
    gap: 7px;
    width: 145px;
    display: flex;
  }

  .training-progress > span {
    background: #e5ecef;
    border-radius: 99px;
    width: 100%;
    height: 7px;
    overflow: hidden;
  }

  .training-progress > span > i {
    background: linear-gradient(90deg, #1d6a83, #2d9a89);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .training-progress small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  @container (max-width: 989px) {
    .training-grid-table th, .training-grid-table td {
      padding: 10px 8px;
    }

    .training-grid-table .col-wide {
      display: none;
    }

    .training-grid-table .only-compact {
      flex-direction: column;
      gap: 4px;
      display: flex;
    }

    .training-grid-table .cell-program .only-compact, .training-grid-table .cell-certificate .only-compact {
      margin-top: 6px;
    }

    .training-grid-table .cell-participants .only-compact, .training-grid-table .cell-expiry .only-compact {
      margin-top: 8px;
    }

    .training-grid-table .btn-icon-text span {
      display: none;
    }

    .training-grid-table .btn-icon-text {
      justify-content: center;
      width: 31px;
      padding-inline: 0;
    }

    .training-grid-table .employee-avatar {
      display: none;
    }

    .training-program-table .col-program {
      width: 32%;
    }

    .training-program-table .col-schedule {
      width: 21%;
    }

    .training-program-table .col-participants {
      width: 15%;
    }

    .training-program-table .col-status {
      width: 14%;
    }

    .training-program-table .col-actions {
      width: 18%;
    }

    .training-assignment-table .col-employee, .training-assignment-table .col-program {
      width: 28%;
    }

    .training-assignment-table .col-due {
      width: 14%;
    }

    .training-assignment-table .col-status {
      width: 16%;
    }

    .training-assignment-table .col-actions {
      width: 14%;
    }

    .certificate-table .col-employee {
      width: 24%;
    }

    .certificate-table .col-certificate {
      width: 30%;
    }

    .certificate-table .col-expiry, .certificate-table .col-status {
      width: 14%;
    }

    .certificate-table .col-actions {
      width: 18%;
    }
  }

  @container (max-width: 639px) {
    .training-grid-table, .training-grid-table tbody, .training-grid-table tr, .training-grid-table td {
      width: auto;
      display: block;
    }

    .training-grid-table td[class*="col-"] {
      width: auto;
    }

    .training-grid-table thead {
      display: none;
    }

    .training-grid-table tbody tr {
      border-bottom: 1px solid var(--line);
      padding: 14px 16px 12px;
    }

    .training-grid-table tbody tr:last-child {
      border-bottom: 0;
    }

    .training-grid-table tbody tr:hover {
      background: none;
    }

    .training-grid-table td {
      border: 0;
      grid-template-columns: 104px minmax(0, 1fr);
      align-items: start;
      gap: 4px 10px;
      height: auto;
      min-height: 0;
      padding: 6px 0;
      display: grid;
    }

    .training-grid-table td[data-label]:before {
      content: attr(data-label);
      color: var(--text-3);
      letter-spacing: .4px;
      text-transform: uppercase;
      grid-area: 1 / 1;
      padding-top: 2px;
      font-size: 11px;
      font-weight: 700;
    }

    .training-grid-table td[data-label] > * {
      grid-column: 2;
      justify-self: start;
      max-width: 100%;
    }

    .training-grid-table td[data-label] > .bi-copy, .training-grid-table td[data-label] > .capacity-copy, .training-grid-table td[data-label] > .training-delivery, .training-grid-table td[data-label] > .attendance-copy, .training-grid-table td[data-label] > .employee-cell, .training-grid-table td[data-label] > .training-progress, .training-grid-table td[data-label] > .row-actions {
      justify-self: stretch;
    }

    .training-grid-table td.cell-program, .training-grid-table td.cell-employee {
      padding: 0 0 8px;
      display: block;
    }

    .training-grid-table td.cell-program:before, .training-grid-table td.cell-employee:before, .training-grid-table td.cell-actions:before {
      content: none;
    }

    .training-grid-table td:not([data-label]) {
      padding: 0;
      display: block;
    }

    .training-grid-table .col-wide {
      display: grid;
    }

    .training-grid-table .only-compact {
      display: none;
    }

    .training-grid-table .employee-avatar {
      display: grid;
    }

    .training-grid-table td.cell-actions {
      padding-top: 10px;
      display: block;
    }

    .training-grid-table .row-actions .btn, .training-grid-table .row-actions .certificate-download {
      flex: 1;
      justify-content: center;
    }

    .training-grid-table .btn-icon-text span {
      display: inline;
    }

    .training-grid-table .btn-icon-text {
      width: auto;
      min-height: 36px;
      padding-inline: 12px;
      font-size: 13px;
    }
  }

  .certificate-download {
    color: #185f81;
    white-space: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
  }

  .certificate-download:hover {
    color: #0d435e;
    text-decoration: underline;
  }

  .training-analysis-grid {
    grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.45fr);
    gap: 15px;
    display: grid;
  }

  .training-risk-panel, .training-category-chart {
    padding: 20px;
  }

  .training-risk-panel .card-head, .training-category-chart .card-head {
    padding: 0 0 16px;
  }

  .training-risk-panel .card-head > svg, .training-category-chart .card-head > svg {
    color: #2c7894;
  }

  .training-risk-metric {
    border-top: 1px solid #e8edef;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    display: grid;
  }

  .training-risk-metric span {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
  }

  .training-risk-metric strong {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    font-size: 17px;
  }

  .risk-dot {
    background: #8ca0aa;
    border-radius: 50%;
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 4px #edf2f4;
  }

  .risk-dot.red {
    background: #c64d4d;
    box-shadow: 0 0 0 4px #faeaea;
  }

  .risk-dot.amber {
    background: #d28d16;
    box-shadow: 0 0 0 4px #fff2d7;
  }

  .risk-dot.green {
    background: #17805e;
    box-shadow: 0 0 0 4px #e5f5ef;
  }

  .training-bars {
    flex-direction: column;
    gap: 15px;
    display: flex;
  }

  .training-bar-row {
    grid-template-columns: minmax(150px, .85fr) minmax(180px, 1.7fr) 48px;
    align-items: center;
    gap: 15px;
    display: grid;
  }

  .training-bar-row > span {
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    display: flex;
  }

  .training-bar-row strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    overflow: hidden;
  }

  .training-bar-row small {
    color: var(--text-3);
    font-size: 12px;
  }

  .training-bar-row > div {
    background: #e8eef0;
    border-radius: 99px;
    height: 9px;
    overflow: hidden;
  }

  .training-bar-row i {
    background: linear-gradient(90deg, #1c6780, #2b9a89);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .training-bar-row b {
    color: #405965;
    font-variant-numeric: tabular-nums;
    text-align: end;
    font-size: 13px;
  }

  .training-modal {
    width: min(760px, 100%);
  }

  .training-modal.wide {
    width: min(980px, 100%);
  }

  .training-modal form {
    padding: 2px 24px 24px;
  }

  .training-detail-summary {
    background: #dce4e8;
    border: 1px solid #dce4e8;
    border-radius: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 0 24px 18px;
    display: grid;
    overflow: hidden;
  }

  .training-detail-summary > span {
    background: #f8fafb;
    flex-direction: column;
    gap: 8px;
    min-height: 75px;
    padding: 12px;
    display: flex;
  }

  .training-detail-summary small {
    color: var(--text-3);
    font-size: 12px;
  }

  .training-detail-summary strong {
    color: var(--navy-950);
    font-size: 13px;
    line-height: 1.45;
  }

  .training-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0 24px 18px;
    display: grid;
  }

  .training-detail-grid article {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    align-items: flex-start;
    gap: 10px;
    min-height: 72px;
    padding: 12px;
    display: flex;
  }

  .training-detail-grid svg {
    color: #337c94;
    flex: none;
  }

  .training-detail-grid span {
    flex-direction: column;
    gap: 6px;
    display: flex;
  }

  .training-detail-grid small {
    color: var(--text-3);
    font-size: 12px;
  }

  .training-detail-grid strong {
    color: #314d5b;
    font-size: 12px;
    line-height: 1.45;
  }

  .training-notes {
    background: #f6fafb;
    border: 1px solid #dce6ea;
    border-radius: 12px;
    margin: 0 24px 18px;
    padding: 14px;
  }

  .training-notes strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .training-notes p {
    color: var(--text-2);
    white-space: pre-wrap;
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.65;
  }

  .training-detail-actions {
    flex-wrap: wrap;
    margin-top: 0;
  }

  .employee-training-table {
    min-width: 1120px;
  }

  .employee-training-table td {
    min-height: 82px;
    font-size: 12px;
  }

  .employee-performance-stack {
    flex-direction: column;
    gap: 14px;
    display: flex;
  }

  .employee-performance-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    display: grid;
  }

  .employee-performance-summary > .card {
    flex-direction: column;
    gap: 8px;
    min-height: 118px;
    padding: 18px;
    display: flex;
  }

  .employee-performance-summary span {
    color: var(--text-3);
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .employee-performance-summary span svg {
    color: #26768e;
  }

  .employee-performance-summary strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
    line-height: 1.35;
    overflow: hidden;
  }

  .employee-performance-summary small {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.45;
    overflow: hidden;
  }

  .employee-performance-table {
    min-width: 1420px;
  }

  .employee-performance-table td {
    min-height: 86px;
    font-size: 12px;
  }

  @media (max-width: 820px) {
    .employee-performance-summary {
      grid-template-columns: 1fr;
    }

    .employee-performance-summary > .card {
      min-height: 100px;
    }
  }

  @media (max-width: 1180px) {
    .training-kpis {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .training-analysis-grid {
      grid-template-columns: 1fr;
    }

    .training-detail-summary {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 820px) {
    .training-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .training-detail-summary {
      grid-template-columns: repeat(2, 1fr);
    }

    .training-detail-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    .training-kpis {
      grid-template-columns: 1fr;
    }

    .training-kpi {
      min-height: calc(98px * var(--density-row));
    }

    .training-tabs {
      margin-inline: -4px;
    }

    .training-tabs button {
      min-width: 135px;
    }

    .training-risk-panel, .training-category-chart {
      padding: 16px;
    }

    .training-bar-row {
      grid-template-columns: 1fr 48px;
    }

    .training-bar-row > div {
      grid-column: 1;
    }

    .training-detail-summary {
      grid-template-columns: 1fr 1fr;
      margin-inline: 18px;
    }

    .training-detail-grid, .training-notes {
      margin-inline: 18px;
    }

    .training-modal, .training-modal.wide {
      width: 100%;
    }

    .training-modal form {
      padding: 2px 18px 18px;
    }

    .training-detail-actions .btn {
      flex: 1;
    }

    .training-detail-actions .badge {
      justify-content: center;
      width: 100%;
    }
  }

  .performance-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    display: grid;
  }

  .performance-kpi {
    min-height: calc(116px * var(--density-row));
    padding: calc(18px * var(--density-space)) 18px;
    align-items: flex-start;
    gap: 13px;
    display: flex;
    overflow: hidden;
  }

  .performance-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .performance-kpi small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
  }

  .performance-kpi strong {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-top: 8px;
    font-size: 25px;
    line-height: 1;
  }

  .performance-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.45;
    overflow: hidden;
  }

  .performance-tabs {
    scrollbar-width: thin;
    margin-bottom: 0;
    overflow-x: auto;
  }

  .performance-tabs button {
    flex: none;
    min-width: 130px;
    font-size: 13px;
  }

  .performance-register {
    border-start-start-radius: 0;
    overflow: hidden;
  }

  .performance-cycle-table {
    min-width: 1320px;
  }

  .performance-review-table {
    min-width: 1660px;
  }

  .performance-goal-table {
    min-width: 1450px;
  }

  .performance-plan-table {
    min-width: 1050px;
  }

  .performance-cycle-table td, .performance-review-table td, .performance-goal-table td, .performance-plan-table td {
    height: calc(90px * var(--density-row));
    font-size: 12px;
  }

  .performance-progress {
    flex-direction: column;
    gap: 7px;
    width: 145px;
    display: flex;
  }

  .performance-progress > span {
    background: #e6edef;
    border-radius: 99px;
    width: 100%;
    height: 7px;
    overflow: hidden;
  }

  .performance-progress > span > i {
    background: linear-gradient(90deg, #195f7c, #25947d);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .performance-progress small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .performance-rating {
    flex-direction: column;
    gap: 5px;
    min-width: 105px;
    display: flex;
  }

  .performance-rating strong {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 13px;
  }

  .performance-rating small {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: max-content;
    max-width: 130px;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
  }

  .rating-green {
    color: #087451;
  }

  .rating-blue {
    color: #25658e;
  }

  .rating-amber {
    color: #9b6800;
  }

  .rating-red {
    color: #a73737;
  }

  .rating-empty {
    color: var(--text-3);
  }

  .goal-summary {
    flex-direction: column;
    gap: 6px;
    display: flex;
  }

  .goal-summary > strong {
    color: #365563;
    font-size: 12px;
  }

  .goal-summary .performance-progress {
    width: 120px;
  }

  .performance-goal-name {
    max-width: 275px;
  }

  .template-grid {
    background: #f7fafb;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    padding: 18px;
    display: grid;
  }

  .performance-template {
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 12px;
    min-height: 310px;
    padding: 17px;
    box-shadow: 0 5px 18px #1834420a;
  }

  .performance-template > header {
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    display: grid;
  }

  .performance-template > header > span:first-child {
    color: #236d88;
    background: #eaf4f7;
    border-radius: 10px;
    place-items: center;
    width: 38px;
    height: 38px;
    display: grid;
  }

  .performance-template header div {
    min-width: 0;
  }

  .performance-template header strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    display: block;
    overflow: hidden;
  }

  .performance-template header small {
    color: var(--text-3);
    margin-top: 4px;
    font-size: 12px;
    display: block;
  }

  .performance-template > p {
    min-height: 38px;
    color: var(--text-2);
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.65;
  }

  .performance-template > div {
    background: #e0e7ea;
    border: 1px solid #e0e7ea;
    border-radius: 10px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    display: grid;
    overflow: hidden;
  }

  .performance-template > div > span {
    background: #f8fafb;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 62px;
    display: flex;
  }

  .performance-template > div b {
    color: var(--navy-950);
    font-size: 17px;
  }

  .performance-template > div small {
    color: var(--text-3);
    font-size: 11px;
  }

  .performance-template ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
  }

  .performance-template li {
    min-height: 35px;
    color: var(--text-2);
    border-top: 1px solid #edf1f2;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    display: flex;
  }

  .performance-template li b {
    color: #28758e;
    font-size: 11px;
  }

  .performance-analysis-grid {
    grid-template-columns: minmax(280px, .65fr) minmax(430px, 1.15fr) minmax(320px, .8fr);
    gap: 15px;
    display: grid;
  }

  .performance-risk-panel, .performance-rating-chart, .performance-department-chart {
    padding: 20px;
  }

  .performance-risk-panel .card-head, .performance-rating-chart .card-head, .performance-department-chart .card-head {
    padding: 0 0 16px;
  }

  .performance-risk-panel .card-head > svg, .performance-rating-chart .card-head > svg, .performance-department-chart .card-head > svg {
    color: #2d7894;
  }

  .performance-risk-metric {
    border-top: 1px solid #e8edef;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    display: grid;
  }

  .performance-risk-metric span {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
  }

  .performance-risk-metric strong {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    font-size: 17px;
  }

  .performance-bars {
    flex-direction: column;
    gap: 16px;
    display: flex;
  }

  .performance-bar-row {
    grid-template-columns: minmax(145px, .85fr) minmax(130px, 1.4fr) 40px;
    align-items: center;
    gap: 13px;
    display: grid;
  }

  .performance-bar-row > span {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .performance-bar-row strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .performance-bar-row small {
    color: var(--text-3);
    font-size: 12px;
  }

  .performance-bar-row > div {
    background: #e8eef0;
    border-radius: 99px;
    height: 9px;
    overflow: hidden;
  }

  .performance-bar-row i {
    background: linear-gradient(90deg, #1c6780, #2b9a89);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .performance-bar-row b {
    color: #405965;
    text-align: end;
    font-size: 12px;
  }

  .department-score-list {
    flex-direction: column;
    display: flex;
  }

  .department-score-list > div {
    border-top: 1px solid #e8edef;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    display: grid;
  }

  .department-score-list > div > span {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .department-score-list > div > span strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .department-score-list > div > span small {
    color: var(--text-3);
    font-size: 12px;
  }

  .performance-modal {
    width: min(780px, 100%);
  }

  .performance-modal.wide {
    width: min(1020px, 100%);
  }

  .performance-modal form {
    padding: 2px 24px 24px;
  }

  .performance-detail-summary {
    background: #dce4e8;
    border: 1px solid #dce4e8;
    border-radius: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 0 24px 18px;
    display: grid;
    overflow: hidden;
  }

  .performance-detail-summary > span {
    background: #f8fafb;
    flex-direction: column;
    gap: 8px;
    min-height: 76px;
    padding: 12px;
    display: flex;
  }

  .performance-detail-summary small {
    color: var(--text-3);
    font-size: 12px;
  }

  .performance-detail-summary strong {
    color: var(--navy-950);
    font-size: 13px;
    line-height: 1.45;
  }

  .performance-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0 24px 18px;
    display: grid;
  }

  .performance-detail-grid article {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    align-items: flex-start;
    gap: 10px;
    min-height: 74px;
    padding: 12px;
    display: flex;
  }

  .performance-detail-grid svg {
    color: #337c94;
    flex: none;
  }

  .performance-detail-grid span {
    flex-direction: column;
    gap: 6px;
    display: flex;
  }

  .performance-detail-grid small {
    color: var(--text-3);
    font-size: 12px;
  }

  .performance-detail-grid strong {
    color: #314d5b;
    font-size: 12px;
    line-height: 1.45;
  }

  .performance-outcome {
    color: #087451;
    background: #f0faf6;
    border: 1px solid #badfce;
    border-radius: 12px;
    align-items: flex-start;
    gap: 11px;
    margin: 0 24px 18px;
    padding: 14px;
    display: flex;
  }

  .performance-outcome > span {
    flex: 1;
  }

  .performance-outcome strong {
    font-size: 13px;
  }

  .performance-outcome p {
    color: #3f6255;
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .performance-outcome small {
    color: var(--text-3);
    margin-top: 7px;
    font-size: 12px;
    display: block;
  }

  .performance-detail-goals {
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-direction: column;
    margin: 0 24px 18px;
    display: flex;
    overflow: hidden;
  }

  .performance-detail-goals article {
    border-bottom: 1px solid #e7edef;
    grid-template-columns: minmax(230px, 1fr) 150px auto;
    align-items: center;
    gap: 13px;
    min-height: 66px;
    padding: 11px 12px;
    display: grid;
  }

  .performance-detail-goals article:last-child {
    border: 0;
  }

  .performance-detail-goals article > span:first-child {
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    display: flex;
  }

  .performance-detail-goals strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .performance-detail-goals small {
    color: var(--text-3);
    font-size: 12px;
  }

  .performance-detail-actions {
    flex-wrap: wrap;
    margin-top: 0;
  }

  .review-question-list {
    flex-direction: column;
    gap: 6px;
    margin: 0 24px 14px;
    display: flex;
  }

  .review-question-list article {
    background: #f9fbfc;
    border: 1px solid #dce5e8;
    border-radius: 12px;
    grid-template-columns: minmax(180px, 1.1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    display: grid;
  }

  .review-question-list article > div {
    min-width: 0;
  }

  .review-question-list strong {
    color: var(--navy-950);
    font-size: 12px;
    line-height: 1.5;
    display: block;
  }

  .review-question-list small {
    color: var(--text-3);
    margin-top: 5px;
    font-size: 11px;
    display: block;
  }

  .review-question-list label {
    flex-direction: column;
    gap: 6px;
    display: flex;
  }

  .review-question-list label > span {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
  }

  .review-question-list input, .review-question-list textarea {
    width: 100%;
    font: inherit;
    background: #fff;
    border: 1px solid #cbd8de;
    border-radius: 8px;
    font-size: 12px;
  }

  .review-question-list input {
    height: 34px;
    padding-inline: 9px;
  }

  .review-question-list textarea {
    resize: vertical;
    min-height: 58px;
    padding: 8px;
  }

  .performance-template > footer {
    justify-content: flex-end;
    margin-top: 12px;
    display: flex;
  }

  .field-readonly.is-pending {
    color: var(--text-3);
    font-weight: 500;
  }

  .criteria-editor {
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 10px;
    min-width: 0;
    display: flex;
  }

  .criteria-editor > header {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    display: flex;
  }

  .criteria-editor > header strong {
    color: #445864;
    font-size: 13px;
    display: block;
  }

  .criteria-editor > header small {
    color: var(--text-3);
    margin-top: 4px;
    font-size: 12px;
    display: block;
  }

  .criteria-editor-tools {
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
  }

  .criteria-locked {
    color: #7a5208;
    background: var(--amber-soft);
    border: 1px solid #f1dfb8;
    border-radius: 10px;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    display: flex;
  }

  .criteria-locked svg {
    flex: none;
    margin-top: 2px;
  }

  .criteria-list {
    flex-direction: column;
    gap: 8px;
    display: flex;
  }

  .criteria-row {
    background: #f9fbfc;
    border: 1px solid #dce5e8;
    border-radius: 12px;
    grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 110px 38px;
    align-items: end;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    display: grid;
  }

  .criteria-row.is-locked {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
  }

  .criteria-index {
    height: 38px;
    color: var(--text-3);
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    display: grid;
  }

  .criteria-row label {
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    display: flex;
  }

  .criteria-row label > span {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
  }

  .criteria-row input {
    width: 100%;
    min-width: 0;
    height: 38px;
    font: inherit;
    background: #fff;
    border: 1px solid #cbd8de;
    border-radius: 8px;
    outline: 0;
    padding-inline: 9px;
    font-size: 12px;
  }

  .criteria-row input:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .criteria-row input[aria-invalid="true"] {
    border-color: #a62e2e;
  }

  .criteria-title {
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    display: flex;
  }

  .criteria-title strong {
    color: var(--navy-950);
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.5;
  }

  .criteria-title small {
    color: var(--text-3);
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  .criteria-row.is-locked > b {
    color: #28758e;
    font-size: 12px;
  }

  .criteria-remove:disabled {
    opacity: .45;
    cursor: not-allowed;
  }

  .criteria-total {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    display: flex;
  }

  .criteria-total > span {
    color: var(--text-2);
    font-weight: 600;
  }

  .criteria-total > strong {
    font-size: 15px;
  }

  .criteria-total > small {
    color: var(--text-3);
    text-align: end;
    flex: 220px;
    font-size: 12px;
  }

  .criteria-total.tone-green {
    background: var(--green-soft);
    border-color: #badfce;
  }

  .criteria-total.tone-green > strong {
    color: #087451;
  }

  .criteria-total.tone-amber {
    background: var(--amber-soft);
    border-color: #f1dfb8;
  }

  .criteria-total.tone-amber > strong, .criteria-total.tone-amber > small {
    color: #a86a08;
  }

  .criteria-total.tone-red {
    background: var(--red-soft);
    border-color: #f1c9c9;
  }

  .criteria-total.tone-red > strong, .criteria-total.tone-red > small {
    color: #a72f2f;
  }

  .review-breakdown-loading {
    margin: 0 24px 18px;
  }

  .review-breakdown {
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-direction: column;
    margin: 0 24px 18px;
    display: flex;
    overflow: hidden;
  }

  .review-breakdown-head, .review-breakdown article {
    grid-template-columns: minmax(0, 1fr) 80px 100px 100px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    display: grid;
  }

  .review-breakdown.no-self .review-breakdown-head, .review-breakdown.no-self article {
    grid-template-columns: minmax(0, 1fr) 80px 100px;
  }

  .review-breakdown-head {
    color: var(--text-3);
    text-transform: uppercase;
    background: #f8fafb;
    font-size: 11px;
    font-weight: 700;
  }

  .review-breakdown article {
    border-top: 1px solid #e7edef;
    font-size: 12px;
  }

  .review-breakdown article > span {
    color: var(--navy-950);
    font-weight: 700;
  }

  .review-breakdown-criterion {
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    display: flex;
  }

  .review-breakdown-criterion strong {
    color: var(--navy-950);
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.5;
  }

  .review-breakdown-criterion small {
    color: var(--text-3);
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  .review-breakdown-notes {
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 6px;
    display: flex;
  }

  .review-breakdown-notes p, .review-statement-text p {
    color: var(--text-2);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .review-breakdown-notes b {
    color: #445864;
    margin-inline-end: 6px;
  }

  .review-statements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 24px 18px;
    display: grid;
  }

  .review-statements.single {
    grid-template-columns: 1fr;
  }

  .review-statement {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    display: flex;
  }

  .review-statement > header {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .review-statement > header strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .review-statement dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
    display: grid;
  }

  .review-statement dt {
    color: var(--text-3);
    font-size: 11px;
  }

  .review-statement dd {
    color: var(--navy-950);
    overflow-wrap: anywhere;
    margin: 3px 0 0;
    font-size: 12px;
    font-weight: 700;
  }

  .review-statement-text {
    border-top: 1px solid #edf1f2;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    display: flex;
  }

  .review-statement-text small {
    color: #445864;
    font-size: 12px;
    font-weight: 700;
  }

  .review-statement-text p.is-empty {
    color: var(--text-3);
    font-style: italic;
  }

  .review-statement-empty {
    color: var(--text-3);
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  @media (max-width: 820px) {
    .criteria-row {
      grid-template-columns: 26px minmax(0, 1fr) 38px;
    }

    .criteria-row label {
      grid-column: 2;
    }

    .criteria-row .criteria-remove {
      grid-area: 1 / 3;
    }

    .criteria-row.is-locked {
      grid-template-columns: 26px minmax(0, 1fr) auto;
    }

    .review-statements {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    .review-breakdown-loading, .review-breakdown, .review-statements {
      margin-inline: 18px;
    }

    .review-breakdown-head {
      display: none;
    }

    .review-breakdown article, .review-breakdown.no-self article {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .review-breakdown-criterion {
      grid-column: 1 / -1;
    }

    .review-breakdown article > span:before {
      content: attr(data-label);
      color: var(--text-3);
      margin-bottom: 3px;
      font-size: 11px;
      font-weight: 500;
      display: block;
    }

    .review-statement dl {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 1280px) {
    .performance-analysis-grid {
      grid-template-columns: 1fr 1.35fr;
    }

    .performance-department-chart {
      grid-column: 1 / -1;
    }

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

  .performance-modal .field-wide {
    grid-column: 1 / -1;
  }

  .performance-modal > .modal-actions {
    margin: calc(22px * var(--density-space)) 0 0;
    bottom: 0;
  }

  .perf-steps {
    gap: 0;
    margin: 18px 24px 14px;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .perf-steps li {
    min-width: 0;
    color: var(--text-3);
    flex: 1;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
  }

  .perf-steps li > b {
    background: #fff;
    border: 2px solid #cfdbe1;
    border-radius: 50%;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: 11px;
    display: grid;
  }

  .perf-steps li > span {
    white-space: nowrap;
  }

  .perf-steps li:not(:last-child):after {
    content: "";
    background: #dce4e8;
    flex: 1;
    min-width: 12px;
    height: 2px;
    margin-inline: 6px;
  }

  .perf-steps li.done {
    color: #087451;
  }

  .perf-steps li.done > b {
    color: #fff;
    background: #25947d;
    border-color: #25947d;
  }

  .perf-steps li.done:after {
    background: #25947d;
  }

  .perf-steps li.current {
    color: var(--navy-950);
  }

  .perf-steps li.current > b {
    color: #195f7c;
    border-color: #195f7c;
    box-shadow: 0 0 0 4px #195f7c1f;
  }

  .cycle-guide {
    color: #264b5c;
    background: #f1f8fb;
    border: 1px solid #cfe1ea;
    border-radius: 10px;
    align-items: flex-start;
    gap: 9px;
    margin: 0 24px 16px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
  }

  .cycle-guide svg {
    color: #337c94;
    flex: none;
    margin-top: 2px;
  }

  .cycle-repeat {
    color: #337c94;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    display: inline-flex;
  }

  .cycle-view-head {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 4px 24px 10px;
    display: flex;
  }

  .cycle-view-head .section-title {
    margin: 0;
  }

  .cycle-view-people {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0 24px 16px;
    overflow: hidden;
  }

  .cycle-view-people .data-table {
    min-width: 0;
  }

  .cycle-view-people .employee-name-alt {
    display: none;
  }

  .cycle-view-people .data-table th, .cycle-view-people .data-table td {
    padding-inline: 10px;
  }

  .cycle-view-people td .badge {
    white-space: nowrap;
  }

  .cycle-view-outcome {
    max-width: 150px;
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
    font-size: 12px;
    display: block;
    overflow: hidden;
  }

  .cycle-view-empty {
    padding: 28px 16px;
  }

  .cycle-view-empty p {
    max-width: 440px;
    color: var(--muted);
    text-align: center;
    margin: 6px auto 14px;
    font-size: 13px;
    line-height: 1.7;
  }

  .cycle-blocker {
    color: #a86a08;
    align-items: center;
    gap: 8px;
    margin: 0 24px 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  tr.is-clickable {
    cursor: pointer;
  }

  tr.is-clickable:hover td {
    background: #f6fafb;
  }

  .assign-reviewer {
    border: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    display: grid;
  }

  .assign-reviewer legend {
    color: var(--text-2);
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
  }

  .assign-reviewer .field {
    grid-column: 1 / -1;
  }

  .assign-reviewer .consent-field strong {
    color: var(--navy-950);
  }

  .assign-result {
    flex-direction: column;
    gap: 14px;
    padding: 0 24px 8px;
    display: flex;
  }

  .assign-result h4 {
    color: #087451;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 13px;
    display: flex;
  }

  .assign-result .is-failed h4 {
    color: #b62f2f;
  }

  .assign-result ul {
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .assign-result li {
    border: 1px solid var(--line);
    border-radius: 8px;
    flex-direction: column;
    gap: 3px;
    padding: 8px 10px;
    font-size: 13px;
    display: flex;
  }

  .assign-result li small {
    color: #b62f2f;
    font-size: 12px;
  }

  @media (max-width: 820px) {
    .cycle-view-people .data-table {
      min-width: 760px;
    }

    .perf-steps {
      flex-wrap: wrap;
      row-gap: 10px;
    }

    .perf-steps li {
      flex: none;
    }

    .perf-steps li:not(:last-child):after {
      flex: 0 0 14px;
    }

    .assign-reviewer {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    .perf-steps, .cycle-guide, .cycle-view-head, .cycle-view-people, .cycle-blocker {
      margin-inline: 18px;
    }

    .assign-result {
      padding-inline: 18px;
    }
  }

  @media (max-width: 1180px) {
    .performance-kpis {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .performance-detail-summary {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 820px) {
    .performance-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .performance-analysis-grid {
      grid-template-columns: 1fr;
    }

    .performance-department-chart {
      grid-column: auto;
    }

    .template-grid {
      grid-template-columns: 1fr;
    }

    .performance-cycle-table {
      min-width: 1220px;
    }

    .performance-review-table {
      min-width: 1500px;
    }

    .performance-goal-table {
      min-width: 1320px;
    }

    .performance-detail-summary {
      grid-template-columns: repeat(2, 1fr);
    }

    .performance-detail-grid {
      grid-template-columns: 1fr;
    }

    .review-question-list article {
      grid-template-columns: 1fr 100px;
    }

    .review-question-list article label:last-child {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 560px) {
    .performance-kpis {
      grid-template-columns: 1fr;
    }

    .performance-kpi {
      min-height: calc(98px * var(--density-row));
    }

    .performance-tabs {
      margin-inline: -4px;
    }

    .performance-tabs button {
      min-width: 125px;
    }

    .performance-risk-panel, .performance-rating-chart, .performance-department-chart {
      padding: 16px;
    }

    .performance-bar-row {
      grid-template-columns: 1fr 40px;
    }

    .performance-bar-row > div {
      grid-column: 1;
    }

    .performance-modal, .performance-modal.wide {
      width: 100%;
    }

    .performance-modal form {
      padding: 2px 18px 18px;
    }

    .performance-detail-summary {
      grid-template-columns: 1fr 1fr;
      margin-inline: 18px;
    }

    .performance-detail-grid, .performance-outcome, .performance-detail-goals, .review-question-list {
      margin-inline: 18px;
    }

    .performance-detail-goals article {
      grid-template-columns: 1fr;
    }

    .performance-detail-actions .btn {
      flex: 1;
    }

    .review-question-list article {
      grid-template-columns: 1fr;
    }

    .review-question-list article label:last-child {
      grid-column: auto;
    }

    .template-grid {
      padding: 12px;
    }

    .performance-template > header {
      grid-template-columns: 38px 1fr;
    }

    .performance-template > header > .badge {
      grid-column: 2;
      width: max-content;
    }
  }

  .report-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .report-kpi {
    min-height: calc(114px * var(--density-row));
    padding: calc(17px * var(--density-space)) 17px;
    align-items: flex-start;
    gap: 13px;
    display: flex;
  }

  .report-kpi > span {
    color: #236f88;
    background: #e9f4f7;
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    display: grid;
  }

  .report-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .report-kpi small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
  }

  .report-kpi strong {
    color: var(--navy-950);
    margin-top: 7px;
    font-size: 24px;
    line-height: 1.1;
  }

  .report-kpi p {
    color: var(--text-3);
    margin: 7px 0 0;
    font-size: 12px;
  }

  .report-tabs {
    margin-bottom: 0;
    overflow-x: auto;
  }

  .report-tabs button {
    flex: none;
    min-width: 145px;
    font-size: 13px;
  }

  .report-tabs button small {
    min-width: 20px;
    height: 20px;
    color: inherit;
    background: #ffffff2e;
    border-radius: 20px;
    place-items: center;
    display: grid;
  }

  .report-library, .report-register {
    border-start-start-radius: 0;
    overflow: hidden;
  }

  .report-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 15px;
    display: grid;
  }

  .report-card {
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 12px;
    flex-direction: column;
    min-height: 275px;
    padding: 17px;
    display: flex;
    box-shadow: 0 5px 18px #1834420a;
  }

  .report-card header {
    grid-template-columns: 38px 1fr auto;
    align-items: start;
    gap: 10px;
    display: grid;
  }

  .report-card header > span:first-child {
    color: #246f89;
    background: #eaf4f7;
    border-radius: 10px;
    place-items: center;
    width: 38px;
    height: 38px;
    display: grid;
  }

  .report-card header div {
    min-width: 0;
  }

  .report-card header small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .report-card h3 {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 4px 0 0;
    font-size: 14px;
    overflow: hidden;
  }

  .report-card > p {
    min-height: 70px;
    color: var(--text-2);
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.75;
  }

  .report-card-meta {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    display: flex;
  }

  .report-card-meta small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .report-card footer {
    border-top: 1px solid #edf1f2;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
    padding-top: 13px;
    display: flex;
  }

  .report-results {
    flex-direction: column;
    gap: 14px;
    display: flex;
  }

  .report-filter-panel {
    border-start-start-radius: 0;
  }

  .report-filter-grid {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    align-items: end;
    gap: 10px;
    padding: 0 20px 18px;
    display: grid;
  }

  .report-filter-grid .field span {
    font-size: 12px;
  }

  .report-run-button {
    min-height: 39px;
  }

  .report-print-zone {
    overflow: hidden;
  }

  .report-output-head {
    align-items: flex-end;
  }

  .report-output-table {
    min-width: 1380px;
  }

  .report-output-table td {
    height: calc(72px * var(--density-row));
    max-width: 250px;
    font-size: 12px;
  }

  .report-output-table th {
    white-space: nowrap;
  }

  .saved-report-table {
    min-width: 1120px;
  }

  .report-schedule-table {
    min-width: 1320px;
  }

  .report-history-table {
    min-width: 1250px;
  }

  .saved-report-table td, .report-schedule-table td, .report-history-table td {
    height: calc(80px * var(--density-row));
    font-size: 12px;
  }

  .recipient-count {
    color: #385968;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    display: flex;
  }

  .report-modal {
    width: min(760px, 100%);
  }

  .report-modal form {
    padding: 2px 24px 24px;
  }

  @media (max-width: 1280px) {
    .report-card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-filter-grid {
      grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
  }

  @media (max-width: 950px) {
    .report-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-card-grid {
      grid-template-columns: 1fr;
    }

    .report-filter-grid {
      grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
  }

  @media (max-width: 560px) {
    .report-kpis {
      grid-template-columns: 1fr;
    }

    .report-kpi {
      min-height: calc(96px * var(--density-row));
    }

    .report-tabs {
      margin-inline: -4px;
    }

    .report-tabs button {
      min-width: 138px;
    }

    .report-card-grid {
      padding: 11px;
    }

    .report-card {
      min-height: 250px;
    }

    .report-card header {
      grid-template-columns: 38px 1fr;
    }

    .report-card header > .badge {
      grid-column: 2;
      width: max-content;
    }

    .report-filter-grid {
      grid-template-columns: 1fr;
      padding-inline: 16px;
    }

    .report-run-button, .report-screen-actions {
      width: 100%;
    }

    .report-screen-actions .btn {
      flex: 1;
    }

    .report-modal {
      width: 100%;
    }

    .report-modal form {
      padding: 2px 18px 18px;
    }
  }

  @media print {
    body * {
      visibility: hidden !important;
    }

    .report-print-zone, .report-print-zone * {
      visibility: visible !important;
    }

    .report-print-zone {
      width: 100% !important;
      box-shadow: none !important;
      border: 0 !important;
      position: absolute !important;
      inset: 0 !important;
    }

    .report-screen-actions, .report-filter-panel, .report-print-zone .table-footer {
      display: none !important;
    }

    .report-output-table {
      width: 100% !important;
      min-width: 0 !important;
    }

    .report-output-table th, .report-output-table td {
      height: auto !important;
      padding: 7px !important;
      font-size: 11px !important;
    }

    .report-output-head {
      padding: 0 0 14px !important;
    }
  }

  .announcement-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .announcement-kpi {
    min-height: calc(116px * var(--density-row));
    padding: calc(18px * var(--density-space)) 18px;
    align-items: flex-start;
    gap: 13px;
    display: flex;
    overflow: hidden;
  }

  .announcement-kpi > span {
    color: #226e88;
    background: linear-gradient(145deg, #e9f4f7, #f4fafb);
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    display: grid;
  }

  .announcement-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .announcement-kpi small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
  }

  .announcement-kpi strong {
    color: var(--navy-950);
    margin-top: 7px;
    font-size: 25px;
    line-height: 1;
  }

  .announcement-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.45;
    overflow: hidden;
  }

  .announcement-tabs {
    margin-bottom: 0;
    overflow-x: auto;
  }

  .announcement-tabs button {
    flex: none;
    min-width: 150px;
    font-size: 13px;
  }

  .announcement-tabs button small {
    min-width: 21px;
    height: 21px;
    color: inherit;
    background: #ffffff2e;
    border-radius: 50%;
    place-items: center;
    display: grid;
  }

  .announcement-register {
    border-start-start-radius: 0;
    overflow: hidden;
  }

  .announcement-table {
    min-width: 1580px;
  }

  .acknowledgement-table {
    min-width: 1420px;
  }

  .announcement-table td, .acknowledgement-table td {
    height: calc(92px * var(--density-row));
    font-size: 12px;
  }

  .announcement-title {
    max-width: 285px;
  }

  .announcement-title em {
    color: #276d84;
    background: #eaf4f7;
    border-radius: 6px;
    width: max-content;
    padding: 3px 7px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
  }

  .audience-cell {
    grid-template-columns: 18px auto;
    align-items: center;
    gap: 4px 7px;
    min-width: 120px;
    display: grid;
  }

  .audience-cell svg {
    color: #397b91;
    grid-row: 1 / 3;
  }

  .audience-cell strong {
    color: var(--navy-950);
    font-size: 15px;
  }

  .audience-cell small {
    max-width: 135px;
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .announcement-rate {
    flex-direction: column;
    gap: 7px;
    width: 135px;
    display: flex;
  }

  .announcement-rate > span {
    background: #e6edef;
    border-radius: 99px;
    height: 7px;
    overflow: hidden;
  }

  .announcement-rate i {
    background: linear-gradient(90deg, #1d6983, #28987f);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .announcement-rate small {
    color: var(--text-3);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
  }

  .announcement-analysis {
    grid-template-columns: minmax(260px, .65fr) repeat(2, minmax(330px, 1fr));
    gap: 15px;
    display: grid;
  }

  .announcement-analysis > .card {
    padding: 20px;
    overflow: hidden;
  }

  .announcement-analysis .card-head {
    padding: 0 0 16px;
  }

  .announcement-analysis .card-head > svg {
    color: #2c7690;
  }

  .announcement-metric {
    border-top: 1px solid #e8edef;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    display: grid;
  }

  .announcement-metric > i {
    border-radius: 50%;
    width: 9px;
    height: 9px;
  }

  .announcement-metric span {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
  }

  .announcement-metric strong {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    font-size: 18px;
  }

  .announcement-bars {
    flex-direction: column;
    gap: 15px;
    display: flex;
  }

  .announcement-bars > div {
    grid-template-columns: minmax(150px, 1fr) minmax(100px, 1fr) 45px;
    align-items: center;
    gap: 11px;
    display: grid;
  }

  .announcement-bars span {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .announcement-bars strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .announcement-bars small {
    color: var(--text-3);
    font-size: 11px;
  }

  .announcement-bars > div > i {
    background: #e7edef;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
  }

  .announcement-bars b {
    background: linear-gradient(90deg, #1b6781, #2c9a83);
    border-radius: 99px;
    height: 100%;
    display: block;
  }

  .announcement-bars em {
    color: #405965;
    text-align: end;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
  }

  .announcement-modal {
    width: min(780px, 100%);
  }

  .announcement-modal.wide {
    width: min(1040px, 100%);
  }

  .announcement-modal form {
    padding: 2px 24px 24px;
  }

  .announcement-detail-summary {
    background: #dce4e8;
    border: 1px solid #dce4e8;
    border-radius: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 0 24px 18px;
    display: grid;
    overflow: hidden;
  }

  .announcement-detail-summary > span {
    background: #f8fafb;
    flex-direction: column;
    gap: 8px;
    min-height: 76px;
    padding: 12px;
    display: flex;
  }

  .announcement-detail-summary small {
    color: var(--text-3);
    font-size: 12px;
  }

  .announcement-detail-summary strong {
    color: var(--navy-950);
    font-size: 13px;
    line-height: 1.45;
  }

  .announcement-body {
    background: #f8fbfc;
    border: 1px solid #dce6e9;
    border-radius: 12px;
    max-height: 330px;
    margin: 0 24px 18px;
    padding: 17px;
    overflow: auto;
  }

  .announcement-body .eyebrow {
    font-size: 11px;
  }

  .announcement-body p {
    color: #435d69;
    white-space: pre-wrap;
    margin: 7px 0 18px;
    font-size: 13px;
    line-height: 1.8;
  }

  .announcement-body p:last-child {
    margin-bottom: 0;
  }

  .announcement-audience-list {
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 24px 18px;
    display: flex;
  }

  .announcement-audience-list span {
    color: #356273;
    background: #f5fafb;
    border: 1px solid #d4e2e6;
    border-radius: 10px;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
  }

  .announcement-detail-actions {
    flex-wrap: wrap;
    margin-top: 0;
  }

  @media (max-width: 1280px) {
    .announcement-analysis {
      grid-template-columns: 1fr 1fr;
    }

    .announcement-analysis > .card:last-child {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 950px) {
    .announcement-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .announcement-analysis {
      grid-template-columns: 1fr;
    }

    .announcement-analysis > .card:last-child {
      grid-column: auto;
    }

    .announcement-detail-summary {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 620px) {
    .announcement-kpis {
      grid-template-columns: 1fr;
    }

    .announcement-kpi {
      min-height: calc(98px * var(--density-row));
    }

    .announcement-tabs {
      margin-inline: -4px;
    }

    .announcement-tabs button {
      min-width: 142px;
    }

    .announcement-analysis > .card {
      padding: 16px;
    }

    .announcement-bars > div {
      grid-template-columns: 1fr 45px;
    }

    .announcement-bars > div > i {
      grid-column: 1;
    }

    .announcement-modal, .announcement-modal.wide {
      width: 100%;
    }

    .announcement-modal form {
      padding: 2px 18px 18px;
    }

    .announcement-detail-summary {
      grid-template-columns: 1fr 1fr;
      margin-inline: 18px;
    }

    .announcement-body, .announcement-audience-list {
      margin-inline: 18px;
    }

    .announcement-detail-actions .btn {
      flex: 1;
    }

    .announcement-bars strong {
      font-size: 13px;
    }
  }

  .settings-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .settings-kpi {
    min-height: calc(114px * var(--density-row));
    padding: calc(18px * var(--density-space)) 18px;
    align-items: flex-start;
    gap: 13px;
    display: flex;
    overflow: hidden;
  }

  .settings-kpi > span {
    color: #216d87;
    background: #e9f4f7;
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 41px;
    height: 41px;
    display: grid;
  }

  .settings-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .settings-kpi small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
  }

  .settings-kpi strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 7px;
    font-size: 19px;
    line-height: 1.2;
    overflow: hidden;
  }

  .settings-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 8px 0 0;
    font-size: 12px;
    overflow: hidden;
  }

  .settings-tabs {
    margin-bottom: 0;
    overflow-x: auto;
  }

  .settings-tabs button {
    flex: none;
    min-width: 125px;
    font-size: 13px;
  }

  .settings-card {
    border-start-start-radius: 0;
    overflow: hidden;
  }

  .settings-card > .card-head {
    padding-bottom: calc(18px * var(--density-space));
    border-bottom: 1px solid #e8edef;
  }

  .settings-card-title {
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .settings-card-title > span {
    color: #26718a;
    background: #eaf4f7;
    border-radius: 10px;
    flex: none;
    place-items: center;
    width: 39px;
    height: 39px;
    display: grid;
  }

  .settings-card form {
    padding: calc(20px * var(--density-space)) 22px;
  }

  .settings-card .form-grid {
    gap: calc(13px * var(--density-space));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-save {
    margin: calc(20px * var(--density-space)) -22px calc(-20px * var(--density-space));
    padding: calc(14px * var(--density-space)) 22px;
    background: #f8fafb;
    border-top: 1px solid #e3eaed;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .settings-save > span {
    color: var(--text-3);
    align-items: center;
    gap: 7px;
    font-size: 12px;
    display: flex;
  }

  .settings-save > span svg {
    color: #178261;
  }

  .settings-stack {
    gap: calc(15px * var(--density-space));
    flex-direction: column;
    display: flex;
  }

  .sequence-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 18px 20px;
    display: grid;
  }

  .sequence-grid > span {
    background: #f9fbfc;
    border: 1px solid #dfe7ea;
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 70px;
    padding: 11px;
    display: flex;
  }

  .sequence-grid small {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    overflow: hidden;
  }

  .sequence-grid strong {
    color: var(--navy-950);
    font-size: 17px;
  }

  .settings-user-table td {
    height: calc(82px * var(--density-row));
    font-size: 12px;
  }

  .role-grid {
    background: #f8fafb;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    padding: 18px;
    display: grid;
  }

  .role-grid article {
    background: #fff;
    border: 1px solid #dce5e8;
    border-radius: 12px;
    flex-direction: column;
    min-height: 195px;
    padding: 15px;
    display: flex;
  }

  .role-grid article > header {
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    display: flex;
  }

  .role-grid header > span:first-child {
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    display: flex;
  }

  .role-grid header strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    overflow: hidden;
  }

  .role-grid header small {
    color: var(--text-3);
    font-size: 11px;
  }

  .role-grid article > div {
    background: #e1e8eb;
    border: 1px solid #e1e8eb;
    border-radius: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin: 18px 0;
    display: grid;
    overflow: hidden;
  }

  .role-grid article > div > span {
    background: #f8fafb;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 57px;
    display: flex;
  }

  .role-grid article b {
    color: var(--navy-950);
    font-size: 17px;
  }

  .role-grid article > div small {
    color: var(--text-3);
    font-size: 11px;
  }

  .role-grid article > .btn {
    margin-top: auto;
  }

  .settings-history-table {
    min-width: 780px;
  }

  .settings-history-table td {
    height: calc(72px * var(--density-row));
    font-size: 12px;
  }

  .settings-role-modal {
    width: min(980px, 100%);
  }

  .role-permission-form {
    flex-direction: column;
    flex: 1;
    min-height: 0;
    display: flex;
  }

  .settings-role-modal .modal-head {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex: none;
    position: static;
  }

  .permission-summary {
    color: var(--text-3);
    background: #f8fafb;
    border-bottom: 1px solid #e8edef;
    flex: none;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
  }

  .permission-summary svg {
    color: #26718a;
  }

  .permission-groups {
    overscroll-behavior: contain;
    flex: 1;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: max-content;
    align-items: stretch;
    gap: 11px;
    min-height: 0;
    padding: 16px 24px;
    display: grid;
    overflow-y: auto;
  }

  .permission-groups > section {
    background: #fff;
    border: 1px solid #dae4e8;
    border-radius: 12px;
    overflow: hidden;
  }

  .permission-groups > section > header {
    color: #315665;
    background: #f2f7f8;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 41px;
    padding: 9px 11px;
    display: flex;
  }

  .permission-groups > section > header strong {
    min-width: 0;
    font-size: 12px;
  }

  .permission-groups > section > header small {
    color: #267088;
    font-variant-numeric: tabular-nums;
    background: #fff;
    border-radius: 10px;
    flex: none;
    place-items: center;
    min-width: 36px;
    height: 20px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 700;
    display: grid;
  }

  .permission-groups label {
    cursor: pointer;
    border-top: 1px solid #e9eef0;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    gap: 9px;
    min-height: 55px;
    padding: 9px 11px;
    display: grid;
  }

  .permission-groups label:has(input:checked) {
    background: #f6fbfc;
  }

  .permission-groups label:focus-within {
    outline: 2px solid var(--navy-700);
    outline-offset: -2px;
  }

  .permission-groups input {
    accent-color: #176d82;
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }

  .permission-groups label span {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .permission-groups b {
    color: #28414d;
    overflow-wrap: anywhere;
    font-size: 12.5px;
    line-height: 1.4;
  }

  .permission-groups label small {
    color: var(--text-3);
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.5;
  }

  .settings-role-modal .modal-actions {
    background: #f8fafb;
    flex: none;
    margin: 0;
    position: static;
  }

  .permission-scope-note {
    color: var(--text-3);
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.55;
    display: flex;
  }

  .permission-scope-note svg {
    color: #26718a;
    flex: none;
    margin-top: 2px;
  }

  .permission-groups .permission-scope-row {
    border: 0;
    border-top: 1px solid #e9eef0;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 9px 11px;
    display: flex;
  }

  .permission-scope-row > span:first-child {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .permission-scope-row > span:first-child small {
    color: var(--text-3);
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.5;
  }

  .permission-scope-choice {
    border: 1px solid #d3dfe4;
    border-radius: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
    overflow: hidden;
  }

  .permission-groups .permission-scope-choice label {
    border-top: 0;
    color: #3b5663;
    text-align: center;
    cursor: pointer;
    background: #fff;
    border-inline-start: 1px solid #d3dfe4;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-height: 30px;
    padding: 5px 6px;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
  }

  .permission-groups .permission-scope-choice label:first-child {
    border-inline-start: 0;
  }

  .permission-groups .permission-scope-choice label.active {
    color: #fff;
    background: #176d82;
  }

  .permission-groups .permission-scope-choice label:first-child.active {
    color: #28414d;
    background: #e9eef0;
  }

  .permission-groups .permission-scope-choice input {
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    position: absolute;
  }

  @media (max-width: 1280px) {
    .role-grid, .sequence-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

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

  @media (max-width: 620px) {
    .settings-kpis {
      grid-template-columns: 1fr;
    }

    .settings-kpi {
      min-height: calc(95px * var(--density-row));
    }

    .settings-tabs {
      margin-inline: -4px;
    }

    .settings-tabs button {
      min-width: 120px;
    }

    .settings-card .form-grid {
      grid-template-columns: 1fr;
    }

    .settings-save {
      flex-direction: column;
      align-items: stretch;
    }

    .settings-save .btn {
      width: 100%;
    }

    .sequence-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      padding: 14px;
    }

    .role-grid {
      grid-template-columns: 1fr;
      padding: 13px;
    }

    .settings-role-modal {
      width: 100%;
    }

    .permission-summary, .permission-groups {
      padding-inline: 18px;
    }
  }

  .plugin-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .plugin-kpi {
    min-height: calc(114px * var(--density-row));
    padding: calc(18px * var(--density-space)) 18px;
    align-items: flex-start;
    gap: 13px;
    display: flex;
  }

  .plugin-kpi > span {
    color: #236e87;
    background: #e9f4f7;
    border-radius: 12px;
    flex: none;
    place-items: center;
    width: 41px;
    height: 41px;
    display: grid;
  }

  .plugin-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .plugin-kpi small {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
  }

  .plugin-kpi strong {
    color: var(--navy-950);
    margin-top: 7px;
    font-size: 25px;
    line-height: 1;
  }

  .plugin-kpi p {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 9px 0 0;
    font-size: 12px;
    overflow: hidden;
  }

  .plugin-tabs {
    margin-bottom: 0;
    overflow-x: auto;
  }

  .plugin-tabs button {
    flex: none;
    min-width: 170px;
    font-size: 13px;
  }

  .plugin-catalog, .plugin-register {
    border-start-start-radius: 0;
    overflow: hidden;
  }

  .plugin-grid {
    background: #f7fafb;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 17px;
    display: grid;
  }

  .plugin-card {
    background: #fff;
    border: 1px solid #dce4e8;
    border-radius: 14px;
    flex-direction: column;
    min-height: 355px;
    padding: 18px;
    display: flex;
    box-shadow: 0 5px 18px #1834420a;
  }

  .plugin-card.enabled {
    border-color: #b8dbc9;
    box-shadow: 0 8px 24px #0c6e4c14;
  }

  .plugin-card > header {
    grid-template-columns: 42px 1fr auto;
    align-items: start;
    gap: 10px;
    display: grid;
  }

  .plugin-card > header > span:first-child {
    color: #216e88;
    background: #eaf4f7;
    border-radius: 12px;
    place-items: center;
    width: 42px;
    height: 42px;
    display: grid;
  }

  .plugin-card header > div {
    min-width: 0;
  }

  .plugin-card header small {
    color: var(--text-3);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
  }

  .plugin-card h3 {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 5px 0 0;
    font-size: 14px;
    overflow: hidden;
  }

  .plugin-card > p {
    min-height: 68px;
    color: var(--text-2);
    margin: 17px 0;
    font-size: 12px;
    line-height: 1.75;
  }

  .plugin-version {
    background: #e0e7ea;
    border: 1px solid #e0e7ea;
    border-radius: 10px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    display: grid;
    overflow: hidden;
  }

  .plugin-version > span {
    background: #f8fafb;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 61px;
    display: flex;
  }

  .plugin-version small {
    color: var(--text-3);
    font-size: 11px;
  }

  .plugin-version strong {
    color: var(--navy-950);
    font-size: 14px;
  }

  .plugin-modules {
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    min-height: 58px;
    margin-top: 13px;
    display: flex;
  }

  .plugin-modules span {
    color: #356478;
    background: #edf5f7;
    border-radius: 6px;
    height: 23px;
    padding: 4px 7px;
    font-size: 11px;
    font-weight: 700;
  }

  .plugin-card > footer {
    border-top: 1px solid #e9eef0;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 13px;
    display: flex;
  }

  .plugin-rule-table {
    min-width: 1360px;
  }

  .plugin-rule-table td {
    height: calc(86px * var(--density-row));
    max-width: 320px;
    font-size: 12px;
  }

  .plugin-history-table {
    min-width: 760px;
  }

  .plugin-history-table td {
    height: calc(72px * var(--density-row));
    font-size: 12px;
  }

  .plugin-modal {
    width: min(760px, 100%);
  }

  .plugin-modal form {
    padding: 2px 24px 24px;
  }

  .plugin-modal .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plugin-legal-note {
    margin: 16px 0 0;
  }

  .plugin-register > .card-head > svg {
    color: #2b7690;
  }

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

  @media (max-width: 850px) {
    .plugin-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plugin-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 620px) {
    .plugin-kpis {
      grid-template-columns: 1fr;
    }

    .plugin-kpi {
      min-height: calc(95px * var(--density-row));
    }

    .plugin-tabs {
      margin-inline: -4px;
    }

    .plugin-tabs button {
      min-width: 155px;
    }

    .plugin-grid {
      padding: 12px;
    }

    .plugin-card {
      min-height: 335px;
      padding: 15px;
    }

    .plugin-card > header {
      grid-template-columns: 42px 1fr;
    }

    .plugin-card > header > .badge {
      grid-column: 2;
      width: max-content;
    }

    .plugin-modal {
      width: 100%;
    }

    .plugin-modal form {
      padding-inline: 18px;
    }

    .plugin-modal .form-grid {
      grid-template-columns: 1fr;
    }

    .plugin-card > footer .btn {
      flex: 1;
    }
  }

  .date-field {
    align-items: center;
    gap: 6px;
    min-width: 0;
    display: flex;
    position: relative;
  }

  .date-field > input[type="text"], .date-field > input[type="text"]:focus, .date-field > input[type="text"]:focus-visible {
    width: 100%;
    min-width: 0;
    height: 100%;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: start;
    background: none;
    border: 0;
    border-radius: 0;
    outline: 0;
    flex: auto;
    padding: 0;
  }

  .date-field > input[type="text"]::placeholder {
    color: #9fb0b9;
    font-weight: 500;
  }

  .date-field-open {
    width: 27px;
    height: 27px;
    color: var(--text-3);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 7px;
    flex: none;
    place-items: center;
    padding: 0;
    display: grid;
  }

  .date-field-open:hover {
    color: var(--navy-700);
    background: #eef4f7;
  }

  .date-field-open:focus-visible {
    outline: 2px solid var(--navy-700);
    outline-offset: 1px;
  }

  .form-field .date-field, .field > .date-field {
    width: 100%;
    height: 42px;
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    padding: 0 8px 0 11px;
    font-weight: 500;
  }

  .form-field .date-field:focus-within, .field > .date-field:focus-within {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .date-field[data-invalid="true"], .date-field[data-invalid="true"]:focus-within {
    border-color: #c53f2f;
    box-shadow: 0 0 0 3px #c53f2f1a;
  }

  .date-control .date-field {
    height: 100%;
    color: var(--ink);
    flex: 1;
    font-size: 14px;
    font-weight: 700;
  }

  .date-control:focus-within {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .date-calendar {
    z-index: 110;
    width: min(274px, 100vw - 40px);
    color: var(--ink);
    text-align: start;
    background: #fff;
    border: 1px solid #dbe4e8;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 18px 44px #0b26332e;
  }

  .date-calendar header {
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    display: grid;
  }

  .date-calendar-heading {
    justify-content: center;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .date-calendar-heading select {
    min-width: 0;
    height: 30px;
    color: var(--navy-950);
    font: inherit;
    cursor: pointer;
    background: none;
    border: 1px solid #0000;
    border-radius: 8px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
  }

  .date-calendar-heading select:hover {
    background: #eef4f7;
  }

  .date-calendar-heading select:focus-visible {
    outline: 2px solid var(--navy-700);
    outline-offset: 1px;
  }

  .date-calendar header button, .date-calendar footer button {
    height: 30px;
    color: var(--text-2);
    font: inherit;
    cursor: pointer;
    background: none;
    border: 1px solid #0000;
    border-radius: 8px;
    place-items: center;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 600;
    display: grid;
  }

  .date-calendar header button:hover, .date-calendar footer button:hover:not(:disabled) {
    color: var(--navy-700);
    background: #eef4f7;
  }

  .date-calendar-weekdays, .date-calendar-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    display: grid;
  }

  .date-calendar-weekdays span {
    color: var(--text-3);
    text-align: center;
    padding-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
  }

  .date-calendar-grid button {
    height: 32px;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    background: none;
    border: 1px solid #0000;
    border-radius: 8px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
  }

  .date-calendar-grid button:hover:not(:disabled) {
    background: #eef4f7;
  }

  .date-calendar-grid button:disabled {
    color: #c3ced4;
    cursor: not-allowed;
  }

  .date-calendar-grid button[data-today="true"] {
    border-color: #bcd3dd;
  }

  .date-calendar-grid button.is-selected {
    border-color: var(--navy-700);
    color: #fff;
    background: var(--navy-700);
  }

  .date-calendar-grid button:focus-visible {
    outline: 2px solid var(--navy-700);
    outline-offset: 1px;
  }

  .date-calendar footer {
    border-top: 1px solid #edf1f2;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding-top: 9px;
    display: flex;
  }

  .date-calendar-time {
    color: var(--text-3);
    align-items: center;
    gap: 7px;
    margin-inline-end: auto;
    font-size: 12px;
    font-weight: 600;
    display: flex;
  }

  .date-calendar-time input {
    height: 30px;
    color: var(--ink);
    font: inherit;
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 8px;
    padding: 0 7px;
    font-size: 13px;
    font-weight: 500;
  }

  @media (hover: none) {
    .date-calendar {
      width: min(310px, 100vw - 32px);
    }

    .date-calendar-grid button {
      height: 40px;
    }
  }

  .settings-user-table {
    min-width: 980px;
  }

  .row-actions {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    display: flex;
  }

  .row-actions .btn {
    white-space: nowrap;
  }

  .settings-user-table td {
    height: auto;
    min-height: 72px;
    padding-block: calc(12px * var(--density-space));
  }

  .field-error {
    color: #a62e2e;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 600;
    display: block;
  }

  .field-hint {
    color: var(--text-3);
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    display: flex;
  }

  .field-hint svg {
    color: #178261;
    flex: none;
  }

  .field-required {
    color: #a62e2e;
    font-style: normal;
    font-weight: 700;
  }

  .field input[aria-invalid="true"] {
    border-color: #a62e2e;
  }

  .password-input {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .password-input input {
    letter-spacing: .02em;
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }

  .password-input .icon-button {
    flex: none;
    width: 38px;
    height: 38px;
  }

  .password-input .btn {
    white-space: nowrap;
    flex: none;
  }

  .password-rules {
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .password-rules li {
    color: var(--text-3);
    align-items: center;
    gap: 5px;
    font-size: 12px;
    display: flex;
  }

  .password-rules li svg {
    color: #b4c0c7;
  }

  .password-rules li.ok, .password-rules li.ok svg {
    color: #178261;
  }

  .settings-user-modal {
    width: min(760px, 100%);
  }

  .settings-user-modal form {
    flex-direction: column;
    flex: 1;
    min-height: 0;
    display: flex;
  }

  .settings-user-modal .modal-head {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    flex: none;
    position: static;
  }

  .settings-user-modal .modal-actions {
    background: #f8fafb;
    flex: none;
    margin: 0;
    position: static;
  }

  .user-modal-body {
    overscroll-behavior: contain;
    flex-direction: column;
    flex: 1;
    gap: 16px;
    min-height: 0;
    padding: 18px 24px;
    display: flex;
    overflow-y: auto;
  }

  .user-modal-body .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .user-modal-identity {
    background: #f8fafb;
    border: 1px solid #dae4e8;
    border-radius: 12px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    display: flex;
  }

  .role-picker {
    border: 1px solid #dae4e8;
    border-radius: 12px;
    margin: 0;
    padding: 0;
  }

  .role-picker legend {
    color: #315665;
    margin-inline-start: 13px;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 700;
  }

  .role-picker > p {
    color: var(--text-3);
    margin: 0;
    padding: 0 15px 11px;
    font-size: 12px;
    line-height: 1.6;
  }

  .role-picker label {
    cursor: pointer;
    border-top: 1px solid #e9eef0;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    min-height: 56px;
    padding: 10px 15px;
    display: grid;
  }

  .role-picker label:has(input:checked) {
    background: #f6fbfc;
  }

  .role-picker label:focus-within {
    outline: 2px solid var(--navy-700);
    outline-offset: -2px;
  }

  .role-picker label.is-disabled {
    cursor: not-allowed;
    opacity: .55;
  }

  .role-picker input {
    accent-color: #176d82;
    cursor: pointer;
    width: 16px;
    height: 16px;
    margin-top: 2px;
  }

  .role-picker input:disabled {
    cursor: not-allowed;
  }

  .role-picker label span {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .role-picker b {
    color: #28414d;
    font-size: 12.5px;
    line-height: 1.4;
  }

  .role-picker small {
    color: var(--text-3);
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.5;
  }

  .role-picker .field-error {
    padding: 9px 15px 11px;
  }

  @media (max-width: 620px) {
    .settings-user-modal {
      width: 100%;
    }

    .user-modal-body {
      padding-inline: 16px;
    }

    .user-modal-body .form-grid {
      grid-template-columns: 1fr;
    }

    .password-input {
      flex-wrap: wrap;
      align-items: stretch;
    }

    .password-input input {
      flex: 1 0 100%;
    }

    .row-actions .btn {
      flex: 1;
    }
  }

  .permission-denied {
    text-align: center;
    place-content: center;
    justify-items: center;
    min-height: 300px;
    padding: 44px 30px;
    display: grid;
  }

  .permission-denied-icon {
    color: #26718a;
    background: #eaf4f7;
    border-radius: 16px;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    display: grid;
  }

  .permission-denied h2 {
    color: var(--navy-950);
    margin: 0;
    font-size: 19px;
    line-height: 1.45;
  }

  .permission-denied p {
    max-width: 520px;
    color: var(--muted);
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.8;
  }

  @media (max-width: 620px) {
    .permission-denied {
      min-height: 240px;
      padding: 34px 18px;
    }

    .permission-denied h2 {
      font-size: 17px;
    }
  }

  .employee-link {
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    display: flex;
  }

  .employee-link > small {
    color: var(--text-3);
  }

  .link-button {
    color: #26718a;
    font: inherit;
    text-underline-offset: 2px;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
  }

  .link-button:hover {
    color: var(--navy-950);
  }

  .link-button:disabled {
    opacity: .5;
    cursor: not-allowed;
  }

  .link-button.is-danger {
    color: #a62e2e;
    margin-top: 10px;
  }

  .link-button.is-danger:hover {
    color: #8d2424;
  }

  .dependents-card .info-card-title {
    gap: 9px;
  }

  .dependents-card {
    grid-column: 1 / -1;
  }

  .dependents-add {
    margin-inline-start: auto;
  }

  .dependents-empty {
    text-align: center;
    justify-items: center;
    gap: 7px;
    padding: 22px 20px 24px;
    display: grid;
  }

  .dependents-empty strong {
    color: var(--navy-950);
    font-size: 14px;
  }

  .dependents-empty p {
    max-width: 420px;
    color: var(--muted);
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
  }

  .dependent-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    align-items: start;
    gap: 12px;
    margin: 0;
    padding: 14px 17px 17px;
    list-style: none;
    display: grid;
  }

  .dependent-row {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    flex-direction: column;
    gap: 7px;
    padding: 13px 14px;
    display: flex;
  }

  .dependent-row.is-inactive {
    background: #fafbfc;
  }

  .dependent-row.is-inactive .dependent-head strong {
    color: var(--text-2);
  }

  .dependent-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    display: flex;
  }

  .dependent-head strong {
    min-width: 0;
    color: var(--navy-950);
    overflow-wrap: anywhere;
    font-size: 14px;
  }

  .dependent-meta {
    color: var(--muted);
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .dependent-coverage {
    color: var(--text-2);
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
  }

  .dependent-coverage em {
    color: #a86a08;
    margin-top: 4px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    display: block;
  }

  .dependent-id {
    color: var(--text-2);
    margin: 0;
    font-size: 12px;
  }

  .dependent-id > span {
    color: var(--muted);
  }

  .dependent-foot {
    border-top: 1px solid #eef1f3;
    flex-direction: column;
    gap: 9px;
    padding-top: 10px;
    display: flex;
  }

  .dependent-foot .row-actions .btn {
    min-height: 31px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .dependent-more > summary {
    color: #26718a;
    cursor: pointer;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
  }

  .dependent-more > summary::marker {
    color: var(--text-3);
  }

  .dependent-more > summary:hover {
    color: var(--navy-950);
  }

  .dependent-more > summary:focus-visible {
    outline: 2px solid var(--navy-700);
    outline-offset: 2px;
    border-radius: 6px;
  }

  .dependent-details {
    border-top: 1px solid #eef1f3;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 9px 14px;
    margin: 0;
    padding-top: 9px;
    display: grid;
  }

  .dependent-detail {
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    display: flex;
  }

  .dependent-detail dt {
    color: var(--muted);
    font-size: 11px;
  }

  .dependent-detail dd {
    color: var(--ink);
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 12.5px;
  }

  .dependent-file-link {
    color: #26718a;
    overflow-wrap: anywhere;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
  }

  .dependent-detail .dependent-file-link {
    margin-top: 4px;
  }

  .dependent-file {
    color: var(--text-2);
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    margin-top: 6px;
    font-size: 12px;
    display: flex;
  }

  .dependent-file a {
    color: #26718a;
    overflow-wrap: anywhere;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-weight: 600;
    display: inline-flex;
  }

  .dependent-file.is-dropping {
    color: #a62e2e;
  }

  @media (max-width: 620px) {
    .dependent-list {
      grid-template-columns: 1fr;
      padding: 12px 14px 14px;
    }

    .dependent-foot .row-actions .btn {
      flex: 1;
      min-height: 35px;
    }

    .dependents-card .info-card-title {
      flex-wrap: wrap;
      min-height: auto;
      padding: 12px 14px;
    }

    .dependents-add {
      justify-content: center;
      width: 100%;
      margin-inline-start: 0;
    }
  }

  .header-tools {
    align-items: center;
    gap: 8px;
    display: flex;
    position: relative;
  }

  .header-tools-panel {
    inset-inline-end: 0;
    color: #163747;
    z-index: 90;
    background: #fff;
    border: 1px solid #dce4e8;
    border-radius: 14px;
    width: min(360px, 100vw - 32px);
    padding: 16px;
    line-height: 1.7;
    position: absolute;
    top: calc(100% + 14px);
    box-shadow: 0 12px 35px #102c3b26;
  }

  .header-tools-panel .card-head {
    padding: 0;
  }

  .header-tools-panel p {
    margin: 12px 0;
    font-size: 13px;
  }

  .header-tools-panel a {
    color: #164d66;
    padding: 9px 0;
    text-decoration: underline;
    display: block;
  }

  .permit-import-preview {
    padding: 20px;
  }

  .notification-entry {
    border-top: 1px solid #dce4e8;
    padding: 8px 0;
  }

  .header-tools-panel {
    max-height: 70vh;
    overflow-y: auto;
  }

  @media (max-width: 820px) {
    .header-tools-panel {
      inset-inline: 14px;
      width: auto;
      position: fixed;
      top: 84px;
    }
  }

  .lmra-register {
    margin-bottom: 18px;
  }

  .lmra-register .summary-strip {
    border-inline: 0;
    border-radius: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
  }

  .lmra-register .summary-item:last-child {
    grid-column: span 2;
  }

  .lmra-register .summary-item strong {
    overflow-wrap: anywhere;
    font-size: 18px;
  }

  .lmra-register .summary-item .metric-sub {
    white-space: normal;
  }

  .lmra-notice {
    color: #087451;
    align-items: center;
    gap: 8px;
    margin: 12px 18px 0;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .lmra-hint {
    color: var(--muted);
    margin: 10px 18px;
    font-size: 13px;
    line-height: 1.7;
  }

  .lmra-warning {
    color: #685622;
    background: #fffbed;
    border: 1px solid #ecdba3;
    border-radius: 10px;
    align-items: center;
    gap: 9px;
    margin: 10px 0;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.6;
    display: flex;
  }

  .lmra-history {
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
  }

  .lmra-history h4 {
    color: var(--navy-950);
    margin: 0 0 10px;
    font-size: 14px;
  }

  .lmra-toolbar {
    flex-wrap: wrap;
  }

  .lmra-toolbar .toolbar-search {
    min-width: 220px;
  }

  .lmra-range {
    color: var(--muted);
    align-items: center;
    gap: 7px;
    font-size: 12px;
    display: flex;
  }

  .lmra-range small {
    white-space: nowrap;
  }

  .lmra-omitted {
    color: #a86a08;
  }

  .lmra-link {
    color: inherit;
    flex-direction: column;
    text-decoration: none;
    display: flex;
  }

  .lmra-link strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .lmra-link small {
    color: var(--text-3);
    margin-top: 3px;
    font-size: 12px;
  }

  .lmra-link:hover strong {
    text-decoration: underline;
  }

  .lmra-wizard {
    border-bottom: 1px solid var(--line);
    background: #f8fafb;
  }

  .lmra-wizard-head {
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    display: flex;
  }

  .lmra-wizard-head h4 {
    color: var(--navy-950);
    margin: 0;
    font-size: 16px;
  }

  .lmra-wizard-head p {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 13px;
  }

  .lmra-steps {
    counter-reset: step;
    gap: 8px;
    margin: 14px 0 4px;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .lmra-steps li {
    border: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
  }

  .lmra-steps li:before {
    counter-increment: step;
    content: counter(step) ". ";
  }

  .lmra-steps li.active {
    border-color: var(--navy-900);
    color: var(--navy-950);
  }

  .lmra-steps li.done {
    color: #087451;
    background: var(--green-soft);
    border-color: #087451;
  }

  .lmra-wizard .lmra-hint {
    margin-inline: 0;
  }

  .lmra-plan {
    border-top: 1px dashed var(--line);
    margin-top: 16px;
    padding-top: 16px;
  }

  .lmra-plan-summary {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    display: flex;
  }

  .lmra-actions {
    margin: 18px -20px -20px;
    position: static;
  }

  .detail-grid {
    background: #dbe4e9;
    border: 1px solid #dbe4e9;
    border-radius: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 16px 0;
    display: grid;
    overflow: hidden;
  }

  .detail-fact {
    background: #fff;
    flex-direction: column;
    gap: 6px;
    min-height: 64px;
    padding: 11px 14px;
    display: flex;
  }

  .detail-fact dt {
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .3px;
    font-size: 11px;
    font-weight: 700;
  }

  .detail-fact dd {
    color: var(--navy-950);
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
  }

  .detail-fact dd .metric-sub {
    white-space: normal;
    font-weight: 500;
  }

  .detail-fact.wide {
    grid-column: 1 / -1;
  }

  .modal-body > h4 {
    color: var(--navy-950);
    margin: 18px 0 6px;
    font-size: 14px;
  }

  @media (max-width: 820px) {
    .lmra-register .card-head {
      flex-wrap: wrap;
    }

    .lmra-register .card-head-actions {
      width: 100%;
    }

    .lmra-register .card-head-actions .btn {
      flex: 45%;
    }

    .lmra-register .summary-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lmra-register .summary-item:last-child {
      grid-column: 1 / -1;
    }

    .lmra-wizard .form-grid.three {
      grid-template-columns: 1fr;
    }

    .lmra-range {
      flex: 45%;
    }

    .lmra-wizard-head {
      flex-wrap: wrap;
    }
  }

  @media (max-width: 560px) {
    .detail-grid {
      grid-template-columns: 1fr;
    }

    .lmra-actions {
      flex-wrap: wrap;
    }

    .lmra-actions .btn {
      flex: 1;
    }
  }

  .permit-register, .lmra-register {
    container-type: inline-size;
  }

  .permit-grid-table {
    table-layout: fixed;
  }

  .permit-grid-table th, .permit-grid-table td {
    padding: 11px 12px;
  }

  .permit-grid-table th {
    white-space: normal;
    line-height: 1.3;
  }

  .permit-grid-table td {
    vertical-align: top;
  }

  .permit-grid-table .col-identity {
    width: 26%;
  }

  .permit-grid-table .col-document, .permit-grid-table .col-match {
    width: 18%;
  }

  .permit-grid-table .col-expiry, .permit-grid-table .col-status {
    width: 13%;
  }

  .permit-grid-table .col-presence {
    width: 16%;
  }

  .permit-grid-table .col-owner {
    width: 14%;
  }

  .permit-grid-table .col-actions {
    width: 13%;
  }

  .lmra-table .col-actions {
    width: 9%;
  }

  .lmra-table .col-owner {
    width: 15%;
  }

  .permit-grid-table .employee-cell, .permit-grid-table .bi-copy {
    min-width: 0;
  }

  .permit-grid-table .employee-cell .employee-meta {
    flex: auto;
    align-items: flex-start;
    min-width: 0;
  }

  .permit-grid-table .only-compact, .permit-grid-table .presence-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    display: flex;
  }

  .permit-grid-table strong, .permit-grid-table small, .permit-grid-table .lmra-link strong {
    overflow-wrap: anywhere;
  }

  .permit-grid-table .employee-cell strong {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }

  .permit-grid-table .employee-cell small {
    white-space: normal;
  }

  .permit-grid-table .protected-number {
    letter-spacing: .3px;
    min-width: 0;
    max-width: 100%;
    padding: 4px 7px;
    font-size: 11px;
  }

  .permit-grid-table .permit-ids {
    direction: inherit;
    flex-flow: wrap;
    gap: 4px;
    margin-top: 6px;
    display: flex;
  }

  .permit-grid-table .employee-cell .protected-number {
    flex-direction: row;
    align-items: center;
  }

  .permit-grid-table .employee-cell .permit-ids > span:not(.protected-number) {
    color: var(--text-2);
    font-weight: 600;
    display: inline;
  }

  .permit-grid-table .bi-copy .protected-number {
    width: max-content;
    margin-top: 5px;
  }

  .permit-grid-table .cell-expiry strong {
    display: block;
  }

  .permit-grid-table .cell-expiry .badge {
    margin-top: 6px;
  }

  .permit-grid-table .cell-expiry .only-compact {
    margin-top: 8px;
  }

  .permit-grid-table .metric-sub {
    white-space: normal;
  }

  .permit-grid-table .owner-select {
    width: 100%;
    min-width: 0;
    height: 35px;
    padding-inline: 7px;
  }

  .permit-grid-table .row-actions {
    gap: 5px;
  }

  .permit-grid-table .btn-icon-text {
    gap: 5px;
    min-height: 31px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .permit-grid-table .permit-current {
    white-space: normal;
  }

  .permit-grid-table .lmra-link {
    flex-direction: column;
    display: flex;
  }

  .permit-grid-table .only-compact {
    display: none;
  }

  @container (max-width: 899px) {
    .lmra-register .card-head {
      flex-wrap: wrap;
    }

    .lmra-register .card-head-actions {
      width: 100%;
    }

    .permit-grid-table th, .permit-grid-table td {
      padding: 10px 8px;
    }

    .permit-grid-table .col-wide {
      display: none;
    }

    .permit-grid-table .only-compact {
      display: flex;
    }

    .permit-grid-table .cell-identity .only-compact {
      margin-top: 6px;
    }

    .permit-grid-table .employee-avatar {
      display: none;
    }

    .permit-grid-table .col-identity {
      width: 37%;
    }

    .permit-grid-table .col-expiry {
      width: 26%;
    }

    .permit-grid-table .col-owner, .lmra-table .col-owner {
      width: 22%;
    }

    .permit-grid-table .col-actions, .lmra-table .col-actions {
      width: 15%;
    }

    .permit-grid-table .btn-icon-text span {
      display: none;
    }

    .permit-grid-table .btn-icon-text {
      justify-content: center;
      width: 31px;
      padding-inline: 0;
    }
  }

  @container (max-width: 639px) {
    .permit-grid-table, .permit-grid-table tbody, .permit-grid-table tr, .permit-grid-table td {
      width: auto;
      display: block;
    }

    .permit-grid-table thead {
      display: none;
    }

    .permit-grid-table tbody tr {
      border-bottom: 1px solid var(--line);
      padding: 14px 16px 12px;
    }

    .permit-grid-table tbody tr:last-child {
      border-bottom: 0;
    }

    .permit-grid-table tbody tr:hover {
      background: none;
    }

    .permit-grid-table td {
      border: 0;
      grid-template-columns: 96px minmax(0, 1fr);
      align-items: start;
      gap: 4px 10px;
      min-height: 0;
      padding: 6px 0;
      display: grid;
    }

    .permit-grid-table td[data-label]:before {
      content: attr(data-label);
      color: var(--text-3);
      letter-spacing: .4px;
      text-transform: uppercase;
      grid-area: 1 / 1;
      padding-top: 2px;
      font-size: 11px;
      font-weight: 700;
    }

    .permit-grid-table td[data-label] > * {
      grid-column: 2;
      justify-self: start;
      max-width: 100%;
    }

    .permit-grid-table td[data-label] > .owner-select, .permit-grid-table td[data-label] > .lmra-link, .permit-grid-table td[data-label] > .bi-copy, .permit-grid-table td[data-label] > .presence-cell, .permit-grid-table td[data-label] > .row-actions {
      justify-self: stretch;
    }

    .permit-grid-table td.cell-identity {
      padding: 0 0 8px;
      display: block;
    }

    .permit-grid-table td.cell-identity:before, .permit-grid-table td.cell-actions:before {
      content: none;
    }

    .permit-grid-table td:not([data-label]) {
      padding: 0;
      display: block;
    }

    .permit-grid-table .col-wide {
      display: grid;
    }

    .permit-grid-table .only-compact {
      display: none;
    }

    .permit-grid-table .employee-avatar {
      display: grid;
    }

    .permit-grid-table .employee-cell strong {
      -webkit-line-clamp: 3;
    }

    .permit-grid-table .cell-expiry .badge {
      margin-top: 4px;
    }

    .permit-grid-table td.cell-actions {
      padding-top: 10px;
      display: block;
    }

    .permit-grid-table .row-actions .btn {
      flex: 1;
      justify-content: center;
    }

    .permit-grid-table .btn-icon-text span {
      display: inline;
    }

    .permit-grid-table .btn-icon-text {
      width: auto;
      min-height: 36px;
      padding-inline: 12px;
      font-size: 13px;
    }

    .permit-grid-table .permit-current {
      flex: 1;
      justify-content: center;
    }

    .permit-grid-table .owner-select {
      height: 38px;
    }
  }

  .sr-only {
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .att-header {
    margin-bottom: calc(16px * var(--density-space));
    gap: calc(12px * var(--density-space));
    flex-direction: column;
    display: flex;
  }

  .att-title h1 {
    color: var(--navy-950);
    letter-spacing: -.5px;
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
  }

  .att-nav {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    scrollbar-width: thin;
    background: #fff;
    border-radius: 12px;
    gap: 4px;
    padding: 4px;
    display: flex;
    overflow-x: auto;
  }

  .att-nav a {
    height: calc(36px * var(--density-control));
    color: var(--text-2);
    border-radius: 9px;
    flex: none;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
  }

  .att-nav a:hover {
    color: var(--navy-950);
    background: var(--canvas);
  }

  .att-nav a.active {
    color: #fff;
    background: var(--navy-900);
  }

  .att-nav a:focus-visible, .att-sort:focus-visible, .att-status-card:focus-visible, .att-name-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .att-section-head {
    margin-bottom: calc(14px * var(--density-space));
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    display: flex;
  }

  .att-section-head h2 {
    color: var(--navy-950);
    margin: 0;
    font-size: 18px;
  }

  .att-section-head p {
    color: var(--muted);
    max-width: 720px;
    margin: 4px 0 0;
    font-size: 13px;
  }

  .att-kpis-row, .att-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(14px * var(--density-space));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    display: grid;
  }

  .att-kpis .attendance-kpi, .att-kpi {
    min-height: 0;
    padding: calc(14px * var(--density-space)) 16px;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .att-kpi .attendance-kpi-icon, .att-kpis .attendance-kpi-icon {
    border-radius: 10px;
    width: 38px;
    height: 38px;
  }

  .att-kpi > div {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .att-kpi > div > span, .att-kpis .attendance-kpi > div > span {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
  }

  .att-kpi strong, .att-kpis .attendance-kpi strong {
    color: var(--navy-950);
    margin-top: 3px;
    font-size: 22px;
    line-height: 1.15;
  }

  .att-kpi small, .att-kpis .attendance-kpi small {
    color: var(--text-3);
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 3px;
    font-size: 12px;
    overflow: hidden;
  }

  .att-entity-head {
    margin-bottom: calc(14px * var(--density-space));
    padding: calc(14px * var(--density-space)) 16px;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .att-entity-icon {
    width: 40px;
    height: 40px;
    color: var(--navy-700);
    background: var(--blue-soft);
    border-radius: 10px;
    place-items: center;
    display: grid;
  }

  .att-avatar {
    flex: none;
    width: 40px;
    height: 40px;
  }

  .att-entity-title {
    flex: 1;
    min-width: 220px;
  }

  .att-entity-title h2 {
    color: var(--navy-950);
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    display: flex;
  }

  .att-entity-title p {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 13px;
  }

  .att-entity-title code, .att-codes code, .att-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
  }

  .att-toolbar {
    flex-wrap: wrap;
    min-height: 0;
  }

  .att-toolbar .select-field {
    width: auto;
    min-width: 150px;
  }

  .att-date-filter {
    min-width: 150px;
    max-width: 190px;
  }

  .att-table-scroll {
    max-height: min(68vh, 900px);
    overflow: auto;
  }

  .att-table {
    min-width: 860px;
  }

  .att-table thead th {
    z-index: 1;
    box-shadow: inset 0 -1px 0 var(--line);
    background: #f7f9fb;
    position: sticky;
    top: 0;
  }

  .att-table td {
    height: auto;
    padding-top: calc(10px * var(--density-row));
    padding-bottom: calc(10px * var(--density-row));
    vertical-align: middle;
  }

  .att-table th.num, .att-table td.num {
    text-align: end;
    font-variant-numeric: tabular-nums;
  }

  .att-actions-col {
    text-align: end;
    white-space: nowrap;
    width: 1%;
  }

  .att-sort {
    color: inherit;
    font: inherit;
    cursor: pointer;
    background: none;
    border: 0;
    align-items: center;
    gap: 4px;
    padding: 0;
    display: inline-flex;
  }

  .att-sort svg {
    opacity: .35;
  }

  th[aria-sort="ascending"] .att-sort svg {
    opacity: 1;
    transform: rotate(180deg);
  }

  th[aria-sort="descending"] .att-sort svg {
    opacity: 1;
  }

  .att-row-link {
    cursor: pointer;
  }

  .att-row-link:hover td {
    background: #f8fafc;
  }

  .att-name-link {
    color: var(--navy-950);
    font-weight: 700;
    text-decoration: none;
  }

  .att-name-link:hover {
    color: var(--navy-700);
    text-decoration: underline;
  }

  .att-name-link.as-button {
    font: inherit;
    cursor: pointer;
    text-align: start;
    background: none;
    border: 0;
    padding: 0;
  }

  .att-sub {
    color: var(--muted);
    margin-top: 2px;
    font-size: 12px;
    display: block;
  }

  .att-muted {
    color: var(--muted);
  }

  .att-nowrap {
    white-space: nowrap;
  }

  .att-codes {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    display: flex;
  }

  .att-chip {
    background: var(--blue-soft);
    border-radius: 999px;
    align-items: center;
    gap: 2px;
    padding: 1px 2px 1px 8px;
    font-size: 12px;
    display: inline-flex;
  }

  .att-chip button {
    width: 20px;
    height: 20px;
    color: var(--text-2);
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 50%;
    place-items: center;
    display: grid;
  }

  .att-chip button:hover {
    background: #fff;
  }

  .att-row-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .att-menu-wrap {
    position: relative;
  }

  .att-menu-veil {
    z-index: 20;
    position: fixed;
    inset: 0;
  }

  .att-menu {
    inset-inline-end: 0;
    z-index: 21;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    gap: 2px;
    margin-top: 6px;
    padding: 6px;
    display: grid;
    position: absolute;
    top: 100%;
  }

  .att-menu button {
    height: 34px;
    color: var(--text-2);
    font: inherit;
    text-align: start;
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 8px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    font-size: 13px;
    display: flex;
  }

  .att-menu button:hover {
    background: var(--canvas);
    color: var(--navy-950);
  }

  .att-menu button.danger {
    color: #b62f2f;
  }

  .att-notice {
    border-radius: 10px;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    display: flex;
  }

  .att-notice.green {
    color: #087451;
    background: var(--green-soft);
  }

  .att-notice.red {
    color: #a72f2f;
    background: var(--red-soft);
    border: 1px solid #f1c9c9;
  }

  .att-notice .icon-button {
    background: none;
    width: 24px;
    height: 24px;
    margin-inline-start: auto;
  }

  .att-state-error {
    color: #a72f2f;
  }

  .att-status-cards {
    margin-bottom: calc(14px * var(--density-space));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    display: grid;
  }

  .att-status-card {
    border: 1px solid var(--line);
    font: inherit;
    text-align: start;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
    display: flex;
  }

  .att-status-card span {
    color: var(--muted);
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
  }

  .att-status-card strong {
    color: var(--navy-950);
    font-size: 22px;
    line-height: 1.1;
  }

  .att-status-card.red strong {
    color: var(--red);
  }

  .att-status-card.blue strong {
    color: var(--blue);
  }

  .att-status-card.green strong {
    color: var(--green);
  }

  .att-status-card.selected {
    border-color: var(--navy-900);
    box-shadow: 0 0 0 2px #09273d26;
  }

  .att-filter-chip {
    background: var(--yellow-soft);
    border-radius: 999px;
    align-items: center;
    gap: 6px;
    margin: 10px 16px 0;
    padding: 4px 6px 4px 10px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .att-filter-chip button {
    cursor: pointer;
    background: none;
    border: 0;
    border-radius: 50%;
    place-items: center;
    width: 20px;
    height: 20px;
    display: grid;
  }

  .att-badges {
    flex-wrap: wrap;
    gap: 4px;
    display: flex;
  }

  .att-badges .badge {
    padding: 3px 7px;
    font-size: 11.5px;
  }

  .att-drawer-backdrop {
    z-index: 60;
    background: #061b2b52;
    justify-content: flex-end;
    display: flex;
    position: fixed;
    inset: 0;
  }

  .att-drawer {
    width: min(520px, 100vw);
    height: 100%;
    box-shadow: var(--shadow-md);
    background: #fff;
    flex-direction: column;
    animation: .18s ease-out att-drawer-in;
    display: flex;
  }

  [dir="rtl"] .att-drawer-backdrop {
    justify-content: flex-start;
  }

  @keyframes att-drawer-in {
    from {
      opacity: .6;
      transform: translateX(24px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .att-drawer-head {
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    display: flex;
  }

  .att-drawer-head h2 {
    color: var(--navy-950);
    margin: 0;
    font-size: 18px;
  }

  .att-drawer-head p {
    color: var(--muted);
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    font-size: 13px;
    display: flex;
  }

  .att-drawer-body {
    flex-direction: column;
    flex: 1;
    gap: 16px;
    padding: 16px 20px;
    display: flex;
    overflow: auto;
  }

  .att-drawer-foot {
    border-top: 1px solid var(--line);
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    display: flex;
  }

  .att-detail-block h3 {
    color: var(--navy-950);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 8px;
    font-size: 13px;
  }

  .att-dl {
    grid-template-columns: max-content 1fr;
    gap: 8px 16px;
    margin: 0;
    font-size: 13.5px;
    display: grid;
  }

  .att-dl dt {
    color: var(--muted);
  }

  .att-dl dd {
    overflow-wrap: anywhere;
    min-width: 0;
    margin: 0;
  }

  .att-result-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    display: grid;
  }

  .att-result-grid > div {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
  }

  .att-result-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    display: block;
  }

  .att-result-grid strong {
    color: var(--navy-950);
    font-size: 20px;
  }

  .att-result-grid .green strong {
    color: var(--green);
  }

  .att-result-grid .red strong {
    color: var(--red);
  }

  .att-progress {
    color: #245f95;
    background: var(--blue-soft);
    border-radius: 10px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    display: flex;
  }

  .att-timeline {
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
  }

  .att-timeline li {
    color: var(--muted);
    justify-content: space-between;
    gap: 12px;
    padding-inline-start: 20px;
    font-size: 13px;
    display: flex;
    position: relative;
  }

  .att-timeline li:before {
    content: "";
    inset-inline-start: 2px;
    border: 2px solid var(--line);
    background: #fff;
    border-radius: 50%;
    width: 9px;
    height: 9px;
    position: absolute;
    top: 5px;
  }

  .att-timeline li.done {
    color: var(--ink);
  }

  .att-timeline li.done:before {
    border-color: var(--green);
    background: var(--green);
  }

  .att-timeline li.failed:before {
    border-color: var(--red);
    background: var(--red);
  }

  .att-two-col {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    display: grid;
  }

  .att-stack {
    gap: 14px;
    display: grid;
  }

  .att-list {
    margin: 0;
    padding: 6px 0;
    list-style: none;
  }

  .att-list li {
    border-bottom: 1px solid var(--line);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 18px;
    font-size: 13.5px;
    display: flex;
  }

  .att-list li:last-child {
    border-bottom: 0;
  }

  .att-list li small {
    color: var(--muted);
    font-size: 12px;
  }

  .att-list li time {
    color: var(--muted);
    white-space: nowrap;
    margin-inline-start: auto;
    font-size: 12px;
  }

  .att-empty-line {
    color: var(--muted);
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 18px;
    font-size: 13px;
    display: flex;
  }

  .att-mini-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px 16px 16px;
    display: grid;
  }

  .att-mini-stats a {
    border: 1px solid var(--line);
    color: inherit;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
  }

  .att-mini-stats a:hover {
    border-color: var(--navy-700);
  }

  .att-mini-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    display: block;
  }

  .att-mini-stats strong {
    color: var(--navy-950);
    font-size: 20px;
  }

  .att-mini-stats a.red strong {
    color: var(--red);
  }

  .att-period {
    color: var(--text-2);
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
  }

  .att-presets {
    flex-wrap: wrap;
    gap: 6px;
    display: flex;
  }

  .att-inline-error {
    color: #a72f2f;
    font-weight: 600;
  }

  .att-padded {
    padding: 16px;
  }

  .att-empty-page {
    text-align: center;
    color: var(--muted);
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    display: flex;
  }

  .att-empty-page h2 {
    color: var(--navy-950);
    margin: 0;
    font-size: 18px;
  }

  .att-settings-block {
    margin-bottom: 20px;
  }

  .att-settings-block h4 {
    margin: 0 0 4px;
  }

  .att-settings-block p {
    color: var(--muted);
    margin: 0 0 10px;
    font-size: 13px;
  }

  .att-inline-form {
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    display: flex;
  }

  .att-inline-form input[type="number"] {
    width: 110px;
  }

  .att-inline-form.spread {
    justify-content: space-between;
  }

  @media (max-width: 1180px) {
    .att-kpis-row, .att-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .att-status-cards {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .att-two-col {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    .att-kpis-row, .att-kpis {
      grid-template-columns: 1fr;
    }

    .att-status-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .att-mini-stats {
      grid-template-columns: repeat(2, 1fr);
    }

    .att-toolbar .toolbar-search, .att-toolbar .select-field, .att-date-filter {
      flex: 100%;
      max-width: none;
    }

    .att-entity-head .page-actions {
      width: 100%;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .att-drawer {
      animation: none;
    }
  }

  .roster-page {
    flex-direction: column;
    gap: 12px;
    display: flex;
  }

  .roster-toolbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    display: flex;
  }

  .roster-toolbar select {
    border: 1px solid var(--line);
    background: var(--card);
    height: 38px;
    font: inherit;
    border-radius: 10px;
    padding: 0 10px;
  }

  .roster-month {
    align-items: center;
    gap: 6px;
    display: flex;
  }

  .roster-month h2 {
    text-align: center;
    min-width: 150px;
    color: var(--navy-950);
    margin: 0;
    font-size: 17px;
  }

  .roster-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-inline-start: auto;
    display: flex;
  }

  .roster-legend {
    color: var(--text-2);
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .roster-legend span, .roster-options button {
    align-items: center;
    gap: 6px;
    display: inline-flex;
  }

  .roster-legend small, .roster-options small {
    color: var(--muted);
    font-weight: 500;
  }

  .roster-legend i, .roster-options i {
    border-radius: 4px;
    width: 12px;
    height: 12px;
    display: inline-block;
  }

  .roster-legend i.off, .roster-options i.off {
    background: repeating-linear-gradient(45deg, #cfd8df 0 3px, #eef2f5 3px 6px);
  }

  .roster-calendar {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    display: grid;
    overflow: hidden;
  }

  .roster-calendar.is-loading {
    opacity: .55;
  }

  .roster-weekday {
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    text-align: center;
    background: #f6f8fa;
    padding: 9px 8px;
    font-size: 12px;
    font-weight: 700;
  }

  .roster-day {
    border-inline-end: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 5px;
    min-height: 128px;
    padding: 7px;
    display: flex;
  }

  .roster-day.blank {
    background: #fafbfc;
  }

  .roster-day.today header b {
    color: #fff;
    background: var(--navy-800);
  }

  .roster-day.uncovered {
    box-shadow: inset 0 0 0 2px var(--red);
    background: var(--red-soft);
  }

  .roster-day header {
    align-items: center;
    gap: 6px;
    min-height: 22px;
    display: flex;
  }

  .roster-day header b {
    min-width: 22px;
    height: 22px;
    color: var(--navy-950);
    border-radius: 11px;
    place-items: center;
    padding: 0 5px;
    font-size: 12px;
    display: grid;
  }

  .roster-holiday {
    color: #1d5fa0;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
  }

  .roster-chips {
    flex-direction: column;
    gap: 3px;
    display: flex;
  }

  .roster-chip {
    color: #fff;
    width: 100%;
    min-height: 22px;
    font: inherit;
    cursor: pointer;
    text-align: start;
    border: 0;
    border-radius: 6px;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 2px 7px;
    font-size: 11.5px;
    display: flex;
  }

  .roster-chip span {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .roster-chip b {
    flex: none;
  }

  .roster-chip.off {
    color: var(--muted);
    background: repeating-linear-gradient(45deg, #e4eaef 0 4px, #f3f6f8 4px 8px);
  }

  .roster-chip.leave {
    color: #087451;
    background: var(--green-soft);
    cursor: default;
  }

  .roster-chip.empty {
    color: var(--muted);
    background: none;
    border: 1px dashed #c7d2da;
  }

  .roster-chip:disabled:not(.leave) {
    cursor: default;
  }

  .roster-chip:not(:disabled):hover {
    filter: brightness(.92);
  }

  .roster-missing {
    color: #a72f2f;
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
  }

  .roster-empty {
    text-align: center;
    color: var(--text-2);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 20px;
    display: flex;
  }

  .roster-empty h3 {
    color: var(--navy-950);
    margin: 0;
  }

  .roster-empty p {
    max-width: 460px;
    margin: 0;
    line-height: 1.7;
  }

  .roster-options {
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
  }

  .roster-options button {
    border: 1px solid var(--line);
    background: var(--card);
    min-height: 36px;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
  }

  .roster-options button.selected {
    border-color: var(--navy-800);
    box-shadow: inset 0 0 0 1px var(--navy-800);
    background: #f2f6f9;
  }

  .roster-sub {
    color: var(--navy-950);
    margin: 18px 0 8px;
    font-size: 14px;
  }

  .roster-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 16px;
    display: grid;
  }

  .roster-form input, .roster-fieldset select {
    border: 1px solid var(--line);
    height: 40px;
    font: inherit;
    border-radius: 10px;
    padding: 0 10px;
  }

  .roster-fieldset {
    border: 1px solid var(--line);
    border-radius: 12px;
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 10px;
    margin: 0;
    padding: 12px;
    display: flex;
  }

  .roster-fieldset legend {
    color: #445864;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
  }

  .roster-members {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
  }

  .roster-members td {
    border-bottom: 1px solid var(--line);
    padding: 5px 4px;
  }

  .roster-weekdays {
    flex-wrap: wrap;
    gap: 4px;
    display: flex;
  }

  .roster-weekdays button {
    border: 1px solid var(--line);
    background: var(--card);
    min-width: 44px;
    height: 28px;
    font: inherit;
    cursor: pointer;
    border-radius: 7px;
    padding: 0 6px;
    font-size: 12px;
  }

  .roster-weekdays button.selected {
    color: #fff;
    border-color: var(--navy-800);
    background: var(--navy-800);
  }

  @media (max-width: 900px) {
    .roster-calendar {
      grid-template-columns: repeat(7, minmax(92px, 1fr));
      overflow-x: auto;
    }

    .roster-form {
      grid-template-columns: 1fr;
    }
  }

  .att-subtabs {
    border-bottom: 1px solid var(--line);
    gap: 6px;
    margin: 0 0 12px;
    display: flex;
  }

  .att-subtabs a {
    color: var(--text-2);
    border-bottom: 2px solid #0000;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
  }

  .att-subtabs a.active {
    color: var(--navy-950);
    border-bottom-color: var(--navy-800);
  }

  .roster-teams {
    flex-wrap: wrap;
    gap: 8px;
    display: flex;
  }

  .roster-teams button {
    border: 1px solid var(--line);
    background: var(--card);
    min-height: 36px;
    color: var(--text-2);
    font: inherit;
    cursor: pointer;
    border-radius: 999px;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
  }

  .roster-teams button.active {
    color: #fff;
    border-color: var(--navy-800);
    background: var(--navy-800);
  }

  .roster-teams .roster-team-add {
    border-style: dashed;
  }

  .roster-period-tag {
    color: #6b4b00;
    background: var(--yellow-soft);
    white-space: nowrap;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
  }

  .roster-day.in-period:not(.uncovered) {
    background: #fffdf3;
  }

  .roster-period {
    border: 1px solid var(--line);
    background: #fafbfc;
    border-radius: 10px;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    display: flex;
  }

  .roster-period > small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .roster-period-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .roster-period-head label {
    color: #445864;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
  }

  .roster-period-head input {
    border: 1px solid var(--line);
    height: 36px;
    font: inherit;
    border-radius: 8px;
    padding: 0 8px;
  }

  .roster-period-head .icon-button {
    margin-inline-start: auto;
  }

  .payroll-sections {
    margin-bottom: calc(16px * var(--density-space));
  }

  .payroll-sections button svg {
    width: 16px;
    height: 16px;
  }

  .payroll-run-card {
    margin-bottom: calc(12px * var(--density-space));
    padding: calc(18px * var(--density-space)) 20px;
    gap: calc(16px * var(--density-space));
    flex-direction: column;
    display: flex;
  }

  .run-card-top {
    align-items: flex-end;
    gap: 12px;
    display: flex;
  }

  .run-card-select {
    flex-direction: column;
    flex: auto;
    gap: 6px;
    min-width: 0;
    max-width: 560px;
    display: flex;
  }

  .run-card-select span {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
  }

  .run-card-select select {
    width: 100%;
    height: calc(42px * var(--density-control));
    color: var(--navy-950);
    background: var(--card);
    font: inherit;
    border: 1px solid #d6dfe4;
    border-radius: 10px;
    outline: 0;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 700;
  }

  .run-card-select select:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  .run-card-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    display: grid;
  }

  .run-card-facts > div {
    background: var(--canvas);
    border-radius: 10px;
    min-width: 0;
    padding: 10px 12px;
  }

  .run-card-facts dt {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .run-card-facts dd {
    color: var(--navy-950);
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 4px 0 0;
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
  }

  .run-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
  }

  .run-steps li {
    border: 1px solid var(--line);
    border-radius: 10px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    display: flex;
  }

  .run-steps li > span {
    width: 26px;
    height: 26px;
    color: var(--text-3);
    background: #edf1f3;
    border-radius: 50%;
    flex: none;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    display: grid;
  }

  .run-steps li > div {
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    display: flex;
  }

  .run-steps strong {
    color: var(--text-2);
    font-size: 13px;
  }

  .run-steps small {
    color: var(--text-3);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12px;
    overflow: hidden;
  }

  .run-steps li.done > span {
    color: #fff;
    background: var(--green);
  }

  .run-steps li.active {
    background: var(--yellow-soft);
    border-color: #f0c64a;
  }

  .run-steps li.active > span {
    color: var(--navy-950);
    background: var(--yellow);
  }

  .run-steps li.done strong, .run-steps li.active strong {
    color: var(--navy-950);
  }

  .run-card-actions {
    padding-top: calc(14px * var(--density-space));
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .run-card-spacer {
    flex: auto;
  }

  .payroll-totals {
    margin-bottom: calc(12px * var(--density-space));
    padding: calc(14px * var(--density-space)) 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    display: grid;
  }

  .payroll-totals > div {
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    display: flex;
  }

  .payroll-totals > div + div {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 12px;
  }

  .payroll-totals small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .payroll-totals strong {
    color: var(--navy-950);
    white-space: nowrap;
    font-size: 18px;
  }

  .payroll-totals em {
    color: var(--text-3);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
  }

  .payroll-totals .is-key strong {
    color: var(--green);
    font-size: 20px;
  }

  .payroll-run-body {
    padding: calc(14px * var(--density-space)) 0 0;
  }

  .run-body-head {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    display: flex;
  }

  .run-view-switch {
    background: var(--canvas);
    border-radius: 11px;
    gap: 4px;
    padding: 3px;
    display: flex;
  }

  .run-view-switch button {
    height: calc(34px * var(--density-control));
    color: var(--text-2);
    cursor: pointer;
    font: inherit;
    background: none;
    border: 0;
    border-radius: 8px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
  }

  .run-view-switch button small {
    min-width: 22px;
    color: var(--text-3);
    background: #e0e7ec;
    border-radius: 99px;
    padding: 1px 6px;
    font-size: 12px;
  }

  .run-view-switch button.active {
    color: var(--navy-950);
    background: var(--card);
    box-shadow: var(--shadow-sm);
  }

  .run-view-switch .tab-alert {
    color: #8a5d00;
    background: #ffe8a8;
  }

  .run-body-hint {
    color: var(--text-3);
    margin: 10px 20px 8px;
    font-size: 13px;
  }

  .payroll-run-body .exception-list, .payroll-run-body .exception-filter, .payroll-run-body .empty-state {
    margin-inline: 20px;
  }

  .payroll-run-body .exception-list {
    padding-bottom: 16px;
  }

  @media (max-width: 900px) {
    .run-card-facts, .run-steps, .payroll-totals {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payroll-totals > div:nth-child(3) {
      border-inline-start: 0;
      padding-inline-start: 0;
    }
  }

  @media (max-width: 560px) {
    .run-card-top {
      flex-direction: column;
      align-items: stretch;
    }

    .run-card-facts dd {
      white-space: normal;
      font-size: 14px;
    }

    .run-card-actions .btn {
      flex: 100%;
      justify-content: center;
    }

    .run-card-spacer {
      display: none;
    }

    .run-body-head {
      flex-direction: column;
      align-items: stretch;
    }

    .payroll-run-card, .payroll-totals {
      padding-inline: 16px;
    }

    .run-body-head, .run-body-hint {
      margin-inline: 0;
      padding-inline: 16px;
    }
  }

  .slip {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: 16px;
    padding: 16px 18px 18px;
    display: grid;
  }

  .slip-main, .slip-employer {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 12px;
    min-width: 0;
    padding: 14px 16px;
  }

  .slip-employer {
    background: var(--canvas);
  }

  .slip h4 {
    color: var(--text-3);
    letter-spacing: .6px;
    text-transform: uppercase;
    margin: 12px 0 6px;
    font-size: 11px;
    font-weight: 700;
  }

  .slip h4:first-child {
    margin-top: 0;
  }

  .slip-row {
    border-bottom: 1px dashed #e3e9ed;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
    display: flex;
  }

  .slip-row > span {
    min-width: 0;
    color: var(--text-2);
  }

  .slip-row small {
    color: var(--text-3);
    margin-inline-start: 6px;
    font-size: 12px;
  }

  .slip-row > b {
    color: var(--navy-950);
    font-variant-numeric: tabular-nums;
    flex: none;
  }

  .slip-subtotal {
    border-bottom: 0;
    font-weight: 700;
  }

  .slip-subtotal > span {
    color: var(--navy-950);
    font-weight: 700;
  }

  .slip-empty {
    color: var(--text-3);
    margin: 4px 0;
    font-size: 13px;
  }

  .slip-net {
    color: #fff;
    background: var(--navy-900);
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    display: flex;
  }

  .slip-net span {
    font-weight: 700;
  }

  .slip-net strong {
    font-variant-numeric: tabular-nums;
    font-size: 20px;
  }

  .slip-net em {
    opacity: .75;
    font-size: 12px;
    font-style: normal;
  }

  @media (max-width: 820px) {
    .slip {
      grid-template-columns: minmax(0, 1fr);
      padding: 14px;
    }
  }

  .attendance-detail {
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 4px;
    display: flex;
  }

  .attendance-chips {
    flex-wrap: wrap;
    gap: 5px;
    display: flex;
  }

  .attendance-chips span, .attendance-chips a {
    color: var(--text-2);
    background: var(--canvas);
    direction: ltr;
    border-radius: 99px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .attendance-chips a:hover, .attendance-chips a:focus-visible {
    color: var(--blue);
    background: var(--blue-soft);
    text-decoration: underline;
  }

  .exception-link {
    color: inherit;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    display: inline-flex;
  }

  .exception-link:hover strong, .exception-link:focus-visible strong {
    text-decoration: underline;
  }

  .exception-link svg {
    color: var(--text-3);
    flex: none;
  }

  .shortage-sum {
    grid-template-columns: repeat(4, minmax(0, auto));
    justify-content: start;
    gap: 4px 18px;
    margin: 2px 0;
    display: grid;
  }

  .shortage-sum div {
    flex-direction: column;
    gap: 1px;
    display: flex;
  }

  .shortage-sum dt {
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
  }

  .shortage-sum dd {
    color: var(--ink);
    text-align: start;
    direction: ltr;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
  }

  .shortage-sum-total dd {
    color: var(--red);
  }

  @media (max-width: 640px) {
    .shortage-sum {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .attendance-detail p {
    color: var(--text-2);
    margin: 0;
    font-size: 13px;
  }

  .pay-history {
    margin-bottom: calc(14px * var(--density-space));
    overflow: hidden;
  }

  .pay-history .card-head select {
    border: 1px solid var(--line);
    background: var(--card);
    height: 36px;
    font: inherit;
    border-radius: 9px;
    padding: 0 10px;
    font-weight: 700;
  }

  .pay-history-totals {
    background: var(--canvas);
    border-radius: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 18px 12px;
    padding: 12px 14px;
    display: grid;
  }

  .pay-history-totals > div {
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    display: flex;
  }

  .pay-history-totals small {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
  }

  .pay-history-totals strong {
    color: var(--navy-950);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 17px;
  }

  .pay-history-totals em {
    color: var(--text-3);
    font-size: 12px;
    font-style: normal;
  }

  .pay-history-totals .is-key strong {
    color: var(--green);
  }

  .pay-history-table tbody tr:not(.pay-history-detail) {
    cursor: pointer;
  }

  .pay-history-table tbody tr.is-open {
    background: #f4f8fa;
  }

  .pay-history-table td {
    font-variant-numeric: tabular-nums;
  }

  .pay-history-table .is-negative {
    color: #a62e2e;
  }

  .pay-history-table .is-net {
    color: var(--green);
    font-weight: 700;
  }

  .pay-history-period {
    color: var(--text-3);
    white-space: nowrap;
    font-size: 13px;
  }

  .pay-history-type, .pay-history-issues {
    color: var(--text-3);
    margin-top: 3px;
    font-size: 11px;
    display: block;
  }

  .pay-history-issues {
    color: #a86800;
    cursor: pointer;
    font: inherit;
    background: none;
    border: 0;
    padding: 0;
    text-decoration: underline;
  }

  .pay-history-detail > td {
    background: #f8fbfc;
    padding: 0 !important;
  }

  .pay-history-links {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    display: flex;
  }

  @media (max-width: 820px) {
    .pay-history-totals {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .pay-history-table .is-flipped {
    transform: rotate(180deg);
  }

  .pay-history-views {
    border-bottom: 1px solid var(--line);
    gap: 18px;
    margin: 14px 18px 0;
    display: flex;
  }

  .pay-history-views button {
    color: var(--text-3);
    cursor: pointer;
    font: inherit;
    background: none;
    border: 0;
    border-bottom: 2px solid #0000;
    margin-bottom: -1px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
  }

  .pay-history-views button.active {
    color: var(--navy-950);
    border-bottom-color: var(--navy-950);
  }

  .pay-history-views small {
    color: var(--text-3);
    font-weight: 600;
  }

  .pay-history-issues-view {
    padding: 6px 18px 18px;
  }

  .pay-history-issues-view ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
  }

  .pay-history-issues-view li {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
  }

  .pay-history-issues-view li strong {
    color: var(--navy-950);
    font-size: 14px;
  }

  .pay-history-severity {
    color: var(--text-3);
    font-size: 12px;
  }

  .pay-history-issues-view li p {
    color: var(--text-2);
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.6;
  }

  button.leave-balance {
    text-align: start;
    width: 100%;
    font: inherit;
    color: inherit;
    cursor: pointer;
    flex-direction: column;
    justify-content: flex-start;
    display: flex;
  }

  button.leave-balance.is-selected {
    border-color: var(--navy-800);
    box-shadow: 0 0 0 2px var(--navy-800) inset;
  }

  .leave-balance > .balance-tiers {
    margin-top: 13px;
  }

  .leave-requests-card {
    margin-top: calc(14px * var(--density-space));
    overflow: hidden;
  }

  .pay-history-late-days {
    color: var(--text-2);
    margin: 4px 0 0;
    padding-inline-start: 18px;
    font-size: 13px;
    line-height: 1.8;
  }

  .attendance-register > .attendance-toolbar {
    flex-wrap: wrap;
  }

  .leave-tier-chips {
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
    display: flex;
  }

  .leave-tier-chips .badge {
    white-space: nowrap;
    font-size: 11px;
  }

  .leave-tier-note span {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    display: flex;
  }

  .balance-tiers {
    border-top: 1px solid var(--line);
    color: var(--muted);
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 12px;
    display: grid;
  }

  .balance-tiers b {
    color: var(--ink);
    font-size: 14px;
  }

  .balance-tiers span {
    flex-direction: column;
    gap: 2px;
    display: flex;
  }

  .balance-tiers small {
    color: var(--muted);
    font-size: 11px;
  }

  :root {
    --radius-card: 8px;
    --radius-control: 6px;
    --gap: 12px;
  }

  .topbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
    height: 60px;
    padding: 0 24px;
  }

  .global-search {
    border-radius: var(--radius-control);
    height: 36px;
  }

  .language-btn {
    border-radius: var(--radius-control);
    height: 32px;
  }

  .profile-avatar {
    background: var(--navy-900);
    border-radius: 50%;
    width: 32px;
    height: 32px;
  }

  .sidebar-head {
    height: 60px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    box-shadow: none;
    border-radius: 8px;
  }

  .brand-mark img {
    width: 28px;
    height: 28px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    text-transform: none;
    letter-spacing: 0;
    margin-top: 3px;
    font-size: 12px;
  }

  .company-switcher {
    border-radius: var(--radius-card);
    min-height: 42px;
  }

  .nav-label, .nav-group-trigger {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
  }

  .main-nav a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .plan-card {
    border-radius: var(--radius-card);
  }

  .page-container {
    padding: calc(24px * var(--density-space)) 24px;
  }

  .page-head {
    margin-bottom: calc(16px * var(--density-space));
    align-items: center;
  }

  .page-head h1 {
    letter-spacing: -.3px;
    font-size: 24px;
  }

  .page-head h1:before {
    width: 20px;
    height: 3px;
    margin-bottom: calc(8px * var(--density-space));
  }

  .page-head p {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.55;
  }

  .module-hero {
    border-radius: var(--radius-card);
    background: var(--sidebar-bg);
    min-height: 0;
    box-shadow: none;
    padding: 20px 22px;
  }

  .module-hero h1 {
    font-size: 24px;
  }

  .module-hero-icon {
    border-radius: var(--radius-card);
    width: 44px;
    height: 44px;
  }

  .btn {
    min-height: calc(36px * var(--density-control));
    border-radius: var(--radius-control);
    box-shadow: none;
    padding: 0 14px;
    font-weight: 600;
  }

  .btn-sm {
    min-height: calc(32px * var(--density-control));
    padding-inline: 11px;
  }

  .toolbar-search, .search-box {
    height: calc(36px * var(--density-control));
    border-radius: var(--radius-control);
  }

  .select-field {
    height: calc(36px * var(--density-control));
    border-radius: var(--radius-control);
    border-color: #d3dce3;
  }

  .input-shell {
    border-radius: var(--radius-control);
    height: 40px;
  }

  .pagination button, .icon-btn {
    border-radius: var(--radius-control);
  }

  .card {
    border-radius: var(--radius-card);
    box-shadow: none;
  }

  .card-head {
    min-height: calc(48px * var(--density-row));
    padding: calc(12px * var(--density-space)) 16px;
  }

  .card-head h2, .card-head h3 {
    font-size: 15px;
  }

  .card-head p {
    margin-top: 2px;
    font-size: 13px;
  }

  .modal-card {
    border-radius: 10px;
  }

  .modal-head {
    padding: calc(16px * var(--density-space)) 20px calc(14px * var(--density-space));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
  }

  .stats-grid, .leave-kpis, .attendance-kpis, .profile-kpis, .payroll-kpis, .recruitment-kpis, .lifecycle-kpis, .org-kpis, .asset-kpis, .request-kpis, .document-kpis, .expense-kpis, .training-kpis, .performance-kpis, .report-kpis, .announcement-kpis, .settings-kpis, .plugin-kpis {
    gap: calc(12px * var(--density-space));
    margin-bottom: calc(16px * var(--density-space));
  }

  .stat-card, .attendance-kpi, .profile-kpi, .payroll-kpi, .org-kpi, .recruitment-kpi, .lifecycle-kpi, .asset-kpi, .request-kpi, .document-kpi, .expense-kpi, .training-kpi, .performance-kpi, .report-kpi, .announcement-kpi, .settings-kpi, .plugin-kpi {
    min-height: 0;
    padding: calc(12px * var(--density-space)) 16px;
    border-radius: var(--radius-card);
    box-shadow: none;
    gap: 10px;
  }

  .stat-icon, .attendance-kpi-icon, .profile-kpi-icon, .org-kpi-icon {
    border-radius: var(--radius-control);
    width: 32px;
    height: 32px;
  }

  .stat-icon svg, .attendance-kpi-icon svg, .profile-kpi-icon svg, .org-kpi-icon svg {
    width: 16px;
    height: 16px;
  }

  .stat-top {
    font-size: 13px;
    font-weight: 600;
  }

  .stat-value {
    margin-top: calc(6px * var(--density-space));
  }

  .stat-value strong {
    font-variant-numeric: tabular-nums;
    font-size: 22px;
  }

  .stat-foot {
    margin-top: 4px;
    font-size: 12px;
  }

  .attendance-kpi > div > span {
    font-size: 13px;
  }

  .attendance-kpi small {
    margin-top: 4px;
    font-size: 12px;
  }

  .attendance-kpi strong, .payroll-kpi strong, .org-kpi strong, .recruitment-kpi strong, .lifecycle-kpi strong, .asset-kpi strong, .request-kpi strong, .document-kpi strong, .expense-kpi strong, .training-kpi strong, .performance-kpi strong, .report-kpi strong, .announcement-kpi strong, .settings-kpi strong, .plugin-kpi strong {
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.15;
  }

  .org-kpi p, .recruitment-kpi p {
    margin-top: 4px;
  }

  .tabs button, .attendance-tabs button, .module-tabs button {
    height: calc(34px * var(--density-control));
    border-radius: var(--radius-control);
    padding: 0 12px;
    font-weight: 600;
  }

  .tabs button.active, .attendance-tabs button.active, .module-tabs button.active {
    box-shadow: none;
  }

  .attendance-tabs, .module-tabs, .tabs {
    margin-bottom: calc(12px * var(--density-space));
  }

  .data-table th {
    height: calc(40px * var(--density-row));
    text-transform: none;
    letter-spacing: 0;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 600;
  }

  .data-table td {
    padding: calc(9px * var(--density-space)) 14px;
  }

  .data-table tbody tr:hover {
    background: #f7f9fa;
  }

  .attendance-toolbar {
    min-height: 0;
    padding: calc(10px * var(--density-space)) 14px;
    background: #fff;
  }

  .table-footer {
    min-height: calc(48px * var(--density-row));
    padding: calc(8px * var(--density-space)) 14px;
  }

  .employee-avatar {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .employee-cell small {
    margin-top: 1px;
    font-size: 12px;
  }

  .leave-type-cell i {
    width: 4px;
    height: 30px;
  }

  .leave-type-cell {
    grid-template-columns: 4px 1fr;
    gap: 1px 9px;
  }

  .badge {
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
  }

  .badge-amber {
    color: #8a5300;
  }

  .badge-blue {
    color: #1f5585;
  }

  .alerts-panel {
    margin-bottom: calc(16px * var(--density-space));
  }

  .dashboard-grid {
    gap: calc(16px * var(--density-space));
  }

  .empty-state-icon {
    border-radius: var(--radius-card);
    background: #eef1f5;
  }

  @media (max-width: 820px) {
    .page-container {
      padding: calc(16px * var(--density-space)) 16px;
    }

    .topbar {
      height: 56px;
      padding: 0 16px;
    }
  }

  .permit-flags {
    margin-bottom: 16px;
  }

  .permit-flags-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    padding: 0 16px 16px;
    display: grid;
  }

  .permit-flags-grid h3 {
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 14px;
    display: flex;
  }

  .permit-flags-grid ul {
    gap: 6px;
    max-height: 260px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    overflow: auto;
  }

  .permit-flags-grid li {
    background: var(--surface-2, #f4f7f8);
    border-radius: 8px;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 8px 10px;
    display: grid;
  }

  .permit-flags-grid li small {
    color: var(--muted);
    grid-column: 1;
  }

  .permit-flags-grid li b {
    grid-area: 1 / 2 / span 2;
    align-self: center;
    font-size: 13px;
    font-weight: 600;
  }

  .permit-flags-grid li .badge {
    justify-self: start;
    font-weight: 500;
  }

  .milestone-setting {
    background: var(--surface-2, #f4f7f8);
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px 24px;
    margin: 4px 16px 16px;
    padding: 16px 18px;
    display: flex;
  }

  .milestone-setting > span:first-child {
    gap: 6px;
    min-width: 0;
    display: grid;
  }

  .milestone-setting small {
    color: var(--muted);
  }

  .milestone-setting-edit {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    display: flex;
  }

  .milestone-setting-edit .date-field {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    width: 190px;
    height: 38px;
    padding: 0 12px;
  }

  .milestone-setting-edit .btn {
    min-height: 36px;
  }

  .page-eyebrow {
    letter-spacing: .02em;
  }

  .employee-profile-hero {
    padding: calc(18px * var(--density-space)) 20px;
    border-radius: var(--radius-card);
    box-shadow: none;
    background: #fff;
  }

  @media (max-width: 560px) {
    .stats-grid, .leave-kpis, .attendance-kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card, .attendance-kpi {
      flex-direction: column;
      gap: 6px;
      padding: 10px 12px;
    }
  }

  .attendance-register > .attendance-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .attendance-register > .attendance-toolbar .toolbar-search {
    flex: 140px;
    min-width: 140px;
    max-width: none;
  }

  .attendance-register > .attendance-toolbar .select-field {
    flex: none;
    width: 128px;
    min-width: 0;
  }

  .leave-range {
    flex: none;
    align-items: center;
    gap: 6px;
    display: flex;
  }

  .leave-range-dash {
    color: var(--text-3);
  }

  .leave-date-filter {
    width: 158px;
    height: calc(36px * var(--density-control));
    border-radius: var(--radius-control);
    color: var(--text-3);
    background: #fff;
    border: 1px solid #d3dce3;
    align-items: center;
    gap: 4px;
    padding: 0 4px 0 10px;
    font-size: 13px;
    display: flex;
  }

  .leave-date-filter:focus-within {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px #1b4d6d26;
  }

  .leave-date-filter > span {
    flex: none;
  }

  .leave-date-filter .date-field {
    height: 100%;
    color: var(--ink);
    flex: auto;
    font-size: 13px;
  }

  .leave-date-filter .date-field > input::placeholder {
    font-size: 12px;
  }

  .leave-clear-filters {
    align-items: center;
    gap: 4px;
    display: inline-flex;
  }

  @media (max-width: 720px) {
    .attendance-register > .attendance-toolbar .toolbar-search {
      flex: 100%;
      order: -1;
    }

    .leave-range {
      flex: 100%;
    }

    .leave-date-filter {
      flex: 1 1 0;
      width: auto;
    }

    .attendance-register > .attendance-toolbar .select-field {
      flex: 140px;
      width: auto;
    }
  }

  .main-nav > .nav-top-link {
    margin-bottom: 4px;
  }

  .org-tree {
    margin-bottom: calc(16px * var(--density-space));
  }

  .org-tree-toolbar {
    flex-wrap: wrap;
  }

  .org-tree-bulk {
    gap: 8px;
    margin-inline-start: auto;
    display: flex;
  }

  .org-tree-note {
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    background: var(--yellow-soft);
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 16px;
    font-size: 13px;
    display: flex;
  }

  .org-tree-list, .org-tree-children {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .org-tree-row {
    --org-indent: 0px;
    min-height: calc(48px * var(--density-row));
    color: inherit;
    border-bottom: 1px solid #eef2f5;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(112px, auto) 36px;
    align-items: center;
    gap: 12px;
    padding: 0 14px 0 8px;
    text-decoration: none;
    display: grid;
  }

  .org-tree-row:hover {
    background: #f7f9fa;
  }

  .org-tree-company {
    background: #fbfcfd;
  }

  .org-tree-department {
    --org-indent: 24px;
  }

  .org-tree-employee {
    --org-indent: 72px;
  }

  .org-tree-toggle {
    min-width: 0;
    min-height: calc(46px * var(--density-row));
    padding: 4px 6px 4px calc(6px + var(--org-indent));
    border-radius: var(--radius-control);
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    background: none;
    border: 0;
    align-items: center;
    gap: 8px;
    display: flex;
  }

  [dir="rtl"] .org-tree-toggle {
    padding: 4px calc(6px + var(--org-indent)) 4px 6px;
  }

  .org-tree-toggle:focus-visible, .org-tree-employee:focus-visible, .org-tree-actions button:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
  }

  .org-tree-chevron {
    color: var(--text-3);
    flex: none;
    transition: transform .15s;
  }

  [dir="rtl"] .org-tree-chevron, [dir="rtl"] .org-tree-open {
    transform: scaleX(-1);
  }

  .org-tree-toggle[aria-expanded="true"] .org-tree-chevron {
    transform: rotate(90deg);
  }

  .org-tree-glyph {
    width: 20px;
    color: var(--navy-700);
    flex: none;
    place-items: center;
    display: grid;
  }

  .is-unassigned .org-tree-glyph {
    color: #8a5300;
  }

  .org-tree-department.is-none .org-tree-glyph {
    color: var(--text-3);
  }

  .org-tree-name {
    flex-direction: column;
    min-width: 0;
    display: flex;
  }

  .org-tree-name strong {
    color: var(--navy-950);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
  }

  .org-tree-company .org-tree-name strong {
    font-weight: 700;
  }

  .org-tree-name small {
    color: var(--text-3);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    overflow: hidden;
  }

  .org-tree-department.is-none .org-tree-name strong, .is-inactive .org-tree-name strong {
    color: var(--text-2);
  }

  .org-tree-meta {
    min-width: 0;
    color: var(--text-2);
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 13px;
    display: flex;
  }

  .org-tree-label, .org-tree-hint {
    color: var(--text-3);
    font-size: 12px;
  }

  .org-tree-meta .manager-gap {
    color: #8a5300;
    font-size: 12px;
    font-weight: 600;
  }

  .org-tree-count {
    color: var(--navy-900);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    background: #eef1f5;
    border-radius: 999px;
    justify-self: end;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
  }

  .org-tree-count.is-zero {
    color: var(--text-3);
    box-shadow: inset 0 0 0 1px var(--line);
    background: none;
  }

  .org-tree-count.is-status {
    box-shadow: none;
    background: none;
    padding: 0;
  }

  .org-tree-actions {
    color: var(--text-3);
    justify-content: center;
    display: flex;
  }

  .org-tree-actions button {
    border-radius: var(--radius-control);
    width: 32px;
    height: 32px;
    color: var(--text-2);
    cursor: pointer;
    background: none;
    border: 0;
    place-items: center;
    display: grid;
  }

  .org-tree-actions button:hover {
    color: var(--navy-950);
    background: #eef1f5;
  }

  .org-tree-person {
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding-inline-start: calc(8px + var(--org-indent));
    display: flex;
  }

  .org-tree-employee-no {
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
  }

  .org-tree-job {
    min-width: 0;
    color: var(--text-2);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .org-tree-employee:hover .org-tree-name strong {
    color: var(--navy-700);
    text-underline-offset: 2px;
    text-decoration: underline;
  }

  .org-tree-empty {
    min-height: 40px;
    color: var(--text-3);
    border-bottom: 1px solid #eef2f5;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
    display: flex;
  }

  .org-tree-empty.level-1 {
    padding-inline-start: 64px;
  }

  .org-tree-empty.level-2 {
    padding-inline-start: 94px;
  }

  @media (max-width: 720px) {
    .org-tree-bulk {
      flex: 100%;
      margin-inline-start: 0;
    }

    .org-tree-bulk .btn {
      flex: 1 1 0;
      justify-content: center;
    }

    .org-tree-toolbar .toolbar-search {
      flex: 100%;
      min-width: 0;
      max-width: none;
    }

    .org-tree-row {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 2px 8px;
      padding: 6px 10px 6px 4px;
    }

    [dir="rtl"] .org-tree-row {
      padding: 6px 4px 6px 10px;
    }

    .org-tree-department {
      --org-indent: 16px;
    }

    .org-tree-employee {
      --org-indent: 46px;
    }

    .org-tree-toggle, .org-tree-person {
      grid-area: 1 / 1;
    }

    .org-tree-count {
      grid-area: 1 / 2;
    }

    .org-tree-meta {
      padding-inline-start: calc(58px + var(--org-indent));
      grid-area: 2 / 1 / auto / -1;
      padding-bottom: 4px;
      font-size: 12px;
    }

    .org-tree-employee .org-tree-meta {
      padding-inline-start: calc(50px + var(--org-indent));
    }

    .org-tree-department .org-tree-actions, .org-tree-company .org-tree-actions {
      margin-top: -4px;
    }

    .org-tree-actions {
      grid-area: 2 / 2;
      justify-content: flex-end;
    }

    .org-tree-employee .org-tree-actions {
      display: none;
    }

    .org-tree-empty.level-1 {
      padding-inline-start: 44px;
    }

    .org-tree-empty.level-2 {
      padding-inline-start: 60px;
    }
  }

  .brand-mark {
    background: none;
  }

  .brand-mark img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  a.brand {
    color: inherit;
    text-decoration: none;
  }

  a.brand:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 10px;
  }

  .company-switcher-wrap {
    position: relative;
  }

  button.company-switcher {
    width: calc(100% - 24px);
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
  }

  button.company-switcher:hover, button.company-switcher.is-open {
    background: #ffffff14;
  }

  button.company-switcher:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
  }

  button.company-switcher svg.is-open {
    transform: rotate(180deg);
  }

  .company-switcher-menu {
    z-index: 70;
    top: calc(100% + 4px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    background: #fff;
    border-radius: 12px;
    outline: none;
    max-height: 320px;
    margin: 0;
    padding: 6px;
    list-style: none;
    position: absolute;
    inset-inline: 12px;
    overflow-y: auto;
  }

  .company-switcher-menu li {
    cursor: pointer;
    color: var(--text-2);
    border-radius: 8px;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    display: flex;
  }

  .company-switcher-menu li.is-highlighted {
    background: var(--canvas);
  }

  .company-switcher-menu li.is-selected strong {
    color: var(--navy-950);
  }

  .company-switcher-menu .company-details strong {
    color: var(--ink);
  }

  .company-switcher-menu .company-details small {
    color: var(--text-3);
  }

  .company-switcher-menu li > svg {
    color: var(--green);
    flex: none;
  }

  .is-collapsed button.company-switcher {
    justify-content: center;
    width: auto;
  }

  .is-collapsed .company-switcher-menu {
    width: 260px;
    inset-inline: 12px auto;
  }

  .payroll-company-hint {
    margin: 0 0 14px;
  }

  .employee-checklist > span {
    margin-bottom: 7px;
    display: block;
  }

  .employee-checklist-search {
    align-items: center;
    display: flex;
    position: relative;
  }

  .employee-checklist-search svg {
    color: var(--text-3);
    pointer-events: none;
    position: absolute;
    inset-inline-start: 11px;
  }

  .employee-checklist-search input {
    width: 100%;
    height: 40px;
    font: inherit;
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    outline: 0;
    padding-inline: 34px 11px;
    font-size: 13px;
  }

  .employee-checklist-search input:focus {
    border-color: var(--navy-700);
    box-shadow: 0 0 0 3px #1b4d6d17;
  }

  .employee-checklist-bar {
    color: var(--text-2);
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 9px 2px 6px;
    font-size: 12px;
    display: flex;
  }

  .employee-checklist-bar label {
    cursor: pointer;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    display: inline-flex;
  }

  .employee-checklist-bar b {
    color: var(--navy-950);
    margin-inline-start: auto;
  }

  .employee-checklist-list {
    background: #fff;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    max-height: 300px;
    margin: 0;
    padding: 4px;
    list-style: none;
    overflow-y: auto;
  }

  .employee-checklist-list li label {
    cursor: pointer;
    border-radius: 8px;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    display: flex;
  }

  .employee-checklist-list li label:hover {
    background: #f3f7f9;
  }

  .employee-checklist-list li label.picked {
    background: #eaf3f8;
  }

  .employee-checklist-list input[type="checkbox"], .employee-checklist-bar input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--navy-950);
    flex: none;
  }

  .employee-checklist-name {
    flex-direction: column;
    flex: auto;
    min-width: 0;
    display: flex;
  }

  .employee-checklist-name strong {
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    overflow: hidden;
  }

  .employee-checklist-name small {
    color: var(--text-3);
    font-size: 11px;
  }

  .employee-checklist-list em {
    color: var(--text-2);
    white-space: nowrap;
    background: #eef2f4;
    border-radius: 999px;
    flex: none;
    padding: 2px 8px;
    font-size: 11px;
    font-style: normal;
  }

  .employee-checklist-list em.same {
    color: var(--green);
    background: #e5f4ec;
  }

  .employee-checklist-empty {
    color: var(--text-3);
    text-align: center;
    padding: 14px;
    font-size: 12px;
  }

  .employee-checklist-list li label.on-shift {
    cursor: default;
    background: #f2f8f4;
  }

  .employee-checklist-tick {
    background: var(--green);
    color: #fff;
    border-radius: 3px;
    flex: none;
    place-items: center;
    width: 16px;
    height: 16px;
    margin: 3px 3px 3px 4px;
    display: inline-grid;
  }

  .ms-block {
    margin: 0 16px 16px;
  }

  .ms-block h3 {
    color: var(--navy-950);
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 13px;
    display: flex;
  }

  .ms-block h3 small {
    color: var(--text-3);
    font-weight: 500;
  }

  .ms-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12.5px;
  }

  .ms-table th {
    text-align: start;
    color: var(--text-3);
    border-bottom: 1px solid var(--line, #e3e9ec);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
  }

  .ms-table td {
    border-bottom: 1px solid var(--line, #eef2f4);
    vertical-align: middle;
    padding: 8px 10px;
  }

  .ms-table td small {
    color: var(--text-3);
  }

  .ms-table td a {
    color: var(--navy-950);
    font-weight: 600;
    text-decoration: none;
  }

  .ms-table td a:hover {
    text-decoration: underline;
  }

  .ms-table td .badge {
    margin-inline-start: 8px;
  }

  .ms-chips {
    flex-wrap: wrap;
    gap: 6px;
    display: flex;
  }

  .ms-chips a {
    border: 1px solid var(--line, #e3e9ec);
    color: var(--navy-950);
    background: #fff;
    border-radius: 999px;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
  }

  .ms-chips a:hover {
    background: #f3f7f9;
  }

  .ms-chips small {
    color: var(--text-3);
    font-size: 11px;
  }

  @media (max-width: 640px) {
    .ms-table thead {
      display: none;
    }

    .ms-table tr {
      border-bottom: 1px solid var(--line, #eef2f4);
      grid-template-columns: 1fr auto;
      padding: 6px 0;
      display: grid;
    }

    .ms-table td {
      border: 0;
      padding: 2px 4px;
    }
  }

  .lmra-cr-modal {
    width: min(480px, 100%);
  }

  .lmra-cr-options {
    border: 0;
    gap: 10px;
    margin: 14px 0 8px;
    padding: 0;
    display: grid;
  }

  .lmra-cr-options legend {
    color: var(--text-2);
    margin-bottom: 10px;
    font-size: 13px;
  }

  .lmra-cr-options .consent-field {
    cursor: pointer;
    align-items: center;
    min-height: 0;
  }

  .lmra-cr-options .consent-field.selected {
    border-color: var(--navy-700);
    background: #eaf3f7;
  }

  .lmra-cr-options .consent-field span {
    flex-direction: column;
    gap: 2px;
    display: flex;
  }

  .lmra-cr-options .consent-field strong {
    color: var(--navy-950);
    font-size: 13.5px;
  }

  .lmra-cr-options .consent-field small {
    color: var(--muted);
    font-size: 12px;
  }

  .lmra-wizard-cr {
    color: var(--text-2);
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    font-size: 13px;
    display: flex;
  }

  .lmra-wizard-cr strong {
    color: var(--navy-950);
  }

  .rating-pills {
    gap: 4px;
    display: flex;
  }

  .rating-pills label {
    width: 32px;
    height: 32px;
    color: var(--text-2);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    background: #fff;
    border: 1px solid #cbd8de;
    border-radius: 8px;
    place-items: center;
    font-size: 13px;
    font-weight: 600;
    display: grid;
    position: relative;
  }

  .rating-pills label:hover {
    border-color: var(--navy-700);
  }

  .rating-pills label.is-on {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
  }

  .rating-pills label:focus-within {
    box-shadow: 0 0 0 3px #1b4d6d26;
  }

  .rating-pills input {
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
  }

  .review-overall {
    background: var(--blue-soft);
    border-radius: 10px;
    align-items: baseline;
    gap: 10px;
    margin: 0 24px 14px;
    padding: 10px 14px;
    display: flex;
  }

  .review-overall span {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
  }

  .review-overall strong {
    color: var(--navy-950);
    font-size: 18px;
  }

  .review-overall small {
    color: var(--text-3);
    margin-inline-start: auto;
    font-size: 12px;
  }

  .review-more {
    margin: 4px 0 0;
  }

  .review-more summary {
    cursor: pointer;
    color: var(--navy-700);
    padding: 6px 0;
    font-size: 13px;
    font-weight: 600;
  }

  @media (max-width: 820px) {
    .review-question-list article {
      grid-template-columns: 1fr auto;
    }

    .review-question-list article > input {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 560px) {
    .review-question-list article {
      grid-template-columns: 1fr;
    }

    .review-overall {
      margin-inline: 18px;
    }
  }

  html:has(.modal-backdrop) {
    overflow: hidden;
  }

  html:has(.att-drawer-backdrop) {
    overflow: hidden;
  }

  html:has(.modal-backdrop) body {
    overflow: hidden;
  }

  html:has(.att-drawer-backdrop) body {
    overflow: hidden;
  }

  .evaluations-stack {
    gap: calc(16px * var(--density-space));
    flex-direction: column;
    display: flex;
  }

  .evaluation-card {
    padding: 18px 20px;
  }

  .evaluation-card > header {
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    display: flex;
  }

  .evaluation-card h2 {
    color: var(--navy-950);
    margin: 0;
    font-size: 16px;
  }

  .evaluation-card header p {
    color: var(--muted);
    margin: 4px 0 0;
    font-size: 13px;
  }

  .evaluation-questions {
    margin: 0 0 12px;
  }

  .evaluation-actions {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .evaluation-actions small {
    color: var(--text-3);
    font-size: 12px;
  }

  .answer-list {
    flex-direction: column;
    gap: 6px;
    margin: 10px 0;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .answer-list li {
    background: #f9fbfc;
    border: 1px solid #dce5e8;
    border-radius: 10px;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 8px 12px;
    font-size: 13px;
    display: grid;
  }

  .answer-list li small {
    color: var(--text-2);
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .evaluation-overall {
    color: var(--text-2);
    margin: 4px 0 0;
    font-size: 13px;
  }

  .evaluation-tabs {
    margin-bottom: 0;
  }

  .evaluation-tabs button small {
    min-width: 20px;
    height: 20px;
    color: var(--text-3);
    background: #e4eaef;
    border-radius: 99px;
    place-items: center;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
    display: grid;
  }

  .evaluation-tabs button small.is-due {
    color: #fff;
    background: var(--amber);
  }

  .evaluation-alert {
    background: var(--amber-soft);
    color: #7a4d06;
    width: 100%;
    font: inherit;
    text-align: start;
    cursor: pointer;
    border: 1px solid #f1d39b;
    border-radius: 12px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 13px;
    display: flex;
  }

  .evaluation-alert span {
    flex-direction: column;
    flex: 1;
    gap: 2px;
    display: flex;
  }

  .evaluation-alert strong {
    color: #5e3b04;
    font-size: 14px;
  }

  .evaluation-alert:hover {
    border-color: var(--amber);
  }

  .appraisal-list {
    gap: calc(16px * var(--density-space));
    flex-direction: column;
    display: flex;
  }

  .appraisal-card {
    flex-direction: column;
    padding: 0;
    display: flex;
    overflow: hidden;
  }

  .appraisal-card > * {
    padding-inline: 22px;
  }

  .appraisal-head {
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-block: 18px 14px;
    display: flex;
  }

  .appraisal-head small {
    color: var(--navy-700);
    letter-spacing: .02em;
    font-size: 12px;
    font-weight: 700;
  }

  .appraisal-head h2 {
    color: var(--navy-950);
    margin: 2px 0 4px;
    font-size: 19px;
  }

  .appraisal-head p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
  }

  .appraisal-head .badge {
    flex: none;
    align-items: center;
    gap: 4px;
    display: inline-flex;
  }

  .appraisal-summary {
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 14px;
    padding-block: 18px;
    display: grid;
  }

  .appraisal-score-box, .appraisal-outcome {
    border: 1px solid var(--line);
    background: #f9fbfc;
    border-radius: 12px;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    display: flex;
  }

  .appraisal-score-box > span, .appraisal-outcome > span {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
  }

  .appraisal-score-box strong {
    color: var(--navy-950);
    font-size: 32px;
    line-height: 1.1;
  }

  .appraisal-score-box strong small {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
  }

  .appraisal-outcome p {
    color: var(--ink);
    white-space: pre-wrap;
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
  }

  .appraisal-section {
    padding-bottom: 18px;
  }

  .appraisal-card h3 {
    color: var(--navy-950);
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 14px;
    display: flex;
  }

  .appraisal-criteria {
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .appraisal-criteria li {
    border: 1px solid var(--line);
    border-radius: 10px;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    display: flex;
  }

  .appraisal-criteria li > div {
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    display: flex;
  }

  .appraisal-criteria li > div b {
    color: var(--navy-950);
    flex: none;
  }

  .appraisal-criteria li p {
    color: var(--text-2);
    white-space: pre-wrap;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .score-bar {
    background: #e4eaef;
    border-radius: 99px;
    height: 6px;
    display: block;
    overflow: hidden;
  }

  .score-bar i {
    border-radius: inherit;
    height: 100%;
    display: block;
  }

  .score-bar.is-high i {
    background: var(--green);
  }

  .score-bar.is-mid i {
    background: var(--amber);
  }

  .score-bar.is-low i {
    background: var(--red);
  }

  .appraisal-feedback {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 18px;
    display: grid;
  }

  .appraisal-feedback > div {
    border-radius: 12px;
    padding: 14px 16px;
  }

  .appraisal-feedback > div h3 {
    margin-bottom: 6px;
  }

  .appraisal-feedback p {
    white-space: pre-wrap;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
  }

  .appraisal-feedback .is-strength {
    background: var(--green-soft);
  }

  .appraisal-feedback .is-strength h3 {
    color: #087451;
  }

  .appraisal-feedback .is-improve {
    background: var(--amber-soft);
  }

  .appraisal-feedback .is-improve h3 {
    color: #8a5706;
  }

  .appraisal-notes {
    gap: 12px;
    margin: 0;
    padding-bottom: 18px;
    display: grid;
  }

  .appraisal-notes dt {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
  }

  .appraisal-notes dd {
    white-space: pre-wrap;
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.7;
  }

  .appraisal-ack {
    border-top: 1px solid var(--line);
    background: var(--green-soft);
    color: #0b5c41;
    align-items: flex-start;
    gap: 10px;
    padding-block: 14px;
    font-size: 13px;
    line-height: 1.7;
    display: flex;
  }

  .appraisal-ack > svg {
    flex: none;
    margin-top: 2px;
  }

  .appraisal-ack-form {
    border-top: 1px solid var(--line);
    background: #f6f9fb;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-block: 18px;
    display: flex;
  }

  .appraisal-ack-form h3 {
    margin: 0 0 4px;
  }

  .appraisal-ack-form p {
    color: var(--text-2);
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  .appraisal-ack-form label {
    width: 100%;
    color: var(--text-2);
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .appraisal-ack-form textarea {
    width: 100%;
    font: inherit;
    background: #fff;
    border: 1px solid #cbd8de;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .appraisal-empty {
    text-align: center;
    color: var(--navy-700);
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px 20px;
    display: flex;
  }

  .appraisal-empty h2 {
    margin-top: 4px;
  }

  .appraisal-empty p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
  }

  .appraisal-flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .appraisal-flow li {
    border: 1px solid var(--line);
    color: var(--text-2);
    border-radius: 99px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
  }

  .appraisal-flow li b {
    background: var(--navy-700);
    color: #fff;
    border-radius: 50%;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: grid;
  }

  @media (max-width: 640px) {
    .appraisal-card > * {
      padding-inline: 16px;
    }

    .appraisal-summary, .appraisal-feedback {
      grid-template-columns: 1fr;
    }

    .appraisal-head {
      flex-direction: column;
    }
  }

  .self-review-card form {
    flex-direction: column;
    gap: 14px;
    padding-block: 16px 18px;
    display: flex;
  }

  .self-review-intro {
    background: var(--blue-soft);
    color: #245f95;
    border-radius: 10px;
    margin: 0;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.7;
  }

  .self-review-questions, .self-review-card .review-overall {
    margin: 0;
  }

  .self-review-overall-pick {
    border: 1px solid var(--line);
    color: var(--text-2);
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .self-review-fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    display: grid;
  }

  .self-review-fields label {
    color: var(--text-2);
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .self-review-fields label.is-wide {
    grid-column: 1 / -1;
  }

  .self-review-fields textarea {
    width: 100%;
    font: inherit;
    background: #fff;
    border: 1px solid #cbd8de;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
  }

  @media (max-width: 640px) {
    .self-review-fields {
      grid-template-columns: 1fr;
    }
  }

  .performance-await-ack {
    background: var(--amber-soft);
    color: #8a5706;
    border-radius: 99px;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
  }

  .evaluation-anonymous {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .bulk-accounts-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    display: flex;
  }

  .bulk-accounts-head label {
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
  }

  .bulk-accounts-head label select {
    height: 34px;
  }

  .bulk-accounts-head .btn-primary {
    margin-inline-start: auto;
  }

  .my-team {
    margin-top: calc(8px * var(--density-space));
  }

  .my-team h2 {
    margin: 0 0 calc(10px * var(--density-space));
    font-size: 16px;
  }

  .my-team-grid {
    gap: calc(14px * var(--density-space));
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    display: grid;
  }

  .my-team-card {
    flex-direction: column;
    display: flex;
  }

  .my-team-list {
    flex-direction: column;
    gap: 3px;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
    list-style: none;
    display: flex;
  }

  .my-team-list small {
    color: var(--text-3);
    font-size: 12px;
  }

  .my-team-list small.my-team-overdue {
    color: var(--red);
    font-weight: 600;
  }

  .my-team-more {
    color: var(--muted);
    font-size: 12px;
  }

  .my-team-link {
    color: var(--navy-700);
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 600;
  }

  .access-tabs .badge {
    margin-inline-start: 2px;
    font-size: 11px;
  }

  .bulk-accounts-filters {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
    display: flex;
  }

  .bulk-accounts-filters input[type="search"] {
    height: 36px;
    font: inherit;
    border: 1px solid #d8e0e5;
    border-radius: 10px;
    flex: 240px;
    padding: 0 11px;
    font-size: 13px;
  }

  .bulk-accounts-filters .check-row {
    align-items: center;
    gap: 6px;
    font-size: 13px;
    display: flex;
  }

  tr.is-muted td {
    color: var(--text-3);
  }

  .settings-bulk-modal {
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    padding: 0;
    position: relative;
    overflow-y: auto;
  }

  .settings-bulk-modal > .card {
    box-shadow: none;
    border: 0;
  }

  .settings-bulk-close {
    top: 14px;
    z-index: 1;
    position: absolute;
    inset-inline-end: 14px;
  }

  .settings-bulk-modal > .card > .card-head {
    padding: 22px 64px 18px 24px;
  }

  [dir="rtl"] .settings-bulk-modal > .card > .card-head {
    padding: 22px 24px 18px 64px;
  }

  .settings-bulk-modal .bulk-accounts-filters {
    margin: 18px 24px 12px;
  }

  .settings-bulk-modal .bulk-accounts-head {
    background: #f8fafb;
    border: 1px solid #e3eaed;
    border-radius: 12px;
    margin: 0 24px 16px;
    padding: 12px 14px;
  }

  .settings-bulk-modal .inline-error {
    margin: 0 24px 14px;
  }

  .settings-bulk-modal .table-wrap {
    border: 1px solid #e3eaed;
    border-radius: 12px;
    max-height: calc(100vh - 360px);
    margin: 0 24px 24px;
    overflow: auto;
  }

  .settings-bulk-modal .table-wrap thead th {
    z-index: 1;
    background: #f8fafb;
    position: sticky;
    top: 0;
  }

  .settings-bulk-modal .table-wrap td, .settings-bulk-modal .table-wrap th {
    padding-block: 11px;
    padding-inline: 14px;
  }

  .settings-bulk-modal .table-wrap td:first-child, .settings-bulk-modal .table-wrap td:last-child, .settings-bulk-modal .table-wrap th:first-child, .settings-bulk-modal .table-wrap th:last-child {
    text-align: center;
    width: 110px;
  }

  @media (max-width: 620px) {
    .settings-bulk-modal .bulk-accounts-filters, .settings-bulk-modal .bulk-accounts-head, .settings-bulk-modal .inline-error, .settings-bulk-modal .table-wrap {
      margin-inline: 14px;
    }

    .settings-bulk-modal > .card > .card-head {
      padding-inline: 16px 56px;
    }
  }

  .header-tools-panel a.notification-link {
    color: inherit;
    border-radius: 8px;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 10px 8px;
    font-weight: 400;
    text-decoration: none;
    display: flex;
  }

  .header-tools-panel a.notification-link:hover {
    background: #f3f7f9;
  }

  .header-tools-panel a.notification-link strong {
    color: var(--navy-950);
    font-size: 13px;
  }

  .header-tools-panel a.notification-link span {
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.6;
  }

  .header-tools-panel a.notification-link small {
    color: var(--muted);
    font-size: 11px;
  }

  .header-tools-panel a.notification-link.is-unread {
    background: var(--blue-soft);
  }

  .header-tools-panel a.notification-link.is-unread strong:before {
    content: "";
    background: var(--blue);
    vertical-align: middle;
    border-radius: 50%;
    width: 7px;
    height: 7px;
    margin-inline-end: 6px;
    display: inline-block;
  }

  .payroll-month-bar {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    margin-bottom: 14px;
    padding: 12px 18px;
    display: flex;
  }

  .payroll-month-picker {
    align-items: center;
    gap: 8px;
    display: flex;
  }

  .payroll-month-picker label {
    flex-direction: column;
    gap: 2px;
    display: flex;
  }

  .payroll-month-picker label span {
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
  }

  .payroll-month-picker input {
    border: 1px solid var(--line);
    background: var(--card);
    min-height: 36px;
    color: var(--ink);
    font: inherit;
    border-radius: 8px;
    padding: 4px 10px;
  }

  .payroll-month-picker strong {
    color: var(--ink);
    margin-inline-start: 6px;
    font-size: 16px;
  }

  .payroll-month-dates {
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    display: flex;
  }

  .payroll-month-dates div {
    flex-direction: column;
    gap: 1px;
    display: flex;
  }

  .payroll-month-dates dt {
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
  }

  .payroll-month-dates dd {
    color: var(--ink);
    margin: 0;
    font-size: 13px;
    font-weight: 700;
  }

  @media (max-width: 640px) {
    .payroll-month-picker strong {
      display: none;
    }
  }
}

/* [project]/src/styles/tokens.css [app-client] (css) */
@layer legacy, reset;

@layer tokens {
  :root {
    --neutral-0: #fff;
    --neutral-25: #f8fafb;
    --neutral-50: #f1f4f6;
    --neutral-100: #e6ebee;
    --neutral-200: #d3dbe0;
    --neutral-300: #b4c1c9;
    --neutral-400: #7a8b96;
    --neutral-500: #677884;
    --neutral-600: #4f5f6b;
    --neutral-700: #3b4a55;
    --neutral-800: #26343e;
    --neutral-900: #16222b;
    --neutral-950: #0c161d;
    --color-status-success-fg: #0b6b4a;
    --color-status-success-bg: #e7f5ee;
    --color-status-success-border: #9fd3bb;
    --color-status-success-solid: #0b6b4a;
    --color-status-warning-fg: #8a5a00;
    --color-status-warning-bg: #fff4d6;
    --color-status-warning-border: #f0cf7a;
    --color-status-warning-solid: #8a5a00;
    --color-status-danger-fg: #b42318;
    --color-status-danger-bg: #fdecea;
    --color-status-danger-border: #f3b4ae;
    --color-status-danger-solid: #b42318;
    --color-status-info-fg: #1d5f9e;
    --color-status-info-bg: #e8f1fb;
    --color-status-info-border: #a9c8ea;
    --color-status-info-solid: #1d5f9e;
    --color-status-neutral-fg: #4f5f6b;
    --color-status-neutral-bg: #f1f4f6;
    --color-status-neutral-border: #d3dbe0;
    --color-status-neutral-solid: #4f5f6b;
    --brand-primary: #1b4d6d;
    --brand-secondary: #123542;
    --brand-accent: #ecc500;
    --brand-primary-safe: #1b4d6d;
    --brand-primary-hover: #063d5c;
    --brand-primary-active: #002d46;
    --brand-primary-subtle: #e6f4ff;
    --brand-primary-text: #1b4d6d;
    --on-brand-primary: #fff;
    --brand-secondary-safe: #123542;
    --on-brand-secondary: #fff;
    --brand-secondary-fg-muted: #a0aeb3;
    --brand-secondary-active: #2e4d59;
    --brand-accent-safe: #ecc500;
    --on-brand-accent: #0c161d;
    --brand-chart-primary: #1b4d6d;
    --brand-chart-accent: #b09200;
    --product-fg: var(--neutral-600);
    --product-surface: var(--neutral-0);
    --color-canvas: #f3f6f8;
    --color-page: var(--color-canvas);
    --color-divider: var(--neutral-100);
    --color-surface: var(--neutral-0);
    --color-surface-subtle: var(--neutral-25);
    --color-surface-raised: var(--neutral-0);
    --color-text: var(--neutral-900);
    --color-text-secondary: var(--neutral-600);
    --color-text-subtle: var(--neutral-500);
    --color-text-disabled: var(--neutral-500);
    --color-text-inverse: var(--neutral-0);
    --color-border: #e3e9ec;
    --color-border-control: var(--neutral-400);
    --color-border-strong: var(--neutral-600);
    --color-action-primary-bg: var(--brand-primary-safe);
    --color-action-primary-hover: var(--brand-primary-hover);
    --color-action-primary-active: var(--brand-primary-active);
    --color-action-primary-fg: var(--on-brand-primary);
    --color-action-secondary-bg: var(--color-surface);
    --color-action-secondary-hover: var(--neutral-25);
    --color-action-secondary-fg: var(--color-text);
    --color-action-secondary-border: var(--color-border-control);
    --color-action-danger-bg: var(--color-status-danger-solid);
    --color-action-danger-hover: #8f1c13;
    --color-action-danger-fg: var(--neutral-0);
    --color-link: var(--brand-primary-text);
    --color-focus-ring: var(--brand-primary-text);
    --color-selected-bg: var(--brand-primary-subtle);
    --color-nav-bg: var(--brand-secondary-safe);
    --color-nav-fg: var(--on-brand-secondary);
    --color-nav-fg-muted: var(--brand-secondary-fg-muted);
    --color-nav-active-bg: var(--brand-secondary-active);
    --color-nav-active-indicator: var(--brand-accent-safe);
    --chart-1: var(--brand-chart-primary);
    --chart-2: #2f6fb0;
    --chart-3: #1a7f5a;
    --chart-4: #b7791f;
    --chart-5: var(--neutral-500);
    --chart-6: var(--brand-chart-accent);
    --page-width-narrow: 760px;
    --page-width-default: 1200px;
    --page-width-wide: 1440px;
    --page-gap: var(--space-6);
    --section-gap: var(--space-10);
    --space-0: 0;
    --space-0-5: 2px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --density-space: 1;
    --density-row: 1;
    --density-control: 1;
    --density-table-leading: 1.75;
    --control-height-sm: 32px;
    --control-height-md: 40px;
    --control-height-lg: 48px;
    --touch-target-min: 44px;
    --icon-size-sm: 16px;
    --icon-size-md: 20px;
    --icon-size-lg: 24px;
    --table-row-height: 52px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --card-padding: var(--space-6);
    --icon-container-size: 40px;
    --icon-container-radius: var(--radius-md);
    --icon-container-bg: var(--neutral-50);
    --icon-container-fg: var(--color-text-secondary);
    --elevation-overlay: 0 12px 32px #1239461f, 0 2px 6px #1239460f;
    --elevation-card: 0 1px 2px #1239460f;
    --elevation-sm: var(--elevation-card);
    --elevation-md: var(--elevation-overlay);
    --elevation-lg: var(--elevation-overlay);
    --z-base: 0;
    --z-sticky: 100;
    --z-topbar: 200;
    --z-nav: 300;
    --z-dropdown: 400;
    --z-toast: 700;
    --z-tooltip: 800;
    --duration-fast: .15s;
    --duration-base: .2s;
    --duration-slow: .32s;
    --ease-standard: cubic-bezier(.2, 0, 0, 1);
    --ease-exit: cubic-bezier(.4, 0, 1, 1);
    --font-size-caption: .75rem;
    --font-size-body-sm: .875rem;
    --font-size-body: 1rem;
    --font-size-title-sm: 1rem;
    --font-size-title: 1.125rem;
    --font-size-heading: 1.25rem;
    --font-size-page-title: 1.5rem;
    --font-size-display: 1.75rem;
    --line-height-caption: 1.5;
    --line-height-body-sm: 1.6;
    --line-height-body: 1.7;
    --line-height-title-sm: 1.5;
    --line-height-title: 1.5;
    --line-height-heading: 1.45;
    --line-height-page-title: 1.4;
    --line-height-display: 1.35;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
  }

  [data-density="compact"] {
    --density-space: .66;
    --density-row: .74;
    --density-control: .86;
    --density-table-leading: 1.5;
    --control-height-sm: 28px;
    --control-height-md: 36px;
    --control-height-lg: 44px;
    --table-row-height: 40px;
  }

  @media (pointer: coarse) {
    [data-density="compact"] {
      --density-control: 1;
      --control-height-sm: 32px;
      --control-height-md: 40px;
      --control-height-lg: 48px;
    }
  }

  @media (max-width: 599.98px) {
    :root {
      --font-size-page-title: 1.25rem;
      --font-size-display: 1.5rem;
      --page-gap: var(--space-4);
      --section-gap: var(--space-8);
      --card-padding: var(--space-4);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    :root {
      --duration-fast: .01ms;
      --duration-base: .01ms;
      --duration-slow: .01ms;
    }
  }
}

@layer brand, base, primitives, patterns, modules, utilities;

/* [project]/src/styles/base.css [app-client] (css) */
@layer legacy, reset, tokens, brand;

@layer base {
  [data-ui="v2"] {
    font-family: var(--font-app), "Segoe UI", "Segoe UI Arabic", "Noto Sans Arabic", Tahoma, system-ui, Arial, sans-serif;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text);
    text-align: start;
  }

  [data-ui="v2"] :focus-visible, [data-ui="v2"]:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
  }

  [data-ui="v2"] .tabular-nums, [data-ui="v2"].tabular-nums {
    font-variant-numeric: tabular-nums;
  }

  [data-ui="v2"], [data-ui="v2"] * {
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-300) transparent;
  }

  [data-ui="v2"] {
    text-wrap: pretty;
  }

  [data-ui="v2"] h1, [data-ui="v2"] h2, [data-ui="v2"] h3, [data-ui="v2"] h4 {
    text-wrap: balance;
  }
}

@layer primitives, patterns, modules, utilities;

/*# sourceMappingURL=%5Broot-of-the-server%5D__1n39pbr._.css.map*/