@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;
}
.tw-bg-black-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(64 64 64 / var(--tw-bg-opacity));
}
.tw-bg-black-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(38 38 38 / var(--tw-bg-opacity));
}
.tw-bg-black-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(23 23 23 / var(--tw-bg-opacity));
}
.hover\:tw-bg-black-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(64 64 64 / var(--tw-bg-opacity));
}
.tw-from-black-800 {
  --tw-gradient-from: #262626 var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(38, 38, 38, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.tw-to-black-900 {
  --tw-gradient-to: #171717 var(--tw-gradient-to-position);
}
.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 {
    /* Was a fixed 485px, leaving empty space below the grid on taller screens. This panel has
       no totals/payment block beneath it like the left cart panel does (that one subtracts
       420px for that reason), so it gets its own, smaller offset - just the top chrome
       (topbar + Category/Brands buttons row) and a little breathing room above the fixed
       bottom payment bar. */
    height: calc(100vh - 300px) !important;
    max-height: none;
    min-height: 160px;
    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;
}

/* Variation Table Column Widths */
.variation_value_table th:nth-child(3),
.variation_value_table td:nth-child(3) {
  min-width: 200px;
}

/* Variation Image Upload Styles */
.variation-image-cell {
  width: 50px;
  min-width: 50px;
  max-width: 60px;
  text-align: center;
}
.variation-image-upload {
  position: relative;
}
.variation-upload-btn {
  position: relative;
  min-width: 36px;
}
.variation-upload-btn .image-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b6b;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.variation-image-preview {
  max-width: 200px;
}
.variation-image-preview .preview-thumb img {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.existing-images .img-thumbnail {
  max-width: 50px;
  max-height: 50px;
  overflow: hidden;
}
.existing-images .img-thumbnail img {
  width: 100%;
  height: auto;
}

/* Hide IMEI, Weight, Service Timer, Description, Not for Selling */
input[name="weight"],
input[name="enable_sr_no"],
input[name="not_for_selling"],
textarea[name="product_description"],
label[for="weight"],
label[for="enable_sr_no"],
label[for="not_for_selling"],
label[for="product_description"] {
    display: none !important;
}

/* ============================================================
   GLOBAL UI MODERNIZATION
   Load order: app.css loads last — these rules win over
   vendor.css and AdminLTE without needing !important in most
   places. !important is used only where vendor sets it first.
   ============================================================ */

/* ── 1. .box component ─────────────────────────────────────── */
.box {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    box-shadow: 0 2px 12px rgba(15,23,42,.07) !important;
    background: #fff !important;
}
.box.box-primary  { border-left: 4px solid #3b82f6 !important; }
.box.box-success  { border-left: 4px solid #10b981 !important; }
.box.box-info     { border-left: 4px solid #06b6d4 !important; }
.box.box-warning  { border-left: 4px solid #f59e0b !important; }
.box.box-danger   { border-left: 4px solid #ef4444 !important; }
.box.box-solid    { border-top: none !important; }
/* AdminLTE's .bg-* box variants also set color:#fff, because they expect to sit on a
   coloured background. The "background: #fff !important" above is equally !important and wins
   on source order, so the box turned white while the text stayed white - invisible. It hit the
   POS payment modal summary panel (Total Items / Total Payable / Total Paying / Change Return /
   Balance) and the customer display, both .box.box-solid.bg-orange.
   Restored to the intended orange-with-white-text; .box.bg-orange outranks the bare .box rule
   on specificity, so no ordering trick is needed. */
.box.bg-orange {
    background: #ff851b !important;
    border-color: #ff851b !important;
}
.box.bg-orange,
.box.bg-orange .box-body,
.box.bg-orange strong,
.box.bg-orange span,
.box.bg-orange .lead {
    color: #fff !important;
}

/* ── 2. .box-header ─────────────────────────────────────────── */
.box-header {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden;
}
.box-header.with-border { border-bottom: 1px solid #e2e8f0 !important; }
.box-solid.box-primary .box-header,
.box-solid.box-info .box-header,
.box-solid.box-success .box-header,
.box-solid.box-danger .box-header,
.box-solid.box-warning .box-header {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
.box-header .box-title { color: #0f172a; font-weight: 700; font-size: 14px; }

/* ── 3. .box-body / .box-footer ─────────────────────────────── */
.box-body   { padding: 16px !important; }
.box-footer { background: #f8fafc !important; border-top: 1px solid #e2e8f0 !important; color: #64748b !important; border-radius: 0 0 16px 16px !important; overflow: hidden; }

/* ── 4. Table thead — theme gradient ────────────────────────── */
.table > thead > tr > th,
.table > thead > tr > td {
    background: linear-gradient(135deg, var(--theme-800, #1e3a8a) 0%, var(--theme-700, #1d4ed8) 100%) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .6px !important;
    text-transform: uppercase !important;
    border-color: var(--theme-700, #1d4ed8) !important;
    padding: 10px 14px !important;
    vertical-align: middle !important;
}
/* Preserve existing named header colors — must override the global rule above */
.add-product-price-table > thead > tr > th { background-color: #5cb85c !important; }
.blue-header > thead > tr > th             { background-color: #3c8dbc !important; }
.table-th-green > thead > tr > th          { background-color: #5cb85c !important; }
/* Preserve table-slim padding */
.table-slim > thead > tr > th,
.table-slim > thead > tr > td { padding: 1px !important; }

/* DataTables sort icons on dark background */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after { color: #94a3b8 !important; }

/* ── 5. Table tbody ─────────────────────────────────────────── */
.table-striped > tbody > tr:nth-of-type(odd)  { background-color: #fafcff; }
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th          { background-color: #eff6ff !important; }
.table > tbody > tr > td,
.table > tbody > tr > th {
    padding: 9px 14px;
    vertical-align: middle;
    border-color: #f1f5f9;
    font-size: 13px;
}
/* Preserve table-slim */
.table-slim > tbody > tr > td,
.table-slim > tbody > tr > th,
.table-slim > tfoot > tr > td,
.table-slim > tfoot > tr > th { padding: 1px !important; }

/* ── 6. Footer total rows ───────────────────────────────────── */
/* .bg-gray has background-color !important in vendor — counter with more-specific selector + !important */
tr.footer-total > td, tr.footer-total > th {
    background-color: var(--theme-900, #172554) !important;
    color: #e2e8f0 !important;
    font-weight: 700 !important;
    border-color: var(--theme-800, #1e3a8a) !important;
    padding: 10px 14px !important;
}
tr.bg-gray > td, tr.bg-gray > th {
    background-color: var(--theme-900, #172554) !important;
    color: #e2e8f0 !important;
    font-weight: 700 !important;
}

/* ── 7. Form controls ───────────────────────────────────────── */
.form-control {
    border-radius: 8px !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
    outline: none !important;
}

/* ── 8. Input group addons ──────────────────────────────────── */
.input-group-addon {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #2563eb !important;
}
.input-group-addon:first-child {
    border-radius: 8px 0 0 8px !important;
}
.input-group-addon:last-child {
    border-radius: 0 8px 8px 0 !important;
}
.input-group > .form-control:first-child {
    border-radius: 8px 0 0 8px !important;
}
.input-group > .form-control:last-child {
    border-radius: 0 8px 8px 0 !important;
}

/* ── 9. Buttons ─────────────────────────────────────────────── */
.btn { border-radius: 8px !important; }
.btn-default {
    background-color: #fff !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
    transition: all .15s;
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
    color: #111827 !important;
}
/* Preserve POS number-input buttons */
.input-number .btn-default {
    background-color: #fff !important;
    border-color: #d1d5db !important;
    padding: 6px 9px !important;
}
.btn-primary {
    background: linear-gradient(135deg,#3b82f6,#1d4ed8) !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg,#2563eb,#1e40af) !important;
    border-color: #1e40af !important;
}
.btn-success {
    background: linear-gradient(135deg,#10b981,#059669) !important;
    border-color: #059669 !important;
}
.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg,#059669,#047857) !important;
    border-color: #047857 !important;
}

/* ── 10. Content-header typography ──────────────────────────── */
.content-header > h1 { font-weight: 800 !important; color: #0f172a; letter-spacing: -.3px; }
.content-header > h1 > small { font-weight: 400; color: #64748b; font-size: 14px; }

/* ── 11. DataTable controls ─────────────────────────────────── */
.dataTables_wrapper .pagination > .active > a,
.dataTables_wrapper .pagination > .active > a:hover,
.dataTables_wrapper .pagination > .active > span {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
.dataTables_wrapper .pagination > li > a,
.dataTables_wrapper .pagination > li > span {
    border-radius: 6px !important;
    margin: 0 2px;
    border-color: #e2e8f0 !important;
    color: #374151 !important;
}
.dataTables_wrapper .pagination > li > a:hover {
    background-color: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    transition: border-color .15s, box-shadow .15s;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
    outline: none !important;
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 4px 8px !important;
}
.dataTables_wrapper .dataTables_info { font-size: 12px; color: #64748b; }

/* ── 12. Nav tabs ───────────────────────────────────────────── */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    border-top: 3px solid #2563eb !important;
    color: #0f172a !important;
    font-weight: 700;
}
.nav-tabs-custom { border-radius: 16px !important; overflow: hidden; }
.nav-tabs-custom > .nav-tabs {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.nav-tabs-custom > .nav-tabs > li { border-top-color: transparent !important; }
.nav-tabs-custom > .nav-tabs > li.active { border-top-color: #2563eb !important; }
.nav-tabs-custom > .nav-tabs > li > a { color: #64748b; font-weight: 600; font-size: 13px; }
.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active > a:hover { color: #0f172a !important; font-weight: 700; }

/* ── 13. Select2 ────────────────────────────────────────────── */
.select2-container--default .select2-selection--single,
.select2-selection.select2-selection--single {
    border-radius: 8px !important;
    border-color: #cbd5e1 !important;
    transition: border-color .15s, box-shadow .15s;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
    outline: none !important;
    border-radius: 8px 8px 0 0 !important;
}
.select2-dropdown {
    border-color: #2563eb !important;
    border-radius: 0 0 8px 8px !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb !important;
}

/* ── 14. P&L stat sub-text ──────────────────────────────────── */
.pl-stat-sub { font-size: 11px; color: #94a3b8; margin-top: 8px; line-height: 1.5; }

/* ── 15. Print safety ───────────────────────────────────────── */
@media print {
    .box { border: 1px solid #ddd !important; box-shadow: none !important; }
    .table > thead > tr > th {
        background: linear-gradient(135deg, var(--theme-800, #1e3a8a) 0%, var(--theme-700, #1d4ed8) 100%) !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    tr.footer-total > td, tr.bg-gray > td {
        background-color: var(--theme-900, #172554) !important;
        color: #e2e8f0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
/* ============================================================ */

/* ============================================================
   COMPACT POS CART ROW (POS create and POS edit screens)
   Driven by the .pos-compact-* classes emitted from
   sale_pos/product_row.blade.php when $compact_row is true.
   Add Sale and Edit Sale pass is_direct_sell, so those
   back-office screens keep the original layout.
   ============================================================ */

/* Applied by pos_form.blade.php and pos_form_edit.blade.php. .pos_product_div was a fixed
   40vh, which ended the card less than half way down the screen and left everything below
   it empty. The list now stretches down to just above the fixed payment bar, so the item
   area owns that space and the totals sit directly beneath it. Scrolls internally only on
   genuine overflow. The 420px is the fixed chrome above and below it (POS top bar,
   customer/search row, totals block, payment bar) - tune this one number if the fit is off.
   .pos_product_div itself is left untouched for any other screen that uses it. */
.pos_product_div_fill {
    height: calc(100vh - 420px) !important;
    min-height: 160px;
}

/* Scoped to compact rows, so any non-compact row in a #pos_table is unaffected. */
#pos_table.table > tbody > tr.pos-compact-row > td {
    padding: 4px 6px !important;
    vertical-align: middle;
    line-height: 1.25;
}

.pos-compact-name {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.pos-compact-name-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 600;
}
.pos-compact-name-icon {
    flex: 0 0 auto;
}

.pos-compact-meta {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    padding: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pos-compact-sep {
    margin: 0 5px;
    color: #cbd5e1;
}

/* Purchase price chip: muted and small so it stays clearly subordinate to the bold
   subtotal, and neutral in colour so it never competes with the stock dot. */
.pos-price-pill {
    display: inline-block;
    padding: 0 6px;
    border-radius: 10px;
    background: #eef2f7;
    color: #334155;
    font-weight: 700;
    font-size: 11px;
    line-height: 1.5;
}

/* Quantity control and unit selector kept on one line: the qty control has a fixed width
   and does not wrap, so the unit selector (Pieces) never drops to a second line. */
.pos-compact-qty {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
}
/* Fixed, narrower qty control so the unit selector stays on the same line. */
.pos-compact-qty .input-group.input-number {
    flex: 0 0 auto;
    width: 104px;
    min-width: 0;
    margin: 0;
}
.pos-compact-qty .input-group.input-number .pos_quantity {
    min-width: 0;
    padding-left: 2px;
    padding-right: 2px;
}
.pos-compact-qty .sub_unit {
    flex: 0 1 auto;
    width: auto;
    min-width: 58px;
    max-width: 100%;
    height: 30px;
    padding: 2px 4px;
}
.pos-compact-qty .input-group .form-control,
.pos-compact-qty .input-group .btn {
    height: 30px;
    padding: 2px 6px;
}

/* Serial dropdown on the compact POS row: kept short so serial products stay close to one line. */
#pos_table tr.pos-compact-row .serial_sale_wrapper {
    margin-top: 2px !important;
}
#pos_table tr.pos-compact-row .serial_picker {
    height: 24px;
    padding: 0 4px;
    font-size: 12px;
}
