/*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;
}

.purchase-order-practices-list-shell {
    position: relative;
    height: clamp(150px, calc(100vh - 560px), 280px);
    min-height: 0;
    padding-right: 14px;
}

.purchase-order-practices-list {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .purchase-order-practices-list::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

.purchase-order-practices-scrollbar {
    position: absolute;
    top: 8px;
    right: 6px;
    bottom: 8px;
    width: 8px;
    border-radius: 999px;
    background: #edf3f8;
    pointer-events: auto;
    cursor: pointer;
}

.purchase-order-practices-scrollbar-thumb {
    width: 100%;
    min-height: 36px;
    border-radius: 999px;
    background: #8ea5bd;
    transition: transform 120ms ease-out;
    cursor: grab;
    touch-action: none;
}

    .purchase-order-practices-scrollbar-thumb:active {
        cursor: grabbing;
    }

.purchase-order-create-dialog {
    width: min(750px, calc(100vw - 48px));
    max-width: min(750px, calc(100vw - 48px));
    overflow: hidden !important;
}

.purchase-order-create-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.purchase-order-modal-close-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: #212529;
    background: transparent;
    cursor: pointer;
}

.purchase-order-modal-close-button:hover,
.purchase-order-modal-close-button:focus {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.purchase-order-modal-close-button i {
    font-size: 28px;
    line-height: 1;
}

.purchase-order-create-body {
    min-height: 0;
    overflow: hidden;
}

.purchase-order-step-one {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.purchase-order-form-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.purchase-order-form-row:first-child {
    margin-top: 0;
}

.purchase-order-form-label {
    flex: 0 0 150px;
    line-height: 1.2;
}

.purchase-order-form-input {
    flex: 0 0 360px;
    max-width: calc(100% - 166px);
}

.purchase-order-form-input input {
    width: 100%;
}

.purchase-order-step-one > .row {
    align-items: center;
    margin-top: 8px;
}

.purchase-order-step-one > .row:first-child {
    margin-top: 0;
}

.purchase-order-step-one > .row > .col-4 {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
}

.purchase-order-step-one > .row > .col-8 {
    flex: 0 0 360px;
    width: 360px;
    max-width: calc(100% - 166px);
}

.purchase-order-step-one > .row > .col-8 input {
    width: 100%;
}

.purchase-order-step-two {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 154px);
}

.purchase-order-step-three {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 154px);
}

.purchase-order-client-fees-list {
    min-height: 0;
    max-height: clamp(260px, calc(100vh - 520px), 520px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

    .purchase-order-client-fees-list table {
        table-layout: fixed;
        width: 100%;
    }

    .purchase-order-client-fees-list thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .purchase-order-client-fees-list th:first-child,
    .purchase-order-client-fees-list td:first-child {
        width: auto;
        white-space: nowrap;
    }

.purchase-order-client-fees-amount-col {
    width: 190px;
}

.purchase-order-upload-list {
    min-height: 0;
    max-height: clamp(320px, calc(100vh - 300px), 620px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 8px;
}

.purchase-order-step-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
}

.payrun-currency-input {
    width: 160px;
    max-width: 100%;
    text-align: right;
}

.payrun-bg {
    background-color: #f6edf0;
}

.billing-summary-grid,
.billing-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.billing-detail-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.billing-summary-item,
.billing-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d8e2ec;
    border-radius: 6px;
    background: #fff;
}

.billing-summary-item span,
.billing-detail-item span {
    color: #5f6f82;
    font-size: 0.86rem;
}

.billing-summary-item strong,
.billing-detail-item strong {
    color: #092b5a;
    font-size: 1rem;
    line-height: 1.25;
}

.billing-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.billing-actions {
    gap: 8px;
}

.billing-runs-table th,
.billing-runs-table td,
.billing-items-table th,
.billing-items-table td,
.billing-exceptions-table th,
.billing-exceptions-table td {
    font-size: 0.95rem;
    vertical-align: middle;
}

.billing-items-table td,
.billing-exceptions-table td {
    line-height: 1.35;
}

.billing-subtext {
    display: block;
    margin-top: 3px;
    color: #5f6f82;
    font-size: 0.82rem;
}

.billing-run-modal {
    width: min(620px, calc(100vw - 48px));
    max-width: min(620px, calc(100vw - 48px));
}

.billing-run-form {
    display: grid;
    gap: 14px;
}

.billing-run-form label {
    display: grid;
    gap: 6px;
    color: #092b5a;
    font-weight: 600;
}

.billing-run-form .form-control {
    min-height: 42px;
}

@media (max-width: 1100px) {
    .billing-summary-grid,
    .billing-detail-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 640px) {
    .billing-summary-grid,
    .billing-detail-grid {
        grid-template-columns: 1fr;
    }
}

.payrun-bg-info {
    background-color: #f14164;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
    background-color: #f6edf0;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.login-form-section {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 4px solid #f04b6a;
    border-radius: 16px;
}

.login-logo-section {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.login-form-section .form-control {
    padding: 0.75rem;
    border-radius: 8px;
}

.rima-img {
    width: 100%;
    max-width: 475px;
    max-height: 475px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 14px;
}

.text-brand {
    color: #f04b6a;
}

.btn-brand {
    background-color: #f04b6a;
    border-color: #f04b6a;
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: #e04360;
    border-color: #e04360;
    color: #fff;
}

.divider {
    width: 100%;
    display: flex;
    align-items: center;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.divider span {
    padding: 0 10px;
    color: #6c757d;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .login-wrapper {
        padding: 24px;
    }

    .login-card {
        max-width: 500px;
        min-height: auto;
        flex-direction: column-reverse;
    }

    .login-form-section,
    .login-logo-section {
        width: 100%;
        padding: 24px !important;
        margin-left: 0 !important;
    }

    .rima-img {
        max-width: 100%;
        max-height: none;
    }
}

.header-con {
    height: 73px;
    overflow: hidden;
}

.header-con > .d-flex {
    height: 100%;
}

.header-brand {
    margin-left: 0;
}

@media(min-width: 992px) {
    .header-brand {
        margin-left: 220px;
    }
}

.xero-connect-button {
    position: relative;
    width: 86px;
    height: 58px;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.xero-connect-button:disabled {
    cursor: wait;
    opacity: 0.75;
}

.xero-connect-logo {
    width: 70px;
    height: 50px;
    object-fit: contain;
}

.xero-connected-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.xero-connected-dot-lost {
    background: #ef4444;
}

.sidebar-container {
    top: 73px;
    left: 0;
    width: 220px;
    height: calc(100vh - 73px);
    min-height: calc(100vh - 73px);
    z-index: 9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar-container .sidebar-sub-link {
    margin-left: 0;
    padding-left: var(--bs-nav-link-padding-x);
    font-size: inherit;
}

@media(max-width: 992px) {
    .sidebar-container {
        top: unset;
        bottom: 0;
        width: 100%;
        height: fit-content;
        min-height: 0;
        flex-flow: row !important;
        padding: 10px !important;
    }

    .sidebar-container .profile-logo {
        display: none !important;
    }

    .sidebar-container .nav {
        display: flex;
        flex-flow: row !important;
        padding: 0 !important;
    }

    .sidebar-container .nav-link {
        display: flex;
        justify-content: space-evenly;
    }

    .sidebar-container .sidebar-sub-link {
        margin-left: 0;
        padding-left: var(--bs-nav-link-padding-x);
        font-size: inherit;
    }

    .sidebar-container .user-name {
        display: none;
    }
}

.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 {
    --app-font-family: "Titillium Web", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-family: var(--app-font-family);
    color: #122033;
    background: #F9EEF0;
    line-height: 1.5;
    font-weight: 400;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: var(--app-font-family);
}

button,
input,
select,
textarea,
table,
.btn,
.button,
.form-control,
.form-select,
.dropdown-menu,
.modal,
.popover,
.tooltip {
    font: inherit;
    font-family: var(--app-font-family);
}

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-card-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.summary-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(22, 42, 68, 0.12);
}

.summary-card-button.active {
    border-color: #ee4266;
    background: linear-gradient(180deg, rgba(238, 66, 102, 0.1) 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: 0 18px 34px rgba(238, 66, 102, 0.16);
}

.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;
    min-height: 68px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #ee4266;
}

.transactions-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.transactions-header-bar h2 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
}

.transactions-add-button {
    background: #6a6f7a;
    color: #fff;
}

.transactions-add-button:hover,
.transactions-add-button:focus {
    background: #565b64;
    color: #fff;
}

.transactions-export-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1d6f42;
    color: #fff;
}

.transactions-export-button:hover {
    background: #165734;
    color: #fff;
}

.transactions-export-button:disabled {
    background: #89a796;
    color: #f7fbf8;
}

.hidden-file-input {
    display: none;
}

.transactions-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
}

.invoice-filter-bar {
    display: grid;
    grid-template-columns: minmax(145px, 1.1fr) minmax(120px, 0.8fr) minmax(145px, 1fr) minmax(145px, 1fr) minmax(135px, 0.85fr) minmax(135px, 0.85fr) 86px 78px;
    gap: 10px;
    align-items: center;
}

.revenue-filter-bar {
    display: grid;
    grid-template-columns: minmax(190px, 1.2fr) repeat(3, minmax(150px, 1fr)) repeat(2, minmax(135px, 0.75fr)) 78px;
    gap: 10px;
    align-items: center;
}

.transactions-filter-input,
.transactions-filter-select {
    max-width: 280px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d3d7de;
    border-radius: 8px;
    background: #fff;
}

.invoice-filter-bar .transactions-filter-input,
.invoice-filter-bar .transactions-filter-select,
.revenue-filter-bar .transactions-filter-input,
.revenue-filter-bar .transactions-filter-select {
    max-width: none;
    min-width: 0;
    min-height: 50px;
}

.invoice-filter-bar .button,
.revenue-filter-bar .button {
    width: 100%;
    min-height: 50px;
    padding-left: 10px;
    padding-right: 10px;
}

.transactions-filter-input:focus,
.transactions-filter-select:focus {
    border-color: #7faad5;
    box-shadow: 0 0 0 0.15rem rgba(127, 170, 213, 0.24);
    outline: none;
}

.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-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #2b3037;
    font-weight: 700;
}

.transactions-bulk-delete {
    padding: 9px 14px;
    border: 1px solid #ee4366;
    border-radius: 8px;
    background: #fff;
    color: #ee4366;
}

.transactions-select-cell {
    width: 44px;
    min-width: 44px;
    text-align: center;
}

.transactions-select-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.revenue-table,
.invoice-table {
    font-size: 0.875rem;
    line-height: 1.3;
}

.revenue-table th,
.revenue-table td,
.invoice-table th,
.invoice-table td {
    padding: 9px 12px;
}

.revenue-table th,
.invoice-table th {
    font-size: 0.875rem;
    line-height: 1.25;
}

.invoice-table th,
.invoice-table td {
    white-space: nowrap;
}

.invoice-status-pill {
    display: inline-block;
    min-width: 84px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
}

.invoice-status-select {
    min-width: 126px;
    min-height: 32px;
    padding: 5px 30px 5px 10px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.invoice-status-select:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.invoice-status-select.text-dark {
    color: #212529;
    border: 1px solid #d8e8f7;
    background-color: #fff;
}

.invoice-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.invoice-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cfd6df;
    border-radius: 7px;
    color: #5b6673;
    background: #fff;
    text-decoration: none;
}

.invoice-icon-button:hover,
.invoice-icon-button:focus {
    color: #2f8c5b;
    border-color: #2f8c5b;
    outline: none;
}

.transactions-table-action {
    border: 0;
    background: transparent;
    color: #58585a;
    cursor: pointer;
    font-weight: 700;
    margin-right: 10px;
}

    .transactions-table-action:disabled {
        cursor: not-allowed;
        opacity: 0.45;
    }

.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: 0;
    right: calc(100% + 8px);
    z-index: 50;
    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-action-menu-item:disabled,
    .transactions-action-menu-item.disabled {
        color: #8a99aa;
        cursor: not-allowed;
        opacity: 0.55;
    }

    .transactions-action-menu-item:disabled:hover,
    .transactions-action-menu-item.disabled:hover {
        background: transparent;
    }

.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;
    }

.transactions-non-client-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #1f4fa3;
}

    .transactions-non-client-icon i {
        font-size: 1rem;
        line-height: 1;
    }

.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: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.provider-upload-row {
    margin-top: 18px;
}

.choose-file-field {
    max-width: 320px;
}

.bank-transaction-amount-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.bank-transaction-save-button {
    white-space: nowrap;
}

.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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

    .button:disabled {
        cursor: not-allowed;
        opacity: 0.7;
    }

    .button.disabled {
        cursor: not-allowed;
        opacity: 0.7;
        pointer-events: none;
    }

    .button.primary {
        background: #58585a;
        color: #fff;
    }

    .button.secondary {
        background: #58585a;
        color: #fff;
    }

    .button.secondary:hover,
    .button.secondary:focus,
    .button.primary:hover,
    .button.primary:focus {
        background: #47484c;
        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-dialog.purchase-order-create-dialog {
    width: min(750px, calc(100vw - 48px)) !important;
    max-width: min(750px, calc(100vw - 48px)) !important;
}

.xero-bank-import-modal {
    width: min(620px, calc(100vw - 48px));
    max-width: min(620px, calc(100vw - 48px));
}

.xero-import-form {
    display: grid;
    gap: 16px;
}

.xero-import-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.xero-import-date-grid label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.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-button:disabled {
        background: #f7f9fc;
        border-color: #d8e0e8;
    }

.icon-pencil {
    width: 16px;
    height: 16px;
    color: #58585a;
}

.icon-download {
    width: 16px;
    height: 16px;
    color: #58585a;
}

.icon-excel {
    width: 16px;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}

.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;
    height: min(40vh, 320px);
    max-height: min(40vh, 320px);
    min-height: min(40vh, 320px);
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
    scrollbar-width: auto;
    scrollbar-color: #8ea5bd #edf3f8;
}

    .client-search-results::-webkit-scrollbar {
        width: 12px;
    }

    .client-search-results::-webkit-scrollbar-track {
        background: #edf3f8;
        border-radius: 999px;
    }

    .client-search-results::-webkit-scrollbar-thumb {
        background: #8ea5bd;
        border-radius: 999px;
        border: 2px solid #edf3f8;
    }

    .client-search-results::-webkit-scrollbar-thumb:hover {
        background: #6f88a2;
    }


.client-search-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .client-search-nav span {
        flex: 1 1 auto;
        text-align: left;
        color: #5a6b7f;
        font-size: 0.9rem;
    }

.client-search-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 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;
}

.file-upload-drop-zone {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    border: 2px dashed #b7c1ca;
    border-radius: 8px;
    background: #fbfcfd;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

    .file-upload-drop-zone.is-dragging {
        border-color: #198754;
        background: #effaf4;
        box-shadow: inset 0 0 0 2px rgba(25, 135, 84, 0.18);
    }

.file-upload-drop-content {
    display: grid;
    justify-items: center;
    gap: 6px;
}

.file-upload-drop-icon {
    color: #198754;
    font-size: 28px;
    line-height: 1;
}

.file-upload-drop-title {
    color: #27313a;
    font-weight: 700;
}

.file-upload-drop-subtitle {
    color: #6f7b85;
    font-size: 0.88rem;
}

.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;
    }

    .invoice-filter-bar,
    .revenue-filter-bar {
        grid-template-columns: 1fr;
    }

    .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);
    }
}
