@media only screen and (min-width:768px) and (max-width:1199px) {
    .mahat-Dashboardheader #tx-live-filters {
        width: 100% !important;
        justify-content: end;
        flex: unset !important;
    }

    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex.flex-wrap.align-items-center.gap-2 {
        margin-left: unset;
        width: 100%;
    }

    .mahat-Dashboardheader #tx-live-filters > div {
        flex: 1;
    }

    .mahat-Dashboardheader #tx-live-filters .tx-dashboard-filter {
        max-width: 100% !important;
        flex: 1 !important;
    }

    .mahat-Dashboardheader .tx-toolbar-card-body {
        flex-wrap: wrap;
    }

    .mahat-Dashboardheader .tx-search-container {
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        width: 100%;
    }

    .d-flex.flex-wrap.align-items-center {
        width: 100%;
    }
}

@media only screen and (max-width:768px) {

    .mahat-Dashboardheader #tx-live-filters .tx-btn-search, .mahat-Dashboardheader #tx-live-filters #btnSearchAndSave {
        margin: 0 !important;
        width: auto !important;
        flex:1 !important;
    }

    .tx-search .tx-search-icon {
        min-height: 96% !important;
    }

    .mahat-Dashboardheader #tx-live-filters .tx-btn-search {
        min-height: 42px;
        justify-content:center;
    }
}

@media only screen and (min-width:577px) and (max-width:768px) {
    .tx-open-btn {
        order: 1;
    }
}

/*map*/
.mahat-Dashboardheader .map-container .tx-search-container {
    min-width: 350px;
}

.mahat-Dashboardheader .map-container .tx-toolbar-card-body {
    gap: 0;
}

.mahat-Dashboardheader .map-container .tx-toolbar-card-body > div {
    width: 100%;
    justify-content: center;
}

.map-container .tx-search .tx-search-icon:hover {
    transform: unset !important;
}

.map-container .tx-search .tx-search-icon {
    min-height: 100%;
}

/*file upload btn*/
.organizationlogo_craftmyapp_container .drop-zone {
    min-width: 100% !important;
    max-height: 36px;
}

/*.list_card_section .form-group label {
    height: 100%;
}*/
.organizationlogo_craftmyapp_container .drop-zone {
    min-height: 42px;
    margin-top: 4px;
}
.organizationlogo_craftmyapp_container .input-file {
    gap: 0 !important;
}
#attachmentDisp span.showFiles {
    right: 3px;
    top: 8px;
}


/*address*/

@media only screen and (min-width:577px) and (max-width:1022px) {
    .col-sm-12.col-xs-12.mt-3.Address_craftmyapp_container {
        width: 100% !important;
    }

    .list_card_tablet .row {
        margin-inline: 0;
    }

    .col-sm-4.col-xs-12.p-2.organizationlogo_craftmyapp_container.list_card_section.list_card_tablet {
        width: 100%;
    }
}

/* .input-file {
    border: unset !important;
} */

.drop-zone {
    padding-block: 0 !important;
}

@media only screen and (max-width:577px) {
    .card.card-block.contCard.p-0.User_Registration,.tx-stepper-container, .card-body.card-container-Padding-NoShadow, .card.card-blue.card-section.cma_section_band.list_card_section.list_card_tablet, .card.card-block.contCard.p-0.User_Registration, .col-sm-12.col-xs-12.mt-3.Address_craftmyapp_container {
        padding-inline: 0 !important;
    }
    .row {
        margin: 0;
    }
}

/*request form*/
.intent-col-right {
    flex: 1 1 55%;
    min-width: 0;
    overflow: hidden;
}

.detail-mgr-activity-row .form-control {
    font-size: 14px;
    height: 38px;
}

.mgr-submit-btn {
    padding-block: 6px !important;
}

div#detailMgrActivitySlot + div {
    margin-top: 14px !important;
}

.mgr-act-col-comments {
    padding: 0;
}

.detail-mgr-activity-row {
    align-items: center;
}

.mgr-card-body {
    padding-bottom: 14px;
}

.mgr-act-col-del {
    flex: 0 0 9%;
}


@media only screen and (max-width:577px) {
    .dataTables_buttons.actions {
        width: 100%;
    }

    .input-group.prefix {
        margin: 0 !important;
        min-width: 100%;
    }

    .card-lst .col-sm-2 {
        width: 100%;
        padding-inline: 0;
    }
}

/*grid*/
@media only screen and (max-width:450px) {
    .automaton_card, #ProgramDataContainer.automaton_card, div#CityTaxDetailsContainer {
        grid-template-columns: 1fr !important;
        display: flex !important;
    }
    #CityTaxDetailsContainer .tools.cma_card_action_tools {
        display: flex !important;
        gap: 0 !important;
        position: unset !important;
    }

        #CityTaxDetailsContainer .tools.cma_card_action_tools a {
            padding: 0 !important;
        }

.automaton_card .tx-card-wrap {
     max-width: 100% !important;
     padding-inline: 0;
}

    .card-body.tab-content.pt-0 {
        padding-inline: 0;
    }
}


div#CustomerIntentPropertyContainer.automaton_card {
    display: unset;
    grid-template-columns: unset;
    gap: unset;
}
div#CustomerIntentFundContainer.automaton_card {
    display: unset;
    grid-template-columns: unset;
    gap: unset;
}

/*canvas*/
/*#CustomerIntentPropertyContainer canvas {
    height: 400px !important;
}
*/
#CustomerIntentPropertyContainer > [class*="col-"] > div {
    min-height: 400px;
}
@media only screen and (max-width:500px) {
    .select2-container--open .select2-dropdown--below {
        width: clamp(130px,5vw,160px) !important;
    }
}


.tx-specs > div {
    display: flex;
    flex-direction: column-reverse;
}

.tx-specs .tx-spec {
    font-weight: normal;
}

.tx-eligibility {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 6px;
    row-gap: 5px;
}

.tx-eligibility .tx-program-name {
    min-width: 0;
}

.tx-rural-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
}

.tx-rural-badge--rural {
    color: #166534;
    background-color: #dcfce7;
    border-color: #86efac;
}

.tx-rural-badge--non-rural {
    color: #1e40af;
    background-color: #dbeafe;
    border-color: #93c5fd;
}

.tx-specs small {
    font-weight: bold;
}
.dataTable thead th.dt-center:last-child {
    text-align: center !important;
}
span#pager_lbl_pagecount {
    margin-right: 7px;
}
.mgr-layout-wrapper .mgr-content-box {
    justify-content: space-between;
}
.state-content-description {
    overflow: auto !important;
}
td.dt-center:last-child {
    text-align: center !important;
}

.detail-info-card-body .detail-field-row .detail-field .detail-field-label {
    font-weight: bold;
    font-size: 14px;
}

.detail-info-card-body .detail-field-row .detail-field .detail-field-value {
    font-weight: normal;
    overflow: auto;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}


.detail-info-card {
    overflow: auto;
}

@media only screen and (min-width:320px) and (max-width:991px) {
    .register-left{display:none;}
    .Add_Fund_Profile .afp-layout img {
        display: none;
    }
}
div#searchHistoryCardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 10px;
}

    div#searchHistoryCardGrid > div {
        width: 100%;
        max-width: 350px !important;
    }

    div#searchHistoryCardGrid::before {
        display: none;
    }
.mgr-layout-wrapper .mgr-value {
    font-weight: normal !important;
    font-size:15px;
}

@media only screen and (min-width: 320px) and (max-width: 952px) {
    div#searchHistoryCardGrid > div {
        margin: 0 auto;
    }
}
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .mahat-Dashboardheader #tx-live-filters.single {
     
        justify-content: flex-end;
        grid-template-columns: unset !important;
    }
}


.back-button {
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 11px;
}


/*map-grid*/
@media only screen and (max-width: 577px) {
    body:has(#searchHistoryCardGrid) .card-lst .col-sm-2 {
        padding: 0 12px 0 0;
    }

    div#searchHistoryCardGrid {
        grid-template-columns: auto;
        padding: 0 !important;
    }
    div#searchHistoryCardGrid > div{
        padding-inline:0;
    }
    
}
@media only screen and (max-width: 768px) {
    body:has(#searchHistoryCardGrid) .card.tx-toolbar-card {
        overflow-x: hidden;
    }
}

/*Mobile Filter responsive*/
@media only screen and (max-width: 768px) {
    .tx-mobile-filter-toggle {
        position: absolute;
        top: 18px;
        background: #e2e8f0 !important;
        box-shadow: unset !important;
        right: 10px;
        width: 41px;
        height: 41px;
        padding: 13px !important;
        border: 1px solid #e2e8f0 !important;
    }

        .tx-mobile-filter-toggle i {
            color: #313534;
            font-size: 19px !important;
        }

/*    .tx-toolbar-card-body > .d-flex {
        width: calc(100% - 40px) !important;
    }*/

    body:has(.tx-mobile-filter-toggle) #tx-live-filters.tx-mobile-filters-open {
        top: 60px !important;
        padding-top: 70px !important;
    }
}


@media only screen and (max-width: 576px) {
    .tx-mobile-filter-toggle {
        width: 40px !important;
        height: 40px !important;
    }
}


/*Mobile Filter responsive*/

    /* ═══════════════════════════════════════════════════════════════
   Mobile Filter Toggle — Dashboard Toolbar
   ═══════════════════════════════════════════════════════════════ */

    /* Toggle Button — hidden on desktop */
    .tx-mobile-filter-toggle {
        display: none;
    }

    /* Backdrop — hidden by default */
    .tx-mobile-filter-backdrop {
        display: none;
    }

    @media only screen and (max-width: 768px) {
        .fa-search:before {
            font-size: 14px;
        }

        .tx-search input {
            font-size: 12px !important;
        }

        .tx-mobile-filter-toggle i {
            font-size: 14px !important;
        }
        /* Show the mobile filter toggle button */
        .tx-mobile-filter-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, #1e3a5f, #2563eb);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 8px 18px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
            transition: transform 0.15s, box-shadow 0.15s;
            order: -1;
            white-space: nowrap;
        }

            .tx-mobile-filter-toggle:hover,
            .tx-mobile-filter-toggle:focus {
                transform: translateY(-1px);
                box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
                color: #fff;
            }

            .tx-mobile-filter-toggle i {
                font-size: 15px;
            }

        /* Hide the live filters by default on mobile */
        #tx-live-filters {
            display: none !important;
        }

            /* When open: show as a fixed slide-down panel */
            #tx-live-filters.tx-mobile-filters-open {
                display: flex !important;
                flex-direction: column;
                gap: 10px;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 1060;
                background: #fff;
                padding: 20px 16px !important;
                border-radius: 0 0 16px 16px;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
                max-height: 80vh;
                overflow-y: auto;
                animation: txSlideDown 0.3s ease-out;
            }

            /* Close button inside the mobile filter drawer */
            .tx-mobile-filter-close {
                position: absolute;
                top: 10px;
                right: 10px;
                width: 44px;
                height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                font-size: 26px;
                color: #475569;
                cursor: pointer;
                transition: background 0.15s, color 0.15s;
                z-index: 10;
                line-height: 1;
                padding: 0;
            }

            .tx-mobile-filter-close:hover,
            .tx-mobile-filter-close:focus {
                background: #e2e8f0;
                color: #1e293b;
            }

                /* Filter items stack vertically */
                #tx-live-filters.tx-mobile-filters-open .tx-dashboard-filter {
                    width: 100% !important;
                    max-width: 100% !important;
                    flex: unset !important;
                }

                    #tx-live-filters.tx-mobile-filters-open .tx-dashboard-filter select,
                    #tx-live-filters.tx-mobile-filters-open .tx-dashboard-filter .select2-container {
                        width: 100% !important;
                    }

                #tx-live-filters.tx-mobile-filters-open .tx-dashboard-filter-input {
                    width: 100% !important;
                }

        /* Hide the desktop 'Range' toggle button on mobile since the slider is always visible in the drawer */
        .tx-desktop-range-btn {
            display: none !important;
        }

        /* Force the price modal to behave like a normal inline block inside the drawer */
        #tx-live-filters.tx-mobile-filters-open #txPriceModal {
            position: static !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: none !important;
            display: block !important;
            z-index: 1 !important;
            padding: 0 !important;
            width: 100% !important;
        }

        #tx-live-filters.tx-mobile-filters-open .tx-price-card {
            width: 100% !important;
            margin-top: 10px !important;
            padding: 15px 10px !important;
            box-shadow: none !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 12px !important;
        }

        /* We don't need the price overlay on mobile since it's inline */
        #txOverlay {
            display: none !important;
        }

        #tx-live-filters.tx-mobile-filters-open .tx-price-title {
            font-size: 18px !important;
            margin-bottom: 15px !important;
        }

        /* Action buttons row at the bottom of the panel */
        #tx-live-filters.tx-mobile-filters-open .tx-btn-search {
            flex: 1;
            min-height: 42px;
            justify-content: center;
        }

        /* Backdrop overlay */
        .tx-mobile-filter-backdrop.active {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 15, 30, 0.5);
            z-index: 1055;
            backdrop-filter: blur(2px);
            animation: fadeIn 0.2s ease-out;
        }

        /* Slide-down animation */
        @keyframes txSlideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }
    }

@media only screen and (max-width: 768px) {
    .mahat-Dashboardheader #tx-live-filters{
        flex-direction:row !important;
    }
    .tx-toolbar-card-body > .d-flex:has(.tx-mobile-filter-toggle) {
        width: 100% !important;
    }

    .tx-toolbar-card-body > .d-flex .tx-mobile-filter-toggle, .tx-toolbar-card-body > .d-flex .tx-btn-search {
        margin-left: auto !important;
        font-size:13px !important;
    }
    .mahat-Dashboardheader .tx-toolbar-card-body > .tx-toolbar-actions {
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    .mahat-Dashboardheader .tx-toolbar-card-body > .tx-toolbar-actions .tx-btn-add-cloned {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }
    .mahat-Dashboardheader .tx-toolbar-card-body > .tx-toolbar-actions .tx-mobile-filter-toggle {
        margin-left: 0 !important;
        flex-shrink: 0 !important;
    }
    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex:has(#txMobileFilterToggle) {
        display: flex !important;
        width: 100% !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin-left: 0 !important;
    }
    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex:has(#txMobileFilterToggle) > #txMobileFilterToggle {
        order: 1 !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        margin-left: 0 !important;
        flex: 0 0 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex:has(#txMobileFilterToggle) > .tx-btn-add-cloned {
        order: 2 !important;
        margin-left: 0 !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
    .card tx-toolbar-card, .card.tx-toolbar-card {
        min-height: 85px;
    }
/*grid*/
    .mgr-layout-wrapper .col-sm-4 {
        width: 100%;
    }

    .mgr-layout-wrapper {
        padding-inline: 0;
    }

        .mgr-layout-wrapper .mgr-card {
            overflow: auto;
        }

        .mgr-layout-wrapper .mgr-value {
            width: auto;
        }

    .mgr-card-body > div:first-child {
        flex-direction: column;
        align-items: start !important;
    }
    #tx-benefits-bar h5 {
        white-space: normal !important;
    }

    #searchHistoryDetail .col-sm-12 {
        width: 100%;
        padding-inline:0 !important;    }

        #searchHistoryDetail .col-sm-12 .card {
            padding: 0 !important;
        }

    #searchHistoryDetail .col-lg-4 {
        padding-inline: 0;
        padding-bottom:20px;
    }
/*    */
    .investor-profile-flex {
        overflow: auto;
    }

    .mgr-pill {
        padding: 5px 10px !important;
    }
    .mgr-pills-container{
        gap:5px !important;
    }

/*    .mgr-activity-header {
        overflow: auto;
        width: 100%;
    }*/
    .mgr-card-body {
        overflow-x: auto;
    }
    .detail-mgr-activity-row > div {
        min-width: 100px;
    }

        .mgr-activity-header > div {
            min-width: 100px;
            white-space: nowrap;
        }

    .mgr-card .mgr-submit-btn {
        padding: 6px 18px !important;
    }

    #searchHistoryDetail .col-sm-12 .card {
        margin-top: 0 !important;
    }

    #searchHistoryDetail .col-12.mt-3.p-0 {
        margin: 0;
    }
    div#tx-benefits-bar span {
        white-space: normal !important;
        font-size:14px !important;
    }

/**/
    div#programDataCard .benefit-card div:last-child {
        flex-direction: column;
    }

        div#programDataCard .benefit-card div:last-child div:first-child {
            width: 100% !important;
        }

    .program-header > div:last-child {
        min-width: 40px;
    }

    div#programDataCard .benefit-card div:last-child div:first-child > span + div {
        height: auto !important;
    }
    .mahat-Dashboardheader .map-container .tx-search-container {
        min-width: 100%;
    }
    a.btn.btn-icon-toggle.menubar-toggle {
        padding: 0 !important;
    }
    .intent-col-right, .intent-col-left, .detail-info-card {
        min-width: 100% !important;
    }

    .intent-hero-wrapper {
        padding: 12px;
    }
/*need to add class*/
    .tx-toolbar-card-body > .d-flex {
        width: 100% !important;
    }

    .tx-toolbar-card-body > .d-flex {
        padding-inline: 0 !important;
    }

    .mahat-Dashboardheader .tx-toolbar-card-body {
        align-items: start !important;
        flex-direction: column !important;
        padding-inline:0!important;
    }
    .mahat-Dashboardheader .map-container .tx-search-container {
        min-width: 100%;
    }
    #intentContextSection #investorProfileContainer .intent-card {
        min-height: auto;
    }
    
    
}

.tx-desc p span, .tx-desc span {
    font-size: 16px !important;
}
.mahat-Dashboardheader .tx-toolbar-card-body > .d-flex.flex-wrap.align-items-center.gap-2 {
    gap: 8px;
    align-items: start !important;
}

@media only screen and (max-width: 768px) {
    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex.flex-wrap.align-items-center.gap-2 {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        gap: 8px !important;
        margin-left: 0 !important;
    }

    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex.flex-wrap.align-items-center.gap-2 > .tx-mobile-filter-toggle {
        order: 1 !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: 0 0 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex.flex-wrap.align-items-center.gap-2 > .tx-btn-add-cloned {
        order: 2 !important;
        width: auto !important;
        margin: 0 !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex.flex-wrap.align-items-center.gap-2 > #tx-live-filters:not(.tx-mobile-filters-open) {
        display: none !important;
    }
}
    
/* ═══════════════════════════════════════════════════════════════
   Global Alert Close Button Alignment
   ═══════════════════════════════════════════════════════════════ */
.alert .close, .alert-dismissible .close {
    float: right !important;
}

/*03/04*/
@media only screen and (min-width:1224px) {
    .tx-price-card {
        margin-top: 29px;
    }
}

@media only screen and (max-width:1223px) {
    .tx-price-card {
        margin-top: 85px;
    }
}

@media only screen and (min-width:768px) {
    .tx-input-wrap {
        width: 105px;
    }
    div#stateIncentiveCard {
        padding-bottom: 20px;
    }
}

/*view-benifits*/
.investor-contact-label, .investor-name-label {
    color: #313534 !important;
    font-size: 15px !important;
}

.intent-card-header {
    color: #000 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
}

 .mgr-card-header, .state-colorado-title {
    color: #000 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

div#investorProfileContainer .investor-profile-flex {
    padding-inline: 0;
}

.mgr-section-label, .mgr-layout-wrapper .mgr-label {
    font-size: 15px !important;
    color: #313534 !important;
}

.mgr-activity-header {
    color: #313534 !important;
    font-size: 14px !important;
}
@media only screen and (max-width:768px) {
    .program-title, .mgr-section-label, .mgr-card-header, .intent-card-header {
        font-size: 14px !important;
    }

    .intent-card-header {
        padding-inline: 0;
    }

    thead#mapsearchresultsContainerHead th {
        font-size: 13px !important;
    }

    .investor-contact-label, .mgr-layout-wrapper .mgr-label {
        font-size: 13px !important;
    }
    .mgr-layout-wrapper .mgr-content-box{
        padding:10px !important;
    }
}

/*property page*/
.Add_Property_Profile .col-lg-2.col-md-6.col-sm-12 {
    max-width: 320px;
    width: 100%;
    padding-inline: 0;
}

.Add_Property_Profile .col-lg-10.col-md-6.col-sm-12 {
    flex: 1;
    width: 100%;
    padding-inline: 0;
}

main.afp-content {
    display: none;
}

.Add_Property_Profile .card {
    margin: 0;
}
.propertydetail_craftmyapp_container {
    order: 5;
}

.propertyimage_craftmyapp_container.list_card_section.list_card_tablet {
    order: 4;
    min-width: 300px;
}
.PropertyLocation_craftmyapp_container {
    width: 100% !important;
}

    .PropertyLocation_craftmyapp_container .card-head {
        border-color: #d8d6d4;
    }
@media only screen and (max-width:1024px) {
    .Add_Property_Profile {
        flex-direction: column;
        margin: 0;
    }

        .Add_Property_Profile .col-lg-2.col-md-6.col-sm-12 {
            max-width: 100%;
        }

    .propertyimage_craftmyapp_container.list_card_section.list_card_tablet {
        min-width: 300px;
    }
    .Add_Property_Profile  .card-body {
        padding-inline: 10px !important
    }
}

@media only screen and (max-width:576px) {
    .Add_Property_Profile .card-block, .Add_Property_Profile .card-block .Add_Property_Profile .row.card-body, .Add_Property_Profile .col-sm-12.col-xs-12, .Add_Property_Profile .col-sm-3 {
        padding-inline: 0 !important
    }
    .Add_Property_Profile div#sec-address {
        margin-top: 20px;
    }

    .propertyimage_craftmyapp_container.list_card_section.list_card_tablet {
        order: 4;
        min-width: 100%;
    }
}
@media only screen and (max-width:768px) {
    .mahat-Dashboardheader .tx-search-container {
        min-width: calc(100% - 50px) !important;
        width: calc(100% - 50px) !important;
        flex: 0 0 38px !important;
    }
}
/*Interaction*/
.detail-title > span:nth-child(2) {
    font-size: clamp(10px,2vw,13px) !important;
    line-height: normal;
    border-radius: 2px !important;
    color: #666 !important;
    font-weight:normal !important;
}

.detail-title > span:nth-child(1) span {
    font-size: clamp(10px,2vw,13px) !important;
    padding: 4px 10px !important;
    line-height: normal;
    border-radius: 2px !important;
    background: rgba(0,0,0,0.03) !important;
}

.detail-title > span:nth-child(1) {
    display: flex;
    align-items: center;
    font-size: clamp(15px,2vw,22px);
}

.detail-header-card {
    padding: 12px !important;
}

.detail-subtitle > span:last-child {
    font-size: clamp(10px,2vw,14px);
}

.detail-subtitle > span:first-child {
    font-size: clamp(12px, 2vw, 14px);
}

.detail-header-card .detail-price-value {
    font-size: clamp(16px,2vw,23px) !important;
}

@media only screen and (max-width:768px) {
    .detail-header-card {
        gap: 10px !important;
    }

        .detail-header-card > div {
            gap: 10px !important;
        }

        .detail-header-card > div {
            width: 100%;
        }

    .detail-header-card {
        flex-direction: column;
    }
        .detail-header-card > div .tx-btn-search-save, .btn-outline-primary, #btnFilter {
            align-self: center !important;
        }

        .detail-header-card > div {
            align-items: center !important;
        }

    .detail-price-label {
        font-size: clamp(12px,2vw,14px) !important;
        color: #1f2937 !important;
        margin-bottom: 5px !important;
        font-weight: 800 !important;
    }
}
/*city-tax-details*/
.mgr-card-body .row {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.mgr-card-body .row:after, .mgr-card-body .row:before {
        display: none;
    }
.mgr-card-body .row .col-6 {
        margin: 0 !important;
    }

.mgr-layout-wrapper .mgr-value {
    font-size: 14px;
}

.mgr-content-box {
    font-size: 14px;
}

.mgr-card-body .row {
    row-gap: 14px;
}
@media only screen and (max-width:1024px){
.mgr-card-body .row {
    gap:14px;
}

    .mgr-layout-wrapper .col-sm-8, .mgr-layout-wrapper .col-sm-4 {
        width: 100% !important;
    }
}
/*signup page*/
.cp-body .cp-field:nth-child(1) span.help-block {
    bottom: -34px;
}

span.help-block {
    font-size: clamp(11px,2vw,12px);
}


@media only screen and (max-width:767px) {
    .cp-footer {
        align-items: center;
        padding-inline: 10px !important;
    }
    .cp-body {
        padding-inline: 10px !important;
    }
    .tx-mobile-filter-toggle {
        padding: 5px !important;
        justify-content: center;
        align-items: center;
        border-radius:2px !important;
    }

    button#btnSubmit, button#btnSubmitReview, .cp-btn-cancel {
        flex: 1;
        font-size: clamp(12px,2vw,15px) !important;
        white-space: nowrap;
        min-height: 40px;
    }
/*    .tx-toolbar-card-body > .d-flex .tx-btn-search {
        margin-right: 50px !important;
    }*/
}
/*header*/
.header-nav > li:first-child {
    margin-left: auto !important;
}

/*span.profile-info {
    width: auto;
}*/

.header-nav-profile .dropdown .profile-info {
    padding: 0;
}
.intent-col-left .mgr-submit-btn {
    padding-block: 7px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}
.header-nav-profile .dropdown .profile-info {
    padding-left: 10px;
}
/* Responsive Menu Suffix */
@media only screen and (max-width: 1024px) {
    .investment-suffix {
        display: none !important;
    }
}
/*27-04-26*/
@media only screen and (min-width:768px) {
    .tx-dashboard-filter .SumoSelect > .CaptionCont > span.placeholder {
        font-size: 14px !important;
        line-height: normal !important;
    }

    .mahat-Dashboardheader #tx-live-filters .tx-btn-search {
        padding-block: 0;
        min-height: 34px;
        margin: 0 !important;
        border-radius: 6px !important;
    }

    #tx-live-filters .tx-dashboard-filter .SumoSelect > .CaptionCont {
        line-height: normal !important;
        padding: 7px 6px !important;
        border: 1px solid #dbe3ef !important;
        border-radius: 6px !important;
        min-height: 34px;
    }

    .mahat-Dashboardheader #tx-live-filters .tx-filter-select {
        height: auto;
        line-height: normal;
        font-size: 14px;
        border: 1px solid #dbe3ef !important;
    }

    a.btn.tx-btn-search.tx-btn-add-cloned {
        height: 34px;
    }
    .SumoSelect > .CaptionCont > label::after {
        font-size: 18px;
        font-weight: normal;
        top: 7px;
    }
    .tx-search input {
        height: 34px !important;
    }

    .tx-search .tx-search-icon {
        height: 34px !important;
    }
    .detail-header-card div:first-child {
        font-size: 15px;
    }
}
/*28-04-26*/
 .modal-content {
    width: 100% !important;
}

 .multi-properties-results-modal .modal-content {
    height: min(900px, calc(88vh - 64px)) !important;
}

 .modal .modal-dialog {
    top: 10vh !important;
}
button.btn.btn-outline-secondary.tx-btn-search.tx-open-btn.tx-desktop-range-btn {
    background-color: #f8f9fa;
}

.mahat-Dashboardheader #tx-live-filters .tx-btn-search:hover {
    color: #000;
}
.SumoSelect > .CaptionCont {
    cursor: pointer;
}
.tx-toolbar, .tx-toolbar > div, .card {
    box-shadow: unset !important;
}
.detail-field-value p img {
    display: flex;
    flex-direction: column;
    border: 1px solid #d8dddd;
    border-radius: 6px;
    padding: 10px;
}

.detail-header-card a img {
    border: 1px solid #d8dddd;
    padding: 2px;
}
.page-header-menu-section .header-nav > li > a {
    font-size: 14px !important;
}

@media only screen and (max-width: 1024px) {
    #header .page-header-box > a.logo-item.navigatestartupurl {
        display: none !important;
    }
}

    .page-header-menu-section .header-nav > li:focus-visible,
    .page-header-menu-section .header-nav > li:focus
    .page-header-menu-section .header-nav > li > a:focus-visible,
    .page-header-menu-section .header-nav > li > a:focus {
        outline: none;
    }
.header-nav-profile .dropdown .profile-info, .header-nav-profile .dropdown a {
    font-size: 14px !important;
}

@media only screen and (max-width: 1024px) {
    #menubar,
    #menubar .nano,
    #menubar .nano-content,
    #menubar .menubar-scroll-panel,
    #menubar .mainSideMenu {
        background: var(--sidebar, #14213D) !important;
    }

    #menubar .mainSideMenu > li:not(:first-child) {
        background: transparent !important;
    }

    #menubar .mainSideMenu > li:first-child,
    #menubar .mainSideMenu > li:first-child > a.logo-item {
        background: #fff !important;
    }

    #menubar .mainSideMenu > li > a:not(.logo-item) {
        background: transparent !important;
        color: #fff !important;
        position: relative;
    }

    #menubar .mainSideMenu > li > a:not(.logo-item)::before {
        display: none !important;
    }

    #menubar .mainSideMenu > li > a:not(.logo-item) > i,
    #menubar .mainSideMenu > li > a:not(.logo-item) > .title {
        color: #fff !important;
        position: relative;
        z-index: 1;
    }

    #menubar .mainSideMenu > li > a.active:not(.logo-item),
    #menubar .mainSideMenu > li.active > a:not(.logo-item),
    #menubar .mainSideMenu > li > a.cma_active:not(.logo-item) {
        background: rgba(255, 255, 255, 0.13) !important;
        box-shadow: inset 4px 0 0 #C9A227;
    }

    #menubar .mainSideMenu > li > a.active:not(.logo-item) > i,
    #menubar .mainSideMenu > li.active > a:not(.logo-item) > i,
    #menubar .mainSideMenu > li > a.cma_active:not(.logo-item) > i {
        background: transparent !important;
        color: #C9A227 !important;
        padding: 0 !important;
    }

    #menubar .mainSideMenu > li > a.active:not(.logo-item) > .title,
    #menubar .mainSideMenu > li.active > a:not(.logo-item) > .title,
    #menubar .mainSideMenu > li > a.cma_active:not(.logo-item) > .title {
        color: #fff !important;
        padding-left: 0 !important;
    }
}


.fassetdescription_craftmyapp_container {
    grid-column: 1 / -1;
}

.assetdetails_craftmyapp_container .col-sm-3 {
    width: 100% !important;
}

.assetdetails_craftmyapp_container .w-100 {
    grid-column: 1 / -1;
}



@media (max-width:768px) {

    .card-head {
        flex-direction: column !important;
        align-items: start !IMPORTANT;
        gap: 10px;
    }

    .form-elements-group-container.fluent-card-body.commonContainer,
    .row.card-body, .assetdetails_craftmyapp_container,
    .FundOverview_craftmyapp_container, .CapitalStructureandInvestmentTerms_craftmyapp_container {
        padding: 0 !important;
    }

    #base:has(#map) .mahat-Dashboardheader .tx-search-container {
        align-self: anchor-center;
    }

    .SumoSelect > .CaptionCont > span {
        font-size: 13px;
    }
}
#tx-live-filters.tx-mobile-filters-open #txPriceModal .tx-input-wrap {
    width: auto !important;
}
@media only screen and (min-width:1000px) and (max-width:1167px) {
    span.profile-info {
        width: auto !important;
    }

    a.investor-nav-link.dropdowns.d-flex.align-items-center {
        padding-inline: 8px !important;
    }
}

.mahat-Dashboardheader .tx-toolbar .card {
    margin: 0 !important;
}
.User_Registration .tx-stepper {
    align-items: start;
}
@media (max-width:768px) {
    .User_Registration .tx-step-item:not(:last-child)::after {
        display: none;
    }
    .page-header-box .header-nav-profile .dropdown .profile-info {
        width: auto !important;
    }

    .page-header-box .header-nav-profile .dropdown > a {
        padding-right: 0 !important;
    }

    .User_Registration .tx-stepper {
        flex-direction: column;
        gap: 20px !important;
        align-items:center ;
    }
}
.mahat-Dashboardheader #tx-live-filters .tx-dashboard-filter .form-control {
    max-height: 37px;
    font-size: 14px;
}

.tx-dashboard-filter .select2-container .select2-selection {
    font-size: 14px !important;
}

.SumoSelect > .CaptionCont > span {
    font-size: 14px !important;
}
#tx-live-filters .tx-dashboard-filter .SumoSelect > .CaptionCont{
    min-height:37px !important;
}
#tblSearchHistory_wrapper #searchHistoryCardGrid > div {
    max-width: 100% !important;
}

@media (max-width: 575.98px) {
    .Add_Fund_Profile .dependentContainerBorder {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        margin: 0 !important;
    }
    .commonContainer > div:first-child .col-sm-2 {
        width: 100% !important;
        min-width: 100px !important;
    }
    .subscription-plan-card .subscription-plan-description {
        max-height: 350px;
        overflow-y: auto;
        scrollbar-gutter: stable;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}
.Add_Fund_Profile .dependentContainerBorder:before, .CapitalStructureandInvestmentTerms_craftmyapp_container .row:before {
    display: none;
}

.CapitalStructureandInvestmentTerms_craftmyapp_container .col-sm-3 {
    width: 100% !important;
    padding: 0 !important;
}

.CapitalStructureandInvestmentTerms_craftmyapp_container .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-inline: 0 !important;
}

.card.card-blue .card-head {
    padding-inline: clamp(5px,2vw,20px) !important;
}
@media (max-width: 575.98px) {
    .registertation_page .btn-cointainer {
        position: unset;
    }

    .registertation_page .tx-stepper-container {
        height: auto !important;
    }
}
/*02/06/26*/

.investor-contact-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.investor-contact-item {
    max-width: none !important;
}

.investor-contact-label, .investor-name-label {
    font-size: clamp(12px,2vw,13px) !important;
}

.investor-contact-value {
    font-size: clamp(10px,2vw,12px) !important;
}

@media (max-width:767px) {
    .investor-profile-flex {
        flex-direction: column;
        align-items: start !important;
        margin: 0 !important;
    }

    .investor-contact-list {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
        width: 100%;
        margin: 0 !important;
    }

    .investor-profile-flex:has(.investor-avatar) > div:nth-child(2), .detail-header-card, .intent-row {
        margin: 0 !important;
    }
}
.investor-profile-flex:has(.investor-avatar) > div:nth-child(2){
    min-width:160px;
}
.mgr-pill {
    padding: 4px 14px !important;
    font-size: clamp(10px,2vw,12px);
}

.detail-mgr-activity-row .form-control {
    font-size: clamp(10px,1.5vw,12px) !important;
}

.intent-col-left .mgr-add-activity-btn {
    padding: clamp(3px,1.5vw,7px) clamp(10px,1.5vw,16px) !important;
}

.mgr-section-label {
    font-size: clamp(12px,2vw,15px) !important;
}

.mgr-activity-header > div {
    font-size: clamp(12px,1.5vw,14px);
}
.detail-hero-banner{
    min-height:472px !important;
}
#searchHistoryCardGrid div {
    margin: 0 !important;
}
#tblSearchHistory_wrapper #searchHistoryCardGrid > div {
    padding: 0;
}
/* The grid's -15px row margins overflowed the wrapper and showed a 2px scrollbar line */
#tblSearchHistory_wrapper #searchHistoryCardGrid {
    margin-left: 0;
    margin-right: 0;
    width: auto;
}
.intent-col-left {
    flex: 1 1 55% !important;
}

.intent-col-right {
    flex: 1 1 33% !important;
}

.detail-hero-banner {
    min-height: 100% !IMPORTANT;
    background: transparent;
}

    .detail-hero-banner img {
        object-fit: contain;
    }
.Add_Fund_Profile .dependentContainerBorder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(166px, 1fr));
}
/*@media (max-width:767px) {
    .mahat-Dashboardheader:has(button#txMobileFilterToggle) .tx-toolbar-card-body > .d-flex .tx-btn-search {
    margin: -4px 60px 0px 0;
}
}*/
.totaltargetedequityraise_craftmyapp_container .form-group.has-error .help-block {
    position: absolute !important;
    top: 100% !important;
}
.percentage_craftmyapp_container .form-group.has-error .help-block {
    position: absolute !important;
    top: 100% !important;
}

.Add_Fund_Profile .cma_cancel_button, .Add_Fund_Profile button#btnSubmit.cma_primary_button {
    padding: 5px 20px !important;
    font-size: clamp(14px,1.5vw,14px) !important;
}
.investor-profile-flex, .intent-card-header, .detail-header-card, .intent-row {
    margin: 0 !important;
}

.detail-info-card-body {
    padding-top: 0;
}

.intent-card {
    padding-block: 10px;
}
.mahat-Dashboardheader #tx-live-filters .tx-btn-search, .mahat-Dashboardheader #tx-live-filters #btnSearchAndSave {
    line-height: normal;
    display: flex;
    align-items: center;
}
.investor-name-value {
    font-size: clamp(10px, 2vw, 13px) !important;
}
.detail-hero-banner img {
   /* object-fit: contain !important;
    height:auto !important;
    width:auto !important;*/
}
.detail-hero-banner {
    background: transparent !important;
}

/* Global form action button sizing */
button.btn.cma_cancel_button,
a.btn.cma_cancel_button,
button.btn.cma_primary_button.cma_save_button,
button#btnSubmit.btn.cma_primary_button,
button#btnSubmitReview.btn.cma_primary_button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

button.btn.cma_cancel_button,
a.btn.cma_cancel_button {
    min-width: 76px !important;
}

button.btn.cma_primary_button.cma_save_button,
button#btnSubmit.btn.cma_primary_button,
button#btnSubmitReview.btn.cma_primary_button {
    width: auto !important;
    max-width: 100% !important;
    min-width: 132px !important;
    font-weight: 600 !important;
}

@media only screen and (max-width: 503px) {
    button.btn.cma_primary_button.cma_save_button,
    button#btnSubmit.btn.cma_primary_button,
    button#btnSubmitReview.btn.cma_primary_button {
        width: auto !important;
        max-width: calc(100% - 92px) !important;
    }
}

/* OZ Intel Pro colours: navy #14213D, gold #C9A227.
   The theme sets colours with !important in themestyles.css / topmenustyles.css,
   so these use the same flag plus an html body prefix to outrank them. */
:root {
    --sidebar: #14213D;
    --sidebarcolor: #F3F5F9;
    --sidebaractivecolor: #14213D;
    --btnprimary: #14213D;
    --btnprimaryhover: #1F3157;
    --btnsecoundarycolor: #14213D;
    --btnsecoundarycolorhover: #14213D;
    --Addbtnbackground: #C9A227;
}

/* Header + top menu (desktop): navy bar like ozintelpro.com, white items, gold current page */
html body #header, html body #header .page-header-box { background: #14213D !important; border-bottom: 0 !important; box-shadow: none !important; }
html body .header-nav.mainTopMenu > li.liGroupTop > a { color: #F3F5F9 !important; font-weight: 600; background: transparent !important; }
html body .header-nav.mainTopMenu > li.liGroupTop > a svg { color: #F3F5F9 !important; stroke: #F3F5F9 !important; }
html body .header-nav.mainTopMenu > li.liGroupTop > a:hover { color: #E3C45C !important; }
html body .header-nav.mainTopMenu > li.liGroupTop.active > a,
html body .header-nav.mainTopMenu > li.liGroupTop > a.active,
html body .header-nav.mainTopMenu > li.liGroupTop.active > a svg { color: #E3C45C !important; stroke: #E3C45C !important; font-weight: 700 !important; }
html body .header-nav.mainTopMenu .dropdown-menu a { color: #14213D !important; }
/* Investor menu: one line per item, underline sits on the header's bottom edge in gold */
html body .header-nav.mainTopMenu > li.investor-nav-item { margin: 0 4px !important; }
html body .header-nav.mainTopMenu > li.investor-nav-item > a.investor-nav-link {
    height: 64px; padding: 0 12px !important; white-space: nowrap; font-size: 15px !important;
    background: transparent !important; border-bottom: 3px solid transparent !important; border-top: 3px solid transparent !important; }
html body .header-nav.mainTopMenu > li.investor-nav-item.active > a.investor-nav-link { border-bottom-color: #E3C45C !important; }
html body #header .header-nav-profile .profile-info { color: #F3F5F9 !important; }
html body #header .header-nav-profile .profile-info small { color: #BAC3D2 !important; }
html body #header .menubar-toggle, html body #header .menubar-toggle i { color: #F3F5F9 !important; }

/* Side menu (mobile) */
html body #menubar, html body #menubar:before, html body #menubar .menubar-scroll-panel,
html body .gui-controls > li { background: #14213D !important; }
html body .gui-controls > li > a:not(.logo-item),
html body .gui-controls li > a .title { color: #BAC3D2 !important; }
html body .gui-controls > li > a:hover:not(.logo-item) { background: #1F3157 !important; }
html body .gui-controls > li > a:hover:not(.logo-item) .title { color: #F3F5F9 !important; }
html body .gui-controls > li > a.active,
html body .gui-controls li.active > a .title,
html body .gui-controls > li > a.active > .title,
html body .gui-controls li.active .gui-icon { color: #14213D !important; font-weight: 700; }
html body .gui-controls > li > a.active::before { background: #C9A227 !important; }

/* Toolbar: Filter, Reset, Range, Save, Search */
html body .mahat-Dashboardheader .tx-toolbar-actions .btn.tx-btn-search:not(.tx-btn-add-cloned),
html body .mahat-Dashboardheader .tx-search .tx-search-icon {
    background: #FFFFFF !important; color: #14213D !important; border: 1px solid #14213D !important; }
html body .mahat-Dashboardheader .tx-toolbar-actions .btn.tx-btn-search:not(.tx-btn-add-cloned):hover,
html body .mahat-Dashboardheader .tx-search .tx-search-icon:hover {
    background: #14213D !important; color: #F3F5F9 !important; }
html body .mahat-Dashboardheader .tx-toolbar-actions .btn.tx-btn-search[title="Filter"] {
    background: #14213D !important; color: #F3F5F9 !important; }
html body .mahat-Dashboardheader .tx-toolbar-actions .btn.tx-btn-search[title="Filter"]:hover { background: #1F3157 !important; }

/* Add button */
html body .mahat-Dashboardheader .tx-toolbar-actions .btn.tx-btn-add-cloned,
html body .dataTables_wrapper .cma_add_button.add-row-btn {
    background: #C9A227 !important; border: 1px solid #C9A227 !important; color: #14213D !important; font-weight: 700 !important; }
html body .mahat-Dashboardheader .tx-toolbar-actions .btn.tx-btn-add-cloned:hover,
html body .dataTables_wrapper .cma_add_button.add-row-btn:hover { background: #B38F1F !important; color: #14213D !important; }
html body .tx-btn-add-cloned .material-icons, html body .cma_add_button .material-icons { color: #14213D !important; }

/* Form action buttons on every page: gold like the current menu item and the Add button */
html body .btn.cma_primary_button,
html body .btn.cma_save_button,
html body button#btnSubmit[type],
html body .cp-btn-submit,
html body button#btnSubmitReview.btn,
html body .btn.btn-primary.px-4.py-2,
html body .btn.mgr-submit-btn,
html body .modal .btn.btn-primary {
    background: #C9A227 !important; border: 1px solid #C9A227 !important; color: #14213D !important; font-weight: 700 !important; }
html body .btn.cma_primary_button:hover, html body .btn.cma_primary_button:focus,
html body .btn.cma_save_button:hover, html body .btn.cma_save_button:focus,
html body button#btnSubmit[type]:hover, html body button#btnSubmit[type]:focus,
html body .cp-btn-submit:hover,
html body button#btnSubmitReview.btn:hover, html body button#btnSubmitReview.btn:focus,
html body .btn.btn-primary.px-4.py-2:hover,
html body .btn.mgr-submit-btn:hover,
html body .modal .btn.btn-primary:hover {
    background: #B38F1F !important; border-color: #B38F1F !important; color: #14213D !important; }
html body .btn.cma_primary_button *, html body .btn.cma_save_button *, html body button#btnSubmit * { color: inherit !important; }

/* Secondary in-form buttons (+ Add row, Verify All): gold outline, gold fill on hover */
html body .btn.cma_secondary_button {
    background: #FFFFFF !important; border: 1px solid #C9A227 !important; color: #14213D !important; font-weight: 600 !important; }
html body .btn.cma_secondary_button:hover, html body .btn.cma_secondary_button:focus {
    background: #C9A227 !important; border-color: #C9A227 !important; color: #14213D !important; }
html body .btn.cma_secondary_button .fa, html body .btn.cma_secondary_button i { color: inherit !important; }

/* Card View / Table View tabs */
html body .tab-card .card-head .nav-tabs > li > a { color: #5B6780 !important; background: #fff !important; border: 1px solid #DCE2EC !important; border-radius: 8px !important; font-weight: 700; }
html body .tab-card .card-head .nav-tabs > li.active > a { background: #14213D !important; color: #F3F5F9 !important; border-color: #14213D !important; box-shadow: inset 0 -3px 0 #C9A227 !important; }

/* Card buttons: Interested / Not Interested / Similar, and the manager intent summary link */
html body .tx-card .tx-btn-interested { background-color: #C9A227 !important; border-color: #C9A227 !important; color: #14213D !important; }
html body .tx-card .tx-btn-interested:hover { background-color: #B38F1F !important; border-color: #B38F1F !important; }
html body .tx-card .tx-btn-not-interested { background-color: #fff !important; border-color: #DCE2EC !important; color: #B83A33 !important; }
html body .tx-card .tx-btn-not-interested:hover { border-color: #B83A33 !important; }
html body .tx-card .tx-btn-similar { background-color: #fff !important; border-color: #14213D !important; color: #14213D !important; }
html body .tx-card .tx-btn-similar:hover { background-color: #14213D !important; color: #F3F5F9 !important; }
html body .tx-card .tx-intent-redirect { color: #14213D !important; border-color: #14213D !important; }
html body .tx-card .tx-intent-redirect:hover { background: #14213D !important; color: #F3F5F9 !important; }

/* Mobile: side-menu current item, page title, filter toggle */
html body .gui-controls > li > a.active,
html body .gui-controls > li > a.cma_active { background: #C9A227 !important; color: #14213D !important; }
html body .gui-controls > li > a.active i,
html body .gui-controls > li > a.active .title { color: #14213D !important; }
html body #header .page-header-box h1 { color: #F3F5F9 !important; }
html body .mahat-Dashboardheader .tx-mobile-filter-toggle { background: #14213D !important; color: #F3F5F9 !important; border-color: #14213D !important; }

.tx-gallery { position: relative; }
/* No-image placeholder: navy-to-gold sky with a skyline instead of "NO IMAGE AVAILABLE" */
.tx-gallery.tx-gallery--empty {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Cpath fill='%2314213D' fill-opacity='.55' d='M0 160V96h22V70h30v26h16V40h40v56h14V60h26v36h20V22h46v74h12V54h34v42h18V80h28V44h36v52h22V68h36v92z'/%3E%3C/svg%3E") bottom / 100% 62% no-repeat,
        linear-gradient(160deg, #9CB4D8, #E8C77A) !important;
}
.tx-gallery.tx-gallery--empty .tx-gallery-main,
.tx-gallery.tx-gallery--empty .tx-thumbs,
.tx-gallery.tx-gallery--empty .tx-gbtn { visibility: hidden !important; }

/* Mobile side menu current item (outranks the #menubar .mainSideMenu rules above) */
html body #menubar .mainSideMenu > li > a.active:not(.logo-item),
html body #menubar .mainSideMenu > li.active > a:not(.logo-item) { background: #C9A227 !important; box-shadow: none !important; }
html body #menubar .mainSideMenu > li > a.active:not(.logo-item) > i,
html body #menubar .mainSideMenu > li > a.active:not(.logo-item) > .title,
html body #menubar .mainSideMenu > li.active > a:not(.logo-item) > i,
html body #menubar .mainSideMenu > li.active > a:not(.logo-item) > .title { color: #14213D !important; }
html body .mahat-Dashboardheader .tx-mobile-filter-toggle i { color: #F3F5F9 !important; }

/* Toolbar alignment: one control height (38px) and matching corners at every screen size */
html body .mahat-Dashboardheader .tx-toolbar-card-body { align-items: center !important; column-gap: 12px !important; row-gap: 10px !important; }
html body .mahat-Dashboardheader .tx-toolbar-actions,
html body .mahat-Dashboardheader #tx-live-filters { align-items: center !important; }
html body .mahat-Dashboardheader #tx-search-container { align-items: stretch !important; height: 38px !important; border: 0 !important; padding: 0 !important; border-radius: 6px !important; }
html body .mahat-Dashboardheader #tx-search-container #txSearch { height: 38px !important; box-sizing: border-box !important; border: 1px solid #D5DBE5 !important; border-right: 0 !important; border-radius: 6px 0 0 6px !important; margin: 0 !important; }
html body .mahat-Dashboardheader #tx-search-container .tx-search-icon { height: 38px !important; width: 42px !important; min-width: 42px !important; padding: 0 !important; margin: 0 !important; border-radius: 0 6px 6px 0 !important; box-sizing: border-box !important; }
html body .mahat-Dashboardheader #tx-live-filters .SumoSelect > .CaptionCont { height: 38px !important; box-sizing: border-box !important; display: flex !important; align-items: center !important; border-radius: 6px !important; }
html body .mahat-Dashboardheader .tx-toolbar-actions .btn.tx-btn-search,
html body .mahat-Dashboardheader .tx-toolbar-actions .tx-mobile-filter-toggle { height: 38px !important; min-height: 38px !important; box-sizing: border-box !important; align-items: center !important; justify-content: center !important; border-radius: 6px !important; margin-top: 0 !important; margin-bottom: 0 !important; line-height: 1 !important; }
html body .mahat-Dashboardheader .tx-toolbar-card-body > .d-flex:has(> #txMobileFilterToggle) > #txMobileFilterToggle { width: 38px !important; height: 38px !important; min-height: 38px !important; padding: 0 !important; }

/* Tablet: search on its own row, filters and buttons on the next row */
@media (min-width: 769px) and (max-width: 1199px) {
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) .tx-toolbar-card-body > .d-flex:has(> #tx-search-container) { flex: 1 1 100% !important; }
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) #tx-search-container { width: 100% !important; max-width: 100% !important; }
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) .tx-toolbar-card-body > .tx-toolbar-actions:has(> #txMobileFilterToggle) { flex: 1 1 100% !important; justify-content: flex-end !important; }
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) #tx-live-filters { padding: 0 !important; justify-content: flex-end !important; }
}

/* Mobile: search, filter and Add on one row */
@media (max-width: 768px) {
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) .tx-toolbar-card-body { flex-direction: row !important; flex-wrap: nowrap !important; }
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) .tx-toolbar-card-body > .d-flex:has(> #tx-search-container) { flex: 1 1 auto !important; min-width: 0 !important; }
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) #tx-search-container { width: 100% !important; min-width: 0 !important; }
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) #tx-search-container #txSearch { min-width: 0 !important; }
    html body .mahat-Dashboardheader .tx-toolbar:not(.map-container) .tx-toolbar-card-body > .tx-toolbar-actions:has(> #txMobileFilterToggle) { width: auto !important; flex: 0 0 auto !important; margin-left: 0 !important; gap: 8px !important; }
    html body .mahat-Dashboardheader .tx-toolbar-actions > .tx-btn-add-cloned { min-width: 0 !important; padding: 0 12px !important; }
}

/* Remaining blue accents: profile picture ring, non-rural badge, card activity link */
html body #header .dropdown > a.dropdown-toggle > img { border-color: #C9A227 !important; }
html body .tx-rural-badge.tx-rural-badge--non-rural { color: #14213D !important; background: #EEF1F6 !important; border-color: #BAC3D2 !important; }
html body .tx-card .tx-intent-redirect { background: #EEF1F6 !important; }

/* Login page: OZ Intel Pro logo at its own proportions */
html body .left-side-container img { width: 220px !important; max-width: 100% !important; height: auto !important; }

/* Metrics pages (Property and Fund): equal-height chart cards, title and metric picker on one row */
html body #CustomerIntentPropertyContainer:not([style*="display: none"]),
html body #CustomerIntentFundContainer:not([style*="display: none"]) { display: flex !important; flex-wrap: wrap !important; padding-top: 16px; }
html body #CustomerIntentPropertyContainer > .col-sm-6,
html body #CustomerIntentFundContainer > .col-sm-6 { display: flex !important; }
html body #CustomerIntentPropertyContainer > [class*="col-"] > div,
html body #CustomerIntentFundContainer > [class*="col-"] > div { width: 100%; border: 1px solid #E5E9F0 !important; box-shadow: 0 1px 3px rgba(20,33,61,.06) !important; }
html body #CustomerIntentPropertyContainer > .col-sm-6 > div,
html body #CustomerIntentFundContainer > .col-sm-6 > div { min-height: 480px !important; height: auto !important; }
html body #CustomerIntentPropertyContainer > .col-sm-6 > div > div:first-child,
html body #CustomerIntentFundContainer > .col-sm-6 > div > div:first-child { flex-direction: row-reverse !important; justify-content: space-between !important; align-items: center !important; flex-wrap: nowrap !important; }
html body #CustomerIntentPropertyContainer > .col-sm-6 > div > div:first-child > div > div:first-child,
html body #CustomerIntentFundContainer > .col-sm-6 > div > div:first-child > div > div:first-child { margin-bottom: 0 !important; color: #14213D !important; }
html body #CustomerIntentPropertyContainer > [class*="col-"] > div > div:first-child > div > div:first-child,
html body #CustomerIntentFundContainer > [class*="col-"] > div > div:first-child > div > div:first-child { color: #14213D !important; }
html body #CustomerIntentPropertyContainer select.form-control,
html body #CustomerIntentFundContainer select.form-control { height: 38px !important; padding: 0 30px 0 12px !important; border: 1px solid #D5DBE5 !important; border-radius: 6px !important; color: #14213D !important; background-color: #fff !important; }
html body #CustomerIntentPropertyContainer select.form-control:focus,
html body #CustomerIntentFundContainer select.form-control:focus { border-color: #14213D !important; box-shadow: 0 0 0 3px rgba(20,33,61,.12) !important; }
html body .tx-chart-empty { display: flex; align-items: center; justify-content: center; min-height: 260px; width: 100%; color: #6B7280; font-size: 14px; background: #F7F8FB; border: 1px dashed #D5DBE5; border-radius: 8px; }
@media (max-width: 767px) {
    html body #CustomerIntentPropertyContainer > [class*="col-"] > div,
    html body #CustomerIntentFundContainer > [class*="col-"] > div { padding: 16px !important; }
    html body #CustomerIntentPropertyContainer > .col-sm-6 > div,
    html body #CustomerIntentFundContainer > .col-sm-6 > div { min-height: 0 !important; }
}

/* Dashboard filter bar: select2 boxes and date inputs match the 38px buttons */
html body .mahat-Dashboardheader #tx-live-filters .select2-container .select2-selection--single { height: 38px !important; border-radius: 6px !important; display: flex !important; align-items: center !important; }
html body .mahat-Dashboardheader #tx-live-filters .select2-container .select2-selection__arrow { height: 36px !important; }
/* select2 boxes and date inputs: white with the same border as the other filters */
html body .mahat-Dashboardheader #tx-live-filters .select2-container .select2-selection--single,
html body .mahat-Dashboardheader #tx-live-filters input.form-control { background-color: #FFFFFF !important; border: 1px solid #DBE3EF !important; }
html body .mahat-Dashboardheader #tx-live-filters input.form-control, html body .mahat-Dashboardheader .tx-toolbar-actions #tx-live-filters input.form-control.tx-filter-input { height: 38px !important; max-height: 38px !important; border-radius: 6px !important; box-sizing: border-box !important; }
html body #CustomerIntentPropertyContainer > .col-sm-6 > div > .cma-chart-scroll,
html body #CustomerIntentFundContainer > .col-sm-6 > div > .cma-chart-scroll,
html body #CustomerIntentPropertyContainer > .col-sm-6 > div > .tx-chart-empty,
html body #CustomerIntentFundContainer > .col-sm-6 > div > .tx-chart-empty { flex-grow: 1; }
html body #chart_pie_proptype,
html body #chart_pie_fundtype { max-width: 320px !important; max-height: 320px !important; }
html body #CustomerIntentPropertyContainer > .col-sm-12 > div > div[style*="overflow-x"] > div,
html body #CustomerIntentFundContainer > .col-sm-12 > div > div[style*="overflow-x"] > div { min-width: 600px !important; }
@media (max-width: 1199px) {
    html body #CustomerIntentPropertyContainer > .col-sm-6 > div > div:first-child,
    html body #CustomerIntentFundContainer > .col-sm-6 > div > div:first-child { flex-direction: column-reverse !important; align-items: stretch !important; gap: 10px !important; }
    html body #CustomerIntentPropertyContainer > .col-sm-6 select.form-control,
    html body #CustomerIntentFundContainer > .col-sm-6 select.form-control { width: 100% !important; }
}

/* Profile menu open: the toggle turns white, so switch the name and role to dark text */
html body #header .header-nav-profile > li.dropdown.open > a.dropdown-toggle .profile-info { color: #14213D !important; }
html body #header .header-nav-profile > li.dropdown.open > a.dropdown-toggle .profile-info small { color: #6B7280 !important; }
