﻿.toast-container { 
    z-index: 11;
}

    .breadcrumb {
        --bs-breadcrumb-item-padding-x: 0.2rem !important;
    }

    .ff-rb {
        font-family: 'Roboto';
    }

    .ts-dropdown, .ts-dropdown.form-control, .ts-dropdown.form-select {
        background: white !important;
    }

        .ts-dropdown .active {
            background-color: var(--theme-deafult);
            color: var(--white);
        }

    .ts-wrapper > .ts-control {
        padding: 0.27rem 0.75rem 0.20rem 0.72rem !important;
        font-weight: 500;
    }

    #g_FY_sel {
        font-weight: 500;
    }




    .lh-8 {
        line-height: 0.80rem !important;
    }

    .text-left {
        text-align: left;
    }

    .swal-button--third {
        background-color: var(--theme-secondary);
    }

    .mandatory-cell {
        background-color: #e2e0f6;
        color: black;
    }

    .mandatory-empty {
        background-color: #cceeff;
        color: #000;
    }


    .fs-7 {
        font-size: 0.75rem !important;
    }

    .fs-6 {
        font-size: 0.50rem !important;
    }

    .fs-5 {
        font-size: 0.25rem !important;
    }

    .sidebar-wrapper .goback {
        color: var(--theme-deafult) !important;
    }

    .btn-group .dropdown-content {
        left: 0;
        top: 34px !important;
        border: 1px solid var(--theme-deafult);
        min-width: 235px !important;
    }

    .dropdown-menu, .dropdown-content {
        z-index: 3 !important;
    }

        .dropdown-content a {
            cursor: pointer !important;
        }

    a {
        cursor: pointer !important;
    }

    .cursorp {
        cursor: pointer !important;
    }

    .float-right {
        float: right;
    }

    .tconnect .card-footer {
        background-color: transparent;
    }

    .tconnect {
        margin-left: 137px !important;
    }

        .tconnect .page-title {
            margin: 0 -27px 12px !important;
        }

        .tconnect .card-body {
            min-height: 75vh;
        }

    .tab-pane {
        padding-left: 0.50rem;
    }

    .more-options i {
        font-size: 9px;
    }

    .more-options {
        font-size: 5px;
        padding-left: 4px;
        padding-right: 4px;
        float: right;
        padding-top: 3px;
        padding-bottom: 2px;
    }

    .jss_worksheet > tbody > tr > td.readonly {
        color: var(--theme-deafult);
        font-style: italic;
        font-weight: 500;
    }

    .jss_worksheet td .filter-button .fa {
        font-size: 13px;
    }

    .jss_worksheet {
        width: 100% !important;
    }

        .jss_worksheet thead tr.jss_worksheet_nested td {
            /* text-align: right;*/
            /* font-size: 11px;
    color: var(--theme-secondary);*/
        }


    .active-filter {
        background-color: var(--theme-deafult) !important;
        color: var(--white) !important;
    }

    .jss_worksheet_content {
        max-height: 79vh !important;
        font-family: 'Roboto';
        font-size: 13px;
    }

    .waitdrop {
        z-index: 10;
        opacity: 0.3;
    }

    .jss_worksheet > tbody > tr > td .action {
        padding-left: 0.60rem;
    }



    .jss_worksheet, .jss_worksheet > tbody > tr > td:first-child {
        background-color: transparent !important;
    }

        .jss_worksheet > thead > tr > td, .jss_worksheet_page {
            background-color: var( --light-background);
            font-weight: 500;
            font-family: 'Roboto';
        }

        .jss_worksheet td.highlight {
            background-color: var( --light-bg) !important;
            color: var(--theme-deafult) !important;
        }

    .toastify.danger {
        color: var(--theme-secondary) !important;
    }

    .toastify.success {
        color: var(--theme-default) !important;
    }

    .toastify {
        color: var(--theme-default) !important;
    }

        .toastify button {
            color: var(--theme-default) !important;
        }

    .notify-alert span strong {
        padding-top: 1rem !important;
    }
    /* Default: Show Logo, Hide Go Back Button */
    .logo-icon-wrapper a:first-child {
        transform: translateX(0);
        opacity: 1;
        transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }

    .logo-icon-wrapper a:last-child {
        transform: translateX(100%);
        opacity: 1;
        transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }
    /* Active State (Show Go Back, Hide Logo) */
    .logo-icon-wrapper.active a:first-child {
        transform: translateX(-100%);
        opacity: 1;
        display: none;
    }

    .logo-icon-wrapper.active a:last-child {
        transform: translateX(0);
        opacity: 1;
    }
    /*--------------------------------------------------------*/


    .notify-alert {
        z-index: 1060 !important;
    }

    .paginator {
        border-top: none !important;
    }

    .field-validation-error span {
        font-size: 0.75rem;
        font-family: Rubik, sans-serif;
    }

    .customizer-links {
        bottom: 5% !important;
        top: initial !important;
    }

    .scrollContainer {
        overflow-x: auto;
        overflow-y: auto;
        height: auto;
        outline: none;
    }

    .jss_worksheet_pg {
        position: absolute;
        bottom: 0px;
        margin-top: 1rem;
    }
    /*----------------Filter sheet style*/
    /* External button styling */
    #applyFilterBtn {
        margin-bottom: 10px;
        padding: 6px 12px;
        font-size: 16px;
        cursor: pointer;
    }
    /* Filter row styling */
    .filter-row th {
        text-align: center;
        padding: 4px;
        background: #f0f0f0;
        border-top: 1px solid #ccc;
    }

    .filter-button {
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--theme-default);
        font-size: 11px;
    }

        .filter-button:hover {
            color: var(--theme-secondary);
        }
    /* Small popup styling */
    .small-popup {
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        padding: 10px;
        position: absolute;
        z-index: 1050;
        display: none;
        min-width: 280px;
    }

        .small-popup .clearFilterA {
            max-width: 180px;
        }
    /* Balance sheet >> Sign Info*/
    .signinfo .section {
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e9ecef;
    }

        .signinfo .section:last-child {
            border-bottom: none;
        }

    .signinfo .section-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: .5rem;
    }

    .signinfo .signatory {
        text-align: center;
        padding: 1rem 0;
    }

    .signinfo .signatory-name {
        font-weight: 600;
        margin-bottom: .25rem;
    }

    .signinfo .signatory-designation,
    .signinfo .signatory-membership {
        font-size: .9rem;
        color: #6c757d;
        margin-bottom: .25rem;
    }

    ul.dropdown-menu {
        border: 1px solid var(--theme-default);
    }

        ul.dropdown-menu > li > a {
            font-family: 'Roboto';
            font-size: 0.85rem;
        }

    .modal-header {
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

        .modal-header > h5 {
            color: var(--theme-default) !important;
        }

    .sidebar-link-s {
        padding-top: 6px !important;
    }
    /* ------------ jss_content ----------    */

    .jss_content {
        max-height: 80vh;
        font-family: 'Roboto';
        font-size: 13px;
    }
    /* ------- DatGrid CSS ---------- */
    /* 1. Main Container setup */
    .smartgrid-header {
        display: flex;
        flex-wrap: wrap; /* Allows items to drop to next line on small screens */
        align-items: center; /* Vertically centers buttons, text, and inputs */
        gap: 0.5rem; /* consistent spacing between all elements */
        padding: 0.75rem; /* Breathing room inside the container */
        background-color: transparent; /* Optional: Light background color to distinguish header */
        /*border-bottom: 1px solid #dee2e6;*/ /* Optional: Separation line */
    }
        /* 2. Search Bar Handling */
        /* This targets the div containing the FluentSearch to make it fill available space */
        .smartgrid-header > div:has(fluent-search),
        .smartgrid-header > div:nth-child(4) {
            flex-grow: 1; /* Takes up remaining space on desktop */
           /* min-width: 200px;*/ /* Prevents it from getting too squashed */
        }
    /* 3. Mobile/Tablet Adjustments (Screens smaller than 768px) */
    @media (max-width: 768px) {
        .smartgrid-header {
            justify-content: space-between; /* Spreads items out evenly on wrap */
            gap: 0.75rem; /* Add slightly more vertical breathing room between stacked rows */
        }
            /* Target the Search, Info text, Page Size, and Pagination containers.
       Force them to take full width so they stack vertically and centered.
    */
            .smartgrid-header > div:has(fluent-search),
            .smartgrid-header > .ms-auto {
                width: 100%; /* Force element to take full row width */
                margin-left: 0 !important; /* Override Bootstrap's auto margin */

                display: flex; /* Enable flexbox for centering children */
                justify-content: center; /* Center the content horizontally */
                text-align: center; /* Ensure text inside is centered */
            }
            /* Ensure the search bar stays at the bottom of the stack */
            .smartgrid-header > div:has(fluent-search) {
                order: 5;
            }
        /* Make the actual search input span the full width of the screen */
        fluent-search {
            width: 100%;
        }
    }
    /*.data-grid {
    width: 100%;
    height: 80vh;
    overflow: scroll;
}*/



    .page-wrapper .page-body-wrapper .page-title .breadcrumb li,
    .left-header .breadcrumb li, .left-header .breadcrumb li a {
        font-size: 10px;
        font-family: 'Roboto';
    }

    .page-wrapper .page-body-wrapper .page-title {
        padding: 2px 21px !important;
    }

    .smartgrid-header-pos-2 {
        /*   position: fixed;
     width: auto;
    bottom: 0px;*/
    }
    /*----changes 13dec-1141PM-----*/
    /* 1. Fix the main body wrapper height */
    /* Assuming your .page-header is approx 80-100px. Adjust if needed */
    .page-body-wrapper {
        height: calc(100vh - 2px); /* Fill screen minus header */
        overflow: hidden; /* Prevent double scrollbars */
    }

    .page-body {
        height: 100%;
        overflow: hidden;
    }
    /* 2. Turn your container into a Flex Column */
    .root-container {
        /*display: flex;*/
        flex-direction: column;
        height: 100%;
        padding-bottom: 10px; /* Optional spacing from bottom */
    }
    /* 3. Keep Toolbar and Footer at natural size (Don't stretch) */
    .smartgrid-toolbar,
    .sheet-header {
        flex: 0 0 auto;
    }
    /* 4. Make the Grid wrapper fill ALL remaining space */
    .data-grid {
        flex: 1 1 auto; /* Grow to fill space */
        overflow: hidden; /* Keep scroll bars inside the grid, not the page */
        display: flex; /* Ensure inner children fill this box */
        flex-direction: column;
    }
    /* 5. Force the specific Datasheet target to fit the wrapper */
    .sheet-menu-target {
        height: 100%; /* Fill the .data-grid parent */
        max-height: unset !important; /* Remove your old hack */
        width: 100% !important;
    }
        /* Optional: Ensure the actual canvas/grid inside takes full height */
        .sheet-menu-target > .sheet {
            height: 100%;
        }












    .data-grid > .vars > .sheet-menu-target {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        /*allow horizontal scrolling, constrain height to viewport minus offset,
      allow vertical scrolling for grid content, and ensure sizing uses border-box */
        overflow-x: auto !important;
        overflow-y: auto !important;
        box-sizing: border-box; /*adjust 150px if header/footer size differs */
        /*  height: auto !important;*/
        min-height: 0 !important; /*for flex layouts so children can shrink */

        background: var(--white);
        position: relative; /* helps absolutely positioned children stay contained 
     Firefox: set thin scrollbar with matching colors */
        scrollbar-width: thin;
        scrollbar-color: rgba(0,0,0,0.12) rgba(255,255,255,0.85);
    }
        /* WebKit-based browsers (Chrome, Edge, Safari) */
        .data-grid > .vars > .sheet-menu-target::-webkit-scrollbar {
            width: 12px;
            height: 12px;
        }

        .data-grid > .vars > .sheet-menu-target::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.85); /* white, slightly transparent like Excel */
            border-radius: 8px;
        }

        .data-grid > .vars > .sheet-menu-target::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.12); /* subtle translucent thumb 
    border-radius: 8px;
    border: 3px solid rgba(255,255,255,0.85);*/ /* create a padding/edge effect */
            min-height: 24px;
        }

            .data-grid > .vars > .sheet-menu-target::-webkit-scrollbar-thumb:hover {
                background: rgba(0,0,0,0.20);
            }
        /* Optional: ensure inner scrollable content doesn't inherit a distracting background */
        .data-grid > .vars > .sheet-menu-target,
        .data-grid > .vars > .sheet-menu-target * {
            background-clip: padding-box;
        }

    .vars[theme='default'] {
        --header-selected-bg-color: var(--theme-default) !important;
        --selection-border-color: var(--theme-default) !important;
    }

    .abv, .abe {
       /* border: 1px solid var(--theme-default);*/
        color: var(--theme-secondary);
    }
        .abe, .ab-del > .icofont {
            font-size: 18px;
        }
.abe, .ab-del {
    margin-top: -3px;
    padding: 0px !important;
}
        .abl {
            background: var(--theme-default);
            color: white;
          /*  padding: 2px 3px;*/
            margin-top: -2px;
            font-family: 'Roboto';
        }
