:root {
    --hr-blue-950: #052f4b;
    --hr-blue-900: #064b72;
    --hr-blue-800: #06628f;
    --hr-blue-700: #087ab7;
    --hr-blue-600: #0796cf;
    --hr-cyan-500: #09b4d5;
    --hr-cyan-100: #dff7fb;
    --hr-cyan-50: #f0fbfd;
    --hr-ink: #102334;
    --hr-muted: #66788a;
    --hr-soft: #8ca0b2;
    --hr-line: #dce5ec;
    --hr-surface: #ffffff;
    --hr-surface-muted: #f5f8fa;
    --hr-canvas: #eef5f8;
    --hr-success: #138a68;
    --hr-success-soft: #e7f7f1;
    --hr-warning: #b76b05;
    --hr-warning-soft: #fff4df;
    --hr-danger: #c83f4f;
    --hr-danger-soft: #fff0f2;
    --hr-info-soft: #e9f4fb;
    --hr-shadow-sm: 0 5px 18px rgba(20, 60, 84, 0.07);
    --hr-shadow: 0 16px 45px rgba(20, 60, 84, 0.11);
    --hr-shadow-lg: 0 28px 80px rgba(4, 49, 75, 0.2);
    --hr-radius-sm: 10px;
    --hr-radius: 16px;
    --hr-radius-lg: 24px;
    --hr-sidebar-width: 286px;
    --hr-topbar-height: 78px;
    --hr-content-width: 1480px;
    --hr-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--hr-ink);
    background: var(--hr-canvas);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.is-nav-open {
    overflow: hidden;
}

body.is-dialog-open {
    overflow: hidden;
}

body.is-offline {
    --hr-canvas: #f4f3ee;
}

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

button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

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

img,
svg {
    display: block;
    max-width: 100%;
}

svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid rgba(9, 180, 213, 0.38);
    outline-offset: 3px;
}

::selection {
    color: #fff;
    background: var(--hr-blue-700);
}

.hr-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hr-skip-link {
    position: fixed;
    z-index: 1200;
    inset-block-start: 12px;
    inset-inline-start: 50%;
    padding: 9px 16px;
    color: #fff;
    background: var(--hr-blue-950);
    border-radius: 999px;
    box-shadow: var(--hr-shadow);
    transform: translate(-50%, -160%);
    transition: transform 160ms ease;
}

.hr-skip-link:focus {
    transform: translate(-50%, 0);
}

.hr-ambient {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hr-ambient span {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.56;
}

.hr-ambient span:first-child {
    inset-block-start: -260px;
    inset-inline-end: -130px;
    background: radial-gradient(circle, rgba(9, 180, 213, 0.2), rgba(9, 180, 213, 0));
}

.hr-ambient span:last-child {
    inset-block-end: -310px;
    inset-inline-start: 4%;
    background: radial-gradient(circle, rgba(8, 122, 183, 0.12), rgba(8, 122, 183, 0));
}

.hr-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.hr-bare-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

.hr-sidebar {
    position: fixed;
    z-index: 600;
    inset-block: 0;
    inset-inline-start: 0;
    display: flex;
    width: var(--hr-sidebar-width);
    flex-direction: column;
    padding: 22px 18px 18px;
    overflow-y: auto;
    color: #dbeef7;
    background:
        radial-gradient(circle at 12% 4%, rgba(15, 181, 214, 0.18), transparent 30%),
        linear-gradient(162deg, #063f61 0%, #052f4b 58%, #03283f 100%);
    box-shadow: -18px 0 50px rgba(5, 47, 75, 0.17);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.hr-sidebar__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 88px;
    margin-block-end: 24px;
}

.hr-brand {
    display: inline-flex;
    max-width: 210px;
    flex-direction: column;
    gap: 6px;
}

.hr-brand img {
    width: 205px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
}

.hr-brand__caption {
    padding-inline: 7px;
    color: rgba(229, 246, 252, 0.78);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.hr-icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    padding: 0;
    color: var(--hr-muted);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.hr-icon-button:hover {
    color: var(--hr-blue-800);
    background: var(--hr-cyan-50);
}

.hr-icon-button:active {
    transform: scale(0.96);
}

.hr-sidebar__close {
    display: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hr-nav {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.hr-nav__label {
    margin: 0 12px 7px;
    color: rgba(214, 235, 244, 0.56);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hr-nav__label--spaced {
    margin-block-start: 23px;
}

.hr-nav__link {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    color: rgba(231, 246, 251, 0.77);
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 0.9rem;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms var(--hr-ease);
}

.hr-nav__link::before {
    position: absolute;
    inset-block: 13px;
    inset-inline-start: -18px;
    width: 4px;
    background: var(--hr-cyan-500);
    border-radius: 0 4px 4px 0;
    content: "";
    opacity: 0;
    transform: scaleY(0.35);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.hr-nav__link svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.hr-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    transform: translateX(-2px);
}

.hr-nav__link.is-active {
    color: #fff;
    background: linear-gradient(110deg, rgba(9, 180, 213, 0.28), rgba(255, 255, 255, 0.08));
    border-color: rgba(132, 224, 239, 0.17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hr-nav__link.is-active::before {
    opacity: 1;
    transform: scaleY(1);
}

.hr-sidebar__footer {
    margin-block-start: 24px;
    padding: 15px 13px 3px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
}

.hr-sidebar__footer p {
    margin: 9px 0 0;
    color: rgba(219, 238, 247, 0.47);
    font-size: 0.68rem;
}

.hr-network {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(234, 247, 252, 0.74);
    font-size: 0.76rem;
}

.hr-network__dot,
.hr-topbar__network > span:first-child {
    width: 8px;
    height: 8px;
    background: #46d7a5;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(70, 215, 165, 0.12);
}

body.is-offline .hr-network__dot,
body.is-offline .hr-topbar__network > span:first-child {
    background: #e59c34;
    box-shadow: 0 0 0 4px rgba(229, 156, 52, 0.13);
}

.hr-nav-overlay {
    position: fixed;
    z-index: 550;
    inset: 0;
    display: none;
    padding: 0;
    background: rgba(4, 31, 48, 0.54);
    cursor: pointer;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 220ms ease;
}

.hr-main {
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin-inline-start: var(--hr-sidebar-width);
}

.hr-topbar {
    position: sticky;
    z-index: 400;
    inset-block-start: 0;
    display: flex;
    min-height: var(--hr-topbar-height);
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding:
        max(10px, env(safe-area-inset-top))
        clamp(18px, 3.2vw, 46px)
        10px;
    background: rgba(238, 245, 248, 0.83);
    border-block-end: 1px solid rgba(193, 210, 220, 0.67);
    backdrop-filter: blur(18px) saturate(140%);
}

.hr-topbar__start,
.hr-topbar__actions {
    display: flex;
    align-items: center;
}

.hr-topbar__start {
    min-width: 0;
    gap: 12px;
}

.hr-topbar__actions {
    flex: 0 0 auto;
    gap: 10px;
}

.hr-menu-button,
.hr-mobile-brand {
    display: none;
}

.hr-page-heading {
    min-width: 0;
}

.hr-page-heading > span {
    display: block;
    margin-block-end: -2px;
    color: var(--hr-muted);
    font-size: 0.72rem;
}

.hr-page-heading h1 {
    max-width: 58vw;
    margin: 0;
    overflow: hidden;
    color: var(--hr-blue-950);
    font-size: clamp(1rem, 1.65vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hr-install-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: var(--hr-blue-800);
    background: #fff;
    border: 1px solid var(--hr-line);
    border-radius: 12px;
    box-shadow: var(--hr-shadow-sm);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.hr-install-button:hover {
    color: var(--hr-blue-700);
    border-color: rgba(8, 122, 183, 0.34);
    transform: translateY(-1px);
}

.hr-install-button svg {
    width: 18px;
    height: 18px;
}

.hr-topbar__network {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
}

.hr-profile-chip {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--hr-blue-700), var(--hr-cyan-500));
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(8, 122, 183, 0.2);
    font-size: 0.86rem;
    font-weight: 800;
    transition: transform 160ms ease;
}

.hr-profile-chip:hover {
    transform: translateY(-1px);
}

.hr-content {
    width: 100%;
    max-width: var(--hr-content-width);
    min-height: calc(100vh - var(--hr-topbar-height));
    min-height: calc(100dvh - var(--hr-topbar-height));
    margin-inline: auto;
    padding: clamp(20px, 3.2vw, 46px);
}

.hr-mobile-nav {
    display: none;
}

/* Reusable page primitives */
.hr-page {
    display: grid;
    gap: 22px;
}

.hr-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.hr-page__title {
    margin: 0;
    color: var(--hr-blue-950);
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.hr-page__description {
    max-width: 720px;
    margin: 7px 0 0;
    color: var(--hr-muted);
    font-size: 0.92rem;
}

.hr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-block-end: 7px;
    color: var(--hr-blue-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hr-eyebrow::before {
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--hr-cyan-500), var(--hr-blue-700));
    border-radius: 999px;
    content: "";
}

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

.hr-col-12 {
    grid-column: span 12;
}

.hr-col-8 {
    grid-column: span 8;
}

.hr-col-7 {
    grid-column: span 7;
}

.hr-col-6 {
    grid-column: span 6;
}

.hr-col-5 {
    grid-column: span 5;
}

.hr-col-4 {
    grid-column: span 4;
}

.hr-col-3 {
    grid-column: span 3;
}

.hr-card {
    position: relative;
    min-width: 0;
    padding: clamp(18px, 2.3vw, 26px);
    background: var(--hr-surface);
    border: 1px solid rgba(196, 211, 220, 0.72);
    border-radius: var(--hr-radius);
    box-shadow: var(--hr-shadow-sm);
}

.hr-card--flat {
    box-shadow: none;
}

.hr-card--muted {
    background: var(--hr-surface-muted);
}

.hr-card--hero {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 10% 5%, rgba(59, 215, 233, 0.25), transparent 27%),
        linear-gradient(135deg, var(--hr-blue-900), var(--hr-blue-700) 62%, var(--hr-cyan-500));
    border: 0;
    box-shadow: 0 22px 55px rgba(6, 75, 114, 0.24);
}

.hr-card--hero::after {
    position: absolute;
    width: 220px;
    height: 220px;
    inset-block-end: -150px;
    inset-inline-end: -80px;
    border: 34px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
}

.hr-card__header,
.hr-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-block-end: 18px;
}

.hr-card__title,
.hr-section-title {
    margin: 0;
    color: var(--hr-blue-950);
    font-size: 1.03rem;
    font-weight: 800;
}

.hr-card--hero .hr-card__title {
    color: #fff;
}

.hr-card__subtitle {
    margin: 3px 0 0;
    color: var(--hr-muted);
    font-size: 0.78rem;
}

.hr-card--hero .hr-card__subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.hr-card__footer {
    margin: 20px calc(clamp(18px, 2.3vw, 26px) * -1) calc(clamp(18px, 2.3vw, 26px) * -1);
    padding: 15px clamp(18px, 2.3vw, 26px);
    background: var(--hr-surface-muted);
    border-block-start: 1px solid var(--hr-line);
    border-radius: 0 0 var(--hr-radius) var(--hr-radius);
}

.hr-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hr-kpi {
    position: relative;
    min-width: 0;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--hr-line);
    border-radius: var(--hr-radius);
    box-shadow: var(--hr-shadow-sm);
}

.hr-kpi__label {
    display: block;
    margin-block-end: 7px;
    color: var(--hr-muted);
    font-size: 0.76rem;
}

.hr-kpi__value {
    display: block;
    color: var(--hr-blue-950);
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.hr-kpi__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-block-start: 9px;
    color: var(--hr-soft);
    font-size: 0.71rem;
}

.hr-kpi__accent {
    position: absolute;
    width: 4px;
    inset-block: 17px;
    inset-inline-start: 0;
    background: var(--hr-cyan-500);
    border-radius: 0 6px 6px 0;
}

.hr-stack {
    display: grid;
    gap: 14px;
}

.hr-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hr-inline--between {
    justify-content: space-between;
}

/* Buttons and tags */
.hr-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 17px;
    color: #fff;
    background: linear-gradient(135deg, var(--hr-blue-800), var(--hr-blue-700));
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 9px 22px rgba(8, 122, 183, 0.19);
    cursor: pointer;
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.25;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.hr-button:hover {
    box-shadow: 0 12px 26px rgba(8, 122, 183, 0.25);
    transform: translateY(-1px);
}

.hr-button:active {
    box-shadow: 0 5px 14px rgba(8, 122, 183, 0.18);
    transform: translateY(0);
}

.hr-button:disabled,
.hr-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
}

.hr-button svg {
    width: 18px;
    height: 18px;
}

.hr-button--secondary {
    color: var(--hr-blue-800);
    background: #fff;
    border-color: var(--hr-line);
    box-shadow: none;
}

.hr-button--secondary:hover {
    border-color: rgba(8, 122, 183, 0.36);
    box-shadow: var(--hr-shadow-sm);
}

.hr-button--ghost {
    color: var(--hr-blue-800);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.hr-button--ghost:hover {
    background: var(--hr-cyan-50);
    box-shadow: none;
}

.hr-button--danger {
    color: var(--hr-danger);
    background: var(--hr-danger-soft);
    border-color: rgba(200, 63, 79, 0.15);
    box-shadow: none;
}

.hr-button--wide {
    width: 100%;
}

.hr-button--sm {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.hr-badge {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: var(--hr-blue-800);
    background: var(--hr-info-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.hr-badge::before {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    content: "";
}

.hr-badge--success {
    color: var(--hr-success);
    background: var(--hr-success-soft);
}

.hr-badge--warning {
    color: var(--hr-warning);
    background: var(--hr-warning-soft);
}

.hr-badge--danger {
    color: var(--hr-danger);
    background: var(--hr-danger-soft);
}

.hr-badge--neutral {
    color: var(--hr-muted);
    background: #edf1f4;
}

.hr-chip {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 13px;
    color: var(--hr-muted);
    background: #fff;
    border: 1px solid var(--hr-line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.76rem;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease;
}

.hr-chip:hover,
.hr-chip.is-active,
.hr-chip[aria-pressed="true"] {
    color: var(--hr-blue-800);
    background: var(--hr-cyan-50);
    border-color: rgba(8, 122, 183, 0.34);
}

/* Forms */
.hr-form {
    display: grid;
    gap: 18px;
}

.hr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.hr-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.hr-field--full {
    grid-column: 1 / -1;
}

.hr-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--hr-ink);
    font-size: 0.77rem;
    font-weight: 800;
}

.hr-required {
    color: var(--hr-danger);
}

.hr-input,
.hr-select,
.hr-textarea {
    width: 100%;
    min-height: 47px;
    padding: 10px 13px;
    color: var(--hr-ink);
    background: #fff;
    border: 1px solid #ccd9e1;
    border-radius: 11px;
    outline: 0;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.hr-input:hover,
.hr-select:hover,
.hr-textarea:hover {
    border-color: #adc3d1;
}

.hr-input:focus,
.hr-select:focus,
.hr-textarea:focus {
    border-color: var(--hr-blue-600);
    box-shadow: 0 0 0 4px rgba(7, 150, 207, 0.1);
}

.hr-input:disabled,
.hr-select:disabled,
.hr-textarea:disabled {
    color: var(--hr-soft);
    background: #f1f4f6;
    cursor: not-allowed;
}

.hr-input[aria-invalid="true"],
.hr-select[aria-invalid="true"],
.hr-textarea[aria-invalid="true"] {
    border-color: var(--hr-danger);
}

.hr-textarea {
    min-height: 118px;
    resize: vertical;
}

.hr-select {
    padding-inline-end: 36px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--hr-muted) 50%),
        linear-gradient(135deg, var(--hr-muted) 50%, transparent 50%);
    background-position:
        left 17px top 52%,
        left 12px top 52%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.hr-help,
.hr-error {
    margin: 0;
    color: var(--hr-muted);
    font-size: 0.7rem;
}

.hr-error {
    color: var(--hr-danger);
}

.hr-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--hr-muted);
    cursor: pointer;
    font-size: 0.77rem;
}

.hr-check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--hr-blue-700);
}

.hr-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-block-start: 4px;
}

/* Tables and data lists */
.hr-table-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--hr-line);
    border-radius: var(--hr-radius);
    scrollbar-width: thin;
    scrollbar-color: #b8cad5 transparent;
}

.hr-table {
    width: 100%;
    min-width: 760px;
    background: #fff;
}

.hr-table th,
.hr-table td {
    padding: 13px 15px;
    text-align: start;
    vertical-align: middle;
    border-block-end: 1px solid #e7edf1;
}

.hr-table th {
    position: sticky;
    z-index: 1;
    inset-block-start: 0;
    color: var(--hr-muted);
    background: #f5f8fa;
    font-size: 0.71rem;
    font-weight: 800;
    white-space: nowrap;
}

.hr-table td {
    color: var(--hr-ink);
    font-size: 0.78rem;
}

.hr-table tbody tr:last-child td {
    border-block-end: 0;
}

.hr-table tbody tr {
    transition: background-color 140ms ease;
}

.hr-table tbody tr:hover {
    background: #f9fcfd;
}

.hr-data-list {
    margin: 0;
}

.hr-data-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
    padding: 13px 0;
    border-block-end: 1px solid #e7edf1;
}

.hr-data-row:last-child {
    border-block-end: 0;
}

.hr-data-row dt {
    color: var(--hr-muted);
    font-size: 0.75rem;
}

.hr-data-row dd {
    margin: 0;
    color: var(--hr-ink);
    font-size: 0.82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Tabs, drawers and feedback */
.hr-tabs {
    display: flex;
    gap: 5px;
    padding: 5px;
    overflow-x: auto;
    background: #e8eff3;
    border-radius: 13px;
    scrollbar-width: none;
}

.hr-tabs::-webkit-scrollbar {
    display: none;
}

.hr-tab {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 7px 14px;
    color: var(--hr-muted);
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 800;
}

.hr-tab.is-active,
.hr-tab[aria-selected="true"] {
    color: var(--hr-blue-800);
    background: #fff;
    box-shadow: 0 3px 10px rgba(20, 60, 84, 0.08);
}

.hr-tab-panel[hidden] {
    display: none;
}

.hr-drawer {
    position: fixed;
    z-index: 900;
    inset-block: 0;
    inset-inline-end: 0;
    width: min(520px, 100%);
    padding: 22px;
    overflow-y: auto;
    background: #fff;
    box-shadow: var(--hr-shadow-lg);
    visibility: hidden;
    transform: translateX(-105%);
    transition:
        transform 250ms var(--hr-ease),
        visibility 250ms;
}

.hr-drawer.is-open {
    visibility: visible;
    transform: translateX(0);
}

.hr-modal-backdrop {
    position: fixed;
    z-index: 850;
    inset: 0;
    background: rgba(4, 31, 48, 0.5);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(3px);
    transition:
        opacity 220ms ease,
        visibility 220ms;
}

.hr-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.hr-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    padding: 30px;
    color: var(--hr-muted);
    text-align: center;
}

.hr-empty__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 13px;
    color: var(--hr-blue-700);
    background: var(--hr-cyan-50);
    border-radius: 19px;
}

.hr-empty h3 {
    margin: 0;
    color: var(--hr-blue-950);
    font-size: 1rem;
}

.hr-empty p {
    max-width: 430px;
    margin: 5px 0 0;
    font-size: 0.78rem;
}

.hr-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
    color: var(--hr-blue-900);
    background: var(--hr-info-soft);
    border: 1px solid rgba(8, 122, 183, 0.12);
    border-radius: 12px;
    font-size: 0.77rem;
}

.hr-alert--success {
    color: var(--hr-success);
    background: var(--hr-success-soft);
    border-color: rgba(19, 138, 104, 0.13);
}

.hr-alert--warning {
    color: var(--hr-warning);
    background: var(--hr-warning-soft);
    border-color: rgba(183, 107, 5, 0.13);
}

.hr-alert--danger {
    color: var(--hr-danger);
    background: var(--hr-danger-soft);
    border-color: rgba(200, 63, 79, 0.13);
}

.hr-toast-region {
    position: fixed;
    z-index: 1100;
    inset-block-start: calc(var(--hr-topbar-height) + 14px);
    inset-inline-end: 18px;
    display: grid;
    width: min(360px, calc(100vw - 36px));
    gap: 9px;
    pointer-events: none;
}

.hr-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: #fff;
    background: var(--hr-blue-950);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--hr-shadow-lg);
    pointer-events: auto;
    animation: hr-toast-in 220ms var(--hr-ease) both;
}

.hr-toast.is-leaving {
    animation: hr-toast-out 180ms ease both;
}

.hr-toast__message {
    flex: 1;
    font-size: 0.76rem;
}

.hr-toast__close {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border-radius: 7px;
    cursor: pointer;
}

@keyframes hr-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@keyframes hr-toast-out {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

/* Workflow and utility components */
.hr-timeline {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hr-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding-block-end: 22px;
}

.hr-timeline__item::before {
    position: absolute;
    inset-block: 28px -2px;
    inset-inline-start: 16px;
    width: 2px;
    background: var(--hr-line);
    content: "";
}

.hr-timeline__item:last-child {
    padding-block-end: 0;
}

.hr-timeline__item:last-child::before {
    display: none;
}

.hr-timeline__marker {
    position: relative;
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--hr-blue-700);
    background: #fff;
    border: 2px solid #bcd2de;
    border-radius: 50%;
}

.hr-timeline__item.is-complete .hr-timeline__marker {
    color: #fff;
    background: var(--hr-success);
    border-color: var(--hr-success);
}

.hr-timeline__item.is-current .hr-timeline__marker {
    background: var(--hr-cyan-50);
    border-color: var(--hr-cyan-500);
    box-shadow: 0 0 0 5px rgba(9, 180, 213, 0.09);
}

.hr-timeline__content {
    min-width: 0;
    padding-block-start: 4px;
}

.hr-timeline__content h4 {
    margin: 0;
    color: var(--hr-ink);
    font-size: 0.83rem;
}

.hr-timeline__content p {
    margin: 3px 0 0;
    color: var(--hr-muted);
    font-size: 0.72rem;
}

.hr-avatar {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    color: var(--hr-blue-800);
    background: var(--hr-cyan-100);
    border-radius: 13px;
    font-size: 0.78rem;
    font-weight: 800;
}

.hr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hr-progress {
    height: 9px;
    overflow: hidden;
    background: #e3ebef;
    border-radius: 999px;
}

.hr-progress > span {
    display: block;
    width: var(--hr-progress, 0%);
    height: 100%;
    background: linear-gradient(90deg, var(--hr-cyan-500), var(--hr-blue-700));
    border-radius: inherit;
    transition: width 450ms var(--hr-ease);
}

.hr-divider {
    height: 1px;
    margin-block: 18px;
    background: var(--hr-line);
    border: 0;
}

.hr-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--hr-blue-700);
    font-size: 0.78rem;
    font-weight: 800;
}

.hr-link:hover {
    color: var(--hr-blue-900);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hr-meta {
    color: var(--hr-muted);
    font-size: 0.72rem;
}

.hr-number {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

.hr-skeleton {
    position: relative;
    overflow: hidden;
    color: transparent !important;
    background: #e8eef2 !important;
    border-radius: 8px;
}

.hr-skeleton::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.62) 50%, transparent 80%);
    content: "";
    transform: translateX(100%);
    animation: hr-shimmer 1.5s infinite;
}

@keyframes hr-shimmer {
    to {
        transform: translateX(-100%);
    }
}

/* Authentication context */
.hr-auth-context .hr-sidebar,
.hr-auth-context .hr-topbar,
.hr-auth-context .hr-mobile-nav {
    display: none;
}

.hr-auth-context .hr-main {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    margin-inline-start: 0;
    place-items: center;
}

.hr-auth-context .hr-content {
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
}

/* Responsive */
@media (max-width: 1180px) {
    .hr-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr-col-3,
    .hr-col-4 {
        grid-column: span 6;
    }

    .hr-col-8 {
        grid-column: span 12;
    }
}

@media (max-width: 1024px) {
    :root {
        --hr-topbar-height: 70px;
    }

    .hr-sidebar {
        width: min(310px, 88vw);
        padding-block-start: max(18px, env(safe-area-inset-top));
        visibility: hidden;
        box-shadow: -26px 0 70px rgba(4, 31, 48, 0.32);
        transform: translateX(105%);
        transition:
            transform 250ms var(--hr-ease),
            visibility 250ms;
    }

    body.is-nav-open .hr-sidebar {
        visibility: visible;
        transform: translateX(0);
    }

    .hr-sidebar__close,
    .hr-menu-button,
    .hr-mobile-brand {
        display: inline-grid;
    }

    .hr-nav-overlay {
        display: block;
        visibility: hidden;
    }

    body.is-nav-open .hr-nav-overlay {
        visibility: visible;
        opacity: 1;
    }

    .hr-main {
        margin-inline-start: 0;
    }

    .hr-topbar {
        padding-inline: 16px;
    }

    .hr-mobile-brand {
        width: 40px;
        height: 40px;
        place-items: center;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--hr-line);
        border-radius: 12px;
    }

    .hr-mobile-brand img {
        width: 38px;
        height: 38px;
    }

    .hr-page-heading > span {
        display: none;
    }

    .hr-content {
        padding-block-end: calc(94px + env(safe-area-inset-bottom));
    }

    .hr-mobile-nav {
        position: fixed;
        z-index: 500;
        inset-block-end: 0;
        inset-inline: 0;
        display: grid;
        min-height: 69px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 6px max(8px, env(safe-area-inset-left)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
        background: rgba(255, 255, 255, 0.94);
        border-block-start: 1px solid rgba(199, 213, 221, 0.78);
        box-shadow: 0 -10px 30px rgba(20, 60, 84, 0.08);
        backdrop-filter: blur(18px) saturate(140%);
    }

    .hr-mobile-nav__link {
        position: relative;
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        padding: 5px 2px;
        color: #8b9ba8;
        border-radius: 11px;
        font-size: 0.63rem;
        line-height: 1.25;
        transition:
            color 160ms ease,
            background-color 160ms ease;
    }

    .hr-mobile-nav__link svg {
        width: 22px;
        height: 22px;
    }

    .hr-mobile-nav__link.is-active {
        color: var(--hr-blue-800);
        background: var(--hr-cyan-50);
    }

    .hr-mobile-nav__link.is-active::after {
        position: absolute;
        inset-block-start: -6px;
        width: 28px;
        height: 3px;
        background: linear-gradient(90deg, var(--hr-blue-700), var(--hr-cyan-500));
        border-radius: 0 0 4px 4px;
        content: "";
    }

    .hr-admin-context .hr-mobile-nav {
        display: none;
    }

    .hr-admin-context .hr-content {
        padding-block-end: 32px;
    }
}

@media (max-width: 760px) {
    .hr-content {
        padding: 18px 14px calc(88px + env(safe-area-inset-bottom));
    }

    .hr-topbar {
        gap: 8px;
        padding-inline: 10px;
    }

    .hr-topbar__start {
        gap: 5px;
    }

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

    .hr-page-heading h1 {
        max-width: 46vw;
        font-size: 0.98rem;
    }

    .hr-install-button span {
        display: none;
    }

    .hr-install-button {
        width: 40px;
        padding: 0;
    }

    .hr-topbar__network {
        display: none;
    }

    .hr-profile-chip {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .hr-page {
        gap: 16px;
    }

    .hr-page__header {
        align-items: stretch;
        flex-direction: column;
    }

    .hr-page__header > .hr-inline,
    .hr-page__header > .hr-button {
        width: 100%;
    }

    .hr-page__title {
        font-size: 1.45rem;
    }

    .hr-grid {
        gap: 14px;
    }

    .hr-col-3,
    .hr-col-4,
    .hr-col-5,
    .hr-col-6,
    .hr-col-7,
    .hr-col-8,
    .hr-col-12 {
        grid-column: 1 / -1;
    }

    .hr-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hr-kpi {
        padding: 15px 13px;
    }

    .hr-kpi__value {
        font-size: 1.35rem;
    }

    .hr-card {
        padding: 17px 15px;
        border-radius: 14px;
    }

    .hr-card__footer {
        margin: 18px -15px -17px;
        padding: 14px 15px;
    }

    .hr-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hr-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hr-form-actions .hr-button {
        width: 100%;
    }

    .hr-data-row {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 12px 0;
    }

    .hr-table-wrap {
        margin-inline: -1px;
        border-radius: 12px;
    }

    .hr-drawer {
        inset-block-start: auto;
        inset-inline: 0;
        width: 100%;
        max-height: 88vh;
        padding: 18px 15px calc(18px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        transform: translateY(105%);
    }

    .hr-drawer.is-open {
        transform: translateY(0);
    }

    .hr-toast-region {
        inset-block-start: auto;
        inset-block-end: calc(82px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 420px) {
    .hr-kpis {
        grid-template-columns: 1fr;
    }

    .hr-topbar__actions {
        gap: 3px;
    }

    .hr-page-heading h1 {
        max-width: 42vw;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        color: #000;
        background: #fff;
    }

    .hr-sidebar,
    .hr-topbar,
    .hr-mobile-nav,
    .hr-ambient,
    .hr-toast-region,
    .hr-nav-overlay,
    .hr-button,
    [data-no-print] {
        display: none !important;
    }

    .hr-main {
        margin: 0;
    }

    .hr-content {
        max-width: none;
        min-height: 0;
        padding: 0;
    }

    .hr-card,
    .hr-table-wrap {
        box-shadow: none;
        break-inside: avoid;
    }
}
