:root {
    --blue: #2f66e8;
    --blue-dark: #214b9c;
    --blue-soft: #eaf1ff;
    --yellow: #f5d234;
    --ink: #111827;
    --muted: #667085;
    --line: #dde3ec;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --green: #16a35f;
    --red: #d7472f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--soft);
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    display: block;
    padding-left: 220px;
}

.sidebar {
    width: 220px;
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(180deg, #174ea6 0%, #1e5ed8 54%, #123a82 100%);
    border-right: 0;
    padding: 16px 14px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 80;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 8px 0 26px rgba(18, 58, 130, .18);
}

.brand {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 24px;
    color: white;
}

.brand strong {
    font-size: 17px;
    line-height: 1.15;
}

.brand-logo,
.login-logo,
.sso-logo {
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-logo {
    width: 30px;
    height: 30px;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
}

.login-logo {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
}

.sso-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
}

.menu-label,
.section-label {
    margin: 16px 8px 8px;
    color: #8d98aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.menu-label {
    color: rgba(226, 235, 255, .78);
    font-size: 11.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, .9);
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.nav-item.active {
    background: #ffffff;
    color: #1757e5;
    box-shadow: 0 10px 22px rgba(8, 30, 84, .18);
}

.nav-item.logout {
    min-height: 40px;
    justify-content: center;
    color: white;
    background: var(--red);
    margin-top: 22px;
    box-shadow: 0 12px 24px rgba(215, 71, 47, .3);
}

.nav-item.logout:hover {
    background: #c73520;
    color: white;
}

.nav-icon,
.button-icon,
.title-icon,
.arrow-icon {
    display: inline-block;
    flex: 0 0 auto;
}

.nav-icon {
    width: 24px;
    height: 24px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: rgba(255, 255, 255, .86);
    box-shadow: 0 5px 12px rgba(8, 30, 84, .12);
}

.nav-item:nth-of-type(1) .nav-icon {
    color: #64748b;
}

.nav-item:nth-of-type(2) .nav-icon {
    color: #2f66e8;
}

.nav-item:nth-of-type(3) .nav-icon {
    color: #10b981;
}

.nav-item:nth-of-type(4) .nav-icon {
    color: #8b5cf6;
}

.nav-item:nth-of-type(5) .nav-icon {
    color: #f59e0b;
}

.nav-item:nth-of-type(6) .nav-icon {
    color: #06b6d4;
}

.nav-item:nth-of-type(7) .nav-icon {
    color: #ef4444;
}

.nav-item.logout .nav-icon {
    color: var(--red);
}

.nav-page-dashboard .nav-icon {
    color: #64748b;
}

.nav-page-bi-dashboard .nav-icon {
    color: #2f66e8;
}

.nav-page-create .nav-icon {
    color: #10b981;
}

.nav-page-submissions .nav-icon {
    color: #8b5cf6;
}

.nav-page-approvals .nav-icon {
    color: #f59e0b;
}

.nav-page-entities .nav-icon {
    color: #06b6d4;
}

.nav-page-roles .nav-icon {
    color: #ef4444;
}

.nav-page-error-monitoring .nav-icon {
    color: #dc2626;
}

.nav-page-audit .nav-icon {
    color: #0f766e;
}

.sidebar .nav-item .nav-icon {
    background: rgba(255, 255, 255, .95);
}

.sidebar .nav-item.active .nav-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.sidebar .nav-item.logout .nav-icon {
    background: rgba(255, 255, 255, .95);
    color: var(--red);
    box-shadow: none;
}

.nav-item.active .nav-icon,
.feature-icon {
    color: var(--blue);
}

.sidebar .nav-item.logout,
.sidebar .nav-item.logout.active {
    background: var(--red);
    color: white;
}

.sidebar .nav-item.logout .nav-icon,
.sidebar .nav-item.logout.active .nav-icon {
    background: rgba(255, 255, 255, .95);
    color: var(--red);
}

.button-icon {
    width: 18px;
    height: 18px;
}

.title-icon {
    width: 22px;
    height: 22px;
    color: var(--blue);
}

.arrow-icon {
    width: 15px;
    height: 15px;
}

.workspace {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 42px;
}

.appbar {
    height: 59px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.user-menu {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #475467;
    font-weight: 700;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dce9ff;
    color: var(--blue);
}

.chevron {
    color: #8d98aa;
}

.container {
    flex: 1 0 auto;
    width: min(1216px, calc(100vw - 260px));
    margin: 28px auto 54px;
}

.container:has(.wide-submission) {
    width: min(1216px, calc(100vw - 250px));
}

.login-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(47, 102, 232, .08), rgba(16, 185, 129, .05) 38%, rgba(245, 247, 251, 0) 70%),
        #f1f3f7;
    padding: 28px;
}

.app-footer {
    position: fixed;
    left: 220px;
    right: 0;
    bottom: 0;
    z-index: 35;
    min-height: 34px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border-top: 1px solid #e4e8f0;
    backdrop-filter: blur(10px);
}

.app-footer-inner {
    width: min(1216px, calc(100vw - 260px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-copy {
    color: #a4acbd;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-copy strong {
    color: #667085;
    font-weight: 900;
}

.login-card {
    width: min(448px, calc(100vw - 42px));
    background: var(--paper);
    border-radius: 14px;
    padding: 34px 32px;
    box-shadow: 0 18px 36px rgba(17, 24, 39, .14);
}

.login-card.compact {
    text-align: center;
}

.login-card h1,
.sso-panel h2 {
    margin: 0 0 12px;
    text-align: center;
    font-size: 22px;
}

.login-card p {
    text-align: center;
}

.approval-card {
    position: relative;
    overflow: hidden;
    width: min(500px, calc(100vw - 42px));
    padding: 34px 34px 32px;
    border: 1px solid rgba(197, 208, 226, .9);
    background:
        linear-gradient(180deg, rgba(247, 250, 255, .92), rgba(255, 255, 255, .98)),
        var(--paper);
    box-shadow: 0 24px 58px rgba(31, 42, 68, .14);
}

.approval-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #2f66e8, #10b981, #f5d234);
}

.approval-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #2f66e8;
    background: linear-gradient(180deg, #edf4ff, #ffffff);
    border: 1px solid #d6e4ff;
    box-shadow: 0 14px 30px rgba(47, 102, 232, .14);
}

.approval-icon-svg {
    width: 30px;
    height: 30px;
}

.approval-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-bottom: 10px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #3156d4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.approval-card h1 {
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: 0;
}

.approval-card p {
    max-width: 390px;
    margin: 0 auto 18px;
    color: #53627a;
    font-size: 15px;
    line-height: 1.45;
}

.approval-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 20px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff8e6;
    color: #9a6500;
    font-size: 12px;
    font-weight: 800;
}

.approval-status span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, .12);
}

.approval-card .manual-button {
    min-height: 48px;
    border: 1px solid #d8e1ee;
    background: #fff;
    color: #17213a;
    box-shadow: 0 10px 22px rgba(31, 42, 68, .06);
}

.approval-card .manual-button:hover {
    border-color: #aebff2;
    color: #3156d4;
    background: #f8fbff;
}

.sso-button,
.manual-button,
.wide-button,
button,
.button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(47, 102, 232, .22);
}

button:disabled {
    cursor: not-allowed;
    opacity: .55;
    box-shadow: none;
    filter: grayscale(.15);
}

.manual-button {
    background: white;
    color: #1f2a44;
    border: 2px solid var(--line);
    box-shadow: none;
}

.dark-blue {
    background: var(--blue-dark);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #98a2b3;
    font-size: 13px;
    margin: 18px 0;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}

.login-card form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

label {
    display: grid;
    gap: 8px;
    color: #1f2a44;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: white;
    color: var(--ink);
    font-size: 15px;
}

textarea {
    resize: vertical;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-weight: 500;
}

.remember input {
    width: 16px;
    min-height: 16px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #98a2b3;
    text-decoration: none;
}

.hint {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.sso-page {
    width: 100vw;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #123066;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 34px;
}

.sso-page::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(#355189 1px, transparent 1px), linear-gradient(90deg, #355189 1px, transparent 1px);
    background-size: 45px 45px;
}

.sso-brand,
.sso-panel {
    position: relative;
    z-index: 1;
}

.sso-brand {
    text-align: center;
    margin-bottom: 26px;
}

.sso-brand h1 {
    margin: 0;
    font-size: 24px;
    letter-spacing: .04em;
}

.sso-panel {
    width: min(424px, calc(100vw - 42px));
    background: white;
    color: var(--ink);
    border-radius: 16px;
    padding: 36px 34px 30px;
}

.sso-panel input {
    min-height: 52px;
    border-radius: 999px;
    border: 2px solid #4382ff;
    margin: 14px 0 20px;
}

.sso-config-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.welcome {
    margin-bottom: 24px;
}

.hero-home {
    min-height: 124px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 64%, #fff8db 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.welcome h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

p {
    color: var(--muted);
    margin: 0 0 18px;
}

.feature-area {
    margin-bottom: 26px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
}

.feature-card {
    min-height: 126px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    position: relative;
    display: grid;
    align-content: end;
    gap: 5px;
}

.feature-card strong {
    font-size: 14px;
}

.feature-card small {
    color: var(--muted);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--blue-soft);
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 10px;
}

.feature-card:nth-child(2n) .feature-icon {
    background: #ecfdf5;
    color: var(--green);
}

.feature-card:nth-child(3n) .feature-icon {
    background: #fff8db;
    color: #d97706;
}

.feature-arrow {
    position: absolute;
    right: 16px;
    top: 18px;
    color: #c4ccd8;
    display: inline-flex;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-title h1,
h2 {
    margin: 0 0 8px;
}

.dashboard-title-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-shrink: 0;
}

.dashboard-title-actions .button,
.dashboard-title-actions .filter-toggle {
    min-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
}

.alert {
    background: #fff8db;
    border: 1px solid #f0d36a;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.filters,
.submission-form,
.settings-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 18px;
}

.dashboard-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    padding: 10px;
    border-color: #c9dcff;
    background:
        linear-gradient(135deg, rgba(239, 247, 255, .98), rgba(243, 251, 244, .96)),
        #f2f8ff;
    box-shadow: 0 18px 42px rgba(15, 63, 118, .11);
}

.dashboard-filters:not(.is-open) {
    display: none;
}

.filter-toggle {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f66e8, #1d8a6a);
    color: #fff;
    border: 0;
    box-shadow: 0 8px 18px rgba(47, 102, 232, .2);
    font-size: 13px;
    font-weight: 800;
}

.compact-filter-toggle .button-icon {
    width: 15px;
    height: 15px;
}

.filter-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.dashboard-filters.is-open .filter-toggle::after,
.filter-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
}

.dashboard-filter-panel {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(99, 139, 210, .22);
}

.dashboard-filter-panel[hidden] {
    display: none;
}

.dashboard-filter-row {
    display: grid;
    grid-template-columns:
        130px
        150px
        145px
        145px
        minmax(210px, 1fr)
        128px;
    gap: 12px;
    align-items: end;
}

.dashboard-filters label {
    min-width: 0;
    gap: 7px;
    color: #12325d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.dashboard-filters input:not([type="checkbox"]),
.dashboard-filters select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    background-color: rgba(255, 255, 255, .92);
    border-color: #bdd0ee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.dashboard-filters input:not([type="checkbox"]):focus,
.dashboard-filters select:focus {
    border-color: #4c7cf0;
    box-shadow: 0 0 0 3px rgba(76, 124, 240, .14);
}

.dashboard-filters select.native-select-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select {
    position: relative;
    width: 100%;
    margin-top: 7px;
}

.custom-select-button {
    width: 100%;
    min-height: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid #bdd0ee;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #eef6ff);
    color: #102b52;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 8px 18px rgba(24, 75, 132, .06);
}

.custom-select-button span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #3564a6;
    border-bottom: 2px solid #3564a6;
    transform: rotate(45deg) translateY(-2px);
    justify-self: center;
    transition: transform .16s ease;
}

.custom-select.is-open .custom-select-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.custom-select-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow: auto;
    padding: 7px;
    border: 1px solid #a9c3f4;
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 42px rgba(16, 54, 105, .22);
    display: none;
}

.custom-select.is-open .custom-select-menu {
    display: grid;
    gap: 4px;
}

.custom-select-option {
    min-height: 34px;
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #18375f;
    box-shadow: none;
    font-size: 13px;
    font-weight: 650;
    text-align: left;
    white-space: normal;
}

.custom-select-option:hover {
    background: #edf5ff;
    color: #0b4f91;
}

.custom-select-option.is-selected {
    background: linear-gradient(135deg, #2f66e8, #1d8a6a);
    color: #fff;
}

.dashboard-filters label.is-filter-disabled {
    color: #98a2b3;
}

.dashboard-filters label.is-filter-disabled input {
    background: #f8fafc;
    color: #98a2b3;
}

.chart-sbu-picker {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(99, 139, 210, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .58);
}

.metric-static {
    min-height: 40px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 8px 12px;
    border: 1px solid #bdd0ee;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef5ff, #ecfbf3);
    color: #12325d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.metric-static span {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #42648c;
}

.metric-static strong {
    font-size: 12px;
    line-height: 1.25;
    color: #0b3c78;
}

.chart-sbu-picker strong,
.chart-sbu-picker span,
.chart-sbu-picker em {
    display: block;
}

.chart-sbu-picker strong {
    color: #0f3d70;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.chart-sbu-picker span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    margin-top: 3px;
}

.chart-sbu-picker em {
    margin-top: 8px;
    color: #0b8a61;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 800;
}

.chart-sbu-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 8px;
    min-width: 0;
}

.chart-sbu-options label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    min-height: 34px;
    margin: 0;
    border: 1px solid #b8cbf6;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    padding: 0 11px;
    color: #18375f;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(30, 78, 140, .06);
}

.chart-sbu-options label.is-selected {
    border-color: #5f87f2;
    background: linear-gradient(135deg, #eaf2ff, #effbf4);
    box-shadow: 0 10px 22px rgba(47, 102, 232, .14);
}

.chart-sbu-options label.is-disabled {
    cursor: not-allowed;
    opacity: .48;
    background: #f8fafc;
}

.chart-sbu-options input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-height: 14px;
    min-width: 14px;
    flex: 0 0 14px;
    margin: 0;
    padding: 0;
    border-radius: 3px;
    box-shadow: none;
    accent-color: #2f66e8;
}

.chart-date-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(107, 145, 209, .24);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(236, 246, 255, .78));
}

.chart-date-filter.is-open {
    border-color: #9fbcff;
    background: linear-gradient(135deg, #eef5ff, #ecfbf3);
}

.chart-date-summary strong,
.chart-date-summary span {
    display: block;
}

.chart-date-summary strong {
    color: #12325d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.chart-date-summary span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.chart-compare-open {
    width: auto;
    min-width: 118px;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 12px;
    line-height: 1;
    border-color: #bdd0ee;
    background: #fff;
}

.chart-date-filter.is-open .chart-compare-open {
    border-color: #9eb6ff;
    color: #3156d4;
}

.chart-date-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) 150px minmax(116px, 140px);
    gap: 12px;
    align-items: end;
    padding-top: 4px;
}

.chart-date-fields[hidden] {
    display: none;
}

.chart-range-clear {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1;
}

.chart-compare-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    border: 1px solid #a7c0f5;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #edf5ff);
    color: #18375f;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.chart-compare-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    margin: 0;
    padding: 0;
    accent-color: #4361ee;
}

.filter-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    background: linear-gradient(135deg, #2f66e8, #1d8a6a);
    box-shadow: 0 12px 22px rgba(47, 102, 232, .22);
}

.filters,
.submission-form {
    padding: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.compact-submission {
    padding: 10px 12px 13px;
}

.compact-submission .submit-title {
    margin-bottom: 10px;
    align-items: center;
}

.compact-submission .submit-title h1 {
    margin-bottom: 3px;
    font-size: 22px;
    line-height: 1.15;
}

.compact-submission .submit-title p {
    margin-bottom: 0;
    font-size: 13px;
}

.period-info {
    min-width: 250px;
    padding: 9px 12px;
    border: 1px solid #cfe0f8;
    border-radius: 12px;
    background: #f8fbff;
    text-align: right;
}

.period-info span,
.period-info small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.period-info strong {
    display: block;
    margin: 2px 0;
    color: #12306b;
    font-size: 14px;
}

.compact-form-row {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(320px, 1.1fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 10px;
}

.compact-form-row.single-upload {
    grid-template-columns: minmax(320px, 520px);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.metrics div {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.modern-metrics div {
    border-radius: 14px;
    border: 0;
    min-height: 92px;
    padding: 14px 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.metrics strong {
    font-size: 22px;
    line-height: 1.15;
}

.metrics small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
    margin-top: 7px;
}

.role-metrics {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    margin-bottom: 22px;
}

.chart-card,
.insight-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.chart-head h2,
.insight-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
}

.chart-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.legend span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.legend .cash {
    background: var(--blue);
}

.legend .debt {
    background: #f59e0b;
}

.multi-sbu-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}

.chart-comparison-key {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.chart-comparison-key span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.chart-comparison-key i {
    width: 28px;
    height: 0;
    border-top: 3px solid var(--blue);
}

.chart-comparison-key .previous-key {
    border-color: #94a3b8;
    border-top-style: dashed;
}

.legend-item {
    width: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #d7e0ed;
    border-radius: 999px;
    background: white;
    color: #31425f;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.legend-item span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.legend-item:not(.active) {
    opacity: .45;
    text-decoration: line-through;
}

.line-chart {
    width: 100%;
    height: auto;
    display: block;
}

.line-chart-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
}

.line-chart-scroll .line-chart {
    max-width: none;
}

.line-chart-scroll::-webkit-scrollbar {
    height: 8px;
}

.line-chart-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #9bb6f5;
}

.chart-range-note {
    margin: -2px 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.chart-grid-line {
    stroke: #e6edf6;
    stroke-width: 1;
}

.axis-label,
.x-labels text {
    fill: #7b8797;
    font-size: 11px;
}

.chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comparison-line {
    stroke-width: 3;
    stroke-dasharray: 10 8;
    opacity: .82;
}

.chart-sbu-series {
    transition: opacity .18s ease;
}

.chart-sbu-series.is-hidden {
    opacity: .08;
}

.cash-line {
    stroke: var(--blue);
}

.debt-line {
    stroke: #f59e0b;
}

.cash-area {
    fill: rgba(47, 102, 232, .08);
    stroke: none;
}

.chart-dot {
    stroke: white;
    stroke-width: 2;
}

.multi-sbu-dot {
    cursor: pointer;
}

.cash-dot {
    fill: var(--blue);
}

.debt-dot {
    fill: #f59e0b;
}

.empty-chart {
    min-height: 260px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f8fbff;
    border-radius: 12px;
}

.insight-card {
    display: grid;
    gap: 14px;
}

.insight-card div {
    min-height: 70px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f8fbff;
}

.insight-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.insight-card strong {
    font-size: 20px;
    line-height: 1.15;
}

.insight-card .insight-period {
    min-height: 86px;
}

.insight-period strong {
    display: block;
    font-size: 20px;
    line-height: 1.12;
}

.insight-period small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.insight-summary {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #5f6f89;
    font-size: 13px;
    line-height: 1.3;
}

.insight-summary li {
    position: relative;
    padding-left: 14px;
}

.insight-summary li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #4361ee;
}

.error-monitor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 18px;
    margin-bottom: 22px;
}

.error-chart-card,
.error-log-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.error-metrics strong {
    font-size: 25px;
}

.error-bar-chart {
    display: grid;
    gap: 12px;
}

.error-bar-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
    color: #23304a;
    font-size: 13px;
    font-weight: 800;
}

.error-bar-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-bar-track {
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: #edf2fb;
}

.error-bar-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.error-bar-row strong {
    text-align: right;
    color: var(--red);
}

.error-trend-chart {
    min-height: 210px;
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    padding: 8px 6px 2px;
    scrollbar-width: thin;
    scrollbar-color: #9bb7f4 #eef4ff;
}

.error-trend-chart svg {
    width: auto;
    min-width: 100%;
    max-width: none;
    height: auto;
    display: block;
}

.error-trend-chart::-webkit-scrollbar {
    height: 8px;
}

.error-trend-chart::-webkit-scrollbar-track {
    background: #eef4ff;
    border-radius: 999px;
}

.error-trend-chart::-webkit-scrollbar-thumb {
    background: #9bb7f4;
    border-radius: 999px;
}

.error-trend-chart line {
    stroke: #e1e8f2;
    stroke-width: 1;
}

.error-trend-chart polyline {
    fill: none;
    stroke: #ef4444;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-trend-chart circle {
    fill: #ef4444;
    stroke: white;
    stroke-width: 3;
}

.error-trend-chart text {
    fill: #7b8797;
    font-size: 11px;
    font-weight: 700;
}

.error-trend-chart .error-y-label {
    fill: #98a2b3;
    font-size: 10px;
}

.error-trend-chart .error-date-label {
    fill: #667085;
    font-size: 10px;
}

.error-trend-chart .error-value-label {
    fill: #9f1239;
    font-size: 11px;
    font-weight: 900;
}

.compact-empty {
    min-height: 188px;
}

.error-log-table {
    min-width: 1040px;
}

.error-log-table td strong,
.error-log-table td small {
    display: block;
}

.error-log-table td small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
}

.error-message-cell {
    max-width: 320px;
    color: #7f1d1d;
    font-weight: 700;
    line-height: 1.35;
}

.error-detail-action {
    text-align: center;
}

.error-detail-action .icon-button {
    margin: 0 auto;
    background: #eef4ff;
    color: #2458dc;
}

.error-detail-dialog {
    width: min(820px, 94vw);
}

.error-pov-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, .85fr) minmax(220px, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.error-pov-card {
    min-width: 0;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #f8fbff;
    padding: 14px;
}

.error-pov-card.primary {
    background: #fff7f5;
    border-color: #ffd4cc;
}

.error-pov-card span,
.error-pov-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.error-pov-card strong {
    display: block;
    margin-top: 6px;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
}

.error-pov-card.primary strong {
    color: #8f1414;
}

.error-detail-message p {
    color: #7f1d1d;
    font-weight: 700;
    line-height: 1.45;
}

.error-context-list {
    margin-top: 14px;
}

.error-context-list h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.error-context-list dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.error-context-list dl div {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 11px 12px;
}

.error-context-list dt {
    margin-bottom: 4px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.error-context-list dd {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.muted-copy {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .audit-grid,
    .error-pov-grid,
    .error-context-list dl {
        grid-template-columns: 1fr;
    }
}

.empty-state-cell {
    text-align: center;
    color: var(--muted);
    padding: 28px;
}

.audit-metrics strong {
    font-size: 25px;
}

.audit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.audit-card {
    margin-bottom: 22px;
}

.audit-table {
    min-width: 760px;
}

.audit-table.wide {
    min-width: 980px;
}

.audit-user-cell strong,
.audit-user-cell small {
    display: block;
}

.audit-user-cell strong {
    color: #111827;
    line-height: 1.3;
}

.audit-user-cell small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
}

.grid-two > div {
    min-width: 0;
}

.data-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.sbu-report-card {
    margin-bottom: 22px;
}

.sbu-report-card td small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    margin-top: 2px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: #9bb7f4 #eef4ff;
}

.table-scroll::-webkit-scrollbar {
    height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
    background: #eef4ff;
    border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #9bb7f4;
    border-radius: 999px;
    border: 2px solid #eef4ff;
}

.history-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) auto auto;
    gap: 10px;
    align-items: end;
    margin: 0 0 16px;
}

.history-search label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
}

.history-search input {
    min-height: 42px;
    border: 1px solid #c9d6ea;
    border-radius: 8px;
    padding: 0 13px;
    color: #0f172a;
    background: #fff;
}

.history-search input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 102, 232, .12);
}

.history-submit,
.history-clear {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 15px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.history-clear {
    border: 1px solid #c9d6ea;
    color: var(--blue);
    background: #fff;
}

.history-date-label {
    min-width: 0;
}

.modern-date-picker {
    position: relative;
    display: block;
}

.modern-date-picker input[type="hidden"] {
    display: none;
}

.modern-date-trigger {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #c9d6ea;
    border-radius: 10px;
    padding: 0 12px 0 14px;
    color: #667085;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .96)),
        #fff;
    box-shadow: 0 8px 22px rgba(31, 72, 130, .08);
    font: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.modern-date-trigger:hover,
.modern-date-trigger[aria-expanded="true"] {
    border-color: var(--blue);
    box-shadow: 0 12px 28px rgba(47, 102, 232, .16);
}

.modern-date-trigger:active {
    transform: translateY(1px);
}

.modern-date-trigger.has-value {
    color: #111827;
}

.date-picker-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--blue);
}

.modern-date-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 90;
    width: 286px;
    display: block;
    border: 1px solid rgba(145, 166, 205, .42);
    border-radius: 16px;
    padding: 12px;
    color: #111827;
    background:
        radial-gradient(circle at top left, rgba(245, 210, 52, .14), transparent 38%),
        linear-gradient(180deg, #fff, #f8fbff);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .15);
}

.modern-date-panel[hidden] {
    display: none;
}

.modern-date-head {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.modern-date-head strong {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #101828;
}

.modern-date-nav {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6f7;
    border-radius: 999px;
    color: #173b83;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.modern-date-nav:hover {
    border-color: var(--blue);
    background: #eef4ff;
}

.modern-date-weekdays,
.modern-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.modern-date-weekdays {
    margin-bottom: 6px;
    color: #667085;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.modern-date-grid {
    margin-bottom: 12px;
}

.modern-date-day {
    aspect-ratio: 1;
    min-width: 0;
    border: 0;
    border-radius: 9px;
    color: #101828;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.modern-date-day:hover {
    color: #173b83;
    background: #eef4ff;
}

.modern-date-day.is-muted {
    color: #98a2b3;
}

.modern-date-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(47, 102, 232, .35);
}

.modern-date-day.is-selected {
    color: #fff;
    background: linear-gradient(180deg, #4777f0, #2456d6);
    box-shadow: 0 9px 18px rgba(47, 102, 232, .28);
    font-weight: 600;
}

.modern-date-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #e5ecf7;
    padding-top: 10px;
}

.modern-date-actions button {
    border: 0;
    border-radius: 999px;
    padding: 7px 11px;
    color: #2f66e8;
    background: #eef4ff;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.modern-date-actions button:hover {
    background: #dfeaff;
}

.period-hover {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    text-decoration: underline dotted rgba(47, 102, 232, .65);
    text-underline-offset: 4px;
}

.period-hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    min-width: max-content;
    max-width: 260px;
    transform: translate(-50%, 4px);
    padding: 8px 10px;
    border-radius: 7px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .22);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    white-space: nowrap;
    z-index: 50;
}

.period-hover::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    width: 9px;
    height: 9px;
    background: #0f172a;
    transform: translate(-50%, 4px) rotate(45deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
    z-index: 49;
}

.period-hover:hover::after,
.period-hover:focus-visible::after,
.period-hover:hover::before,
.period-hover:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(0deg);
}

.period-hover:hover::before,
.period-hover:focus-visible::before {
    transform: translate(-50%, 0) rotate(45deg);
}

.empty-cell {
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    padding: 24px !important;
}

.dashboard-table-scroll {
    max-height: 632px;
    overflow: auto;
    padding-right: 2px;
}

.dashboard-table-scroll table {
    min-width: 900px;
}

.dashboard-table-scroll .freeze-detail-table,
.dashboard-table-scroll .freeze-summary-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.dashboard-table-scroll .freeze-detail-table {
    min-width: 1120px;
}

.dashboard-table-scroll .freeze-summary-table {
    min-width: 980px;
}

.dashboard-table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

.dashboard-table-scroll tfoot th {
    position: sticky;
    bottom: 0;
    z-index: 3;
    box-shadow: 0 -1px 0 var(--line);
}

.dashboard-table-scroll tbody td {
    min-height: 52px;
    height: 52px;
}

.dashboard-table-scroll .sticky-no,
.dashboard-table-scroll .sticky-sbu,
.dashboard-table-scroll .sticky-bu {
    position: sticky;
    background: #fff;
    background-clip: padding-box;
    z-index: 6;
}

.freeze-detail-table tbody tr:nth-child(even) .sticky-no,
.freeze-detail-table tbody tr:nth-child(even) .sticky-sbu,
.freeze-detail-table tbody tr:nth-child(even) .sticky-bu,
.freeze-summary-table tbody tr:nth-child(even) .sticky-no,
.freeze-summary-table tbody tr:nth-child(even) .sticky-sbu {
    background: #f8fbff;
}

.dashboard-table-scroll .sticky-no {
    left: 0;
    inset-inline-start: 0;
}

.dashboard-table-scroll .sticky-sbu {
    left: 72px;
    inset-inline-start: 72px;
}

.dashboard-table-scroll .sticky-bu {
    left: 212px;
    inset-inline-start: 212px;
}

.dashboard-table-scroll thead .sticky-no,
.dashboard-table-scroll thead .sticky-sbu,
.dashboard-table-scroll thead .sticky-bu {
    background: #2f66e8;
    z-index: 12;
}

.dashboard-table-scroll .sticky-bu,
.freeze-summary-table .sticky-sbu {
    box-shadow: 10px 0 16px rgba(15, 23, 42, .08);
}

.dashboard-table-scroll .sticky-no {
    min-width: 72px;
    width: 72px;
    max-width: 72px;
}

.dashboard-table-scroll .sticky-sbu {
    min-width: 140px;
    width: 140px;
    max-width: 140px;
}

.dashboard-table-scroll .sticky-bu {
    min-width: 132px;
    width: 132px;
    max-width: 132px;
}

.dashboard-table-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.data-card-head {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.data-card-head h2 {
    margin: 0;
    font-size: 21px;
}

.data-card-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--paper);
    border: 1px solid #d7e0ed;
    border-radius: 14px;
    overflow: hidden;
    font-size: 14px;
    min-width: 760px;
}

.submission-table {
    overflow: visible;
}

.submission-table td {
    overflow: visible;
}

th,
td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

thead th,
tfoot th {
    background: var(--blue);
    color: white;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    vertical-align: middle;
    border-bottom: 0;
}

thead th:first-child {
    border-top-left-radius: 13px;
}

thead th:last-child {
    border-top-right-radius: 13px;
}

tfoot th:first-child {
    border-bottom-left-radius: 13px;
}

tfoot th:last-child {
    border-bottom-right-radius: 13px;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.grid-two > div:nth-child(2) thead th,
.grid-two > div:nth-child(2) tfoot th {
    background: var(--blue-dark);
}

.summary-grid {
    margin-top: 22px;
}

.summary-grid > div:nth-child(2) thead th,
.summary-grid > div:nth-child(2) tfoot th {
    background: #4b812f;
}

tbody tr:nth-child(even) {
    background: #f8fbff;
}

.num {
    text-align: right;
    white-space: nowrap;
}

thead .num,
/* Header labels stay centered, numeric totals align with body values. */
thead .num {
    text-align: center;
}

tfoot .num {
    text-align: right;
}

.num-input {
    min-width: 0;
    text-align: right;
    font-weight: 700;
    color: #173b83;
}

.input-table-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.44fr) minmax(0, .86fr);
    gap: 10px;
    align-items: start;
}

.input-table-panel {
    border-radius: 12px;
}

.input-table {
    min-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
}

.cash-input-table {
    min-width: 0;
}

.debt-input-table {
    min-width: 0;
}

.input-table .col-no {
    width: 36px;
}

.input-table .col-sbu {
    width: 112px;
}

.input-table .col-bu {
    width: 74px;
}

.input-table .col-money {
    width: 82px;
}

.input-table .col-debt-bank {
    width: 96px;
}

.input-table th,
.input-table td {
    padding: 5px 6px;
    position: relative;
}

.input-table thead th {
    height: 38px;
    font-size: 10px;
    line-height: 1.15;
}

.input-table .num-input {
    min-height: 30px;
    border-radius: 8px;
    padding: 5px 7px;
    font-size: 11px;
}

.input-table td:nth-child(2),
.input-table td:nth-child(3) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wide-submission .input-table td:nth-child(3) {
    overflow: visible;
    text-overflow: clip;
}

.row-number {
    text-align: center;
    color: #1f2a44;
    font-weight: 700;
}

.is-submit-locked .input-table,
.is-submit-locked .submission-bottom {
    opacity: .68;
}

.is-submit-locked input:disabled,
.is-submit-locked textarea:disabled {
    background: #eef3fb;
    color: #667085;
    cursor: not-allowed;
}

.is-submit-locked .file-button {
    cursor: not-allowed;
    opacity: .62;
}

.input-table th.cash-head {
    background: linear-gradient(180deg, #2f66e8 0%, #0f73ba 100%);
}

.input-table th.cash-total-head {
    background: linear-gradient(180deg, #1f55cb 0%, #075d9d 100%);
}

.input-table th.cash-convert-head {
    background: linear-gradient(180deg, #18a7c8 0%, #0f6f9f 100%);
}

.input-table th.debt-head {
    background: linear-gradient(180deg, #4f8f34 0%, #34731f 100%);
}

.input-table th.debt-total-head {
    background: linear-gradient(180deg, #3f7d28 0%, #2d611b 100%);
}

.input-table td.cash-cell {
    background: linear-gradient(90deg, rgba(47, 102, 232, .07) 0%, rgba(255, 255, 255, .96) 100%);
}

.input-table td.debt-cell {
    background: linear-gradient(90deg, rgba(79, 143, 52, .08) 0%, rgba(255, 255, 255, .96) 100%);
}

.total-cell {
    min-width: 0;
    color: #173b83;
    font-weight: 800;
}

.cash-total-cell {
    background: linear-gradient(90deg, #eef5ff 0%, #dbeaff 100%);
}

.input-table th.cash-total-head::before,
.cash-total-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #9fc2ff;
}

.cash-convert-cell {
    background: linear-gradient(90deg, rgba(20, 166, 199, .14) 0%, rgba(225, 247, 252, .95) 100%);
    box-shadow: inset 3px 0 0 #9dddeb;
}

.debt-total-cell {
    background: linear-gradient(90deg, #ecfdf3 0%, #d9f5df 100%);
    color: #23621d;
    border-left: 2px solid #b7e1bc;
}

.debt-input {
    color: #23621d;
}

.rate-banner {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(130px, .7fr);
    gap: 10px;
    align-items: stretch;
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid #b7d4ff;
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 50%, #f2fbf2 100%);
}

.rate-banner.rate-warning {
    border-color: #f4c7a1;
    background: linear-gradient(135deg, #fff8f1 0%, #fff3e8 55%, #fffaf5 100%);
}

.rate-banner div {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(203, 213, 225, .7);
}

.rate-banner span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.rate-banner strong {
    color: #12306b;
    font-size: 15px;
}

.rate-banner small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 600;
    line-height: 1.3;
}

.submission-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    margin-top: 16px;
    margin-bottom: 16px;
}

.note-field,
.support-file-field {
    margin: 0;
}

.support-file-label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-weight: 900;
}

.submission-bottom textarea,
.support-file-field .file-picker {
    min-height: 76px;
}

.support-file-field .file-picker {
    align-content: center;
}

.submission-form > button,
.submit-trigger {
    margin-top: 8px;
}

.rate-submit-warning {
    margin-top: 6px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.rate-submit-warning[hidden] {
    display: none;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(4px);
}

.confirm-overlay[hidden] {
    display: none;
}

.confirm-dialog {
    width: min(460px, calc(100vw - 40px));
    border: 1px solid var(--line);
    border-radius: 22px;
    background: white;
    padding: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.confirm-dialog h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.confirm-dialog p {
    margin-bottom: 22px;
    line-height: 1.55;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-actions button {
    width: auto;
    min-height: 44px;
    padding: 0 22px;
}

.file-picker {
    min-height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 6px;
    overflow: hidden;
}

.file-picker input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 0 16px;
    color: white;
    background: var(--blue);
    box-shadow: 0 8px 16px rgba(47, 102, 232, .2);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.file-name {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.trend {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
}

.trend-cell {
    text-align: center;
    vertical-align: middle;
    width: 64px;
}

.trend-cell .trend {
    margin: 0 auto;
}

.trend.up {
    color: var(--green);
}

.trend.down {
    color: var(--red);
}

.trend.up::before,
.trend.down::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

.trend.up::before {
    border-bottom: 11px solid currentColor;
}

.trend.down::before {
    border-top: 11px solid currentColor;
}

.trend.flat {
    min-width: 26px;
}

.trend.flat::before {
    content: "";
    width: 22px;
    height: 7px;
    border-radius: 2px;
    background: #f2c96d;
    border: 1px solid #c59a47;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}

.status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8edf3;
    font-size: 12px;
    font-weight: 700;
}

.status.approved {
    background: #dcfce7;
    color: #166534;
}

.status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.submitted {
    background: var(--blue-soft);
    color: #1757e5;
}

.actions {
    display: grid;
    gap: 8px;
    min-width: 240px;
}

.approval-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.actions form {
    display: flex;
    gap: 8px;
}

.approval-actions form {
    margin: 0;
}

.actions button,
.button {
    width: auto;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 7px;
}

.approval-actions button {
    min-width: 82px;
}

.note-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 160px;
}

.note-actions span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submission-file-list {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.submission-file-list.compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 142px;
}

.submission-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid #bdd0ee;
    border-radius: 14px;
    background: #eef6ff;
    color: #0b4f91;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.submission-file-link:hover {
    background: #dcecff;
}

.file-more {
    min-width: 28px;
    min-height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e9f8ef;
    color: #14764e;
    font-size: 11px;
    font-weight: 900;
}

.muted-text {
    color: var(--muted);
}

.icon-button {
    width: 36px;
    min-height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border-radius: 999px;
    background: #eef4ff;
    color: #1757e5;
    box-shadow: none;
}

.icon-button .button-icon {
    width: 17px;
    height: 17px;
}

.close-detail,
.close-error-detail,
.close-reject {
    background: #fee2e2;
    color: var(--red);
    font-size: 18px;
    font-weight: 900;
    border: 1px solid #fecaca;
}

.close-detail:hover,
.close-error-detail:hover,
.close-reject:hover {
    background: var(--red);
    color: white;
}

button.danger {
    background: var(--red);
}

.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(15, 23, 42, .42);
}

.detail-modal[hidden] {
    display: none;
}

.detail-dialog {
    width: min(1120px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
    padding: 20px;
}

.reject-dialog {
    width: min(480px, calc(100vw - 40px));
    background: white;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
    padding: 22px;
}

.reject-dialog h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.reject-dialog p {
    margin: 0 0 18px;
    color: var(--muted);
}

.reject-dialog label {
    color: #1f2a44;
    font-size: 13px;
}

.reject-dialog small {
    color: var(--muted);
    font-weight: 500;
}

.reject-dialog textarea {
    margin-top: 8px;
    min-height: 104px;
}

.reject-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.reject-actions button {
    width: auto;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
}

.detail-head,
.detail-meta,
.detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.detail-head h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.detail-head p,
.detail-note p {
    margin: 0;
    color: var(--muted);
}

.detail-meta {
    justify-content: flex-start;
    margin: 12px 0 16px;
    color: #475467;
}

.detail-table {
    min-width: 980px;
    font-size: 13px;
}

.detail-note {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbff;
}

.detail-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.detail-support-grid .detail-note {
    margin-top: 16px;
}

.detail-files {
    background: #f3fbf6;
}

.detail-actions {
    justify-content: flex-end;
    margin-top: 16px;
}

.settings-title {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 26px;
    border-bottom: 1px solid var(--line);
}

.settings-title h1 {
    font-size: 21px;
    margin: 0;
}

.settings-body {
    padding: 26px;
    display: grid;
    gap: 26px;
}

.settings-body em {
    color: var(--red);
    font-style: normal;
}

.settings-body small {
    color: var(--muted);
    font-weight: 500;
}

.settings-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.settings-actions button {
    width: auto;
    min-height: 42px;
    border-radius: 7px;
    padding: 0 22px;
}

.outlook-settings-panel {
    border-color: #b9d4ff;
    box-shadow: 0 14px 34px rgba(14, 69, 132, .08);
}

.outlook-settings-panel .settings-title {
    justify-content: space-between;
}

.outlook-settings-panel .settings-title > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.outlook-settings-panel .settings-title small {
    color: var(--muted);
    font-weight: 600;
}

.outlook-config-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.outlook-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px 18px;
    align-items: start;
}

.outlook-settings-form label {
    gap: 7px;
    font-size: 12px;
}

.outlook-settings-form input {
    min-height: 40px;
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 13px;
}

.outlook-secret-field small {
    line-height: 1.45;
}

.outlook-toggle {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #f8fbff;
}

.outlook-toggle input {
    width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
}

.outlook-toggle span {
    color: #1f2a44;
    font-size: 13px;
    font-weight: 700;
}

.outlook-actions {
    align-items: center;
}

.outlook-actions .hint-inline {
    line-height: 1.5;
}

.entity-admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
    gap: 16px;
    margin-bottom: 18px;
}

.entity-period-card,
.entity-period-form {
    border: 1px solid #b9d4ff;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(14, 69, 132, .11);
}

.entity-period-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(235, 247, 255, .96), rgba(244, 250, 239, .94)),
        #eff8ff;
}

.entity-period-copy .section-label {
    margin-bottom: 10px;
    color: #0e5aa7;
}

.entity-period-copy h2 {
    font-size: 34px;
    line-height: 1;
    margin: 0 0 10px;
    color: #082f63;
}

.entity-period-copy p {
    margin: 0;
    color: #315174;
    font-weight: 700;
}

.entity-period-meta {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(14, 90, 167, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.entity-period-meta span,
.entity-period-form label {
    color: #50627e;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.entity-period-meta strong {
    color: #0b3c78;
    font-size: 20px;
}

.entity-period-meta small {
    color: #62738e;
    line-height: 1.45;
}

.entity-period-form {
    display: grid;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, #0b3c78, #123f6b);
    color: #fff;
}

.entity-period-form label {
    color: #d9ebff;
}

.entity-period-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.entity-period-form select,
.entity-period-form input[type="date"] {
    margin-top: 8px;
    width: 100%;
    background: #fff;
    color: #15233d;
    border: 1px solid rgba(255, 255, 255, .34);
}

.entity-period-form input[type="date"] {
    min-height: 46px;
    border-radius: 8px;
    padding: 0 12px;
    font-weight: 800;
}

.entity-period-hint {
    color: rgba(255, 255, 255, .82);
    line-height: 1.45;
    font-weight: 700;
}

.entity-period-form button {
    min-height: 44px;
    border-radius: 7px;
    background: #22a06b;
}

.entity-metrics {
    margin-bottom: 18px;
}

.entity-table-card {
    overflow: hidden;
}

.entity-period-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #0b4f91;
    font-weight: 800;
    font-size: 12px;
}

.role-panel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.role-page-title {
    margin-bottom: 14px;
}

.role-page-title h1 {
    font-size: 34px;
    line-height: 1.08;
}

.role-page-title p {
    margin: 0;
    font-size: 14px;
}

.role-title {
    min-height: 54px;
    padding: 0 20px;
}

.role-title .title-icon {
    width: 19px;
    height: 19px;
}

.role-title h1 {
    font-size: 16px;
}

.role-form {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 16px 18px;
    align-items: end;
}

.role-nrp-field {
    max-width: 360px;
}

.role-dependent-field.is-hidden {
    display: none;
}

.role-dependent-field > label {
    width: 100%;
}

.role-form label {
    gap: 7px;
    font-size: 12px;
}

.role-form input,
.role-form select {
    min-height: 40px;
    border-radius: 9px;
    padding: 8px 11px;
    font-size: 13px;
}

.role-form select:disabled,
.role-assign-form select:disabled {
    background: #eef3fb;
    color: #667085;
    cursor: not-allowed;
    opacity: .9;
}

.role-form label.is-role-scope-locked small {
    color: #98a2b3;
}

.ess-lookup-status {
    min-height: 16px;
    margin: -3px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ess-lookup-status:empty {
    display: none;
}

.ess-lookup-status[data-tone="loading"] {
    color: #1d4ed8;
}

.ess-lookup-status[data-tone="found"] {
    color: #15803d;
}

.ess-lookup-status[data-tone="not-found"] {
    color: #b45309;
}

.ess-lookup-status[data-tone="error"] {
    color: #b91c1c;
}

.role-form .settings-actions {
    grid-column: 1 / -1;
}

.hint-inline {
    color: var(--muted);
    font-weight: 600;
    align-self: center;
}

.role-pending-panel {
    margin: 18px 0;
    border: 1px solid #f4d7a7;
    border-radius: 14px;
    background: #fffaf0;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(180, 83, 9, .08);
}

.role-pending-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #f4d7a7;
}

.role-pending-head>div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-pending-head h2 {
    margin: 0;
    font-size: 17px;
}

.role-pending-head p {
    margin: 3px 0 0;
    color: #775a27;
    font-size: 13px;
}

.role-pending-head>span {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.role-pending-list {
    display: grid;
    gap: 10px;
    padding: 14px 18px 18px;
}

.role-pending-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #f5c77b;
    border-radius: 12px;
    background: white;
    padding: 12px;
}

.role-pending-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 900;
}

.role-pending-info strong,
.role-pending-info span,
.role-pending-info small,
.role-pending-meta small {
    display: block;
}

.role-pending-info strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.role-pending-info span {
    color: #344054;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.role-pending-info small,
.role-pending-meta small {
    color: #775a27;
    font-size: 11px;
    font-weight: 700;
}

.role-pending-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.role-row-pending td {
    background: #fffaf0;
}

.role-row-pending td:first-child {
    border-left: 4px solid #f59e0b;
}

.role-row-rejected td {
    background: #fff7f5;
}

.role-table table {
    min-width: 1240px;
    font-size: 12px;
}

.role-table th,
.role-table td {
    padding: 8px 10px;
}

.role-user-cell {
    min-width: 210px;
}

.role-table td:nth-child(3) {
    min-width: 126px;
    font-weight: 800;
    color: #263957;
}

.role-user-cell strong,
.role-user-cell span,
.role-user-cell small,
.role-date strong,
.role-date small {
    display: block;
}

.role-user-cell strong {
    color: #111827;
    font-size: 13px;
    margin-bottom: 3px;
}

.role-user-cell span {
    max-width: 260px;
    overflow: hidden;
    color: #344054;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-user-cell small,
.role-date small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.role-date strong {
    color: #1f2a44;
    font-size: 12px;
    line-height: 1.2;
}

.role-actions {
    min-width: 600px;
}

.role-action-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 100%;
}

.role-actions form,
.role-assign-form {
    display: grid;
    grid-template-columns: 132px 170px 170px 38px;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.role-approve-form {
    grid-template-columns: 86px;
}

.role-decision-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-decision-actions form {
    display: block;
    margin: 0;
}

.role-actions .role-approve-form,
.role-actions .role-reject-form {
    display: block;
    width: 86px;
}

.role-delete-form {
    display: block;
    width: 38px;
    margin: 0;
}

.role-actions select {
    min-height: 34px;
    border-radius: 10px;
    font-size: 12px;
    padding: 6px 9px;
    width: 100%;
    min-width: 0;
}

.role-actions button {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    box-shadow: none;
}

.role-actions .role-icon-action {
    width: 38px;
    min-width: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.role-actions .button-icon {
    width: 16px;
    height: 16px;
}

.role-scope-warning {
    color: #b45309;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
}

.role-assign-form .role-scope-warning {
    grid-column: 1 / -1;
}

.settings-actions .role-scope-warning {
    flex-basis: 100%;
    text-align: right;
}

.role-scope-warning[hidden] {
    display: none;
}

.role-actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
    box-shadow: none;
}

.role-actions button.approve-button {
    background: var(--green);
    color: white;
}

.role-actions button.danger {
    background: var(--red);
    color: white;
}

.ghost-button {
    background: white;
    color: #1f2a44;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

@media (max-width: 1500px) {
    .dashboard-filter-row {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

    .chart-sbu-options {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .filter-button {
        justify-self: start;
        width: min(100%, 170px);
    }
}

@media (max-width: 1050px) {
    .app-shell {
        padding-left: 0;
    }

    .sidebar {
        position: static;
        width: auto;
        height: auto;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .container {
        width: min(100% - 28px, 900px);
    }

    .app-footer {
        left: 0;
    }

    .app-footer-inner {
        width: min(100% - 28px, 900px);
    }

    .footer-copy {
        letter-spacing: .08em;
        line-height: 1.5;
    }

    .feature-grid,
    .entity-admin-hero,
    .entity-period-card,
    .detail-support-grid,
    .dashboard-filter-row,
    .analytics-grid,
    .grid-two,
    .metrics,
    .form-row,
    .compact-form-row,
    .submission-bottom,
    .input-table-pair {
        grid-template-columns: 1fr;
    }

    .period-info {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .appbar,
    .page-title,
    .hero-home,
    .chart-head,
    .settings-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-sbu-picker {
        grid-template-columns: 1fr;
    }

    .chart-date-filter {
        grid-template-columns: 1fr;
    }

    .history-search {
        grid-template-columns: 1fr;
    }

    .history-submit,
    .history-clear {
        width: 100%;
    }

    .modern-date-panel {
        left: 0;
        right: auto;
        width: min(100%, 318px);
    }

    .chart-date-fields {
        grid-template-columns: 1fr;
    }

    .chart-sbu-options {
        grid-template-columns: 1fr;
    }

    .filter-button {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .role-form {
        grid-template-columns: 1fr;
    }

    .outlook-settings-grid {
        grid-template-columns: 1fr;
    }

    .outlook-settings-panel .settings-title {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .outlook-actions button {
        width: 100%;
    }

    .role-form .settings-actions {
        grid-column: auto;
    }

    .rate-banner {
        grid-template-columns: 1fr;
    }
}

.dashboard-page-title {
    flex-direction: row;
    align-items: center;
}

.dashboard-page-title > div:first-child {
    min-width: 0;
}

.dashboard-title-actions {
    flex-direction: row;
}

@media (max-width: 720px) {
    .dashboard-page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-title-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Final override for Dashboard BI frozen columns. Keep this after responsive table rules. */
.dashboard-table-scroll table.freeze-detail-table,
.dashboard-table-scroll table.freeze-summary-table {
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.dashboard-table-scroll table.freeze-detail-table {
    min-width: 1180px;
}

.dashboard-table-scroll table.freeze-summary-table {
    min-width: 1080px;
}

.dashboard-table-scroll table.freeze-detail-table .sticky-no,
.dashboard-table-scroll table.freeze-detail-table .sticky-sbu,
.dashboard-table-scroll table.freeze-detail-table .sticky-bu,
.dashboard-table-scroll table.freeze-summary-table .sticky-no,
.dashboard-table-scroll table.freeze-summary-table .sticky-sbu {
    position: sticky !important;
    background: #fff;
    background-clip: padding-box;
    box-sizing: border-box;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.dashboard-table-scroll table.freeze-detail-table .sticky-no,
.dashboard-table-scroll table.freeze-summary-table .sticky-no {
    left: 0 !important;
    inset-inline-start: 0 !important;
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    z-index: 11;
}

.dashboard-table-scroll table.freeze-detail-table .sticky-sbu,
.dashboard-table-scroll table.freeze-detail-table .sticky-bu,
.dashboard-table-scroll table.freeze-summary-table .sticky-sbu {
    text-align: center !important;
    vertical-align: middle;
    justify-content: center;
}

.dashboard-table-scroll table.freeze-detail-table .sticky-sbu {
    left: 72px !important;
    inset-inline-start: 72px !important;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    z-index: 10;
}

.dashboard-table-scroll table.freeze-detail-table .sticky-bu {
    left: 252px !important;
    inset-inline-start: 252px !important;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    z-index: 9;
}

.dashboard-table-scroll table.freeze-summary-table .sticky-sbu {
    left: 72px !important;
    inset-inline-start: 72px !important;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    z-index: 10;
}

.dashboard-table-scroll .col-no {
    width: 72px;
}

.dashboard-table-scroll .col-sbu {
    width: 180px;
}

.dashboard-table-scroll .col-sbu-summary {
    width: 220px;
}

.dashboard-table-scroll .col-bu {
    width: 140px;
}

.dashboard-table-scroll .col-money {
    width: 190px;
}

.dashboard-table-scroll .col-money-sm {
    width: 165px;
}

.dashboard-table-scroll .col-total {
    width: 210px;
}

.dashboard-table-scroll .col-trend {
    width: 88px;
}

.dashboard-table-scroll table.freeze-cash-detail {
    width: 1070px;
    min-width: 1070px;
    max-width: none;
}

.dashboard-table-scroll table.freeze-debt-detail {
    width: 1210px;
    min-width: 1210px;
    max-width: none;
}

.dashboard-table-scroll table.freeze-cash-summary {
    width: 970px;
    min-width: 970px;
    max-width: none;
}

.dashboard-table-scroll table.freeze-debt-summary {
    width: 1110px;
    min-width: 1110px;
    max-width: none;
}

.dashboard-table-scroll table.freeze-detail-table thead .sticky-no,
.dashboard-table-scroll table.freeze-detail-table thead .sticky-sbu,
.dashboard-table-scroll table.freeze-detail-table thead .sticky-bu,
.dashboard-table-scroll table.freeze-summary-table thead .sticky-no,
.dashboard-table-scroll table.freeze-summary-table thead .sticky-sbu {
    top: 0;
    background: #2f66e8;
    color: #fff;
    z-index: 20;
}

.dashboard-table-scroll table.freeze-detail-table tbody tr:nth-child(even) .sticky-no,
.dashboard-table-scroll table.freeze-detail-table tbody tr:nth-child(even) .sticky-sbu,
.dashboard-table-scroll table.freeze-detail-table tbody tr:nth-child(even) .sticky-bu,
.dashboard-table-scroll table.freeze-summary-table tbody tr:nth-child(even) .sticky-no,
.dashboard-table-scroll table.freeze-summary-table tbody tr:nth-child(even) .sticky-sbu {
    background: #f8fbff;
}

.dashboard-table-scroll table.freeze-detail-table .sticky-bu,
.dashboard-table-scroll table.freeze-summary-table .sticky-sbu {
    box-shadow: 12px 0 18px rgba(15, 23, 42, .1);
}

.dashboard-table-scroll table.freeze-detail-table,
.dashboard-table-scroll table.freeze-summary-table {
    font-size: 12px;
}

.dashboard-table-scroll table.freeze-cash-detail thead th,
.dashboard-table-scroll table.freeze-cash-summary thead th,
.dashboard-table-scroll table.freeze-cash-detail thead .sticky-no,
.dashboard-table-scroll table.freeze-cash-detail thead .sticky-sbu,
.dashboard-table-scroll table.freeze-cash-detail thead .sticky-bu,
.dashboard-table-scroll table.freeze-cash-summary thead .sticky-no,
.dashboard-table-scroll table.freeze-cash-summary thead .sticky-sbu {
    background: linear-gradient(180deg, #2f66e8 0%, #315bbd 100%) !important;
    color: #fff;
}

.dashboard-table-scroll table.freeze-cash-detail tfoot th,
.dashboard-table-scroll table.freeze-cash-summary tfoot th {
    background: #2f66e8 !important;
    color: #fff;
}

.dashboard-table-scroll table.freeze-debt-detail thead th,
.dashboard-table-scroll table.freeze-debt-summary thead th,
.dashboard-table-scroll table.freeze-debt-detail thead .sticky-no,
.dashboard-table-scroll table.freeze-debt-detail thead .sticky-sbu,
.dashboard-table-scroll table.freeze-debt-detail thead .sticky-bu,
.dashboard-table-scroll table.freeze-debt-summary thead .sticky-no,
.dashboard-table-scroll table.freeze-debt-summary thead .sticky-sbu {
    background: linear-gradient(180deg, #2f7d24 0%, #1e5f16 100%) !important;
    color: #fff;
}

.dashboard-table-scroll table.freeze-debt-detail tfoot th,
.dashboard-table-scroll table.freeze-debt-summary tfoot th {
    background: #2f7d24 !important;
    color: #fff;
}

.dashboard-table-scroll tbody td {
    min-height: 42px;
    height: 42px;
    padding: 8px 10px;
}

.dashboard-table-scroll thead th,
.dashboard-table-scroll tfoot th {
    padding: 9px 10px;
    line-height: 1.15;
}

.dashboard-table-scroll table.freeze-cash-detail {
    width: 1010px;
    min-width: 1010px;
}

.dashboard-table-scroll table.freeze-debt-detail {
    width: 1120px;
    min-width: 1120px;
}

.dashboard-table-scroll table.freeze-cash-summary {
    width: 900px;
    min-width: 900px;
}

.dashboard-table-scroll table.freeze-debt-summary {
    width: 1020px;
    min-width: 1020px;
}

.dashboard-table-scroll .col-money {
    width: 170px;
}

.dashboard-table-scroll .col-money-sm {
    width: 145px;
}

.dashboard-table-scroll .col-total {
    width: 180px;
}

.dashboard-table-scroll .col-trend {
    width: 78px;
}

/* codex-login-redesign:start */
.login-portal {
    width: min(1060px, calc(100vw - 38px));
    min-height: 640px;
    display: grid;
    grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
}

.login-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 52px;
    background:
        linear-gradient(90deg, rgba(250, 204, 21, .12), rgba(250, 204, 21, 0) 34%),
        #ffffff;
}

.login-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    color: #172554;
    font-size: 20px;
    font-weight: 900;
}

.login-brand-row .login-logo {
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 37, 84, .12);
}

.login-portal .login-card {
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-portal .login-card.compact {
    text-align: left;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.login-portal .login-card h1 {
    margin: 0 0 10px;
    text-align: left;
    color: #0f172a;
    font-size: 32px;
    line-height: 1.12;
}

.login-portal .login-card p {
    max-width: 390px;
    margin: 0;
    text-align: left;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.login-actions {
    margin-top: 30px;
}

.login-portal .sso-button,
.login-portal .wide-button {
    min-height: 54px;
    border-radius: 8px;
    background: #facc15;
    color: #172554;
    box-shadow: 0 18px 30px rgba(250, 204, 21, .28);
}

.login-portal .sso-button:hover,
.login-portal .wide-button:hover {
    background: #eab308;
    transform: translateY(-1px);
}

.login-portal .manual-button {
    min-height: 54px;
    border-radius: 8px;
    border: 1px solid #dbe4f0;
    background: #ffffff;
    color: #172554;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
}

.login-portal .manual-button:hover {
    border-color: #b9c9e4;
    background: #f8fafc;
}

.login-portal .divider {
    margin: 18px 0;
}

.login-portal .login-card form {
    gap: 18px;
    margin-top: 28px;
}

.login-field {
    gap: 8px;
    color: #334155;
    font-size: 14px;
}

.input-shell {
    position: relative;
    display: block;
}

.input-shell .field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.input-shell input {
    min-height: 54px;
    padding: 12px 14px 12px 46px;
    border-color: #d7e0ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
}

.input-shell input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}

.login-portal .remember {
    margin-top: -2px;
    color: #64748b;
}

.login-portal .remember input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    border-radius: 5px;
}

.login-portal .back-link {
    margin-top: 18px;
    color: #64748b;
    font-weight: 800;
}

.login-portal .hint {
    margin-top: 16px;
    color: #64748b;
    font-size: 13px;
}

.login-meta {
    position: absolute;
    left: 52px;
    right: 52px;
    bottom: 22px;
    color: #8d97aa;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    pointer-events: none;
}

.login-meta strong {
    color: #566174;
    font-weight: 900;
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(250, 204, 21, .16), rgba(250, 204, 21, 0) 30%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 18px),
        #172554;
}

.login-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 42%),
        linear-gradient(180deg, transparent, rgba(15, 23, 42, .28));
    pointer-events: none;
}

.secure-badge,
.finance-illustration,
.login-visual-copy {
    position: relative;
    z-index: 1;
}

.secure-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fde68a;
    font-size: 12px;
    font-weight: 800;
}

.secure-badge span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #facc15;
    box-shadow: 0 0 0 5px rgba(250, 204, 21, .14);
}

.finance-illustration {
    min-height: 280px;
    display: grid;
    place-items: center;
}

.finance-window {
    position: relative;
    width: min(350px, 100%);
    aspect-ratio: 16 / 10;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(30, 64, 175, .74);
    box-shadow: 0 28px 48px rgba(0, 0, 0, .24);
}

.finance-window-top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
}

.finance-window-top span {
    width: 86px;
    height: 10px;
    margin-right: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
}

.finance-window-top i {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
}

.finance-window-top i:nth-child(3) {
    background: #facc15;
}

.finance-window-top i:nth-child(4) {
    background: #22c55e;
}

.finance-bars {
    height: calc(100% - 38px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 14px;
}

.finance-bars b {
    display: block;
    min-height: 34px;
    border-radius: 6px 6px 0 0;
    background: rgba(255, 255, 255, .18);
}

.finance-bars .highlight {
    position: relative;
    background: #facc15;
    box-shadow: 0 0 26px rgba(250, 204, 21, .35);
}

.finance-bars .highlight::before {
    content: "+24%";
    position: absolute;
    left: 50%;
    top: -34px;
    transform: translateX(-50%);
    padding: 6px 9px;
    border-radius: 8px;
    background: #ffffff;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 20px 32px rgba(0, 0, 0, .22);
}

.floating-card span {
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    opacity: .72;
}

.floating-card strong {
    font-size: 14px;
}

.floating-icon {
    grid-row: span 2;
    width: 30px;
    height: 30px;
}

.status-card {
    top: 40px;
    right: 16px;
    background: #ffffff;
    color: #0f172a;
}

.status-card .floating-icon {
    color: #16a34a;
}

.metric-card {
    left: 10px;
    bottom: 28px;
    background: #0f172a;
    color: #ffffff;
}

.metric-card .floating-icon {
    color: #facc15;
}

.login-visual-copy h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 32px;
    line-height: 1.12;
}

.login-visual-copy p {
    max-width: 420px;
    margin: 0;
    color: #dbeafe;
    line-height: 1.7;
}

.visual-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
}

.visual-dots span,
.visual-dots i {
    display: block;
    height: 6px;
    border-radius: 999px;
}

.visual-dots span {
    width: 34px;
    background: #facc15;
}

.visual-dots i {
    width: 7px;
    background: rgba(255, 255, 255, .34);
}

/* Login redesign aligned to the finance portal reference. */
@keyframes loginFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes loginFloatSoft {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(7px) translateX(3px);
    }
}

.login-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-items: stretch;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
    background: #f3f6fb;
}

.login-stage > .alert {
    flex: 0 0 auto;
    margin: 0 16px 8px;
    padding: 9px 13px;
    font-size: 14px;
    line-height: 1.35;
}

.login-portal {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    border: 0;
    border-radius: 28px;
    box-shadow: 0 22px 62px rgba(15, 23, 42, .12);
}

.login-pane {
    justify-content: center;
    padding: clamp(30px, 3.8vw, 64px) clamp(30px, 3.8vw, 64px) clamp(50px, 4.8vw, 78px);
    background:
        radial-gradient(circle at 4% 4%, rgba(250, 204, 21, .18), transparent 25%),
        #ffffff;
}

.login-brand-row {
    gap: 14px;
    margin-bottom: clamp(24px, 3.4vw, 48px);
    color: #11183b;
    font-size: clamp(18px, 1.45vw, 24px);
    letter-spacing: -.03em;
}

.login-brand-row strong {
    display: grid;
    gap: 2px;
    line-height: 1.04;
}

.login-brand-row strong span {
    color: #3345b7;
    font-size: clamp(17px, 1.35vw, 23px);
    letter-spacing: 0;
}

.login-brand-row strong b {
    color: #0e1428;
    font-size: clamp(34px, 3.15vw, 56px);
    font-weight: 900;
}

.login-brand-icon {
    position: relative;
    width: clamp(52px, 3.7vw, 70px);
    height: clamp(52px, 3.7vw, 70px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #2c3b96;
    color: #ffffff;
    box-shadow: 0 22px 46px rgba(44, 59, 150, .22);
}

.login-brand-icon i {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 19px;
    height: 19px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: #facc15;
}

.brand-mark-icon {
    width: 36px;
    height: 36px;
}

.login-portal .login-card h1 {
    margin-bottom: 10px;
    color: #0e1428;
    font-size: clamp(32px, 3vw, 54px);
    letter-spacing: -.04em;
}

.login-portal .login-card p {
    max-width: 520px;
    color: #768198;
    font-size: clamp(15px, 1.12vw, 20px);
    line-height: 1.42;
}

.login-portal .login-card form {
    gap: clamp(15px, 1.5vw, 23px);
    margin-top: clamp(28px, 3.6vw, 54px);
}

.login-field {
    gap: 9px;
    color: #334155;
    font-size: clamp(15px, 1.18vw, 20px);
    line-height: 1.2;
}

.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.password-label-row > span:last-child {
    color: #3345b7;
    font-weight: 800;
}

.input-shell input {
    min-height: clamp(52px, 4vw, 66px);
    padding: 12px clamp(42px, 3.6vw, 58px);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    color: #111827;
    font-size: clamp(15px, 1.18vw, 20px);
}

.input-shell input::placeholder {
    color: #9aa4b5;
}

.input-shell .field-icon {
    left: clamp(16px, 1.5vw, 24px);
    width: clamp(20px, 1.55vw, 26px);
    height: clamp(20px, 1.55vw, 26px);
    color: #99a4b7;
}

.input-shell .field-icon.trailing {
    right: clamp(16px, 1.5vw, 24px);
    left: auto;
}

.login-portal .remember {
    gap: 10px;
    margin-top: 0;
    color: #586174;
    font-size: clamp(15px, 1.15vw, 20px);
}

.login-portal .remember input {
    width: clamp(18px, 1.5vw, 24px);
    height: clamp(18px, 1.5vw, 24px);
    min-height: clamp(18px, 1.5vw, 24px);
    border: 2px solid #9ca3af;
    border-radius: 6px;
}

.login-portal .wide-button {
    min-height: clamp(56px, 4.6vw, 74px);
    border-radius: 18px;
    background: #facc15;
    color: #12194c;
    font-size: clamp(17px, 1.35vw, 24px);
    box-shadow: none;
}

.login-portal .wide-button .button-icon {
    width: clamp(20px, 1.55vw, 26px);
    height: clamp(20px, 1.55vw, 26px);
}

.login-actions .sso-button,
.login-actions .manual-button {
    min-height: clamp(50px, 3.95vw, 64px);
    border-radius: 16px;
    font-size: clamp(15px, 1.12vw, 20px);
}

.login-actions .button-icon {
    width: clamp(18px, 1.35vw, 22px);
    height: clamp(18px, 1.35vw, 22px);
}

.login-portal .back-link {
    color: #3345b7;
    width: fit-content;
    margin: clamp(22px, 2.2vw, 34px) auto 0;
    padding: 6px 12px;
    color: #3345b7;
    font-size: clamp(15px, 1.05vw, 18px);
    font-weight: 800;
    line-height: 1.25;
}

.login-portal .hint {
    display: none;
}

.ess-login-pane {
    align-items: center;
}

.ess-login-card {
    position: relative;
    z-index: 1;
    width: min(380px, 100%);
    padding: clamp(18px, 2vw, 30px);
    border: 1px solid #f0f2f6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .08);
}

.ess-login-head {
    display: grid;
    justify-items: center;
    gap: clamp(12px, 1.4vw, 18px);
    margin-bottom: clamp(16px, 1.8vw, 22px);
    text-align: center;
}

.ess-login-head h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(20px, 1.45vw, 24px);
    font-weight: 900;
    letter-spacing: -.03em;
}

.ess-login-head img {
    width: min(146px, 46%);
    max-height: 98px;
    height: auto;
    object-fit: contain;
}

.ess-login-form {
    display: grid;
    gap: clamp(10px, 1.05vw, 14px);
}

.ess-login-form label {
    display: grid;
    gap: 6px;
    color: #384152;
    font-size: clamp(12px, .82vw, 13.5px);
    font-weight: 800;
}

.ess-input-shell {
    position: relative;
    display: block;
}

.ess-input {
    width: 100%;
    min-height: clamp(42px, 3.25vw, 50px);
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #e8f0fe;
    color: #111827;
    font-size: clamp(13px, .95vw, 15px);
    outline: none;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ess-input:focus {
    border-color: #3159bb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(49, 89, 187, .1);
}

.ess-password-shell .ess-input {
    padding-right: 48px;
}

.ess-password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    box-shadow: none;
    transform: translateY(-50%);
}

.ess-password-toggle:hover {
    color: #1f2a44;
    background: rgba(255, 255, 255, .58);
}

.ess-eye-icon {
    width: 19px;
    height: 19px;
}

.ess-remember {
    display: inline-flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: flex-start;
    gap: 8px !important;
    color: #5b6472 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.ess-remember input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    border: 1px solid #9ca3af;
    border-radius: 4px;
}

.ess-primary {
    min-height: clamp(44px, 3.45vw, 52px);
    margin-top: 2px;
    border-radius: 999px;
    background: #17217f;
    color: #ffffff;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(49, 89, 187, .2);
}

.ess-primary:hover {
    background: #0f1767;
}

.ess-forgot-link {
    justify-self: end;
    margin-top: -2px;
    color: #6b7280;
    font-size: clamp(11px, .75vw, 12px);
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ess-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: clamp(12px, 1.25vw, 16px) 0;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
}

.ess-divider::before,
.ess-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e5e7eb;
}

.ess-sso-link {
    min-height: clamp(42px, 3.25vw, 50px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 2px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    font-size: clamp(13px, .92vw, 15px);
    font-weight: 900;
    text-decoration: none;
}

.ess-sso-link:hover {
    border-color: #9ca3af;
    background: #f8fafc;
}

.login-meta {
    position: absolute;
    left: clamp(30px, 3.8vw, 64px);
    right: clamp(30px, 3.8vw, 64px);
    bottom: clamp(18px, 1.8vw, 26px);
    margin: 0;
    color: #8b95a8;
    font-size: clamp(10px, .75vw, 12px);
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    pointer-events: none;
}

.login-meta strong {
    color: #596579;
    font-weight: 900;
}

.login-visual {
    border-radius: 0 28px 28px 0;
    padding: clamp(32px, 3.9vw, 62px);
    justify-content: flex-start;
    background:
        radial-gradient(circle at 75% 16%, rgba(255, 255, 255, .08), transparent 22%),
        radial-gradient(circle at 88% 55%, rgba(250, 204, 21, .2), transparent 16%),
        #2d3e95;
}

.login-visual::after {
    content: "";
    position: absolute;
    right: -82px;
    top: 38%;
    width: 230px;
    height: 230px;
    border: 15px solid rgba(250, 204, 21, .34);
    border-radius: 999px;
    opacity: .62;
}

.visual-company-logo {
    position: absolute;
    z-index: 3;
    top: 22px;
    right: 26px;
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.secure-badge {
    margin: -16px auto 0;
    padding: 11px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #facc15;
    font-size: clamp(15px, 1.05vw, 20px);
}

.finance-illustration {
    min-height: clamp(210px, 29svh, 300px);
    margin-top: clamp(14px, 1.7svh, 24px);
}

.finance-window {
    width: min(500px, 80%);
    padding: clamp(20px, 2.15vw, 34px);
    border-radius: 20px;
    background: rgba(53, 70, 190, .72);
    border-color: rgba(255, 255, 255, .16);
    animation: loginFloat 4s ease-in-out infinite;
}

.finance-window-top {
    margin-bottom: clamp(28px, 2.8vw, 44px);
}

.finance-window-top span {
    width: clamp(92px, 8vw, 140px);
    height: 15px;
    border-radius: 999px;
}

.finance-window-top i {
    width: 12px;
    height: 12px;
}

.finance-bars {
    gap: clamp(13px, 1.25vw, 22px);
}

.finance-bars b {
    min-height: 58px;
    border-radius: 6px 6px 0 0;
}

.finance-bars .highlight::before {
    top: -42px;
    left: 42%;
    padding: 7px 13px;
    font-size: clamp(15px, 1.05vw, 20px);
}

.floating-card {
    padding: 14px 17px;
    border-radius: 16px;
}

.status-card {
    top: 13%;
    right: 3%;
    min-width: 190px;
    background: rgba(255, 255, 255, .63);
    color: #24305f;
    backdrop-filter: blur(10px);
    animation: loginFloatSoft 5.2s ease-in-out infinite;
}

.metric-card {
    left: 6%;
    bottom: 10%;
    min-width: 220px;
    background: #202962;
    animation: loginFloat 4.6s ease-in-out infinite;
}

.floating-card span {
    font-size: clamp(11px, .8vw, 15px);
}

.floating-card strong {
    font-size: clamp(19px, 1.7vw, 31px);
}

.floating-icon {
    width: clamp(32px, 2.4vw, 44px);
    height: clamp(32px, 2.4vw, 44px);
}

.login-visual-copy h2 {
    margin-top: clamp(14px, 2svh, 26px);
    margin-bottom: 8px;
    font-size: clamp(28px, 2.75vw, 44px);
    letter-spacing: -.04em;
}

.login-visual-copy p {
    max-width: 600px;
    color: rgba(219, 234, 254, .88);
    font-size: clamp(14px, 1.08vw, 18px);
    line-height: 1.36;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* codex-login-redesign:end */

