﻿.linkbutton {
    color: #043436;
    font-size: 18px;
    font-family: Georgia;
    text-decoration: none;
    position: absolute;
    bottom: 3px
}

    .linkbutton:hover {
        color: white;
        transition: 0.2s;
    }

.banner {
    width: 100%;
    height: 110px;
    position: relative;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#043436), to(#cadbdb));
    background-image: -webkit-linear-gradient(top, #043436, #cadbdb);
    background-image: -ms-linear-gradient(top, #043436, #cadbdb);
    background-image: -o-linear-gradient(top, #043436, #cadbdb);
    background-image: linear-gradient(top, #043436, #cadbdb);
}

.buttontypecheck {
    background-repeat: no-repeat;
    background-position-x: center;
    width: 200px;
    height: 200px;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    transition-duration: 0.3s;
    cursor: pointer;
    border: 1px solid #2d6898;
    box-shadow: inset 0px 1px 0px rgba(255,255,255,.3);
    -webkit-box-shadow: 0px 2px 0px #458f5e, 0px 3px 15px rgba(0,0,0,.4), inset 0px 1px 0px rgba(255,255,255,.3), inset 0px 0px 3px rgba(255,255,255,.5);
    -moz-box-shadow: 0px 2px 0px #458f5e, 0px 3px 15px rgba(0,0,0,.4), inset 0px 1px 0px rgba(255,255,255,.3), inset 0px 0px 3px rgba(255,255,255,.5);
    box-shadow: 0px 2px 0px #458f5e, 0px 3px 15px rgba(0,0,0,.4), inset 0px 1px 0px rgba(255,255,255,.3), inset 0px 0px 3px rgba(255,255,255,.5);
}

    .buttontypecheck label span {
        text-align: center;
        display: block;
    }

    .buttontypecheck label input {
        position: absolute;
        visibility: hidden;
    }

    .buttontypecheck:hover {
        border: 1px solid rgb(34, 93, 138);
        background-color: rgba(34, 93, 138, .2);
    }

    .buttontypecheck input:checked + span {
        border: 1px solid rgb(34, 93, 138);
        background-color: rgba(34, 93, 138, .2);
    }


.smallbuttonstyle {
    color: rgba(34,93,138,1);
    background-color: ghostwhite;
    width: 100px;
    height: 25px;
    font-family: Georgia;
    font-size: 14px;
    font-weight: bold;
    border-radius: 7px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #050076;
}

    .smallbuttonstyle:hover {
        border: 1px solid #050076;
        background-color: #b3d9ff;
    }

.gridviewFinancialReports {
    max-height: 80%;
    max-width: 100%;
    margin-left: 10px;
}

    .gridviewFinancialReports a {
        color: black;
        text-decoration: none;
        font-family: Calibri;
    }

.balance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* Smaller font */
    font-family: Calibri; /* Match existing font */
}

    .balance-table th, .balance-table td {
        padding: 3px; /* Reduced padding for less space around data */
        border: none; /* No borders for cleaner look */
        text-align: right; /* Default right-align for numbers */
    }

    .balance-table th {
        background-color: #f2f2f2; /* Shading for headers */
        font-weight: bold;
    }

        .balance-table th:first-child {
            width: 60%; /* Wider first column for descriptions */
            text-align: left !important; /* Force left alignment for header */
        }

        .balance-table th:nth-child(2) {
            width: 15%; /* Prior Month column */
        }

        .balance-table th:nth-child(3) {
            width: 15%; /* Narrower Current Month Activity column */
        }

        .balance-table th:nth-child(4) {
            width: 10%; /* Year To Date column */
        }

    .balance-table td:first-child {
        text-align: left !important; /* Force left alignment for data cells */
        width: 60%; /* Ensure it takes the intended space */
    }

    .balance-table td:nth-child(2), .balance-table td:nth-child(4) {
        width: 15%; /* Prior Month and Year To Date */
    }

    .balance-table td:nth-child(3) {
        width: 10%; /* Narrower Current Month Activity */
    }

.section-header {
    font-weight: bold;
    background-color: #e0e0e0 !important; /* Higher specificity to ensure application */
}

.group-header {
    font-weight: bold;
    padding-left: 10px; /* Indent groups slightly */
    background-color: #e0e0e0;
}


.total-row {
    font-weight: bold;
    border-top: 1px solid #000; /* Thin border for totals */
}

    .total-row.wrapper-total {
        font-weight: 700;
        border-top: 1px solid #000;
    }

    .total-row.section-total {
        border-bottom: 4px double #000;
    }

    .total-row.grand-total {
        border-top: 2px solid #000;
        border-bottom: 4px double #000;
    }

.footer-row {
    font-size: 10px; /* Smaller for footer */
    text-align: left;
    border-top: 1px solid #000;
    padding-top: 10px;
}

/* Alternating rows for readability */
.balance-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.grand-total {
    font-weight: 700;
    border-top: 2px solid #333;
}

.balance-table.is-two-col th,
.balance-table.is-two-col td {
    display: table-cell;
}

/* Keep sections together on print and preserve shading */
@media print {
    .no-print {
        display: none !important;
    }

    .group-header,
    .account-row,
    .total-row,
    .footer-row {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Income Statement is 3 columns: Desc | Month Ending | YTD */
#tblIncomeStatement th:first-child,
#tblIncomeStatement td:first-child {
    width: 70%;
    text-align: left !important;
}

#tblIncomeStatement th:nth-child(2),
#tblIncomeStatement td:nth-child(2) {
    width: 15%;
    text-align: right;
}

#tblIncomeStatement th:nth-child(3),
#tblIncomeStatement td:nth-child(3) {
    width: 15%;
    text-align: right;
}

/* no wrapping for month headers */
#tblTrailingIncomeStatement th,
#tblTrailingIncomeStatement th.month-col,
#tblTrailingIncomeStatement th.total-col {
    white-space: nowrap;
    text-align: center;
    min-width: 70px;
}

/* ensure print keeps them on one line too */
@media print {
    #tblTrailingIncomeStatement th,
    #tblTrailingIncomeStatement th.month-col,
    #tblTrailingIncomeStatement th.total-col {
        white-space: nowrap;
        text-align: center;
        min-width: 80px;
    }
    .is-ttm {
        font-size: 11px;
    }
}


#dvFinancialReports {
    width: 100%;
    max-height: 80vh;
    overflow: auto; /* shows scrollbars only when needed */
    scrollbar-gutter: stable; /* reserve space for vertical scrollbar */
    box-sizing: border-box; /* include borders/padding in width */
    padding-inline-end: 12px; /* keep the final report column off the browser edge */
}

/* Keep the complete trailing report, including a usable right-side gutter,
   inside the horizontal scroll extent. */
.financial-report-wide-panel {
    display: inline-block;
    min-width: 100%;
    width: max-content;
    padding-right: 24px;
    box-sizing: border-box;
}

/* Desktop financial reports have one horizontal scroll owner. The fixed
   workspace retains its established vertical viewport, while the report
   viewport owns the complete table width. */
@media screen and (min-width: 1101px) {
    .ri-financial-workspace {
        box-sizing: border-box;
        padding-left: 10px;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .ri-financial-workspace #divFinancialsReports {
        min-width: 0;
        max-width: 100%;
    }

    .ri-financial-workspace #dvFinancialReports {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-left: 0 !important;
    }
}

#divFinancialsReports input[type="date"]:disabled {
    cursor: not-allowed;
    opacity: .65;
}

    #dvFinancialReports .balance-table {
        width: max-content;
    }

.ri-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65); /* dim background */
    backdrop-filter: blur(3px);
}

.ri-loading-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    text-align: center;
    max-width: 320px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ri-loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid #e5e7eb;
    border-top-color: #f97316; /* orange accent */
    animation: ri-spin 0.75s linear infinite;
    margin: 0 auto 12px;
}

.ri-loading-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ri-loading-sub {
    font-size: 12px;
    color: #6b7280;
}

@keyframes ri-spin {
    to {
        transform: rotate(360deg);
    }
}
.ri-userblock {
    position: absolute;
    top: 12px;
    right: 18px;
    text-align: right;
    color: #000; /* or #043436 */
    font-family: Georgia;
    line-height: 1.15;
    white-space: nowrap;
}

    .ri-userblock .ri-user-name {
        font-weight: 700;
        font-size: 16px;
    }

    .ri-userblock .ri-user-email,
    .ri-userblock .ri-user-id {
        font-size: 13px;
    }

