/*html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}*/
.checkbox-col {
    width: 40px; 
    min-width: 40px;
    max-width: 40px;
}
.custom-checkbox {
    appearance: auto;
    accent-color: #f14164;
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.checkbox-col-flex {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox-flex {
    appearance: auto;
    accent-color: #f14164;
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
}

.practice-row {
    display: flex;
    align-items: center;
    min-height: 32px; 
    cursor: pointer;
}
.practice-name {
    display: flex;
    align-items: center;
    line-height: 1;
}
.payrun-bg {
    background-color: #f6edf0;
}

.payrun-bg-info {
    background-color: #f14164;
}

.layout-error-shell {
    align-items: center;
    background: transparent;
    display: flex;
    justify-content: center;
    min-height: 100%;
    padding: 1.5rem;
    width: 100%;
}

.layout-error-card {
    background: #fff;
    border: 1px solid #f1c4cc;
    border-radius: 1rem;
    max-width: 32rem;
    overflow: hidden;
    width: min(100%, 32rem);
}

.layout-error-header {
    background: #dc3545;
    color: #fff;
    padding: 1rem 1.25rem;
}

.layout-error-body {
    color: #343a40;
    padding: 1.25rem;
}

.layout-error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0 1.25rem 1.25rem;
}

@media (max-width: 576px) {
    .layout-error-actions {
        flex-direction: column;
    }

    .layout-error-actions .btn {
        width: 100%;
    }
}

.mt-n2{
    margin-top: -8px;
}

.width-150-px-responsive {
    width: 150px;
}

.width-200-px-responsive {
    width: 200px;
}
.width-250-px-responsive {
    width: 250px;
}

@media (max-width:900px) {
    .content {
        width: 100%;
    }

    .width-200-px-responsive, .width-250-px-responsive, .width-150-px-responsive {
        width: 100%;
    }

}


/* grid column width */
.grid-col {
    padding-left: .5rem;
    padding-right: .5rem;
    /*flex-shrink: 0;*/
}

.grid-col-flex {
    padding-left: .5rem;
    padding-right: .5rem;
    min-width: 0; 
    flex: 1 1 0;
}

.grid-col-w-25 {
    flex-basis: 25px;
}

.grid-col-w-50 {
    flex-basis: 50px;
}

.grid-col-w-75 {
    flex-basis: 75px;
}

.grid-col-w-100 {
    flex-basis: 100px;
}

.grid-col-w-125 {
    flex-basis: 125px;
}

.grid-col-w-150 {
    flex-basis: 150px;
}

.grid-col-w-175 {
    flex-basis: 175px;
}

.grid-col-w-200 {
    flex-basis: 200px;
}

.grid-col-w-225 {
    flex-basis: 225px;
}

.grid-col-w-250 {
    flex-basis: 250px;
}

.grid-col-w-275 {
    flex-basis: 275px;
}

.grid-col-w-300 {
    flex-basis: 300px;
}

.grid-col-w-325 {
    flex-basis: 325px;
}

.grid-col-w-350 {
    flex-basis: 350px;
}

.grid-col-w-375 {
    flex-basis: 375px;
}

.grid-col-w-400 {
    flex-basis: 400px;
}

.grid-col-w-100-percent {
    flex-basis: 100%;
    min-width: 200px;
}

.col-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bg-gray {
    background-color: #eeeeee;
}

.file-name-wrap {
    white-space: normal; 
    word-break: break-word; 
    overflow-wrap: anywhere;
    max-width: 100%; 
}

.outline-none {
    outline: none;
}

@media (min-width: 992px) {
    .ps-lg-210 {
        margin-left: 210px;
    }
}

.mt-75 {
    margin-top:73px;
}

.approved-bg {
    background-color: #f27c0c;
}

.awaiting-payment-bg {
    background-color: #3c8dbc;
}

.paid-bg {
    background-color: #27a889;
}

.void-bg {
    background-color: #ee4266;
}

.payrun-text-info {
    color: #f14164;
}
select.form-select[disabled].paid-bg {
    background-color: #27a889 !important;
    color: white !important;
    opacity: 1 !important; /* override Bootstrap disabled opacity */
}
select.form-select[disabled].void-bg {
    background-color: #ee4266 !important;
    color: white !important;
    opacity: 1 !important; /* override Bootstrap disabled opacity */
}

/* ====================================================================================================================
-- Styles from codex
=====================================================================================================================*/

:root {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #122033;
    background: #F9EEF0;
    line-height: 1.5;
    font-weight: 400;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

button,
input,
select,
table {
    font: inherit;
}

code,
pre {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.page-shell {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #fff7f8 0%, #F9EEF0 45%, #f4dfe4 100%);
}

.top-banner {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 16px 24px;
    background: #ee4266;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.app-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: calc(100vh - 56px);
}

.side-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px 18px;
    background: #58585a;
    color: #fff;
}

.side-menu-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.side-menu-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #2474ff;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.side-menu-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.side-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-menu-link {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: left;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.side-menu-link-active {
    background: #ee4266;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

h1,
h2 {
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.hero-copy {
    max-width: 760px;
    margin-top: 14px;
    color: #42566f;
    font-size: 1.05rem;
}

.hero-note,
.panel,
.summary-card {
    border: 1px solid #d8e1ea;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 32px rgba(22, 42, 68, 0.08);
    backdrop-filter: blur(10px);
}

.hero-note {
    padding: 20px;
}

.hero-note-label,
.summary-label,
.detail-label,
.field span {
    color: #ee4266;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-note-value {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    word-break: break-word;
}

.hero-note-text {
    margin-top: 8px;
    color: #53657b;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    padding: 18px;
}

.summary-value {
    margin: 10px 0 6px;
    font-size: 2rem;
    font-weight: 800;
}

.summary-hint {
    color: #54677d;
    font-size: 0.94rem;
}

.panel-heading h2,
.panel-subheading {
    color: #ee4266;
}

.controls-panel {
    margin-bottom: 24px;
}

.results-panel {
    max-height: calc(100vh - 180px);
    overflow: auto;
}

.history-panel {
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.transactions-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 6px;
    background: #ee4266;
}

.transactions-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transactions-header-bar h2 {
    color: #fff;
}

.transactions-add-button {
    background: #6a6f7a;
    color: #fff;
}

.hidden-file-input {
    display: none;
}

.transactions-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
}

.transactions-filter-input,
.transactions-filter-select {
    max-width: 280px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d3d7de;
    border-radius: 8px;
    background: #fff;
}

.transactions-table-shell {
    padding: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
}

.transactions-details-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ead6db;
}

.transactions-table-wrap {
    margin-top: 0;
    border: 0;
    max-height: 62vh;
    overflow: auto;
}

.transactions-table-action {
    border: 0;
    background: transparent;
    color: #58585a;
    cursor: pointer;
    font-weight: 700;
    margin-right: 10px;
}

.transactions-table-delete {
    color: #b22d4b;
}

.transactions-actions-cell {
    white-space: nowrap;
}

.transactions-action-menu-wrap {
    position: relative;
    display: inline-flex;
    margin-right: 8px;
}

.transactions-action-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 10;
    min-width: 160px;
    padding: 6px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(22, 42, 68, 0.12);
}

.transactions-action-menu-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2d3f53;
    text-align: left;
    cursor: pointer;
}

    .transactions-action-menu-item:hover {
        background: #f5f8fc;
    }

.transactions-warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #c98a00;
}

    .transactions-warning-icon svg {
        width: 18px;
        height: 18px;
    }

.transactions-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #1f9d55;
}

    .transactions-success-icon svg {
        width: 18px;
        height: 18px;
    }

.icon-trash {
    width: 16px;
    height: 16px;
    color: #b22d4b;
}

.icon-ellipsis {
    width: 16px;
    height: 16px;
    color: #58585a;
}

.transactions-empty-cell {
    padding: 34px 20px;
    text-align: center;
    color: #596579;
}

.transactions-empty-icon {
    display: inline-block;
    margin-right: 8px;
}

.transactions-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.transactions-footer-left,
.transactions-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transactions-pager-button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    background: #9aa0a8;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

    .transactions-pager-button:disabled {
        cursor: not-allowed;
        opacity: 0.85;
    }

.transactions-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.practice-card {
    padding: 18px;
    border: 1px solid #d8e1ea;
    border-radius: 16px;
    background: #fff;
}

.practice-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.practice-title {
    font-weight: 800;
    color: #2a3b4f;
}

.practice-code,
.practice-adviser-code {
    color: #ee4266;
    font-weight: 700;
}

.practice-subtitle {
    margin-top: 8px;
    margin-bottom: 12px;
    color: #5a6b7f;
}

.practice-adviser-list {
    display: grid;
    gap: 8px;
}

.practice-adviser-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fbff;
}

.practice-expanded-cell {
    padding: 0;
    background: #fff7f8;
}

.practice-inline-panel {
    padding: 16px;
}

.practice-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #4e6177;
}

.practice-inline-table {
    margin-top: 0;
}

.panel {
    padding: 20px;
}

.panel-heading {
    margin-bottom: 18px;
}

.panel-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.panel-heading p {
    margin: 8px 0 0;
    color: #53657b;
}

.panel-close-button {
    flex-shrink: 0;
    color: #58585a;
    font-size: 0.9rem;
    font-weight: 700;
}

.controls-grid,
.content-grid {
    display: grid;
    gap: 18px;
}

.controls-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 18px;
}

.provider-upload-row {
    margin-top: 18px;
}

.provider-source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.controls-span-two {
    grid-column: 1 / -1;
}

.field-span-two {
    grid-column: span 2;
}

.field-span-three {
    grid-column: span 3;
}

.field-span-four {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .field input {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #c8d3df;
        border-radius: 12px;
        background: #fff;
    }

.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c8d3df;
    border-radius: 12px;
    background: #fff;
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
}

        .field input:focus,
        .field select:focus {
            outline: 2px solid #77a9dd;
            outline-offset: 1px;
        }

.payload-editor {
    width: 100%;
    min-height: 220px;
    padding: 12px 14px;
    border: 1px solid #c8d3df;
    border-radius: 12px;
    background: #f8fbff;
    color: #16395f;
    resize: vertical;
    font: inherit;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.button-row,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    padding-bottom: 4px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #ffffff 28%);
    z-index: 1;
}

.button {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
}

    .button:disabled {
        cursor: wait;
        opacity: 0.7;
    }

    .button.primary {
        background: #58585a;
        color: #fff;
    }

    .button.secondary {
        background: #58585a;
        color: #fff;
    }

.meta-row {
    color: #4a5f76;
}

.notice {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
}

    .notice.success {
        background: #e8f7ee;
        color: #165f31;
    }

    .notice.error {
        background: #fdecec;
        color: #8d1d1d;
    }

    .notice.info {
        background: #e8f0fb;
        color: #173b66;
    }

.mapping-panel {
    margin-bottom: 24px;
}

.mapping-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.mapping-grid > .field-span-three {
    grid-column: 1 / -1;
}

.revenue-client-tools-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.revenue-client-reference-field {
    min-width: 0;
    grid-column: span 1;
}

.revenue-client-reference-field input {
    width: 100%;
}

.revenue-client-lookup-field {
    grid-column: span 3;
}

.revenue-client-tools-row .client-lookup-row {
    flex-wrap: nowrap;
}

.revenue-client-tools-row .client-lookup-row input {
    flex: 1 1 auto;
    min-width: 0;
}

.panel-subheading {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #31485f;
}

.table-wrap {
    margin-top: 16px;
    overflow: auto;
    border: 1px solid #d7e0e8;
    border-radius: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid #e4ebf2;
    text-align: left;
    vertical-align: top;
}

th {
    background: #ee4266;
    color: #fff;
    font-size: 0.9rem;
}

tfoot td {
    background: #f3f7fb;
    font-weight: 800;
    color: #1d3551;
}

.totals-row td {
    border-top: 2px solid #cfdbe7;
}

tbody tr:hover {
    background: #f8fbff;
}

.empty-cell,
.empty-state {
    color: #5d7187;
    text-align: center;
    padding: 28px;
}

.detail-stack {
    display: grid;
    gap: 12px;
}

.detail-card {
    padding: 14px;
    border: 1px solid #d9e1e8;
    border-radius: 14px;
    background: #fbfdff;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 16px;
}

.detail-value {
    margin-top: 6px;
    font-weight: 700;
    word-break: break-word;
}

.detail-wrap {
    white-space: normal;
}

.status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-auto {
    background: #e4f6e9;
    color: #176334;
}

.status-review {
    background: #fff1d6;
    color: #8a5a00;
}

.status-no-match {
    background: #fbe4e4;
    color: #912525;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f7d7de;
    color: #b22d4b;
    font-size: 0.88rem;
}

.payload {
    margin: 8px 0 0;
    padding: 12px;
    border-radius: 12px;
    overflow: auto;
    background: #102235;
    color: #eff6ff;
}

.editor-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d7e0e8;
}

.editor-panel-standalone {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.modal-backdrop,
.modal-background {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(21, 26, 35, 0.45);
}

.modal-background {
    min-height: 100vh;
}

.modal-dialog {
    width: min(1080px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid #d8e1ea;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 48px rgba(22, 42, 68, 0.2);
}

.modal-editor {
    padding: 24px;
}

.review-select {
    min-height: 48px;
}

.bank-review-modal {
    width: min(1320px, 100%);
    margin: auto;
    max-height: calc(100vh - 24px);
    display: flex;
}

.bank-review-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(96vh, 1040px);
    overflow: hidden;
}

.bank-review-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.bank-review-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 56px 24px 104px;
}

.bank-review-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
    flex-wrap: wrap;
    gap: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #ffffff 30%);
    border-top: 1px solid #d7e0e8;
}

.editor-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
    color: #42566f;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #c8d3df;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

    .icon-button:hover {
        background: #eef5fd;
    }

.icon-pencil {
    width: 16px;
    height: 16px;
    color: #58585a;
}

.manual-authorised-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e4f6e9;
    color: #176334;
    font-size: 0.78rem;
    font-weight: 700;
}

.checkbox-field {
    align-self: start;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #c8d3df;
    border-radius: 12px;
    background: #fff;
}

    .checkbox-row input {
        width: auto;
        margin: 0;
    }

.client-lookup-panel {
    display: grid;
    gap: 12px;
}

.client-lookup-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .client-lookup-row input {
        flex: 1 1 280px;
        min-width: 220px;
    }

.client-search-results {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
}

.client-search-result {
    display: grid;
    gap: 2px;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid #d8e1ea;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

    .client-search-result span {
        color: #5a6b7f;
    }

.client-create-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed #c8d3df;
    border-radius: 12px;
    background: #fffaf7;
}

.upload-match-requirement-shell {
    max-width: 980px;
}

.upload-match-requirement-hero,
.upload-match-requirement-section {
    background: #fffaf5;
    border: 1px solid #e5d7c8;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(82, 98, 115, 0.08);
}

.upload-match-requirement-hero {
    margin-bottom: 24px;
    background:
        radial-gradient(circle at top right, rgba(209, 73, 91, 0.12), transparent 28%),
        linear-gradient(180deg, #fff7ef 0%, #fffaf5 100%);
}

.upload-match-requirement-eyebrow {
    margin: 0 0 12px;
    color: #d1495b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.upload-match-requirement-shell h1,
.upload-match-requirement-shell h2 {
    margin: 0 0 12px;
    line-height: 1.1;
}

.upload-match-requirement-shell h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.upload-match-requirement-shell h2 {
    font-size: 1.35rem;
    color: #22394d;
}

.upload-match-requirement-shell p,
.upload-match-requirement-shell li {
    font-size: 1rem;
    line-height: 1.65;
    color: #1f2933;
}

.upload-match-requirement-lede {
    max-width: 52rem;
    color: #526273;
    font-size: 1.06rem;
}

.upload-match-requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.upload-match-requirement-section {
    margin-top: 20px;
}

.upload-match-requirement-pill {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fde7db;
    color: #8d3140;
    font-size: 0.84rem;
    font-weight: 700;
}

.upload-match-requirement-shell code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f0e6da;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

.upload-match-requirement-shell ul {
    margin: 0;
    padding-left: 20px;
}

.upload-match-requirement-footer {
    margin-top: 18px;
    color: #526273;
    font-size: 0.95rem;
}

@media (max-width: 960px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .side-menu {
        padding: 18px 20px;
    }

    .hero,
    .summary-grid,
    .upload-row,
    .controls-grid,
    .mapping-grid,
    .detail-grid,
    .upload-match-requirement-grid {
        grid-template-columns: 1fr;
    }

    .transactions-filter-bar,
    .transactions-footer,
    .transactions-footer-left,
    .transactions-footer-right {
        flex-direction: column;
        align-items: stretch;
    }

    .controls-span-two {
        grid-column: auto;
    }

    .field-span-two {
        grid-column: auto;
    }

    .field-span-three {
        grid-column: auto;
    }

    .field-span-four {
        grid-column: auto;
    }

    .revenue-client-tools-row {
        grid-template-columns: 1fr;
    }

    .revenue-client-tools-row .client-lookup-row {
        flex-wrap: wrap;
    }

    .bank-review-modal-content {
        max-height: calc(100vh - 24px);
    }
}
