.app-update-notice { position: fixed; z-index: 10000; bottom: 16px; right: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; max-width: calc(100vw - 64px); padding: 14px 18px; border: 1px solid #b9cfe3; border-radius: 8px; color: #17324d; background: #eef5fc; box-shadow: 0 4px 18px rgb(22 42 70 / 15%); }
.app-update-notice[hidden] { display: none; }
.app-update-notice button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 6px; color: #ffffff; background: #1f6fb2; font: inherit; font-weight: 600; cursor: pointer; }
.app-update-notice button:focus-visible { outline: 2px solid #17324d; outline-offset: 3px; }
.app-update-notice button:disabled { opacity: .7; cursor: wait; }

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #17324d;
    background: #f5f7fb;
}

.supply-actions-menu.dxbl-dropdown-dialog {
    --dxbl-dropdown-font-family: "Segoe UI", Arial, sans-serif;
    --dxbl-dropdown-font-size: 1.04rem;
    --dxbl-dropdown-color: #17324d;
    --dxbl-dropdown-bg: #ffffff;
    --dxbl-dropdown-border-width: 1px;
    --dxbl-dropdown-border-style: solid;
    --dxbl-dropdown-border-color: #dbe3ef;
    --dxbl-dropdown-border-radius: 7.28px;
    --dxbl-dropdown-box-shadow: 0 10.92px 27.3px rgb(22 42 70 / 14%);
    --dxbl-dropdown-min-width: 200px;
    --dxbl-btn-dropdown-min-width: 200px;
    --dxbl-btn-dropdown-padding-x: 7.28px;
    --dxbl-btn-dropdown-padding-y: 7.28px;
    --dxbl-btn-dropdown-btn-color: #17324d;
    --dxbl-btn-dropdown-btn-hover-bg: #eef4fb;
    --dxbl-btn-dropdown-btn-hover-color: #17324d;
    --dxbl-btn-dropdown-btn-border-width: 0;
}

.supply-actions-menu.dxbl-dropdown-dialog .dxbl-btn-dropdown-list-item .dxbl-btn-dropdown-item > .dxbl-btn {
    --dxbl-btn-border-radius: 5.46px;
    min-height: 0;
    padding: 9.1px 10.92px;
    font: inherit;
    text-align: left;
}

a {
    color: #1b65a7;
}

button,
.auth-panel input {
    font: inherit;
}

.loading-visual {
    display: grid;
    width: min(280px, calc(100% - 48px));
    gap: 10px;
    text-align: center;
}

.bootstrap-loader {
    margin: 32vh auto 0;
}

.loading-brand {
    color: #123b5d;
    font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
}

.loading-track {
    height: 4px;
    overflow: hidden;
    background: #d7e2ef;
}

.loading-track span {
    display: block;
    width: 42%;
    height: 100%;
    background: #1f78d1;
    animation: loading-bar-motion 1.1s ease-in-out infinite;
}

.loading-text {
    color: #5d6c7c;
    font-size: .95rem;
    font-weight: 700;
}

@keyframes loading-bar-motion {
    from {
        transform: translateX(-110%);
    }

    to {
        transform: translateX(250%);
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: .75rem 1.25rem;
    background: #fff3cd;
    box-shadow: 0 -1px 2px rgb(0 0 0 / 20%);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: .5rem;
    right: .75rem;
    cursor: pointer;
}

.auth-panel h1 {
    margin: 0 0 12px;
    color: #17324d;
    font-size: 2rem;
}

.muted {
    color: #5d6c7c;
}

.eyebrow {
    margin: 0 0 8px;
    color: #1f6fb2;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 128px);
    place-items: center;
}

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.launcher-tile {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    align-content: center;
    justify-items: center;
    gap: 10px;
    min-width: 0;
    border: 2px solid #d7e2ef;
    border-radius: 22px;
    padding: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    color: #17324d;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 22px rgb(22 42 70 / 7%);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.launcher-tile::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 16px;
    pointer-events: none;
}

.launcher-tile:focus-visible {
    border-color: var(--icon-color);
    box-shadow: 0 16px 32px rgb(22 42 70 / 13%);
    transform: translateY(-2px);
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .launcher-tile:hover {
        border-color: var(--icon-color);
        box-shadow: 0 16px 32px rgb(22 42 70 / 13%);
        transform: translateY(-2px);
    }
}

.launcher-tile:active {
    border-color: var(--icon-color);
    box-shadow: 0 6px 16px rgb(22 42 70 / 12%);
    transform: scale(.98);
}

.launcher-tile-disabled {
    cursor: default;
    border-color: #d9dee6;
    background: #f4f6f8;
    color: #929ba8;
    box-shadow: none;
    --icon-color: #9aa3af !important;
}

.launcher-tile-disabled:hover,
.launcher-tile-disabled:active {
    border-color: #d9dee6;
    box-shadow: none;
    transform: none;
}

.launcher-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--icon-color) 13%, #ffffff);
    color: var(--icon-color);
}

.launcher-icon svg {
    width: 50px;
    height: 50px;
    fill: currentColor;
}

.launcher-title {
    color: #17324d;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

@media (min-width: 641px) {
    .launcher-title-multiline {
        font-weight: 700;
    }
}

.launcher-tile-disabled .launcher-title {
    color: #929ba8;
}

.placeholder-page {
    padding: 36px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgb(22 42 70 / 8%);
}

.placeholder-page h1 {
    margin: 0 0 8px;
    color: #17324d;
    font-size: 1.8rem;
}

.placeholder-page p {
    margin: 0;
    color: #5d6c7c;
}

.stats-page {
    display: grid;
    min-width: 0;
    gap: 18px;
    padding: 10px 10px 10px 10px;
}

.stats-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #dbe3ef;
    padding-bottom: 16px;
}

.stats-header h1 {
    margin: 0;
    color: #17324d;
    font-size: 1.75rem;
    font-weight: 800;
}

.stats-total {
    display: grid;
    gap: 2px;
    min-width: 150px;
    border-left: 4px solid #2b8f6a;
    padding: 8px 0 8px 16px;
    background: #ffffff;
}

.stats-total span {
    color: #5d6c7c;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stats-total strong {
    color: #17324d;
    font-size: 1.65rem;
    line-height: 1;
}

.stats-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 240px)) auto;
    align-items: end;
    min-width: 0;
    gap: 14px;
}

.stats-toolbar label {
    min-width: 0;
    gap: 6px;
}

.stats-toolbar label > span {
    color: #344960;
    font-size: 1.05rem;
    font-weight: 700;
}

.stats-date-editor {
    --dxbl-text-edit-font-size: 1.3rem !important;
    font-size: 1.3rem !important;
}

.stats-date-editor .dxbl-text-edit-input,
.stats-date-editor input {
    font-size: 1.3rem !important;
}

.stats-date-popup,
.stats-date-popup-body,
.stats-date-popup.dxbl-calendar,
.stats-date-popup-body.dxbl-calendar,
.stats-date-popup .dxbl-calendar,
.stats-date-popup-body .dxbl-calendar {
    --dxbl-calendar-font-size: 1.2rem !important;
    font-size: 1.2rem !important;
}

.stats-calculate {
    min-width: 120px;
    min-height: 38px;
    font-size: 1.1rem !important;
}

.stats-chart-shell {
    position: relative;
    min-width: 0;
    min-height: 420px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgb(22 42 70 / 7%);
}

.stats-chart {
    min-width: 0;
    max-width: 100%;
    min-height: 560px;
}

.stats-empty,
.stats-loader {
    display: grid;
    min-height: 360px;
    place-items: center;
    color: #5d6c7c;
    font-weight: 700;
}

.stats-loader {
    align-content: center;
}

.orders-loader {
    display: grid;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    place-items: center;
}

.orders-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: calc(100dvh - var(--app-header-height, 46px) - var(--app-main-block-padding, 40px));
    min-height: 0;
    overflow: hidden;
}

.orders-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 360px));
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #dbe3ef;
    padding-right: 10px;
    padding-bottom: 12px;
    padding-left: 10px;
}

.orders-multi-filter {
    width: 100%;
    min-height: 48px;
    --dxbl-text-edit-font-size: 1.3rem !important;
    font-size: 1.3rem !important;
}

.orders-multi-filter .dxbl-text-edit-input,
.orders-multi-filter .dxbl-text-edit-template,
.orders-multi-filter input {
    min-height: 46px;
    font-size: 1.3rem !important;
}

.orders-filter-popup {
    box-sizing: border-box;
    width: min(520px, calc(100dvw - 32px)) !important;
    max-width: min(520px, calc(100dvw - 32px)) !important;
    margin: 0 !important;
}

.orders-filter-dropdown,
.orders-filter-list {
    --dxbl-list-box-font-size: 1.25rem !important;
    --dxbl-listbox-font-size: 1.25rem !important;
}

.orders-filter-dropdown {
    box-sizing: border-box;
    padding: 12px !important;
}

.orders-filter-list {
    height: min(50dvh, 520px) !important;
    max-height: min(50dvh, 520px) !important;
    --dxbl-listbox-item-padding-y: .65rem !important;
}

.orders-filter-list .dxbl-listbox {
    height: 100% !important;
    max-height: none !important;
}

.orders-filter-list .dxbl-list-box-search-container {
    margin-bottom: 10px;
}

.orders-filter-list .dxbl-text-edit .dxbl-text-edit-input {
    min-height: 44px;
    font-size: 1.25rem !important;
}

.orders-filter-list.dxbl-listbox div.dxbl-listbox-item {
    min-height: 56px;
    padding-top: .65rem !important;
    padding-bottom: .65rem !important;
    font-size: 1.25rem !important;
}

.orders-filter-dropdown.dxbl-list-box,
.orders-filter-dropdown.dxbl-list-box-render-container,
.orders-filter-dropdown.dxbl-listbox,
.orders-filter-dropdown .dxbl-list-box,
.orders-filter-dropdown .dxbl-list-box-render-container,
.orders-filter-dropdown .dxbl-listbox {
    --dxbl-list-box-font-size: 1.25rem !important;
    --dxbl-listbox-font-size: 1.25rem !important;
}

.orders-empty {
    display: flex;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: min(560px, 100%);
    min-height: 0;
    margin: clamp(32px, 7vh, 64px) auto 0;
    padding: 16px 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #17324d;
    text-align: center;
}

.orders-empty-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 18px;
    background: #fff4df;
    color: #d98700;
}

.orders-empty-icon svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
}

.orders-empty-icon svg path:nth-child(2) {
    fill: #ffffff;
    opacity: .9;
}

.orders-empty-icon svg path:nth-child(3) {
    fill: none;
    stroke: #ffffff;
    stroke-width: 5;
    stroke-linecap: round;
    opacity: .9;
}

.orders-empty h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.orders-empty p {
    max-width: 420px;
    margin: 0;
    color: #5d6c7c;
    font-size: 1rem;
}

.orders-grid-shell {
    display: flex;
    flex: 1 1 auto;
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100% - 20px);
    height: 100%;
    margin-right: 10px;
    margin-left: 10px;
    min-width: 0;
    min-height: 0;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 8px 0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgb(22 42 70 / 7%);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: none;
}

.orders-grid {
    width: fit-content;
    height: 100%;
    min-width: 250px;
    border-left-width: 0;
    border-right-width: 0;
    --dxbl-grid-font-size: 1.2rem !important;
    --dxbl-grid-group-indent-cell-width: 0rem !important;
}

.orders-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content {
    overscroll-behavior-x: none;
}

.orders-grid :is(th, td) {
    padding-right: 2px;
    padding-left: 2px;
}

.orders-grid .orders-dimensions-cell {
    padding-right: 2px !important;
    padding-left: 2px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.orders-grid .dxbl-grid-table > tbody > tr > td:nth-child(2),
.orders-grid .dxbl-grid-table > thead > tr > th:nth-child(2) {
    border-left-width: 0 !important;
}

.orders-grid .dxbl-grid-table > tbody > tr.dxbl-grid-group-row > td {
    background-color: #e8f1f6;
    color: #17324d;
    font-weight: 700;
}

.orders-grid .dxbl-grid-table > tbody > tr > td:has(.orders-incar-trigger) {
    position: relative;
    padding: 0;
}

.orders-incar-trigger {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    border: 0;
    padding: 0 2px;
    background: transparent;
    color: #075aa8;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.orders-incar-trigger:hover {
    background: #eaf4ff;
}

.orders-incar-trigger:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: -2px;
}

.orders-incar-trigger:active {
    background: #dbeeff;
}

.orders-incar-popup-body {
    overflow: auto;
}

.orders-incar-context {
    display: grid;
    gap: 2px;
    margin-bottom: 12px;
    color: #17324d;
}

.orders-incar-context span {
    color: #5d6c7c;
    font-size: .92rem;
}

.orders-incar-table-shell {
    max-height: calc(70vh - 150px);
    overflow: auto;
}

.orders-incar-table {
    width: 100%;
    border-collapse: collapse;
    color: #17324d;
    font-size: 1rem;
}

.orders-incar-table :is(th, td) {
    border-bottom: 1px solid #dbe3ef;
    padding: 8px 10px;
    text-align: left;
    white-space: nowrap;
}

.orders-incar-table :is(th, td):last-child {
    text-align: right;
}

.orders-incar-table thead th {
    position: sticky;
    top: 0;
    background: #f4f7fa;
    font-weight: 700;
}

.orders-incar-table tfoot :is(th, td) {
    border-bottom: 0;
    background: #f8fafc;
    font-weight: 700;
}

.auth-panel {
    width: min(440px, 100%);
    padding: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgb(22 42 70 / 8%);
}

.auth-panel.wide {
    width: min(560px, 100%);
}

form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 7px;
    color: #344960;
    font-weight: 600;
}

.auth-panel input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd7e6;
    border-radius: 8px;
    padding: 8px 11px;
    color: #17324d;
    background: #ffffff;
}

.auth-panel input:focus {
    border-color: #1f6fb2;
    box-shadow: 0 0 0 3px rgb(31 111 178 / 14%);
    outline: none;
}

.primary {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #1f6fb2;
    color: #ffffff;
    font-weight: 700;
}

.primary:disabled {
    opacity: .7;
}

.alert,
.validation-summary-errors {
    border: 1px solid #f1c5c7;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff5f5;
    color: #a41e22;
}

.password-rules {
    display: grid;
    gap: 4px;
    border-left: 4px solid #1f6fb2;
    padding: 10px 14px;
    background: #f3f8fd;
    color: #526579;
    font-size: .9rem;
}

.password-rules strong {
    color: #17324d;
}

.password-rules span::before {
    content: "- ";
}

.users-admin-page {
    display: grid;
    gap: 18px;
    padding: 10px;
}

.users-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #dbe3ef;
    padding-bottom: 16px;
}

.users-admin-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.users-admin-header p:last-child {
    max-width: 760px;
    margin: 6px 0 0;
    color: #5d6c7c;
}

.users-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.users-search-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.users-search-field {
    display: grid;
    gap: 6px;
    width: min(100%, 620px);
}

.users-search-field > label {
    color: #344960;
    font-size: .84rem;
    font-weight: 700;
}

.users-filter-field {
    display: grid;
    min-width: 210px;
    gap: 6px;
    color: #344960;
    font-size: .84rem;
    font-weight: 700;
}

.users-filter-field select {
    min-height: 43px;
    border: 1px solid #bdc9d8;
    border-radius: 10px;
    padding: 8px 34px 8px 11px;
    background: #ffffff;
    color: #1d2f42;
    font: inherit;
}

.users-search-input {
    display: flex;
    overflow: hidden;
    border: 1px solid #bdc9d8;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.users-search-input:focus-within {
    border-color: #1f6fb2;
    box-shadow: 0 0 0 3px rgb(31 111 178 / 14%);
}

.users-search-input input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11px 13px;
    background: transparent;
    color: #1d2f42;
    font: inherit;
}

.users-search-input button {
    border: 0;
    border-left: 1px solid #dbe3ef;
    padding: 0 13px;
    background: #f4f7fa;
    color: #1f6fb2;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.users-search-input button:hover {
    background: #e8f1f8;
}

.users-search-count {
    padding-bottom: 11px;
    color: #68798b;
    font-size: .9rem;
    white-space: nowrap;
}

.users-loader,
.users-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    color: #5d6c7c;
}

.users-table-shell {
    overflow-x: auto;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgb(22 42 70 / 7%);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table :is(th, td) {
    border-bottom: 1px solid #e3e9f1;
    padding: 13px 15px;
    text-align: left;
    vertical-align: middle;
}

.users-table thead th {
    background: #f4f7fa;
    color: #344960;
    font-size: .82rem;
    text-transform: uppercase;
}

.users-table tbody tr:last-child td {
    border-bottom: 0;
}

.users-table td:first-child {
    display: grid;
    gap: 2px;
    min-width: 210px;
}

.users-table td:first-child span,
.users-table td:first-child small,
.users-no-role {
    color: #68798b;
}

.users-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 190px;
}

.users-roles span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #edf3f8;
    color: #36536d;
    font-size: .78rem;
    font-weight: 700;
}

.users-origin {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.users-origin-linked {
    background: #e8f6ef;
    color: #176b45;
}

.users-origin-webapp {
    background: #edf3f8;
    color: #36536d;
}

.users-origin-available {
    background: #eaf3ff;
    color: #155f9f;
}

.users-origin-detail {
    display: block;
    margin-top: 5px;
    color: #68798b;
}

.users-status {
    display: inline-flex;
    min-width: 110px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .8rem;
    font-weight: 700;
}

.users-status-active {
    background: #e8f6ef;
    color: #176b45;
}

.users-status-temporary {
    background: #eaf3ff;
    color: #155f9f;
}

.users-status-warning {
    background: #fff2df;
    color: #945700;
}

.users-actions {
    text-align: right !important;
}

.users-reset,
.users-role-button,
.users-secondary,
.users-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #b9c9da;
    border-radius: 8px;
    padding: 7px 12px;
    background: #ffffff;
    color: #1d527f;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.users-reset:hover:not(:disabled),
.users-role-button:hover:not(:disabled),
.users-secondary:hover:not(:disabled),
.users-manage:hover {
    border-color: #1f6fb2;
    background: #f1f7fc;
}

.users-reset:disabled,
.users-role-button:disabled,
.users-secondary:disabled {
    cursor: default;
    opacity: .55;
}

.users-password-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    padding: 20px;
    background: rgb(10 28 46 / 55%);
    place-items: center;
}

.users-password-dialog,
.users-role-dialog {
    width: min(480px, 100%);
    border-radius: 12px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgb(0 0 0 / 25%);
}

.users-password-dialog h2,
.users-role-dialog h2 {
    margin: 0;
}

.users-password-dialog > p:not(.eyebrow, .users-password-expiry) {
    color: #5d6c7c;
}

.users-password-value {
    margin: 20px 0 10px;
    border: 2px dashed #1f6fb2;
    border-radius: 10px;
    padding: 16px;
    background: #f3f8fd;
    color: #17324d;
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
    user-select: all;
}

.users-password-expiry,
.users-copy-message {
    color: #526579;
    font-size: .9rem;
}

.users-copy-message {
    font-weight: 700;
}

.users-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.users-password-actions .primary {
    padding: 7px 15px;
}

.users-role-dialog {
    width: min(560px, 100%);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
}

.users-role-dialog > p:not(.eyebrow, .users-role-note) {
    color: #5d6c7c;
}

.users-role-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.users-role-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #d7e1eb;
    border-radius: 9px;
    padding: 11px 13px;
    background: #ffffff;
    cursor: pointer;
}

.users-role-option.selected {
    border-color: #4389c4;
    background: #f0f7fd;
}

.users-role-option:has(input:disabled) {
    cursor: default;
    opacity: .58;
}

.users-role-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1f6fb2;
}

.users-role-option span {
    display: grid;
    gap: 2px;
}

.users-role-option small {
    color: #68798b;
}

.users-role-note {
    margin-bottom: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff2df;
    color: #7d4a00;
    font-size: .9rem;
}

.user-detail-page {
    display: grid;
    gap: 18px;
    padding: 10px;
}

.user-detail-back {
    width: fit-content;
    color: #1f6fb2;
    font-weight: 700;
    text-decoration: none;
}

.user-detail-back:hover {
    text-decoration: underline;
}

.user-detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #dbe3ef;
    padding-bottom: 16px;
}

.user-detail-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.user-detail-header p:last-child {
    margin: 5px 0 0;
    color: #647487;
}

.user-detail-statuses {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.user-detail-success {
    border: 1px solid #abd9c1;
    border-radius: 8px;
    padding: 11px 13px;
    background: #edf9f3;
    color: #176b45;
    font-weight: 700;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.user-detail-card {
    border: 1px solid #dbe3ef;
    border-radius: 11px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgb(22 42 70 / 6%);
}

.user-detail-profile,
.user-detail-badge,
.user-detail-security,
.user-detail-origin,
.user-detail-technical {
    grid-column: 1 / -1;
}

.user-detail-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.user-detail-card-header p {
    margin: 5px 0 0;
    color: #647487;
}

.user-detail-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.user-detail-form label {
    display: grid;
    gap: 6px;
    color: #344960;
    font-weight: 700;
}

.user-detail-form input,
.user-detail-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #b9c9da;
    border-radius: 8px;
    padding: 8px 10px;
    color: #17324d;
    font: inherit;
}

.user-detail-form input:focus,
.user-detail-form select:focus {
    border-color: #1f6fb2;
    outline: 3px solid rgb(31 111 178 / 14%);
}

.user-detail-form small {
    color: #718095;
    font-weight: 400;
}

.user-detail-actions,
.user-security-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.user-detail-actions {
    justify-content: flex-end;
}

.user-badge-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 13px 14px;
    background: #f8fafc;
}

.user-badge-summary span {
    color: #647487;
}

.user-badge-summary strong {
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.1rem;
    letter-spacing: .06em;
}

.users-badge-dialog {
    width: min(430px, calc(100vw - 28px));
    border-radius: 12px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgb(15 32 52 / 28%);
}

.users-badge-dialog h2 {
    margin: 0;
}

.users-badge-dialog > p:not(.eyebrow) {
    color: #647487;
}

.users-badge-form label {
    display: grid;
    gap: 7px;
    color: #344960;
    font-weight: 700;
}

.users-badge-form input {
    min-height: 48px;
    border: 1px solid #b9c9da;
    border-radius: 8px;
    padding: 9px 11px;
    color: #17324d;
    font: 700 1.2rem Consolas, "Courier New", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.users-badge-form input:focus {
    border-color: #1f6fb2;
    outline: 3px solid rgb(31 111 178 / 14%);
}

.user-security-summary {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.user-security-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e7ecf2;
    padding-bottom: 10px;
}

.user-security-summary > div > span {
    color: #647487;
}

.user-security-summary .users-roles {
    justify-content: flex-end;
}

.users-danger,
.users-activate {
    min-height: 40px;
    border-radius: 8px;
    padding: 7px 12px;
    background: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.users-danger {
    border: 1px solid #d99595;
    color: #a92c2c;
}

.users-danger:hover:not(:disabled) {
    background: #fff1f1;
}

.users-activate {
    border: 1px solid #83c3a3;
    color: #176b45;
}

.users-activate:hover:not(:disabled) {
    background: #edf9f3;
}

.users-danger:disabled,
.users-activate:disabled {
    cursor: default;
    opacity: .55;
}

.user-detail-origin dl,
.user-detail-technical dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 0;
}

.user-detail-origin dl > div,
.user-detail-technical dl > div {
    min-width: 0;
}

.user-detail-origin dt,
.user-detail-technical dt {
    color: #647487;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.user-detail-origin dd,
.user-detail-technical dd {
    margin: 5px 0 0;
    color: #17324d;
    font-weight: 700;
}

.user-technical-value {
    overflow-wrap: anywhere;
}

.documents-management-popup {
    min-width: min(700px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
}

@media (max-width: 640px) {
    .dxbl-modal:has(.orders-filter-popup) {
        right: 0 !important;
        left: 0 !important;
        width: 100dvw !important;
        max-width: 100dvw !important;
        overflow-x: hidden;
    }

    .dxbl-modal:has(.orders-filter-popup) > .dxbl-modal-root {
        box-sizing: border-box;
        width: 100dvw;
        max-width: 100dvw;
        padding-right: 16px;
        padding-left: 16px;
    }

    .dxbl-modal > .dxbl-modal-root > .orders-filter-popup {
        width: min(520px, calc(100dvw - 32px)) !important;
        max-width: min(520px, calc(100dvw - 32px)) !important;
        margin: 8px auto 0 !important;
        justify-self: center !important;
    }

    .orders-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content {
        padding-right: 10px;
    }

    .dxbl-modal:has(.orders-incar-popup) {
        right: 0 !important;
        left: 0 !important;
        width: 100dvw !important;
        max-width: 100dvw !important;
        overflow-x: hidden;
    }

    .dxbl-modal:has(.orders-incar-popup) > .dxbl-modal-root {
        box-sizing: border-box;
        width: 100dvw;
        max-width: 100dvw;
        padding-right: 14px;
        padding-left: 14px;
    }

    .dxbl-modal > .dxbl-modal-root > .orders-incar-popup {
        width: min(400px, calc(100dvw - 28px)) !important;
        max-width: min(400px, calc(100dvw - 28px)) !important;
        margin-right: auto !important;
        margin-left: auto !important;
        justify-self: center !important;
    }

    .orders-incar-popup-body {
        padding: 12px !important;
    }

    .orders-incar-context {
        margin-bottom: 10px;
    }

    .orders-incar-table {
        font-size: .95rem;
    }

    .orders-incar-table :is(th, td) {
        padding: 7px 6px;
    }

    .orders-incar-table :is(th, td):first-child {
        width: 38%;
    }

    .orders-incar-table :is(th, td):nth-child(2) {
        width: 40%;
    }

    .orders-incar-table :is(th, td):last-child {
        width: 22%;
    }

    .auth-panel {
        padding: 24px;
    }

    .auth-panel h1 {
        font-size: 1.55rem;
    }

    .launcher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .launcher-tile {
        border-radius: 18px;
        padding: 14px;
    }

    .launcher-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .launcher-icon svg {
        width: 42px;
        height: 42px;
    }

    .launcher-title {
        font-size: 1.3rem;
    }

    .stats-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-chart-shell {
        padding: 12px;
    }

    .users-admin-header {
        align-items: stretch;
        flex-direction: column;
    }

    .users-search-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .users-search-field {
        width: 100%;
    }

    .users-filter-field {
        width: 100%;
    }

    .users-search-count {
        padding-bottom: 0;
    }

    .users-table :is(th, td) {
        padding: 10px;
    }

    .users-password-dialog {
        padding: 22px;
    }

    .users-role-dialog {
        padding: 22px;
    }

    .user-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-detail-statuses {
        justify-content: flex-start;
    }

    .user-detail-grid,
    .user-detail-form,
    .user-detail-origin dl,
    .user-detail-technical dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .user-detail-profile,
    .user-detail-security,
    .user-detail-origin,
    .user-detail-technical {
        grid-column: auto;
    }

    .user-detail-actions,
    .user-security-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .users-password-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
