/* Header Menu */
.main-header .navbar, .main-footer{
    margin-left: 0px !important;
    border-bottom: 1px solid #3b5998;
}

.navbar-brand{
    color: black !important;
    padding: 2px 15px !important;
    height: 40px;
}

/* Override padding for logo navbar-brand */
.navbar.top_navbar .navbar-header .navbar-brand,
.top_navbar .navbar-header .navbar-brand {
    padding: 0 !important;
}
.content-wrapper{
    margin-top: 70px !important;
    margin-left: 0 !important;
}
.nav-color{
    background-color: #3b5998 !important;
}

.navbar{
    min-height:auto !important;
}

.top_navbar{
    height: 50px;
    padding-top: 5px;
}

.navbar-brand>img{
    transform: translateY(0%) !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 50% !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
    background: transparent !important;
    display: block !important;
}

/* Force circular logo container */
.navbar.top_navbar .navbar-header {
    margin-left: 15px !important;
    margin-right: 20px !important;
}
.navbar.navbar-static-top .navbar-header .navbar-brand,
.navbar.top_navbar .navbar-header .navbar-brand,
.navbar-header .navbar-brand,
.top_navbar .navbar-brand {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    aspect-ratio: 1/1 !important;
    box-sizing: border-box !important;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
        -ms-flex-align: center !important;
            align-items: center !important;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
}

/* Space between logo and nav menu */
.top_navbar #navbar {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.top_navbar #navbar .navbar_left,
.top_navbar .navbar-collapse .navbar_left {
    margin-left: 25px !important;
    padding-left: 0 !important;
}

/* Circular logo styling */
.navbar.navbar-static-top .navbar-header .navbar-brand img,
.navbar.top_navbar .navbar-header .navbar-brand img,
.navbar-brand img,
.navbar-header img,
.top_navbar .navbar-brand img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    -o-object-fit: contain !important;
       object-fit: contain !important;
    background: transparent !important;
    display: block !important;
}

.navbar-nav>li{
    top: 2px;
}

.main-header .sidebar-toggle{
    padding: 6px 10px !important;
}
.navbar-nav>li>a>i {
    width: 40px;
    text-align: center;
    color: #ffffff;
    background-color: #f5f5f500 !important;
    border: none !important;
    height: auto !important;
    padding: 0px !important;
    font-size: 20px;
}

.navbar-nav>li>a{
    color: white !important;
}

.navbar-nav>li>a:hover{
    color: white !important;
    background-color: #4261a3 !important;
}

.nav .open>a, .nav .open>a:focus, .nav .open>a:hover {
    background-color: #4462a1;
    border-color: #337ab7;
}
.left-side, .main-sidebar {
    padding-top: 55px;
    -webkit-transform: translate(-250px,0);
    transform: translate(-300px,0);
}

.sidebar-toggle{
    display: none !important;
}

.main-sidebar{
    width: 250px !important;
}

.navbar-nav>li>a {
    padding: 8px 9px;
    font-size: 13px;
    font-weight: 600;
}
.dropdown-menu{
    box-shadow: 0 6px 12px rgba(0,0,0,.175) !important;
    font-size: 13px;
    min-width: 210px !important;
}
.dropdown-menu>li{
    height: 26px;
}
.dropdown-menu>li:hover, .dropdown-menu>li:hover:after{
    background-color: #4261a3 !important;
    color: white !important;
    transition: 0.2s;
}
.dropdown-menu>li>a:hover, .dropdown-menu>li:hover>a {
    background-color: #4261a3;
    color: white !important;
}
li.active{
    background-color: #4261a3 !important;
}

li.active>a{
    color: white !important;
}

.dropdown-menu>.row>div>li>a{
    color: #777 !important;
}

.col-4-test{
    width: auto;
}

.text-white-smoke{
    color: #dedfe1 !important;
}
.user-panel .image img{
    max-width: 40px !important;
}

/* general */

.mt-4{
    margin-top: 4px !important;
}
.mt-3{
    margin-top: 3px !important;
}

.btn-blue{
    background-color: #5276c2;
    color: white;
    border: 2px solid #2674ce !important;
}

/* Top Menu */
.dropdown-submenu{
    position: relative;
}
.dropdown-submenu .dropdown-menu{
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.dropdown-submenu {
    position: relative;
  }
  
  .dropdown-submenu>.dropdown-menu {
    top: 0;
    /* border: 2px solid #12204e ; */
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
    overflow: hidden;
    overflow-y: auto;
    max-height: calc(100vh - 40vh);
    min-height: fit-content;
  }
  
  .dropdown-submenu:hover>.dropdown-menu, .dropdown:hover>.dropdown-menu {
    display: block;
  }
  
  .dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
  }
  
  .dropdown-submenu:hover>a:after {
    border-left-color: #fff;
  }
  
  .dropdown-submenu.pull-left {
    float: none;
  }
  
  .dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
  }

/* Dashboard */
.small-box {
    border-radius: 2px;
    position: relative;
    display: block;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.small-box .icon {
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    position: absolute;
    top: 9px;
    text-align: center;
    right: 10px;
    width: 42px;
    padding: 10px;
    z-index: 0;
    border-radius: 21px;
    font-size: 16px;
}
.box-blue .icon{
    background-color: #b1d5f5;
    color: rgb(38 73 194);
}
.box-blue{
    border-right: 4px solid rgb(38 73 194);
}
.box-yellow .icon{
    background-color: #ebcc1c4a;
    color: rgb(203 166 0);
}
.box-yellow{
    border-right: 4px solid rgb(255 213 21);
}
.box-red{
    border-right: 4px solid #ff4773;
}
.box-red .icon{
    background-color: #ffdde0;
    color: #f3114d;
}
.box-info .icon{
    background-color: #eed0ff;
    color: #8b00d3;
}
.box-info{
    border-right: 4px solid #8b00d3;
}
.box-footer{
    color: #2e3131;
    font-size: 15px;
}
.small-box p {
    margin-top: 5px;
    color: #606163;
}
.small-box a {
    color: #606163;
    font-size: 13px;
}
.small-box:after {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    position: absolute;
    right: 0;
    bottom: 0;
}
.box-red:after{
    border-bottom: 23px solid #ff4773;
}
.box-blue:after{
    border-bottom: 23px solid rgb(38 73 194);
}
.box-yellow:after{
    border-bottom: 23px solid rgb(255 213 21);
}
.box-info:after{
    border-bottom: 23px solid #8b00d3;
}

.small-box:hover {
    text-decoration: none;
    color: #797a7e;
}
.small-box:hover .icon {
    width: 52px;
    border-radius: 26px;
    font-size: 21px;
}
.dataTables_scrollHeadInner, .datatable{
    width: 100% !important;
}

/* Purchase */
#addPurchaseItem td>input{
    padding: 3px;
}

#purchaseTable td{
    padding: 0px;
}


#purchaseTable>tfoot>tr>td{
    vertical-align: middle;
    padding: 5px;
}

#purchaseTable>tfoot>tr>td>input{
    padding: 4px;
}

.required:after {
    content: " *";
    color: red;
}

.label-warning {
    color: #fff;
    padding: 0px 6px 2px 6px;
    font-size: 10px;
    border-radius: 9rem;
}

.product_menu{
    background-color: whitesmoke;
}

.badge-status{
    border: 1px !important;
    font-size: 9px;
    padding: 1px 7px;
}

.top_address{
    line-height: 22px;
}
.location_category{
    width: 200px;
    margin-left: 20px;
}

.loc_category{
    margin-bottom: 3px;
}

.search-panel{
    align-items: center;
    display: flex;
}

.badge-pill{
    line-height: 2px;
    padding: 5px 5px;
    border-radius: 16px;
    margin-top: 2px;
    height: 14px;
    margin-left: 3px;
    width: 27px;
    border: 1px solid #c41616;
    position: absolute;
}

.main-header .navbar .nav>li>a>.label {
    border: 1px solid #be3c3c;
    position: absolute;
    top: 0px;
    right: 7px;
    font-size: 11px;
    line-height: 7px;
    padding: 5px 0px;
    border-radius: 50em;
    height: 18px;
    width: 18px;
}

a{
    color: #285ac3;
}

.modal-blose-btn{
    margin-top: -21px !important;
}

.w-100px{
    width: 100px !important;
}
.d-flex{
    display: flex !important;
}


/* Select 2 */
.select2-container--classic .select2-selection--single {
    background-color: white;
    border: 1px solid #a09898;
    border-radius: 4px;
    outline: 0;
    background-image: none;
    filter: none;
    height: 100% !important;
}

.select2-container--classic .select2-selection--single .select2-selection__arrow {
    background-color: #ffffff;
    border: none;
    border-left: 1px solid #fff;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    height: 32px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
    background-image: none;
    filter: none;
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-image: none;
}

/* POS screen */

.category-check .btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 5px;
    border-radius: 4px;
    white-space: normal;
    color: #3b5998;
    background-color: #f5f5f5!important;
    box-shadow: 0 3px 5px 0 rgb(157 160 155 / 30%);
    width: 122px;
    height: 104px;
}

.category-check .btn-success:hover{
    background-color: #5cb85c!important;
    color: white;
}

.bg-grey{
    background-color: #e5e5e5;
    border: 1px solid #d2d2d2;
}

.mt-24{
    margin-top: 24px;
}
.mt-5{
    margin-top: 5px;
}

.display-inline{
    display: inline-table;
}

/* Currency input group */
.currency_option{
    border: 1px solid #ded5d5 !important;
}
.currency_option .input-group-addon{
    border: none !important;
    padding: 0px !important;
}
.currency_option .input-group-addon .select2{
    width: 70px !important;
} 
.currency_option .select2-selection--single{
    border: 1px solid #e1e1e1 !important;
    border-radius: 0px !important;
} 

.bg-white{
    background-color: white;
}

td{
    vertical-align: middle ;
}

/* second checbox  */

.d-none {
    display: none;
}

.mt-10{
    margin-top: 10px;
}

.currency_option .checkbox-addon{
    padding: 0px 7px !important;
}

.full-width{
    width:100% !important;
    flex-shrink: 1;
}
#choose_customer, .choose_product{
    height: 35px;
}
.select2 {
    width:100% !important;
    height: 100% !important;
}
.h-100{
    height: 100%;
}
.w-15{
    width: 15%;
}

.w-20{
    width: 20%;
}
.w-10{
    width: 10%;
}

.date-group{
    border:1px solid #c5c5c5;
}
.payment_term_gp .select2 {
    width: 70% !important;
    margin-right: 5px;
}

/* Slick Slider */
#slick-slider .element{
    width: auto !important;
}
.slick-track {
    float: left !important;
    width: max-content !important;
}
#slick-slider{
    width: 700px;
    display: flex;
    align-items: center;
}
.sidebar-collapse #slick-slider{
    width: 900px;
    display: flex;
    align-items: center;
}


.slick-list{
    margin: 0px 10px !important;
}

.slick-prev:before, .slick-next:before {
    color: #54c254 !important;
}

.mt-22{
    margin-top: 22px;
}

/* Header */
.top-fixed-link {
    margin-left: 30px !important;
}

.bg-white{
    background-color: white !important;
}
.border-top-none{
    border-top: none !important;
}

.pl-0{
    padding-left: 0px !important;
}
.datepicker {
    width: 100% !important;
}

#purchaseTable, #purchaseTable .form-control{
    font-size: 13px;
}
.view-header .header-icon{
    color: #3b5998 !important;
}

.main-sidebar{
    background-color: #274077;
}
.sidebar-menu>li.active>a{
    background: #2b4383;
}
.sidebar-menu .treeview-menu {
    background-color: #12204e;
}
.sidebar-menu>li:hover>a {
    background: #20386c;
}
.sidebar-menu>li.active>a:before {
    background: #3086fa;
}
.bg-auto{
    background-color: #3b5998;
}

.sidebar-menu>li>a, .sidebar-menu .treeview-menu>li>a  {
    color: #ebebeb;
}

.btn-link{
    text-decoration: none !important;
}
.btn-link:active, .btn-link:hover{
    color: #12204e !important;
}
thead{
    background-color: #5a65ac2b;
}
.height-auto{
    height: auto!important;
}

.pointer-none{
    pointer-events: none !important;
}
.adjust_product{
    max-width: 275px !important;
}
.loading-results{
    display: none !important;
}

@media print {
    div.divFooter {
      position: fixed;
      bottom: 0;
    }
    a[href]:after {
        content: none !important;
    }
    @page {
        margin-top: 0;
        margin-bottom: 30;
    }
}
.sign-line {
    border-bottom: 2px solid grey;
}
.text-bold{
    font-weight: bold;
}
.btn-login{
    margin-top: 35px !important;
}

.btn-block{
    width: 100%;
}

.link-menu-dropdown .dropdown-menu{
    right: 0;
}
.link-menu-dropdown .dropdown-toggle::after{
    display: none;
}
.float-left{
    float: left;
}

@media (min-width: 996px) {

    .top_navbar .collapse .nav-md {
        display: none !important;
    }

    .logo{
        display: none !important;
    }
    .content {  
        padding: 0 30px 10px;
    }

    .d-md-block{
        display: block;
    }
    .d-md-none{
        display: none;
    }

    .collapse-filter{
        margin-top: -20px;
    }

    .mt-md-1{
        margin-top: 1rem !important;
    }

}

/* Mobile */
@media (max-width: 995px) {
    .container-center{
        width: auto !important;
        max-width: none !important;
        margin: 0px !important;
        padding: 0px 10px !important;
        height: 100% !important;
    }
    .logo img{
        width: 60px !important;
        margin-bottom: 20px;
    }
    .logo-middle{
        margin-top: 30% !important;
    }
    .border-white{
        border:white !important;
    }
    .view-header .header-icon {
        margin-top: 10px !important;
    }

    .login-navbar, .login-navbar .navbar-brand{
        height: 50px;
    }
    .view-header{
        display: none !important;
        text-align: center !important;
    }
    .bg-sm-white{
        background-color: white !important;
    }
    .panel-bd>.panel-heading{
        display: block;
        overflow: auto;
    }

    .login-panel-heading::before {
        border-top: none !important;
    }

    .container-center::before {
        content: '';
        width: 0;
        height: 0;
        border-bottom: 79px solid #458ac67a;
        border-left: 363px solid transparent;
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: -1;
    }
    .user-panel{
        padding-left: 15px;
    }

    /* Datatable */
    .dataTables_filter {
        float: left !important;
        margin-top: 7px;
    }
    .dataTables_length{
        float: left !important;
        margin-top: 10px;
    }
    /* End Datatable */

    .category-check .btn {
        height: 37px;
        overflow: auto;
    }
    .lobidrag .panel-title span{
        float: left;
        margin-right: 20px;
        margin-left: 10px;
    }
    .padding-lefttitle{
        float: left !important;
    }

    .main-header .navbar{
        padding-top: 5px;
    }

    .top-bar{
        margin-top: 0px !important;
    }

    .px-sm-0{
        padding: 0px !important;
    }
        
    .sm-none{
        display: none;
    }
    .mt-n-5{
        margin-top: -34px;
    }
    .mr-sm-0{
        margin-right: 0rem !important;
    }

    .mt-sm-2{
        margin-top: 2rem;
    }
    .pr-sm-0{
        padding-right: 0px !important;
    }
    .pl-sm-2{
        padding-left: 2px;
    }
    .mt-sm-1{
        margin-top: 1rem !important;
    }
    .mr-sm-2{
        margin-left: 2rem;
    }
}

@media screen and (max-width: 640px){
    div.dt-buttons {
        padding-top: 10px !important;
    }
    .dataTables_filter{
        padding-left: 10px;
    }
}
.text-left{
    text-align: left !important;
}

/* Small screen */
@media (max-width: 767px) {
   .btn-sm-block{
    width: 100%;
   }
   .mt-22{
       margin-top: 0px;
   }
   .company_name{
        font-size: 18px !important;
   }
   .btn-xs-xs{
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
   }
   .dataTables_length>label .select2-container{
       width: 60px !important;
   }
   .dataTables_filter>label>input{
    width: 100% !important;
   }
   .dataTables_filter>label{
    display: flex;
    width: 100%;
   }
   .dataTables_filter{
    margin-top: 14px;
   }
   .mt-xs-2{
        margin-top: 2rem;
    }
    .mt-xs-1{
        margin-top: 1rem;
    }

    .table-responsive {
        border: none !important;
    }    

}
/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .container-center{
        padding: 0px 180px !important;
    }
    .logo{
        margin-top: 70% !important;
    }

    .right-drop-down{
        bottom: 10px;
    }
}

@media (max-width: 1279px) {
    /* Header Menu */
   
    .content-wrapper{
        margin-top: 62px !important;
    }
    .d-xs-none {
        display: none;
    }

    #slick-slider{
        display:none !important;
    }

    .main-header .sidebar-toggle{
        float: right;
        color: #fdfdfd;
        border-right: none;
    }

    .sidebar-toggle{
        display: block !important;
    }

    .main-header .sidebar-toggle:hover {
        background-color: #3b5998 !important;
    }

    .navbar-brand {
        height: 40px;
        padding: 3px 15px !important;
    }
    /* Ensure logo stays circular on mobile */
    .navbar.navbar-static-top .navbar-header .navbar-brand,
    .navbar.top_navbar .navbar-header .navbar-brand,
    .navbar-header .navbar-brand,
    .top_navbar .navbar-brand {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        overflow: hidden !important;
        aspect-ratio: 1/1 !important;
    }
    .navbar-header {
        float: left !important;
    }
    .top_navbar .collapse .nav-lg {
        display: none !important;
    }

    .navbar-right>li>a {
        padding: 8px 2px !important;
        font-size: 13px;
        font-weight: 600;
    }

    .navbar_left>li>a>i {
        width: 25px;
        font-size: 13px;
    }

    .navbar_left>li>a {
        font-size: 12px;
    }
    .navbar-right{
        display: none !important;
    }

    .main-sidebar{
        width: 250px !important;
    }
}

@media (max-width: 1340px) {

    #slick-slider{
        width: 600px !important;
    }
}

@media (max-width: 1125px) {

    #slick-slider{
        width: 500px !important;
    }
}


@media (max-width: 920px) {

    #slick-slider{
        width: 400px !important;
    }
}


.dataTables_wrapper::-webkit-scrollbar {
    height: 12px;
}

.dataTables_wrapper::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

.dataTables_wrapper::-webkit-scrollbar-thumb {
    background-color: rgb(55, 71, 103); 
    border-radius: 10px;
}

/* Change color when hovered */
.dataTables_wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgb(75, 91, 123);
}

/* For Firefox */
.dataTables_wrapper {
    scrollbar-color: rgb(55, 71, 103) #f1f1f1;
    scrollbar-width: thin; 
}

.form-group{
    margin-bottom: 5px !important;
}

.table{
    margin-bottom: 10px !important;
}

.dropdown-submenu .dropdown-menu {
    min-height: 0px;
    max-height: 50vh; 
    overflow-y: auto; 
    scrollbar-width: none;
}

.panel-title {
    color: #000;
}

@media (max-width: 1279px) {
    .main-sidebar {
        width: 300px !important;
    }
}

.dataTables_wrapper .col-12, .dataTables_wrapper .col-sm-4 {
    padding-right: 0;
    padding-left: 0;
}

.dataTables_wrapper #PurList_length {
    display: flex;
    justify-content: center;
}