/* Base theme */

:root {
    --font-heading: "Be Vietnam Pro", "Segoe UI", sans-serif;
    --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;

    /* ===== Primary ===== */
    --color-primary: #2859A4;
    --color-primary-strong: #1F4783;
    --color-primary-soft: #3A6FBB;
    --color-primary-tint: #DCEAFE;

    /* ===== Background ===== */
    --color-bg: #F6F8FC;
    --color-bg-soft: #EEF3FA;
    --color-surface: #FFFFFF;
    --color-surface-muted: #FAFBFE;
    --color-surface-deep: #E9EEF5;

    /* ===== Text ===== */
    --color-text: #181D27;
    --color-text-muted: #6B778C;
    --color-text-faint: #8A97AB;

    /* ===== Line ===== */
    --color-line: #E6EBF2;
    --color-line-soft: #F0F3F8;

    /* ===== Semantic ===== */
    --color-success-bg: #D9F8E3;
    --color-success-fg: #148544;
    --color-warning-bg: #FFF0D8;
    --color-warning-fg: #D78908;
    --color-danger-bg: #FFE2E2;
    --color-danger-fg: #CC4545;

    /* ===== Shadow ===== */
    --shadow-xs: 0 2px 10px rgba(4, 36, 121, 0.04);
    --shadow-sm: 0 10px 30px rgba(8, 26, 76, 0.06);
    --shadow-lg: 0 30px 80px rgba(11, 30, 86, 0.12);

    /* ===== Radius ===== */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-xl: 20px;
    --radius-pill: 999px;
    --input-radius: var(--radius-sm);

    /* ===== Layout spacing ===== */
    --space-page-x: 1rem;
    --space-page-y: 1rem;
    --space-page-bottom: 2rem;
    --space-section-gap: 1rem;
    --space-card: 1rem;
    --space-card-lg: 1.5rem;
    --space-state: 2rem;
}

@media (max-width: 959.98px) {
    :root {
        --space-page-x: 0.75rem;
        --space-page-y: 0.75rem;
        --space-page-bottom: 1.5rem;
        --space-card: 0.875rem;
        --space-state: 1.5rem;
    }
}

html {
    font-size: 16px;
    background: var(--color-bg);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(83, 128, 255, 0.10), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, var(--color-bg) 50%, #f4f7fc 100%);
    color: var(--color-text);
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6{
    font-family: var(--font-heading);
}

.text-success {
    color: var(--color-success-fg) !important;
}

.text-primary {
    color: var(--color-primary) !important;
}

.app-table-actions {
    text-align: center !important;
}

/* Ant foundation and shared components */

/* Opt-in roots also carry tokens into overlays mounted outside the page. */
:root,
.hrm-ant,
.hrm-ant-overlay {
    --hrm-primary: #0050b3;
    --hrm-primary-hover: #096dd9;
    --hrm-primary-active: #003a8c;
    --hrm-accent: #fa8c16;
    --hrm-background: #f0f2f5;
    --hrm-hover: #f5f5f5;
    --hrm-surface: #fff;
    --hrm-launcher-background: #ffe7ba;
    --hrm-text: #1f2937;
    --hrm-muted: #64748b;
    --hrm-border: #d9d9d9;
    --hrm-success: #237804;
    --hrm-warning: #d48806;
    --hrm-danger: #cf1322;
    --hrm-danger-hover: #a8071a;
    --hrm-danger-active: #820014;
    --hrm-info: #0050b3;
    --hrm-space-1: 4px;
    --hrm-space-2: 8px;
    --hrm-space-3: 12px;
    --hrm-space-4: 16px;
    --hrm-space-6: 24px;
    --hrm-page-padding: 20px;
    --hrm-radius-control: 4px;
    --hrm-radius-surface: 6px;
    --hrm-radius-launcher: 24px;
    --hrm-header-height: 56px;
    --hrm-navigation-height: 40px;
    --hrm-control-height: 30px;
    --hrm-row-height: 36px;
    --hrm-table-border-width: 1px;
    --hrm-table-border-color: #ddd;
    --hrm-table-cell-padding: 3px 6px;
    --hrm-table-font-size: 14px;
    --hrm-table-secondary-font-size: 12px;
    --hrm-table-line-height: 20px;
    --hrm-table-text-color: rgba(0, 0, 0, 0.85);
    --hrm-table-striped-background: #f2f2f2;
    --hrm-table-hover-background: #cfddf1;
    --hrm-switch-width: 44px;
    --hrm-switch-height: 22px;
    --hrm-switch-inset: 2px;
    --hrm-switch-handle-size: calc(var(--hrm-switch-height) - var(--hrm-switch-inset) - var(--hrm-switch-inset));
    --hrm-switch-checked-color: var(--hrm-primary);
    --hrm-action-icon-size: 18px;
    --hrm-action-icon-button-size: 24px;
    --hrm-action-icon-gap: 4px;
    --hrm-action-icon-color: #1890ff;
    --hrm-action-icon-danger: var(--hrm-danger);
    --hrm-layer-header: 100;
    --hrm-layer-menu: 1100;
    --hrm-layer-popup: 1450;
    color: var(--hrm-text);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Shared components */
/* Switch */
:is(.hrm-ant, .hrm-ant-overlay) .ant-switch {
    flex: none;
    justify-self: start;
    width: var(--hrm-switch-width);
    min-width: var(--hrm-switch-width);
    max-width: var(--hrm-switch-width);
    height: var(--hrm-switch-height);
    line-height: var(--hrm-switch-height);
    margin: 0;
    padding: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-switch-checked {
    background-color: var(--hrm-switch-checked-color);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-switch .ant-switch-handle {
    top: var(--hrm-switch-inset);
    left: var(--hrm-switch-inset);
    width: var(--hrm-switch-handle-size);
    height: var(--hrm-switch-handle-size);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-switch .ant-switch-handle::before {
    border-radius: 50%;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-switch-checked .ant-switch-handle {
    left: calc(100% - var(--hrm-switch-handle-size) - var(--hrm-switch-inset));
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-switch-checked .ant-switch-loading-icon {
    color: var(--hrm-switch-checked-color);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-switch:focus-visible {
    outline: 2px solid var(--hrm-switch-checked-color);
    outline-offset: 2px;
}

/* CascaderSelect */
:is(.hrm-ant, .hrm-ant-overlay) .ant-cascader-select .select-paging__trigger {
    min-height: var(--hrm-control-height);
    height: var(--hrm-control-height);
    border-radius: 4px;
    border-color: var(--hrm-border);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-cascader-select .select-paging__trigger:hover {
    border-color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-cascader-select .select-paging__item.is-selected {
    background: var(--hrm-primary-light, #e6f7ff);
    color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-cascader-select .select-paging__clear,
:is(.hrm-ant, .hrm-ant-overlay) .ant-cascader-select .select-paging__chevron {
    color: var(--hrm-muted);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-cascader-select .select-paging__chevron {
    pointer-events: none;
}

/* CollapsibleSection */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-collapsible {
    min-width: 0;
    border: 1px solid #d9d9d9;
    border-radius: var(--hrm-radius-surface);
    background: white;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-collapsible-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: calc(var(--hrm-radius-surface) - 1px) calc(var(--hrm-radius-surface) - 1px) 0 0;
    background: #fafafa;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-collapsible-header[aria-expanded="false"] {
    border-radius: calc(var(--hrm-radius-surface) - 1px);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-collapsible-content {
    padding: 16px;
}

/* FormGrid */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-grid {
    display: grid;
    gap: 16px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-grid .hrm-form-wide {
    grid-column: 1 / -1;
}

/* FormSection */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-section {
    min-width: 0;
    background: var(--hrm-surface);
    border: 1px solid var(--hrm-border);
    border-radius: var(--hrm-radius-surface);
    scroll-margin-top: 112px;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hrm-border);
    border-radius: calc(var(--hrm-radius-surface) - 1px) calc(var(--hrm-radius-surface) - 1px) 0 0;
    color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-section__header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-section__body {
    padding: 16px;
}

/* LocalDatePicker */
:is(.hrm-ant, .hrm-ant-overlay) .local-date-picker {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .local-date-picker > .ant-input {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .local-date-picker__calendar {
    flex: 0 0 36px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .local-date-picker__calendar .ant-picker {
    width: 36px;
    height: var(--hrm-control-height);
    padding: 3px 9px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .local-date-picker__calendar .ant-picker-input > input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .local-date-picker__calendar .ant-picker-suffix {
    margin-left: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .local-date-picker__error {
    color: var(--hrm-danger);
    font-size: 12px;
}

/* PageState */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-page-state {
    padding: 24px 16px;
    text-align: center;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-page-state p {
    margin: 12px 0 0;
}

/* SearchInput */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hrm-muted);
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-search-trigger:focus-visible {
    outline: 2px solid var(--hrm-primary);
    outline-offset: 2px;
}

/* SectionHeader */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-section-header small {
    color: var(--hrm-muted);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-section-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* SelectPaging */
:is(.hrm-ant, .hrm-ant-overlay) .select-paging {
    display: flex;
    flex-direction: column;
    gap: var(--hrm-space-1);
    width: 100%;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging > .select-paging__label {
    display: block;
    margin: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__required {
    color: var(--hrm-danger);
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging .select-paging__trigger {
    height: var(--hrm-control-height);
    min-height: var(--hrm-control-height);
    padding: 3px 36px 3px 11px;
    border-color: var(--hrm-border);
    border-radius: var(--hrm-radius-control);
    background: var(--hrm-surface);
    color: var(--hrm-text);
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging .select-paging__trigger.has-value {
    padding-right: 64px;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__trigger:hover,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging.is-open .select-paging__trigger {
    border-color: var(--hrm-primary);
    box-shadow: 0 0 0 2px #0050b31a;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging.is-readonly .select-paging__trigger {
    background: #fafafa;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__trigger:focus-visible,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__clear:focus-visible,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__item:focus-visible {
    outline: 2px solid var(--hrm-primary);
    outline-offset: 2px;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__placeholder,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__chevron,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__clear,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__state {
    color: var(--hrm-muted);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__clear:hover {
    background: #f0f5ff;
    color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__backdrop {
    z-index: calc(var(--hrm-layer-popup) - 1);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__dropdown {
    z-index: var(--hrm-layer-popup);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-color: var(--hrm-border);
    border-radius: var(--hrm-radius-control);
    background: var(--hrm-surface);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__search,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__pagination {
    border-color: var(--hrm-border);
    background: var(--hrm-surface);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__search {
    border-radius: var(--hrm-radius-control) var(--hrm-radius-control) 0 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__progress {
    display: flex;
    justify-content: center;
    padding: 4px 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__item {
    min-height: max(36px, var(--hrm-control-height));
    padding: 6px 10px;
    color: var(--hrm-text);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__item:hover:not(:disabled),
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__item.is-selected {
    background: #e6f7ff;
    color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__item .select-paging__item-check {
    color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__state--error {
    color: var(--hrm-danger);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__pagination {
    border-radius: 0 0 var(--hrm-radius-control) var(--hrm-radius-control);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-paging .select-paging__pagination .hrm-pagination {
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
}

/* SelectPagingDialog */
:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
    gap: 16px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__panel {
    min-width: 0;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fafafa;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__search {
    padding: 12px;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__list,
:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__selected-list {
    height: 360px;
    overflow: auto;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__item,
:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__selected-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__item {
    width: 100%;
    border: 0;
    background: white;
    text-align: left;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__item.is-selected {
    background: #e6f7ff;
    color: #0050b3;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__item:disabled {
    cursor: default;
    color: #8c8c8c;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__item-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__item-text,
:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__selected-text {
    overflow-wrap: anywhere;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__item-reason {
    font-size: 12px;
    color: #fa8c16;
}

:is(.hrm-ant, .hrm-ant-overlay) .select-paging-dialog__state {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 12px;
}

/* SignatureCreateDialog */
:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-form,
:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-form__preview {
    display: grid;
    gap: 12px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-form__preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    border: 1px solid var(--hrm-border);
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

/* SignatureDesigner */
:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer {
    display: grid;
    gap: 12px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__toolbar,
:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__text {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__toolbar .hrm-field {
    width: 118px;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__text .ant-input {
    flex: 1;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__color {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--hrm-border);
    border-radius: 4px;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__color span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__color input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__canvas {
    border: 1px dashed var(--hrm-border);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-ant-designer__canvas canvas {
    display: block;
    width: 100%;
    aspect-ratio: 720 / 260;
    touch-action: none;
    cursor: crosshair;
}

/* SignaturePickerDialog */

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__content {
    display: grid;
    gap: 12px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__loading {
    display: grid;
    min-height: 160px;
    place-items: center;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__item {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__item.is-selected {
    border-color: var(--hrm-primary);
    box-shadow: 0 0 0 2px rgba(0, 80, 179, 0.16);
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__preview {
    display: grid;
    height: 108px;
    place-items: center;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%);
    background-color: #fff;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
    overflow: hidden;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__meta strong,
:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__meta strong {
    font-size: 0.875rem;
    font-weight: 600;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__meta span {
    color: #64748b;
    font-size: 0.75rem;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__upload {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .signature-picker-dialog__upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

/* StoredFilePreviewDialog */
:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview {
    width: 100%;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview__image,
:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview__media,
:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview__frame {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--hrm-border);
    border-radius: 6px;
    background: white;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview__image {
    max-height: 70vh;
    object-fit: contain;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview__media {
    max-height: 70vh;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview__audio {
    width: 100%;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-preview__frame {
    height: min(72vh, 760px);
}

/* StoredFileUpload */
:is(.hrm-ant, .hrm-ant-overlay) .stored-file-upload {
    display: grid;
    gap: 8px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-upload__trigger {
    position: relative;
    width: fit-content;
    max-width: 100%;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-upload__input:disabled {
    cursor: not-allowed;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-upload__trigger:focus-within {
    outline: 2px solid var(--hrm-primary);
    outline-offset: 2px;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-upload__files {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* StoredFileViewer */
:is(.hrm-ant, .hrm-ant-overlay) .stored-file-viewer {
    max-width: 100%;
    min-width: 0;
    padding-inline: 0;
    text-align: left;
    white-space: normal;
    height: auto;
}

:is(.hrm-ant, .hrm-ant-overlay) .stored-file-viewer span {
    overflow-wrap: anywhere;
}

/* TableSortHeader */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-sort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-sort-header__arrows {
    display: flex;
    flex-direction: column;
    color: #bfbfbf;
    font-size: 10px;
    line-height: 10px;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-sort-header__arrows .hrm-sort-header__active {
    color: #0050b3;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-sort-header--center {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 14px;
    text-align: center;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-sort-header--center > span:first-child {
    grid-column: 2;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-sort-header--center .hrm-sort-header__arrows {
    grid-column: 3;
    justify-self: center;
}

:is(.hrm-ant, .hrm-ant-overlay) *,
:is(.hrm-ant, .hrm-ant-overlay) *::before,
:is(.hrm-ant, .hrm-ant-overlay) *::after { box-sizing: border-box; }

:is(.hrm-ant, .hrm-ant-overlay) :is(button, input, textarea, .ant-select, .ant-picker, .ant-table, .ant-tabs) {
    font-family: inherit;
    font-size: 14px;
}

:is(.hrm-ant, .hrm-ant-overlay) :focus-visible {
    outline: unset !important;
    outline-offset: unset !important;
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.ant-input:focus, .ant-input-affix-wrapper-focused, .ant-picker-focused, .ant-select-focused .ant-select-selector) {
    border-color: #40a9ff !important;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn {
    height: var(--hrm-control-height);
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: var(--hrm-radius-control);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn-primary:not(:disabled) {
    background: var(--hrm-primary);
    border-color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn-primary:not(:disabled):hover {
    background: var(--hrm-primary-hover);
    border-color: var(--hrm-primary-hover);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn-primary:not(:disabled):active {
    background: var(--hrm-primary-active);
    border-color: var(--hrm-primary-active);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn.ant-btn-dangerous {
    --hrm-primary: var(--hrm-danger);
    --hrm-primary-hover: var(--hrm-danger-hover);
    --hrm-primary-active: var(--hrm-danger-active);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-danger:not(:disabled),
:is(.hrm-ant, .hrm-ant-overlay) .ant-btn-dangerous:not(.ant-btn-primary, :disabled) {
    color: var(--hrm-danger);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn-dangerous:not(.ant-btn-text, .ant-btn-link, :disabled) {
    border-color: var(--hrm-danger);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-danger:not(:disabled):hover,
:is(.hrm-ant, .hrm-ant-overlay) .ant-btn-dangerous:not(.ant-btn-primary, :disabled):hover {
    color: var(--hrm-danger-hover);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn-dangerous:not(.ant-btn-text, .ant-btn-link, :disabled):hover {
    border-color: var(--hrm-danger-hover);
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.ant-input, .ant-input-affix-wrapper, .ant-picker, .ant-select-selector) {
    border-radius: var(--hrm-radius-control);
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) :is(input.ant-input, .ant-input-affix-wrapper, .ant-picker) {
    height: var(--hrm-control-height);
    min-height: var(--hrm-control-height);
    padding: 3px 11px;
    line-height: 22px;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-input-affix-wrapper > input.ant-input {
    height: auto;
    min-height: 0;
    padding: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-single .ant-select-selector {
    height: var(--hrm-control-height);
    min-height: var(--hrm-control-height);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-single .ant-select-selector::after,
:is(.hrm-ant, .hrm-ant-overlay) .ant-select-single .ant-select-selector :is(.ant-select-selection-item, .ant-select-selection-placeholder) {
    line-height: calc(var(--hrm-control-height) - 2px);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-single .ant-select-selector .ant-select-selection-search-input {
    height: calc(var(--hrm-control-height) - 2px);
    min-height: 0;
    padding: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-multiple .ant-select-selector {
    min-height: var(--hrm-control-height);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-multiple .ant-select-selection-item {
    height: calc(var(--hrm-control-height) - 8px);
    line-height: calc(var(--hrm-control-height) - 10px);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-multiple .ant-select-selector::after {
    line-height: calc(var(--hrm-control-height) - 8px);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-multiple :is(.ant-select-selection-search-input, .ant-select-selection-search-mirror) {
    height: calc(var(--hrm-control-height) - 8px);
    min-height: 0;
    line-height: calc(var(--hrm-control-height) - 8px);
    padding: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-input-number {
    width: auto;
    height: var(--hrm-control-height);
    min-height: var(--hrm-control-height);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-input-number-input {
    height: calc(var(--hrm-control-height) - 2px);
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.ant-input:focus, .ant-input-affix-wrapper-focused, .ant-picker-focused, .ant-select-focused .ant-select-selector) {
    border-color: var(--hrm-primary);
    box-shadow: 0 0 0 2px #0050b326;
}

/* Tabs */
:is(.hrm-ant, .hrm-ant-overlay) .hrm-surface:has(> .ant-tabs:first-child) {
    padding-top: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs {
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs > .ant-tabs-nav {
    margin-inline: var(--hrm-space-3);
    margin-bottom: var(--hrm-space-4);
    border: 0;
    border-radius: 0;
    background: var(--hrm-surface);
    box-shadow: none;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs > .ant-tabs-nav::before {
    border-color: var(--hrm-border);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap {
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-surface > .ant-tabs:not(.hrm-tabs--padded) > .ant-tabs-nav {
    margin-inline: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs > .ant-tabs-nav .ant-tabs-tab {
    min-height: 44px;
    padding-block: var(--hrm-space-3);
    color: var(--hrm-text);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs:is(.ant-tabs-top, .ant-tabs-bottom) > .ant-tabs-nav .ant-tabs-tab + .ant-tabs-tab {
    margin-left: var(--hrm-space-6);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs > .ant-tabs-nav .ant-tabs-tab:not(.ant-tabs-tab-disabled):hover {
    color: var(--hrm-primary-hover);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs > .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-disabled {
    color: var(--hrm-muted);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
    color: var(--hrm-primary);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-tabs-ink-bar {
    background: var(--hrm-accent);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-navigation-tabs > .ant-tabs-nav,
:is(.hrm-ant, .hrm-ant-overlay) .hrm-tabs--flush > .ant-tabs-nav {
    margin-bottom: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-surface > .hrm-navigation-tabs > .ant-tabs-nav {
    margin-bottom: var(--hrm-space-4);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-navigation-tabs > .ant-tabs-content-holder {
    display: none;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-tabs--flush > .ant-tabs-content-holder > .ant-tabs-content {
    padding: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .app-content-tabs {
    border-radius: var(--hrm-radius-surface);
}

:is(.hrm-ant, .hrm-ant-overlay) .app-content-tabs > .ant-tabs-nav {
    border-radius: var(--hrm-radius-surface) var(--hrm-radius-surface) 0 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-tabs--padded {
    background: var(--hrm-surface);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-tabs--padded > .ant-tabs-content-holder > .ant-tabs-content {
    padding: var(--hrm-space-4) var(--hrm-space-3);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-item-option-selected:not(.ant-select-item-option-disabled) { background: #e6f7ff; }
:is(.hrm-ant, .hrm-ant-overlay) .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner { background: var(--hrm-primary); }

.ant-picker-dropdown .ant-picker-panel:has(.ant-picker-time-panel) .ant-picker-footer {
    width: auto;
}

.ant-picker-dropdown .ant-picker-panel:has(.ant-picker-time-panel) .ant-picker-ranges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 8px;
    white-space: nowrap;
}

.ant-picker-dropdown .ant-picker-panel:has(.ant-picker-time-panel) .ant-picker-ranges > li {
    flex: 0 0 auto;
}

.ant-picker-dropdown .ant-picker-panel:has(.ant-picker-time-panel) .ant-picker-ranges .ant-picker-now {
    font-size: 12px;
}

.ant-picker-dropdown .ant-picker-panel:has(.ant-picker-time-panel) .ant-picker-ranges .ant-picker-ok {
    float: none;
    margin-left: 0;
}

.ant-picker-dropdown .ant-picker-panel:has(.ant-picker-time-panel) .ant-picker-ok .ant-btn {
    min-width: 0;
    height: 28px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 26px;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-pagination-item-active { border-color: var(--hrm-primary); }
:is(.hrm-ant, .hrm-ant-overlay) .ant-pagination-item-active a { color: var(--hrm-primary); }
:is(.hrm-ant, .hrm-ant-overlay) :focus-visible { outline: 2px solid var(--hrm-primary); outline-offset: 2px; }

.hrm-ant .hrm-icon { width: 20px; height: 20px; flex-shrink: 0; }
.hrm-ant .hrm-page { padding: var(--hrm-page-padding); min-width: 0; }
.hrm-ant .hrm-surface { padding: 16px 12px; background: var(--hrm-surface); border-radius: var(--hrm-radius-surface); min-width: 0; }
.hrm-ant .hrm-section-title { font-size: 18px; font-weight: 600; margin: 0 0 var(--hrm-space-4); }
.hrm-ant .hrm-secondary { font-size: 12px; color: var(--hrm-muted); }
.hrm-ant .hrm-header {
    min-height: var(--hrm-header-height);
    display: flex;
    align-items: center;
    gap: var(--hrm-space-3);
    padding: var(--hrm-space-2) var(--hrm-page-padding);
    background: var(--hrm-surface);
    border-bottom: 1px solid var(--hrm-border);
    position: relative;
    z-index: var(--hrm-layer-header);
}
.hrm-ant .hrm-brand { display: flex; align-items: center; gap: 8px; color: var(--hrm-primary); font-size: 20px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.hrm-ant .hrm-brand img { width: 32px; height: 36px; object-fit: contain; }
.hrm-ant .hrm-brand-accent { color: var(--hrm-accent); }
.hrm-ant .hrm-module-label { background: var(--hrm-launcher-background); border-radius: 20px; padding: 6px 16px; font-weight: 600; white-space: nowrap; }
.hrm-ant .hrm-navigation { display: flex; align-items: center; gap: var(--hrm-space-3); min-width: 0; flex: 1; }
.hrm-ant .hrm-navigation > button {
    min-height: var(--hrm-navigation-height);
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 0 4px;
    white-space: nowrap;
    cursor: pointer;
}
.hrm-ant .hrm-navigation > button[aria-current="page"] { border-bottom-color: var(--hrm-accent); color: var(--hrm-primary); font-weight: 600; }
.hrm-ant .hrm-navigation-more { position: relative; display: none; }
.hrm-ant .hrm-navigation-more summary { cursor: pointer; white-space: nowrap; }
.hrm-ant .hrm-navigation-more > div {
    position: absolute;
    right: 0;
    top: 32px;
    min-width: 180px;
    background: var(--hrm-surface);
    padding: var(--hrm-space-2);
    border: 1px solid var(--hrm-border);
    border-radius: var(--hrm-radius-surface);
    box-shadow: 0 6px 20px #0000001a;
    z-index: var(--hrm-layer-menu);
}
.hrm-ant .hrm-navigation-more button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.hrm-ant .hrm-account { text-align: right; font-size: 12px; flex-shrink: 0; }
.hrm-ant .hrm-launcher { background: var(--hrm-launcher-background); padding: 48px 6%; border-radius: var(--hrm-radius-surface); }
.hrm-ant .hrm-launcher-content { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); align-items: center; gap: 48px; max-width: 1280px; margin: auto; }
.hrm-ant .hrm-launcher-search { max-width: 380px; margin-bottom: 32px; }
.hrm-ant .hrm-launcher-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--hrm-space-6); }
.hrm-ant .hrm-module-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--hrm-space-4);
    padding: var(--hrm-space-6) var(--hrm-space-2);
    min-height: 160px;
    background: var(--hrm-surface);
    border: 1px solid #a1acb9;
    border-radius: var(--hrm-radius-launcher);
    color: var(--hrm-primary);
    font-weight: 600;
    cursor: pointer;
}
.hrm-ant .hrm-module-tile:hover { border-color: var(--hrm-primary); box-shadow: 0 4px 12px #0050b31a; }
.hrm-ant .hrm-module-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; }
.hrm-ant .hrm-module-icon .hrm-icon { width: 32px; height: 32px; }
.hrm-ant .hrm-module-icon.hrm-tone-blue { color: #1677ff; background: #d6eaff; }
.hrm-ant .hrm-module-icon.hrm-tone-orange { color: #f56a23; background: #ffe0c2; }
.hrm-ant .hrm-module-icon.hrm-tone-green { color: #389e0d; background: #eaffdf; }
.hrm-ant .hrm-module-icon.hrm-tone-purple { color: #531dab; background: #e9e0ff; }
.hrm-ant .hrm-launcher-pages { display: flex; justify-content: center; align-items: center; gap: var(--hrm-space-3); margin-top: 28px; }
.hrm-ant .hrm-launcher-art { width: 100%; max-height: 360px; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--hrm-space-3);
    width: 100%;
    min-width: 0;
    margin-bottom: var(--hrm-space-4);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-toolbar-filters {
    display: flex;
    flex: 1 1 640px;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-toolbar-search {
    flex: 1 1 340px;
    max-width: none;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-toolbar-select {
    flex: 0 1 200px;
    min-width: 160px;
    max-width: 100%;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-toolbar-filters > .ant-select-paging {
    flex: 0 1 240px;
    min-width: 160px;
    max-width: 100%;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-toolbar-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-toolbar .ant-btn {
    white-space: nowrap;
    font-weight: 500;
}

.hrm-ant .hrm-toolbar-filters .hrm-filter-field {
    position: relative;
    gap: 0;
    min-width: 140px;
}
.hrm-ant .hrm-toolbar-filters .hrm-filter-field:not(.hrm-toolbar-search) {
    flex: 0 1 180px;
}
.hrm-ant .hrm-toolbar-filters .hrm-filter-field > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.hrm-ant .hrm-toolbar-filters .hrm-filter-placeholder { color: #bfbfbf; }

.hrm-ant .hrm-toolbar-filters .hrm-list-filters {
    display: flex;
    flex: 1 1 100%;
    flex-direction: row;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.hrm-ant .hrm-toolbar-filters > :is(.hrm-filter-field, .ant-select, .ant-select-paging, .ant-picker):not(.hrm-toolbar-search),
.hrm-ant .hrm-list-filters > :is(.hrm-filter-field, .ant-select, .ant-select-paging, .ant-picker):not(.hrm-toolbar-search) {
    flex: 0 1 180px;
    width: auto;
    min-width: 160px;
    max-width: 100%;
}

.hrm-ant .hrm-toolbar-filters .hrm-toolbar-search {
    flex: 1 1 340px;
    width: auto;
    min-width: 0;
    max-width: none;
}

.hrm-ant .hrm-toolbar-search > :is(.ant-input, .ant-input-affix-wrapper) {
    width: 100%;
}

.hrm-ant .hrm-toolbar-filters > .hrm-action-button,
.hrm-ant .hrm-list-filters > .hrm-action-button {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 100%;
}

@media (max-width: 767px) {
    .hrm-ant .hrm-toolbar-filters > :is(.hrm-filter-field, .ant-select, .ant-select-paging, .ant-picker),
    .hrm-ant .hrm-list-filters > :is(.hrm-filter-field, .ant-select, .ant-select-paging, .ant-picker) {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-select-single .ant-select-selector :is(.ant-select-selection-item, .ant-select-selection-placeholder) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ant-select-dropdown .ant-select-item-option-content {
    min-width: 0;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}
.hrm-ant .hrm-table { min-width: 0; }
.hrm-ant .hrm-table .ant-table-content { overflow-x: auto; }
:is(.hrm-ant, .hrm-ant-overlay) table .ant-input-number-input {
    text-align: right;
}

:is(.hrm-ant, .hrm-ant-overlay) table td:is(:not([colspan]), [colspan="1"]):has(:is(.hrm-badge, .ant-tag:not(.ant-select .ant-tag), .lms-badge, .role-groups-muted-pill)) {
    text-align: center !important;
    vertical-align: middle;
}

:is(.hrm-ant, .hrm-ant-overlay) table td :is(div, span):has(> :is(.hrm-badge, .ant-tag:not(.ant-select .ant-tag), .lms-badge, .role-groups-muted-pill)) {
    justify-content: center;
    align-items: center;
    text-align: center;
}

:is(.hrm-ant, .hrm-ant-overlay) table td :is(.hrm-badge, .ant-tag:not(.ant-select .ant-tag), .lms-badge, .role-groups-muted-pill) {
    margin-inline: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-thead > tr > th,
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table) > thead > tr > th {
    height: var(--hrm-row-height);
    padding: var(--hrm-table-cell-padding);
    background: #fafafa;
    color: var(--hrm-table-text-color);
    font-family: inherit;
    font-size: var(--hrm-table-font-size);
    font-weight: 600;
    line-height: var(--hrm-table-line-height);
    text-align: center !important;
    vertical-align: middle;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody > tr.ant-table-row:not(.ant-table-row-selected) > td,
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table, .hrm-table > table) > tbody > tr > td {
    background-color: var(--hrm-surface);
}

/* Count data rows only; keep stripe specificity low so hover wins. */
:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody > tr.ant-table-row:where(:nth-child(even of .ant-table-row)):not(.ant-table-row-selected) > td,
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table, .hrm-table > table) > tbody > tr:nth-child(even) > td {
    background-color: var(--hrm-table-striped-background);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody > tr.ant-table-row:hover > td,
:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody > tr.ant-table-row > td.ant-table-cell-row-hover,
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table, .hrm-table > table) > tbody > tr:hover > td {
    background-color: var(--hrm-table-hover-background);
}

:is(.hrm-ant, .hrm-ant-overlay) th .ant-table-column-sorters {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) 14px;
    column-gap: 8px;
}

:is(.hrm-ant, .hrm-ant-overlay) th .ant-table-column-sorters .ant-table-column-title {
    grid-column: 2;
    min-width: 0;
    text-align: center;
}

:is(.hrm-ant, .hrm-ant-overlay) th .ant-table-column-sorter {
    grid-column: 3;
    justify-self: center;
    margin-left: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) th .employee-code-select-cell {
    justify-content: center;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-placeholder, .ant-table-expanded-row) > td,
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table, .hrm-table > table) > tbody > tr > td:not([colspan]) {
    height: var(--hrm-row-height);
    padding: var(--hrm-table-cell-padding);
    color: var(--hrm-table-text-color);
    font-family: inherit;
    font-size: var(--hrm-table-font-size);
    font-weight: 400;
    line-height: var(--hrm-table-line-height);
    vertical-align: middle;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-placeholder, .ant-table-expanded-row) > td :is(.app-table-cell-main, .font-weight-bold, .font-weight-black, b, strong),
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table) > tbody > tr > td:not([colspan]) :is(.app-table-cell-main, .font-weight-bold, .font-weight-black, b, strong) {
    font: inherit;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody .app-table-cell-main:not(a, button, .hrm-link),
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table) > tbody .app-table-cell-main:not(a, button, .hrm-link) {
    color: inherit;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-placeholder, .ant-table-expanded-row) > td :is(.app-table-cell-sub, small),
:is(.hrm-ant, .hrm-ant-overlay) :is(table.app-table, table.hrm-detail-table) > tbody > tr > td:not([colspan]) :is(.app-table-cell-sub, small) {
    color: var(--hrm-muted);
    font-size: var(--hrm-table-secondary-font-size);
    font-weight: 400;
    line-height: inherit;
}

/* Shared borders preserve separate Ant tables for scrolling and fixed columns. */
:is(.hrm-ant, .hrm-ant-overlay) .ant-table > .ant-table-container {
    border-top: var(--hrm-table-border-width) solid var(--hrm-table-border-color);
    border-left: var(--hrm-table-border-width) solid var(--hrm-table-border-color);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table > .ant-table-container :is(thead, tbody, tfoot) > tr:not(.ant-table-measure-row) > :is(th, td) {
    border-right: var(--hrm-table-border-width) solid var(--hrm-table-border-color);
    border-bottom: var(--hrm-table-border-width) solid var(--hrm-table-border-color);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table > .ant-table-container :is(.ant-table-content, .ant-table-header, .ant-table-body) .ant-table-thead > tr > :is(th, td)::before {
    display: none;
}

:is(.hrm-ant, .hrm-ant-overlay) table:not(.ant-table table) {
    border-collapse: collapse;
    border: var(--hrm-table-border-width) solid var(--hrm-table-border-color);
}

:is(.hrm-ant, .hrm-ant-overlay) table:not(.ant-table table) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    border: var(--hrm-table-border-width) solid var(--hrm-table-border-color);
}

.hrm-ant .hrm-status-success { color: var(--hrm-success); background: #f6ffed; border-color: #b7eb8f; }
.hrm-ant .hrm-status-warning { color: var(--hrm-warning); background: #fffbe6; border-color: #ffe58f; }
.hrm-ant .hrm-status-danger { color: var(--hrm-danger); background: #fff1f0; border-color: #ffa39e; }
.hrm-ant .hrm-status-info { color: var(--hrm-info); background: #e6f7ff; border-color: #91d5ff; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 10px 16px;
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.hrm-field, .company-field) {
    display: flex;
    flex-direction: column;
    gap: var(--hrm-space-1);
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-field:not(.hrm-filter-field) > label,
:is(.hrm-ant, .hrm-ant-overlay) .company-field > label,
:is(.hrm-ant, .hrm-ant-overlay) .select-paging__label {
    margin: 0;
    min-height: 20px;
    color: var(--hrm-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.hrm-required, .select-paging__required, .text-danger) {
    color: var(--hrm-danger);
    margin-left: 2px;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
    color: var(--hrm-danger);
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.select-paging__clear, .ant-select-clear, .ant-select-selection-item-remove, .ant-tag-close-icon, .ant-input-clear-icon, .ant-picker-clear, .ant-cascader-picker-clear):not(:disabled) {
    color: var(--hrm-danger);
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.select-paging__clear, .ant-select-clear, .ant-select-selection-item-remove, .ant-tag-close-icon, .ant-input-clear-icon, .ant-picker-clear, .ant-cascader-picker-clear):not(:disabled):hover {
    color: var(--hrm-danger-hover);
    background: #fff1f0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-field-wide { grid-column: 1 / -1; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-field :is(.ant-select, .ant-picker) { width: 100%; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-field textarea { resize: vertical; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-form-actions { display: flex; justify-content: flex-end; gap: var(--hrm-space-2); margin-bottom: var(--hrm-space-4); }

.hrm-ant-overlay .hrm-form-actions {
    align-items: center;
    flex-wrap: wrap;
    gap: var(--hrm-space-3);
    margin: var(--hrm-space-6) 0 0;
    border-top: 0;
}

.ant-modal-root:has(> .ant-modal-wrap.hrm-alert-dialog) {
    position: relative;
    z-index: 1900;
}

.hrm-ant-overlay .ant-modal-footer,
.hrm-ant-overlay .ant-modal-confirm-btns {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--hrm-space-3);
}

.hrm-ant-overlay .ant-modal-footer {
    padding: var(--hrm-space-4) var(--hrm-space-6);
    border-top: 0;
}

.hrm-ant-overlay :is(.hrm-form-actions, .ant-modal-footer, .ant-modal-confirm-btns) .ant-btn:not(.hrm-action-icon) {
    min-width: 88px;
    max-width: 100%;
    min-height: 36px;
    height: auto;
    margin-left: 0;
    padding: 6px var(--hrm-space-4);
    border-radius: var(--hrm-radius-control);
    font-weight: 500;
    white-space: normal;
}

.hrm-ant-overlay :is(.hrm-form-actions, .ant-modal-footer, .ant-modal-confirm-btns) .ant-btn.ant-btn-primary:not(.hrm-action-icon) {
    font-weight: 600;
}

.hrm-ant-overlay :is(.hrm-form-actions, .ant-modal-footer, .ant-modal-confirm-btns) .ant-btn:focus-visible {
    outline: 2px solid var(--hrm-primary);
    outline-offset: 2px;
}

.hrm-ant-overlay .ant-drawer-title { color: var(--hrm-text); font-size: 18px; font-weight: 600; }
.hrm-ant-overlay .ant-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 1;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-right: 0;
    margin-left: 12px;
    padding: 0;
    border-radius: var(--hrm-radius-control);
    color: var(--hrm-muted);
}

.hrm-ant-overlay .ant-drawer-close:hover {
    background: var(--hrm-background);
    color: var(--hrm-text);
}

.hrm-ant-overlay .ant-drawer-close:focus-visible {
    outline: 2px solid var(--hrm-primary);
    outline-offset: 2px;
}

.hrm-ant-overlay .ant-drawer-body { padding: var(--hrm-page-padding); overflow-y: auto; }
.hrm-ant-overlay .hrm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hrm-ant-overlay .hrm-form-drawer.hrm-ant .hrm-form-actions {
    justify-content: flex-end;
    gap: var(--hrm-space-2);
    margin: 0 0 var(--hrm-space-2);
    padding: 0;
    border: 0;
}

.hrm-ant-overlay .hrm-form-drawer .hrm-form-actions .ant-btn:not(.hrm-action-icon) {
    min-width: 0;
    min-height: var(--hrm-control-height);
    padding: 4px 15px;
    font-size: 13px;
    font-weight: 500;
    line-height: 22px;
    box-shadow: none;
}

.hrm-ant-overlay .hrm-form-drawer .hrm-form-actions .hrm-action-cancel {
    --hrm-drawer-action-color: #ff4d4f;
    --hrm-drawer-action-hover: #ff7875;
    --hrm-drawer-action-active: #d9363e;
}

.hrm-ant-overlay .hrm-form-drawer .hrm-form-actions .hrm-action-draft {
    --hrm-drawer-action-color: #389e0d;
    --hrm-drawer-action-hover: #52c41a;
    --hrm-drawer-action-active: var(--hrm-success);
}

.hrm-ant-overlay .hrm-form-drawer .hrm-form-actions .ant-btn:is(.ant-btn-primary, .hrm-action-cancel, .hrm-action-draft):not(:disabled) {
    color: var(--hrm-surface);
    background: var(--hrm-drawer-action-color, var(--hrm-primary));
    border-color: var(--hrm-drawer-action-color, var(--hrm-primary));
}

.hrm-ant-overlay .hrm-form-drawer .hrm-form-actions .ant-btn:is(.ant-btn-primary, .hrm-action-cancel, .hrm-action-draft):not(:disabled):hover {
    background: var(--hrm-drawer-action-hover, var(--hrm-primary-hover));
    border-color: var(--hrm-drawer-action-hover, var(--hrm-primary-hover));
}

.hrm-ant-overlay .hrm-form-drawer .hrm-form-actions .ant-btn:is(.ant-btn-primary, .hrm-action-cancel, .hrm-action-draft):not(:disabled):active {
    background: var(--hrm-drawer-action-active, var(--hrm-primary-active));
    border-color: var(--hrm-drawer-action-active, var(--hrm-primary-active));
}

/* Ant Design positions custom popups relative to their selected container. */
.hrm-popup-container {
    position: relative;
}

:is(.hrm-ant, .hrm-ant-overlay) :is(.ant-select-dropdown, .ant-picker-dropdown) { z-index: var(--hrm-layer-popup); }

@media (max-width: 1919px) {
    .hrm-ant .hrm-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1365px) {
    .hrm-ant .hrm-navigation .hrm-nav-secondary { display: none; }
    .hrm-ant .hrm-navigation-more { display: block; }
    .hrm-ant .hrm-navigation-more .hrm-nav-tertiary { display: none; }
    .hrm-ant .hrm-launcher-content { grid-template-columns: minmax(0, 1fr); }
    .hrm-ant .hrm-launcher-art { display: none; }
    .hrm-ant .hrm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .hrm-ant, .hrm-ant-overlay { --hrm-page-padding: 12px; }
    .hrm-ant .hrm-navigation .hrm-nav-tertiary { display: none; }
    .hrm-ant .hrm-navigation-more .hrm-nav-tertiary { display: block; }
    .hrm-ant .hrm-account { display: none; }
    .hrm-ant .hrm-form-grid { grid-template-columns: minmax(0, 1fr); }
    .hrm-ant .hrm-launcher { padding: 24px; }
    .hrm-ant .hrm-launcher-grid { gap: 12px; }
}
@media (max-width: 767px) {
    .hrm-ant .hrm-header { flex-wrap: wrap; }
    .hrm-ant .hrm-navigation { flex-basis: 100%; }
    .hrm-ant .hrm-launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hrm-ant .hrm-launcher { padding: 16px; }
    .hrm-ant .hrm-module-tile { min-height: 140px; }
    .hrm-ant .hrm-toolbar-select { flex: 1 1 160px; }
    .hrm-ant .hrm-toolbar-search { max-width: none; }
    .hrm-ant-overlay .hrm-form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Shared desktop controls for organization pages. */

.hrm-ant .organization-search-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hrm-muted);
    cursor: pointer;
}

.hrm-ant-overlay .organization-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.hrm-ant-overlay .organization-form-wide {
    grid-column: 1 / -1;
}

.hrm-ant-overlay .organization-branch-select {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hrm-ant-overlay .organization-branch-select .ant-select {
    flex: 1;
    min-width: 0;
}

.hrm-ant-overlay .organization-form .validation-message {
    color: var(--hrm-danger);
    font-size: 12px;
}

/* Shell opts in independently of the development foundation preview. */
.hrm-new-shell { min-height: 100vh; min-width: 0; background: var(--hrm-background); }
.hrm-new-shell .hrm-shell-header { position: sticky; top: 0; flex-wrap: nowrap; gap: 8px; }
.hrm-new-shell .hrm-brand { text-decoration: none; }
.hrm-new-shell .hrm-shell-page-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; min-width: 0; }
.hrm-new-shell .hrm-shell-page-heading h1 { margin: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; text-transform: uppercase; }
.hrm-new-shell .hrm-shell-navigation { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.hrm-new-shell .hrm-module-navigation { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; overflow: hidden; }
.hrm-new-shell .hrm-module-label { flex-shrink: 0; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.hrm-new-shell .hrm-nav-slot { flex: 0 0 auto; min-width: 0; }
.hrm-new-shell .hrm-nav-slot > .hrm-module-link { overflow: hidden; text-overflow: ellipsis; }
.hrm-new-shell .hrm-nav-slot .ant-dropdown-trigger { max-width: 100%; }
.hrm-new-shell .hrm-nav-group { border: 0; background: transparent; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.hrm-new-shell .hrm-nav-more { flex-shrink: 0; }
.hrm-new-shell .hrm-module-navigation > [hidden] { display: none; }
/* Ant Design uses !important for [hidden]; reveal hidden entries only during measurement. */
.hrm-new-shell .hrm-module-navigation.is-measuring > :is(.hrm-nav-slot, .hrm-nav-more) {
    display: block !important;
}
.hrm-new-shell .hrm-nav-group.is-active { border-bottom: 2px solid var(--hrm-accent); border-radius: 0; color: var(--hrm-primary); }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-module-link { display: block; padding: 8px 12px; color: var(--hrm-text); white-space: nowrap; text-decoration: none; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-module-link[aria-current="page"] { color: var(--hrm-primary); background: #e6f7ff; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-module-link:hover { color: var(--hrm-primary); background: #f0f5ff; }
.hrm-module-menu { z-index: var(--hrm-layer-menu); }

.hrm-header-dropdown { display: flex; }
.hrm-header-dropdown__overlay {
    position: fixed;
    z-index: 1100;
    max-width: calc(100vw - 16px);
}
.hrm-header-dropdown__overlay:not([data-positioned]) { visibility: hidden; }

:is(.hrm-module-menu, .hrm-launcher-menu, .hrm-account-menu, .hrm-notification-menu)[class*="ant-dropdown-placement-bottom"] {
    margin-top: calc(-1 * var(--hrm-space-1));
}

:is(.hrm-module-menu, .hrm-launcher-menu, .hrm-account-menu, .hrm-notification-menu)[class*="ant-dropdown-placement-top"] {
    margin-bottom: calc(-1 * var(--hrm-space-1));
}

.hrm-ant-overlay .hrm-module-menu-items { background: var(--hrm-surface); padding: 8px; min-width: 200px; max-width: min(480px, calc(100vw - 24px)); max-height: 65vh; overflow-y: auto; border-radius: 6px; box-shadow: 0 6px 20px #0000001a; }
.hrm-ant-overlay .hrm-module-menu-items strong { display: block; padding: 8px 12px; color: var(--hrm-primary); }
.hrm-ant-overlay .hrm-module-menu-items .hrm-module-link { white-space: normal; overflow-wrap: anywhere; }
.hrm-ant .hrm-module-tile { text-decoration: none; text-align: center; }
.hrm-ant.hrm-module-launcher--compact .hrm-launcher { padding: 12px; }
.hrm-ant.hrm-module-launcher--compact .hrm-launcher-content { grid-template-columns: minmax(0, 1fr); }
.hrm-ant.hrm-module-launcher--compact .hrm-launcher-grid { gap: 12px; }
.hrm-ant.hrm-module-launcher--compact .hrm-module-tile { min-height: 140px; }
@media (max-width: 1023px) {
    .hrm-new-shell .hrm-shell-header { flex-wrap: wrap; }
    .hrm-new-shell .hrm-shell-navigation { order: 3; flex-basis: 100%; }
}
@media (max-width: 767px) {
    .hrm-new-shell .hrm-brand { font-size: 16px; }
    .hrm-new-shell .hrm-shell-header { padding: 8px; }
    .hrm-new-shell .hrm-shell-header > .hrm-brand { flex: 1; }
}

.hrm-ant.hrm-common-preview { display: grid; gap: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-button:not(.hrm-action-icon) .anticon { margin-right: 6px; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-success:not(.hrm-action-icon) {
    --hrm-primary: var(--hrm-success);
    --hrm-primary-hover: #135200;
    --hrm-primary-active: #092b00;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-warning:not(.hrm-action-icon) {
    --hrm-primary: var(--hrm-warning);
    --hrm-primary-hover: #874d00;
    --hrm-primary-active: #613400;
}
:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-secondary:not(:disabled) { color: var(--hrm-primary); border-color: var(--hrm-primary); }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-secondary:not(:disabled):hover {
    color: var(--hrm-primary-hover);
    border-color: var(--hrm-primary-hover);
    background: var(--color-primary-tint);
}
:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-success:disabled,
:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-warning:disabled { background: #f5f5f5; border-color: #d9d9d9; color: #bfbfbf; }

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn.hrm-action-icon {
    --hrm-icon-button-color: var(--hrm-action-icon-color);
    --hrm-icon-button-hover: #e6f7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--hrm-action-icon-button-size);
    min-width: var(--hrm-action-icon-button-size);
    height: var(--hrm-action-icon-button-size);
    padding: 0;
    border: 0;
    border-radius: var(--hrm-radius-control) !important;
    background: transparent;
    color: var(--hrm-icon-button-color);
    box-shadow: none;
    font-size: var(--hrm-action-icon-size);
    line-height: 1;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn.hrm-action-icon.hrm-action-danger {
    --hrm-icon-button-color: var(--hrm-action-icon-danger);
    --hrm-icon-button-hover: #fff1f0;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon.hrm-action-success {
    --hrm-icon-button-color: var(--hrm-success);
    --hrm-icon-button-hover: #f6ffed;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon.hrm-action-warning {
    --hrm-icon-button-color: var(--hrm-warning);
    --hrm-icon-button-hover: #fffbe6;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon:not(:disabled):is(:hover, :active) {
    color: var(--hrm-icon-button-color);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn.hrm-action-icon.attachment-delete-button {
    transition: background-color 0.15s ease, color 0.15s ease;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-btn.hrm-action-icon.attachment-delete-button:not(:disabled):is(:hover, :active, :focus-visible) {
    background: var(--hrm-icon-button-hover);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon:focus-visible {
    outline: 2px solid var(--hrm-icon-button-color) !important;
    outline-offset: 0 !important;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon:disabled {
    background: transparent;
    color: #bfbfbf;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon > .ant-btn-loading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon :is(.anticon, .hrm-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--hrm-action-icon-size);
    height: var(--hrm-action-icon-size);
    margin: 0;
    padding: 0;
    font-size: var(--hrm-action-icon-size);
    line-height: 1;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-action-icon :is(.anticon, .hrm-icon) > svg {
    width: 100%;
    height: 100%;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-badge-primary { color: #0050b3; background: #e6f7ff; border-color: #91d5ff; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-badge-success { color: #389e0d; background: #f6ffed; border-color: #b7eb8f; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-badge-warning { color: #ad6800; background: #fffbe6; border-color: #ffe58f; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-badge-danger { color: #cf1322; background: #fff1f0; border-color: #ffa39e; }
:is(.hrm-ant, .hrm-ant-overlay) .hrm-badge-info { color: #0050b3; background: #e6f7ff; border-color: #91d5ff; }
.hrm-pagination {
    --hrm-pagination-control-height: 28px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 6px 0;
    font-size: 13px;
}

.hrm-pagination-info {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 0;
    color: var(--hrm-text);
    line-height: 1.5;
    white-space: nowrap;
}

.hrm-pagination-controls {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    color: var(--hrm-text);
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-pagination-size {
    --hrm-control-height: var(--hrm-pagination-control-height);
    flex: 0 0 104px;
    width: 104px;
    min-width: 104px;
    max-width: 104px;
    font-size: 13px;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-pagination-size.ant-select-single .ant-select-selector {
    height: var(--hrm-pagination-control-height);
    padding: 0 8px;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-pagination-size.ant-select-single .ant-select-selector :is(.ant-select-selection-item, .ant-select-selection-placeholder) {
    line-height: calc(var(--hrm-pagination-control-height) - 2px);
}

.hrm-pagination-range {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hrm-pagination-nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    max-width: 100%;
}

.hrm-pagination-nav .ant-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    font-size: 13px;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-pagination-nav .ant-pagination::after {
    content: none;
}

.hrm-pagination-nav .ant-pagination :is(.ant-pagination-item, .ant-pagination-prev, .ant-pagination-next, .ant-pagination-jump-prev, .ant-pagination-jump-next) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--hrm-pagination-control-height);
    height: var(--hrm-pagination-control-height);
    margin: 0;
    border-radius: var(--hrm-radius-control);
    line-height: calc(var(--hrm-pagination-control-height) - 2px);
}

.hrm-pagination-nav .ant-pagination .ant-pagination-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: var(--hrm-radius-control);
}

.hrm-pagination.hrm-pagination--compact {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-height: 0;
    padding: 8px;
}

.hrm-pagination--compact .hrm-pagination-info {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    width: 100%;
}

.hrm-pagination--compact .hrm-pagination-controls {
    justify-content: space-between;
    gap: 8px 12px;
    width: 100%;
    margin-left: 0;
}

.hrm-pagination--compact .hrm-pagination-nav {
    min-width: 0;
    overflow-x: auto;
}

.hrm-pagination--compact .hrm-pagination-nav .ant-pagination {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
}

.hrm-pagination--compact .hrm-pagination-nav .ant-pagination > li {
    flex-shrink: 0;
}

.hrm-pagination--compact .hrm-pagination-size {
    margin-left: auto;
}

:is(.hrm-ant, .hrm-ant-overlay) .hrm-row-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hrm-space-1);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table-cell > .app-table-actions {
    width: 100%;
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table-tbody .hrm-row-actions:has(.hrm-action-icon) {
    flex-wrap: nowrap;
    gap: var(--hrm-action-icon-gap);
}

:is(.hrm-ant, .hrm-ant-overlay) .ant-table-tbody .hrm-row-actions:has(.hrm-action-icon) > * {
    flex-shrink: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .quick-create-select-row > .ant-select {
    flex: 1 1 0;
    min-width: 0;
}

:is(.hrm-ant, .hrm-ant-overlay) .quick-create-button .ant-btn.hrm-action-icon {
    width: var(--hrm-control-height);
    min-width: var(--hrm-control-height);
    height: var(--hrm-control-height);
    border: 1px solid var(--hrm-border);
    background: var(--hrm-surface);
}

:is(.hrm-ant, .hrm-ant-overlay) .quick-create-button .ant-btn.hrm-action-icon:not(:disabled):is(:hover, :active) {
    border-color: var(--hrm-icon-button-color);
    background: var(--hrm-icon-button-hover);
}

:is(.hrm-ant, .hrm-ant-overlay) .quick-create-button .ant-btn.hrm-action-icon:disabled {
    background: var(--hrm-background);
}
:is(.hrm-ant, .hrm-ant-overlay) .validation-message { color: #cf1322; font-size: 12px; }
.hrm-ant-overlay .hrm-alert-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.hrm-ant-overlay.hrm-alert-message { display: inline-flex; align-items: center; gap: 12px; max-width: min(640px, calc(100vw - 72px)); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.hrm-ant-overlay.hrm-alert-message button { flex-shrink: 0; border: 0; padding: 0 4px; background: transparent; color: inherit; cursor: pointer; font-size: 18px; }
.hrm-ant-overlay.hrm-alert-message button:focus-visible { outline: 2px solid var(--hrm-primary); outline-offset: 2px; }
.ant-message:has(.hrm-ant-overlay.hrm-alert-message) { z-index: 2000; }
.hrm-ant.hrm-list-page {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.hrm-ant .hrm-content-stack {
    display: grid;
    gap: 12px;
}

.hrm-ant .hrm-validation-error {
    color: #cf1322;
    font-size: 12px;
    margin-top: 4px;
}

.hrm-ant .hrm-table-scroll {
    overflow-x: auto;
    max-width: 100%;
}

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

.hrm-ant .hrm-detail-table th,
.hrm-ant .hrm-detail-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.hrm-ant .hrm-calendar-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.65);
}
.hrm-ant .hrm-field-hint {
    display: block;
    margin-top: 4px;
    color: #8c8c8c;
    font-size: 12px;
}

.hrm-ant .hrm-text-muted {
    color: var(--hrm-muted);
    font-size: 12px;
}

.hrm-ant .hrm-title {
    font-size: 18px;
    font-weight: 600;
}

.hrm-ant .hrm-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrm-assets .asset-module-table td {
    overflow-wrap: anywhere;
}

.hrm-ant .hrm-skeleton {
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8ec 50%, #f0f2f5 75%);
    background-size: 200% 100%;
    animation: hrm-skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes hrm-skeleton-loading {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

.hrm-ant-overlay .ant-modal-body:has(.news-feed-detail-dialog) {
    padding: 0;
}

.hrm-ant .news-feed-detail-dialog {
    width: 100%;
}

.hrm-ant .hrm-busy-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .85);
}

.hrm-ant .hrm-form-drawer,
.hrm-form-drawer > .hrm-content-stack {
    position: relative;
}

.hrm-check-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hrm-icon {
    display: inline-flex;
    flex: none;
    vertical-align: middle;
}

.hrm-icon > svg {
    width: 1em;
    height: 1em;
}
/* Spacing and alignment used by existing page markup. */
:is(.hrm-ant, .hrm-ant-overlay) .mb-0 { margin-bottom: 0px; }
:is(.hrm-ant, .hrm-ant-overlay) .mb-1 { margin-bottom: 4px; }
:is(.hrm-ant, .hrm-ant-overlay) .mb-2 { margin-bottom: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .mb-3 { margin-bottom: 12px; }
:is(.hrm-ant, .hrm-ant-overlay) .mb-4 { margin-bottom: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .mb-6 { margin-bottom: 24px; }
:is(.hrm-ant, .hrm-ant-overlay) .mb-8 { margin-bottom: 32px; }
:is(.hrm-ant, .hrm-ant-overlay) .mr-1 { margin-right: 4px; }
:is(.hrm-ant, .hrm-ant-overlay) .mr-2 { margin-right: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .mt-0 { margin-top: 0px; }
:is(.hrm-ant, .hrm-ant-overlay) .mt-05 { margin-top: 2px; }
:is(.hrm-ant, .hrm-ant-overlay) .mt-1 { margin-top: 4px; }
:is(.hrm-ant, .hrm-ant-overlay) .mt-2 { margin-top: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .mt-3 { margin-top: 12px; }
:is(.hrm-ant, .hrm-ant-overlay) .mt-4 { margin-top: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .mt-5 { margin-top: 20px; }
:is(.hrm-ant, .hrm-ant-overlay) .mx-2 { margin-left: 8px; margin-right: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .my-3 { margin-top: 12px; margin-bottom: 12px; }
:is(.hrm-ant, .hrm-ant-overlay) .my-4 { margin-top: 16px; margin-bottom: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .p-4 { padding: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .p-5 { padding: 20px; }
:is(.hrm-ant, .hrm-ant-overlay) .pa-1 { padding: 4px; }
:is(.hrm-ant, .hrm-ant-overlay) .pa-2 { padding: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .pa-3 { padding: 12px; }
:is(.hrm-ant, .hrm-ant-overlay) .pa-4 { padding: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .pa-5 { padding: 20px; }
:is(.hrm-ant, .hrm-ant-overlay) .pa-6 { padding: 24px; }
:is(.hrm-ant, .hrm-ant-overlay) .pa-8 { padding: 32px; }
:is(.hrm-ant, .hrm-ant-overlay) .pb-0 { padding-bottom: 0px; }
:is(.hrm-ant, .hrm-ant-overlay) .pb-2 { padding-bottom: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .pb-4 { padding-bottom: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .ps-3 { padding-inline-start: 12px; }
:is(.hrm-ant, .hrm-ant-overlay) .pt-3 { padding-top: 12px; }
:is(.hrm-ant, .hrm-ant-overlay) .pt-4 { padding-top: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .px-2 { padding-left: 8px; padding-right: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .px-4 { padding-left: 16px; padding-right: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .py-1 { padding-top: 4px; padding-bottom: 4px; }
:is(.hrm-ant, .hrm-ant-overlay) .py-4 { padding-top: 16px; padding-bottom: 16px; }
:is(.hrm-ant, .hrm-ant-overlay) .py-5 { padding-top: 20px; padding-bottom: 20px; }
:is(.hrm-ant, .hrm-ant-overlay) .py-8 { padding-top: 32px; padding-bottom: 32px; }
:is(.hrm-ant, .hrm-ant-overlay) .gap-1 { gap: 4px; }
:is(.hrm-ant, .hrm-ant-overlay) .gap-2 { gap: 8px; }
:is(.hrm-ant, .hrm-ant-overlay) .gap-3 { gap: 12px; }
:is(.hrm-ant, .hrm-ant-overlay) .d-flex { display: flex; }
:is(.hrm-ant, .hrm-ant-overlay) .d-block { display: block; }
:is(.hrm-ant, .hrm-ant-overlay) .flex-column { flex-direction: column; }
:is(.hrm-ant, .hrm-ant-overlay) .flex-wrap { flex-wrap: wrap; }
:is(.hrm-ant, .hrm-ant-overlay) .flex-grow-1 { flex-grow: 1; min-width: 0; }
:is(.hrm-ant, .hrm-ant-overlay) .align-center { align-items: center; }
:is(.hrm-ant, .hrm-ant-overlay) .align-start { align-items: flex-start; }
:is(.hrm-ant, .hrm-ant-overlay) .justify-center { justify-content: center; }
:is(.hrm-ant, .hrm-ant-overlay) .justify-end { justify-content: flex-end; }
:is(.hrm-ant, .hrm-ant-overlay) .justify-space-between { justify-content: space-between; }
:is(.hrm-ant, .hrm-ant-overlay) .w-100 { width: 100%; }
:is(.hrm-ant, .hrm-ant-overlay) .text-center { text-align: center; }
:is(.hrm-ant, .hrm-ant-overlay) .font-weight-bold { font-weight: 700; }
:is(.hrm-ant, .hrm-ant-overlay) .font-weight-black { font-weight: 800; }
:is(.hrm-ant, .hrm-ant-overlay) .border { border: 1px solid var(--hrm-border); }
:is(.hrm-ant, .hrm-ant-overlay) .rounded { border-radius: 4px; }
.hrm-ant .hrm-row-actions .hrm-icon { width: var(--hrm-action-icon-size); height: var(--hrm-action-icon-size); }
.hrm-ant .hrm-form-wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .hrm-ant .hrm-form-grid--1 { grid-template-columns: minmax(0, 1fr); }
    .hrm-ant .hrm-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hrm-ant .hrm-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hrm-ant .hrm-form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1025px) and (max-width: 1600px) {
    .hrm-ant .hrm-form-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1024px) {
    .hrm-ant .hrm-form-grid--3, .hrm-ant .hrm-form-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 900px) {
    .hrm-ant .hrm-form-grid { grid-template-columns: minmax(0, 1fr); }
}
.hrm-ant-overlay .ant-drawer-content-wrapper { max-width: 100vw; }
.hrm-ant-overlay .ant-modal { max-width: calc(100vw - 40px); }

/* Application shell */

/* The active shell is independent of the UI library used by each page. */
.hrm-new-shell {
    min-height: 100dvh;
    width: 100%;
    min-width: 0;
}

.hrm-new-shell .hrm-shell-header {
    min-height: 50px;
    height: auto;
    padding: 0 20px;
    gap: 12px;
    border-top: 2px solid #b8dce1;
    border-bottom: 1px solid #eef0f3;
    box-shadow: none;
    background: #fff;
    z-index: 100;
}

.hrm-new-shell .hrm-brand {
    gap: 6px;
    font-size: 19px;
}

.hrm-new-shell .hrm-brand img {
    width: 28px;
    height: 32px;
}

.hrm-new-shell .hrm-shell-navigation {
    gap: 16px;
    min-width: 0;
}

.hrm-new-shell .hrm-module-label {
    padding: 5px 18px;
    text-transform: uppercase;
    font-size: 13px;
    color: #fff;
    background: #1177e5;
}

.hrm-new-shell .hrm-module-navigation {
    gap: 0;
}

.hrm-new-shell .hrm-nav-slot > .hrm-module-link,
.hrm-new-shell .hrm-nav-group,
.hrm-new-shell .hrm-nav-more .ant-btn {
    height: 46px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    color: #262626;
    font-size: 13px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.hrm-new-shell .hrm-nav-slot > .hrm-module-link[aria-current="page"],
.hrm-new-shell .hrm-nav-group.is-active {
    border-bottom-color: var(--hrm-accent);
    /* color: var(--hrm-primary); */
    font-weight: 600;
}

.hrm-new-shell .hrm-shell-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.hrm-new-shell .hrm-shell-action-divider {
    width: 1px;
    height: 24px;
    margin: 0 6px;
    background: var(--hrm-border);
    flex-shrink: 0;
}

.hrm-new-shell .hrm-shell-icon-button,
.hrm-new-shell .hrm-shell-quick-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hrm-new-shell .hrm-shell-icon-button {
    width: 36px;
    padding: 0;
}

.hrm-new-shell .hrm-shell-quick-action--checkin {
    color: var(--hrm-primary);
}

.hrm-new-shell .hrm-shell-icon-button .anticon,
.hrm-new-shell .hrm-shell-quick-action :is(.anticon, .hrm-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    flex-shrink: 0;
}

.hrm-new-shell .hrm-shell-quick-action--checkin .hrm-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.hrm-new-shell .hrm-shell-icon-button:hover,
.hrm-new-shell .hrm-shell-quick-action:hover,
.hrm-new-shell .hrm-shell-account:hover,
.hrm-new-shell .hrm-shell-icon-button[aria-expanded="true"],
.hrm-new-shell .hrm-shell-account[aria-expanded="true"] {
    background: #f0f5ff;
    color: var(--hrm-primary);
}

.hrm-new-shell .hrm-shell-counter {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 10px;
    color: #fff;
    background: #ff4d4f;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    pointer-events: none;
}

.hrm-new-shell .hrm-nav-group-trigger {
    position: relative;
}

.hrm-new-shell .hrm-nav-group-trigger .hrm-shell-counter {
    top: 3px;
    right: 2px;
}

.hrm-new-shell .hrm-shell-account {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    min-width: 0;
    padding: 0 8px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    font-family: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.hrm-new-shell .hrm-shell-account > .anticon {
    margin-left: 2px;
    color: #94a3b8;
    font-size: 12px;
}

.hrm-new-shell .hrm-shell-account__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    text-align: left;
    max-width: 160px;
    color: #64748b;
    font-size: 11px;
    line-height: 16px;
}

.hrm-new-shell .hrm-shell-account__meta > * {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hrm-new-shell .hrm-shell-account__meta strong {
    color: var(--hrm-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.hrm-new-shell .hrm-shell-account__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    overflow: hidden;
    border: 1px solid #dbe7f5;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--hrm-primary);
    font-size: 12px;
    font-weight: 600;
}

.hrm-new-shell .hrm-shell-account__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hrm-new-shell .hrm-shell-content {
    min-width: 0;
    padding: 0;
}

.hrm-new-shell:not(.hrm-new-shell--home):not(.hrm-new-shell--focus) .hrm-shell-content {
    padding: 0 20px 20px;
    margin-top: 14px;
}

.hrm-new-shell .hrm-shell-page-heading {
    margin: 0 0 12px;
    padding: 10px;
    background: var(--hrm-surface);
    border-radius: 4px;
}

.hrm-new-shell .hrm-shell-page-heading h1 {
    font-size: 14px;
}

.hrm-new-shell:not(.hrm-new-shell--focus) .hrm-shell-content > .hrm-page {
    width: 100%;
    max-width: none;
    margin: 0;
}

.hrm-new-shell:not(.hrm-new-shell--home):not(.hrm-new-shell--focus) .hrm-shell-content > :is(.hrm-ant, .hrm-page, .app-page) {
    padding: 0 !important;
}

.hrm-new-shell--home .hrm-shell-navigation {
    display: none;
}

.hrm-new-shell--home .hrm-shell-content,
.hrm-new-shell--home .hrm-shell-content .hrm-module-launcher > .hrm-launcher {
    min-height: calc(100dvh - 56px);
}

.hrm-new-shell--home .hrm-shell-content .hrm-module-launcher > .hrm-launcher {
    display: flex;
    align-items: center;
    padding: 64px 6% 100px;
    border-radius: 0;
    background-color: #edf6ff;
    background-image: url('../img/hrm-launcher-circuit.svg?v=2');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hrm-new-shell--home .hrm-shell-content .hrm-launcher-content {
    width: 100%;
    max-width: 1180px;
    grid-template-columns: minmax(0, 610px) minmax(0, 1fr);
    gap: 100px;
}

.hrm-new-shell--home .hrm-shell-content .hrm-launcher-search {
    margin-bottom: 56px;
    max-width: 380px;
}

.hrm-new-shell--home .hrm-shell-content .hrm-launcher-search .ant-input-affix-wrapper {
    border: 0;
    border-radius: 24px;
    padding: 7px 16px;
}

.hrm-new-shell--home .hrm-shell-content .hrm-launcher-search .ant-input-prefix {
    font-size: 20px;
    color: #398ff4;
    margin-right: 8px;
}

.hrm-module-launcher .hrm-launcher-search-label,
.hrm-module-launcher .hrm-launcher-page-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.hrm-new-shell--home .hrm-shell-content .hrm-launcher-grid {
    gap: 28px;
}

.hrm-new-shell--home .hrm-shell-content .hrm-module-tile {
    min-height: 166px;
    padding: 20px 6px;
    gap: 16px;
    font-size: 13px;
    border-color: #c9e1ff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.hrm-module-launcher .hrm-module-tile:is(:hover, :focus-visible) {
    color: var(--hrm-module-accent, var(--hrm-primary));
    border-color: var(--hrm-module-accent, var(--hrm-primary));
    box-shadow: 0 5px 16px color-mix(in srgb, var(--hrm-module-accent, var(--hrm-primary)) 10%, transparent);
}

.hrm-module-launcher .hrm-module-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hrm-module-launcher .hrm-tone-blue {
    --hrm-module-accent: #2563b8;
}

.hrm-module-launcher .hrm-tone-teal {
    --hrm-module-accent: #0f766e;
}

.hrm-module-launcher .hrm-tone-orange {
    --hrm-module-accent: #b96516;
}

.hrm-module-launcher .hrm-tone-green {
    --hrm-module-accent: #27834a;
}

.hrm-module-launcher .hrm-tone-purple {
    --hrm-module-accent: #7452b5;
}

.hrm-module-launcher .hrm-tone-cyan {
    --hrm-module-accent: #147e9c;
}

.hrm-module-launcher .hrm-tone-rose {
    --hrm-module-accent: #b74770;
}

.hrm-module-launcher .hrm-tone-slate {
    --hrm-module-accent: #596779;
}

.hrm-new-shell--home .hrm-shell-content .hrm-module-icon {
    width: 72px;
    height: 72px;
}

.hrm-new-shell--home .hrm-shell-content .hrm-launcher-illustration img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.hrm-module-launcher .hrm-launcher-page-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bfd2e8;
    cursor: pointer;
}

.hrm-module-launcher .hrm-launcher-page-dot.is-active {
    background: #2584c5;
}

.hrm-launcher-menu .hrm-launcher-menu__content {
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 18px #00000026;
}

.hrm-launcher-menu .hrm-module-launcher--compact .hrm-launcher {
    background: #fff;
    border-radius: 4px;
    padding: 12px;
}

.hrm-launcher-menu .hrm-module-launcher--compact .hrm-launcher-search {
    max-width: none;
    margin-bottom: 8px;
}

.hrm-launcher-menu .hrm-module-launcher--compact .hrm-launcher-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
}

.hrm-launcher-menu .hrm-module-launcher--compact .hrm-module-tile {
    min-height: 76px;
    border: 0;
    border-radius: 4px;
    background: var(--hrm-surface);
    gap: 6px;
    padding: 6px 4px;
    color: var(--hrm-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 150ms ease;
}

.hrm-launcher-menu .hrm-module-launcher--compact .hrm-module-tile:is(:hover, :focus-visible) {
    color: var(--hrm-module-accent, var(--hrm-primary));
    box-shadow: none;
}

.hrm-launcher-menu .hrm-module-launcher--compact .hrm-module-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.hrm-launcher-menu .hrm-module-launcher--compact .hrm-module-icon .hrm-icon {
    width: 24px;
    height: 24px;
}

.hrm-account-menu .hrm-account-menu__content {
    min-width: 210px;
    padding: 8px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 18px #00000026;
}

.hrm-account-menu .hrm-account-menu__content button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--hrm-text);
    text-align: left;
    cursor: pointer;
}

.hrm-account-menu .hrm-account-menu__content button:hover {
    color: var(--hrm-primary);
    background: #f0f5ff;
}

.hrm-notification-menu .hrm-shell-action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hrm-notification-menu .shell-notification-menu {
    width: min(400px, calc(100vw - 24px));
}

.hrm-shell-notification-detail {
    max-height: 70dvh;
    overflow-y: auto;
}

.hrm-shell-notification-detail time {
    color: var(--hrm-muted);
    font-size: 12px;
}

.hrm-shell-notification-detail p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 12px 0 24px;
}

@media (max-width: 1600px) {
    .hrm-new-shell .hrm-shell-quick-action {
        width: 36px;
        padding: 0;
    }

    .hrm-new-shell .hrm-shell-action-label {
        display: none;
    }

    .hrm-new-shell:not(.hrm-new-shell--home) .hrm-brand > span {
        display: none;
    }
}

@media (max-width: 1366px) {
    .hrm-new-shell .hrm-shell-account__meta {
        display: none;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-launcher-content {
        gap: 48px;
        grid-template-columns: minmax(0, 610px) minmax(0, 320px);
    }
}

@media (max-width: 1024px) {
    .hrm-new-shell .hrm-shell-header {
        flex-wrap: wrap;
        gap: 0 8px;
        padding: 0 12px;
    }

    .hrm-new-shell .hrm-shell-navigation {
        order: 3;
        flex-basis: 100%;
        width: 100%;
    }

    .hrm-new-shell .hrm-shell-actions {
        margin-left: auto;
    }

    .hrm-new-shell .hrm-shell-page-heading {
        margin-bottom: 12px;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-launcher-content {
        grid-template-columns: minmax(0, 610px);
        justify-content: center;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-launcher-illustration {
        display: none;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-module-launcher > .hrm-launcher {
        padding: 48px 24px 100px;
    }
}

@media (max-width: 767px) {
    .hrm-new-shell .hrm-shell-header {
        padding: 0 8px;
    }

    .hrm-new-shell .hrm-shell-header > .hrm-brand {
        flex: 0 1 auto;
    }

    .hrm-new-shell .hrm-shell-actions {
        flex-basis: auto;
        gap: 0;
    }

    .hrm-new-shell .hrm-brand > span {
        display: none;
    }

    .hrm-new-shell .hrm-shell-account {
        padding: 0 4px;
    }

    .hrm-new-shell .hrm-shell-action-divider {
        margin: 0 4px;
    }

    .hrm-new-shell .hrm-shell-account > .anticon {
        display: none;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-module-launcher > .hrm-launcher {
        padding: 32px 16px 88px;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-launcher-search {
        margin-bottom: 28px;
        max-width: none;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-launcher-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .hrm-new-shell--home .hrm-shell-content .hrm-module-tile {
        min-height: 140px;
    }
}
