:root {
    --mycash-accent: #ff9400;
    --mycash-cover: #f4f4f5;
    --mycash-surface: #fff;
    --mycash-filter-offset: 64px;
}

.dark {
    --mycash-cover: #18181b;
    --mycash-surface: #18181b;
}

.mycash-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}

.mycash-review-row {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-block: 12px;
    border-bottom: 1px solid rgb(113 113 122 / .2);
}

.mycash-review-approval {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 4px;
}

.mycash-review-actions { margin-top: 20px; }

@media (max-width: 767px) {
    .mycash-review-grid { grid-template-columns: minmax(0, 1fr); }
}

.mycash-brand-logo {
    display: inline-block;
    width: 144px;
    max-width: 100%;
    height: 48px;
    flex-shrink: 0;
}

/* Shared unframed operational summaries and data tables. */
.mycash-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mycash-control-grid > div { min-width: 0; }
.mycash-control-grid label { display: block; margin-block-end: 6px; }
.mycash-metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-block-start: 2px solid var(--mycash-accent); padding-block: 24px; }
.mycash-metric-strip dd { font-size: 20px; font-weight: 600; margin-block-start: 8px; overflow-wrap: anywhere; }
.mycash-data-region { padding-block: 20px; border-block-end: 1px solid rgb(113 113 122 / .2); min-width: 0; }
.mycash-data-region h2 { font-size: 18px; font-weight: 600; margin-block-end: 16px; }
.mycash-data-region p { padding-block: 6px; overflow-wrap: anywhere; }
.mycash-table-scroll { overflow-x: auto; }
.mycash-data-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: start; }
.mycash-data-table th, .mycash-data-table td { padding: 12px 10px; text-align: start; overflow-wrap: anywhere; border-block-end: 1px solid rgb(113 113 122 / .2); }
.mycash-data-table th:first-child, .mycash-data-table td:first-child { width: 22%; }
.mycash-data-table th:last-child, .mycash-data-table td:last-child { width: 28%; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .mycash-control-grid { grid-template-columns: minmax(0, 1fr); }
    .mycash-metric-strip { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

.mycash-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mycash-brand-logo__light { display: block; }
.mycash-brand-logo__dark { display: none; }
.dark .mycash-brand-logo__light { display: none; }
.dark .mycash-brand-logo__dark { display: block; }

.mycash-profile-cover {
    position: relative;
    height: 160px;
    background: var(--mycash-cover);
    border-bottom: 4px solid var(--mycash-accent);
}

.mycash-profile-cover > .mycash-brand-logo {
    position: absolute;
    inset-inline-end: 28px;
    top: 20px;
}

.mycash-profile > section:first-child { border-radius: 8px; }
.mycash-profile > section:not(:first-child) {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgb(113 113 122 / .2);
    border-radius: 0;
    padding-inline: 0;
}

.fi-ta-ctn {
    border-top: 2px solid var(--mycash-accent);
    border-radius: 8px;
}

.fi-ta-filters-above-content-ctn {
    position: static;
    max-height: none;
    overflow: visible;
    background: var(--mycash-surface);
    border-radius: 8px 8px 0 0;
}

.fi-ta-ctn:has(.fi-ta-filters-above-content-ctn),
.fi-ta-header-ctn:has(> .fi-ta-filters-above-content-ctn) { overflow: visible; }

/* Preserve the native menu height except when a landscape viewport cannot contain it. */
@media (max-height: 500px) {
    .fi-ta-filters-above-content-ctn .fi-select-input .fi-dropdown-panel { max-height: calc(50dvh - 48px); }
}

/* Preserve the native menu height except when a landscape viewport cannot contain it. */
@media (max-height: 500px) {
    .fi-ta-filters-above-content-ctn .fi-select-input .fi-dropdown-panel { max-height: calc(50dvh - 48px); }
}

@media (max-width: 768px) {
    .mycash-profile-cover { height: 112px; }
    .mycash-profile-cover > .mycash-brand-logo { inset-inline-end: 18px; top: 14px; width: 120px; height: 40px; }
}

@media print {
    .mycash-brand-logo__dark, .dark .mycash-brand-logo__dark { display: none; }
    .mycash-brand-logo__light, .dark .mycash-brand-logo__light { display: block; }
    .mycash-profile-cover { background: #fff; }
    .fi-ta-filters-above-content-ctn { position: static; max-height: none; overflow: visible; }
}

/* MYCASH V2 — Connected. Local fonts, native Filament behavior. */
@font-face { font-family: 'MyCash Arabic'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/mycash/ibm-plex-sans-arabic-400.ttf') format('truetype'); }
@font-face { font-family: 'MyCash Arabic'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/mycash/ibm-plex-sans-arabic-500.ttf') format('truetype'); }
@font-face { font-family: 'MyCash Arabic'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/mycash/ibm-plex-sans-arabic-600.ttf') format('truetype'); }
@font-face { font-family: 'MyCash Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/mycash/ibm-plex-sans-arabic-700.ttf') format('truetype'); }
.fi-body {
    --font-family: 'MyCash Arabic', 'Segoe UI', Tahoma, sans-serif;
    --mycash-navy: #07427f;
    --mycash-accent: #ff9400;
    --mycash-accent-ink: #8a4400;
    --mycash-accent-soft: #fff2df;
    --mycash-focus: #995200;
    --mycash-canvas: #f7f9fc;
    --mycash-surface: #fff;
    --mycash-surface-muted: #f7f9fc;
    --mycash-ink: #162d4d;
    --mycash-muted: #63748a;
    --mycash-border: #e5eaf1;
    --mycash-nav-active: #073d73;
    --mycash-nav-active-ink: #fff;
    --mycash-nav-icon: #6b8199;
    --mycash-shadow: 0 10px 32px -22px rgb(8 39 78 / .2);
    --mycash-radius: 8px;
    font-family: var(--font-family);
    background: var(--mycash-canvas);
    color: var(--mycash-ink);
    -webkit-font-smoothing: antialiased;
}
.dark .fi-body, .fi-body.dark {
    --mycash-accent-ink: #ffc078;
    --mycash-accent-soft: #332b22;
    --mycash-canvas: #061223;
    --mycash-surface: #0c1d33;
    --mycash-surface-muted: #102640;
    --mycash-ink: #e9f0fa;
    --mycash-muted: #a6b8cf;
    --mycash-border: #20374f;
    --mycash-nav-active: #204b77;
    --mycash-nav-icon: #a0b8d3;
    --mycash-shadow: 0 10px 32px -22px rgb(0 0 0 / .5);
}

/* Authentication is a single branded tool surface, not a separate panel theme. */
.fi-simple-layout:has(.mycash-auth-page) { position:relative; isolation:isolate; }
.fi-simple-main:has(.mycash-auth-page) {
    position:relative; width:calc(100% - 40px); max-width:480px;
    margin-block:96px 48px; padding:40px;
    background:var(--mycash-surface); color:var(--mycash-ink);
    border:1px solid var(--mycash-border); border-top:3px solid var(--mycash-accent);
    border-radius:8px; box-shadow:0 24px 60px -40px rgb(0 0 0 / .28);
    --tw-ring-shadow:0 0 #0000;
}
.fi-simple-main:has(.mycash-auth-page-register) { max-width:680px; }
.mycash-auth-art { position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.mycash-auth-art img { position:absolute; width:860px; max-width:80%; height:auto; inset-inline-end:-100px; bottom:0; opacity:.16; }
.dark .mycash-auth-art img { opacity:.23; }
.mycash-auth-page .fi-simple-header { gap:12px; }
.mycash-auth-page .fi-simple-header .fi-logo { width:192px; height:64px !important; object-fit:contain; margin-block-end:12px; }
.mycash-auth-page .fi-simple-header-heading { font-size:26px; font-weight:600; letter-spacing:0; color:var(--mycash-ink); line-height:1.5; }
.mycash-auth-page .fi-simple-header-subheading { color:var(--mycash-muted); font-size:14px; line-height:1.8; }
.mycash-auth-page .fi-simple-page-content { gap:28px; }
.mycash-auth-page .fi-input { min-height:44px; }
.mycash-auth-page .fi-fo-field-label-content { color:var(--mycash-ink); line-height:1.6; }
.mycash-auth-page .fi-section.fi-section-not-contained { border-block-start:1px solid var(--mycash-border); padding-block-start:20px; }
.mycash-auth-page .fi-section-header-heading { font-size:16px; font-weight:600; }
.mycash-auth-page .fi-btn { min-height:46px; }
.mycash-auth-page .fi-input-wrp .fi-icon-btn { min-height:44px; min-width:44px; }
.mycash-auth-theme { position:fixed; inset-inline-end:24px; top:20px; z-index:30; }
.mycash-auth-theme .fi-theme-switcher { padding:4px; border:1px solid var(--mycash-border); border-radius:8px; background:var(--mycash-surface); }
.mycash-auth-theme .fi-theme-switcher-btn { width:40px; height:40px; border-radius:6px; color:var(--mycash-muted); }
.mycash-auth-theme .fi-theme-switcher-btn.fi-active { background:var(--mycash-accent-soft); color:var(--mycash-accent-ink); }
.mycash-auth-theme .fi-theme-switcher-btn:focus-visible { outline:2px solid var(--mycash-focus); outline-offset:2px; }
.mycash-auth-footer { text-align:center; color:var(--mycash-muted); font-size:12px; padding-block-start:4px; }
@media (max-width:767px) {
    .fi-simple-main:has(.mycash-auth-page) { width:calc(100% - 32px); padding:28px 20px; margin-block:92px 32px; }
    .mycash-auth-page .fi-simple-header-heading { font-size:24px; }
    .mycash-auth-theme { inset-inline-end:16px; top:16px; }
    .mycash-auth-theme .fi-theme-switcher-btn { width:44px; height:44px; }
    .mycash-auth-art img { max-width:none; width:640px; opacity:.08; }
}
@media (forced-colors:active) { .mycash-auth-art { display:none; } }
@media print { .mycash-auth-art, .mycash-auth-theme { display:none; } }
/* A light navigation rail keeps attention on the work. One linked orange mark
   identifies the current location, including native collapsed navigation. */
.fi-body .fi-topbar {
    background: var(--mycash-surface);
    border-bottom: 1px solid var(--mycash-border);
    box-shadow: none;
}
.fi-body .fi-logo { object-fit: contain; }
.fi-body .fi-sidebar { background: var(--mycash-surface); border-inline-end: 1px solid var(--mycash-border); }
.fi-body .fi-sidebar-nav { padding-block: 24px; gap: 24px; }
.fi-body .fi-sidebar-nav-groups { gap: 24px; }
.fi-body .fi-sidebar-group-label { color: var(--mycash-muted); font-size: .8125rem; font-weight: 600; }
.fi-body .fi-sidebar-group-btn > .fi-icon,
.fi-body .fi-sidebar-item-btn > .fi-icon { color: var(--mycash-nav-icon); }
.fi-body .fi-sidebar-item-label { color: var(--mycash-ink); font-weight: 500; }
.fi-body .fi-sidebar-item-btn { min-height: 44px; border-radius: 8px; transition: background-color 150ms ease, color 150ms ease; }
.fi-body .fi-sidebar-item.fi-sidebar-item-has-url > .fi-sidebar-item-btn:is(:hover, :focus-visible),
.fi-body .fi-sidebar-group-dropdown-trigger-btn:is(:hover, :focus-visible),
.fi-body .fi-sidebar-database-notifications-btn:is(:hover, :focus-visible) { background: var(--mycash-surface-muted); }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--mycash-nav-active); box-shadow: 0 5px 12px -8px rgb(7 66 127 / .6); }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::after {
    content: ''; width: 6px; height: 18px; border-radius: 6px; background: var(--mycash-accent);
    position: absolute; inset-inline-end: 0; top: calc(50% - 9px); pointer-events: none;
}
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: #ffaf40; }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label { color: var(--mycash-nav-active-ink); font-weight: 600; }
.fi-body .fi-sidebar-item-grouped-border-part { background: var(--mycash-nav-icon); }
.fi-body .fi-sidebar-item.fi-active .fi-sidebar-item-grouped-border-part { background: #ffaf40; }
.fi-body .fi-sidebar-group-dropdown-trigger-btn > .fi-icon,
.fi-body .fi-sidebar-database-notifications-btn > :is(.fi-icon, .fi-sidebar-database-notifications-btn-label) { color: var(--mycash-nav-icon); }
.fi-body .fi-sidebar-header { background: var(--mycash-surface); }
.fi-body .fi-sidebar [data-sidebar-navigation-search] .fi-input-wrp { background: var(--mycash-surface-muted); box-shadow: none; }
.fi-body .fi-sidebar [data-sidebar-navigation-search] .fi-input { color: var(--mycash-ink); }
.fi-body .fi-sidebar [data-sidebar-navigation-search] .fi-input::placeholder { color: var(--mycash-muted); }
.fi-body .fi-sidebar [data-sidebar-navigation-search] :is(.fi-input-wrp-prefix, .fi-icon, p) { color: var(--mycash-muted); }
.fi-body .fi-sidebar-footer { border-color: var(--mycash-border); }

/* Strong page headings, quieter context and compact resource actions. */
.fi-body .fi-header { padding-block: 6px 18px; position: relative; }
.fi-body .fi-header::after {
    content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
    width: 42px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--mycash-accent) 0 35%, var(--mycash-navy) 35% 100%);
}
.fi-body .fi-header-heading { color: var(--mycash-ink); font-size: 28px; font-weight: 600; letter-spacing: 0; line-height: 1.5; overflow-wrap: anywhere; }
.fi-body :is(.fi-header-subheading, .fi-section-header-description, .fi-wi-stats-overview-stat-label) { color: var(--mycash-muted); }
.fi-body .fi-breadcrumbs { color: var(--mycash-muted); }

/* One metric strip replaces the repeated boxed-card rhythm. Charts and
   semantic descriptions retain their native Filament colors and markup. */
.fi-body .fi-wi-stats-overview {
    background: transparent; border: 0; border-radius: 0;
    padding: 0; box-shadow: none;
}
.fi-body .fi-wi-stats-overview-stat {
    background: var(--mycash-surface); border: 1px solid var(--mycash-border); border-radius: var(--mycash-radius); box-shadow: none;
    padding: 18px 20px; position: relative; min-width: 0; height: 100%;
}
.fi-body .fi-wi-stats-overview .fi-section-not-contained .fi-sc { gap: 12px; }
.fi-body .fi-wi-stats-overview-stat-label-ctn { justify-content: flex-start; flex-direction: row; gap: 8px; min-width: 0; align-items: flex-start; }
.fi-body .fi-wi-stats-overview-stat-label-ctn > .fi-icon:not(.fi-color) { width: 20px; height: 20px; padding: 0; border-radius: 0; background: transparent; flex-shrink: 0; margin-top: 1px; }
.fi-body .fi-wi-stats-overview-stat-content { gap: 8px; min-width: 0; }
.fi-body .fi-wi-stats-overview-stat-label { font-size: 13px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.fi-body .fi-wi-stats-overview-stat-value { color: var(--mycash-ink); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 28px; line-height: 1.4; overflow-wrap: anywhere; }
.fi-body .fi-wi-stats-overview-stat-placeholder { font-size: 28px; line-height: 1.4; overflow-wrap: anywhere; }
.fi-body .fi-wi-stats-overview-stat-description { font-size: 12px; line-height: 1.7; align-items: flex-start; gap: 6px; }
.fi-body .fi-wi-stats-overview-stat-description > span { min-width: 0; overflow-wrap: anywhere; }
.fi-body .fi-wi-stats-overview-stat-description > .fi-icon { width: 16px; height: 16px; margin-top: 2px; }
.fi-body .fi-wi-stats-overview-stat-description { color: var(--mycash-muted); }
.fi-body .fi-wi-stats-overview-stat-description.fi-color { color: var(--color-700); }
:is(.dark .fi-body, .fi-body.dark) .fi-wi-stats-overview-stat-description.fi-color { color: var(--color-300); }
.fi-body .fi-wi-stats-overview-stat-description > .fi-icon { color: inherit; }
.fi-body .fi-wi-stats-overview-stat:has(.fi-wi-stats-overview-stat-chart) { padding-bottom: 38px; }
.fi-body .fi-wi-stats-overview-stat-chart { border-radius: 0 0 var(--mycash-radius) var(--mycash-radius); pointer-events: none; }
@media print {
    .fi-body .fi-wi-stats-overview-stat { break-inside: avoid; }
    :is(.dark .fi-body, .fi-body.dark, .fi-body) .fi-wi-stats-overview-stat-description.fi-color { color: var(--mycash-muted); }
}
.fi-body .fi-wi-stats-overview-stat-label-ctn > .fi-icon:not(.fi-color) { color: var(--mycash-navy); }
.dark .fi-body .fi-wi-stats-overview-stat-label-ctn > .fi-icon:not(.fi-color),
.fi-body.dark .fi-wi-stats-overview-stat-label-ctn > .fi-icon:not(.fi-color) { color: #a1ccff; }
.fi-body a.fi-wi-stats-overview-stat:is(:hover, :focus-visible) { background: var(--mycash-surface-muted); outline: 2px solid var(--mycash-accent); outline-offset: 2px; }
.fi-body .fi-section:not(.fi-aside):not(.fi-section-not-contained),
.fi-body .fi-section.fi-aside > .fi-section-content-ctn {
    background: var(--mycash-surface); border: 1px solid var(--mycash-border);
    border-radius: var(--mycash-radius); box-shadow: var(--mycash-shadow);
}
.fi-body .fi-section.fi-compact:not(.fi-section-not-contained) { border-radius: var(--mycash-radius); }
.fi-body .fi-section.fi-secondary:not(.fi-section-not-contained) { background: var(--mycash-surface-muted); }
.fi-body .fi-section-header-heading { color: var(--mycash-ink); font-weight: 600; }
.fi-body .fi-section-header { border-radius: inherit; }
.fi-body .fi-section.fi-section-has-header:not(.fi-collapsed) > .fi-section-content-ctn { border-top-color: var(--mycash-border); }

/* Tactile controls, restrained accent; never overwrite semantic states. */
.fi-body .fi-btn { border-radius: 8px; font-weight: 600; }
.fi-body .fi-btn.fi-color-primary:not(.fi-outlined):not(label) {
    --bg: #ff9400; --text: #112d4b; --hover-bg: #ffad3d; --hover-text: #112d4b;
    --dark-bg: #ff9400; --dark-text: #112d4b; --dark-hover-bg: #ffad3d; --dark-hover-text: #112d4b;
    box-shadow: 0 4px 10px -6px rgb(180 88 0 / .5);
}
.fi-body .fi-btn.fi-color-primary.fi-outlined { color: var(--mycash-accent-ink); }
.fi-body :is(.fi-btn, .fi-icon-btn, .fi-sidebar-item-btn, .fi-tabs-item):focus-visible { outline: 2px solid var(--mycash-accent); outline-offset: 3px; }
.fi-body .fi-input-wrp { background: var(--mycash-surface); border: 1px solid var(--mycash-border); border-radius: 8px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.fi-body .fi-input-wrp:not(.fi-invalid):not(.fi-disabled):has(:focus-visible) { border-color: var(--mycash-focus); outline: 2px solid var(--mycash-focus); outline-offset: 2px; }
.fi-body .fi-input-wrp.fi-disabled { background: var(--mycash-surface-muted); }
.fi-body .fi-input-wrp.fi-invalid { border-color: var(--danger-600, #dc2626); }
.fi-body .fi-input { font-variant-numeric: tabular-nums; }

/* The mandated orange rule, 8px table radius and native horizontal scrolling. */
.fi-body .fi-ta-ctn { background: var(--mycash-surface); border: 1px solid var(--mycash-border); border-top: 2px solid var(--mycash-accent); border-radius: 8px; box-shadow: none; }
.fi-body .fi-ta-filters-above-content-ctn { background: var(--mycash-surface); border-bottom-color: var(--mycash-border); }
.fi-body .fi-ta-header-cell { background: var(--mycash-surface-muted); color: var(--mycash-muted); font-weight: 500; }
.fi-body .fi-ta-row:not(.fi-selected):hover { background: var(--mycash-surface-muted); }
.fi-body .fi-ta-row.fi-selected { background: var(--mycash-accent-soft); }
.fi-body .fi-ta-cell { font-variant-numeric: tabular-nums; }
.fi-body .fi-ta-empty-state-heading { color: var(--mycash-ink); }
.fi-body .fi-ta-empty-state-description { color: var(--mycash-muted); }
.fi-body .fi-tabs:not(.fi-contained) { background: var(--mycash-surface); border: 1px solid var(--mycash-border); box-shadow: none; border-radius: 8px; }
.fi-body .fi-tabs-item { border-radius: 6px; }
.fi-body .fi-tabs-item.fi-active { background: var(--mycash-accent-soft); }
.fi-body .fi-tabs-item.fi-active > :is(.fi-tabs-item-label, .fi-icon) { color: var(--mycash-accent-ink); }
.fi-body .fi-modal-window, .fi-body .fi-dropdown-panel { background: var(--mycash-surface); border: 1px solid var(--mycash-border); }
.fi-body .fi-modal-window { border-radius: var(--mycash-radius); }
.fi-body .fi-modal.fi-modal-slide-over .fi-modal-window, .fi-body .fi-modal.fi-width-screen .fi-modal-window { border-radius: 0; }

/* Native step validation and navigation remain owned by Filament. */
.fi-body .fi-sc-wizard.fi-contained,
.fi-body .fi-sc-wizard:not(.fi-contained) .fi-sc-wizard-header {
    background:var(--mycash-surface); border:1px solid var(--mycash-border); border-radius:var(--mycash-radius); box-shadow:none;
}
.fi-body .fi-sc-wizard.fi-contained .fi-sc-wizard-header { border-color:var(--mycash-border); }
.fi-body .fi-sc-wizard-header { scrollbar-width:thin; scrollbar-color:var(--mycash-border) transparent; }
.fi-body .fi-sc-wizard-header-step { min-width:0; }
.fi-body .fi-sc-wizard-header-step-btn { width:100%; min-height:76px; padding:16px 20px; gap:12px; color:var(--mycash-muted); position:relative; }
.fi-body .fi-sc-wizard-header-step-text { min-width:0; }
.fi-body .fi-sc-wizard-header-step-label { font-size:14px; line-height:1.65; overflow-wrap:anywhere; }
.fi-body .fi-sc-wizard-header-step-description { color:var(--mycash-muted); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.fi-body .fi-sc-wizard-header-step-icon-ctn { width:32px; height:32px; border-radius:8px; border:1px solid var(--mycash-border); background:var(--mycash-surface-muted); }
.fi-body .fi-sc-wizard-header-step-icon-ctn > .fi-icon { width:18px; height:18px; }
.fi-body .fi-sc-wizard-header-step:not(.fi-completed) .fi-sc-wizard-header-step-icon-ctn { border-width:1px; }
.fi-body .fi-sc-wizard-header-step:not(.fi-active):not(.fi-completed) :is(.fi-sc-wizard-header-step-label,.fi-sc-wizard-header-step-number,.fi-icon) { color:var(--mycash-muted); }
.fi-body .fi-sc-wizard-header-step:not(.fi-active) .fi-sc-wizard-header-step-icon-ctn { border-color:var(--mycash-border); }
.fi-body .fi-sc-wizard-header-step.fi-active .fi-sc-wizard-header-step-btn { background:var(--mycash-surface-muted); box-shadow:inset 0 -3px var(--mycash-accent); }
.fi-body .fi-sc-wizard-header-step.fi-active .fi-sc-wizard-header-step-label { color:var(--mycash-ink); }
.fi-body .fi-sc-wizard-header-step.fi-active .fi-sc-wizard-header-step-icon-ctn { border-color:var(--mycash-accent); background:var(--mycash-surface); }
.fi-body .fi-sc-wizard-header-step.fi-active :is(.fi-sc-wizard-header-step-number,.fi-icon) { color:var(--mycash-ink); }
.fi-body .fi-sc-wizard-header-step.fi-completed .fi-sc-wizard-header-step-icon-ctn { background:var(--mycash-surface-muted); border:1px solid var(--mycash-border); }
.fi-body .fi-sc-wizard-header-step.fi-completed .fi-sc-wizard-header-step-icon-ctn > .fi-icon { color:#087f65; }
.dark .fi-body .fi-sc-wizard-header-step.fi-completed .fi-sc-wizard-header-step-icon-ctn > .fi-icon { color:#6ee7b7; }
.fi-body .fi-sc-wizard-header-step.fi-completed .fi-sc-wizard-header-step-label { color:var(--mycash-ink); }
.fi-body .fi-sc-wizard-header-step-separator { color:var(--mycash-border); width:12px; }
.fi-body .fi-sc-wizard-header-step-btn:focus-visible { outline:2px solid var(--mycash-focus); outline-offset:-4px; border-radius:4px; }
.fi-body .fi-sc-wizard-header-step-btn:enabled:hover { background:var(--mycash-surface-muted); }
.fi-body .fi-sc-wizard.fi-contained .fi-sc-wizard-footer { border-top:1px solid var(--mycash-border); padding:16px 24px; gap:12px; }
.fi-body .fi-modal-heading { color:var(--mycash-ink); font-size:18px; line-height:1.6; overflow-wrap:anywhere; }
.fi-body .fi-modal-header { border-bottom:1px solid var(--mycash-border); padding-bottom:16px; }
@media (max-width:767px) { .fi-body .fi-sc-wizard-header-step-btn { padding:14px 16px; min-height:72px; }.fi-body .fi-sc-wizard.fi-contained .fi-sc-wizard-footer { padding:16px; } }
@media (forced-colors:active) { .fi-body .fi-sc-wizard-header-step.fi-active .fi-sc-wizard-header-step-btn { border-bottom:3px solid Highlight; }.fi-body .fi-sc-wizard-header-step-btn:focus-visible { outline-color:Highlight; } }
@media print { .fi-body .fi-sc-wizard-footer { display:none; }.dark .fi-body .fi-sc-wizard-header-step.fi-completed .fi-sc-wizard-header-step-icon-ctn > .fi-icon { color:var(--mycash-ink); } }
.fi-body .mycash-profile-cover { background: var(--mycash-surface-muted); }
/* Approved interwoven workspace composition. Decoration never conveys a
   verification state or adds access to business data. */
.fi-body .fi-page:has(.mycash-workspace-hero) .fi-header { padding: 0; }
.fi-body .fi-page:has(.mycash-workspace-hero) .fi-header::after { display: none; }
.fi-body .fi-page:has(.mycash-workspace-hero) .fi-header-heading { font-size: 28px; font-weight: 600; }
.mycash-workspace-hero {
    position: relative; isolation: isolate; min-height: 222px;
    border: 1px solid #163653; border-radius: 12px;
    background: radial-gradient(ellipse at 24% 100%, rgb(35 78 125 / .32), transparent 58%), #03172f;
    margin-block: 24px 0;
}
.mycash-workspace-hero__art {
    position: absolute; left: -2%; bottom: 0; width: 72%; max-width: 940px;
    height: auto; z-index: -1; pointer-events: none; user-select: none;
}
.mycash-workspace-hero__content { width: 43%; margin-inline-end: auto; padding: 28px 30px; }
.mycash-workspace-hero__content h2 { color: #fff; font-size: 26px; font-weight: 600; line-height: 1.55; letter-spacing: 0; }
.mycash-workspace-hero__content p { color: #c4d5e9; font-size: .875rem; line-height: 1.9; margin-block: 8px 16px; }
.mycash-workspace-link { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 16px; background: #ff9400; color: #0b2848; border: 1px solid #ff9400; border-radius: 10px; font-size: .875rem; font-weight: 500; transition: background-color 150ms ease; }
.mycash-workspace-link:hover { background: #ffad3d; }
.mycash-workspace-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.mycash-dashboard-anchor { position: absolute; bottom: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; scroll-margin-top: calc(var(--topbar-height, 64px) + 24px); }
.mycash-dashboard-anchor:focus { outline: 2px solid var(--mycash-accent); outline-offset: 4px; }
@media (max-width: 900px) {
    .mycash-workspace-hero__content { width: 48%; padding: 24px; }
    .mycash-workspace-hero__art { width: 60%; bottom: 6px; }
}
@media (max-width: 600px) {
    .mycash-workspace-hero { min-height: 0; display: flex; flex-direction: column; overflow: hidden; margin-block-start: 0; }
    .mycash-workspace-hero__content { width: 100%; padding: 24px 24px 12px; }
    .mycash-workspace-hero__content h2 { font-size: 1.65rem; }
    .mycash-workspace-hero__art { position: relative; order: 1; bottom: auto; left: -4%; width: 108%; max-width: none; margin-block: 0 -2px; }
    .mycash-workspace-link { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .mycash-workspace-link { transition: none; } }
@media (forced-colors: active) {
    .mycash-workspace-hero { background: Canvas; border-color: CanvasText; }
    .mycash-workspace-hero__art { display: none; }
    .mycash-workspace-hero__content h2, .mycash-workspace-hero__content p { color: CanvasText; }
    .mycash-workspace-link { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
}
@media (max-width: 767px) {
    .fi-body .fi-sidebar-nav { padding-inline: 20px; }
    .fi-body .fi-header-heading { font-size: 24px; }
    .fi-body .fi-wi-stats-overview-stat { padding: 14px; }
    .fi-body .fi-section:not(.fi-section-not-contained) > .fi-section-header { padding: 18px; }
    .fi-body .fi-btn:not(.fi-size-xs):not(.fi-size-sm) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .fi-body .fi-sidebar-item-btn, .fi-body .fi-input-wrp, .fi-body .fi-btn { transition: none; } }
@media (forced-colors: active) { .fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { outline: 2px solid Highlight; } }
@media print {
    .fi-body, .dark .fi-body, .fi-body.dark { --mycash-surface: #fff; --mycash-surface-muted: #fff; --mycash-border: #ccc; --mycash-ink: #111; --mycash-muted: #444; background: #fff; color: #111; }
    .fi-body :is(.fi-section, .fi-wi-stats-overview, .fi-ta-ctn) { box-shadow: none; }
    .fi-body .fi-sidebar, .fi-body .fi-topbar, .mycash-workspace-hero, .mycash-dashboard-anchor { display: none; }
    .fi-body .fi-header::after { display: none; }
    .fi-body .fi-ta-filters-above-content-ctn { position: static; max-height: none; overflow: visible; }
}

/* Custom search and user profiles share the panel theme. */

        .unified-search { --surface:var(--mycash-surface); --soft:var(--mycash-surface-muted); --line:var(--mycash-border); --text:var(--mycash-ink); --muted:var(--mycash-muted); --accent:var(--mycash-accent); color:var(--text); direction:rtl; }
        .unified-search * { box-sizing:border-box; }
        .unified-search svg { width:1.1rem; height:1.1rem; flex:0 0 auto; }
        .unified-search__head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
        .unified-search__title { margin:0; font-size:1.25rem; font-weight:600; }
        .unified-search__note { margin-top:.3rem; color:var(--muted); font-size:.78rem; }
        .unified-search__shell { border:1px solid var(--line); border-top:2px solid var(--accent); border-radius:8px; background:var(--surface); }
        .unified-search__bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.75rem; padding:1rem; border-bottom:1px solid var(--line); }
        .unified-search__input-wrap { position:relative; }
        .unified-search__input-wrap svg { position:absolute; inset-inline-start:.85rem; top:50%; transform:translateY(-50%); color:var(--muted); }
        .unified-search__input { width:100%; height:3rem; padding-inline:2.6rem .9rem; border:1px solid var(--line); border-radius:.45rem; background:var(--soft); color:var(--text); font:inherit; font-size:.9rem; outline:none; }
        .unified-search__input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(245,158,11,.12); }
        .unified-search__tabs { display:flex; gap:.25rem; padding:.25rem; border:1px solid var(--line); border-radius:.45rem; background:var(--soft); }
        .unified-search__tab { display:inline-flex; height:2.4rem; align-items:center; gap:.4rem; padding:0 .8rem; border:0; border-radius:.35rem; background:transparent; color:var(--muted); font:inherit; font-size:.78rem; font-weight:600; cursor:pointer; white-space:nowrap; }
        .unified-search__tab.is-active { background:var(--surface); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.08); }
        .unified-search__summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1rem; background:var(--soft); color:var(--muted); font-size:.75rem; }
        .unified-search__count { color:var(--text); font-weight:600; }
        .unified-search__rows { min-height:18rem; }
        .unified-search__row { display:grid; grid-template-columns:minmax(16rem,1.4fr) minmax(10rem,.8fr) repeat(3,minmax(7rem,.55fr)) auto; align-items:center; gap:1rem; min-height:5.2rem; padding:.8rem 1rem; border-top:1px solid var(--line); color:var(--text); text-decoration:none; }
        .unified-search__row:first-child { border-top:0; }
        .unified-search__row:hover { background:rgba(245,158,11,.045); }
        .unified-search__person { display:flex; align-items:center; gap:.75rem; min-width:0; }
        .unified-search__avatar { display:grid; width:2.7rem; height:2.7rem; place-items:center; flex:0 0 auto; border-radius:50%; background:var(--mycash-navy); color:#fff; font-weight:600; }
        .unified-search__name { overflow:hidden; font-size:.86rem; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
        .unified-search__sub { margin-top:.22rem; color:var(--muted); font-size:.7rem; }
        .unified-search__label { color:var(--muted); font-size:.68rem; }
        .unified-search__value { margin-top:.22rem; font-size:.8rem; font-weight:600; }
        .unified-search__badge { display:inline-flex; align-items:center; gap:.35rem; padding:.3rem .52rem; border-radius:.35rem; font-size:.7rem; font-weight:600; white-space:nowrap; }
        .unified-search__badge--good { color:#047857; background:rgba(5,150,105,.1); }
        .unified-search__badge--watch { color:#b45309; background:rgba(245,158,11,.12); }
        .unified-search__badge--danger { color:#be123c; background:rgba(225,29,72,.1); }
        .unified-search__badge--neutral { color:#64748b; background:rgba(100,116,139,.1); }
        .unified-search__arrow { color:var(--muted); }
        .unified-search__empty { display:grid; min-height:18rem; place-items:center; padding:2rem; text-align:center; color:var(--muted); }
        .unified-search__empty-icon { display:grid; width:3.5rem; height:3.5rem; margin:0 auto .8rem; place-items:center; border:1px solid var(--line); border-radius:50%; color:var(--accent); }
        .unified-search__empty-icon svg { width:1.5rem; height:1.5rem; }
        @media (max-width:1100px) { .unified-search__row { grid-template-columns:minmax(15rem,1fr) repeat(2,minmax(7rem,.6fr)) auto; } .unified-search__optional { display:none; } }
        @media (max-width:700px) { .unified-search__head { align-items:flex-start; flex-direction:column; } .unified-search__bar { grid-template-columns:1fr; } .unified-search__tabs { width:100%; } .unified-search__tab { flex:1; justify-content:center; } .unified-search__row { grid-template-columns:1fr auto; gap:.6rem; } .unified-search__mobile-hide { display:none; } }

.unified-search__row[aria-disabled="true"] { cursor: default; }
.unified-search__tab:focus-visible, .unified-search__row[href]:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.dark .unified-search__badge--good { color:#6ee7b7; }
.dark .unified-search__badge--watch { color:#fcd34d; }
.dark .unified-search__badge--danger { color:#fda4af; }
.dark .unified-search__badge--neutral { color:var(--muted); }


    .mc-profile-header {
        overflow: hidden;
        border: 1px solid var(--mycash-border);
        border-radius: 8px;
        background: var(--mycash-surface);
        box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
        direction: rtl;
    }


    .mc-profile-body {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr) auto;
        align-items: end;
        gap: 22px;
        padding: 0 28px 24px;
    }

    .mc-profile-avatar-wrap {
        position: relative;
        z-index: 2;
        width: 128px;
        height: 128px;
        margin-top: -52px;
    }

    .mc-profile-avatar-button {
        display: block;
        width: 128px;
        height: 128px;
        padding: 0;
        overflow: hidden;
        cursor: zoom-in;
        border: 4px solid var(--mycash-surface);
        border-radius: 9999px;
        background: var(--mycash-surface-muted);
        box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    }


    .mc-profile-avatar {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mc-profile-info {
        min-width: 0;
        padding-top: 18px;
    }

    .mc-profile-name {
        margin: 0;
        overflow: hidden;
        color: var(--mycash-ink);
        font-size: 24px;
        font-weight: 700;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .mc-profile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 16px;
        margin-top: 7px;
        color: var(--mycash-muted);
        font-size: 14px;
    }


    .mc-profile-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        padding-top: 18px;
    }

    .mc-avatar-preview {
        display: flex;
        justify-content: center;
        padding: 24px;
        background: var(--mycash-canvas);
    }

    .mc-avatar-preview img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 70vh;
        border-radius: 8px;
        object-fit: contain;
    }

    @media (max-width: 720px) {
        .mc-profile-body {
            grid-template-columns: 1fr;
            justify-items: center;
            gap: 10px;
            padding: 0 18px 20px;
            text-align: center;
        }

        .mc-profile-avatar-wrap,
        .mc-profile-avatar-button {
            width: 104px;
            height: 104px;
        }

        .mc-profile-avatar-wrap {
            margin-top: -46px;
        }

        .mc-profile-info,
        .mc-profile-badges {
            padding-top: 0;
        }

        .mc-profile-name {
            max-width: 100%;
            font-size: 20px;
        }

        .mc-profile-meta,
        .mc-profile-badges {
            justify-content: center;
        }
    }

.mc-profile-header .mycash-profile-cover { height:120px; }
.mc-profile-name { white-space:normal; overflow-wrap:anywhere; }
.mc-profile-avatar-button:focus-visible { outline:2px solid var(--mycash-accent); outline-offset:3px; }
@media (max-width:720px) { .mc-profile-header .mycash-profile-cover { height:96px; } }


/* Screen-only bridge: standalone customer print documents retain their own palette. */
@media screen {
    .fi-body .dossier, html.dark .fi-body .dossier {
        --ds-bg:var(--mycash-surface); --ds-soft:var(--mycash-surface-muted);
        --ds-line:var(--mycash-border); --ds-text:var(--mycash-ink);
        --ds-muted:var(--mycash-muted); --ds-accent:var(--mycash-accent-ink);
        --ds-brand:var(--mycash-accent);
    }
    .fi-body .dossier-head { padding:24px; background:var(--ds-bg); border:1px solid var(--ds-line); border-radius:12px; }
    .fi-body .dossier-tabs { margin-block:16px 24px; }
    .fi-body .dossier-table-wrap { border-top:2px solid var(--ds-brand); border-radius:8px; }
    .fi-body .dossier-tab:focus-visible, .fi-body .dossier-pagination button:focus-visible { outline:2px solid var(--ds-brand); outline-offset:-2px; }
    @media (max-width:640px) { .fi-body .dossier-head { padding:16px; } }
}
@media print {
    .fi-body .dossier, html.dark .fi-body .dossier {
        --ds-bg:#fff; --ds-soft:#f6f7f8; --ds-line:#ddd; --ds-text:#202124;
        --ds-muted:#666b73; --ds-accent:#b76800; --ds-brand:#f59a08;
        --ds-teal:#087f75; --ds-red:#be2344;
    }
}

/* Financing workbench: native form and calculation data, shared theme tokens. */
.loan-calc { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; }
.loan-calc__setup, .loan-calc__results, .loan-calc__results > div { min-width:0; }
.loan-calc__setup { padding:20px; border:1px solid var(--mycash-border); border-radius:12px; background:var(--mycash-surface); }
.loan-calc__eyebrow { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:500; color:var(--mycash-muted); margin-bottom:14px; }
.loan-calc__eyebrow > span { display:grid; place-items:center; width:25px; height:25px; color:var(--mycash-accent-ink); background:var(--mycash-accent-soft); border-radius:7px; font-variant-numeric:tabular-nums; }
.loan-calc__form { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.fi-body .loan-calc__setup .fi-section { border:0; background:transparent; box-shadow:none; }
.fi-body .loan-calc__setup .fi-section-header { padding:0 0 18px; }
.fi-body .loan-calc__setup .fi-section-content { padding:18px 0 0; }
.loan-calc__actions { display:flex; min-width:0; }
.loan-calc__actions .fi-ac { width:100%; }
.loan-calc__actions .fi-btn { width:100%; min-width:0; min-height:46px; }
.loan-calc__loading { margin-bottom:14px; padding:12px 16px; border-inline-start:3px solid var(--mycash-accent); border-radius:8px; background:var(--mycash-surface-muted); color:var(--mycash-ink); }
.loan-calc__pending { opacity:.55; transition:opacity 150ms ease; }
.loan-calc__summary { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:22px; padding:0 0 20px; border-bottom:1px solid var(--mycash-border); }
.loan-calc__summary .loan-calc__eyebrow { margin-bottom:8px; }
.loan-calc__summary-title { margin:0; color:var(--mycash-ink); font-size:24px; font-weight:600; }
.loan-calc__summary-meta { display:flex; flex-wrap:wrap; gap:5px 18px; margin-top:8px; color:var(--mycash-muted); font-size:13px; }
.loan-calc__count { display:flex; align-items:center; gap:10px; color:var(--mycash-muted); font-size:12px; }
.loan-calc__count strong { display:grid; place-items:center; min-width:42px; height:42px; padding-inline:8px; color:var(--mycash-accent-ink); background:var(--mycash-accent-soft); border-radius:12px; font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; }
.loan-products { display:grid; gap:20px; }
.loan-product { min-width:0; border:1px solid var(--mycash-border); border-radius:12px; background:var(--mycash-surface); box-shadow:var(--mycash-shadow); }
.loan-product__header { padding:24px; border-radius:12px 12px 0 0; background:var(--mycash-surface-muted); }
.loan-product__identity { display:flex; align-items:center; gap:14px; min-width:0; margin-bottom:24px; }
.loan-product__number { display:grid; place-items:center; flex:0 0 42px; height:42px; border:1px solid var(--mycash-border); border-radius:12px; color:var(--mycash-accent-ink); background:var(--mycash-surface); font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.loan-product__name { margin:0; overflow-wrap:anywhere; color:var(--mycash-ink); font-size:23px; font-weight:600; line-height:1.5; }
.loan-product__tier { display:inline-flex; margin-top:4px; color:var(--mycash-muted); font-size:12px; }
.loan-product__highlights { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.loan-product__highlight { min-width:0; }
.loan-product__highlight + .loan-product__highlight { border-inline-start:1px solid var(--mycash-border); padding-inline-start:24px; }
.loan-product__highlight > span { display:block; color:var(--mycash-muted); font-size:13px; }
.loan-product__highlight strong { display:block; margin-top:10px; color:var(--mycash-ink); font-size:32px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.loan-product__highlight:first-child strong { color:var(--mycash-accent-ink); }
.loan-product__highlight small { color:var(--mycash-muted); font-size:12px; font-weight:400; }
.loan-product__breakdown-title { padding:20px 24px 0; color:var(--mycash-ink); font-size:13px; font-weight:600; }
.loan-product__metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 24px; padding:18px 24px 24px; }
.loan-product__metric { min-width:0; }
.loan-product__metric span { display:block; color:var(--mycash-muted); font-size:12px; }
.loan-product__metric strong { display:block; margin-top:6px; color:var(--mycash-ink); font-size:16px; font-weight:500; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.loan-product__conditions { margin-inline:24px; border-top:1px solid var(--mycash-border); }
.loan-product__conditions summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; cursor:pointer; color:var(--mycash-ink); font-size:13px; font-weight:500; list-style:none; }
.loan-product__conditions summary::-webkit-details-marker { display:none; }
.loan-product__conditions summary small { margin-inline-start:8px; color:var(--mycash-muted); font-size:11px; font-weight:400; }
.loan-product__conditions summary::after { content:'+'; display:grid; place-items:center; width:26px; height:26px; color:var(--mycash-accent-ink); background:var(--mycash-accent-soft); border-radius:7px; font-size:19px; }
.loan-product__conditions[open] summary::after { content:'−'; }
.loan-product__conditions summary:focus-visible { outline:2px solid var(--mycash-accent); outline-offset:3px; border-radius:4px; }
.loan-product__conditions-list { display:grid; gap:10px; max-height:320px; margin:0; padding:0 20px 20px 8px; overflow-y:auto; color:var(--mycash-muted); font-size:13px; line-height:1.9; }
.loan-product__conditions-list li { padding-inline-start:4px; white-space:pre-line; overflow-wrap:anywhere; }
.loan-product__conditions-list li::marker { color:var(--mycash-accent-ink); }
.loan-calc__empty { padding:32px 24px; border:1px dashed var(--mycash-border); border-radius:12px; color:var(--mycash-muted); background:var(--mycash-surface); text-align:center; font-size:14px; }
.loan-calc__welcome { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:300px; padding:32px; border:1px dashed var(--mycash-border); border-radius:12px; background:var(--mycash-surface); text-align:center; }
.loan-calc__welcome-icon { display:grid; place-items:center; width:64px; height:64px; margin-bottom:18px; border-radius:20px; color:var(--mycash-accent-ink); background:var(--mycash-accent-soft); }
.loan-calc__welcome-icon svg { width:30px; height:30px; }
.loan-calc__welcome h2 { margin:0; color:var(--mycash-ink); font-size:20px; font-weight:600; }
.loan-calc__welcome p { max-width:380px; margin:12px 0 0; color:var(--mycash-muted); font-size:13px; line-height:1.9; }
@media (min-width:1200px) {
    .loan-calc { grid-template-columns:minmax(280px,.8fr) minmax(0,1.8fr); }
    .fi-body .loan-calc__setup .fi-sc { grid-template-columns:minmax(0,1fr); }
    .fi-body .loan-calc__setup .fi-sc > * { grid-column:1 / -1; }
}
@media (max-width:640px) {
    .loan-calc__setup { padding:16px; }
    .loan-calc__summary { align-items:flex-start; }
    .loan-calc__count { flex-direction:column; gap:5px; white-space:nowrap; }
    .loan-calc__summary-title { font-size:21px; }
    .loan-product__header { padding:20px; }
    .loan-product__highlights { gap:18px; }
    .loan-product__highlight + .loan-product__highlight { padding-inline-start:18px; }
    .loan-product__highlight strong { font-size:26px; }
    .loan-product__breakdown-title { padding:20px 20px 0; }
    .loan-product__metrics { grid-template-columns:repeat(2,minmax(0,1fr)); padding:18px 20px 20px; }
    .loan-product__conditions { margin-inline:20px; }
}
@media print {
    .loan-calc { display:block; }
    .loan-calc__actions, .loan-calc__loading, .loan-calc__welcome { display:none; }
    .loan-calc__setup { margin-bottom:20px; }
    .loan-product { box-shadow:none; break-inside:avoid; }
    .loan-product__conditions-list { max-height:none; overflow:visible; }
    .loan-calc__pending { opacity:1; }
}

/* Branch profiles use the same central surfaces. */

        .branch-profile{--surface:var(--mycash-surface);--ink:var(--mycash-ink);--muted:var(--mycash-muted);--line:var(--mycash-border);color:var(--ink)}
        .branch-profile__hero,.branch-profile__section{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:24px;overflow:hidden}.branch-profile__identity{padding:0 28px 28px;display:flex;gap:22px;align-items:center}.branch-profile__avatar{width:150px;height:150px;margin-top:-60px;border:7px solid var(--surface);border-radius:50%;background:#fff;overflow:hidden;box-shadow:0 8px 24px #0002;z-index:1;flex-shrink:0}.branch-profile h2{font-size:24px;font-weight:600;margin:20px 0 6px}.branch-profile__muted{color:var(--muted);font-size:14px}.branch-profile__badge{display:inline-block;padding:5px 12px;border-radius:30px;background:#f59e0b22;color:var(--ink);font-size:13px}.branch-profile__badge--good{background:#10b98122}.branch-profile__badge--danger{background:#ef444422}
        .branch-profile__section{padding:24px}.branch-profile h3{font-size:18px;font-weight:700;margin-bottom:16px}.branch-profile__facts,.branch-profile__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.branch-profile__fact,.branch-profile__card{padding:18px;border:1px solid var(--line);border-radius:14px;min-width:0}.branch-profile__fact strong{display:block;margin-top:8px;overflow-wrap:anywhere}.branch-profile a{color:var(--mycash-accent-ink);text-decoration:none}.branch-profile__table{overflow:auto}.branch-profile table{width:100%;min-width:650px;text-align:right;border-collapse:collapse}.branch-profile th,.branch-profile td{padding:14px 10px;border-bottom:1px solid var(--line);vertical-align:top}.branch-profile tbody tr:nth-child(even){background:#64748b08}.branch-profile tbody tr:hover{background:#f59e0b08}.branch-profile th{background:#64748b10;color:var(--muted);font-weight:500;font-size:13px}.branch-profile__empty{padding:20px;background:#64748b0c;border-radius:12px;color:var(--muted)}.branch-profile__pagination{display:flex;justify-content:space-between;margin-top:20px;gap:16px}.branch-profile__tabs{display:flex;gap:20px;flex-wrap:wrap;padding:0 28px 20px}.branch-profile__card strong{display:block;margin-bottom:8px}
        @media(max-width:768px){.branch-profile__facts,.branch-profile__cards{grid-template-columns:1fr}.branch-profile__identity{align-items:flex-start;padding:0 18px 20px}.branch-profile__avatar{width:80px;height:80px}.branch-profile h2{font-size:20px}.branch-profile__cover{height:130px}.branch-profile__section{padding:18px}}


/* Approved soft connection theme. Status colors and native controls stay semantic. */
@media screen {
    .fi-body {
        --mycash-canvas:#f5f6f8; --mycash-surface:#fff; --mycash-surface-muted:#f4f6f9;
        --mycash-border:#dfe3e8; --mycash-ink:#202a35; --mycash-muted:#596675;
        --mycash-focus:#995200;
        --mycash-nav-active:#eef3f8; --mycash-nav-active-ink:#17324f;
        --mycash-shadow:0 10px 28px -24px rgb(35 63 91 / .18);
    }
    .dark .fi-body, .fi-body.dark {
        --mycash-canvas:#111417; --mycash-surface:#1b2026; --mycash-surface-muted:#242b33;
        --mycash-border:#3c4652; --mycash-ink:#edf1f5; --mycash-muted:#b0bbc8;
        --mycash-nav-active:#263748; --mycash-nav-active-ink:#edf3fa;
        --mycash-focus:#ffb452;
        --mycash-shadow:0 12px 36px -30px rgb(0 0 0 / .5);
    }
    .fi-body .fi-topbar { background:var(--mycash-canvas); }
    .dark .fi-body .fi-sidebar, .fi-body.dark .fi-sidebar,
    .dark .fi-body .fi-sidebar-header, .fi-body.dark .fi-sidebar-header { background:var(--mycash-surface); }
}
.fi-body .fi-header::after { display:none; }
.fi-body .fi-header-heading { position:relative; padding-inline-start:36px; font-size:28px; font-weight:600; }
.fi-body .fi-page:has(.mycash-workspace-hero) .fi-header-heading { font-size:28px; font-weight:600; }
.fi-body .fi-header-heading::before, .fi-body .fi-header-heading::after,
.mycash-soft-knot::before, .mycash-soft-knot::after {
    content:''; position:absolute; width:12px; height:22px;
    border:2px solid #4c86bb; border-radius:8px; transform:rotate(-28deg);
}
.fi-body .fi-header-heading::before { inset-inline-start:4px; top:calc(50% - 8px); }
.fi-body .fi-header-heading::after { inset-inline-start:12px; top:calc(50% - 11px); border-color:#ff9400; transform:rotate(28deg); }
.mycash-soft-knot { position:relative; display:inline-block; width:25px; height:31px; flex:0 0 25px; opacity:.85; }
.mycash-soft-knot::before { inset-inline-start:3px; top:6px; }
.mycash-soft-knot::after { inset-inline-start:11px; top:3px; border-color:#ff9400; transform:rotate(28deg); }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn { box-shadow:none; background:var(--mycash-nav-active); }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before { content:''; position:absolute; inset-inline-start:8px; top:calc(50% - 10px); width:5px; height:15px; background:var(--mycash-accent); transform:rotate(-18deg); border-radius:3px; pointer-events:none; }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::after { content:''; position:absolute; inset-inline-start:3px; inset-inline-end:auto; top:calc(50% - 5px); width:4px; height:15px; border-radius:3px; background:#487bb0; transform:rotate(18deg); margin-top:0; }
.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color:#4c86bb; }
.fi-body .fi-section-header-heading { font-weight:500; }
.fi-body .fi-section-header-description { line-height:1.8; }
.mycash-workspace-hero { min-height:208px; border-radius:8px; border-color:#284661; background:#0b2541; }
.mycash-workspace-hero__art { width:56%; left:0; opacity:.9; }
.mycash-workspace-hero__content { width:44%; }
.mycash-workspace-hero__content h2 { font-weight:500; }
.mycash-workspace-link { background:transparent; color:#ffc16f; border-color:transparent; padding-inline:0; }
.mycash-workspace-link:hover { background:transparent; color:#ffd297; }
.mycash-record-profile { min-width:0; }
.mycash-profile-masthead { border:1px solid var(--mycash-border); border-radius:8px; background:var(--mycash-surface); margin-bottom:24px; }
.fi-body .mycash-profile-masthead .mycash-profile-cover { height:138px; overflow:hidden; border:0; border-bottom:2px solid var(--mycash-accent); border-radius:7px 7px 0 0; background:var(--mycash-surface-muted); }
.dark .fi-body .mycash-profile-masthead .mycash-profile-cover, .fi-body.dark .mycash-profile-masthead .mycash-profile-cover { background:var(--mycash-surface-muted); }
.mycash-profile-art { position:absolute; left:72px; top:50%; transform:translateY(-50%); width:55%; max-width:660px; height:auto; opacity:.25; pointer-events:none; user-select:none; }
.mycash-profile-caption { position:absolute; inset-inline-start:24px; top:24px; display:flex; align-items:center; gap:10px; color:var(--mycash-muted); font-size:11px; }
.mycash-profile-caption .mycash-soft-knot { transform:scale(.7); }
.mycash-profile-masthead .mycash-profile-cover > .mycash-brand-logo { top:auto; bottom:20px; inset-inline-end:24px; width:110px; height:37px; }
.mycash-profile-identity { display:flex; align-items:center; gap:20px; padding:0 24px 24px; position:relative; }
.mycash-profile-avatar { width:88px; height:88px; margin-top:-28px; align-self:flex-start; flex:0 0 88px; border:5px solid var(--mycash-surface); border-radius:24px; background:var(--mycash-surface-muted); box-shadow:0 0 0 1px var(--mycash-border); position:relative; display:grid; place-items:center; color:#4c86bb; }
.mycash-profile-avatar > svg { width:42px; height:42px; }
.mycash-profile-avatar img { max-width:100%; height:auto; object-fit:contain; border-radius:18px; }
.mycash-profile-identity-content { flex:1; min-width:0; padding-top:20px; }
.mycash-profile-name { margin:0; color:var(--mycash-ink); font-size:23px; font-weight:500; overflow-wrap:anywhere; line-height:1.5; }
.mycash-profile-meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px 16px; color:var(--mycash-muted); font-size:14px; margin-top:8px; }
.mycash-profile-tabs { border-top:1px solid var(--mycash-border); padding-inline:24px; }
.mycash-profile-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; }
.mycash-profile-layout-has-summary { grid-template-columns:220px minmax(0,1fr); }
.mycash-profile-summary { border:0; border-inline-end:1px solid var(--mycash-border); border-radius:0; background:transparent; min-width:0; padding:0 0 0 20px; }
.mycash-profile-summary h3 { margin:0 0 12px; color:var(--mycash-ink); font-size:14px; font-weight:500; }
.mycash-profile-facts { margin:0; display:grid; gap:0; }
.mycash-profile-facts > div { padding:14px 0; border-bottom:1px solid var(--mycash-border); min-width:0; }
.mycash-profile-facts > div:last-child { border:0; padding-bottom:0; }
.mycash-profile-facts dt { color:var(--mycash-muted); font-size:13px; }
.mycash-profile-facts dd { margin:7px 0 0; color:var(--mycash-ink); font-size:14px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.mycash-profile-main { min-width:0; }
.mycash-profile-main [id] { scroll-margin-top:calc(var(--topbar-height,64px) + 24px); }
.mycash-profile-content-stack { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; }
.mycash-profile-masthead .dossier-head { border:0; padding:0; background:transparent; border-radius:0; }
.mycash-profile-masthead .dossier-avatar { display:none; }
.mycash-profile-masthead .dossier-stamp-brand { display:none; }
.mycash-profile-masthead .dossier-name { font-weight:500; font-size:23px; }
.mycash-profile-tabs .dossier-tabs { margin:0; border:0; gap:24px; }
.mycash-profile-tabs .dossier-tab { padding-block:15px; }
.mycash-profile-main .dossier-grid { grid-template-columns:minmax(0,1fr); }
.mycash-profile-masthead .branch-profile__identity { padding:0; }
.mycash-profile-masthead .branch-profile__identity h2 { margin:0 0 8px; font-weight:500; }
.mycash-profile-tabs .branch-profile__tabs { margin:0; padding:14px 0; flex-wrap:nowrap; overflow-x:auto; }
.mycash-profile-tabs .branch-profile__tabs a { white-space:nowrap; font-size:13px; color:var(--mycash-muted); }
.mycash-profile-tabs .branch-profile__tabs a:hover { color:var(--mycash-accent-ink); }
.mycash-user-profile-identity { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.mycash-user-profile-identity .mc-profile-info, .mycash-user-profile-identity .mc-profile-badges { padding-top:0; }
.mycash-user-profile-identity .mc-profile-name { font-weight:500; }
.mycash-profile-avatar .mc-profile-avatar-wrap { width:100%; height:100%; margin:0; }
.mycash-profile-avatar .mc-profile-avatar-button { width:100%; height:100%; border:0; border-radius:18px; box-shadow:none; }
.mycash-profile-avatar .mc-profile-avatar { width:100%; height:100%; object-fit:cover; }
@media (min-width:1024px) and (min-height:800px) { .mycash-profile-summary { position:sticky; top:calc(var(--topbar-height,64px) + 24px); } }
@media (max-width:1100px) { .mycash-profile-layout-has-summary { grid-template-columns:minmax(0,1fr); }.mycash-profile-summary { position:static; border-inline-end:0; border-block-end:1px solid var(--mycash-border); padding:0 0 20px; }.mycash-profile-facts { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:20px; } }
@media (max-width:640px) {
    .mycash-profile-masthead .mycash-profile-cover { height:120px; }
    .mycash-profile-art { width:65%; left:60px; opacity:.2; }
    .mycash-profile-caption { inset-inline-start:16px; top:15px; }
    .mycash-profile-masthead .mycash-profile-cover > .mycash-brand-logo { width:90px; height:30px; inset-inline-end:16px; bottom:16px; }
    .mycash-profile-identity { padding:0 18px 20px; gap:12px; align-items:flex-start; }
    .mycash-profile-avatar { width:72px; height:72px; flex-basis:72px; border-radius:21px; }
    .mycash-profile-identity-content { padding-top:16px; }
    .mycash-profile-name, .mycash-profile-masthead .dossier-name { font-size:20px; }
    .mycash-profile-meta { font-size:13px; gap:7px 12px; }
    .mycash-profile-tabs { padding-inline:18px; }
    .mycash-profile-masthead .dossier-head { flex-direction:column; align-items:flex-start; }
    .mycash-profile-masthead .dossier-stamp { width:auto; text-align:start; }
    .mycash-profile-masthead .dossier-stamp > div, .mycash-profile-masthead .dossier-stamp > bdi { display:block; }
    .mycash-profile-masthead .dossier-stamp > .dossier-stamp-brand { display:none; }
    .mycash-profile-facts { grid-template-columns:minmax(0,1fr); }
    .mycash-profile-summary { padding:0 0 18px; }
    .mycash-workspace-hero__content { width:100%; }
    .mycash-workspace-hero__art { width:96%; left:0; }
}

/* Credit-history rows retain native authorized actions and local table scrolling. */
.credit-history { --ch-border:var(--mycash-border); --ch-muted:var(--mycash-muted); --ch-soft:var(--mycash-surface-muted); display:grid; gap:20px; min-width:0; color:var(--mycash-ink); }
.credit-history .ch-head { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.credit-history .ch-title { font-size:16px; font-weight:600; line-height:1.6; }
.credit-history .ch-note { color:var(--ch-muted); font-size:13px; line-height:1.85; margin-top:4px; overflow-wrap:anywhere; }
.credit-history .ch-count { border:1px solid var(--ch-border); border-radius:20px; padding:6px 12px; font-size:12px; white-space:nowrap; }
.credit-history .ch-list { display:grid; gap:10px; }
.credit-history .ch-card { display:grid; grid-template-columns:minmax(150px,1.1fr) minmax(160px,1.3fr) minmax(110px,.7fr) auto; align-items:center; gap:20px; padding:18px; border:1px solid var(--ch-border); border-radius:8px; background:var(--mycash-surface); }
.credit-history .ch-card > div { min-width:0; }
.credit-history .ch-card-selected { border-inline-start:3px solid var(--mycash-accent); }
.credit-history .ch-date { font-size:17px; font-weight:600; font-variant-numeric:tabular-nums; }
.credit-history .ch-type { display:inline-block; font-size:12px; margin-inline-start:8px; padding:3px 8px; border:1px solid var(--ch-border); border-radius:6px; vertical-align:middle; }
.credit-history .ch-score { font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; line-height:1.5; }
.credit-history .ch-state { font-size:13px; font-weight:600; display:flex; align-items:center; gap:7px; }
.credit-history .ch-state::before { content:''; width:7px; height:7px; flex-shrink:0; border-radius:50%; background:var(--mycash-muted); }
.credit-history .ch-state-ready::before { background:#10b981; }
.credit-history .ch-state-pending::before { background:#f59e0b; }
.credit-history .ch-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.credit-history .ch-panel { border-block-start:2px solid var(--mycash-accent); padding-block:20px; min-width:0; }
.credit-history .ch-empty { padding:24px; text-align:center; border-block:1px dashed var(--ch-border); }
.credit-history .ch-table-wrap { overflow-x:auto; max-width:100%; margin-top:16px; border:1px solid var(--ch-border); border-top:2px solid var(--mycash-accent); border-radius:8px; }
.credit-history .ch-table { width:100%; min-width:900px; border-collapse:collapse; font-size:13px; }
.credit-history .ch-table th { font-size:12px; color:var(--ch-muted); background:var(--ch-soft); font-weight:600; text-align:start; white-space:nowrap; padding:12px; }
.credit-history .ch-table td { padding:14px 12px; border-top:1px solid var(--ch-border); vertical-align:top; }
.credit-history .ch-numeric { font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (max-width:1100px) { .credit-history .ch-card { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.credit-history .ch-actions { justify-content:flex-end; } }
@media (max-width:550px) { .credit-history .ch-card { grid-template-columns:minmax(0,1fr); padding:14px; gap:14px 10px; }.credit-history .ch-actions { justify-content:flex-start; }.credit-history .ch-date { font-size:15px; } }
@media print { .credit-history .ch-actions { display:none; }.credit-history .ch-table-wrap { overflow:visible; }.credit-history .ch-table { min-width:0; }.credit-history .ch-card { break-inside:avoid; } }

/* Read-only detail views and dialogs share the same unframed facts and disclosures. */
.mycash-detail-view { display:grid; gap:20px; min-width:0; color:var(--mycash-ink); }
.mycash-detail-section { padding-block:16px; border-block-start:1px solid var(--mycash-border); min-width:0; }
.mycash-detail-heading { font-size:16px; font-weight:600; line-height:1.6; margin:0; overflow-wrap:anywhere; }
.mycash-detail-note { color:var(--mycash-muted); font-size:13px; line-height:1.85; margin-block:6px 0; overflow-wrap:anywhere; }
.mycash-detail-alert { color:#92400e; font-size:13px; line-height:1.85; margin-block:8px 0; overflow-wrap:anywhere; }
.dark .mycash-detail-alert { color:#fcd34d; }
.mycash-detail-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px 24px; margin:16px 0 0; }
.mycash-detail-facts-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.mycash-detail-facts-three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.mycash-detail-facts > div { min-width:0; }
.mycash-detail-facts dt { color:var(--mycash-muted); font-size:13px; line-height:1.7; }
.mycash-detail-facts dd { color:var(--mycash-ink); font-size:14px; font-weight:500; line-height:1.7; margin-block:6px 0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.mycash-detail-financial { padding-block:16px; border-block:1px solid var(--mycash-border); }
.mycash-detail-financial dd { font-size:18px; font-weight:600; }
.mycash-detail-group { padding-block:16px 0; margin-top:16px; border-block-start:1px solid var(--mycash-border); }
.mycash-detail-context { padding-inline-start:16px; border-inline-start:3px solid var(--mycash-accent); }
.mycash-detail-stack { display:grid; gap:16px; min-width:0; }
.mycash-detail-record { background:var(--mycash-surface); border:1px solid var(--mycash-border); border-radius:8px; padding:20px; min-width:0; }
.mycash-detail-header { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px; }
.mycash-detail-header > div { min-width:0; flex:1 1 180px; }
.mycash-detail-header .fi-badge { max-width:100%; }
.mycash-detail-disclosure { border-block-start:1px solid var(--mycash-border); margin-top:16px; min-width:0; }
.mycash-detail-disclosure summary { min-height:44px; padding-block:12px; cursor:pointer; font-size:14px; font-weight:500; line-height:1.7; overflow-wrap:anywhere; }
.mycash-detail-disclosure summary:focus-visible { outline:2px solid var(--mycash-focus); outline-offset:2px; border-radius:4px; }
.mycash-detail-source,.mycash-detail-reason { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; font-size:14px; line-height:1.85; margin-top:12px; }
.mycash-detail-list { list-style:disc inside; display:grid; gap:8px; margin-top:12px; font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.mycash-detail-empty { padding:24px 16px; text-align:center; border-block:1px dashed var(--mycash-border); }
.mycash-detail-empty-icon { width:32px; height:32px; color:var(--mycash-muted); margin:0 auto 12px; }
@media (max-width:1023px) { .mycash-detail-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:479px) { .mycash-detail-facts,.mycash-detail-facts-two,.mycash-detail-facts-three { grid-template-columns:minmax(0,1fr); }.mycash-detail-record { padding:16px; } }
@media (forced-colors:active) { .mycash-detail-disclosure summary:focus-visible { outline-color:Highlight; } }
@media print { .dark .mycash-detail-alert { color:#92400e; }.mycash-detail-record { break-inside:avoid; }.mycash-detail-disclosure:not([open]) { display:none; } }

/* Operational modules share the panel's selected theme, including manual light mode. */
.lending-profile { --lp-panel:var(--mycash-surface); --lp-muted-panel:var(--mycash-surface-muted); --lp-line:var(--mycash-border); --lp-text:var(--mycash-ink); --lp-muted:var(--mycash-muted); --lp-accent:var(--mycash-accent); color:var(--lp-text); min-width:0; }
.lending-profile * { box-sizing:border-box; }
.lending-profile :where(.text-gray-950,.text-gray-900,.text-gray-800,.text-gray-700) { color:var(--lp-text) !important; }
.lending-profile :where(.text-gray-600,.text-gray-500,.text-gray-400,.text-gray-300,.text-gray-200) { color:var(--lp-muted) !important; }
.lending-profile svg { width:20px; height:20px; flex:0 0 auto; }
.lending-profile .lending-profile-mark { width:56px; height:56px; }
.lending-profile .lending-profile-mark svg { width:28px; height:28px; }
.lending-profile :is(.lending-profile-surface,article,tbody) { background:var(--lp-panel); }
.lending-profile .lp-hero { border:1px solid var(--lp-line); border-top:3px solid var(--lp-accent); border-radius:8px; }
.lending-profile .lp-tabs { padding:0 4px; }
.lending-profile .lp-profile-name { white-space:normal; overflow-wrap:anywhere; font-size:23px; line-height:1.5; }
.lending-profile :is(.lp-tabs button,button[aria-pressed],a[title]) { min-height:44px; }
.lending-profile a[title] { min-width:44px; }
.lending-profile :is(button,a):focus-visible { outline:2px solid var(--mycash-focus); outline-offset:2px; }
.lending-profile .lp-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.lending-profile .lp-card { min-height:102px; padding:16px; border:1px solid var(--lp-line); border-radius:8px; min-width:0; overflow-wrap:anywhere; }
.lending-profile .lp-analysis-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.lending-profile .lp-chart-panel { padding:16px 0; border-top:1px solid var(--lp-line); min-width:0; }
.lending-profile .lp-bar-track { height:8px; overflow:hidden; border-radius:4px; background:var(--lp-line); }
.lending-profile .lp-bar-fill { height:100%; min-width:0; border-radius:inherit; background:var(--lp-accent); }
.lending-profile .lp-bar--success { background:#10b981; }
.lending-profile .lp-bar--warning { background:#f59e0b; }
.lending-profile .lp-bar--danger { background:#f43f5e; }
.lending-profile .lp-bucket-grid { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px; }
.lending-profile .lp-bucket-card { min-height:72px; padding:12px; border:1px solid var(--lp-line); border-radius:8px; overflow-wrap:anywhere; }
.lending-profile .lp-risk-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.lending-profile .lp-table-wrap { overflow:auto; max-width:100%; border:1px solid var(--lp-line); border-top:2px solid var(--lp-accent); border-radius:8px; }
.lending-profile .lp-table-wrap table { min-width:850px; width:100%; border-collapse:collapse; }
.lending-profile .lp-table-wrap :is(th,td) { padding:12px 16px; text-align:start; }
.lending-profile .lp-table-wrap th { background:var(--lp-muted-panel); color:var(--lp-muted); font-size:12px; }
.lending-profile .lp-table-wrap td { border-top:1px solid var(--lp-line); }
.lending-profile .lp-status { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:6px; font-size:12px; font-weight:600; }
.lending-profile .lp-status::before { content:''; width:7px; height:7px; border-radius:50%; background:currentColor; }
.lending-profile .lp-status--stable { color:#047857; background:rgb(5 150 105 / .1); }
.lending-profile .lp-status--watch { color:#92400e; background:rgb(217 119 6 / .12); }
.lending-profile .lp-status--high { color:#be123c; background:rgb(225 29 72 / .12); }
.lending-profile .lp-status--no_data { color:var(--lp-muted); background:var(--lp-muted-panel); }
.dark .lending-profile .lp-status--stable { color:#6ee7b7; }
.dark .lending-profile .lp-status--watch { color:#fcd34d; }
.dark .lending-profile .lp-status--high { color:#fda4af; }
.installment-overview { display:grid; gap:16px; min-width:0; color:var(--mycash-ink); }
.installment-context { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; color:var(--mycash-muted); font-size:13px; }
.installment-status { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:#047857; }
.dark .installment-status { color:#6ee7b7; }
.installment-status svg { width:16px; height:16px; }
.installment-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-block:1px solid var(--mycash-border); padding-block:20px; gap:20px; }
.installment-metric { display:grid; gap:7px; min-width:0; }
.installment-metric dt { font-size:13px; color:var(--mycash-muted); display:flex; align-items:center; gap:6px; }
.installment-metric dt svg { width:17px; height:17px; flex-shrink:0; }
.installment-value { font-size:22px; font-weight:600; overflow-wrap:anywhere; line-height:1.4; font-variant-numeric:tabular-nums; }
.installment-unit { font-size:12px; color:var(--mycash-muted); }
.installment-danger { color:#dc2626; }
.dark .installment-danger { color:#fb7185; }
.installment-info { color:#0f766e; }
.dark .installment-info { color:#5eead4; }
.installment-distribution { display:grid; gap:10px; padding-bottom:8px; }
.installment-distribution-label { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:12px; }
.installment-track { display:flex; height:8px; background:var(--mycash-border); border-radius:3px; overflow:hidden; }
.installment-track span { height:100%; flex-shrink:0; }
.installment-track .late { background:#f43f5e; }
.installment-track .soon { background:#14b8a6; }
.mycash-installments-table .fi-ta-header-cell { font-size:12px; white-space:nowrap; }
.mycash-installments-table .fi-ta-table { min-width:840px; }
.mycash-installments-table .fi-ta-cell { font-size:13px; }
.fs-center { --fs-bg:var(--mycash-surface); --fs-soft:var(--mycash-surface-muted); --fs-line:var(--mycash-border); --fs-text:var(--mycash-ink); --fs-muted:var(--mycash-muted); color:var(--fs-text); min-width:0; }
.fs-center * { box-sizing:border-box; }
.fs-center :is(h2,h3,p) { margin:0; overflow-wrap:anywhere; }
.fs-center p { line-height:1.85; }
.fs-status,.fs-guide { border-block:1px solid var(--fs-line); }
.fs-status { padding:24px 0; border-inline-start:4px solid var(--mycash-accent); padding-inline-start:20px; display:flex; justify-content:space-between; gap:24px; align-items:center; }
.fs-status.safe { border-inline-start-color:#10b981; }
.fs-status.blocked { border-inline-start-color:#ef4444; }
.fs-eyebrow { font-size:12px; color:var(--fs-muted); margin-bottom:8px!important; }
.fs-status h2 { font-size:20px; font-weight:600; line-height:1.6; }
.fs-muted { color:var(--fs-muted); font-size:13px; }
.fs-status-copy { max-width:760px; min-width:0; }
.fs-status-next { margin-top:12px!important; font-size:14px; }
.fs-status-side { min-width:185px; display:flex; flex-direction:column; gap:12px; align-items:flex-start; }
.fs-baseline { font-size:12px; color:var(--fs-muted); }
.fs-guide { margin-top:18px; padding:16px 0; }
.fs-guide-steps { display:flex; gap:24px; flex-wrap:wrap; margin-top:8px; }
.fs-guide-steps span { font-size:13px; }
.fs-guide-steps b { display:inline-grid; place-items:center; width:24px; height:24px; border:1px solid var(--fs-line); border-radius:50%; margin-inline-end:7px; }
.fs-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:18px 0 26px; }
.fs-card { padding:20px; display:flex; flex-direction:column; gap:12px; min-width:0; background:var(--fs-bg); border:1px solid var(--fs-line); border-radius:8px; }
.fs-card h3 { font-size:15px; font-weight:600; }
.fs-card p { font-size:13px; color:var(--fs-muted); flex:1; }
.fs-card .fs-card-action { align-self:flex-start; }
.fs-workspace { min-width:0; border-block:2px solid var(--mycash-accent); border-bottom:1px solid var(--fs-line); }
.fs-tabs { display:flex; gap:6px; overflow-x:auto; padding:14px 0; border-bottom:1px solid var(--fs-line); }
.fs-tabs button { flex-shrink:0; white-space:nowrap; min-height:44px; padding:10px 14px; border-radius:6px; font-size:13px; font-weight:600; border:1px solid transparent; color:var(--fs-muted); }
.fs-tabs button[aria-pressed=true] { background:var(--mycash-accent-soft); color:var(--mycash-accent-ink); border-color:var(--fs-line); }
.fs-tabs button:focus-visible { outline:2px solid var(--mycash-focus); outline-offset:2px; }
.fs-workspace-head { padding:22px 0 14px; display:flex; justify-content:space-between; gap:16px; align-items:center; }
.fs-workspace-head h2 { font-size:17px; font-weight:600; }
.fs-count { font-size:12px; padding:5px 10px; background:var(--fs-soft); border:1px solid var(--fs-line); border-radius:20px; white-space:nowrap; }
.fs-filters { display:flex; gap:14px; align-items:flex-end; padding:0 0 18px; }
.fs-field { min-width:200px; }
.fs-field.search { flex:1; }
.fs-field label { display:block; font-size:13px; font-weight:600; margin-bottom:7px; }
.fs-table-wrap { overflow:auto; max-width:100%; border:1px solid var(--fs-line); border-radius:8px; }
.fs-table { width:100%; min-width:800px; border-collapse:collapse; font-size:13px; white-space:normal; background:var(--fs-bg); }
.fs-table td:nth-child(2) { min-width:180px; }
.fs-table caption { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.fs-table th { background:var(--fs-soft); color:var(--fs-muted); font-size:12px; font-weight:600; text-align:start; padding:13px 20px; border-block:1px solid var(--fs-line); }
.fs-table td { padding:18px 20px; vertical-align:top; border-bottom:1px solid var(--fs-line); }
.fs-table tr:last-child td { border-bottom:0; }
.fs-table tbody tr:is(:hover,:focus-within) { background:var(--fs-soft); }
.fs-reference { font-weight:600; white-space:nowrap; }
.fs-detail { min-width:230px; max-width:460px; overflow-wrap:anywhere; }
.fs-email { direction:ltr; text-align:start; font-family:ui-monospace,monospace; font-size:12px; word-break:break-all; }
.fs-label { font-size:12px; color:var(--fs-muted); margin-top:8px; }
.fs-label:first-child { margin-top:0; }
.fs-reason { margin-top:10px!important; font-size:13px; }
.fs-date { white-space:nowrap; font-size:12px; color:var(--fs-muted); }
.fs-empty { text-align:center; padding:45px 24px 50px; }
.fs-empty-icon { width:48px; height:48px; background:var(--fs-soft); border:1px solid var(--fs-line); border-radius:8px; display:grid; place-items:center; margin:0 auto 16px; color:var(--fs-muted); }
.fs-empty h3 { font-size:16px; font-weight:600; margin-bottom:8px; }
.fs-empty p { color:var(--fs-muted); font-size:13px; max-width:580px; margin:auto; }
.fs-pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 0; border-top:1px solid var(--fs-line); }
.fs-pagination-buttons { display:flex; gap:8px; }
.fs-technical { margin-top:8px; font-size:12px; color:var(--fs-muted); }
.fs-technical summary { cursor:pointer; min-height:44px; display:list-item; padding-block:12px; }
.fs-technical dl { margin-top:8px; display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 16px; }
.fs-technical dd { overflow-wrap:anywhere; }
@media (max-width:1100px) { .lending-profile .lp-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.lending-profile .lp-bucket-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }.lending-profile .lp-risk-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:900px) { .installment-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 16px; }.fs-cards { grid-template-columns:minmax(0,1fr); }.fs-status { align-items:flex-start; flex-direction:column; }.fs-status-side { min-width:0; }.fs-filters { flex-wrap:wrap; }.fs-field,.fs-field.search { width:100%; min-width:0; }.fs-workspace-head { align-items:flex-start; }.fs-guide-steps { gap:12px; } }
@media (max-width:680px) { .lending-profile :is(.lp-kpi-grid,.lp-analysis-grid) { grid-template-columns:minmax(0,1fr); }.lending-profile .lp-bucket-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (forced-colors:active) { .fs-tabs button[aria-pressed=true] { border:2px solid Highlight; }.fs-tabs button:focus-visible { outline-color:Highlight; } }
@media print { .fs-card-action,.fs-filters,.fs-pagination-buttons { display:none; }.fs-table-wrap,.lending-profile .lp-table-wrap { overflow:visible; }.fs-table,.lending-profile .lp-table-wrap table { min-width:0; }.fs-detail { min-width:0; }.fs-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media print { .fs-tabs { display:none; }.dark .lending-profile .lp-status--stable,.dark .installment-status { color:#047857; }.dark .lending-profile .lp-status--watch { color:#92400e; }.dark .lending-profile .lp-status--high { color:#be123c; }.dark .installment-danger { color:#dc2626; }.dark .installment-info { color:#0f766e; } }

/* Work surfaces: readable Arabic, predictable targets and native semantic states. */
.fi-body :is(.fi-header, .fi-header-heading-ctn, .fi-section-header-text-ctn) { min-width:0; }
.fi-body .fi-sidebar-item-label { white-space:normal; overflow-wrap:anywhere; line-height:1.6; }
.fi-body .fi-sidebar-item-btn { padding-inline:12px; }
.fi-body .fi-btn-label { white-space:normal; overflow-wrap:anywhere; }
.fi-body :is(.fi-btn, .fi-input, .fi-select-input, .fi-tabs-item) { letter-spacing:0; }
.fi-body .fi-ta-header-cell { color:var(--mycash-ink); }
.fi-body .fi-ta-cell { vertical-align:middle; }
.fi-body .fi-ta-row:focus-within { background:var(--mycash-surface-muted); }
.fi-body :is(.fi-btn, .fi-icon-btn, .fi-sidebar-item-btn, .fi-tabs-item):focus-visible {
    outline-color:var(--mycash-focus);
}
.fi-body .fi-btn:disabled { box-shadow:none; }
.fi-body .fi-input-wrp.fi-disabled { border-style:dashed; }
.mc-profile-name { white-space:normal; overflow-wrap:anywhere; }
.mycash-profile-tabs :is(.fi-tabs, .dossier-tabs) { max-width:100%; overflow-x:auto; }
.mycash-profile-tabs .fi-tabs { border:0; border-radius:0; background:transparent; }
.mycash-profile-tabs .fi-tabs-item { flex-shrink:0; }
.branch-profile__section, .branch-profile__hero, .branch-profile__fact, .branch-profile__card { border-radius:8px; }
@media (max-width:767px) {
    .fi-body .fi-header-heading,
    .fi-body .fi-page:has(.mycash-workspace-hero) .fi-header-heading { font-size:24px; }
    .fi-body .fi-wi-stats-overview-stat-value { font-size:28px; }
    .fi-body :is(.fi-icon-btn, .fi-tabs-item, .fi-btn) { min-height:44px; }
    .fi-body .fi-icon-btn { min-width:44px; }
    .mycash-profile-tabs .fi-tabs { gap:4px; }
}
@media (forced-colors:active) {
    .fi-body :is(.fi-btn, .fi-icon-btn, .fi-sidebar-item-btn, .fi-tabs-item):focus-visible { outline-color:Highlight; }
    .fi-body .fi-input-wrp:not(.fi-invalid):not(.fi-disabled):has(:focus-visible) { outline-color:Highlight; }
    .fi-body .fi-input-wrp.fi-invalid { border:2px solid CanvasText; }
}
@media (min-width:768px) and (max-width:1023px) {
    .fi-body :is(.fi-icon-btn, .fi-tabs-item, .fi-btn) { min-height:44px; }
    .fi-body .fi-icon-btn { min-width:44px; }
}
@media (prefers-reduced-motion:reduce) { .mycash-workspace-link, .loan-calc__pending { transition:none; } }
@media (forced-colors:active) {
    .mycash-profile-art, .mycash-soft-knot,
    .fi-body .fi-header-heading::before, .fi-body .fi-header-heading::after,
    .fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::after { display:none; }
    .fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-btn::before { display:none; }
    .mycash-profile-masthead, .mycash-profile-summary { border-color:CanvasText; }
}
@media print {
    .mycash-profile-masthead .mycash-profile-cover, .mycash-profile-tabs { display:none; }
    .mycash-profile-identity { padding-top:16px; }
    .mycash-profile-avatar { margin-top:0; }
    .mycash-profile-layout-has-summary { display:block; }
    .mycash-profile-summary { position:static; margin-bottom:18px; }
    .fi-body .fi-header-heading { padding-inline-start:0; }
    .fi-body .fi-header-heading::before, .fi-body .fi-header-heading::after, .mycash-soft-knot { display:none; }
    .mycash-profile-masthead .dossier-stamp > .dossier-stamp-brand { display:block; }
}
