:root {
    /* global site variables */
    --brand-color-primary: #2462ab;
    --brand-color-primary-muted: #042f5b;
    --brand-color-primary-light: #07417c;
    --bs-card-cap-bg: rgba(var(--bs-body-color-rgb), 0.125);
}

.navbar {
    /* bootstrap variable overrides */
    --bs-navbar-padding-y: 0.25rem;
}

.navbar-search {
    background-color: var(--brand-color-primary-muted);
    border-color: #4b91d7;
}

.navbar-icon i {
    color: #fffc;
}

    .navbar-icon i:hover {
        color: #fff;
    }

.navbar-main .dropdown-menu {
    --bs-dropdown-bg: var(--brand-color-primary-muted);
    --bs-dropdown-link-hover-bg: var(--brand-color-primary);
    --bs-dropdown-link-color: #fffc;
    --bs-dropdown-link-hover-color: #fff;
}

.mw-fit-content {
    max-width: fit-content;
}

footer.main-footer {
    background-color: #2e3243;
    color: #ededed;
    font-size: 0.8rem;
}

    footer.main-footer a {
        color: #ededed;
    }


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUg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My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.mw-1055 {
    max-width: 1055px;
}

main {
    margin-top: 50px;
    padding: 1rem;
}

.cursor-pointer {
    cursor: pointer;
}

.table-success,
.table-success > th,
.table-success > td {
    background-color: #c3e6cb !important;
}

    .table-success th,
    .table-success td,
    .table-success thead th,
    .table-success tbody + tbody {
        border-color: #8fd19e !important;
    }

.table-danger,
.table-danger > th,
.table-danger > td {
    background-color: #eccccf !important;
}

    .table-danger th,
    .table-danger td,
    .table-danger thead th,
    .table-danger tbody + tbody {
        border-color: #8fd19e !important;
    }

.table-alt-item > td {
    background-color: rgba(0, 0, 0, 0.03);
}

table-alt-item-noborder {
    border: none !important
}

item-header-border {
    border: solid 5px !important
}

.validation-message {
    color: red;
}

.customCalendar td:not(.dxbl-calendar-day) {
    display: none;
}

.customCalendar .dxbl-calendar-days-of-week th:first-child {
    display: none;
}

.folder-icon {
    background-image: url('/images/yellowfolder-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 18px !important;
    height: 18px !important;
    display: inline-block;
    background-color: transparent;
    border: none;
    margin-top: 5px;
}

.alert-Notes {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-NotesScroll {
    height: 550px;
    overflow-y: auto;
}

.tab-green {
    background-color: #90ee90 !important;
    box-shadow: inset 1px 1px 5px 1px #78de78 !important;
    color: black !important;
}

    .tab-green[aria-selected="true"] {
        background-color: #bff5bf !important;
        box-shadow: inset 1px 1px 5px 1px #78de78 !important;
    }


.label-tooltip {
    cursor: pointer;
    text-decoration: none;
}

.tooltip.white-tooltip {
    opacity: 1 !important;
    background-color: #ffffff !important;
}

    .tooltip.white-tooltip .tooltip-inner {
        background-color: #ffffff !important;
        Opacity: 1 !important;
        color: #000000 !important;
        border: 1px solid #cfd4da !important;
        border-radius: 4px !important;
    }

    .tooltip.white-tooltip.bs-tooltip-bottom .tooltip-arrow::before {
        border-bottom-color: #ffffff !important;
    }

    .tooltip.white-tooltip.bs-tooltip-top .tooltip-arrow::before {
        border-bottom-color: #ffffff !important;
    }

    .tooltip.white-tooltip.bs-tooltip-start .tooltip-arrow::before {
        border-bottom-color: #ffffff !important;
    }

    .tooltip.white-tooltip.bs-tooltip-end .tooltip-arrow::before {
        border-bottom-color: #ffffff !important;
    }



/* ==========================================================================
   Account Tasks Popup
   Matches legacy WebForms modal font, spacing, and layout.
   Legacy base: font-size 1rem, Bootstrap 4 system font stack, line-height 1.5
   ========================================================================== */

/* --- Header --- */
.account-task-popup-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

    /* h5.modal-title rendered via HeaderContentTemplate
   matches legacy <h5 class="modal-title"> exactly:
   font-size: 1.25rem, font-weight: 500, line-height: 1.2 (Bootstrap h5 defaults) */
    .account-task-popup-header .modal-title {
        line-height: 1.5;
        margin: 0.50rem;
    }

/* --- Body --- */
.account-task-popup-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    padding: 1.25rem 1.5rem;
}

    .account-task-popup-body .container-fluid {
        padding: 1rem;
    }

    /* Paragraph spacing */
    .account-task-popup-body p {
        margin-bottom: 1rem;
    }

    /* Labels */
    .account-task-popup-body label {
        margin-bottom: 0.375rem;
        font-weight: 500;
    }

    /* Form group spacing */
    .account-task-popup-body .mb-3 {
        margin-bottom: 1rem !important;
    }

    .account-task-popup-body .mb-4 {
        margin-bottom: 1.25rem !important;
    }

    /* Form rows (Apply Hold In Suspense layout) */
    .account-task-popup-body .row.mb-2 {
        margin-bottom: 0.75rem !important;
        align-items: center;
    }

    .account-task-popup-body .col-form-label {
        font-size: 0.9375rem;
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    /* Radio button groups */
    .account-task-popup-body .form-check {
        margin-bottom: 0.375rem;
    }

    .account-task-popup-body .form-check-label {
        font-weight: 400;
        font-size: 0.9375rem;
    }

    .account-task-popup-body .form-check-inline {
        margin-right: 1rem;
    }

    /* DevExpress control spacing */
    .account-task-popup-body .dxbl-spin-edit,
    .account-task-popup-body .dxbl-combobox,
    .account-task-popup-body .dxbl-date-edit,
    .account-task-popup-body .dxbl-memo {
        margin-top: 0.25rem;
    }

    /* Validation messages */
    .account-task-popup-body .text-danger {
        font-size: 0.875rem;
        margin-top: 0.25rem;
        display: block;
    }

/* --- Footer --- */
.account-task-popup-footer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    /* Footer buttons */
    .account-task-popup-footer .dxbl-btn {
        min-width: 100px;
        font-size: 0.9375rem;
        padding: 0.375rem 0.75rem;
        margin: 0.75rem;
    }



/* ===== Enter Payment Task Link Popup ===== */

/* Header icon (centered money/check icon) */
.enter-payment-task-link-popup-header .header-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.enter-payment-task-link-popup-header .header-icon {
    background-color: #00d800;
    border-radius: 10rem;
    padding: 0.1rem;
    width: 28px;
    height: 28px;
}

.enter-payment-task-link-popup-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* Payment amount: dollar sign + spin edit on one line */
.enter-payment-task-link-popup-body .payment-amount-group {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.enter-payment-task-link-popup-body .dollar-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    flex-shrink: 0;
}

.enter-payment-task-link-popup-body .payment-amount-input {
    flex: 1;
    min-width: 0;
}

/* Backdate warning text */
.enter-payment-task-link-popup-body .backdate-warning {
    font-size: 0.75rem;
}

.enter-payment-task-link-popup-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    padding: 1.5rem 2rem;
}

    /* Form labels */
    .enter-payment-task-link-popup-body .form-label {
        margin-bottom: 0.375rem;
        font-weight: 500;
        display: block;
    }

    /* Spacing between form fields */
    .enter-payment-task-link-popup-body .mb-3 {
        margin-bottom: 1.25rem !important;
    }

    /* DevExpress spin edit inside payment amount group */
    .enter-payment-task-link-popup-body .payment-amount-group .dxbl-spin-edit {
        border-radius: 0 0.375rem 0.375rem 0;
    }
    

    /* Validation messages */
    .enter-payment-task-link-popup-body .text-danger {
        font-size: 0.875rem;
        margin-top: 0.25rem;
        display: block;
    }

    .enter-payment-task-link-popup-body .alert {
        margin-top: 1rem;
    }

    /* Receipt confirmation view */
    .enter-payment-task-link-popup-body .receipt-item {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .enter-payment-task-link-popup-body .item-label {
        font-weight: 500;
        color: #6c757d;
    }

    .enter-payment-task-link-popup-body .item-value {
        font-weight: 600;
    }

    /* Inner form padding */
    .enter-payment-task-link-popup-body .enter-payment-form {
        padding: 0.5rem 0;
    }

.enter-payment-task-link-popup-footer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    padding: 0.75rem 2rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .enter-payment-task-link-popup-footer .dxbl-btn {
        min-width: 100px;
        font-size: 0.9375rem;
        padding: 0.375rem 0.75rem;
    }
/* -----------------------------------------------------------------------
   Cross-Collateral: delete confirmation overlay
   Mirrors legacy CrossCollateralAccount.css overlay/dialog styles.
   ----------------------------------------------------------------------- */
.cross-collateral-confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-collateral-confirm-dialog {
    background: #fff;
    border-radius: 4px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
}