html {
    scroll-behavior: smooth;
  }
body {
    background-color: #f4f8fb!important;
}

a {
    color: #558b2f;
}

a:hover {
    color: #234d12;
}

.text-mandatory {
    color: #f44336!important;
}

label {
    font-weight: 700;
}

/*BOOTSTRAP CUSTOM*/
.form-control {
    border: 2px solid #ccc;
}

.col-form-label {
    font-weight: 700;
    text-align: right;
}

.form-control:focus {
    border: 2px solid #234d12!important;
}

.selectize-input.focus {
    border: 2px solid!important;
    border-color: #234d12!important;
    outline: 0;
    box-shadow: none!important;
}

.selectize-control.multi .selectize-input>div {
    background: #558b2f!important;
    color: #ffffff!important;
    border: 0px solid #dee2e6;
}

.selectize-control.multi .selectize-input>div.active {
    background: #234d12!important;
    color: #ffffff!important;
    border: 0px solid #dee2e6;
}

.selectize-dropdown .active {
    background-color: #558b2f!important;
    color: #f8f9fa!important;
}

.selectize-dropdown multi form-control select-search {
    display: block!important;
    visibility: visible!important;
}

.input-group-text {
    background-color: #558b2f!important;
    border: 1px solid #234d12;
    color: #FFFFFF;
}

.btn-primary {
    color: #fff;
    background-color: #558b2f;
}

.btn-primary:hover {
    background-color: #234d12;
}

.btn-warning {
    color: #fff;
    background-color: #ffa000;
}

.btn-warning:hover {
    background-color: #ff8f00;
}

.btn-secondary {
    color: #fff;
    background-color: #558b2f;
}

.btn-secondary:hover {
    background-color: #234d12;
}

.sidebar-dark .nav-sidebar>.nav-item-open>.nav-link:not(.disabled),
.sidebar-dark .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-light .card[class*=bg-]:not(.bg-light):not(.bg-white):not(.bg-transparent) .nav-sidebar>.nav-item-open>.nav-link:not(.disabled),
.sidebar-light .card[class*=bg-]:not(.bg-light):not(.bg-white):not(.bg-transparent) .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #558b2f!important;
}

.sidebar-dark .nav-sidebar>.nav-item>.nav-link.active {
    background-color: #558b2f!important;
}

.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:focus,
.dataTables_paginate .paginate_button.current:hover {
    color: #fff;
    background-color: #558b2f;
}

.sidebar-dark .sidebar-mobile-toggler:not([class*=bg-]) {
    background-color: #689f38!important;
}

.sidebar-dark .nav-sidebar .nav-link>span {
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    -webkit-transition-property: transform;
    transition-property: transform
}

.nav-group-sub .nav-link {
    padding: .625rem 1.25rem 0.625rem 1.5rem!important;
}

.sidebar-dark .nav-sidebar .nav-link:active>span,
.sidebar-dark .nav-sidebar .nav-link:focus>span,
.sidebar-dark .nav-sidebar .nav-link:hover>span {
    -webkit-transform: translateX(8px);
    transform: translateX(8px)
}

.sidebar-icon-custom-margin {
    margin-left: -32px!important;
    margin-right: 5px!important;
}

.select2-container {
    outline: 0;
    position: relative;
    display: block;
    vertical-align: middle;
    text-align: left;
}

span.select2-container {
    z-index: 10050;
}


/*PUBLIC CUSTOM*/

.custom-primary-bg {
    background-color: #558b2f!important;
}

.custom-secondery-bg {
    background-color: #234d12!important;
}

.custom-bg-green {
    background-color: #558b2f!important;
}

.custom-btn-success {
    color: #fff!important;
    background-color: #558b2f!important;
}

.custom-btn-success:hover {
    color: #fff!important;
    background-color: #234d12!important;
}

.custom-btn-print {
    color: #fff;
    background-color: #546e7a;
}

.custom-btn-print:hover {
    color: #fff;
    background-color: #607d8b;
}

.custom-border-success {
    border-color: #558b2f!important;
}

.custom-text-success {
    color: #558b2f!important;
}

.custom-input-group-dropdown-btn {
    background-color: #558b2f!important;
    border: 1px solid #234d12!important;
    color: #FFFFFF;
}

.custom-input-group-dropdown-btn:hover {
    color: #FFFFFF!important;
    background-color: #234d12!important;
}

.custom-input-group-dropdown-btn.focus,
.custom-input-group-dropdown-btn:focus,
.custom-input-group-dropdown-btn:not([disabled]):not(.disabled).active,
.btn-light:not([disabled]):not(.disabled):active,
.show>.custom-input-group-dropdown-btn.dropdown-toggle {
    color: #FFFFFF!important;
}

.custom-dropdown-menu-right {
    position: absolute!important;
    /* left: 70px!important; */
    left: 10px!important;
}

.dt-button-collection:not(.fixed) {
    top: 100%!important;
    right: 0!important;
}

.dt-button-collection {
    min-width: 3.25rem!important;
    padding: 0px!important;
    border-radius: 0rem!important;
}

.dt-button-collection:not(.fixed) {
    top: 100%!important;
    left: 12px!important;
    right: 0!important;
}

div.dt-button-collection div.dropdown-menu {
    display: block!important;
    z-index: 99999999;
    position: relative;
}

.dropdown-menu {
    border: none!important;
}

.dropdown-item {
    padding: 0.2rem 1rem!important;
}

.dropdown-item:hover {
    color: #FFFFFF;
    background-color: #558b2f!important;
}
.sidebar-content {
    position: fixed!important;
    top: 4.6rem!important;
    display: -ms-flexbox!important;
    display: flex!important;
    -ms-flex-direction: column!important;
    flex-direction: column!important;
    -ms-flex: 1!important;
    flex: 1!important;
    padding: 16px!important;
    overflow-y: auto!important;
}


@media print {
    .badge{
        border: none!important;;
    }
    .badge-warning {
        color: #000000;
        background-color: #ffffff;
    }
    .badge-success {
        color: #000000;
        background-color: #ffffff;
    }

    #get_table_data.table tfoot {
        display: table-row-group;
    }
    .sidebar {
        display: none!important;
    }
    .navbar {
        display: none!important;
    }
    .page-header {
        display: none!important;
    }
    .card-header {
        display: none!important;
    }
    .card {
        border: none!important;
    }
    .hide-filter-on-print{
        display: none!important;
    }

    .fadeInDown{
        display: none!important;
    }
    a{
        text-decoration: none!important;
    }

    a {
        color: black; /* Set the color to black for printing */
        text-decoration: underline; /* Add underline for printed links if desired */
      }
}


/*DATE PICKER*/

@media (min-width: 564px) {
    .daterangepicker {
        width: 50%;
    }
    .daterangepicker .drp-calendar.right {
        margin-left: 40px;
    }
}



.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: #234d12;
}

.daterangepicker .ranges li.active {
    background-color: #234d12;
}

.daterangepicker th {
    color: #234d12;
    font-weight: 700;
}

.daterangepicker.show-calendar .ranges {
    margin-top: -1px;
}

.daterangepicker .ranges li {
    padding: 10px 12px;
}

.dataTables_empty{
    text-align: center;
    font-size: 15px;
}

.invoice-table td {
    vertical-align: top;
}

.dataTables_wrapper .table-bordered {
    border-top: 1px solid #ccc;
}

.table-bordered-report td, .table-bordered-report th {
    border-top: 1.5px solid #000000!important;
    border: 1.5px solid #000000!important;
}

.table-bordered-report {
    border-top: 1.5px solid #000000!important;
}

.card-header:not([class*=bg-]):not([class*=alpha-]) {
    background-color: #558b2f0a;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom-width: 2px;
    margin-bottom: 15px;
}

.navbar-brand img {
    height: 2.5rem;
    display: block;
}

.dataTables_filter {
    margin: 0 0 1.25rem 0rem;
}

.swal2-styled.swal2-confirm {
    background-color: #558b2f;
}

/* .table>thead>tr{
    background-color: #558b2f0a;
    border: 1px solid #eee;
}

.table>tbody>tr {
    border-bottom: 2px solid #ddd;
}

.table>tbody>tr>td,
.table>tbody>tr>th,
.table>tfoot>tr>td,
.table>tfoot>tr>th,
.table>thead>tr>td,
.table>thead>tr>th {
    border-bottom: 2px solid #ddd;
}

.table>tbody>tr {
    border-bottom: 2px solid #ddd;
} */

.dataTables_paginate {
    margin: 5px 0 1.25rem 1.25rem;
}

div.dt-buttons {
    position: relative;
    float: right!important;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }


/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px gray;
    border-radius: 5px;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: #558b2f;
    border-radius: 5px;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #558b2f;
    border-radius: 5px;
  }

  .card-header:first-child {
    background-color: #558b2f0a!important;
}

.nav-tabs-solid .nav-link {
    background-color: #cccccc!important;
    color: #324148!important;
    font-weight: 700;
}

.nav-tabs-solid .nav-link.active {
    background-color: #558b2f!important;
    color: #FFFFFF!important;
}

.search-ul{
    position: absolute;
    z-index: 9999;
    width: 95%;
    box-shadow: 1px 4px 5px 0px rgba(151,147,147,0.75);
    -webkit-box-shadow: 1px 4px 5px 0px rgba(151,147,147,0.75);
    -moz-box-shadow: 1px 4px 5px 0px rgba(151,147,147,0.75);
}

.search-list{
    display: block!important;
    padding: 0.5rem 1.25rem!important;
    font-weight:700;
    border-bottom:2px solid #dbdbdb!important;
}

.a{
    background-color:#f1f1f1a1;
}
.a a{
    background-color:#f1f1f1a1;
}

.search-list:hover{
    background-color: #f1f1f1a1;
}

.search-list span:hover{
    color: #FFFFFF;
}

.report-ul li{
    background: #cccccc2e;
    border-bottom: 2px solid #CCCCCC;
}

.report-ul li:hover{
    background: #cccccc57;
}

.report-ul li a span{
    font-weight: 700;
}

.fix-sticky table thead {
    background: #558b2f!important;
    color: #FFFFFF;
}

.table-ft{
    background: #558b2f!important;
    color: #FFFFFF;
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #558b2f;
    border-color: #558b2f;
}

.dropdown-item.active {
    color: #fff;
    background-color: #558b2f;
}

/* th {
    background: white;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
  } */


.licensetooltip {
  position: relative;
  display: inline-block;
}

.licensetooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.licensetooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.licensetooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.optgroup-header{
    font-weight: bolder;
  }

/* LOADER */
  .loader {
    border: 5px solid #558b2f5e;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    border-top: 5px solid #558b2f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 9;
    visibility: hidden;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* BACK TO TOP */
.btn-to-top-visible {
    visibility: visible;
    opacity: 1;
}

.btn-to-top {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    -ms-flex-item-align: end;
    align-self: flex-end;
    opacity: 1;
    z-index: 999;
    transition: opacity ease-in-out 0.15s,visibility ease-in-out 0.15s,bottom ease-in-out 0.15s;
}

.btn-to-top>a>i{
    font-size: 35px;
}

.custom-table thead tr th{
    width: 200px!important;
}

.custom-table thead tr th:first-child{
    width: 100px!important;
}

.custom-table-chalan thead tr th{
    width: 200px!important;
    white-space: nowrap!important;
}

.custom-table-purchase-chalan thead tr th{
    width: 200px!important;
    white-space: nowrap!important;
}

@media (min-width:768px)
{
    .table-responsive{
        overflow-x: unset;
        overflow-y: unset;
    }
    .custom-table-purchase-responsive{
        overflow: auto!important;
    }
}
@media (max-width: 768px) {
    .custom-table{
        width: 225%!important;
    }

    .custom-table-chalan{
        width: 250%!important;
    }

    .custom-table-chalan td{
        width: 20%;
    }
    .custom-table-footer>div{
        width: 100%!important;
        float:none!important;
    }
    .custom-table-footer-50{
        width: 100%!important;
        float:none!important;
        margin-left:0%!important;
    }

    .custom-table-payment{
        width: 150%;
    }

    .custom-table-purchase-chalan
    {
        width: 350%!important;
    }

    .selectize-dropdown {
        position: initial!important;
      }
  }


  .selectize-dropdown {
    position: absolute;
    z-index: 10000; /* adjust as necessary */
    border: 1px solid #d0d0d0;
    background: #ffffff;
    margin: -1px 0 0 0;
    border-top: 0 none;
  }

  table tbody tr td a{
    white-space: nowrap!important;
  }

  /* MOBILE CART */
  .mobile_cart {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #FFFFFF;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
  }

  .mobile_cart a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }

  .mobile_cart a:hover {
    color: #f1f1f1;
  }

  .mobile_cart .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }

  @media screen and (max-height: 450px) {
    .mobile_cart {padding-top: 15px;}
    .mobile_cart a {font-size: 18px;}
  }

  /* MOBILE INTERFACE DASHBOARD */
  .dashboard-items a{
    color: #FFFFFF!important;
  }

  .dashboard-items{
    margin: auto;
    text-align:center;
    background: #558b2f;
    transition: all 0.5s;
    padding: 20px 0px;
  }

  .dashboard-items:hover{
    background: #FFFFFF;
    border: 2px solid #558b2f;
  }

  .dashboard-items:hover a{
    color: #558b2f!important;
  }



  .dashboard-item-icon i{
    font-size: 25px;
  }

  .dashboard-item-title{
    font-size: 15px;
    margin-top: 5px;
  }
