﻿body, html {
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
}

/* Layout height variables */
:root {
    --nav-height: 56px;
    --footer-height: 90px;
    --content-vert-pad: 24px; /* vertical padding inside the main content */
}

/* Padding to avoid overlap with fixed header/footer */
body {
    padding-top: var(--nav-height);
    padding-bottom: var(--footer-height);
}

footer {
    background-color: #222529;
    color: rgba(255, 255, 255, 0.6); /* White at 60% opacity */
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
}

    footer * {
        color: rgba(255, 255, 255, 0.6);
    }


    footer a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
    }

        footer a:hover {
            color: rgba(255, 255, 255, 0.8);
        }

.footer-logo {
    height: 40px;
    opacity: 0.6; /* Matches the text opacity */
    transition: opacity 0.3s ease;
}

.footer-links-wrapper {
    gap: 0.5rem;
    align-items: center;
}

.footer-txt {
    padding: 0 0.4rem;
    white-space: nowrap; /* keeps the links on one line */
    font-size: 0.875rem;
}

.footer-separator {
    color: #999;
}

.footer-links-wrapper {
    gap: 0.5rem;
    align-items: center;
}

.btn-dashboard {
    font-size: 0.85rem;
    border-color: #637141;
    color: #637141;
    border-radius: 40px;
    padding: 5px 10px;
    min-width: 70px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

    .btn-dashboard:hover {
        color: white;
        background-color: #8aa151;
        border-color: #8aa151;
    }

    .btn-dashboard:active,
    .btn-dashboard:focus,
    .btn-dashboard:active:focus {
        background-color: #8aa151 !important;
        border-color: #8aa151 !important;
        color: #fff;
        box-shadow: none;
    }

.btn-danger-dashboard {
    --bs-btn-bg: #c65151;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 40px;
    --bs-btn-hover-bg: #ed0d0d;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-padding-y: 5px;
    --bs-btn-padding-x: 10px;
    font-size: 0.85rem;
    min-width: 70px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.table tbody tr.dashboard-row:nth-of-type(odd) > td, .table tbody tr.dashboard-row:nth-of-type(odd) > th {
    background-color: rgba(194,223,250,.3) !important;
}

.full-width { width: 100%; }
.max-date-width { max-width: 100%; }
.footer-txt { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); text-decoration: none; }

/* Remove extra spacing around fixed footer wrapper */
.section_footer_layout { margin-top: 0 !important; }

/* Size main to exactly fill the viewport between fixed header/footer */
main {
    height: calc(100vh - var(--nav-height) - var(--footer-height));
    display: flex;
    flex-direction: column;
    min-height: 0; /* allow children to shrink */
}
/* Ensure the bootstrap container inside main can shrink and host a flex column */
main > .container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
/* Shell that wraps the title + step content */
.main-step-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0 !important; /* override older min-heights */
}

/* Step container should NOT be a fixed calc height – let flex compute the remainder under the title */
.step-container{
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0; /* required so inner scroller can shrink */
    height: auto;
    max-height: none;
    padding-block: 20px; /* 20px top and bottom */
    overflow: hidden; /* prevent page scroll; inner `.step-wrapper` scrolls */
}

.step-wrapper {
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* allow inner content to scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    width: 100%;
    min-height: 0; /* let flexbox shrink this below content height so it can scroll */
}

/* Ensure flex parents don’t constrain scrollable children */
.step-card {
    min-height: 0;
}
.step-card > .container.d-flex {
    min-height: 0;
}

.ui-autocomplete {
    width: 300px;
    overflow-y: auto; /* enable scrolling */
    overflow-x: hidden; /* prevent horizontal scrollbar */
    z-index: 10000; /* keep it above other elements */
}

.left-indent {
    margin-left: 45px !important;
}
/* Fixed footer helper */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
}

.cust-sales-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-cust-sales {
    border: 1px solid #aba7a7;
    color: #333333;
    background-color: #f8f8f8;
    border-radius: 40px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Top nav "modern" buttons (Login/Register/Dashboard/Logout)
   Keep these in global.css so they are consistent site-wide, even on pages
   that don't load valuedge-custom.css. Match valuedge-custom.css styling. */
.btn-modern-primary {
    background-color: #637141;
    color: white !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 113, 65, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-modern-primary:hover {
    background-color: #7b8c4e;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 113, 65, 0.4);
}

.btn-modern-white {
    background-color: #ffffff;
    color: #637141 !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-modern-white:hover {
    background-color: #fdfdfd;
    color: #7b8c4e !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

    .btn-cust-sales:hover,
    .btn-cust-sales.active {
        color: white;
        background-color: #8aa151;
        border-color: #8aa151;
    }

a.footer-txt:hover { color: rgba(255, 255, 255, 1); }
a { color: #4b82e5; }
.footer-logo { max-height: 40px; opacity: 0.6; }
.h5 { font-weight: 700; font-size: 1em; line-height: 1.4em; }
.card-body h5 { font-weight: 700; font-size: 1em; line-height: 1.4em; margin-bottom: 20px; }
.thank-you { padding: 20px 10px 10px 10px; font-size: 1em !important; font-weight: 400; }
.thank-you-logo-img { max-width: 200px; width: 100%; height: auto; }
.top-nav-height { height: 56px; }
.bg-white { background-color: #f2f2f2; }
.bg-light-green { background-color: #d1d3c4; }
.bg-dark-green { background-color: #637141; background-image: linear-gradient(to bottom, #7b8c4e, #637141); }
.card-shadow { box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2); }
.tooltip-hover-indicator { text-decoration: underline; cursor: pointer; }
.card.login-card { margin: 10px; padding: 0; border-radius: 20px; overflow: hidden; max-width: 100%; min-height: 120px; }
.login_title { display: block; font-size: 1rem; font-family: "Montserrat", sans-serif; font-weight: 500; width: 100%; color: #fff; text-align: center; padding: 10px 0; margin-bottom: 10px; }
.card.login-card .card-body { padding: 10px 20px; }
.card { margin: 10px; padding: 0 0 10px 0; border-radius: 20px; overflow: hidden; min-height: 300px; border: none; }
.card-step-owner { flex: 0 0 100%; max-width: 100%; min-height: 200px; }
.card-header { background-color: #637141; background-image: linear-gradient(to bottom, #7b8c4e, #637141); font-family: "Montserrat", sans-serif; text-align: center; padding-top: 20px; padding-bottom: 10px; }
.section_financial_steps .card-body, .section_registration_steps .card-body { padding: 10px 10px; }
.rounded-input { border-radius: 20px; }
.btn-full-width { width: 100%; }
.max-card-img-width { max-width: 120px; }

.btn-outline-primary { border-color: #637141; color: #637141; border-radius: 20px; padding: 8px 20px; min-width: 70px; }
.btn-outline-primary:hover { background-color: #8aa151; border-color: #8aa151; }
.btn-outline-primary:active { background-color: #8aa151 !important; border-color: #8aa151 !important; color: #fff; box-shadow: none; }

.btn-primary { background-color: #637141; color: #fff; border-color: #637141; border-radius: 25px; padding: 8px 20px; min-width: 70px; }
.btn-primary:disabled { background-color: #637141; color: #fff; border-color: #637141; border-radius: 25px; padding: 8px 20px; min-width: 70px; }
.btn-primary:hover { background-color: #8aa151; border-color: #8aa151; }
.btn-primary:active { background-color: #8aa151 !important; border-color: #8aa151 !important; color: #fff; box-shadow: none; }

.btn-primary-alt {
    background-color: #c2ab6c;
    color: #000000;
    border-color: #637141;
    border-radius: 25px;
    padding: 8px 20px;
    min-width: 70px;
}

    .btn-primary-alt:disabled {
        background-color: #c2ab6c;
        color: #000000;
        border-color: #c2ab6c;
        border-radius: 25px;
        padding: 8px 20px;
        min-width: 70px;
    }

    .btn-primary-alt:hover {
        background-color: #d1c39a;
        border-color: #d1c39a;
        color: #fff;
    }

    .btn-primary-alt:active {
        background-color: #d1c39a !important;
        border-color: #d1c39a !important;
        color: #fff;
        box-shadow: none;
    }

/* Ensure disabled buttons during transitions have appropriate visual feedback */
.btn-primary:disabled,
.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-danger { --bs-btn-bg: #af2323; --bs-btn-border-color: transparent; --bs-btn-border-radius: 20px; --bs-btn-hover-bg: #d41616; --bs-btn-hover-border-color: transparent; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-padding-y: 8px; --bs-btn-padding-x: 20px; }

.form-check-input { transform: scale(1.1); margin-top: 0.2rem; }
.form-check-input:checked { border-color: rgba(191, 196, 172, 0.35); box-shadow: 0 0 0 .2rem rgba(191, 196, 172, 0.35) !important; background-color: #4b82e5; }
.form-check-label { font-size: .9rem; line-height: 1.3rem; margin-left: 0.25rem; margin-bottom: .1rem; }
::placeholder { color: #999; font-style: italic; font-size: 0.9rem; opacity: 1; }
form select { color: #444; font-weight: 500; font-size: 0.9rem !important; }
.normal-ebitda, .non-op-assets, .pass-through, .non-op-liab, .calc-value, .c-corp, .ttm-tool-tip, .pass-through, .total-cash-balance, .total-assets, .total-debt {
    font-size: .9rem;
    text-decoration: underline;
    cursor: pointer;
    color: #4b82e5;
}
span, input, select, textarea, button, label, .form-control { font-family: 'Roboto', sans-serif !important; }
.italic-text { font-style: italic; font-size: 0.9rem; font-weight: 400; }
.underline-text { text-decoration: underline; }
.form-control:focus { border-color: rgba(75, 130, 229, 0.35) !important; box-shadow: 0 0 0 .2rem rgba(75, 130, 229, 0.35) !important; }
.form-select:focus { border-color: rgba(75, 130, 229, 0.35); box-shadow: 0 0 0 .2rem rgba(75, 130, 229, 0.35) !important; }
.form-check-input:checked { border-color: rgba(191, 196, 172, 0.25); box-shadow: 0 0 0 .2rem rgba(191, 196, 172, 0.25) !important; }
.form-check-input.required:checked { border-color: rgba(191, 196, 172, 0.25); box-shadow: 0 0 0 .2rem rgba(191, 196, 172, 0.25) !important; background-color: #637141; }
.form-check-input.required { border-color: red; }
.modal-content { border-radius: 20px; background-color: #f6f6f6; padding: 10px; }
.modal-message { font-size: 1em !important; font-weight: 400; }
.btn-close { font-size: .8rem; opacity: .3; }
.custom-divider { border: none; height: 1px; background-color: #ccc; margin: 1rem 0; }
.custom-divider-lt { border: none; height: 1px; background-color: #e9e9e9; margin: 1rem 0; }
.modal-title { font-family: "Montserrat", sans-serif; font-weight: 600; color: #585c63; }
.modal-header { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.modal-footer { border-top: none; }
.modal-body { font-size: .9rem; color: #585c63; }
.modal-body a { color: #4b82e5; text-decoration: underline; }
.modal-body a:hover { color: #7da8f5; }
.modal-body-padding { padding: 20px 10px 10px 10px; }
.margin-bottom-0 { margin-bottom: 0; }
.img-max-fluid { width: 100%; max-width: 80px; }
.card-slider { position: relative; overflow: visible; padding: 10px; }
.card-slider-container { display: flex; transition: transform 0.5s ease; }
.card-step { flex: 0 0 100%; max-width: 100%; }
.card-slider-owner { position: relative; overflow: visible; }
.card-slider-container-owner { display: flex; transition: transform 0.5s ease; }

/* Main area fills remaining viewport height between fixed elements */
/* Equal top/bottom padding applied inside main */
.main-step-wrapper { flex: 1; display: flex; flex-direction: column; padding-block: var(--content-vert-pad); }

.disabled { opacity: 0.65; pointer-events: none; cursor: not-allowed; }
.tooltip-wrapper { position: relative; display: inline-block; }
.tooltip-wrapper::after { content: attr(data-tooltip); position: absolute; bottom: 0; left: 50%; width: 200px; transform: translateX(-50%); background-color: #333; color: #fff; padding: 5px 8px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 0s; }
.tooltip-wrapper:hover::after { opacity: 1; }
.ui-autocomplete { max-height: 320px; overflow-y: auto; overflow-x: hidden; }
#frm_financial_step_seven table tr:nth-child(even) { background-color: #d41616 !important; }
#frm_financial_step_seven table tr:nth-child(odd) { background-color: #ffffff; }
#frm_financial_step_seven table { width: 100%; border-collapse: collapse; }
#frm_financial_step_seven tr { border-bottom: 1px solid #ddd; }
#frm_financial_step_seven td { padding: 6px; vertical-align: middle; }
#frm_financial_step_seven input.form-control { font-size: 0.9rem; text-align: right; padding: 4px 8px; height: 28px; border-radius: 20px; }
.table-custom-1.table-striped > tbody > tr:nth-of-type(odd) { background-color: #0000; }
.table-custom-1.table-striped > tbody > tr:nth-of-type(even) { background-color: #ffffff; }
.table-custom-1 { border-radius: 20px; }
#tbl_revenue_ebitda td, #tbl_prospective_financial_information, #tbl_owners_pos_compensation { text-align: center; vertical-align: middle; }
.div_rank_wrapper > div { border: 1px solid #ccc; border-radius: 20px; padding: 8px; margin-bottom: 8px; background-color: #f9f9f9; cursor: move; transition: background-color 0.2s, border-color 0.2s; text-align: center; }
.div_rank_wrapper > div:hover { background-color: #f1f1f1; border-color: #bbb; }
.dragging { opacity: 0.5; background-color: #d9edf7; border-color: #31708f; }
/* Auto numbering for strength/weakness rank items */
.div_rank_wrapper { counter-reset: rankitem; }
.div_rank_wrapper > div {
    position: relative;
    padding-left: 44px; /* room for the number on the left */
}
.div_rank_wrapper > div::before {
    counter-increment: rankitem;
    content: counter(rankitem);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #637141; /* match theme */
}

/* Remove fixed large min-heights that cause overflow; let flexbox drive the height */
.main-step-wrapper { min-height: 0 !important; }
@media (min-width: 769px) {
    /* override earlier rule that set min-height: 800px */
    .main-step-wrapper { min-height: 0 !important; }
}

.step-title-wrapper { width: 100%; background-color: #637141; background-image: linear-gradient(to bottom, #7b8c4e, #637141); font-family: "Montserrat", sans-serif; font-weight: 500; text-align: center; padding-top: 20px; padding-bottom: 10px; border-top-left-radius: 20px; border-top-right-radius: 20px; color: #fff; font-size: 1rem !important; }
.bottom-corners-radius { border-bottom-right-radius: 20px; border-bottom-left-radius: 20px; }
.step-wrapper:empty { height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
.step-wrapper-padding { padding: 1% 3%; }
.user-entry-title { font-size: 1rem; font-weight: 500; margin-bottom: 10px; }
.user-entry-wrapper { margin-top: 0px; margin-left: 0px; }
.m-top-custom { margin-top: 20px; }
.line-break { display: block; height: 6px; }
.card-instructions-sm { font-size: 0.8rem; }
.form-label.card-instructions { margin-top: 0; }
.accordion-wrapper { display: flex; justify-content: center; }

.accordion-wrapper .form-control { padding-top: 0.25rem; padding-bottom: 0.25rem; font-size: 0.9rem; height: calc(1.5em + 0.5rem + 1px); }

.accordion { max-width: 100%; width: 100%; border-radius: 10px; overflow: hidden; }

.accordion-header { background-image: linear-gradient(to bottom, #7b8c4e, #637141); }

.accordion-header.accordion-complete .accordion-button {
    background-image: linear-gradient(to bottom, #7cc589, #3c7951) !important;
    background-color: #3c7951 !important;
    color: #fff !important;
    box-shadow: 0 4px 6px rgba(56, 113, 76, 0.4) !important;
    border-color: rgba(0, 0, 0, 0.19) !important;
}

.accordion-subtitles { font-size: 1rem; color: #637141; margin-bottom: 5px; font-family: 'Roboto', sans-serif; font-weight: 500; }
.fin-data-rows { margin-bottom: 8px; }
.accordion-button { background: linear-gradient(to bottom, #d6dde6, #a3adbb); color: black !important; font-size: 1rem !important; transition: background-color 0.3s ease, color 0.3s ease; font-weight: 500; line-height: 0.1 !important; padding-top: 0.6rem !important; padding-bottom: 0.6rem !important; }
.accordion-button:not(.collapsed) { background: linear-gradient(to bottom, #93c0e9, #6993b8); color: white; box-shadow: 0 4px 1px rgba(206, 187, 151, 0.6) !important; }
.accordion-button::after { filter: brightness(0) invert(1); }
.accordion-button.final-total { font-weight: 700; position: relative; }
.accordion-button.final-total::before { font-family: "Font Awesome 6 Free"; content: "\2b"; font-weight: 900; color: rgba(255, 255, 255, 0.85); margin-right: 0.5rem; display: inline-block; font-size: 1rem; }
.accordion-item { border: 1px solid #ccc; margin-bottom: -1px; }
.accordion-body { padding: 1rem; }
.accordion-item:first-child { border-radius: 10px 10px 0 0 !important; overflow: hidden; }
.accordion-item:not(:first-child):not(:last-child) { border-radius: 0; }
.SI-accordion-item { border: 1px solid rgba(0, 0, 0, 0.125) !important; margin-bottom: 0; border-radius: 10px; overflow: hidden; }
.SI-accordion-item .accordion-collapse, .SI-accordion-item .accordion-body { border-radius: 0 0 10px 10px !important; overflow: hidden; background: #fff; }
.SI-accordion-button { background: linear-gradient(to bottom, #5b9bd5, #366ba1); color: white !important; font-size: 1.1rem !important; font-weight: 500; line-height: 0.1 !important; padding-top: 1rem !important; padding-bottom: 1rem !important; cursor: default; border: none; display: block; box-shadow: 0 4px 1px rgba(201, 171, 107, 0.60) !important; }
.SI-accordion-button::after { display: none; }
.SI-accordion-item .accordion-collapse { display: block !important; opacity: 1; }
:root { --acc-border: rgba(0, 0, 0, 0.125); }
.accordion .accordion-item:last-child { border-bottom-color: var(--acc-border) !important; margin-bottom: 0; border-radius: 0 0 10px 10px !important; overflow: hidden; }
.accordion .accordion-item:last-child .accordion-collapse, .accordion .accordion-item:last-child .accordion-body { border-radius: 0 0 10px 10px !important; overflow: hidden; background: #fff; }

.mobile-slide-menu { position: fixed; top: var(--nav-height); left: 0; width: 100%; background: #f2f2f2; transform: translateY(-110%); transition: transform 0.3s ease-in-out; z-index: 1025; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.mobile-slide-menu.open { transform: translateY(0); }
.mobile-slide-menu-content { display: flex; flex-direction: column; padding: 15px 20px 25px 20px; gap: 10px; }
.mobile-slide-menu-content a { font-weight: 500; color: #4b82e5; text-decoration: none; }
.mobile-slide-menu-content a:hover { text-decoration: underline; }

/* ===================== Responsive Breakpoints (ordered smallest->largest) ===================== */
@media (min-width: 769px) {
    :root { --nav-height: 70px; --content-vert-pad: 40px; }
    body, html { font-size: 17.5px; }
    /* earlier calc-based min-height comes first */
    .main-step-wrapper { min-height: 0 !important; }
    .step-wrapper-padding { padding: 1% 5%; }
    /* later override keeps previous behavior */
    .thank-you { padding: 50px 50px 20px 50px; font-size: 1.2em !important; }
    .thank-you-logo-img { max-width: 300px; }
    .top-nav-height { height: 70px; }
    .max-date-width { max-width: 175px; }
    .card { min-height: 700px; border-radius: 30px; margin: 20px; padding: 0 0 20px 0; }
    .card.login-card { max-width: 360px; border-radius: 30px; min-height: 200px; }
    .card-step-owner { min-height: 400px; }
    .card-header { padding-top: 30px; padding-bottom: 20px; border-radius: 30px 30px 0 0; }
    .section_financial_steps .card-body { padding: 20px 50px; }
    .section_registration_steps .card-body { padding: 20px 40px; }
    .rounded-input { border-radius: 30px; }
    .max-card-img-width { max-width: 200px; }
    .btn-outline-primary, .btn-primary { border-radius: 40px; padding: 10px 40px; min-width: 85px; }
    .btn-danger { --bs-btn-border-radius: 40px; --bs-btn-padding-y: 10px; --bs-btn-padding-x: 30px; }
    .form-check-input { transform: scale(1.2); margin-top: 0.3rem; }
    .form-check-label { line-height: 1.5rem; margin-left: 0.35rem; margin-bottom: .2rem; }
    .modal-content { border-radius: 30px; padding: 15px; }
    .custom-divider, .custom-divider-lt { margin: 1.5rem 0; }
    .img-max-fluid { max-width: 100px; }
    .card-slider { padding: 20px; }
    .card-margin { margin-right: 25px; }
    .div_rank_wrapper > div { border-radius: 40px; padding: 10px; margin-bottom: 10px; }
    /* later original override */
    .main-step-wrapper { min-height: 0 !important; }
    .step-title-wrapper { padding-top: 30px; padding-bottom: 20px; border-top-left-radius: 30px; border-top-right-radius: 30px; font-size: 1.2rem !important; }
    .bottom-corners-radius { border-bottom-right-radius: 30px; border-bottom-left-radius: 30px; }
    .user-entry-title { font-size: 1.0rem; margin-bottom: 16px; }
    .m-top-custom { margin-top: 40px; }
    .accordion { border-radius: 15px; }
    .accordion-item:first-child { border-radius: 15px 15px 0 0 !important; }
    .accordion .accordion-item:last-child { border-radius: 0 0 15px 15px !important; }
    .SI-accordion-item { border-radius: 15px; }
    .SI-accordion-item .accordion-collapse, .SI-accordion-item .accordion-body { border-radius: 0 0 15px 15px !important; }
}

/* ===== Project Creation Modal (Add Project) ===== */
/* Visually hide the native label but keep it for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Outer wrapper for spacing or layout */
.valuation-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Button-like container */
.valuation-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: .75rem 1.25rem;
    cursor: pointer;
    border-radius: 15px;
    border: 1px solid #99bc44;
    background-color: #f9fff5;
    box-shadow: 0 0 0 2px rgba(210, 237, 144, 0.5);
    transition: all 0.3s ease;
    flex-wrap: nowrap; /* Prevent label+input from wrapping */
    max-width: fit-content; /* Prevent container from stretching too wide */
}

/* Inline label inside */
.valuation-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap; /* Keep the label on a single line */
    font-size: 1.03rem;
}

/* Input appearance */
.valuation-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1.03rem;
    min-width: 125px;
    color: #333;
    cursor: pointer;
    box-sizing: border-box;
    min-width: 0;
}

/* Optional styling after selection */
.valuation-input.used {
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: none;
}

    /* Focus & active feedback (mobile-friendly) */
    .valuation-input:focus,
    .valuation-input:active {
        border-bottom: 2px solid #8f7f4a; /* soft contrast border */
    }

.date-filled {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
}

/* Project type options grid */
.project-options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* MOBILE: stack cards */
@media (max-width: 768px) {
    .project-options-wrapper {
        flex-direction: column;
    }
}

.project-option {
    flex: 1 1 30%;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-option:hover {
    border-color: #99bc44;
    background-color: #f9fff5;
}

.project-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.project-option { position: relative; }
.project-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #99bc44;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-option input[type="radio"]::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #99bc44;
    transform: scale(0);
    transition: transform 0.2s ease;
}
.project-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.project-option.selected {
    border-color: #99bc44;
    background-color: #f9fff5;
    box-shadow: 0 0 0 2px rgba(210, 237, 144, 0.5);
}
.project-option.selected:hover {
    background-color: #f9fff5;
    border-color: #99bc44;
}

.project-header { font-size: 1.3rem; font-weight: 500; color: #222; }
.subtitle { display: block; font-style: italic; font-size: 1rem; color: #555; margin-bottom: 0.5rem; }
.project-details { font-size: 0.8rem !important; color: #333; }

@media (max-width: 1199px) and (min-width: 992px) {
    .project-option { padding: 1.5rem 1.25rem; }
}

/* ===== Historical Years Manager - Dynamic Column Widths ===== */
/* When columns are hidden, remaining visible columns should expand to fill space */
.financial-input-group .row.g-3 {
    display: flex;
    flex-wrap: wrap;
}

.financial-input-group .row.g-3 > [class*="col-"] {
    transition: flex 0.3s ease, opacity 0.3s ease;
}

/* When a column is hidden via historical years manager */
.financial-input-group .row.g-3 > [class*="col-"].d-none {
    flex: 0 0 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    opacity: 0;
}

/* Force visible columns to grow equally only on md+ so XS keeps one-per-line */
@media (min-width: 768px) {
    .financial-input-group .row.g-3 > [class*="col-"]:not(.d-none) {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* ===== End Historical Years Manager Styles ===== */

/* ===== Accordion Tools Row (Expand/Collapse All) ===== */


.info-logo {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: #ffffff;
    color: #2563eb; /* blue-600 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

    .info-logo:hover {
        background: #f9fafb;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0,0,0,.14);
    }

    .info-logo:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px rgba(0,0,0,.10);
    }

    .info-logo:focus-visible {
        outline: 3px solid rgba(37,99,235,.35);
        outline-offset: 2px;
    }

    .info-logo svg {
        width: 14px;
        height: 14px;
    }


