/* Portal badge dimensions and base appearance are managed only here. */
:root {
    --portal-badge-min-width: 75px;
    --portal-badge-min-height: 1.5rem;
    --portal-badge-padding-inline: .5rem;
    --portal-badge-border-radius: 999px;
    --portal-badge-font-size: .75rem;
    --portal-badge-font-weight: 600;
    --portal-badge-gap: .25rem;
}

html,
body {
    min-height: 100%;
}

.portal-phone-editor {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 8.75rem minmax(0, 1fr);
    gap: .5rem;
}

.portal-phone-editor__country,
.portal-phone-editor__number {
    min-width: 0;
}

.portal-phone-editor__country .dx-texteditor-input,
.portal-phone-editor__number .dx-texteditor-input {
    min-width: 0;
}

.portal-phone-country-item,
.portal-phone-editor__country .dx-dropdowneditor-field-before-template-wrapper {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.portal-phone-editor__country .dx-dropdowneditor-field-before-template-wrapper {
    padding-inline-start: .625rem;
}

.portal-phone-flag {
    display: inline-block;
    flex: 0 0 auto;
}

/* Popup titles follow the same active-language title-case rule as form captions and labels. */
.dx-popup-title {
    text-transform: capitalize;
}

@media (max-width: 30rem) {
    .portal-phone-editor {
        grid-template-columns: 7.75rem minmax(0, 1fr);
    }
}

body {
    background: #f5f7fb;
    color: #1f2937;
    font-family: Inter, "Segoe UI", sans-serif;
}

.form-guard-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dx-auth-page {
    margin: 0;
    background: #fff;
}

.dx-auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(46rem, 1fr) minmax(34rem, .82fr);
}

.dx-auth-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    display: grid;
    place-items: center;
    background-color: #fff;
}

.dx-auth-brand__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center top;
}

.dx-auth-brand--has-cover .dx-auth-brand__content {
    visibility: hidden;
}

.dx-auth-brand__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: min(100%, 46rem);
    padding: clamp(2rem, 5vw, 4.5rem);
    text-shadow: 0 1px 3px rgb(0 0 0 / 35%);
}

.dx-auth-brand__identity,
.dx-auth-content__fallback-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.125rem;
    font-weight: 650;
}

.dx-auth-brand__mark {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: .625rem;
    background: rgb(255 255 255 / 16%);
    color: inherit;
    font-weight: 800;
}

.dx-auth-brand__message {
    max-width: 32rem;
    margin: auto 0;
}

.dx-auth-brand__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 650;
    line-height: 1.18;
}

.dx-auth-brand__message > p:not(.dx-auth-brand__title),
.dx-auth-brand__message li,
.dx-auth-brand__version {
    color: rgb(255 255 255 / 86%);
}

.dx-auth-brand__message ul {
    display: grid;
    gap: .75rem;
    padding: 0;
    margin: 1.5rem 0 0;
    list-style: none;
}

.dx-auth-brand__message li::before {
    content: "✓";
    display: inline-grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    margin-right: .625rem;
    border-radius: 50%;
    background: rgb(255 255 255 / 18%);
    color: #fff;
    font-size: .75rem;
}

.dx-auth-brand__version {
    margin: 2rem 0 0;
    font-size: .8125rem;
}

.dx-auth-content {
    display: grid;
    min-width: 0;
    place-items: center;
    position: relative;
    background: #fff;
}

.dx-auth-content__inner {
    display: flex;
    width: min(100%, 24rem);
    min-height: 100vh;
    flex-direction: column;
    padding: clamp(1.5rem, 5vw, 4rem) 0;
}

.dx-auth-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.5rem;
}

.dx-auth-content__fallback-brand {
    color: #1f2937;
    font-size: 1rem;
}

.dx-auth-content__fallback-brand .dx-auth-brand__mark {
    border-color: transparent;
    background: var(--dx-auth-brand, #556ee6);
    color: #fff;
}

.dx-auth-content__logo {
    max-width: 9rem;
    max-height: 2.5rem;
    object-fit: contain;
}

.dx-auth-content__language {
    color: #475467;
    font-size: .8125rem;
    font-weight: 650;
    text-decoration: none;
}

.dx-auth-content__language:hover,
.dx-auth-content__language:focus-visible {
    color: var(--dx-auth-brand, #556ee6);
    text-decoration: underline;
}

.dx-auth {
    display: grid;
    flex: 1 0 auto;
    place-items: center;
    padding: 2rem 0;
}

.dx-auth__panel {
    width: 100%;
}

.dx-auth__eyebrow {
    margin: 0 0 .5rem;
    color: var(--dx-auth-brand, #556ee6);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.dx-auth h1 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 650;
}

.dx-auth__intro {
    margin: .5rem 0 1.5rem;
    font-size: .8125rem;
    color: #667085;
}

.dx-auth__password-rules {
    margin: 0 0 1rem;
    padding: .875rem 1rem;
    color: #475467;
    background: #f8fafc;
    border: 1px solid #e4e8ef;
    border-radius: .5rem;
    font-size: .8125rem;
    line-height: 1.5;
}

.dx-auth__password-rules ul {
    margin: .4rem 0 0;
    padding-inline-start: 1.25rem;
}

.dx-auth__label-row a {
    font-size: .875rem;
}

.dx-auth__label-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}

.dx-auth__label-row a {
    color: var(--dx-auth-brand, #556ee6);
}

.dx-auth__forgot-link {
    display: inline-block;
    width: 100%;
    margin: -.25rem 0 .75rem;
    color: var(--dx-auth-brand, #556ee6);
    font-size: .875rem;
    text-align: right;
}

.dx-auth .dx-field-item-label {
    font-weight: 600;
    font-size: .75rem;
}

.dx-auth__message {
    margin-bottom: 1rem;
    padding: .875rem 1rem;
    color: #9b1c1c;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.dx-auth__message p {
    margin: 0;
}

.dx-auth__message--success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dx-auth__resend-prompt {
    margin: 1.25rem 0 0;
    color: #667085;
    font-size: .8125rem;
    text-align: center;
}

.dx-auth__resend-form .dx-layout-manager .dx-field-item {
    padding: 0;
}

.dx-auth__resend-form .dx-field-item-content {
    text-align: center;
}

.dx-auth__resend-form .dx-button {
    color: var(--dx-auth-brand, #556ee6);
    font-weight: 600;
}

.dx-auth__back-link {
    margin: .75rem 0 0;
    text-align: center;
    font-size: .875rem;
}

.dx-auth__back-link a,
.dx-auth__primary-link {
    color: var(--dx-auth-brand, #556ee6);
    font-weight: 600;
    text-decoration: none;
}

.dx-auth__back-link a:hover,
.dx-auth__back-link a:focus-visible,
.dx-auth__primary-link:hover,
.dx-auth__primary-link:focus-visible {
    text-decoration: underline;
}

#frmAccountVerifyCode .dx-field-item-content {
    min-width: 0;
}

#frmAccountVerifyCode .dx-layout-manager .dx-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 3.5rem));
    justify-content: space-between;
    column-gap: clamp(.5rem, 2vw, .875rem);
    row-gap: .75rem;
}

#frmAccountVerifyCode .dx-layout-manager .dx-field-item {
    min-width: 0;
    width: auto;
    padding: 0;
}

#frmAccountVerifyCode .dx-texteditor {
    width: 100%;
    max-width: 3.5rem;
    min-width: 0;
    margin-inline: auto;
    aspect-ratio: 1;
}

#frmAccountVerifyCode .dx-texteditor-input {
    height: 100%;
    padding-right: 0;
    padding-left: 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
}

#btnLoginSubmit {
    margin-top: .25rem;
}

.dx-auth #btnLoginSubmit .dx-button {
    background-color: var(--dx-auth-brand, #556ee6);
    border-color: var(--dx-auth-brand, #556ee6);
}

.dx-auth .dx-texteditor.dx-state-focused {
    border-color: var(--dx-auth-brand, #556ee6);
    box-shadow: 0 0 0 3px rgb(var(--dx-auth-brand-rgb, 85, 110, 230) / 16%);
}

.dx-auth-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eaecf0;
    color: #667085;
    font-size: .6875rem;
}

.dx-auth-footer a {
    color: inherit;
    text-decoration: none;
}

.dx-auth-footer a:hover,
.dx-auth-footer a:focus-visible {
    color: var(--dx-auth-brand, #556ee6);
    text-decoration: underline;
}

.dx-switch-on-value .dx-switch-handle::before {
    background-color: #15b21a;
}

@media (max-width: 991px) {
    .dx-auth-shell {
        grid-template-columns: 1fr;
    }

    .dx-auth-brand {
        display: none;
    }

    .dx-auth-content__inner {
        min-height: 100vh;
    }
}

/* Authenticated application shell */
.portal-shell {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    background: #f5f7fa;
    color: #172033;
}

.portal-shell__inner {
    width: min(100% - 2rem, 110rem);
    margin-inline: auto;
}

.portal-header {
    background: #fff;
    border-bottom: 1px solid #e4e8ef;
}

.portal-header__inner {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.portal-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .75rem;
    color: #183b63;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.portal-brand img {
    display: block;
    width: auto;
    max-width: 13rem;
    height: 2.5rem;
    object-fit: contain;
    object-position: left center;
}

.portal-brand__mark,
.portal-dashboard-card__icon {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    background: var(--portal-navigation-background, var(--portal-primary, #556ee6));
    color: #fff;
    font-weight: 700;
}

.portal-brand__mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
}

.portal-header__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .5rem;
}

#frmPortalLogout {
    display: none;
}

#sbPortalLanguage {
    flex: 0 0 5.25rem;
}

#sbPortalLanguage.dx-texteditor,
#sbPortalLanguage.dx-texteditor.dx-state-hover,
#sbPortalLanguage.dx-texteditor.dx-state-focused {
    border: 0;
    box-shadow: none;
}

#sbPortalLanguage .dx-texteditor-input {
    min-width: 0;
    padding: 0 .25rem 0 .75rem;
    color: #344054 !important;
    -webkit-text-fill-color: #344054;
    font-size: .8125rem;
    font-weight: 600;
    opacity: 1;
    text-align: left;
}

#sbPortalLanguage .dx-dropdowneditor-button {
    width: 2.25rem;
    color: #344054;
    opacity: 1;
}

#ddbPortalUser .dx-button {
    max-width: 16rem;
    color: #344054;
}

#ddbPortalUser .dx-button-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-navigation {
    position: sticky;
    z-index: 100;
    top: 0;
    background: var(--portal-navigation-background, var(--portal-primary, #556ee6));
    border-bottom: 1px solid color-mix(in srgb, var(--portal-navigation-foreground, #fff) 18%, transparent);
    box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}

.portal-navigation #mnuPortalMain {
    background: transparent;
}

.portal-main-menu .dx-menu-item {
    min-height: 2.75rem;
    transition: background-color 120ms ease, color 120ms ease;
}

.portal-main-menu .dx-menu-item-content {
    display: flex;
    min-height: inherit;
    align-items: center;
    gap: .625rem;
    padding-inline: 1rem;
}

.portal-main-menu.dx-menu .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item {
    min-height: 3.25rem;
}

.portal-main-menu .dx-menu-item .dx-icon {
    width: 1.125rem;
    color: #667085;
    font-size: .9375rem;
    text-align: center;
    transition: color 120ms ease;
}

.portal-main-menu .dx-submenu .dx-menu-item.dx-state-hover {
    background-color: color-mix(in srgb, var(--portal-primary, #556ee6) 8%, #fff);
}

.portal-main-menu .dx-menu-item.dx-state-focused {
    outline: 2px solid color-mix(in srgb, var(--portal-primary, #556ee6) 35%, transparent);
    outline-offset: -2px;
}

.portal-main-menu .dx-submenu {
    min-width: 12rem;
    padding: 0;
    background: #eef0ff;
    background: color-mix(in srgb, var(--portal-primary, #556ee6) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--portal-primary, #556ee6) 28%, #fff);
    border-radius: 0 0 .5rem .5rem;
    box-shadow: 0 .625rem 1.5rem rgb(16 24 40 / 14%);
    overflow: hidden;
}

.portal-main-menu .dx-submenu .dx-menu-items-container {
    display: block;
    width: 100% !important;
    min-width: 0;
    padding: .375rem;
    background: transparent;
    box-sizing: border-box;
}

.portal-main-menu .dx-submenu .dx-scrollable,
.portal-main-menu .dx-submenu .dx-scrollable,
.portal-main-menu .dx-submenu .dx-scrollable-wrapper,
.portal-main-menu .dx-submenu .dx-scrollable-container,
.portal-main-menu .dx-submenu .dx-scrollable-content,
.portal-main-menu .dx-submenu .dx-scrollview-content {
    background: transparent;
}

.portal-main-menu .dx-submenu .dx-scrollable-wrapper,
.portal-main-menu .dx-submenu .dx-scrollable-container,
.portal-main-menu .dx-submenu .dx-scrollable-content,
.portal-main-menu .dx-submenu .dx-scrollview-content {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
}

.portal-main-menu .dx-submenu .dx-scrollable-container {
    overflow: visible !important;
}

.portal-main-menu .dx-submenu .dx-menu-item-wrapper,
.portal-main-menu .dx-submenu .dx-menu-item {
    width: 100% !important;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.portal-main-menu .dx-submenu .dx-menu-item-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portal-main-menu .dx-submenu .dx-menu-item {
    min-height: 2.875rem;
    color: #25324a;
    border-radius: .375rem;
}

.portal-main-menu .dx-submenu .dx-menu-item.dx-state-hover,
.portal-main-menu .dx-submenu .dx-menu-item.dx-menu-item-expanded {
    background: color-mix(in srgb, var(--portal-primary, #556ee6) 21%, #fff);
}

.portal-main-menu .dx-submenu .dx-menu-item-selected {
    background: color-mix(in srgb, var(--portal-primary, #556ee6) 28%, #fff);
    box-shadow: inset 3px 0 0 var(--portal-primary, #556ee6);
    font-weight: 600;
}

.portal-main-menu .dx-submenu .dx-menu-item-selected .dx-menu-item-text,
.portal-main-menu .dx-submenu .dx-menu-item-selected .dx-menu-item-popout,
.portal-main-menu .dx-submenu .dx-menu-item-selected .dx-icon,
.portal-main-menu .dx-submenu .dx-menu-item.dx-state-hover .dx-menu-item-text,
.portal-main-menu .dx-submenu .dx-menu-item.dx-state-hover .dx-menu-item-popout,
.portal-main-menu .dx-submenu .dx-menu-item.dx-state-hover .dx-icon {
    color: color-mix(in srgb, var(--portal-primary, #556ee6) 70%, #101828);
}

.portal-main-menu.dx-menu .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item-selected {
    font-weight: 600;
}

.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item {
    color: var(--portal-navigation-foreground, #fff);
}

.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item .dx-menu-item-text,
.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item .dx-menu-item-popout,
.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item .dx-icon {
    color: inherit;
}

.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item.dx-state-hover {
    color: var(--portal-navigation-foreground, #fff);
    background-color: color-mix(in srgb, var(--portal-navigation-foreground, #fff) 12%, transparent);
}

.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item.dx-menu-item-expanded {
    color: var(--portal-navigation-foreground, #fff);
    background-color: color-mix(in srgb, var(--portal-navigation-foreground, #fff) 14%, transparent);
}

.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item.dx-menu-item-expanded .dx-menu-item-text,
.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item.dx-menu-item-expanded .dx-menu-item-popout,
.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item.dx-menu-item-expanded .dx-icon {
    color: inherit;
}

.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item-selected {
    color: var(--portal-navigation-foreground, #fff);
    background-color: color-mix(in srgb, var(--portal-navigation-foreground, #fff) 18%, transparent);
    box-shadow: inset 0 -3px 0 var(--portal-navigation-foreground, #fff);
}

.portal-navigation #mnuPortalMain > .dx-menu-horizontal > .dx-menu-items-container > .dx-menu-item-wrapper > .dx-menu-item.dx-state-focused {
    outline-color: color-mix(in srgb, var(--portal-navigation-foreground, #fff) 65%, transparent);
}

.portal-content {
    min-height: calc(100vh - 7.75rem);
    padding-block: 0.75rem 3rem;
}

.portal-page {
    display: grid;
    gap: 0.5rem;
}

.portal-list-panel {
    min-width: 0;
    overflow: hidden;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: .75rem;
}

.portal-page__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.portal-page__heading--with-action {
    flex-wrap: wrap;
    align-items: center;
}

.portal-page__heading-link {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    margin-inline-start: auto;
    color: var(--portal-primary, #556ee6);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    white-space: nowrap;
}

.portal-page__heading-link:hover {
    color: color-mix(in srgb, var(--portal-primary, #556ee6) 82%, #172033);
    text-decoration-thickness: 2px;
}

.portal-page__heading-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--portal-primary, #556ee6) 24%, transparent);
    outline-offset: 3px;
    border-radius: .2rem;
}

.portal-page__heading h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.25;
}

.portal-detail-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .65rem;
}

.portal-detail-heading > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.portal-detail-heading__back {
    display: inline-flex;
    flex: 0 0 auto;
    width: 1.1em;
    height: 1.1em;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--portal-primary, #556ee6) 72%, #667085);
    font-size: .9em;
    line-height: 1;
    text-decoration: none;
    border-radius: 50%;
    margin-top:5px;
}

.portal-detail-heading__back:hover {
    color: var(--portal-primary, #556ee6);
}

.portal-detail-heading__back:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--portal-primary, #556ee6) 24%, transparent);
    outline-offset: 3px;
}

.portal-page__heading p {
    max-width: 46rem;
    margin: .5rem 0 0;
    color: #667085;
    line-height: 1.6;
}

.dx-datagrid .dx-command-edit {
    text-align: center;
}

.portal-transaction-number {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: .25rem;
}

.portal-transaction-number__value {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-transaction-number__copy {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    flex: 0 0 1.5rem;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    padding: 0;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: .25rem;
    cursor: pointer;
}

.portal-transaction-number__copy:hover {
    color: var(--portal-primary, #556ee6);
    background: color-mix(in srgb, var(--portal-primary, #556ee6) 9%, transparent);
}

.portal-transaction-number__copy:focus-visible {
    color: var(--portal-primary, #556ee6);
    outline: 2px solid color-mix(in srgb, var(--portal-primary, #556ee6) 32%, transparent);
    outline-offset: 1px;
}

.portal-clipboard-input {
    position: fixed;
    inset-inline-start: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.page__command,
.page__command .dx-icon,
.page__command .fal {
    /* color: #667085;
    font-weight: 400;*/
    font-size: 14px !important;
}

.page__command:hover,
.page__command:focus-visible,
.page__command:hover .dx-icon,
.page__command:focus-visible .dx-icon,
.page__command:hover .fal,
.page__command:focus-visible .fal {
    color: #344054;
    /*font-weight: 400;*/
}

.page__command--menu {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.page__command--menu .dx-button {
    width: auto;
    min-width: 0;
    height: auto;
}

.page__command--menu .dx-button-content {
    padding: 2px;
}

.page__command--menu .dx-button,
.page__command--menu .dx-button.dx-state-hover,
.page__command--menu .dx-button.dx-state-focused,
.page__command--menu .dx-button.dx-state-active {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.page__command-popup .dx-list-item-icon,
.page__command-popup .dx-list-item .dx-icon,
.page__command-popup .dx-list-item .fal {
    font-size: 14px !important;
}

.portal-empty-state {
    display: grid;
    min-height: 18rem;
    place-items: center;
    align-content: center;
    gap: 1rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: .75rem;
    color: #667085;
    text-align: center;
}

.portal-empty-state__icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--portal-primary, #556ee6) 10%, #fff);
    color: var(--portal-primary, #556ee6);
    font-weight: 700;
    letter-spacing: .1em;
}

@media (max-width: 720px) {
    .portal-list-panel {
        padding: .5rem;
    }
}

@media (max-width: 640px) {
    .portal-shell__inner {
        width: min(100% - 1rem, 110rem);
    }

    .portal-header__inner {
        min-height: 4rem;
        gap: .5rem;
    }

    .portal-brand img {
        max-width: 8.5rem;
        height: 2rem;
    }

    #ddbPortalUser .dx-button {
        max-width: 3rem;
    }

    #ddbPortalUser .dx-button-text {
        display: none;
    }

    .portal-content {
        padding-block: 1.25rem 2rem;
    }
}

@media (max-width: 480px) {
    .dx-auth-content__inner {
        padding: 1.25rem;
    }

    .dx-auth {
        padding: 2.5rem 0;
    }
}

/* Auth split layout: mirrors the established Portal login composition. */
.dx-auth-shell {
    grid-template-columns: minmax(0, 60fr) minmax(30rem, 40fr);
    margin: 0 auto;
    width: 100%;
}

.dx-auth-content__inner {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 3rem);
}

.dx-auth-content__language {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: clamp(1.5rem, 3vw, 3rem);
    top: clamp(1.5rem, 3vw, 3rem);
    z-index: 2;
}

#sbAuthLanguage {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    min-width: 5.25rem;
    height: 2.25rem;
}

#sbAuthLanguage.dx-state-hover,
#sbAuthLanguage.dx-state-focused,
#sbAuthLanguage.dx-state-active {
    background: transparent;
    border-color: transparent;
}

#sbAuthLanguage:focus-within {
    outline: 2px solid color-mix(in srgb, var(--dx-auth-brand, #556ee6) 45%, transparent);
    outline-offset: 2px;
}

#sbAuthLanguage .dx-texteditor-input {
    min-width: 0;
    height: 2.25rem;
    padding: 0 .25rem 0 .75rem;
    color: #344054 !important;
    -webkit-text-fill-color: #344054;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 2.25rem;
    opacity: 1;
    text-overflow: clip;
}

#sbAuthLanguage .dx-dropdowneditor-button {
    width: 2.25rem;
    color: #344054;
    opacity: 1;
}

#sbAuthLanguage .dx-dropdowneditor-icon {
    color: #344054;
    opacity: 1;
}

.dx-auth-content__main {
    display: grid;
    flex: 1 0 auto;
    place-items: center;
    padding: 2rem 0;
}

.dx-auth-content__form-wrapper {
    width: min(100%, 26rem);
}

.dx-auth-content__logo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 2.75rem;
    margin: 0 0 1.5rem;
    object-fit: contain;
}

.dx-auth-content__fallback-brand {
    margin-bottom: 1.5rem;
}

.dx-auth {
    display: block;
    padding: 0;
}

.dx-auth .dx-field-item-label {
    padding-bottom: .375rem;
}

.dx-auth .dx-field-item {
    padding-top: 0;
    padding-bottom: .75rem;
}

.dx-auth__forgot-link {
    margin-top: -.5rem;
}

#btnLoginSubmit.dx-button,
#btnForgotPasswordSubmit.dx-button,
#btnVerifySubmit.dx-button,
#btnVerifyCodeSubmit.dx-button,
#btnResetPasswordSubmit.dx-button {
    margin-top: .75rem;
    background-color: var(--dx-auth-brand, #556ee6);
    border-color: var(--dx-auth-brand, #556ee6);
    color: #fff;
}

#btnLoginSubmit.dx-button:hover,
#btnLoginSubmit.dx-button:focus-visible {
    filter: brightness(.92);
}

.dx-auth__support {
    margin: 1.25rem 0 0;
    color: #667085;
    font-size: .75rem;
    text-align: center;
}

.dx-auth__support a {
    color: var(--dx-auth-brand, #556ee6);
    font-weight: 600;
    text-decoration: none;
}

.dx-auth-merchant {
    margin-top: 1.25rem;
    color: #667085;
    font-size: .75rem;
    line-height: 1.6;
    text-align: center;
}

.dx-auth-merchant p {
    margin: 0 0 .25rem;
}

.dx-auth-merchant a {
    color: inherit;
    text-decoration: none;
}

.dx-auth-merchant span {
    margin: 0 .375rem;
    color: #d0d5dd;
}

.dx-auth-footer {
    display: block;
    margin-top: 0;
    padding-top: 1.25rem;
    text-align: center;
}

.dx-auth-footer__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem .5rem;
    margin: 0 0 .75rem;
}

.dx-auth-footer__links > span[aria-hidden] {
    color: #d0d5dd;
}

.dx-auth-payment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem .75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dx-auth-payment li:not(.portal-badge) {
    display: inline-flex;
    align-items: center;
}

.dx-auth-payment__card {
    align-items: center;
    border: 1px solid #d8dee8;
    border-radius: .2rem;
    display: inline-flex;
    font-size: .65rem;
    font-weight: 800;
    height: 1.55rem;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0 .25rem;
}

.dx-auth-payment__mastercard {
    background: #eb001b;
    border-color: #eb001b;
    color: #fff;
}

.dx-auth-payment__visa {
    color: #1434cb;
}

.dx-auth-payment__amex {
    background: #006fcf;
    border-color: #006fcf;
    color: #fff;
}

.dx-auth-payment img {
    width: auto;
    height: 1.375rem;
    object-fit: contain;
}

.dx-auth-payment__badge {
    border-color: #d0d5dd;
    background: #fff;
    color: #667085;
}

@media (max-width: 991px) {
    .dx-auth-shell {
        grid-template-columns: 1fr;
    }

    .dx-auth-content__inner {
        min-height: 100vh;
        padding: 1.5rem;
    }

    .dx-auth-content__language {
        right: 1.5rem;
        top: 1.5rem;
    }
}
.portal-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: var(--portal-badge-min-width);
    min-height: var(--portal-badge-min-height);
    max-width: 100%;
    padding-inline: var(--portal-badge-padding-inline);
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--portal-badge-border-radius);
    box-sizing: border-box;
    gap: var(--portal-badge-gap);
    font-size: var(--portal-badge-font-size);
    font-weight: var(--portal-badge-font-weight);
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.portal-enum-badge {
    border-color: color-mix(in srgb, var(--portal-primary, #556ee6) 24%, #dfe5ec);
    background: color-mix(in srgb, var(--portal-primary, #556ee6) 10%, #fff);
    color: #344054;
}

.portal-enum-badge--info {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.portal-enum-badge--success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.portal-enum-badge--warning {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.portal-enum-badge--danger {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b42318;
}

.portal-enum-badge--neutral {
    border-color: #d0d5dd;
    background: #f8fafc;
    color: #475467;
}

/* Keep form hierarchy consistent without changing localized resource values or acronyms. */
.dx-form .dx-form-group-caption,
.dx-form .dx-field-item-label-text,
.dx-form label {
    text-transform: capitalize;
}

.dx-toast-content {
    max-width: calc(100vw - 2rem);
}

.dx-toast-message {
    line-height: 1.4;
    white-space: normal;
}
