html:has(.app-design),
html:has(.auth-design) {
    font-size: 16px;
}

body:has(.app-design),
body:has(.auth-design) {
    margin: 0;
    background: #F7F7F7;
    color: #333;
    font: 400 14px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

.app-design,
.auth-design {
    --app-purple: #522A80;
    --app-deep: #291540;
    --app-royal: #814D99;
    --app-surface: #FCFCFC;
    --app-line: #D9D9D9;
    --app-orchid: #F9F1FB;
    --app-aqua: #E7FBFF;
    --app-turquoise: #06B7DB;
    --app-orange: #EC6607;
    --app-terracotta: #B84300;
    --app-linen: #FEEEE6;
    --app-pearl: #FDFAEA;
    --app-lemon: #FFECA6;
    --app-ink: #333333;
    --app-muted: #5F5F5F;
    --app-field-border: #8C8C8C;
    --app-divider: #E6E6E6;
}

.app-design [hidden],
.auth-design [hidden] {
    display: none !important;
}

.app-design .blazored-toast-container.position-bottomcenter {
    left: 50%;
    width: min(480px, calc(100vw - 32px));
    margin-left: 0;
    /* Override the legacy .main > div page padding. */
    padding: 0 !important;
    transform: translateX(-50%);
}

.app-design .blazored-toast {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.app-design .blazored-toast-icon {
    padding-right: 8px;
    font-size: 16px;
}

.app-design .blazored-toast-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-design .blazored-toast-header h5 {
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
}

.app-design .blazored-toast-body p {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.app-design .blazored-toast-header .blazored-toast-close {
    flex-shrink: 0;
    width: 24px;
    min-height: 24px;
    margin-left: 8px;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
}

.app-skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 8px;
    background: #FCFCFC;
    color: #522A80;
}

.app-skip-link:focus {
    top: 8px;
}

.page.app-design .header-navbar .header {
    flex: 1;
    min-width: 0;
    padding-right: 16px !important;
}

.page.app-design .user-detail-header {
    position: static !important;
    flex: none;
    margin-left: auto;
    white-space: nowrap;
}

.page.app-design .user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page.app-design .sidebar,
.page.app-design .sidebar.expand,
.page.app-design .sidebar.collapse {
    padding-right: 12px !important;
    padding-left: 12px !important;
    background: #24123C;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.14) transparent;
}

.page.app-design .sidebar:hover {
    scrollbar-color: rgba(255,255,255,.30) transparent;
}

.page.app-design .sidebar::-webkit-scrollbar { width: 6px; }
.page.app-design .sidebar::-webkit-scrollbar-track { background: transparent; }
.page.app-design .sidebar::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.page.app-design .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.14);
    border-radius: 6px;
}
.page.app-design .sidebar:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.30); }

/* Native Chromium scrollbars otherwise override the arrow-free WebKit styling. */
@supports selector(::-webkit-scrollbar) {
    .page.app-design .sidebar,
    .page.app-design .sidebar:is(.expand, .collapse, :hover) {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
}

.page.app-design .sidebar::after {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 36px;
    margin: -36px -12px 0;
    background: linear-gradient(transparent, #24123C);
    pointer-events: none;
    content: "";
}

.page.app-design .app-title::after {
    display: none;
}

.page.app-design .app-title .app-version {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #FFAA00;
    color: #291540;
    font: 600 11px/1.4 Inter, "Segoe UI", Arial, sans-serif;
    vertical-align: middle;
    white-space: nowrap;
}

.page.app-design .sidebar .app-sidebar {
    height: auto;
    min-height: 0;
    padding-bottom: 36px;
    background: #24123C !important;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content {
    position: relative;
    padding: 0 !important;
    border: 0;
}

.page.app-design .app-sidebar .dxbl-treeview-item:has(> .dxbl-treeview-item-content > [aria-level="1"]) {
    margin-bottom: 14px;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content:has(> [aria-level="1"]) {
    min-height: 48px;
    padding: 8px 12px 8px 8px !important;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content:has(> [aria-level="1"]):hover {
    background: rgba(255,255,255,.06);
}

.page.app-design .app-sidebar .app-sidebar-current-parent > .dxbl-treeview-item-content:has(> [aria-level="1"]) {
    background: #51308A;
    border-color: rgba(196,168,255,.45);
}

.page.app-design .app-sidebar .dxbl-treeview-item-content > .dxbl-treeview-item-container {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent !important;
    box-shadow: none !important;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content > [aria-level="1"] {
    min-height: 32px;
    padding: 0 24px 0 0;
    border-radius: 4px;
    isolation: isolate;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content > [aria-level="1"]:hover {
    background: transparent !important;
}

.page.app-design .app-sidebar [aria-level="1"] > .dxbl-image {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin-right: 10px !important;
    visibility: hidden;
}

.page.app-design .app-sidebar [aria-level="1"]:has(img[src$="home.svg"]) { --sidebar-icon: url("../images/navigation/home.svg"); }
.page.app-design .app-sidebar [aria-level="1"]:has(img[src$="profiles.svg"]) { --sidebar-icon: url("../images/navigation/profiles.svg"); }
.page.app-design .app-sidebar [aria-level="1"]:has(img[src$="maintenance.svg"]) { --sidebar-icon: url("../images/navigation/maintenance.svg"); }
.page.app-design .app-sidebar [aria-level="1"]:has(img[src$="list.svg"]) { --sidebar-icon: url("../images/navigation/list.svg"); }
.page.app-design .app-sidebar [aria-level="1"]:has(img[src$="settings.svg"]) { --sidebar-icon: url("../images/navigation/settings.svg"); }

.page.app-design .app-sidebar [aria-level="1"]::before,
.page.app-design .app-sidebar [aria-level="1"]::after {
    position: absolute;
    top: 50% !important;
    bottom: auto !important;
    left: 0 !important;
    width: 32px !important;
    height: 32px !important;
    opacity: 1 !important;
    transform: translateY(-50%) !important;
    pointer-events: none;
    content: "";
}

.page.app-design .app-sidebar [aria-level="1"]::before {
    z-index: -1 !important;
    border-radius: 9px !important;
    background: #7C4DCC !important;
}

.page.app-design .app-sidebar [aria-level="1"]::after {
    left: 7px !important;
    width: 18px !important;
    height: 18px !important;
    background: #fff;
    -webkit-mask: var(--sidebar-icon) center / contain no-repeat;
    mask: var(--sidebar-icon) center / contain no-repeat;
}

.page.app-design .app-sidebar .app-sidebar-current-parent > .dxbl-treeview-item-content > [aria-level="1"]::before {
    background: #B794FF !important;
}

.page.app-design .app-sidebar .app-sidebar-current-parent > .dxbl-treeview-item-content > [aria-level="1"]::after {
    background: #24123C;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content > .dxbl-btn {
    position: absolute;
    right: 12px;
    color: #D6C9F0 !important;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content > .dxbl-btn .dxbl-image {
    background: currentColor;
    clip-path: polygon(15% 30%, 50% 65%, 85% 30%, 90% 35%, 50% 75%, 10% 35%);
    transform: none;
    transition: transform .15s;
}

.page.app-design .app-sidebar .dxbl-treeview-item-content:has(> [aria-expanded="false"]) > .dxbl-btn .dxbl-image {
    transform: rotate(-90deg);
}

.page.app-design .app-sidebar .dxbl-treeview-item-content > .dxbl-btn use {
    display: none;
}

.page.app-design .app-sidebar [role="group"] {
    margin: 6px 0 0 24px !important;
    padding-left: 12px !important;
    border-left: 1px solid rgba(255,255,255,.12) !important;
}

.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-indent,
.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-content > .dxbl-btn {
    display: none;
}

.page.app-design .app-sidebar .dxbl-treeview-item-text {
    padding: 0 !important;
    color: #A99BCB !important;
    font: 400 13px/1.4 Inter, "Segoe UI", Arial, sans-serif !important;
}

.page.app-design .app-sidebar [aria-level="1"] .dxbl-treeview-item-text,
.page.app-design .app-sidebar [aria-level="1"] > .dxbl-text {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-container {
    overflow: visible;
}

.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-container:hover {
    background: rgba(255,255,255,.05) !important;
}

.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-container:is(:hover, .dxbl-active) .dxbl-treeview-item-text {
    color: #fff !important;
}

.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-container.dxbl-active {
    background: rgba(167,139,250,.18) !important;
}

.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-container.dxbl-active .dxbl-treeview-item-text {
    font-weight: 500 !important;
}

.page.app-design .app-sidebar [role="group"] .dxbl-treeview-item-container.dxbl-active::before {
    position: absolute;
    top: 0 !important;
    bottom: 0 !important;
    left: -14px !important;
    width: 2px !important;
    height: auto !important;
    z-index: 1 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    background: #C4A8FF !important;
    content: "";
}

.page.app-design .sidebar :is(a, button, [role="treeitem"]):focus-visible {
    outline: 2px solid #C4A8FF !important;
    outline-offset: 2px;
}

.page.app-design .navbar-toggler .navbar-toggler-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
}

.app-page-heading {
    margin-bottom: 20px;
}

.app-breadcrumb {
    margin: 0 0 6px;
    color: #666;
    font-size: 13px;
}

.app-page-heading h2 {
    margin: 0;
    color: #291540;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.app-design .custombody-header-menu,
.app-design .body-sub-menu-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 36px;
    margin: 0 0 20px !important;
    padding: 0;
    border: 0;
}

.app-design .custombody-header-menu:empty {
    display: none;
}

.app-design .custombody-header-menu > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.app-design .body-sub-menu-actions > .btn {
    margin: 0;
}

.app-design .profileGridSideOptions:empty {
    display: none;
}

.app-design .profile-list-control-checkbox {
    padding: 0 !important;
}

:where(body:has(.app-design), body:has(.auth-design)) .dxbl-btn {
    --dxbl-btn-font-family: Inter, "Segoe UI", Arial, sans-serif;
    --dxbl-btn-font-size: 13px;
    --dxbl-btn-border-radius: 8px;
    --dxbl-btn-padding-x: 16px;
    --dxbl-btn-padding-y: 7px;
}

.app-design .btn-primary,
:where(body:has(.app-design)) .dxbl-btn-primary,
:where(body:has(.app-design)) .dxbl-btn-standalone.dxbl-btn-primary {
    --dxbl-btn-bg: #522A80;
    --dxbl-btn-border-color: #522A80;
    --dxbl-btn-color: #fff;
    --dxbl-btn-hover-bg: #43206A;
    --dxbl-btn-hover-border-color: #43206A;
    --dxbl-btn-hover-color: #fff;
    --dxbl-btn-active-bg: #43206A;
    --dxbl-btn-active-border-color: #43206A;
    --dxbl-btn-active-color: #fff;
    --dxbl-btn-disabled-bg: #522A80;
    --dxbl-btn-disabled-border-color: #522A80;
    --dxbl-btn-disabled-color: #fff;
    --dxbl-btn-disabled-opacity: .45;
}

:where(body:has(.app-design)) .dxbl-btn-standalone.dxbl-btn-outline-primary,
:where(body:has(.app-design)) .dxbl-btn-standalone.dxbl-btn-outline-secondary {
    --dxbl-btn-bg: transparent;
    --dxbl-btn-color: #522A80;
    --dxbl-btn-border-color: #814D99;
    --dxbl-btn-hover-bg: #F9F1FB;
    --dxbl-btn-hover-color: #522A80;
    --dxbl-btn-hover-border-color: #814D99;
    --dxbl-btn-active-bg: #EEE2F5;
    --dxbl-btn-active-color: #522A80;
    --dxbl-btn-active-border-color: #814D99;
}

.app-design .list-export-toolbar .dxbl-toolbar-btn.dxbl-btn-primary {
    --dxbl-btn-font-family: Inter, "Segoe UI", Arial, sans-serif;
    --dxbl-btn-font-size: 13px;
    --dxbl-btn-line-height: 20px;
    --dxbl-btn-border-radius: 8px;
    --dxbl-btn-padding-x: 16px;
    --dxbl-btn-padding-y: 7px;
    --dxbl-btn-focus-outline-color: #522A80;
    --dxbl-btn-focus-outline-size: 2px;
    --dxbl-btn-focus-outline-offset: 3px;
    font-weight: 500;
}

.app-design .btn-primary {
    background-color: #522A80 !important;
    border-color: #522A80 !important;
    box-shadow: none !important;
}

.app-design .btn-primary:hover:not(:disabled) {
    background-color: #43206A !important;
    border-color: #43206A !important;
}

.app-design .btn,
.auth-design .btn {
    border-radius: 8px;
    font-family: inherit;
}

.app-design .btn:disabled,
.app-design .dxbl-btn.dxbl-disabled {
    cursor: not-allowed;
    opacity: .45;
}

:is(button, input:is([type="button"], [type="submit"], [type="reset"]), [role="button"], a.btn, .dxbl-btn, .dxbl-text-edit .dxbl-btn.dxbl-btn-icon):not(:disabled, .disabled, .dxbl-disabled, [aria-disabled="true"], [aria-disabled="true"] *, .dxbl-pager-active-page-btn) {
    cursor: pointer;
}

.dxbl-grid :is(.dxbl-grid-selection-cell, .dxbl-grid-command-cell) .dxbl-checkbox:not(:disabled, .dxbl-disabled, .dxbl-readonly, [aria-disabled="true"], :has(input:disabled)) {
    cursor: pointer;
}

.dxbl-grid :is(.dxbl-grid-selection-cell, .dxbl-grid-command-cell) .dxbl-checkbox :is(label, input) {
    cursor: inherit;
}

/* Opt in only on grids whose data rows already respond to clicks. */
.app-clickable-grid-rows .dxbl-grid-table > tbody > tr[data-visible-index] > td:not(.dxbl-grid-command-cell, .dxbl-grid-selection-cell, .dxbl-grid-row-drag-anchor-cell) {
    cursor: pointer;
}

.app-design label:not(.position-form label, .pf-dlg-in label),
.app-design .myLabel:not(.position-form .myLabel, .pf-dlg-in .myLabel),
.app-design .dxbl-fl-cpt,
:where(body:has(.app-design)) .dxbl-modal .dxbl-fl-cpt {
    color: #514A59 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

:where(body:has(.app-design), body:has(.auth-design)) .dxbl-text-edit {
    --dxbl-text-edit-font-size: 14px;
    --dxbl-text-edit-line-height: 1.45;
    --dxbl-text-edit-padding-x: 10px;
    --dxbl-text-edit-padding-y: 7px;
    --dxbl-text-edit-border-radius: 6px;
    --dxbl-text-edit-border-color: var(--app-field-border);
    --dxbl-text-edit-bg: #fff;
    --dxbl-text-edit-color: #333;
    --dxbl-text-edit-readonly-bg: #F7F7F7;
    --dxbl-text-edit-disabled-bg: #EFEFEF;
    --dxbl-text-edit-focus-border-color: #06B7DB;
}

.app-design .form-control,
.app-design .form-select {
    min-height: 36px;
    border: 1px solid var(--app-field-border);
    border-radius: 6px;
    color: #333;
    font: inherit;
}

:where(body:has(.app-design)) .dxbl-fl {
    --dxbl-fl-font-family: Inter, "Segoe UI", Arial, sans-serif;
    --dxbl-fl-font-size: 14px;
    --dxbl-fl-caption-font-weight: 600;
    --dxbl-fl-caption-color: #514A59;
    --dxbl-fl-item-spacing-x: 24px;
    --dxbl-fl-item-spacing-y: 16px;
    --dxbl-fl-group-header-bg: #F9F1FB;
    --dxbl-fl-group-header-color: #291540;
    --dxbl-fl-group-header-font-weight: 600;
    --dxbl-fl-group-header-padding-y: 12px;
    --dxbl-fl-group-content-padding-x: 16px;
    --dxbl-fl-group-content-padding-y: 16px;
}

.app-design .app-form-card,
.app-design .catalog-page > .dxbl-fl,
.app-design .catalog-page > div > .dxbl-fl {
    width: 100%;
    min-width: 0;
    padding: 20px;
    border: 1px solid #E6E2E8;
    border-radius: 8px;
    background: #FCFCFC;
}

/* DevExpress popup content is portaled outside the app-design element. */
.app-design .dxbl-grid,
:where(body:has(.app-design)) .dxbl-modal .dxbl-grid {
    --dxbl-grid-font-family: Inter, "Segoe UI", Arial, sans-serif;
    --dxbl-grid-font-size: 14px !important;
    --dxbl-grid-bg: #FCFCFC;
    --dxbl-grid-color: #333;
    --dxbl-grid-border-color: #D9D9D9;
    --dxbl-grid-border-radius: 12px;
    --dxbl-grid-text-cell-padding-x: 12px;
    --dxbl-grid-text-cell-padding-y: 10px;
    --dxbl-grid-editor-cell-padding-x: 8px;
    --dxbl-grid-editor-cell-padding-y: 8px;
    --dxbl-grid-header-bg: #F9F1FB;
    --dxbl-grid-header-color: #522A80;
    --dxbl-grid-selection-bg: rgba(82,42,128,.12);
    --dxbl-grid-selection-color: #522A80;
    --dxbl-grid-selection-focus-bg: #EEE2F5;
    --dxbl-grid-selection-focus-color: #291540;
    --dxbl-grid-focus-bg: #EEE2F5;
    --dxbl-grid-focus-color: #291540;
    --dxbl-grid-focus-frame-color: #06B7DB;
    --dxbl-grid-hover-bg: #F9F1FB;
    --dxbl-grid-hover-color: #333;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 20px;
    border-color: #D9D9D9;
    border-radius: 12px;
}

.app-design thead,
body:has(.app-design) .dxbl-grid .dxbl-grid-table > thead > tr > th {
    background: #F9F1FB !important;
    color: #522A80 !important;
    font-size: 12.5px;
    font-weight: 600;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-table > :is(thead, tbody) > tr > :is(th, td) {
    border-color: #D9D9D9 !important;
    border-left-width: 0;
    border-right-width: 0;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-table > :is(thead, tbody) > tr > :is(th, td) + :is(th, td):not(.dxbl-grid-empty-cell) {
    border-left: 1px solid #D9D9D9;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-table > tbody > tr[data-visible-index] > td {
    border-bottom: 1px solid #D9D9D9;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-table > tbody > tr:nth-last-child(1 of [data-visible-index]) > td {
    border-bottom: 1px solid #333333 !important;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-header-content,
body:has(.app-design) .dxbl-grid th .dxbl-btn-caption {
    color: #522A80 !important;
}

:where(body:has(.app-design)) .dxbl-grid .dxbl-grid-table > thead > tr > th {
    height: 40px;
    padding: 0 12px !important;
    border-bottom: 1px solid #D9D9D9;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-table > thead > .dxbl-grid-filter-row > td {
    background: #FCFCFC !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #D9D9D9;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-filter-row .dxbl-text-edit {
    --dxbl-text-edit-border-color: #D9D9D9;
    --dxbl-text-edit-border-radius: 6px;
    --dxbl-text-edit-font-size: 13px;
    min-height: 32px;
    margin: 0 !important;
    border: 1px solid #D9D9D9 !important;
    border-radius: 6px;
    background: #FCFCFC;
    box-shadow: none;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-filter-row .dxbl-text-edit:hover {
    border-color: #814D99 !important;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-filter-row .dxbl-text-edit:focus-within {
    outline: 2px solid #522A80;
    outline-offset: 0;
    box-shadow: 0 0 0 4px rgba(6, 183, 219, .45);
}

body:has(.app-design) .dxbl-grid .dxbl-grid-filter-row input {
    color: #333;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-filter-row input::placeholder {
    color: #666;
    opacity: 1;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-selected-row > td {
    background: rgba(82,42,128,.12) !important;
    color: #522A80 !important;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-command-cell .dxbl-btn {
    --dxbl-btn-padding-x: 4px;
    --dxbl-btn-padding-y: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #522A80 !important;
    font-size: 13px !important;
    text-decoration: none;
}

body:has(.app-design) .dxbl-grid .dxbl-grid-group-panel-container,
body:has(.app-design) .dxbl-grid .dxbl-grid-toolbar-container {
    background: #FCFCFC;
    border-color: #D9D9D9;
}

.app-design .dxbl-group-panel {
    max-width: 100%;
}

body:has(.app-design) .dxbl-grid .dxbl-pager {
    --dxbl-pager-font-family: Inter, "Segoe UI", Arial, sans-serif;
    --dxbl-pager-font-size: 13px;
    --dxbl-pager-bg: transparent;
    --dxbl-pager-color: #333;
    --dxbl-pager-border-width: 0;
    --dxbl-pager-btn-border-width: 1px;
    --dxbl-pager-btn-border-color: #D9D9D9;
    --dxbl-pager-btn-bg: #FCFCFC;
    --dxbl-pager-btn-color: #333;
    --dxbl-pager-btn-hover-bg: #F9F1FB;
    --dxbl-pager-btn-hover-color: #522A80;
    --dxbl-pager-active-page-btn-bg: #522A80;
    --dxbl-pager-active-page-btn-color: #fff;
    --dxbl-pager-page-btn-bg: #FCFCFC;
    --dxbl-pager-page-btn-color: #333;
    --dxbl-pager-page-btn-hover-bg: #F9F1FB;
    --dxbl-pager-page-btn-hover-color: #522A80;
    --dxbl-btn-border-radius: 8px;
    padding: 12px 18px;
}

body:has(.app-design) .dxbl-grid .dxbl-pager .dxbl-btn {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
}

body:has(.app-design) .dxbl-grid .dxbl-pager .dxbl-btn:hover:not(:disabled, .dxbl-disabled) {
    border-color: #814D99;
}

body:has(.app-design) .dxbl-grid .dxbl-pager-page-edit {
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px;
    background: #FCFCFC;
}

body:has(.app-design) .dxbl-grid .dxbl-pager-page-edit input {
    text-align: center;
    font: 400 13px Inter, "Segoe UI", Arial, sans-serif;
}

:where(body:has(.app-design)) .dxbl-tabs {
    --dxbl-tabs-font-family: Inter, "Segoe UI", Arial, sans-serif;
    --dxbl-tabs-font-size: 13px;
    --dxbl-tabs-bg: transparent;
    --dxbl-tabs-color: var(--app-royal);
    --dxbl-tabs-tab-padding-x: 12px;
    --dxbl-tabs-tab-padding-y: 10px;
    --dxbl-tabs-tab-selected-color: var(--app-purple);
    --dxbl-tabs-tab-selected-bg: var(--app-orchid);
    --dxbl-tabs-tab-hover-bg: var(--app-orchid);
    --dxbl-tabs-content-font-size: 14px;
    margin-bottom: 20px;
}

.app-design .dxbl-tabs .dxbl-tabs-item.dxbl-active {
    border-bottom: 3px solid #522A80;
    font-weight: 700;
}

.app-design .profileDetails > .media {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #E6E2E8;
    border-radius: 8px;
    background: #FCFCFC;
}

.app-design .profileDetails .profilepic {
    width: 72px;
    height: 72px;
    max-width: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.app-design .profileDetails h4 {
    color: #291540;
    font-size: 20px;
    font-weight: 700;
}

.app-design .profileDetails h5 {
    color: #666;
    font-size: 14px;
}

.app-design .profileDetails {
    margin: 0;
}

.profile-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #E6E2E8;
    border-radius: 8px;
    background: #FCFCFC;
}

.profile-identity {
    display: flex;
    flex: 1 1 240px;
    align-items: center;
    gap: 16px;
}

.profile-identity p {
    margin: 4px 0 0;
    color: #666;
}

.profile-facts {
    display: grid;
    flex: 2 1 480px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.profile-facts dt {
    margin-bottom: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.profile-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.profile-leaving-date {
    color: #B84300;
    font-style: italic;
}

.app-design .profileDetails > .card {
    padding: 4px;
    border: 1px solid #E6E2E8;
    border-radius: 8px;
    background: #FCFCFC;
}

.app-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #E6E2E8;
    border-radius: 8px;
    background: #FCFCFC;
}

.app-filter-field {
    flex: 0 1 240px;
    min-width: 180px;
}

.app-filter-field > label {
    display: block;
    margin-bottom: 4px;
}

.app-utility-results {
    width: 100%;
    max-height: 500px;
    overflow: auto;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    background: #FCFCFC;
}

.app-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.app-section-heading h3 {
    margin: 0;
    color: #291540;
    font-size: 18px;
    font-weight: 600;
}

.app-dialog-field {
    width: 100%;
    min-width: 0;
}

.app-dialog-field > label {
    display: block;
    margin-bottom: 6px;
}

.app-design .app-report-viewer {
    width: 100%;
    height: min(800px, calc(100vh - 180px));
    min-height: 360px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    background: #FCFCFC;
}

.app-design .catalog-page .card:not(.position-form .card) {
    border-color: #E6E2E8;
    border-radius: 8px;
    background: #FCFCFC;
}

.app-design .catalog-page .card-header:not(.position-form .card-header) {
    padding: 12px 16px;
    background: #F9F1FB;
    color: #291540;
    font-size: 15px;
    font-weight: 600;
}

.app-design .validation-message,
:where(body:has(.app-design)) .validation-summary-errors {
    color: #B84300;
    font-size: 13px;
}

:where(body:has(.app-design)) .modal-content {
    width: 100% !important;
    max-width: calc(100vw - 32px);
    margin: 0 !important;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    background: #FCFCFC;
}

:where(body:has(.app-design)) .dxbl-modal-content {
    max-width: calc(100vw - 32px);
    border-radius: 12px;
    font: 400 14px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

.app-design .app-workflow-grid .dxbl-grid {
    height: auto;
    min-height: 0;
    max-height: none;
}

.app-design .app-workflow-grid .dxbl-grid-table {
    min-width: 900px;
}

.app-design .app-workflow-grid .dxbl-grid-table td {
    white-space: nowrap;
}

.app-design .app-status {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #EEE;
    color: #444;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.app-design .app-status.attention {
    background: #FFECA6;
    color: #5C3A00;
}

.app-design .app-status.draft {
    background: #FFECA6;
    color: #7A4A00;
}

.app-design .app-status.pending {
    background: #E7FBFF;
    color: #00566B;
}

.app-design .app-status.filled {
    background: #F9F1FB;
    color: #522A80;
}

.app-design .app-status.processing {
    background: #FEEEE6;
    color: #8F3300;
}

.app-design .app-status.approved {
    background: #CDF7FD;
    color: #00566B;
}

.app-design .app-status.express {
    background: transparent;
    color: #522A80;
    box-shadow: inset 0 0 0 1px #814D99;
}

.app-design .app-urgency {
    padding: 2px 8px;
    border-radius: 999px;
    background: #EEE;
    color: #444;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.app-design .app-urgency.high {
    background: #FEEEE6;
    color: #8F3300;
}

.app-design .app-status:empty,
.app-design .app-urgency:empty {
    display: none;
}

.app-icon-add,
.app-icon-copy,
.positions-filter-toggle::before {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 14px;
    background: currentColor;
    mask: var(--app-icon) center / contain no-repeat;
}

.app-icon-add {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.app-icon-copy {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V4H4v12h4'/%3E%3C/svg%3E");
}

.app-button-icon,
.dxbl-grid-edit-form-buttons > .dxbl-btn:not(:has(svg, img, .dxbl-image, .app-button-icon))::before,
.dxbl-grid-confirm-dialog-buttons > .dxbl-btn:not(:has(svg, img, .dxbl-image, .app-button-icon))::before {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-inline-end: 6px;
    background-color: currentColor;
    mask: var(--app-icon) center / contain no-repeat;
}

.dxbl-btn > .dxbl-image.app-button-icon,
.profile-toolbar-button > .app-button-icon,
.positions-panel-toggle > .app-button-icon,
.analysis-button > .app-button-icon,
.utility-button > .app-button-icon {
    margin-inline-end: 0;
}

.dxbl-grid-edit-form-buttons > .dxbl-btn:not(:has(svg, img, .dxbl-image, .app-button-icon))::before,
.dxbl-grid-confirm-dialog-buttons > .dxbl-btn:not(:has(svg, img, .dxbl-image, .app-button-icon))::before {
    content: "";
}

.app-icon-save,
.dxbl-grid-edit-form-buttons > .dxbl-btn[type="submit"] {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 3h13l4 4v14H3V3zM7 3v6h10V3M7 21v-8h10v8'/%3E%3C/svg%3E");
}

.app-icon-close,
.dxbl-grid-edit-form-buttons > .dxbl-btn[type="button"],
.dxbl-grid-confirm-dialog-buttons > .dxbl-btn-secondary {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.app-icon-check {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E");
}

.app-icon-edit {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m16 3 5 5L8 21H3v-5zM13 6l5 5'/%3E%3C/svg%3E");
}

.app-icon-discard {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 5 5-6 6M10 15l-2 6H3v-5l4-4M3 3l18 18'/%3E%3C/svg%3E");
}

.app-icon-delete,
.dxbl-grid-confirm-dialog-buttons > .dxbl-btn-danger {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v5M14 11v5'/%3E%3C/svg%3E");
}

.app-icon-disable {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
}

.app-icon-clear {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m14 3 7 7-11 11H6l-4-4zM7 12l7 7M10 21h12'/%3E%3C/svg%3E");
}

.app-icon-filter {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3 4h18l-7 8v7l-4 2v-9z'/%3E%3C/svg%3E");
}

.app-icon-download {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5'/%3E%3C/svg%3E");
}

.app-icon-columns {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M9 4v16M15 4v16'/%3E%3C/svg%3E");
}

.app-icon-undo {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4 3 9l5 5M3 9h11a6 6 0 0 1 0 12'/%3E%3C/svg%3E");
}

.app-icon-back {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12H4m6-6-6 6 6 6'/%3E%3C/svg%3E");
}

.app-icon-refresh {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M20 9a8 8 0 1 0 0 6M20 3v6h-6'/%3E%3C/svg%3E");
}

.app-icon-user {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-3a8 8 0 0 1 16 0v3'/%3E%3C/svg%3E");
}

.app-icon-users {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M2 21v-3a7 7 0 0 1 14 0v3M16 4a3 3 0 0 1 0 6m2 5a5 5 0 0 1 4 5'/%3E%3C/svg%3E");
}

.app-icon-shield {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 3v6c0 5-5 8-8 9-3-1-8-4-8-9V6zM8 12l3 3 5-6'/%3E%3C/svg%3E");
}

.app-icon-clock {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6v6l4 3'/%3E%3C/svg%3E");
}

.app-icon-star {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 2 3 6 7 1-5 5 1 8-6-4-6 4 1-8-5-5 7-1z'/%3E%3C/svg%3E");
}

.app-icon-warning {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 3 10 18H2zM12 8v6m0 3v1'/%3E%3C/svg%3E");
}

.app-icon-info {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6m0-10v.1'/%3E%3C/svg%3E");
}

.app-icon-repair {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M14 3a6 6 0 0 0-5 8L2 18l4 4 7-7a6 6 0 0 0 8-7l-4 4-5-5 4-4z'/%3E%3C/svg%3E");
}

.app-icon-logout {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3H3v18h6m-2-9h14m-5-5 5 5-5 5'/%3E%3C/svg%3E");
}

.positions-page {
    max-width: 1700px;
    padding-bottom: 56px;
}

.app-design .positions-page .dxbl-grid-table :is(td, th).positions-edit-cell {
    width: 56px;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}

.app-design .positions-page .dxbl-grid-table > :is(thead, tbody) > tr > :is(th, td) + :is(th, td) {
    border-left: 1px solid #D9D9D9;
}

.app-design .positions-page .dxbl-grid-table > :is(thead, tbody) > tr > :is(th, td):is(.positions-edit-cell, .dxbl-grid-command-cell) {
    border-left: 0 !important;
}

.app-design .positions-page .dxbl-grid-table > tbody > tr:has(> .dxbl-grid-command-cell):not(.dxbl-grid-filter-row) > td {
    border-bottom: 1px solid #D9D9D9;
}

.app-design .positions-page .dxbl-grid-table > tbody > tr:nth-last-child(1 of tr:has(> .dxbl-grid-command-cell):not(.dxbl-grid-filter-row)) > td {
    border-bottom: 1px solid var(--dxbl-grid-color, #333333) !important;
}

.maintenance-grid-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.positions-page .positions-edit-icon,
.maintenance-grid-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #522A80;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
}

.positions-page .positions-edit-icon svg,
.maintenance-grid-action svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.positions-page .positions-edit-icon:hover:not(:disabled),
.maintenance-grid-action:hover:not(:disabled) {
    background: rgba(82,42,128,.12);
    text-decoration: none;
}

.positions-page .positions-edit-icon:focus-visible,
.maintenance-grid-action:focus-visible {
    outline: 2px solid #522A80;
    outline-offset: 1px;
}

.maintenance-grid-action-delete {
    color: #B84300;
}

.maintenance-grid-action-delete:hover:not(:disabled) {
    background: #FEEEE6;
}

.maintenance-grid-action:disabled {
    opacity: .5;
    cursor: default;
}

.positions-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    background: #FCFCFC;
}

.positions-stages > button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 0;
    border-right: 1px solid #D9D9D9;
    background: transparent;
    color: #333;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.positions-stages > button:last-child {
    border-right: 0;
}

.positions-stages > button:hover,
.positions-filter-toggle:hover,
.positions-panel-toggle:hover,
.positions-collapse:hover {
    background: #F9F1FB;
}

.positions-stage-number {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F9F1FB;
    color: #522A80;
    font-size: 13px;
    font-weight: 700;
}

.positions-stages small,
.positions-stages strong {
    display: block;
}

.positions-stages small {
    color: #666;
    font-size: 12px;
}

.positions-stages strong {
    font-size: 14px;
    font-weight: 600;
}

.positions-stages b {
    margin-left: auto;
    color: #522A80;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.positions-panel {
    margin-bottom: 20px;
    overflow: hidden;
    scroll-margin-top: 20px;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    background: #FCFCFC;
}

.positions-panel-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding-right: 12px;
}

.positions-panel-toggle {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
    align-self: stretch;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: #333;
    font: 600 15px Inter, "Segoe UI", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.positions-count {
    padding: 1px 9px;
    border-radius: 12px;
    background: #522A80;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.positions-panel-description {
    overflow: hidden;
    color: #666;
    font-size: 13px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.positions-filter-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    background: #FCFCFC;
    color: #333;
    font: 500 13px Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.positions-filter-toggle::before {
    --app-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8z'/%3E%3C/svg%3E");
    content: "";
}

.positions-filter-toggle[aria-pressed="true"] {
    border-color: #814D99;
    background: #F9F1FB;
}

.positions-collapse {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.positions-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
}

.positions-chevron.expanded {
    transform: rotate(225deg);
}

.positions-panel-body {
    border-top: 1px solid #D9D9D9;
}

.app-design .positions-panel .dxbl-grid {
    margin: 0;
    border: 0;
    border-radius: 0;
}

.app-design .positions-page .scrollable-grid {
    max-height: none;
    overflow-y: visible;
}

.positions-panel-heading.selecting {
    background: #522A80;
}

.positions-selection {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 6px 10px 18px;
    color: #fff;
    font-weight: 600;
}

.positions-selection .dxbl-btn {
    --dxbl-btn-bg: #fff;
    --dxbl-btn-color: #522A80;
    --dxbl-btn-border-color: #fff;
}

.positions-selection .positions-clear {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font: 500 13px Inter, "Segoe UI", Arial, sans-serif;
    text-decoration: underline;
    cursor: pointer;
}

.positions-panel-heading.selecting .positions-filter-toggle {
    border-color: rgba(255, 255, 255, .6);
    background: transparent;
    color: #fff;
}

.positions-panel-heading.selecting .positions-chevron {
    border-color: #fff;
}

:where(body:has(.app-design)) .positions-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 0;
}

:where(body:has(.app-design)) .positions-popup-height .dxbl-modal-content {
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
}

:where(body:has(.app-design)) .positions-delete-popup .dxbl-modal-content {
    width: min(480px, calc(100vw - 32px));
}

.positions-delete-popup .positions-delete-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.positions-delete-popup .positions-delete-intro {
    color: #5F5F5F;
    font-size: 13px;
}

.positions-delete-popup .positions-delete-list {
    max-height: 180px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
    border: 1px solid #D9D9D9;
    border-radius: 6px;
    background: #FCFCFC;
}

.positions-delete-popup .positions-delete-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 12px;
    border-bottom: 1px solid #D9D9D9;
}

.positions-delete-popup .positions-delete-list li:last-child {
    border-bottom: 0;
}

.positions-delete-popup .app-status {
    display: inline-block;
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: #EEE;
    color: #444;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.positions-delete-popup .app-status.draft {
    background: #FFECA6;
    color: #7A4A00;
}

.positions-delete-popup .app-status.pending {
    background: #E7FBFF;
    color: #00566B;
}

.positions-delete-popup .positions-delete-request {
    flex: none;
    color: #522A80;
    font-weight: 600;
}

.positions-delete-popup .positions-delete-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.positions-delete-popup .positions-delete-warning {
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    background: #FFECA6;
    color: #5C3A00;
    font-size: 13px;
}

.positions-delete-popup .delete-reason-combo {
    --dxbl-text-edit-border-color: var(--app-field-border, #8C8C8C);
}

.positions-delete-popup .positions-delete-hint {
    margin-top: -8px;
    color: #666;
    font-size: 12px;
}

.positions-delete-popup .positions-delete-confirm.dxbl-btn-danger {
    --dxbl-btn-color: #fff;
    --dxbl-btn-bg: #B84300;
    --dxbl-btn-border-color: #B84300;
    --dxbl-btn-hover-bg: #9A3700;
    --dxbl-btn-hover-color: #fff;
    --dxbl-btn-hover-border-color: #9A3700;
    --dxbl-btn-active-bg: #9A3700;
    --dxbl-btn-active-color: #fff;
    --dxbl-btn-active-border-color: #9A3700;
    --dxbl-btn-disabled-bg: #B84300;
    --dxbl-btn-disabled-color: #fff;
    --dxbl-btn-disabled-border-color: #B84300;
    --dxbl-btn-disabled-opacity: .45;
    --dxbl-btn-focus-bg: #B84300;
    --dxbl-btn-focus-color: #fff;
    --dxbl-btn-focus-border-bg: #B84300;
    --dxbl-btn-focus-outline-color: #B84300;
}

@media (max-width: 560px) {
    .positions-delete-popup .positions-delete-actions .dxbl-btn {
        flex: 1;
    }
}

.auth-design .auth-header {
    position: static;
    display: flex;
    gap: 20px;
    height: 72px;
    padding: 16px 28px;
    background: #291540;
}

.auth-design .auth-header img {
    width: 154px;
    height: 32px;
    object-fit: contain;
}

.auth-design .content.px-4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 32px !important;
    color: #333;
    background: #F7F7F7;
    font: 400 14px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

.app-design .app-redirect {
    display: grid;
    justify-items: center;
    gap: 16px;
    width: min(100%, 520px);
    min-height: 220px;
    margin: clamp(40px, 10vh, 112px) auto;
    padding: 32px;
    border: 1px solid #E5E0EA;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(41, 21, 64, .08);
    text-align: center;
}

.app-design .app-redirect h2 {
    margin: 0;
    color: #291540;
    font-size: 22px;
}

.app-design .app-redirect p {
    margin: 0;
    color: #666;
}

.app-design .app-redirect-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E9DDF2;
    border-top-color: #522A80;
    border-radius: 50%;
    animation: app-redirect-spin .8s linear infinite;
}

.app-design .app-redirect-retry {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #522A80;
    color: #fff;
    font: 600 14px/1.4 Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.app-design .app-redirect-retry:hover {
    background: #3F1E67;
}

@keyframes app-redirect-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    .page.app-design .sidebar.expand {
        padding-top: 72px;
    }

    .page.app-design .header-navbar .navbar-toggler {
        z-index: 1300;
        flex: 0 0 40px;
        align-self: center;
    }

    .page.app-design:has(.sidebar.expand) .navbar-toggler {
        position: relative;
        background: #FCFCFC !important;
    }

    .page.app-design:has(.sidebar.expand) .navbar.header-navbar {
        z-index: 1300;
    }

    .page.app-design .header-navbar .header {
        overflow: hidden;
        font-size: 19px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-design .app-form-card {
        padding: 16px;
    }
}

@media (max-width: 760px) {
    .positions-stages {
        grid-template-columns: 1fr;
    }

    .positions-stages > button {
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid #D9D9D9;
    }

    .positions-stages > button:last-child {
        border-bottom: 0;
    }

    .positions-stages b {
        font-size: 20px;
    }

    .positions-panel-toggle {
        padding: 12px 14px;
        font-size: 14px;
    }

    .positions-panel-description {
        display: none;
    }
}

@media (max-width: 560px) {
    .profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .positions-page .custombody-header-menu > div > .dxbl-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .positions-filter-label {
        display: none;
    }

    .page.app-design .header-navbar .header {
        font-size: 19px;
    }

    .page.app-design .user-detail-header {
        font-size: 0;
    }

    .page.app-design .user-detail-header .nav-link {
        font-size: 13px !important;
    }

    .app-page-heading h2 {
        font-size: 22px;
    }
}

body:has(.app-design) .dxbl-dropdown > .dxbl-dropdown-dialog.dxbl-edit-dropdown[role="listbox"] {
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    overflow: hidden;
    background: #FCFCFC;
    color: #333;
    box-shadow: 0 6px 18px rgba(41,21,64,.16);
    font: 400 13px/1.45 Inter, sans-serif;
}

body:has(.app-design) .dxbl-edit-dropdown[role="listbox"] .dxbl-dropdown-body {
    padding: 0;
}

body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) {
    --dxbl-list-box-font-family: Inter, "Segoe UI", Arial, sans-serif;
    --dxbl-list-box-font-size: 13px;
    --dxbl-list-box-line-height: 1.45;
    --dxbl-list-box-bg: #FCFCFC;
    --dxbl-list-box-color: #333;
    --dxbl-list-box-border-color: #D9D9D9;
    --dxbl-list-box-border-radius: 10px;
    --dxbl-list-box-item-padding-x: 12px;
    --dxbl-list-box-item-padding-y: 10px;
    --dxbl-list-box-column-header-bg: #F9F1FB;
    --dxbl-list-box-column-header-color: #522A80;
    --dxbl-list-box-item-hover-bg: #F9F1FB;
    --dxbl-list-box-item-hover-color: #333;
    --dxbl-list-box-item-selected-bg: rgba(82,42,128,.12);
    --dxbl-list-box-item-selected-color: #522A80;
    --dxbl-list-box-item-selected-hover-bg: rgba(82,42,128,.12);
    --dxbl-list-box-item-selected-hover-color: #522A80;
    --dxbl-list-box-item-multi-selected-bg: rgba(82,42,128,.12);
    --dxbl-list-box-item-multi-selected-color: #522A80;
    --dxbl-list-box-item-multi-selected-hover-bg: rgba(82,42,128,.12);
    --dxbl-list-box-item-multi-selected-hover-color: #522A80;
    --dxbl-list-box-focus-bg: #F9F1FB;
    --dxbl-list-box-focus-color: #522A80;
    --dxbl-list-box-focus-frame-color: #06B7DB;
}

body:has(.app-design) .dxbl-edit-dropdown .dxbl-list-box-render-container {
    border: 0;
    border-radius: 0;
}

body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) thead {
    background: #F9F1FB !important;
    color: #522A80 !important;
}

body:has(.app-design) .dxbl-list-box-table-header-row > th {
    padding: 10px 12px !important;
    background: #F9F1FB !important;
    color: #522A80 !important;
    border-bottom: 1px solid #D9D9D9 !important;
    font: 600 12.5px/1.45 Inter, sans-serif;
}

body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) tr[role="option"] > td {
    padding: 10px 12px !important;
    background: #FCFCFC;
    color: #333;
    border-top: 0 !important;
    border-bottom: 1px solid #D9D9D9 !important;
    font: 400 13px/1.45 Inter, sans-serif;
}

body:has(.app-design) .dxbl-list-box-table-header-row > th + th,
body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) tr[role="option"] > td + td {
    border-left: 1px solid #D9D9D9 !important;
}

body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) tr:nth-last-child(1 of [role="option"]) > td {
    border-bottom: 1px solid #333333 !important;
}

body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) tr[role="option"]:hover > td {
    background: #F9F1FB !important;
}

body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) tr[role="option"][aria-selected="true"] > td {
    background: rgba(82,42,128,.12) !important;
    color: #522A80 !important;
}

body:has(.app-design) :is(.dxbl-list-box, .dxbl-list-box-render-container) :is(tr, li)[role="option"]:is(:focus-visible, .dxbl-list-box-item-focused) {
    outline: 2px solid #522A80 !important;
    outline-offset: -2px !important;
    box-shadow: inset 0 0 0 4px rgba(6, 183, 219, .45);
}

/* DxScrollViewer uses overlay thumb controls and hides native scrollbars. */
body:has(.app-design) :is(.dxbl-grid, .dxbl-list-box, .dxbl-list-box-render-container) .dxbl-scroll-viewer {
    --dxbl-scroll-viewer-hor-scroll-bar-height: 12px;
    --dxbl-scroll-viewer-hor-scroll-bar-hover-height: 12px;
    --dxbl-scroll-viewer-vert-scroll-bar-width: 12px;
    --dxbl-scroll-viewer-vert-scroll-bar-hover-width: 12px;
}

body:has(.app-design) :is(.dxbl-grid, .dxbl-list-box, .dxbl-list-box-render-container) .dxbl-scroll-viewer-scroll-thumb {
    box-sizing: border-box;
    background: rgba(82,42,128,.28);
    border: 4px solid transparent;
    background-clip: content-box;
    border-radius: 999px !important;
    opacity: 1 !important;
}

body:has(.app-design) :is(.dxbl-grid, .dxbl-list-box, .dxbl-list-box-render-container) :is(.dxbl-scroll-viewer-vert-scroll-bar, .dxbl-scroll-viewer-hor-scroll-bar):hover > .dxbl-scroll-viewer-scroll-thumb {
    background: rgba(82,42,128,.55);
    background-clip: content-box;
}

body:has(.app-design) :is(.dxbl-grid, .dxbl-list-box, .dxbl-list-box-render-container) .dxbl-scroll-viewer .dxbl-scroll-viewer-scroll-thumb[data-qa-dxbl-dragging] {
    background: rgba(82,42,128,.75);
    background-clip: content-box;
}

body:has(.app-design) .app-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #FCFCFC;
    color: #333;
    font: 400 13px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

body:has(.app-design) .app-data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #D9D9D9;
}

body:has(.app-design) .app-data-table td + td {
    border-left: 1px solid #D9D9D9;
}

body:has(.app-design) .app-data-table tr:last-child td {
    border-bottom-color: #333333;
}

.employee-leaving-page > .EmployeeLeavingPopup {
    margin-top: 16px;
}

.employee-leaving-page .employee-leaving-layout .dxbl-fl-cpt {
    width: 140px !important;
    flex: 0 0 140px !important;
    margin-left: 0;
    padding-left: 0;
}

.employee-leaving-page .employee-leaving-layout .dxbl-fl-ctrl {
    min-width: 0;
    flex: 1 1 0 !important;
}

.employee-leaving-form .employee-leaving-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.employee-leaving-form .employee-leaving-actions .notif {
    margin-right: auto;
    color: #666;
}

@media (max-width: 600px) {
    .employee-leaving-page .employee-leaving-layout .dxbl-fl-cpt {
        width: 100% !important;
        flex-basis: 100% !important;
    }
}

/* Select position to copy */
.dxbl-modal:has(.positions-copy-popup) {
    --dxbl-popup-back-bg: rgba(41,21,64,.55);
    --dxbl-popup-back-opacity: 1;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup.dxbl-popup.positions-copy-popup {
    width: min(960px, calc(100vw - 32px)) !important;
    max-width: min(960px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    max-height: calc(100dvh - 48px);
    overflow: hidden !important;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(41,21,64,.35);
    font: 400 13px/1.45 Inter, sans-serif;
}

.positions-copy-popup > .dxbl-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
    overflow: hidden;
    border: 0 !important;
    border-radius: 14px;
    background: #FBFAFC;
}

.positions-copy-popup .dxbl-modal-header,
.positions-copy-popup .dxbl-modal-footer {
    padding: 0;
    border: 0;
    flex: none;
}

.positions-copy-popup .cp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background: #522A80;
    color: #fff;
}

.positions-copy-popup .cp-header h2 {
    margin: 0;
    font: 600 18px/1.3 Inter, sans-serif;
    color: #fff;
}

.positions-copy-popup .cp-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
}

.positions-copy-popup .cp-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.positions-copy-popup .cp-close:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.positions-copy-popup .cp-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.positions-copy-popup .cp-body {
    min-height: 0;
    overflow: auto;
    padding: 18px 24px 16px;
    background: #FBFAFC;
}

.positions-copy-popup .cp-helper,
.positions-copy-popup .cp-hint {
    font: 400 13px/1.45 Inter, sans-serif;
    color: #666;
}

.positions-copy-popup .cp-helper { margin: 0 0 12px; }
.positions-copy-popup .cp-empty-value { color: #666; }
.positions-copy-popup .cp-empty-state { padding: 32px 12px; text-align: center; color: #666; }

.positions-copy-popup .data-grid-copy {
    --dxbl-grid-header-bg: #F9F1FB;
    --dxbl-grid-header-color: #522A80;
    --dxbl-grid-hover-bg: #F9F1FB;
    --dxbl-grid-selection-bg: rgba(82,42,128,.12);
    --dxbl-grid-selection-color: #333;
    --dxbl-grid-border-color: #D9D9D9;
    --dxbl-grid-border-radius: 10px;
    min-width: 0;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: #FCFCFC;
    color: #333;
    font: 400 13px/1.45 Inter, sans-serif;
}

.positions-copy-popup .data-grid-copy .dxbl-scroll-viewer {
    max-height: 352px;
    border: 1px solid #D9D9D9;
    border-radius: 10px;
    overflow: hidden;
}

.positions-copy-popup .data-grid-copy .dxbl-scroll-viewer-content {
    max-height: 350px;
    overflow: auto;
}

.positions-copy-popup .data-grid-copy .dxbl-grid-table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
}

.positions-copy-popup .data-grid-copy .dxbl-grid-table > thead > tr:not(.dxbl-grid-filter-row) > th {
    position: static;
    height: 40px;
    padding: 0 12px;
    background: #F9F1FB !important;
    color: #522A80 !important;
    font-size: 12.5px;
    font-weight: 600;
    border-bottom: 1px solid #D9D9D9;
}

.positions-copy-popup .data-grid-copy .dxbl-grid-header-content { color: #522A80 !important; }
.positions-copy-popup .data-grid-copy .dxbl-grid-table > tbody > tr > td { padding: 10px 12px; border-bottom: 1px solid #D9D9D9; }
.positions-copy-popup .data-grid-copy .dxbl-grid-table > thead > tr > :is(th, td) + :is(th, td),
.positions-copy-popup .data-grid-copy .dxbl-grid-table > tbody > tr > td + td {
    border-left: 1px solid #D9D9D9;
    border-right: 0;
}

.positions-copy-popup .data-grid-copy .dxbl-grid-table > thead > tr.dxbl-grid-filter-row > td {
    top: auto;
    padding: 8px 12px !important;
    background: #FCFCFC !important;
    border-bottom: 1px solid #D9D9D9;
}

.positions-copy-popup .data-grid-copy .dxbl-grid-filter-row .dxbl-text-edit {
    min-height: 32px;
    height: 32px;
    border: 1px solid #D9D9D9 !important;
    border-radius: 6px;
    margin: 0 !important;
    background: #FCFCFC;
    box-shadow: none;
}

.positions-copy-popup .data-grid-copy .dxbl-grid-filter-row input {
    height: 30px;
    padding: 0 10px;
    font: 400 13px Inter, sans-serif;
    color: #333;
}

.positions-copy-popup .data-grid-copy .dxbl-grid-filter-row input::placeholder { color: #666; opacity: 1; }
.positions-copy-popup .data-grid-copy .dxbl-grid-filter-row .dxbl-text-edit:hover { border-color: #814D99 !important; }
.positions-copy-popup .data-grid-copy .dxbl-grid-filter-row .dxbl-text-edit:focus-within { outline: 2px solid #522A80; outline-offset: 0; box-shadow: 0 0 0 4px rgba(6, 183, 219, .45); }
.positions-copy-popup .data-grid-copy .cp-request-no { text-align: right; font-variant-numeric: tabular-nums; }
.positions-copy-popup .data-grid-copy tbody tr[data-visible-index]:hover > td { background: #F9F1FB !important; }
.positions-copy-popup .data-grid-copy tbody tr[aria-selected="true"] > td { background: rgba(82,42,128,.12) !important; color: #333 !important; }
.positions-copy-popup .data-grid-copy tbody tr[aria-selected="true"] > .cp-request-no { font-weight: 600; color: #522A80 !important; }
.positions-copy-popup .data-grid-copy tbody tr[data-visible-index]:focus-visible { outline: 2px solid #522A80; outline-offset: -2px; box-shadow: inset 0 0 0 4px rgba(6, 183, 219, .45); }
.positions-copy-popup .data-grid-copy tbody tr:nth-last-child(1 of [data-visible-index]) > td { border-bottom: 1px solid #333 !important; }

.positions-copy-popup .data-grid-copy .dxbl-grid-bottom-panel {
    padding: 12px 0 0;
    border: 0;
    background: #FBFAFC;
}

.positions-copy-popup .data-grid-copy .dxbl-pager { gap: 4px; align-items: center; }
.positions-copy-popup .data-grid-copy .dxbl-pager .dxbl-btn {
    min-width: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px !important;
    background: #FCFCFC !important;
    color: #333 !important;
    box-shadow: none;
}
.positions-copy-popup .data-grid-copy .dxbl-pager .dxbl-btn:hover:not(:disabled) { background: #F9F1FB !important; border-color: #814D99 !important; }
.positions-copy-popup .data-grid-copy .dxbl-pager .dxbl-btn:disabled { opacity: .35; }
.positions-copy-popup .data-grid-copy .dxbl-pager-page-edit {
    width: 48px !important;
    height: 32px;
    min-height: 32px;
    border: 1px solid #D9D9D9 !important;
    border-radius: 8px;
    background: #FCFCFC;
}
.positions-copy-popup .data-grid-copy .dxbl-pager-page-edit input { text-align: center; font: 400 13px Inter, sans-serif; }
.positions-copy-popup .data-grid-copy .dxbl-pager-page-edit-text { color: #666; font: 400 13px Inter, sans-serif; }

.positions-copy-popup .cp-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    border-top: 1px solid #D9D9D9;
    background: #F9F1FB;
}
.positions-copy-popup .cp-actions { display: flex; gap: 8px; margin-left: auto; }
.positions-copy-popup .cp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 13px Inter, sans-serif;
    cursor: pointer;
}
.positions-copy-popup .cp-secondary { background: transparent; border-color: #814D99; color: #522A80; }
.positions-copy-popup .cp-secondary:hover:not(:disabled) { background: #F9F1FB; }
.positions-copy-popup .cp-primary { background: #522A80; color: #fff; }
.positions-copy-popup .cp-primary:hover:not(:disabled) { background: #43206A; }
.positions-copy-popup .cp-button:disabled, .positions-copy-popup .cp-close:disabled { opacity: .35; cursor: not-allowed; }
.positions-copy-popup .cp-button:focus-visible, .positions-copy-popup .dxbl-pager :focus-visible { outline: 2px solid #522A80; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(6, 183, 219, .45); }
.positions-copy-popup .cp-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.positions-copy-popup .cp-body[aria-busy="true"] { pointer-events: none; }
.positions-copy-popup .cp-copy-mask {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(41,21,64,.35);
    cursor: wait;
    outline: none;
}
.positions-copy-popup .cp-copy-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 24px;
    border: 1px solid #D9D9D9;
    border-radius: 14px;
    background: #FBFAFC;
    color: #522A80;
    text-align: center;
}
.positions-copy-popup .cp-copy-message strong { font: 600 18px/1.3 Inter, sans-serif; }
.positions-copy-popup .cp-copy-message > span:last-child { color: #666; font: 400 13px/1.45 Inter, sans-serif; }
.positions-copy-popup .cp-copy-message .cp-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(82,42,128,.28);
    border-top-color: #522A80;
}
.positions-copy-popup .cp-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.16); border-top-color: #fff; border-radius: 50%; animation: cp-spin .7s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }

.positions-copy-popup .cp-body::-webkit-scrollbar { width: 12px; height: 12px; }
.positions-copy-popup .cp-body::-webkit-scrollbar-track,
.positions-copy-popup .cp-body::-webkit-scrollbar-corner { background: transparent; }
.positions-copy-popup .cp-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.positions-copy-popup .cp-body::-webkit-scrollbar-thumb { background: rgba(82,42,128,.28); border: 4px solid transparent; background-clip: content-box; border-radius: 999px; }
.positions-copy-popup .cp-body::-webkit-scrollbar-thumb:hover { background: rgba(82,42,128,.55); background-clip: content-box; }
.positions-copy-popup .cp-body::-webkit-scrollbar-thumb:active { background: rgba(82,42,128,.75); background-clip: content-box; }
@supports not selector(::-webkit-scrollbar) {
    .positions-copy-popup .cp-body { scrollbar-width: thin; scrollbar-color: rgba(82,42,128,.28) transparent; }
}
@media (max-width: 600px) {
    .dxbl-modal > .dxbl-modal-root > .dxbl-popup.dxbl-popup.positions-copy-popup { width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; }
    .positions-copy-popup .cp-header, .positions-copy-popup .cp-body, .positions-copy-popup .cp-footer { padding-left: 16px; padding-right: 16px; }
    .positions-copy-popup .cp-footer { flex-wrap: wrap; }
    .positions-copy-popup .cp-hint { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .positions-copy-popup .cp-spinner { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
    .app-design *,
    .auth-design * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Shared "Discard changes" icon: crossed-out pencil, painted in the button's text colour. */
.pa-icon-discard{--pa-discard:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cmask id='m' maskUnits='userSpaceOnUse' x='0' y='0' width='24' height='24'%3E%3Crect width='24' height='24' fill='white'/%3E%3Cpath d='M2.5 2.5l19 19' stroke='black' stroke-width='5.2'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23m)'%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/g%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");display:inline-block;flex:none;width:16px;height:16px;background-color:currentColor;-webkit-mask:var(--pa-discard) center/contain no-repeat;mask:var(--pa-discard) center/contain no-repeat}

.app-design .profile-list-page,
.app-design .profile-detail-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    color: var(--app-ink);
}

.app-design .profile-identity h1 {
    margin: 0;
    color: var(--app-deep);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.app-design .profile-list-card,
.app-design .profile-summary {
    min-width: 0;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: var(--app-surface);
    box-shadow: 0 1px 3px rgba(41, 21, 64, .04);
}

.app-design .profile-list-card {
    overflow: hidden;
    padding: 16px 16px 0;
}

.app-design .profile-list-toolbar,
.app-design .profile-list-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.app-design .profile-list-toolbar {
    justify-content: flex-end;
    margin-bottom: 10px;
}

.app-design .profile-list-toolbar-right {
    justify-content: flex-end;
}

.app-design .profile-list-toolbar .profile-view-button {
    margin-right: auto;
    min-height: 36px;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.app-design .profile-toolbar-button {
    box-sizing: border-box;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: #EFE9F6;
    color: #522A7F;
    font: 600 14px/1.2 Inter, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    list-style: none;
}

.app-design .profile-toolbar-button:hover {
    background: #E3D9F0;
}

.app-design .profile-toolbar-button:active {
    background: #D3C5E6;
}

.app-design .profile-list-toolbar .profile-toolbar-button:focus-visible {
    outline: 2px solid #6E2A7F !important;
    outline-offset: 2px;
}

.app-design .profile-toolbar-icon {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-design .profile-toolbar-icon > * {
    vector-effect: non-scaling-stroke;
}

.app-design .profile-export-menu {
    position: relative;
}

.app-design .profile-export-menu > summary {
    background: #522A7F;
    color: #fff;
}

.app-design .profile-export-menu > summary:hover {
    background: #3F1F63;
}

.app-design .profile-export-menu > summary:active {
    background: #2F174C;
}

.app-design .profile-export-menu summary::-webkit-details-marker {
    display: none;
}

.app-design .profile-export-menu summary::after {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background: #FCDEB4;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.app-design .profile-export-menu-content {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    min-width: 220px;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: var(--app-surface);
    box-shadow: 0 8px 24px rgba(41, 21, 64, .16);
}

.app-design .profile-export-menu-content > button {
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--app-purple);
    text-align: left;
    cursor: pointer;
}

.app-design .profile-export-menu-content > button:hover {
    background: var(--app-orchid);
}

.app-design .profile-export-menu-content .dxbl-checkbox {
    padding: 8px 10px;
}

.app-design .profile-count-badge {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--app-purple);
    color: #fff;
    font-size: 11px;
}

.app-design .profile-list-switch-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 10px;
}

.app-design .profile-list-switch-row .profile-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #522A7F !important;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45;
    cursor: pointer;
}

.app-design .profile-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.app-design .profile-switch-track {
    position: relative;
    flex: none;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #E3D9F0;
    transition: background .15s ease;
}

.app-design .profile-switch-track::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #522A7F;
    content: "";
    transition: transform .15s ease;
}

.app-design .profile-switch input:checked + .profile-switch-track {
    background: #522A7F;
}

.app-design .profile-switch input:checked + .profile-switch-track::after {
    background: #FCDEB4;
    transform: translateX(16px);
}

.app-design .profile-switch input:focus-visible + .profile-switch-track {
    outline: 2px solid #6E2A7F;
    outline-offset: 2px;
}

.app-design .profile-list-grid {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
}

.app-design .profile-list-grid .dxbl-grid-table {
    min-width: 1160px;
}

.app-design .profile-list-grid .dxbl-grid-table > thead > tr > th {
    font-weight: 700;
}

.app-design .profile-list-grid .dxbl-grid-selected-row > td {
    background: var(--app-aqua) !important;
    color: var(--app-ink) !important;
}

.app-design .profile-list-grid .dxbl-grid-table > tbody > tr[data-visible-index]:hover > td {
    background: #F7F1FA;
}

.app-design .profile-list-grid .dxbl-grid-selected-row:hover > td {
    background: var(--app-aqua) !important;
}

.app-design .profile-known-name-cell {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.app-design .profile-initials,
.app-design .profile-avatar-initials {
    display: inline-grid;
    flex: none;
    place-items: center;
    border-radius: 50%;
    background: var(--app-orchid);
    color: var(--app-purple);
    font-weight: 700;
}

.app-design .profile-initials {
    width: 30px;
    height: 30px;
    font-size: 11px;
}

.app-design .profile-name-link {
    overflow: hidden;
    color: var(--app-purple);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-design .profile-notes-preview-anchor {
    position: relative;
    display: inline-flex;
    flex: none;
}

.app-design .profile-notes-trigger {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--app-royal);
    cursor: pointer;
}

.app-design .profile-notes-trigger:hover {
    background: var(--app-orchid);
}

.app-design .profile-notes-trigger .icon-notes {
    position: static;
    top: auto !important;
    display: block;
    width: 16px;
    height: 16px;
    transform: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.app-design .profile-notes-preview {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    display: none;
    width: min(320px, calc(100vw - 32px));
    padding: 0 12px 12px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(41, 21, 64, .16);
    white-space: normal;
}

.app-design .profile-notes-preview > strong {
    display: block;
    margin: 0 -12px 8px;
    padding: 9px 12px;
    border-radius: 11px 11px 0 0;
    background: var(--app-orchid);
    color: var(--app-deep);
}

.app-design .profile-notes-preview-anchor:hover .profile-notes-preview,
.app-design .profile-notes-preview-anchor:focus-within .profile-notes-preview {
    display: block;
}

.app-design .profile-note-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--app-muted);
    font-size: 11px;
}

.app-design .profile-note-text {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0;
    color: var(--app-ink);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-design .profile-preview-muted {
    display: block;
    margin-top: 6px;
    color: var(--app-muted);
    font-size: 12px;
}

.app-design .profile-preview-error {
    color: var(--app-terracotta);
}

.app-design .profile-row-context-menu,
body:has(.app-design) .profile-row-context-menu {
    overflow: hidden;
    padding: 4px;
    border: 1px solid #DCC6E8;
    border-radius: 8px;
    background: var(--app-orchid);
    box-shadow: 0 6px 18px rgba(41, 21, 64, .16);
}

.app-design .profile-context-menu-item,
body:has(.app-design) .profile-context-menu-item {
    border-radius: 6px;
    color: var(--app-purple);
    font-weight: 600;
}

.app-design .profile-context-menu-item:hover,
body:has(.app-design) .profile-context-menu-item:hover {
    background: #fff;
    color: var(--app-purple);
}

.app-design .profile-inactive-row > td,
.app-design .profile-inactive-row .profile-name-link,
.app-design .profile-inactive-row .profile-initials {
    color: var(--app-terracotta) !important;
}

.app-design .profile-inactive-row .profile-initials {
    background: var(--app-linen);
}

.app-design .profile-list-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    min-height: 48px;
    color: var(--app-muted);
    font-size: 12px;
}

.app-design .profile-selection-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-design .profile-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--app-purple);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.app-design .profile-state-card,
.app-design .profile-access-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 20px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: var(--app-surface);
}

.app-design .profile-error-state {
    border-color: #E6B9A6;
    background: var(--app-linen);
    color: var(--app-terracotta);
}

.app-design .profile-validation-summary {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #E6B9A6;
    border-radius: 12px;
    background: var(--app-linen);
    color: var(--app-terracotta);
}

.app-design .profile-validation-summary ul {
    display: grid;
    gap: 5px;
    margin: 8px 0 0;
    padding-left: 20px;
}

.app-design .profile-validation-summary .profile-link-button {
    color: var(--app-terracotta);
    text-align: left;
}

.app-design .profile-list-skeleton {
    display: grid;
    gap: 10px;
    width: 100%;
}

.app-design .profile-skeleton-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}

.app-design .profile-skeleton-row span {
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(90deg, #F0EDF1, #FAF8FB, #F0EDF1);
    background-size: 200% 100%;
    animation: profile-skeleton 1.4s ease infinite;
}

@keyframes profile-skeleton {
    to { background-position: -200% 0; }
}

.app-design .profile-list-grid-region {
    position: relative;
}

.app-design .profile-grid-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-top: 96px;
    background: rgba(255, 255, 255, .72);
    color: var(--app-purple);
    font-weight: 600;
}

.app-design .profileDetails.profile-detail-page {
    display: flex;
    flex-direction: column;
    min-height: var(--profile-page-min-height, calc(100dvh - 200px));
    margin: 0;
}

.page.app-design .content.px-4:has(> .profile-detail-page) {
    padding-bottom: 0 !important;
}

.app-design .profile-detail-page > .profile-tab-content {
    flex: 1;
    padding-bottom: var(--profile-actionbar-height, 140px);
}

.app-design .profile-actionbar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid var(--app-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(41, 21, 64, .08);
}

.app-design .profile-actionbar.dirty {
    border-color: var(--app-orange);
}

.app-design .profile-actionbar.saved {
    border-color: var(--app-turquoise);
    background: var(--app-aqua);
}

.app-design .profile-actionbar-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--app-muted);
    font-weight: 500;
}

.app-design .profile-actionbar.dirty .profile-actionbar-status,
.app-design .profile-actionbar.saved .profile-actionbar-status {
    color: var(--app-ink);
}

.app-design .profile-actionbar-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--app-orange);
}

.app-design .profile-actionbar-ok,
.app-design .profile-save-result-icon {
    display: inline-flex;
    color: var(--app-purple);
}

.app-design .profile-actionbar-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.app-design .profile-save-failure {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--app-lemon);
    border-radius: 16px;
    background: var(--app-pearl);
    color: var(--app-ink);
}

.app-design .profile-save-failure-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.app-design .profile-save-failure ul {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.app-design .profile-save-failure li {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.app-design .profile-save-failure:focus,
.app-design .profile-actionbar :focus-visible {
    outline: 2px solid var(--app-purple) !important;
    outline-offset: 2px;
}

.app-design .profile-saving-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: profile-saving-spin .8s linear infinite;
}

@keyframes profile-saving-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
    .app-design .profile-actionbar-status,
    .app-design .profile-actionbar-buttons {
        width: 100%;
    }

    .app-design .profile-actionbar-buttons .dxbl-btn {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-design .profile-saving-spinner {
        animation: none;
    }
}

.app-design .profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--app-purple);
    font-weight: 600;
    text-decoration: none;
}

.app-design .profile-summary {
    display: block;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 0;
    background: #fff;
}

.app-design .profile-summary-band {
    position: relative;
    height: 88px;
    overflow: hidden;
    background: var(--app-purple);
}

.app-design .profile-summary-band::before,
.app-design .profile-summary-band::after {
    position: absolute;
    border-radius: 50%;
    background: var(--app-royal);
    content: "";
}

.app-design .profile-summary-band::before {
    width: 220px;
    height: 220px;
    right: -40px;
    top: -110px;
    opacity: .35;
}

.app-design .profile-summary-band::after {
    width: 140px;
    height: 140px;
    right: 180px;
    top: 30px;
    opacity: .22;
}

.app-design .profile-summary-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
    padding: 0 28px 22px;
}

.app-design .profile-summary-avatar {
    position: relative;
    z-index: 1;
    display: flex;
    flex: none;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 96px;
    height: 96px;
    margin-top: -48px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--app-deep);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.app-design .profile-summary-avatar.photo {
    background: var(--app-orchid);
    object-fit: cover;
}

.app-design .profile-summary-main {
    flex: 1;
    min-width: min(240px, 100%);
    padding-top: 14px;
    overflow-wrap: anywhere;
}

.app-design .profile-summary-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.app-design .profile-summary-main h1 {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: var(--app-deep);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.app-design .profile-summary-main p {
    margin: 4px 0 0;
    color: var(--app-muted);
}

.app-design .profile-status-chip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    height: 22px;
    padding: 0 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.app-design .profile-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.app-design .profile-status-chip.active {
    background: var(--app-aqua);
    border-color: #CDF7FD;
    color: var(--app-ink);
}

.app-design .profile-status-chip.active .profile-status-dot {
    background: var(--app-turquoise);
}

.app-design .profile-status-chip.inactive {
    background: var(--app-linen);
    border-color: #F6D3BF;
    color: var(--app-terracotta);
}

.app-design .profile-status-chip.on-leave {
    background: var(--app-pearl);
    border-color: var(--app-lemon);
    color: var(--app-ink);
}

.app-design .profile-status-chip.on-leave .profile-status-dot {
    background: #FFAA00;
}

.app-design .profile-facts {
    display: grid;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, auto));
    gap: 4px 32px;
    margin: 0 0 0 auto;
    padding-top: 14px;
}

.app-design .profile-facts > div {
    min-width: 0;
}

.app-design .profile-facts dt {
    margin-bottom: 0;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 400;
}

.app-design .profile-facts dd {
    margin: 0 0 6px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .app-design .profile-facts {
        flex-basis: 100%;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .app-design .profile-summary-body {
        padding: 0 16px 18px;
    }
}

.app-design .profile-lock-icon {
    position: relative;
    display: inline-block;
    flex: none;
    width: 13px;
    height: 13px;
    margin-right: 6px;
    color: var(--app-muted);
}

.app-design .profile-lock-icon::before {
    position: absolute;
    right: 1px;
    bottom: 0;
    left: 1px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    content: "";
}

.app-design .profile-lock-icon::after {
    position: absolute;
    top: 0;
    left: 4px;
    width: 5px;
    height: 6px;
    border: 1.5px solid currentColor;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    content: "";
}

.app-design .profile-folder-tabs {
    margin-bottom: 0 !important;
}

.app-design .profile-folder-tabs .dxbl-tabs-tablist {
    overflow: visible;
    border: 0;
    background: var(--app-orchid);
}

.app-design .profile-folder-tabs ul {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin: 0;
    padding: 8px 12px 0;
    list-style: none;
    border-bottom: 1px solid var(--app-line);
}

.app-design .profile-folder-tabs .dxbl-tabs-item {
    min-height: 39px;
    padding: 9px 12px 10px !important;
    border: 0 !important;
    border-top: 3px solid transparent !important;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--app-royal);
    font: 500 13px/1.25 Inter, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
}

.app-design .profile-folder-tabs .dxbl-tabs-item:hover {
    background: rgba(255, 255, 255, .65);
}

.app-design .profile-folder-tabs .dxbl-tabs-item.dxbl-active {
    border-top-color: var(--app-orange) !important;
    background: #fff;
    color: var(--app-purple);
    font-weight: 700;
}

.app-design .profile-tab-content {
    min-width: 0;
    padding: 4px;
    border: 1px solid var(--app-line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: var(--app-surface);
}

.app-design .profile-tab-content > .card-body {
    min-width: 0;
    padding: 20px;
}

.app-design .profile-tab-content:has(.analysis-codes:not([hidden])) {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.app-design .profile-tab-content:has(.analysis-codes:not([hidden])) > .card-body {
    padding: 0;
}

.app-design .profile-tab-content .row.mb-2 {
    display: block;
    margin-right: 0;
    margin-left: 0;
}

.app-design .profile-tab-content .row.mb-2 > label,
.app-design .profile-tab-content .row.mb-2 > div {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
}

.app-design .profile-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.app-design .profile-section-heading h2 {
    margin: 0;
    color: var(--app-deep);
    font-size: 17px;
    font-weight: 600;
}

.app-design .profile-section-icon {
    display: inline-grid;
    flex: none;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: var(--app-orchid);
    color: var(--app-royal);
}

.app-design .profile-section-icon svg {
    width: 18px;
    height: 18px;
}

.app-design .profile-staged-hint {
    margin: -6px 0 14px;
    color: var(--app-muted);
    font-size: 12px;
}

.app-design .profile-required {
    color: var(--app-terracotta);
    font-weight: 700;
}

.app-design .profile-field-error {
    display: block;
    margin-top: 4px;
    color: var(--app-terracotta);
    font-size: 12px;
}

.app-design .profile-field-error::before {
    content: "!";
    display: inline-grid;
    width: 14px;
    height: 14px;
    place-items: center;
    margin-right: 5px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}

.app-design .profile-change-tag {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.app-design .profile-change-tag.is-new {
    background: var(--app-aqua);
    color: var(--app-deep);
}

.app-design .profile-change-tag.is-edited {
    background: var(--app-orchid);
    color: var(--app-purple);
}

.app-design .profile-change-tag.will-remove {
    background: var(--app-linen);
    color: var(--app-terracotta);
}

.app-design .profile-staged-remove-row > td {
    color: var(--app-muted);
    text-decoration: line-through;
}

.app-design .profile-readonly-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid var(--app-divider);
    border-radius: 12px;
    background: var(--app-orchid);
    color: var(--app-deep);
    font-size: 13px;
}

.app-design .profile-readonly-banner .profile-lock-icon {
    color: var(--app-purple);
}

.app-design .profile-confirmation-popup,
body:has(.app-design) .profile-confirmation-popup {
    max-width: calc(100vw - 32px);
    border-radius: 14px;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup.dxbl-popup-header-drag.profile-confirmation-popup {
    width: min(460px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    max-width: min(460px, calc(100vw - 32px)) !important;
}

body:has(.app-design) :is(.profile-confirmation-popup, .pf-dlg-discard) {
    --dxbl-popup-header-bg: #522A80;
    --dxbl-popup-header-color: #fff;
    --dxbl-popup-header-font-size: 16px;
    --dxbl-popup-header-font-weight: 600;
    --dxbl-popup-header-padding-y: 12px;
    --dxbl-popup-header-padding-x: 20px;
    --dxbl-popup-header-btn-bg: transparent;
    --dxbl-popup-header-btn-color: #fff;
    --dxbl-popup-header-btn-hover-color: #fff;
}

body:has(.app-design) :is(.profile-confirmation-popup, .pf-dlg-discard) > .dxbl-modal-content {
    overflow: hidden;
    border: 1px solid #D9D9D9;
    border-radius: 14px;
    background: #FCFCFC;
}

body:has(.app-design) :is(.profile-confirmation-popup, .pf-dlg-discard) > .dxbl-modal-content > .dxbl-modal-body {
    padding: 16px 20px !important;
}

body:has(.app-design) :is(.profile-confirmation-popup, .pf-dlg-discard) .dxbl-modal-header {
    border-bottom: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body:has(.app-design) :is(.profile-confirmation-popup, .pf-dlg-discard) .dxbl-modal-title {
    color: #fff;
}

.app-design .profile-confirmation,
body:has(.app-design) .profile-confirmation {
    padding: 0;
    color: var(--app-ink);
}

.app-design .profile-confirmation p,
body:has(.app-design) .profile-confirmation p {
    margin: 0;
}

.app-design .profile-confirmation-actions,
body:has(.app-design) .profile-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.app-design .profile-destructive-action,
body:has(.app-design) .profile-destructive-action {
    border-color: var(--app-terracotta) !important;
    color: var(--app-terracotta) !important;
}

.app-design .profile-destructive-action:hover,
body:has(.app-design) .profile-destructive-action:hover {
    background: var(--app-linen) !important;
}

.app-design .profile-detail-page :where(a, button, input, summary, .dxbl-btn):focus-visible,
.app-design .profile-list-page :where(a, button, input, summary, .dxbl-btn):focus-visible {
    outline: 2px solid var(--app-purple) !important;
    outline-offset: 2px;
}

.app-design .profile-loading-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--app-line);
    border-top-color: var(--app-purple);
    border-radius: 50%;
    animation: profile-spin .7s linear infinite;
}

@keyframes profile-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .app-design .profile-folder-tabs .dxbl-tabs-item {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }
}

@media (max-width: 600px) {
    .app-design .profile-list-card {
        padding: 12px 12px 0;
    }

    .app-design .profile-list-toolbar {
        justify-content: flex-start;
        width: 100%;
    }

    .app-design .profile-list-toolbar-right {
        position: relative;
        justify-content: flex-start;
        width: fit-content;
        max-width: 100%;
    }

    .app-design .profile-export-menu {
        position: static;
    }

    .app-design .profile-list-switch-row {
        justify-content: flex-start;
    }

    .app-design .profile-folder-tabs .dxbl-tabs-tablist {
        overflow-x: auto;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .app-design .profile-folder-tabs .dxbl-tabs-tablist::-webkit-scrollbar {
        display: none;
    }

    .app-design .profile-folder-tabs ul {
        width: max-content;
        min-width: 100%;
    }

    .app-design .profile-tab-content > .card-body {
        padding: 14px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .app-design .profile-skeleton-row span,
    .app-design .profile-loading-indicator {
        animation: none;
    }
}

.app-design .profile-layout-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    margin: 0;
}

.app-design .profile-layout-grid > .profile-form-card,
.app-design .profile-personal-stack-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: 20px;
    border: 1px solid #E6E2E8;
    border-radius: 12px;
    background: #FCFCFC;
}

.app-design .profile-layout-grid > .profile-form-card {
    grid-column: span 12;
}

.app-design .profile-layout-grid > .profile-span-3 { grid-column: span 3; }
.app-design .profile-layout-grid > .profile-span-4 { grid-column: span 4; }
.app-design .profile-layout-grid > .profile-span-5 { grid-column: span 5; }
.app-design .profile-layout-grid > .profile-span-6 { grid-column: span 6; }
.app-design .profile-layout-grid > .profile-span-8 { grid-column: span 8; }

.app-design .profile-layout-grid .col-md-11,
.app-design .profile-layout-grid .col-md-12 {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.app-design .profile-personal-stack {
    display: grid;
    grid-column: span 3;
    grid-template-rows: auto auto;
    gap: 16px;
    min-width: 0;
}

.app-design .profile-personal-stack-card .profile-section-heading {
    margin-bottom: 12px;
}

.app-design .profile-tab-content:has(.profile-personal-layout) {
    padding: 0;
    background: #F7F7F7;
}

.app-design .profile-personal-layout {
    gap: 20px;
}

.app-design .profile-personal-layout > .profile-form-card,
.app-design .profile-personal-layout .profile-personal-stack-card {
    padding: 20px 22px;
    border-color: #E3E3E3;
    background: #fff;
}

.app-design .profile-personal-layout .profile-section-heading {
    margin-bottom: 18px;
}

.app-design .profile-personal-layout .profile-section-heading h2 {
    font-size: 16px;
}

.app-design .profile-personal-layout .profile-section-icon {
    width: 28px;
    height: 28px;
}

.app-design .profile-personal-layout .profile-section-icon svg {
    width: 16px;
    height: 16px;
}

.app-design .profile-personal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.app-design .profile-personal-fields-single {
    grid-template-columns: minmax(0, 1fr);
}

.app-design .profile-personal-field-full {
    grid-column: 1 / -1;
}

.app-design .profile-personal-layout .row.mb-2 {
    min-width: 0;
    margin: 0 !important;
}

.app-design .profile-personal-layout .row.mb-2 > label,
.app-design .profile-personal-leave-toggle > label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: var(--app-ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

.app-design .profile-personal-layout .dxbl-text-edit {
    --dxbl-text-edit-border-radius: 8px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

.app-design .profile-personal-layout > .profile-personal-stack {
    align-self: stretch;
    gap: 20px;
}

.app-design .profile-personal-leave-toggle {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-design .profile-personal-leave-toggle > label {
    min-width: 0;
    margin: 0;
}

.app-design .profile-personal-leave-toggle > .dxbl-checkbox {
    flex: none;
}

.app-design .profile-personal-layout .profile-leave-fields {
    gap: 16px;
    margin-top: 20px;
}

.app-design .profile-segmented-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    padding: 0;
    border: 1px solid var(--app-field-border);
    border-radius: 8px;
    background: #fff;
}

.app-design .profile-segmented-option {
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 12px;
    color: var(--app-ink) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.app-design .profile-segmented-option:first-child {
    border-radius: 7px 0 0 7px;
}

.app-design .profile-segmented-option:last-child {
    border-left: 1px solid var(--app-field-border);
    border-radius: 0 7px 7px 0;
}

.app-design .profile-segmented-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.app-design .profile-segmented-option.selected {
    background: var(--app-orchid);
    color: var(--app-purple) !important;
    font-weight: 600 !important;
}

.app-design .profile-segmented-option:focus-within {
    outline: 2px solid var(--app-turquoise);
    outline-offset: 2px;
}

.app-design .profile-leave-fields {
    display: grid;
    gap: 8px;
}

.app-design .profile-work-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.app-design .profile-work-field-column {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
}

.app-design .profile-working-days {
    margin-top: 20px;
}

.app-design .profile-working-days-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.app-design .profile-working-days-table .profile-working-day-column {
    width: 54%;
}

.app-design .profile-working-days-table th,
.app-design .profile-working-days-table td {
    height: 44px;
    padding: 9px 6px;
    border-bottom: 1px solid var(--app-divider);
    vertical-align: middle;
}

.app-design .profile-working-days-table > thead {
    background: transparent !important;
}

.app-design .profile-working-days-table > thead > tr > th {
    height: 36px;
    padding: 8px 6px;
    background: var(--app-orchid);
    color: var(--app-purple);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.app-design .profile-working-days-table > thead > tr > th:first-child {
    border-radius: 8px 0 0 8px;
}

.app-design .profile-working-days-table > thead > tr > th:last-child {
    border-radius: 0 8px 8px 0;
}

.app-design .profile-working-days-table > tbody > tr > th {
    font-weight: 500;
    text-align: left;
}

.app-design .profile-working-days-table > tbody > tr > td {
    text-align: center;
}

.app-design .profile-working-days-table > tbody > tr:last-child > * {
    border-bottom: 0;
}

.app-design .profile-working-days-table .dxbl-checkbox {
    display: inline-flex;
    justify-content: center;
    vertical-align: middle;
}

.app-design .profile-history-recruitment-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 24px;
}

.app-design .profile-history-recruitment-card > .profile-section-heading {
    grid-column: 1 / -1;
}

.app-design .profile-history-recruitment-card > .row.mb-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 12px;
}

.app-design .profile-history-recruitment-card > .row.mb-2 > label,
.app-design .profile-history-recruitment-card > .row.mb-2 > div {
    width: 100%;
    max-width: none;
}

.app-design .profile-history-pager-summary {
    margin-top: 10px;
    color: var(--app-muted);
    font-size: 12px;
    text-align: right;
}

@media (max-width: 1000px) {
    .app-design .profile-personal-layout > .profile-span-5,
    .app-design .profile-personal-layout > .profile-span-4 {
        grid-column: span 6;
    }

    .app-design .profile-personal-layout > .profile-personal-stack {
        grid-column: 1 / -1;
    }

    .app-design .profile-work-layout > .profile-form-card {
        grid-column: span 12;
    }

    .app-design .profile-personal-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
}

@media (max-width: 650px) {
    .app-design .profile-layout-grid {
        gap: 12px;
    }

    .app-design .profile-layout-grid > .profile-form-card,
    .app-design .profile-personal-stack {
        grid-column: 1 / -1;
    }

    .app-design .profile-layout-grid > .profile-form-card,
    .app-design .profile-personal-stack-card {
        padding: 16px;
    }

    .app-design .profile-personal-stack,
    .app-design .profile-work-fields,
    .app-design .profile-history-recruitment-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-design .profile-history-recruitment-card > .profile-section-heading {
        grid-column: auto;
    }

}

@media (max-width: 480px) {
    .app-design .profile-personal-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.app-design .profile-kin-layout,
.app-design .profile-payroll-layout,
.app-design .profile-work-layout,
.app-design .profile-history-layout {
    align-items: stretch;
}

.app-design .profile-kin-fields,
.app-design .profile-payroll-fields,
.app-design .profile-work-fields,
.app-design .profile-history-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.app-design .profile-kin-fields .row.mb-2,
.app-design .profile-payroll-fields .row.mb-2,
.app-design .profile-work-fields .row.mb-2,
.app-design .profile-history-fields .row.mb-2 {
    min-width: 0;
    margin: 0 !important;
}

.app-design .profile-kin-fields .row.mb-2 > label,
.app-design .profile-payroll-fields .row.mb-2 > label,
.app-design .profile-work-fields .row.mb-2 > label,
.app-design .profile-history-fields .row.mb-2 > label,
.app-design .profile-work-parm-fields .row.mb-2 > label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: var(--app-ink) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

.app-design .profile-kin-fields .row.mb-2 > :not(label),
.app-design .profile-payroll-fields .row.mb-2 > :not(label),
.app-design .profile-work-fields .row.mb-2 > :not(label),
.app-design .profile-history-fields .row.mb-2 > :not(label),
.app-design .profile-work-parm-fields .row.mb-2 > :not(label) {
    width: 100%;
    min-width: 0;
}

.app-design .profile-kin-fields .dxbl-text-edit,
.app-design .profile-kin-fields .dxbl-combobox,
.app-design .profile-payroll-fields .dxbl-text-edit,
.app-design .profile-work-fields .dxbl-text-edit,
.app-design .profile-work-fields .dxbl-combobox,
.app-design .profile-work-fields .dxbl-spin-edit,
.app-design .profile-work-fields .dxbl-date-edit,
.app-design .profile-history-fields .dxbl-text-edit,
.app-design .profile-history-fields .dxbl-combobox,
.app-design .profile-history-fields .dxbl-date-edit,
.app-design .profile-work-parm-fields .dxbl-combobox,
.app-design .profile-work-parm-fields .dxbl-date-edit {
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

.app-design .profile-kin-field-full,
.app-design .profile-payroll-field-full,
.app-design .profile-history-field-wide {
    grid-column: 1 / -1;
}

.app-design .profile-payroll-fields .dxbl-text-edit:has(.dxbl-disabled),
.app-design .profile-payroll-fields .dxbl-text-edit.dxbl-disabled {
    background: #F7F7F8;
}

.app-design .profile-work-layout > .profile-work-card {
    grid-column: span 4;
}

.app-design .profile-work-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.app-design .profile-work-fields .row.mb-2.profile-work-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
}

.app-design .profile-work-fields .row.mb-2.profile-work-toggle > label {
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
}

.app-design .profile-work-fields .row.mb-2.profile-work-toggle > .dxbl-checkbox {
    flex: none;
    width: auto;
}

.app-design .profile-working-days {
    margin-top: 20px;
}

.app-design .profile-work-parm-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.app-design .profile-work-parm-config {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
}

.app-design .profile-work-parm-config-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.app-design .profile-work-parm-config .row.mb-2 {
    min-width: 0;
    margin: 0 !important;
}

.app-design .profile-work-parm-config .row.mb-2 > :not(label) {
    width: 100%;
    min-width: 0;
}

.app-design .profile-work-parm-config .dxbl-combobox,
.app-design .profile-work-parm-config .dxbl-date-edit {
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

.app-design .profile-work-parm-toggles {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.app-design .profile-work-parm-toggles > script {
    display: none !important;
}

.app-design .profile-work-parm-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    align-items: center;
    gap: 4px 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--app-divider);
}

.app-design .profile-work-parm-toggle:last-child {
    border-bottom: 0;
}

.app-design .profile-work-parm-toggle > label {
    margin: 0;
    color: var(--app-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.app-design .profile-work-parm-toggle > .dxbl-checkbox {
    flex: none;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.app-design .profile-work-parm-include {
    padding-top: 0;
}

.app-design .profile-work-parm-include > span {
    grid-column: 1;
    grid-row: 2;
    color: var(--app-muted);
    font-size: 12px;
    line-height: 1.45;
}

.app-design .profile-history-recruitment-card {
    display: block;
}

.app-design .profile-history-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-design .profile-history-grid-card .dxbl-grid {
    min-width: 0;
}

.app-design .profile-history-grid-card .dxbl-grid-table {
    min-width: 640px;
}

.app-design .profile-notes-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #E6E2E8;
    border-radius: 12px;
    background: #fff;
}

.app-design .profile-notes-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.app-design .profile-notes-toolbar .profile-staged-hint {
    margin: 0;
}

.app-design .profile-note-action {
    flex: none;
}

.app-design .profile-note-empty,
.app-design .profile-note-preview {
    min-height: 132px;
    padding: 18px;
    border: 1px dashed var(--app-field-border);
    border-radius: 8px;
    background: #FAFAFA;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.6;
}

.app-design .profile-note-empty {
    display: grid;
    place-items: center;
    text-align: center;
}

.app-design .profile-note-preview {
    color: var(--app-ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.app-design .profile-note-editor .profile-note-memo {
    width: 100%;
    min-height: 180px;
}

@media (max-width: 1000px) {
    .app-design .profile-work-layout > .profile-work-card {
        grid-column: span 6;
    }

    .app-design .profile-work-layout > .profile-work-parm-card {
        grid-column: span 12;
    }

    .app-design .profile-work-parm-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-design .profile-history-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .app-design .profile-kin-layout > .profile-form-card,
    .app-design .profile-payroll-layout > .profile-form-card,
    .app-design .profile-work-layout > .profile-form-card,
    .app-design .profile-work-layout > .profile-work-parm-card {
        grid-column: 1 / -1;
    }

    .app-design .profile-kin-fields,
    .app-design .profile-payroll-fields,
    .app-design .profile-history-fields,
    .app-design .profile-work-parm-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-design .profile-work-parm-config-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-design .profile-notes-card {
        padding: 16px;
    }

    .app-design .profile-notes-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-design .profile-note-action {
        align-self: flex-end;
    }
}
/* IT Checklist + Deactivate Checklist popup edit forms: scrollable body with a
   sticky action footer, matching the Positions form footer. */
.dxbl-modal > .dxbl-modal-root > .dxbl-popup:has(.checklist-edit-form) > .dxbl-modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 48px);
    overflow: hidden;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup:has(.checklist-edit-form) .dxbl-modal-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0 !important;
}

.dxbl-modal .dxbl-grid-popup-edit-form:has(.checklist-edit-form),
.dxbl-modal .dxbl-grid-popup-edit-form > form:has(.checklist-edit-form) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.checklist-edit-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.checklist-edit-form-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 24px;
    overflow: auto;
}

.checklist-edit-form-footer {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px;
    border-top: 1px solid #D9D9D9;
    border-radius: 0 0 12px 12px;
    background: #F9F1FB;
}

.checklist-edit-form-footer .checklist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 13px Inter, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.checklist-edit-form-footer .checklist-btn.primary {
    border-color: #522A80;
    background: #522A80;
    color: #fff;
}

.checklist-edit-form-footer .checklist-btn.primary:hover:not(:disabled) {
    background: #43206A;
}

.checklist-edit-form-footer .checklist-btn.secondary {
    border-color: #814D99;
    background: #fff;
    color: #522A80;
}

.checklist-edit-form-footer .checklist-btn.secondary:hover:not(:disabled) {
    background: #F9F1FB;
}

.checklist-edit-form-footer .checklist-btn:focus-visible {
    outline: 2px solid #522A80;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(6, 183, 219, .45);
}

.checklist-edit-form-footer .checklist-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .checklist-edit-form-body {
        padding: 12px 16px;
    }

    .checklist-edit-form-footer {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .checklist-edit-form-footer .checklist-btn {
        flex: 1 1 calc(50% - 4px);
    }
}

.utilities-page {
    --utility-purple: #522A80;
    --utility-royal: #814D99;
    --utility-orchid: #F9F1FB;
    --utility-aqua: #E7FBFF;
    --utility-success-text: #00566B;
    --utility-lemon: #FFECA6;
    --utility-notice-text: #5C3A00;
    --utility-linen: #FEEEE6;
    --utility-error-text: #8F3300;
    --utility-terracotta: #B84300;
    --utility-orange: #EC6607;
    --utility-ink: #333333;
    --utility-muted: #666666;
    --utility-field-border: #8C8C8C;
    --utility-line: #D9D9D9;
    --utility-page: #F7F7F7;
    --utility-surface: #FCFCFC;
    padding: 24px 4px 40px;
    color: var(--utility-ink);
    font: 400 14px/1.45 Inter, "Segoe UI", Arial, sans-serif;
}

.utilities-page :where(h1, h2, p) {
    margin: 0;
}

.utilities-page-heading {
    margin-bottom: 20px;
}

.utilities-breadcrumb {
    margin-bottom: 4px !important;
    color: var(--utility-muted);
    font-size: 12px;
}

.utilities-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.utilities-title-row h1 {
    color: var(--utility-purple);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.utilities-admin-chip,
.utility-results-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--utility-orchid);
    color: var(--utility-purple);
    font-size: 12px;
    font-weight: 600;
}

.utilities-admin-chip svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.utilities-help {
    margin-top: 8px !important;
    max-width: 700px;
    color: var(--utility-muted);
}

.utilities-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
    gap: 16px;
    align-items: stretch;
}

.utility-card,
.utility-results-panel {
    overflow: hidden;
    border: 1px solid var(--utility-line);
    border-radius: 12px;
    background: var(--utility-surface);
}

.utility-card {
    display: flex;
    flex-direction: column;
}

.utility-card-header {
    display: flex;
    gap: 12px;
    padding: 18px 18px 0;
}

.utility-card-icon,
.utility-results-clock {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--utility-orchid);
    color: var(--utility-purple);
}

.utility-card-icon svg,
.utility-results-header svg,
.utility-results-clock svg,
.utility-status-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.utility-card-heading {
    min-width: 0;
}

.utility-card-heading h2 {
    color: var(--utility-purple);
    font-size: 16px;
    font-weight: 600;
}

.utility-card-heading p {
    margin-top: 3px;
    color: var(--utility-muted);
    font-size: 13px;
}

.utility-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
}

.utility-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid var(--utility-line);
    background: var(--utility-orchid);
}

.utility-card-fill {
    flex: 1;
}

.utility-manager-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.utility-field-label {
    color: var(--utility-ink);
    font-size: 13px;
    font-weight: 600;
}

.utility-note {
    color: var(--utility-muted);
    font-size: 13px;
}

.utility-fix-input,
.utility-manager-select {
    width: 100%;
}

.utility-live-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--utility-muted);
    font-size: 13px;
}

.utility-live-warning svg {
    flex: none;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.utility-manager-card {
    margin-top: 20px;
}

.utility-manager-card .utility-card-compact .utility-card-header {
    gap: 12px;
    padding: 16px 16px 12px;
}

.utility-manager-card .utility-card-compact .utility-card-body {
    gap: 6px;
    padding: 0 16px 14px;
}

.utility-manager-card .utility-card-compact .utility-card-footer {
    justify-content: space-between;
    padding: 12px 16px;
}

.utility-manager-card .utility-button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
}

.utility-manager-move-count {
    color: var(--utility-muted);
}

.utility-manager-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--utility-lemon);
    color: var(--utility-notice-text);
    font-size: 13px;
}

.utility-manager-warning svg {
    flex: none;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.utility-manager-fields {
    display: grid;
    grid-template-columns: minmax(0, 300px) 24px minmax(0, 300px);
    align-items: end;
    gap: 12px;
}

.utility-manager-arrow {
    display: grid;
    place-items: center;
    min-height: 44px;
    color: var(--utility-muted);
}

.utility-manager-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.utility-manager-help,
.utility-manager-empty {
    color: var(--utility-muted);
}

.utility-manager-error {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--utility-linen);
    color: var(--utility-error-text);
}

.utility-manager-preview {
    overflow: hidden;
    border: 1px solid var(--utility-line);
    border-radius: 12px;
}

.utility-manager-preview-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
}

.utility-manager-preview-toolbar span {
    color: var(--utility-muted);
}

.utility-manager-preview-scroll {
    overflow-x: auto;
}

.utility-manager-preview table {
    width: 100%;
    border-collapse: collapse;
}

.utility-manager-preview th,
.utility-manager-preview td {
    min-width: 150px;
    padding: 9px 14px;
    border-top: 1px solid var(--utility-line);
    text-align: left;
    white-space: nowrap;
}

.utility-manager-preview th:first-child,
.utility-manager-preview td:first-child {
    width: 30%;
}

.utility-manager-preview th:nth-child(2),
.utility-manager-preview td:nth-child(2) {
    width: 42%;
}

.utility-manager-preview th + th,
.utility-manager-preview td + td {
    border-left: 1px solid var(--utility-line);
}

.utility-manager-preview th {
    padding-top: 8px;
    padding-bottom: 8px;
    background: var(--utility-orchid);
    color: var(--utility-purple);
    font-size: 12px;
    font-weight: 600;
}

.utility-manager-preview-empty {
    padding: 16px;
    color: var(--utility-muted);
}

.utility-card-compact .utility-card-header {
    gap: 10px;
    padding: 14px 14px 12px;
}

.utility-card-compact .utility-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.utility-card-compact .utility-card-icon svg {
    width: 18px;
    height: 18px;
}

.utility-card-compact .utility-card-heading h2 {
    font-size: 15px;
}

.utility-card-compact .utility-card-body {
    gap: 8px;
    padding: 0 14px 14px;
}

.utility-card-compact .utility-card-footer {
    padding: 10px 14px;
}

.utility-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 600 14px Inter, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.utility-button-primary {
    background: var(--utility-purple);
    color: #fff;
}

.utility-button-primary:hover:not(:disabled) {
    background: #43206A;
}

.utility-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.utilities-page :where(button, input, select, .dxbl-btn, .dxbl-text-edit):focus-visible {
    outline: 2px solid var(--utility-purple) !important;
    outline-offset: 2px;
}

.utility-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: utility-spin .7s linear infinite;
}

@keyframes utility-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .utility-spinner {
        animation: none;
    }
}

.utility-results-panel {
    margin-top: 20px;
}

.utility-results-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--utility-line);
    background: var(--utility-orchid);
    color: var(--utility-purple);
}

.utility-results-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.utility-results-header > svg {
    flex: none;
}

.utility-results-chip {
    margin-left: auto;
    background: var(--utility-lemon);
    color: var(--utility-notice-text);
}

.utility-results-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 34px 18px;
    text-align: center;
}

.utility-results-empty strong {
    font-weight: 600;
}

.utility-results-empty > span:last-child {
    color: var(--utility-muted);
}

.utility-results-clock {
    margin-bottom: 4px;
}

.utility-results-content {
    padding: 16px 18px;
}

.utility-status-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
}

.utility-status-success {
    background: var(--utility-aqua);
    color: var(--utility-success-text);
}

.utility-status-failure,
.utility-status-requestfailed {
    background: var(--utility-linen);
    color: var(--utility-error-text);
}

.utility-status-partlycompleted {
    background: var(--utility-lemon);
    color: var(--utility-notice-text);
}

.utility-status-running {
    background: var(--utility-orchid);
    color: var(--utility-purple);
}

.utility-status-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
}

.utility-status-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.utility-status-copy strong {
    font-weight: 600;
}

.utility-results-details {
    margin: 12px 0 0;
    padding-left: 22px;
    color: var(--utility-ink);
}

.utility-results-details li + li {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .utilities-page {
        padding: 20px 0 32px;
    }

    .utilities-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .utility-manager-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .utility-manager-arrow {
        min-height: 20px;
        transform: rotate(90deg);
    }

    .utility-manager-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
