@media (max-width: 767px) {
    .main-header .navbar-custom-menu {
        float: none !important;
        display: block !important;
    }
    .main-header .navbar-custom-menu .dropdown-menu {
        left: auto !important;
    }
    .skin-blue-light .main-header .navbar .dropdown-menu li a {
        color: #777;
    }
    .main-header .navbar {
      height: auto;
    }
}
.bg-danger {
    background-color: #f2dede !important;
}
.btn-big {
    padding: 10px 30px;
    font-size: 18px;
    line-height: 1.3333333;
}

.of-visible {
    overflow: visible !important;
}

#online_indicator {
  font-size: 8px;
  vertical-align: middle;
}

.pt-0 {
  padding-top: 0px;
}
.f-right {
  float: right;
}
.mb-10 {
  margin-bottom: 10px;
}
.discount-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 18px;
  padding: 7px;
}

.discount-badge-small {
  position: absolute;
  top: -2px;
  left: 10px;
  font-size: 12px;
  padding: 6px;
}
.product-info-table td, .product-info-table th {
  font-size: 12px;
}
.catalogue {
  max-height: 127px;
  margin: auto;
  margin-bottom: 18px;
}
.catalogue-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
  margin-bottom: 10px;
}
.bg-light-gray {
  background-color: #f8f8f8 !important;
}
.p-5-5 {
  padding: 5px 5px !important;
}
.m-4 {
  margin: 4px;
}
.skin-black .main-header, .skin-black-light .main-header {
  color: #525f7f !important;
}
.skin-black .main-header .navbar .nav .open>a {
  color: #999 !important;
}
.skin-black .main-header .navbar .nav>li>a:hover{
  color: #999 !important;
}
.skin-black .main-header .navbar > .sidebar-toggle:hover {
  color: #999 !important;
}
.mt-0{
  margin-top: 0 !important;
}
.table-pdf thead tr{
  background-color: #357ca5 !important;
  color: #fff;
}
.table-pdf thead tr th {
  color: #fff !important;
}
.blue-heading {
  background-color: #357ca5;
  color: #fff;
}

.table-pdf .odd {
    background-color: #DCE6F1;
}
.p-4{
  padding: 4px;
}
.p-10{
  padding: 10px !important;
}
.jquery-top-scrollbar{
    height: 6px !important;
}
.jquery-top-scrollbar div {
    height: 6px !important;
}
.scroll-top-bottom {
  width: 100%; 
  overflow: scroll;
}
.scroll-top-bottom::-webkit-scrollbar {
    height: 6px;
}

.scrolltop {
  display:none;
  width:100%;
  margin:0 auto;
  position:fixed;
  bottom:20px;
  right:10px; 
}
.scroll {
  position:absolute;
  right:20px;
  bottom:20px;
  background:#b2b2b2;
  background:rgba(178,178,178,0.7);
  padding:7px;
  text-align: center;
  margin: 0 0 0 0;
  cursor:pointer;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s; 
  border-radius: 6px;   
}
.scroll:hover {
  background:rgba(178,178,178,1.0);
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;    
}
.scroll:hover .fas {
  padding-top:-10px;
}
.scroll .fas {
  font-size:25px;
  margin-top:-5px;
  margin-left:1px;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;  
}

.f-left {
  float: left;
}
.align-left {
 text-align: left;
}
.align-right {
 text-align: right;
}

.table-pdf {
  border-collapse: collapse;
  width: 100%;
  border-spacing: 8px 10px;
}
.td-border td, .td-border th{
  border-bottom: 1px solid lightgrey;
  padding: 8px 5px;
}

.ws-nowrap {
  white-space:nowrap;
}

.btn-app>.fas, .btn-app>.fab{
    font-size: 20px;
    display: block;
}
.dropdown-menu>li>a>.fas{
    margin-right: 6px;
}
.mt-5 {
  margin-top: 5px !important;
}
.pos-form-actions{
  height: auto;
  padding-top: 12px;
  padding-bottom: 20px;
  position: fixed;
  bottom: 0px;
  /* background-color: #D1D5DC; */
  width: 100%;
  z-index: 1000;
}
.mb-12 {
  margin-bottom: 12px !important;
}
.pb-0{
  padding-bottom: 0px !important;
}
.pr-12{
  padding-right: 12px !important;
}
.main-header .sidebar-toggle:before {
    content: "" !important;
}
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
} 
.margin-bottom-20 {
  margin-bottom: 20px !important;
}
.text-white {
  color: #fff;
}
.wizard > .steps > ul > li {
  width: 33.33% !important;
}
.wizard > .content {
  /* background: #445867 !important; */
}
legend {
  color: #fff;
  margin-bottom: 6px;
  border-bottom: none;
}
.left-col {
  background: linear-gradient(0deg,rgba(0, 0, 0, 0.76),rgba(51, 51, 51, 0.32)),url(../img/home-bg.jpg); 
  text-align: center;
  background-size: cover;
  background-position: center;
}
.left-col-content {
  color: #1A7BF9;
  width: 100%;
}
.login-header {
  font-size: 27px;
  font-weight: 600;
}
.login-header a {
  color: #fff;
}
.form-header {
  font-size: 18px;
  margin: 16px 0;
}
.btn-login {
  padding: 6px 52px !important;
}


/* .right-col label {
  color: #fff;
}

.right-col a, .text-white a {
  color: #fff;
  font-weight: 600;
  font-size: 15px
}
.right-col a:hover, .text-white a:hover {
  color: #ccc;
}
.right-col-content {
  padding: 10% 16%;
  padding-bottom: 3%;
}
.right-col-content-register {
  padding: 2% 8%;
} */

.input_inline {
  width: 100%;
  display: inline-flex;
}
.input_inline input, .input_inline span {
  width: 50%;
}
.bg-manufacturing {
  background-color: #ff851b;
}
.img-thumbnail {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border .2s ease-in-out;
  padding: 4px;
  margin: 3px;
  text-align: center;
}
.img-thumbnail>.badge{
  position: absolute;
  top: -5px;
  right: -7px;
  font-size: 9px;
  font-weight: 400;
  cursor: pointer;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu {
  max-height: 350px;
}
.bg-aqua-lite {
  background-color: #7FFFD4;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu>li>a {
  white-space: normal;
}
.spacer {
  margin-top: 20px;
}
#product_list_body {
    max-height: 485px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.div-overlay {
    cursor: not-allowed;
    background: #e9e9e9; 
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}

.d-inline-table {
  display: inline-table;
}

.label-round{
  font-size: 8px;
  border-radius: 44%;
}
.table>tbody+tbody{
  border-top: 0;
}
.table-pl-12 td, .table-pl-12 th{
  padding-left: 12px !important;
}
table tbody td.pl-20-td{
  padding-left: 20px !important;
}
table.table-border-center > tbody > tr > td:first-child, 
table.table-border-center > thead > tr > th:first-child,
table.table-border-center > tfoot > tr > td:first-child
{
  border-right: 1px solid darkgray;
}
table.table-border-center-col > tbody > tr > td:nth-child(2), 
table.table-border-center-col > thead > tr > th:nth-child(2),
table.table-border-center-col > tfoot > tr > td:nth-child(2)
{
  border-right: 1px solid darkgray;
  border-left: 1px solid darkgray;
}
.bg-transparent{
  background-color: transparent !important;
}
.mb-0{
  margin-bottom: 0;
}

.nav-tabs>li>a{
  font-size: 18px;
  font-weight: 600;
}
.table-transparent, .table-transparent th {
    background-color: transparent !important;
    color: #000 !important;
}
.td-full-width {
  white-space:nowrap;
}
.font-17{
    font-size: 17px !important;
}
table.dataTable tbody>tr.selected{
    background-color: #B0BED9;
}
tr.footer-total > td {
    vertical-align: middle !important;
}
.error{
	color: red !important;
}
/*  pos tab */
div.pos-tab-container{
  z-index: 10;
  background-color: #ffffff;
  padding: 0 !important;
  border-radius: 4px;
  -moz-border-radius: 4px;
  border:1px solid #ddd;
    margin-bottom: 28px;
  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  -moz-box-shadow: 0 6px 12px rgba(0,0,0,.175);
  background-clip: padding-box;
}
div.pos-tab-menu{
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
}
div.pos-tab-menu div.list-group{
  margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a{
  margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a .glyphicon,
div.pos-tab-menu div.list-group>a .fa {
  color: #5A55A3;
}
div.pos-tab-menu div.list-group>a:first-child{
  border-top-right-radius: 0;
  -moz-border-top-right-radius: 0;
}
div.pos-tab-menu div.list-group>a:last-child{
  border-bottom-right-radius: 0;
  -moz-border-bottom-right-radius: 0;
}


/* div.pos-tab-menu div.list-group>a.active,
div.pos-tab-menu div.list-group>a.active .glyphicon,
div.pos-tab-menu div.list-group>a.active .fa{
  background-color: #3c8dbc;
  color: #ffffff;
    border-color: #3c8dbc;
} */

div.pos-tab-menu div.list-group > a.active,
div.pos-tab-menu div.list-group > a.active .glyphicon,
div.pos-tab-menu div.list-group > a.active .fa {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  color: #ffffff;
  border-color: transparent;
}


div.pos-tab-menu div.list-group>a.active:after{
  /* content: ''; */
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -13px;
  border-left: 0;
  border-bottom: 13px solid transparent;
  border-top: 13px solid transparent;
  border-left: 10px solid #3c8dbc;
}

div.pos-tab-content{
  background-color: #ffffff;
  /* border: 1px solid #eeeeee; */
  padding-left: 20px;
  padding-top: 20px;
}

div.pos-tab div.pos-tab-content:not(.active){
  display: none;
}

.add-product-price-table th{
	background-color: #5cb85c;
    color: white;
}
.blue-header th {
	background-color: #3c8dbc;
    color: white;
}
.table-th-green th{
	background-color: #5cb85c;
    color: white;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
.active-cell {
    border: 2px dotted #3c8dbc !important;
}
.cursor-pointer{
    cursor: pointer !important;
}
.pos_product_div{
    /* min-height: 47vh;
    max-height: 57vh; */
    overflow-y: auto;
    /* margin-bottom: 20px; */
    height: 40vh !important;
}
.bg-lightgray{
    background-color: #F0EDED !important;
}
.balance_due_box >li{
    padding: 11px 5px 0px 5px;
}
.option-div {
    padding: 15px;
    background-color: #d2d6de;
    color: #333;
    border:1px solid #d2d6de;
    cursor: pointer;
}
.option-div input[type="radio"]{
    display: none;
}
.option-div-group .icon {
    color: #d33724;
    display: none;
}
.option-div-group .option-div:hover{
    border:1px solid gray;
}
.option-div-group .active .icon{
    display: block;
}
.margin-left-10 {
    margin-left: 10px;
}
.margin-bottom-12{
    margin-bottom: 12px;
}
.bg-info{
    background-color: #00c0ef !important;
}
.bg-info > a{
    color: #FFFFFF !important;
}
.bg-info>a:hover{
    background-color: #337ab7 !important;
}
ul.dt-button-collection{
    background-color: #00c0ef;
}
td.details-control {
    background: url('/img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.details td.details-control {
    background: url('/img/details_close.png') no-repeat center center;
}
.icheckbox_square-blue, .iradio_square-blue{
    margin-right: 10px;
}
.header-right-div{
    right: 10px;
    float: right;
    position: absolute;
    top: 15px;
}
.header-left-div{
    margin-top: 15px;
    display: inline-flex;
}
.m-8 {
    margin: 8px;
}
.mt-10{
    margin-top: 10px;
}
.mt-15{
    margin-top: 15px;
}
.m-5 {
    margin: 5px;
}
.icon-link{
  text-align:center;
  display:block;
  margin-bottom: 18px;
}
.icon-link > a {
    display:grid;
}
.icon-link > .badge{
    position: absolute;
    top: 20px;
    right: 67px;
}
.link-des {
    display: inline-block;
    text-align: left;
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>img {
    border: none;
    height: auto;
    width: 100%;
    max-height: 120px;
}
.bg-light-green{
    background-color: #98D973 !important;
    color: #fff !important
}
.hover-q {
    font-size: 16px;
    margin-left: 3px;
    cursor: help;
}
.input-group-addon .hover-q{
    margin-left: 0px;
}
.text-bold{
    font-weight: bold;
}
.tour .popover-content{
    padding: 18px 14px;
}
.table-slim>tbody>tr>td, .table-slim>tbody>tr>th, .table-slim>tfoot>tr>td, .table-slim>tfoot>tr>th, .table-slim>thead>tr>td, .table-slim>thead>tr>th{
    padding: 1px;
}

/* Custom scroll bar start*/

/* width */
/* ::-webkit-scrollbar {
    width: 7px;
} */

/* Track */
/* ::-webkit-scrollbar-track {
    background: #f1f1f1; 
} */
 
/* Handle */
/* ::-webkit-scrollbar-thumb {
    background: #888; 
} */

/* Handle on hover */
/* ::-webkit-scrollbar-thumb:hover {
    background: #555; 
} */

/* Custom scroll bar end*/

.product_cell{
    height: 100px;
    padding: 1%;
}
.product_cell_div{
    height: 100% !important;
    width: 100% !important;
    text-align: center;
    vertical-align: middle;
    padding-top: 5px;
    cursor: pointer;
    overflow: hidden;
}

/*CSS to print receipts*/
.print_section{
    display: none;
}
@media print{
    .print_section{
        display: inline !important;
    }
    .modal-xl{
        width: 100% !important;
    }
    ::-webkit-scrollbar{
        display: none !important;
    }
    #toast-container {
      display: none;
    }
}

.input-number .btn-default{
    background-color: white;
    padding: 6px 9px;
}

.width-50{
    width: 50% !important;
}
.width-40{
    width: 40% !important;
}
.width-60{
    width: 60% !important;
}
.width-100{
    width: 100% !important;
}

.font-30{
    font-size: 30px !important;
}

.font-23{
    font-size: 23px !important;
}
.padding-5{
    padding: 5px !important;
}
.padding-10{
    padding: 10px !important;
}
.padding-side-15{
    /*padding-left: 15px !important;
    padding-right: 15px !important;*/
}
.text-muted-imp{
    color: #A3A3A3 !important;
}

.table-no-top-cell-border td{
    border-top: 0px !important;
    border-bottom: 0px !important;
}
.table-no-top-cell-border th{
    border-top: 0px !important;
    border-bottom: 0px !important;
}

.table-no-side-cell-border td{
    border-left: 0px !important;
    border-right: 0px !important;
}
.table-no-side-cell-border th{
    border-left: 0px !important;
    border-right: 0px !important;
}

.color-555 {
    color: #555555 !important;
}
.color-555 *{
    color: #555555 !important;
}
.color-white {
    color: white !important;
}
.col-no-padding{
    padding-left: 0px;
    padding-right: 0px;
}
.col-2px-padding{
    padding: 2px;
}

.pos-express-btn{
    font-size: 23px !important;
    overflow: hidden !important;
    height: 73px !important;
    white-space: normal;
}
.word-wrap{
    word-wrap: break-word !important;
}

.modal-xl{
    width: 90%; /* respsonsive width */
    margin-left: auto !important;
    margin-right: auto !important;
}
table.ajax_view tbody tr{
    cursor: pointer;
}
.bg-white{
    background-color: #fff;
}

.product-thumbnail-small{
    height: 50px;
    width: 50px;
}

table.table-text-center td, table.table-text-center th{
    vertical-align: middle !important;
}
.product_list{
    padding-left: 3px;
    padding-right: 3px;
}
.product_box{
  width: 100%;
  /*padding-top: 5px;
  padding-bottom: 2px;*/
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer;
  /*border: 1px solid darkgray;*/
  font-weight: 600;
  background-color: #fff;
  border-radius: 12px;
  padding: 8px;
}
.product_box .image-container{
  height: 50px;
  margin: auto;
  width: 100%;
  margin-bottom: 4px;
  
}
.product_box .image-container img{
  height: 100%;
  width: 100%;
  border-radius: 12px;
}
.eq-height-row{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:flex;
    flex-wrap: wrap;
}
.eq-height-col{
    display: flex;
}

.product_box .text_div{
    margin-top: 3px;
}
.product_box .text{
    width: 100%;
    overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 1; /* number of lines to show */
   line-height: 14px;        /* fallback */
   max-height: 14px;       /* fallback */
}
.small-box.bg-gray:hover{
    color: #000;
    text-decoration: none;
}

#calendar table tbody td {
    cursor: pointer;
}

.min-height-90hv{
    min-height: 90vh !important;
}

/* Grow Shadow */
.hvr-grow-shadow {
  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: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow, transform;
  transition-property: box-shadow, transform;
}
.hvr-grow-shadow:hover, .hvr-grow-shadow:focus, .hvr-grow-shadow:active {
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.text-link{
    cursor: pointer;
}

.text-link:hover{
    text-decoration: underline;
}

.v-center{
    vertical-align: middle !important;
}

.bg-woocommerce{
  background-color: #9E458B !important;
}

/*.box, .info-box, .nav-tabs-custom, .external-event{
  box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2) !important;
}*/

.user_avatar {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  margin: 1px;
}

.fs-10 {
  font-size: 10px;
}

.timeline-lode-more-btn {
  margin-left: 50px;
  margin-top: 25px;
  padding-right: 12px;
  padding-left: 12px;
}

.pa-0 {
  padding: 0px !important;
}

.mt-56{
  margin-top: 56px !important;
}

.m-2{
  margin: 2px !important;
}

.treeview-menu i{
  display: none !important;
}
.treeview-menu a{
  padding-left: 25px !important;
  font-size: 95% !important;
}
.treeview-menu a::before{
  content: "\2192 ";
}

@media only screen and (max-width: 600px) {
  .pos-form-actions{
    position: absolute;
  }
}
.mr-8 {
  margin-right: 8px !important;
}

@media (max-width: 1024px) {
   .pos_form_totals{
        margin-bottom: 40px;
    }
}

.swal-modal .swal-text {
    text-align: center;
}

.pos-total {
    /* display: inline-block; */
    padding: 8px 10px;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
}
.pos-total span.number{
    font-size: 26px;
    vertical-align: middle;
    font-weight: bolder;
}

.pos-total span.text{
    font-weight: bolder;
    display: inline-block;
    width: 60px;
    vertical-align: middle;
}
.mb-40 {
    margin-bottom: 40px !important;
}

@media print {
    a:after { content:''; }
    a[href]:after { content: none !important; }
}

.fa-times{
    font-size: 30px
}
.mb-5{
  margin-bottom: 5px !important;
}
.tree-actions {
  margin-left: 20px;
  display: none;
}
.jstree-hovered .tree-actions {
  display: inherit;
}

/* Materio Sidebar Menu Styling */
.menu-title {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #7b8794;
}

/* Sidebar menu items - Main Level */
.side-bar ul > li > a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #5a6c7d;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 6px;
  margin: 4px 8px;
  font-weight: 500;
  position: relative;
}

.side-bar ul > li > a svg {
  width: 20px;
  height: 20px;
  color: var(--theme-color);
  flex-shrink: 0;
  background-color: rgba(252, 173, 29, 0.1);
  padding: 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.side-bar ul > li > a:hover {
  background-color: rgba(252, 173, 29, 0.08);
  color: var(--theme-color);
}

.side-bar ul > li > a:hover svg {
  background-color: rgba(252, 173, 29, 0.2);
  color: var(--theme-color);
  transform: translateX(2px);
}

.side-bar ul > li.active > a {
  background-color: rgba(252, 173, 29, 0.12);
  border-left: 3px solid var(--theme-color);
  color: var(--theme-color);
  padding-left: 13px;
  font-weight: 600;
}

.side-bar ul > li.active > a svg {
  background-color: rgba(252, 173, 29, 0.25);
  color: var(--theme-color);
}

/* Dropdown menu items */
.side-bar .dropdown-menu li a {
  padding: 8px 16px 8px 52px;
  color: #5a6c7d;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  position: relative;
  border-radius: 6px;
  margin: 2px 8px;
}

.side-bar .dropdown-menu li a svg {
  width: 18px;
  height: 18px;
  color: var(--theme-color);
  flex-shrink: 0;
  background-color: rgba(252, 173, 29, 0.1);
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.side-bar .dropdown-menu li a:hover {
  background-color: rgba(252, 173, 29, 0.08);
  color: var(--theme-color);
  padding-left: 55px;
}

.side-bar .dropdown-menu li a:hover svg {
  background-color: rgba(252, 173, 29, 0.2);
  color: var(--theme-color);
  transform: translateX(2px);
}

.side-bar .dropdown-menu li.active > a {
  background-color: rgba(252, 173, 29, 0.12);
  border-left: 3px solid var(--theme-color);
  color: var(--theme-color);
  padding-left: 49px;
  font-weight: 600;
}

.side-bar .dropdown-menu li.active > a svg {
  background-color: rgba(252, 173, 29, 0.25);
  color: var(--theme-color);
}

/* Submenu dropdown items */
.side-bar .dropdown-menu .dropdown-submenu > a {
  color: var(--theme-color);
  font-weight: 500;
  padding: 8px 16px;
  margin: 4px 8px;
}

/* Sidebar header background with theme color */
.side-bar > a {
  background-color: var(--theme-color) !important;
  border-radius: 0;
}

/* ===== MAIN MENU STYLING ===== */
.side-bar .nav.navbar-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 8px 0 !important;
}

/* Base styling for all menu items */
.side-bar .nav.navbar-nav > li > a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transition: all 0.3s ease !important;
  border-radius: 8px !important;
  margin: 4px 8px !important;
  padding: 10px 12px !important;
  font-weight: 500 !important;
  position: relative !important;
}

/* SVG Icons styling */
.side-bar .nav.navbar-nav > li > a svg {
  width: 24px !important;
  height: 24px !important;
  color: white !important;
  flex-shrink: 0 !important;
  padding: 4px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
}

/* Use theme color for icons and hover/active backgrounds */
.side-bar .nav.navbar-nav > li > a svg {
  background-color: rgba(var(--theme-rgb), 0.12) !important;
  color: var(--theme-color) !important;
}
.side-bar .nav.navbar-nav > li > a:hover {
  background-color: rgba(var(--theme-rgb), 0.08) !important;
  color: var(--theme-color) !important;
}
.side-bar .nav.navbar-nav > li > a:hover svg {
  background-color: rgba(var(--theme-rgb), 0.22) !important;
  transform: translateX(2px) !important;
}
.side-bar .nav.navbar-nav > li.active > a,
.side-bar .nav.navbar-nav a.clicked {
  background-color: rgba(var(--theme-rgb), 0.14) !important;
  border-left: 3px solid var(--theme-color) !important;
  padding-left: 11px !important;
}
.side-bar .nav.navbar-nav > li.active > a svg,
.side-bar .nav.navbar-nav a.clicked svg {
  background-color: rgba(var(--theme-rgb), 0.28) !important;
}

/* ---------- modern enhancements ----------- */
.side-bar {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: width 0.3s ease, background-color 0.3s ease;
  /* allow collapse width override */
}

.side-bar.collapsed {
  width: 4rem !important;
}

/* hide text labels when collapsed */
.side-bar.collapsed .side-bar-heading,
.side-bar.collapsed .menu-title,
.side-bar.collapsed .nav.navbar-nav > li > a span,
.side-bar.collapsed .dropdown-menu li a span,
.side-bar.collapsed .sidebar-user-block {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* user block above menu */
.sidebar-user-block img {
  flex-shrink: 0;
}

/* collapse toggle button styling */
.collapse-toggle {
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s;
}
.collapse-toggle:hover {
  color: var(--theme-color);
}

/* tooltips for icons (title attr) */
.side-bar.collapsed a[title] {
  position: relative;
}
.side-bar.collapsed a[title]:hover::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: 8px;
  font-size: 0.75rem;
  z-index: 999;
}

/* ===== UNIQUE COLORS FOR EACH MENU ===== */

/* Menu 1: Home - Blue */
.side-bar .nav.navbar-nav > li:nth-child(1) > a {
  background-color: rgba(66, 153, 225, 0.1) !important;
  color: #4299e1 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(1) > a svg {
  background-color: #4299e1 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(1) > a:hover {
  background-color: rgba(66, 153, 225, 0.2) !important;
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.25) !important;
  transform: translateX(2px) !important;
}

/* Menu 2: User Management - Purple */
.side-bar .nav.navbar-nav > li:nth-child(2) > a {
  background-color: rgba(168, 85, 247, 0.1) !important;
  color: #a855f7 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(2) > a svg {
  background-color: #a855f7 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(2) > a:hover {
  background-color: rgba(168, 85, 247, 0.2) !important;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25) !important;
  transform: translateX(2px) !important;
}

.side-bar .nav.navbar-nav > li:nth-child(2) .dropdown-menu li a svg {
  background-color: #a855f7 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(2) .dropdown-menu li a:hover {
  background-color: rgba(168, 85, 247, 0.1) !important;
  color: #a855f7 !important;
}

/* Menu 3: Contacts - Teal */
.side-bar .nav.navbar-nav > li:nth-child(3) > a {
  background-color: rgba(20, 184, 166, 0.1) !important;
  color: #14b8a6 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(3) > a svg {
  background-color: #14b8a6 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(3) > a:hover {
  background-color: rgba(20, 184, 166, 0.2) !important;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25) !important;
  transform: translateX(2px) !important;
}

.side-bar .nav.navbar-nav > li:nth-child(3) .dropdown-menu li a svg {
  background-color: #14b8a6 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(3) .dropdown-menu li a:hover {
  background-color: rgba(20, 184, 166, 0.1) !important;
  color: #14b8a6 !important;
}

/* Menu 4: Products - Amber */
.side-bar .nav.navbar-nav > li:nth-child(4) > a {
  background-color: rgba(245, 158, 11, 0.1) !important;
  color: #f59e0b !important;
}

.side-bar .nav.navbar-nav > li:nth-child(4) > a svg {
  background-color: #f59e0b !important;
}

.side-bar .nav.navbar-nav > li:nth-child(4) > a:hover {
  background-color: rgba(245, 158, 11, 0.2) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
  transform: translateX(2px) !important;
}

.side-bar .nav.navbar-nav > li:nth-child(4) .dropdown-menu li a svg {
  background-color: #f59e0b !important;
}

.side-bar .nav.navbar-nav > li:nth-child(4) .dropdown-menu li a:hover {
  background-color: rgba(245, 158, 11, 0.1) !important;
  color: #f59e0b !important;
}

/* Menu 5: Purchases - Green */
.side-bar .nav.navbar-nav > li:nth-child(5) > a {
  background-color: rgba(34, 197, 94, 0.1) !important;
  color: #22c55e !important;
}

.side-bar .nav.navbar-nav > li:nth-child(5) > a svg {
  background-color: #22c55e !important;
}

.side-bar .nav.navbar-nav > li:nth-child(5) > a:hover {
  background-color: rgba(34, 197, 94, 0.2) !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25) !important;
  transform: translateX(2px) !important;
}

.side-bar .nav.navbar-nav > li:nth-child(5) .dropdown-menu li a svg {
  background-color: #22c55e !important;
}

.side-bar .nav.navbar-nav > li:nth-child(5) .dropdown-menu li a:hover {
  background-color: rgba(34, 197, 94, 0.1) !important;
  color: #22c55e !important;
}

/* Menu 6: Sell - Red */
.side-bar .nav.navbar-nav > li:nth-child(6) > a {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(6) > a svg {
  background-color: #ef4444 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(6) > a:hover {
  background-color: rgba(239, 68, 68, 0.2) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
  transform: translateX(2px) !important;
}

.side-bar .nav.navbar-nav > li:nth-child(6) .dropdown-menu li a svg {
  background-color: #ef4444 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(6) .dropdown-menu li a:hover {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

/* Menu 7: Stock Transfers - Indigo */
.side-bar .nav.navbar-nav > li:nth-child(7) > a {
  background-color: rgba(99, 102, 241, 0.1) !important;
  color: #6366f1 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(7) > a svg {
  background-color: #6366f1 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(7) > a:hover {
  background-color: rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
  transform: translateX(2px) !important;
}

/* Menu 8: Stock Adjustment - Cyan */
.side-bar .nav.navbar-nav > li:nth-child(8) > a { 
  background-color: rgba(6, 182, 212, 0.1) !important;
  color: #06b6d4 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(8) > a svg {
  background-color: #06b6d4 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(8) > a:hover {
  background-color: rgba(6, 182, 212, 0.2) !important;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25) !important;
  transform: translateX(2px) !important;
}

/* Menu 9: Expenses - Rose */
.side-bar .nav.navbar-nav > li:nth-child(9) > a {
  background-color: rgba(244, 63, 94, 0.1) !important;
  color: #f43f5e !important;
}

.side-bar .nav.navbar-nav > li:nth-child(9) > a svg {
  background-color: #f43f5e !important;
}

.side-bar .nav.navbar-nav > li:nth-child(9) > a:hover {
  background-color: rgba(244, 63, 94, 0.2) !important;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25) !important;
  transform: translateX(2px) !important;
}

/* Menu 10: Accounts - Violet */
.side-bar .nav.navbar-nav > li:nth-child(10) > a {
  background-color: rgba(139, 92, 246, 0.1) !important;
  color: #8b5cf6 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(10) > a svg {
  background-color: #8b5cf6 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(10) > a:hover {
  background-color: rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25) !important;
  transform: translateX(2px) !important;
}

.side-bar .nav.navbar-nav > li:nth-child(10) .dropdown-menu li a svg {
  background-color: #8b5cf6 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(10) .dropdown-menu li a:hover {
  background-color: rgba(139, 92, 246, 0.1) !important;
  color: #8b5cf6 !important;
}

/* Menu 11+: Reports & Others - Lime */
.side-bar .nav.navbar-nav > li:nth-child(n+11) > a {
  background-color: rgba(132, 204, 22, 0.1) !important;
  color: #84cc16 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(n+11) > a svg {
  background-color: #84cc16 !important;
}

.side-bar .nav.navbar-nav > li:nth-child(n+11) > a:hover {
  background-color: rgba(132, 204, 22, 0.2) !important;
  box-shadow: 0 4px 12px rgba(132, 204, 22, 0.25) !important;
  transform: translateX(2px) !important;
}

.side-bar .nav.navbar-nav > li:nth-child(n+11) .dropdown-menu li a svg {
  background-color: #84cc16 !important;
}

/* Fallback: target menu items by data-menu-key attribute (present on anchors via presenter) */
/* (Removed report-specific lime fallback rules) */

/* Click / active animations and highlight */
@keyframes menu-click {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  30% { transform: translateX(6px) scale(0.995); opacity: 0.98; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

.side-bar .nav.navbar-nav a {
  transition: background-color 220ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.side-bar .nav.navbar-nav a.clicked {
  animation: menu-click 420ms ease forwards;
  background-color: rgba(0,0,0,0.04) !important;
  box-shadow: 0 8px 20px rgba(16,24,40,0.06) !important;
}

.side-bar .nav.navbar-nav > li.active > a,
.side-bar .nav.navbar-nav a.clicked {
  border-left: 3px solid var(--theme-color) !important;
  padding-left: 11px !important;
  font-weight: 600 !important;
}

/* Small transform on hover for smoother feel */
.side-bar .nav.navbar-nav > li > a:hover {
  transform: translateX(4px) !important;
}

/* Ripple effect */
.side-bar .nav.navbar-nav a {
  position: relative !important;
  overflow: hidden !important;
}

.side-bar .nav.navbar-nav a .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms ease-out;
  pointer-events: none;
  opacity: 0.9;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Use theme color with transparency for ripple if available */
.side-bar .nav.navbar-nav a .ripple.fallback {
  background: rgba(255,255,255,0.5);
}

.side-bar .nav.navbar-nav > li:nth-child(n+11) .dropdown-menu li a:hover {
  background-color: rgba(132, 204, 22, 0.1) !important;
  color: #84cc16 !important;
}

/* ===== DROPDOWN MENU STYLING ===== */
.side-bar .dropdown-menu {
  background-color: #f8f9fa !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
  margin-top: 4px !important;
}

.side-bar .dropdown-menu li a {
  padding: 8px 16px 8px 52px !important;
  color: #5a6c7d !important;
  border-radius: 6px !important;
  margin: 4px 8px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.side-bar .dropdown-menu li a svg {
  width: 18px !important;
  height: 18px !important;
  color: white !important;
  padding: 3px !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
}

.side-bar .dropdown-menu li a:hover {
  padding-left: 55px !important;
  transform: translateX(2px) !important;
  background-color: rgba(0,0,0,0.03) !important;
}

/* Active states */
.side-bar .nav.navbar-nav > li.active > a {
  font-weight: 700 !important;
}

.side-bar .nav.navbar-nav > li.active > a svg {
  transform: scale(1.15) !important;
}

.side-bar .dropdown-menu li.active > a {
  font-weight: 600 !important;
  background-color: rgba(0,0,0,0.05) !important;
}

/* --- Materio-like sidebar replication (high-specificity overrides) --- */
.side-bar {
  --theme-rgb-fallback: 252,173,29;
}

/* child panel background (when a menu has children) */
.side-bar .chiled {
  background: rgba(var(--theme-rgb, var(--theme-rgb-fallback)), 0.06) !important;
  border-radius: 8px !important;
  margin: 6px 8px !important;
  padding: 10px !important;
}

/* main menu icon - rounded square with theme color */
.side-bar .nav.navbar-nav > li > a > svg {
  background-color: var(--theme-color) !important;
  color: #fff !important;
  padding: 10px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* main menu anchor when active/expanded */
.side-bar .nav.navbar-nav > li.active > a,
.side-bar .nav.navbar-nav > li > a.clicked {
  background: linear-gradient(90deg, rgba(var(--theme-rgb, var(--theme-rgb-fallback)),0.12), rgba(var(--theme-rgb, var(--theme-rgb-fallback)),0.06)) !important;
  border-radius: 8px !important;
  padding-left: 14px !important;
}

/* child item icons (smaller rounded squares) */
.side-bar .chiled .tw-space-y-3.5 a > svg,
.side-bar .chiled a > svg {
  background-color: var(--theme-color) !important;
  color: #fff !important;
  width: 36px !important;
  height: 36px !important;
  padding: 8px !important;
  border-radius: 10px !important;
}

/* child anchors default */
.side-bar .chiled .tw-space-y-3.5 a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px !important;
  border-radius: 10px !important;
  color: #344055 !important;
}

/* selected child - stronger box with theme */
.side-bar .chiled .tw-space-y-3.5 a.clicked,
.side-bar .chiled .tw-space-y-3.5 a:active,
.side-bar .chiled .tw-space-y-3.5 a:hover {
  background: rgba(var(--theme-rgb, var(--theme-rgb-fallback)), 0.18) !important;
  color: #111827 !important;
  box-shadow: 0 8px 20px rgba(16,24,40,0.06) !important;
}

/* ensure icons inside selected child are visible */
.side-bar .chiled .tw-space-y-3.5 a.clicked > svg,
.side-bar .chiled .tw-space-y-3.5 a:active > svg {
  background-color: var(--theme-color) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06) !important;
}

/* make sure the left border of the expanded menu stays visible */
.side-bar .chiled .tw-absolute.tw-inset-y-0.tw-w-px {
  background-color: rgba(0,0,0,0.06) !important;
}

/* end Materio-like replication */
