﻿
:root, [data-bs-theme=light] {
    --primary-color: rgb(0,82,155);
    --primary-text-color: #fff;
    --shadow-primary-color: rgba(0, 0, 0, 0.15);
    /*primary end*/

    --secondary-color: #EEEEF2;
    --secondary-color-hover: #F2F2F2;
    --secondary-color-active-bg: #DADADA;
    /*secondary end*/

    --body-content-bg: #fff;
    --body-header-bg: #F8F9FA;
    --footer-bg: rgb(244 244 244 /0.6);
    --border-color: #dee2e6;
    --border-active-color: #00529B;
    --input-focus-border-color: rgba(13,110,253,.25);
    /* Card end*/
    --light-bg-color: #BBE4FF;
    --body-color-bg: #F7F9FC;
    --text-black: #000;
    --text-black-hover: rgba(0, 0, 0, 0.75);
    --text-black-25: rgba(0, 0, 0, 0.25);
    --text-black-50: rgba(0, 0, 0, 0.50);
    --text-black-70: rgba(0, 0, 0, 0.70);
    /*Latest Bg color*/
    --disabled-text-color:;
    --disabled-bg-color:;
    --border-disabled-color: red;
}

[data-bs-theme=dark] {
   
}

body {
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-color: var(--text-black);
    --bs-body-bg: var(--body-color-bg);
}

/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
    transition: all 0.3s;
}

@media (max-width: 1199px) {
    #main {
        padding: 0px;
    }

        #main .inner_main {
            padding: 10px;
        }
}

#main .inner_main {
    margin: 0.5rem 0.3rem;
    transition: all 0.3s;
    background-color: var(--body-content-bg);
    border-radius: 0.75rem;
    border: solid 0.0625em var(--border-color);
    padding:0.5rem;
}
.page-title {

    
}

    .page-title h1 {
        font-size: 1.652rem;
        margin-bottom: 0;
        color: var(--primary-color);
        font-weight: 500;
    }

.header {
    transition: all 0.2s;
    height: 60px;
    background-color: var(--primary-color);
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
  
}
/*Logo : header brand logo*/
.header-brand {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    font-size: 1.25rem;
    color: var(--primary-text-color) !important;
    text-decoration: none;
    white-space: nowrap
}

/*Button : header toggle sidebar btn*/
.header .toggle-sidebar-btn {
    padding-left: 5px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-text-color);
    line-height: 1; /* important for vertical alignment */
    display: flex; /* ensures it behaves correctly in layout */
    align-items: center;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color:var(--primary-color) !important;
}
/*--------------------------------------------------------------
# Header Nav
--------------------------------------------------------------*/
.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.toggle-dark-light {
    font-size: 1rem;
    color: var(--primary-text-color);
}
.header-nav li.nav-item {
    margin: 0.1rem;
}
    .header-nav li.nav-item .nav-link {
        padding: 0.2rem 0.5rem;
        color: var(--primary-text-color);
        font-size: 1.05rem;
    }
@media (min-width: 768px) {
    .dropdown-menu-arrow::before {
        content: "";
        width: 13px;
        height: 13px;
        background: var(--secondary-color);
        position: absolute;
        top: -7px;
        right: 20px;
        transform: rotate(45deg);
        border-top: 1px solid var(--secondary-color);
        border-left: 1px solid var(--secondary-color);
    }
}
.header-nav .nav-profile {
    color: var(--primary-text-color);
}
    .header-nav .nav-profile img {
        max-height: 1.5rem;
        height: 1.5rem;
    }
    .header-nav .nav-profile .profile-title-lg {
        font-size: 1.10rem;
        
    }
.header-nav .profile {
    min-width: 240px;
    padding-bottom: 0;
    top: 1px !important;
    background-color: var(--body-content-bg);
    box-shadow: 0 0.5rem 1rem var(--shadow-primary-color);
    border-color:var(--border-color);
    border-radius:0.15rem;
}
    .header-nav .profile .dropdown-header {
        background: var(--secondary-color);
    }
        .header-nav .profile .dropdown-header .profile-title {
            font-size: 1.15rem;
            margin-bottom: 0;
            font-weight: 500;
            color: var(--primary-color);
        }
    .header-nav .profile .dropdown-item {
        padding: 10px 15px;
        transition: 0.3s;
        font-weight: 400;
        color: var(--text-black);
    }
        .header-nav .profile .dropdown-item i {
            margin-right: 10px;
            font-size: 1.25rem;
            line-height: 0;
        }
        .header-nav .profile .dropdown-item:hover {
            color: var(--text-black-hover);
            background-color: var(--secondary-color-hover);
        }


/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
    position: fixed;
    top: 0; /*Value 60px change to 0 */
    bottom: 0;
    width: 18.75rem;
    z-index: 996;
    transition: all 0.2s;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
   background-color:var(--body-color-bg);
   background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: var(--text-black);
}
    .sidebar .sidebar-brand {
        display: flex;
        flex: 0 0 60px;
        align-items: center;
        color: var(--primary-text-color);
        background-color: var(--primary-color);
        padding-left: 1.5rem;
        padding-bottom: 0.2rem;
    }
        .sidebar .sidebar-brand .brand-title {
            font-size: 1.5rem;
            font-weight: 600;
        }
        .sidebar .sidebar-brand .brand-company {
            font-size: 0.85rem;
            font-weight: 500;
        }
    .sidebar .sidebar-wrapper {
    }
    .sidebar .sidebar-inner-wrapper {
    
        padding-left: 0;
        overflow-y: auto;
        position: absolute;
        bottom: 0;
        width: 100%;
        top: 60px;
        
    }
    .sidebar::-webkit-scrollbar {
        width: 5px;
        height: 8px;
        background-color: #fff;
    }
    .sidebar::-webkit-scrollbar-thumb {
        background-color: #aab7cf;
    }
@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
        transition: all 0.3s;
    }

        .sidebar .sidebar-inner-wrapper {
            top: 0;
            transition: all 0.3s;
        }
}
@media (min-width: 1200px) {
    #main,
    #footer {
        margin-left: 300px;
    }
}
@media (max-width: 1199px) {

    .toggle-sidebar .sidebar {
        left: 0;
        top: 60px;
    }
}
@media (min-width: 1200px) {
    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }
}
.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}
    .sidebar-nav li {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .sidebar-nav .nav-heading {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-black);
        font-weight: bold;
        margin: 10px 0 5px 15px;
    }
    .sidebar-nav .nav-link {
        display: flex;
        align-items: center;
        color: var(--text-black);
        transition: 0.1s;
        padding: 5px;
        padding-left: 10px;
        border-left: solid 5px transparent;
        transition: background-color 0.2s ease;
    }
    .sidebar-nav .nav-link i {
        margin-right: 10px;
      
    }
    .sidebar-nav .nav-link.collapsed {
        color: var(--text-black);
    }
        .sidebar-nav .nav-link.collapsed i {
            color: var(--text-black);
        }
        .sidebar-nav .nav-link:hover {
            color: var(--text-black); /*//Change*/
            font-weight:500;
            background: var(--secondary-color-hover);
        }
            .sidebar-nav .nav-link:hover i {
                color: var(--text-black-hover);
            }
    .sidebar-nav .nav-link .bi-chevron-down {
        margin-right: 0;
        transition: transform 0.2s ease-in-out;
    }
    .sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
        transform: rotate(180deg);
    }
    .sidebar-nav .nav-content {
        padding: 5px 0 0 0;
        margin: 0;
        list-style: none;
    }
        .sidebar-nav .nav-content a {
            display: flex;
            align-items: center;
           
            
            color: var(--text-black);
            transition: 0.2s;
            padding: 5px;
            padding-left: 40px;
        }
            .sidebar-nav .nav-content a i {
                margin-right: 8px;
                line-height: 0;
                border-radius: 50%;
                color: var(--text-black);
            }
            .sidebar-nav .nav-content a:hover {               
                background: var(--secondary-color-hover);
            }
                .sidebar-nav .nav-content a:hover i {
                    color: var(--text-black-hover);
                }
    .sidebar-nav li.nav-item a.active,
    .sidebar-nav li.active a.nav-link:first-child {      
        background: var(--secondary-color-active-bg);
        font-weight: 500;
        border-left: solid 0.25rem var(--primary-color);
    }
        .sidebar-nav li.nav-item a.active i,
        .sidebar-nav li.active a.nav-link:first-child i {
            color: var(--text-black-hover);
            font-weight: 500;
        }



.min-vh-80 {
    min-height: 80vh !important;
}
.vh-header {
    height: calc(100vh - 150px);
  
   
}

.cursor-pointer {
    cursor: pointer;
}




.fs-8 {
    font-size: .694rem !important
}

.fs-7 {
    font-size: .833rem !important
}

.dropdown-menu li a i,
.dropdown-menu li button i {
    padding-right: 0.4rem;
}


.card {
    --bs-card-bg: var(--body-content-bg);
    --bs-card-cap-bg: var(--body-header-bg);
    --bs-card-cap-color: var(--text-black);
  
}

.form-control {
    color: var(--text-black);
    background-color: var( --body-content-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--border-color);
    
}

    .form-control:focus {
        color: var(--text-black);
        background-color: var(--body-color-bg);
        border-color: var(--border-active-color);
      
        box-shadow: 0 0 0 .25rem var(--input-focus-border-color);
    }

.btn-navy {
    --bs-btn-color: #fff;
    --bs-btn-bg: #00529B; /* Base Navy */
    --bs-btn-border-color: #004080; /* Slightly darker border */

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #004080; /* Darker for hover */
    --bs-btn-hover-border-color: #003366;
    --bs-btn-focus-shadow-rgb: 0, 82, 155;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(0, 82, 155, 0.5);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #003366; /* Darkest for active */
    --bs-btn-active-border-color: #002b5e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6c87a8; /* Muted navy-gray for disabled */
    --bs-btn-disabled-border-color: #6c87a8;
}

.btn-reset {
    --bs-btn-color: #1a1a1a; /* Readable dark text */
    --bs-btn-bg: #f4f6fa; /* Soft light gray */
    --bs-btn-border-color: #d0d4db; /* Subtle border */

    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #e8ecf2; /* Slightly darker hover background */
    --bs-btn-hover-border-color: #c2c7cf;
    --bs-btn-focus-shadow-rgb: 17, 0, 158; /* Navy for focus ring */
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(17, 0, 158, 0.25);
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #dde2e9; /* Active background */
    --bs-btn-active-border-color: #b3b9c2; /* Harmonized with active bg */
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #888;
    --bs-btn-disabled-bg: #f0f2f5;
    --bs-btn-disabled-border-color: #dcdcdc;
}
/* Shared close button styles */
.btn-back {
    /* Base */
    --bs-btn-color: var(--dst-text);
    --bs-btn-bg: var(--dst-card-bg);
    --bs-btn-border-color: var(--dst-border-color);
    /* Hover */
    --bs-btn-hover-color: var(--dst-text);
    --bs-btn-hover-bg: var(--dst-sidebar-nav-link-hover-bg);
    --bs-btn-hover-border-color: var(--dst-border-color);
    /* Focus */
    --bs-btn-focus-shadow-rgb: 128, 128, 128;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem var(--dst-focus-color, rgba(128,128,128,.35));
    /* Active */
    --bs-btn-active-color: var(--dst-text);
    --bs-btn-active-bg: var(--dst-sidebar-nav-link-active-bg);
    --bs-btn-active-border-color: var(--dst-sidebar-nav-link-active-border-color, var(--dst-border-color));
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    /* Disabled */
    --bs-btn-disabled-color: #777;
    --bs-btn-disabled-bg: var(--dst-fp-drop-btn-disabled-bg, #eee);
    --bs-btn-disabled-border-color: var(--dst-fp-drop-btn-disabled-border-color, #ddd);
}




.modal {
    --bs-modal-color: var(--text-black);
    --bs-modal-bg: var(--body-content-bg);
    --bs-modal-header-border-color: var(--border-color);
    --bs-modal-footer-border-color: var(--border-color);
   
}


/*--------------------------------------------------------------
Filter Panel 
--------------------------------------------------------------*/
.filter-pnl {
   
    
   
   
    background-color: var(--body-color-bg);
}

    .filter-pnl .corner-end-img {
        background-image: url(corner-2.png);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: right;
    }

    .filter-pnl .inner-filter-pnl {
        width: 100%;
        border: solid 0.015rem var(--border-color);
        margin-bottom: -0.063rem;
    }

        .filter-pnl .inner-filter-pnl .border-bottom {
            border-color: var(--border-color) !important;
        }

        .filter-pnl .inner-filter-pnl .filter-title {
            padding: 0.4rem .6rem;
            width: 150px;
            border-right: solid 0.1rem var(--border-color);
            justify-content: center;
            flex-direction: column;
            display: flex;
            font-weight: 500;
            border-bottom: solid 0.05rem var(--border-color);
        }

    .filter-pnl .filter-text {
    }

    .filter-pnl .inner-filter-pnl .filter-text span,
    .filter-pnl .inner-filter-pnl .filter-text div {
        background-color: var(--light-bg-color);
        color: var(--text-black);
        padding: 0.35rem 0.7rem;
        font-size: 0.719rem;
        margin-left: 0.5rem;
        font-weight:500;
    }

    .filter-pnl .inner-filter-pnl .filter-text > div {
        display: inline-block !important;
        padding: 0.07rem 0.7rem !important;
    }

    .filter-pnl .inner-filter-pnl .filter-text span button,
    .filter-pnl .inner-filter-pnl .filter-text div button {
        display: inline-block;
        padding: 0 0;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.5;
        color: inherit;
        text-align: right;
        text-decoration: none;
        vertical-align: middle;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
        border: none;
        border-radius: 0;
        background-color: transparent;
    }



    .filter-pnl div.dropdown .btn.dropdown-toggle {
        --bs-btn-color: inherit;
        --bs-btn-bg: transparent;
        --bs-btn-hover-color: var(--text-black-70);
        --bs-btn-hover-bg: var(--secondary-color-hover);
        --bs-btn-active-color: var(--primary-text-color);
        --bs-btn-active-bg: var(--primary-color);
        --bs-btn-border-radius: 0;
        --bs-btn-border-width: 0px;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: var(--disabled-text-color);
        --bs-btn-disabled-bg: var(--disabled-bg-color);
        --bs-btn-disabled-border-color: var(--border-disabled-color);
    }

    .filter-pnl .inner-filter-pnl .filter-Summary {
        background-color: var(--footer-bg);
    }

        .filter-pnl .inner-filter-pnl .filter-Summary .v-content {
            font-size: 0.913rem;
            font-weight: 500;
            color: var(--text-black-70);
        }

        .filter-pnl .inner-filter-pnl .filter-Summary .f-content {
            font-size: 0.813rem;
            font-weight: 500;
            color: var(--text-black);
        }

    .filter-pnl .inner-filter-pnl form .min-h-200 {
        min-height: 200px !important;
        max-height: 350px !important;
        overflow: auto;
        min-width: 200px;
    }

    .filter-pnl .inner-filter-pnl form .max-h-200 {
        max-height: 350px !important;
        overflow: auto;
        min-width: 200px;
    }

    .filter-pnl .inner-filter-pnl .filter-empty {
        padding: 0.4rem .001rem;
        height: 150px;
        text-align: center;
        justify-content: center;
        flex-direction: column;
        display: flex;
    }

    .filter-pnl .inner-filter-pnl [data-dst-hover="true"] div:hover {
        background-color: var(--secondary-color-hover);
    }

    .table input{
        border-radius:0!important;
    }


tr[data-dst-sog="false"] {
    border-left: 5px solid rgba(227, 33, 52, 0.65) !important;
    background: rgba(227, 33, 52, 0.35)
}



.table {
    --bs-table-color-type: initial;
    --bs-table-bg-type: initial;
    --bs-table-color-state: initial;
    --bs-table-bg-state: initial;
    --bs-table-color: var(--dst-text);
    --bs-table-bg: var(--dst-tile-bg);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-emphasis-color);
    --bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
    --bs-table-active-color: var(--bs-emphasis-color);
    --bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), 0.1);
    --bs-table-hover-color: var(--bs-emphasis-color);
    --bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), 0.075);
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
    border-color: var(--bs-table-border-color)
}




table.invoice thead {
    background-color: #E9ECEF;
}

td.td-disabled {
    background-color: #E9ECEF !important;
}

table.invoice tbody tr td,
table.invoice tbody tr th {
    padding: 0.2rem 0.2rem;
}

table.invoice td.sr-no {
    width: 40px !important;
    min-width: 40px !important;
    font-weight: 500;
    text-align: center;
}

table.invoice td.search {
    width: 250px !important;
    min-width: 250px !important;
    border-right:none;
}

table.invoice td.icon {
    width: 30px !important;
    min-width: 30px !important;
    border-left:none;
}
table.invoice td.mrp {
    width: 80px !important;
    min-width: 80px !important;
}

table.invoice tr td {
    width: 100px !important;
    min-width: 100px !important;
}



table.invoice tbody tr td:last-child,
table.invoice tfoot tr td:last-child,
.no-border {
    border: solid 1px transparent !important;
    background-color: transparent;
    color: red;
    cursor: pointer;
}

table.invoice i {
    font-size: 1.2rem;
    font-weight: 500;
}

table.invoice tr td:last-child {
    width: 50px !important;
    min-width: 50px !important;
}

table.invoice tfoot tr td {
    background-color: #FFFCD7;
}

table.invoice tfoot .empty.add-new-row {
    background-color: #fff;
    text-align: left !important;
    color: #0099e5 !important;
    cursor: pointer !important;
    padding-left: 1.5rem !important;
    border-right: 0 !important;
    font-weight: 400;
}

table tr[data-dst-trstatus="Delete"] {
    background-color: #FFC3A1 !important;
    border-color: #F0997D;
}

    table tr[data-dst-trstatus="Delete"] td {
        background-color: transparent !important;
    }

.autocomplete-cell {
    position: relative;
    color: red !important;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: auto;
    width: 250px;
    max-height: 170px !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin !important;
    padding: 0;
    margin: 2px 0 0;
    list-style: none;
}
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
/* Mobile devices (portrait phones, up to 576px) */
@media (max-width: 576px) {
    .header-brand {
        font-size: 1rem; /* smaller for phones */
    }
}

/* Tablets (portrait & landscape, 577px to 991px) */
@media (min-width: 577px) and (max-width: 991px) {
    .header-brand {
        font-size: 1.125rem; /* slightly smaller than laptop */
    }
}

/* Large screens (laptops/desktops 992px and up) */
@media (min-width: 992px) {
    .header-brand {
        font-size: 1.25rem; /* default or bigger */
    }
}

/* Extra-large (very big monitors, 1400px+) */
@media (min-width: 1400px) {
    .header-brand {
        font-size: 1.5rem; /* larger for big screens */
    }
}