html,
body {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(244, 162, 97, 0.08), transparent 24%),
        radial-gradient(circle at bottom left, rgba(47, 126, 133, 0.1), transparent 22%),
        linear-gradient(180deg, #f6f4ee 0%, #eef2f4 100%);
    color: #183136;
    direction: rtl;
    overflow-x: hidden;
}

:root {
    --ce-surface: #fffdf8;
    --ce-surface-strong: #fffdf8;
    --ce-border: rgba(24, 49, 54, 0.1);
    --ce-border-strong: rgba(24, 49, 54, 0.16);
    --ce-muted: #61767c;
    --ce-heading: #17383e;
    --ce-accent: #0e5f66;
    --ce-accent-soft: rgba(14, 95, 102, 0.08);
    --ce-warm: rgba(244, 162, 97, 0.14);
    --ce-shadow: 0 24px 60px rgba(17, 38, 44, 0.08);
    --ce-shadow-soft: 0 14px 34px rgba(17, 38, 44, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a,
.btn-link {
    color: #0d6482;
}

.btn-primary {
    color: #fff;
    background-color: #0d6482;
    border-color: #0b556e;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(13, 100, 130, 0.25);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "حدث خطأ غير متوقع.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.mud-main-content {
    min-height: 100vh;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.mud-button-root,
.mud-input-control {
    min-height: 44px;
}

.mud-paper,
.mud-card {
    box-shadow: var(--ce-shadow-soft);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.my-2 {
    margin-block: 0.5rem;
}

.my-4 {
    margin-block: 1rem;
}

.py-8 {
    padding-block: 2rem;
}

.page-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--ce-surface);
    border: 1px solid var(--ce-border);
    border-radius: 26px;
    padding: 1.15rem;
    box-shadow: 0 16px 40px rgba(17, 38, 44, 0.06);
    overflow: hidden;
}

.page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 30%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 24%);
    pointer-events: none;
}

.page-shell > * {
    position: relative;
    z-index: 1;
}

.page-header,
.section-header,
.account-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-header {
    margin-bottom: 1rem;
}

.page-actions {
    justify-content: flex-start;
}

.section-header {
    margin-bottom: 1rem;
}

.muted-text {
    color: var(--ce-muted);
}

.page-shell,
.page-header,
.section-header,
.summary-strip__item,
.dialog-summary__item,
.metric-card,
.section-card,
.mini-card,
.account-card,
.settlement-card,
.report-catalog-card {
    direction: rtl;
    text-align: right;
}

.filters-grid {
    margin-bottom: 1rem;
}

.selector-with-action {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.selector-with-action__field {
    flex: 1 1 auto;
    min-width: 0;
}

.selector-with-action__button {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

@media (max-width: 600px) {
    .selector-with-action {
        flex-direction: column;
        align-items: stretch;
    }

    .selector-with-action__button {
        align-self: flex-start;
        margin-top: 0;
    }
}

.metric-card,
.section-card,
.mini-card,
.account-card,
.settlement-card {
    background: #ffffff;
    border: 1px solid var(--ce-border);
    border-radius: 20px;
    box-shadow: none;
}

.metric-card {
    min-height: 100%;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
}

.metric-title {
    color: var(--ce-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.section-card {
    padding: 1rem;
    min-width: 0;
}

.mini-card {
    padding: 0.9rem 1rem;
}

.account-card {
    padding: 1rem;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 249, 0.86));
}

.settlement-card {
    padding: 1rem;
    min-height: 100%;
}

.settlement-card--active {
    border-color: rgba(14, 95, 102, 0.35);
    box-shadow: 0 0 0 2px rgba(14, 95, 102, 0.12);
}

.busy-surface {
    position: relative;
    min-height: inherit;
}

.busy-surface__content {
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.busy-surface--visible .busy-surface__content {
    filter: blur(2px);
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}

.busy-surface__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 253, 248, 0.34);
    backdrop-filter: blur(4px);
    border-radius: inherit;
}

.busy-surface__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    max-width: min(320px, 100%);
    padding: 1rem 1.25rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ce-border-strong);
    box-shadow: var(--ce-shadow);
}

.payments-details__settlements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.payments-details__settlement-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.payments-details__settlement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.payments-details__settlement-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.payments-details__metric {
    min-width: 0;
    padding: 0.72rem 0.82rem;
    border: 1px solid var(--ce-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fbfaf7);
}

.payments-details__metric-value {
    display: block;
    margin-top: 0.3rem;
    font-weight: 700;
    color: var(--ce-heading);
}

.payments-details__settlement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payments-details__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-width: 0;
}

.feature-list {
    margin: 0;
    padding-inline-start: 1.2rem;
    color: var(--ce-heading);
    line-height: 1.9;
}

.feature-list li + li {
    margin-top: 0.35rem;
}

.section-card .mud-table-root,
.page-shell .mud-table-root,
.page-shell .mud-table-container {
    background: transparent;
    max-width: 100%;
}

.page-shell .mud-data-grid,
.page-shell .mud-table-container {
    width: 100%;
    min-width: 0;
}

.page-shell .mud-table-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border-radius: 18px;
}

.page-shell .mud-table-head .mud-table-cell {
    background: rgba(14, 95, 102, 0.06);
    color: var(--ce-heading);
    text-align: center;
}

.page-shell .mud-table-row .mud-table-cell,
.page-shell .mud-data-grid-cell {
    border-bottom-color: rgba(24, 49, 54, 0.08);
}

.page-shell .mud-data-grid-table {
    background: #ffffff;
    border-radius: 18px;
    overflow: visible;
}

.page-shell .mud-table-root,
.page-shell .mud-data-grid-table {
    min-width: max(100%, 980px);
}

.statement-card .mud-table-root,
.statement-card .mud-table-container {
    min-width: max(100%, 1120px);
}

.page-shell .mud-table-head .mud-table-cell,
.page-shell .mud-table-row .mud-table-cell,
.page-shell .mud-data-grid-cell,
.page-shell .mud-table-body .mud-table-cell {
    white-space: nowrap;
}

.page-shell .mud-table-body .mud-table-cell,
.page-shell .mud-table-row .mud-table-cell,
.page-shell .mud-data-grid-cell,
.page-shell .mud-alert-message,
.page-shell .mud-chip-content {
    text-align: right;
}

.transactions-grid .mud-table-container,
.transactions-grid .mud-table-root,
.transactions-grid .mud-data-grid,
.transactions-grid .mud-data-grid-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.transactions-grid .mud-table-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.transactions-grid .mud-data-grid-table,
.transactions-grid .mud-table-root {
    width: 100%;
    min-width: max(100%, 1180px);
    table-layout: auto;
}

.transactions-grid .mud-table-head .mud-table-cell,
.transactions-grid .mud-table-row .mud-table-cell,
.transactions-grid .mud-data-grid-cell,
.transactions-grid .mud-table-body .mud-table-cell {
    min-width: max-content;
    white-space: nowrap;
    overflow: visible;
    box-sizing: border-box;
    padding-inline: 0.75rem;
    padding-block: 0.65rem;
}

.transactions-grid__text {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 0.92rem;
}

.transactions-grid__text--numeric {
    text-align: right;
}

.transactions-grid__chip {
    display: inline-flex;
    max-width: none;
    vertical-align: middle;
    min-width: max-content;
}

.transactions-grid__chip .mud-chip-content {
    min-width: max-content;
}

.transactions-grid__chip-label {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 0.85rem;
}

.transactions-grid__actions {
    justify-content: center;
    min-width: max-content;
    flex-wrap: nowrap;
}

.transactions-grid__actions .mud-icon-button {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
}

.page-shell .mud-input > input,
.page-shell .mud-input > textarea,
.page-shell .mud-select-input,
.page-shell .mud-picker-input-control {
    direction: rtl;
}

.page-shell .numeric-field .mud-input-control-input-container,
.page-shell .numeric-field .mud-input-slot,
.page-shell .numeric-field .mud-input-root,
.page-shell .numeric-field .mud-input > input,
.page-shell .numeric-field input,
.page-shell .numeric-field textarea {
    direction: ltr !important;
    text-align: right !important;
    unicode-bidi: plaintext;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.page-shell .numeric-field .mud-input-slot,
.page-shell .numeric-field .mud-input-control-input-container,
.page-shell .numeric-field .mud-input-root {
    justify-content: flex-end;
}

.value-ltr,
.value-ltr input,
.value-ltr span {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: end;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.page-shell .mud-chip {
    font-weight: 600;
}

.page-shell .mud-button-root {
    border-radius: 14px;
}

.page-shell .mud-input-control .mud-input-slot {
    border-radius: 16px;
}

.page-shell .mud-tabs-panels {
    padding-top: 1rem;
}

.page-shell .mud-dialog-content {
    padding-top: 0.5rem;
}

.report-control-panel {
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
}

.report-chip-list {
    align-items: center;
}

.dashboard-status-strip {
    background:
        linear-gradient(135deg, rgba(14, 95, 102, 0.04), rgba(255, 255, 255, 0.86));
}

.state-page {
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    padding-block: 2rem;
}

.state-page__icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ce-border);
}

.state-page__alert {
    width: min(680px, 100%);
}

.filter-card {
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
}

.report-page-shell {
    padding-bottom: 1.35rem;
}

.report-catalog-card {
    min-height: 100%;
    padding: 1.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.96)),
        radial-gradient(circle at top left, rgba(14, 95, 102, 0.08), transparent 28%);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.report-catalog-card:hover {
    transform: translateY(-3px);
    border-color: var(--ce-border-strong);
    box-shadow: var(--ce-shadow-soft);
}

.report-catalog-card .mud-button-root {
    align-self: flex-start;
}

.report-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-print-surface {
    display: block;
}

.report-table-shell {
    overflow-x: auto;
    max-width: 100%;
}

.report-table-shell .mud-table-root {
    min-width: 100%;
}

.report-table-shell .mud-table-head .mud-table-cell {
    font-weight: 700;
    white-space: nowrap;
}

.report-table-shell .mud-table-body .mud-table-cell {
    vertical-align: top;
}

.party-statement-print-header {
    display: grid;
    gap: 1rem;
}

.party-statement-print-header__top {
    display: grid;
    direction: ltr;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: start;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(24, 49, 54, 0.14);
}

.party-statement-print-header__company {
    direction: rtl;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ce-heading);
    padding: 0 1rem;
}

.party-statement-print-header__meta {
    direction: rtl;
    display: grid;
    gap: 0.2rem;
}

.party-statement-print-header__meta--date {
    justify-self: start;
    text-align: left;
}

.party-statement-print-header__meta--user {
    justify-self: end;
    text-align: right;
}

.party-statement-print-header__label {
    color: var(--ce-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.party-statement-print-header__value {
    color: var(--ce-heading);
    font-size: 1rem;
    font-weight: 700;
}

.party-statement-print-header__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.party-statement-print-header__summary-item {
    padding: 0.95rem 1rem;
    border: 1px solid var(--ce-border);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
    display: grid;
    gap: 0.3rem;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.summary-strip--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-strip__item {
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--ce-border);
    border-radius: 18px;
    background: #ffffff;
}

.summary-strip__value {
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--ce-heading);
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.workspace-grid--split {
    grid-template-columns: minmax(0, 1.92fr) minmax(300px, 0.78fr);
    align-items: start;
}

.workspace-main,
.workspace-aside {
    min-width: 0;
    max-width: 100%;
}

.workspace-aside .section-card {
    position: sticky;
    top: 0.5rem;
}

.dialog-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dialog-summary__item {
    padding: 0.75rem 0.9rem;
    border-radius: 18px;
    border: 1px solid var(--ce-border);
    background: linear-gradient(180deg, #ffffff, #fbfaf7);
}

.dialog-summary__label {
    color: var(--ce-muted);
    font-size: 0.8rem;
}

.dialog-summary__value {
    margin-top: 0.35rem;
    color: var(--ce-heading);
    font-weight: 700;
}

.field-help {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
}

.field-help--inline {
    width: auto;
    align-items: center;
}

.field-help__field {
    flex: 1 1 auto;
    min-width: 0;
}

.field-help--inline .field-help__field {
    flex: 0 1 auto;
}

.field-help__icon {
    flex: 0 0 auto;
    margin-top: 0.45rem;
    width: 2rem;
    height: 2rem;
    color: var(--ce-accent) !important;
}

.field-help--inline .field-help__icon {
    margin-top: 0;
}

.field-help__tooltip-text {
    max-width: min(22rem, calc(100vw - 3rem));
    line-height: 1.6;
    white-space: normal;
}

.page-shell .mud-alert {
    border-radius: 18px;
}

.page-shell .mud-data-grid-header,
.page-shell .mud-data-grid-toolbar {
    background: transparent;
}

.page-shell .mud-data-grid-table .mud-table-cell {
    vertical-align: middle;
}

.mud-snackbar-location-bottom-left {
    left: 1rem !important;
    right: auto !important;
    bottom: 1rem !important;
}

.mud-snackbar-container {
    max-width: min(24rem, calc(100vw - 2rem));
}

.mud-snackbar {
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(17, 38, 44, 0.16) !important;
    backdrop-filter: blur(10px);
}

.mud-snackbar .mud-alert-message {
    font-weight: 600;
}

.auth-screen {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.auth-screen__backdrop {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.7;
    pointer-events: none;
}

.auth-screen__backdrop--one {
    width: 26rem;
    height: 26rem;
    top: -6rem;
    right: -4rem;
    background: radial-gradient(circle, rgba(244, 162, 97, 0.26), transparent 68%);
}

.auth-screen__backdrop--two {
    width: 24rem;
    height: 24rem;
    bottom: -5rem;
    left: -3rem;
    background: radial-gradient(circle, rgba(14, 95, 102, 0.2), transparent 70%);
}

.auth-screen__content {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
}

.auth-shell {
    display: grid;
    gap: 1.1rem;
}

.auth-shell--split {
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
}

.auth-panel {
    position: relative;
    border-radius: 32px;
    border: 1px solid var(--ce-border);
    box-shadow: var(--ce-shadow);
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 36%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%);
}

.auth-panel > * {
    position: relative;
    z-index: 1;
}

.auth-panel--feature {
    padding: 2rem;
    color: #fff9f2;
    background:
        linear-gradient(160deg, rgba(10, 54, 61, 0.96), rgba(18, 97, 105, 0.9)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 24%);
}

.auth-panel--form {
    padding: 2rem;
    background: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(18px);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.auth-title {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
}

.auth-copy {
    margin: 0 0 1rem;
    color: rgba(255, 249, 242, 0.88);
    line-height: 1.9;
}

.auth-note,
.auth-hint,
.auth-feedback {
    border-radius: 20px;
    padding: 0.95rem 1rem;
}

.auth-note {
    margin-top: 1.2rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fffdf7;
    line-height: 1.8;
}

.auth-hint {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 249, 242, 0.92);
}

.auth-form-head h2 {
    margin: 0;
    color: var(--ce-heading);
    font-size: 1.6rem;
}

.auth-form-head p {
    margin: 0.5rem 0 0;
    color: var(--ce-muted);
    line-height: 1.8;
}

.auth-form {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.auth-form--compact {
    margin-top: 0;
}

.auth-field {
    display: grid;
    gap: 0.45rem;
}

.auth-field label {
    color: var(--ce-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-input {
    min-height: 52px;
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ce-border-strong);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ce-heading);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(14, 95, 102, 0.58);
    box-shadow: 0 0 0 4px rgba(14, 95, 102, 0.12);
    background: #fff;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ce-heading);
    cursor: pointer;
    line-height: 1.6;
}

.auth-check__box {
    width: 18px;
    height: 18px;
    accent-color: var(--ce-accent);
}

.auth-submit {
    min-height: 52px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #0e5f66, #17434f);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 18px 32px rgba(14, 95, 102, 0.18);
}

.auth-submit:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.auth-submit--inline {
    width: auto;
    min-width: 260px;
    padding: 0 1.25rem;
}

.auth-actions--inline {
    display: flex;
    justify-content: flex-start;
}

.auth-feedback {
    margin-top: 1rem;
    border: 1px solid transparent;
    line-height: 1.8;
}

.auth-feedback--error {
    color: #7b1f1f;
    background: rgba(204, 63, 63, 0.1);
    border-color: rgba(204, 63, 63, 0.18);
}

.auth-feedback--success {
    color: #175c35;
    background: rgba(42, 141, 87, 0.12);
    border-color: rgba(42, 141, 87, 0.18);
}

.auth-validation-summary,
.auth-validation {
    color: #b42318;
    font-size: 0.9rem;
    line-height: 1.7;
}

.auth-validation-summary ul {
    margin: 0;
    padding-inline-start: 1.2rem;
}

.auth-support {
    margin: 0;
    color: var(--ce-muted);
    line-height: 1.8;
}

@media (max-width: 1399px) {
    .workspace-grid--split {
        grid-template-columns: 1fr;
    }

    .workspace-aside .section-card {
        position: static;
    }
}

@media (max-width: 1023px) {
    .page-shell {
        border-radius: 22px;
        padding: 1rem;
    }

    .transactions-grid {
        --tx-col-number: 8.5%;
        --tx-col-date: 8%;
        --tx-col-type: 9%;
        --tx-col-country: 5.5%;
        --tx-col-customer: 14%;
        --tx-col-company: 12.5%;
        --tx-col-foreign: 10.5%;
        --tx-col-local: 10%;
        --tx-col-status: 8.5%;
        --tx-col-actions: 13.5%;
    }

    .transactions-grid .mud-table-row .mud-table-cell,
    .transactions-grid .mud-data-grid-cell,
    .transactions-grid .mud-table-body .mud-table-cell {
        padding-inline: 0.35rem;
    }

    .page-header,
    .section-header,
    .account-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-shell--split {
        grid-template-columns: 1fr;
    }

    .auth-panel--feature,
    .auth-panel--form {
        padding: 1.5rem;
    }

    .state-page {
        min-height: 20rem;
    }

    .workspace-grid--split,
    .summary-strip,
    .summary-strip--compact,
    .dialog-summary,
    .party-statement-print-header__summary,
    .party-statement-print-header__top {
        grid-template-columns: 1fr;
    }

    .party-statement-print-header__top {
        direction: rtl;
    }

    .party-statement-print-header__meta--date,
    .party-statement-print-header__meta--user {
        justify-self: stretch;
        text-align: right;
    }

    .workspace-aside .section-card {
        position: static;
    }
}

@media (max-width: 599px) {
    .page-shell {
        padding: 0.85rem;
    }

    .report-catalog-card {
        padding: 0.95rem;
    }

    .payments-details__settlement-head,
    .payments-details__settlement-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .transactions-grid {
        --tx-col-number: 9%;
        --tx-col-date: 8.5%;
        --tx-col-type: 9.5%;
        --tx-col-country: 4.5%;
        --tx-col-customer: 14%;
        --tx-col-company: 12.5%;
        --tx-col-foreign: 10.5%;
        --tx-col-local: 10%;
        --tx-col-status: 8.5%;
        --tx-col-actions: 13%;
    }

    .transactions-grid__text {
        font-size: 0.85rem;
    }

    .transactions-grid__chip-label {
        font-size: 0.78rem;
    }

    .auth-screen {
        padding: 0.9rem;
    }

    .auth-panel--feature,
    .auth-panel--form {
        padding: 1.15rem;
        border-radius: 24px;
    }

    .auth-hint,
    .auth-actions--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-submit--inline {
        width: 100%;
        min-width: 0;
    }
}

@media print {
    html,
    body {
        background: #ffffff !important;
    }

    .report-screen-only {
        display: none !important;
    }

    .page-shell,
    .section-card,
    .metric-card,
    .summary-strip__item {
        background: #ffffff !important;
        box-shadow: none !important;
    }

    .page-shell {
        border: none !important;
        padding: 0 !important;
    }

    .section-card,
    .metric-card,
    .summary-strip__item {
        border-color: rgba(24, 49, 54, 0.18) !important;
    }

    .report-table-shell {
        overflow: visible !important;
    }

    .party-statement-print-header__top,
    .party-statement-print-header__summary-item {
        border-color: rgba(24, 49, 54, 0.18) !important;
    }
}
