@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;
  left: 18px;
  right: 18px;
  width: auto;
  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;
      border:2px solid #0b2545 !important;
    transition:all .25s ease;

}
.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;
}

/* =========================================================
   Premium POS Right Panel
========================================================= */

/* POS right side main panel */
.pos-right-panel{
    display:flex !important;
    flex-direction:column !important;
    min-height:560px !important;
    height:calc(100vh - 285px) !important;
    padding:0 !important;
background: linear-gradient(
    90deg,
    #071a35 0%,
    #0a3b58 35%,
    #0c7287 70%,
    #0b2545 100%
) !important;
    border:1px solid #334155 !important;
    border-radius:20px !important;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
}

/* ==============================
   Premium POS Header
============================== */

.pos-header-gradient{

    background: linear-gradient(
        90deg,
        #071a35 0%,
        #0a3b58 35%,
        #0c7287 70%,
        #0b2545 100%
    ) !important;

    border-radius:18px !important;

    box-shadow:0 12px 30px rgba(0,0,0,.25);
}
.pos-header-gradient p,
.pos-header-gradient strong,
.pos-header-gradient label,
.pos-header-gradient span{

    color:#fff !important;
}
/* ==================================================
   Premium POS Footer
================================================== */

.pos-footer-gradient{
    background: linear-gradient(
        90deg,
        #071a35 0%,
        #0a3b58 35%,
        #0c7287 70%,
        #0b2545 100%
    ) !important;

    border-top-left-radius:20px;
    border-top-right-radius:20px;

    box-shadow:0 -10px 25px rgba(0,0,0,.25);
}
.pos-footer-gradient .tw-text-gray-700,
.pos-footer-gradient .tw-text-black{
    color:#ffffff !important;
}
.pos-footer-gradient #total_payable{
    color:#4ADE80 !important;
}
.pos-right-panel{
    display:flex !important;
    flex-direction:column !important;
}

/* Reduce empty vertical spacing inside right POS panel */

.pos-right-panel {
    padding: 0 !important;
}

.pos-right-body{
    display:flex !important;
    flex-direction:column !important;
    padding:0 !important;
    margin:0 !important;
    gap:0 !important;
    height:100%;
}

.pos-product-row {
    flex: 0 0 auto !important;
}

.pos-product-area {
    min-height: 0 !important;
    height: auto !important;
    max-height: 345px !important;
    overflow-y: auto !important;
}

.pos_form_totals {
    margin-top: 0 !important;
    margin-bottom: 40px !important;
}
.pos-product-area{
    height:auto !important;
    min-height:350px !important;
    max-height:none !important;
    overflow-y:auto !important;
}



.shopping-cart-header{
    background:#fff !important;
    padding:0 !important;
    margin:0 !important;
    border-radius:0 !important;
}

.cart-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.cart-title{
    font-size:24px;
    font-weight:700;
    color:#0f172a;
}

.cart-badges{
    display:flex;
    gap:10px;
}

.cart-badge{
    padding:7px 18px;
    border-radius:999px;
    font-size:15px;
    font-weight:700;
}

.cart-products{
    background:#dbeafe;
    color:#2563eb;
}

.cart-items{
    background:#dcfce7;
    color:#16a34a;
}

/* Shopping cart scroll area */

.shopping-cart-body{
    max-height: 345px !important; /* 3 product rows */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #fff;
}

/* Keep Shopping Cart header visible */
#pos_table thead th{
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff !important;
}

/* optional nice scrollbar */
.shopping-cart-body::-webkit-scrollbar{
    width: 8px;
}

.shopping-cart-body::-webkit-scrollbar-thumb{
    background: #64748b;
    border-radius: 20px;
}

.shopping-cart-body::-webkit-scrollbar-track{
    background: #e5e7eb;
}
.pos-product-row,
.pos_product_div,
.pos-product-area,
.shopping-cart-body,
#pos_table {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#pos_table {
    margin-bottom: 0 !important;
}

#pos_table thead tr th.shopping-cart-header {
    border-top: 0 !important;
}

/* =========================================================
   Compact single-line POS cart rows
========================================================= */

/* Product name/SKU column */
#pos_table tbody .pos-product-info-cell {
    width: 25% !important;
    max-width: 190px !important;
    min-width: 135px !important;
    padding: 8px 7px !important;
    vertical-align: middle !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

/* Keep quantity, unit and editable unit price on one line */
#pos_table tbody .pos-qty-price-wrap {
    width: 100%;
    margin: 0 !important;
}

#pos_table tbody .pos-qty-unit-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100%;
}

#pos_table tbody .pos-qty-box {
    width: 170px !important;
    min-width: 170px !important;
    flex: 0 0 170px !important;
    margin: 0 !important;
}

#pos_table tbody .pos-qty-box .pos_quantity {
    min-width: 62px !important;
    text-align: center;
}

#pos_table tbody .pos-unit-box {
    width: 92px !important;
    min-width: 92px !important;
    flex: 0 0 92px !important;
    margin: 0 !important;
}

#pos_table tbody .pos-unit-label {
    min-width: 70px;
    white-space: nowrap;
}

#pos_table tbody .pos-unit-price-box {
    width: 120px !important;
    min-width: 105px !important;
    flex: 0 0 120px !important;
    margin: 0 !important;
}

/* Reduce row height and vertically center all cart cells */
#pos_table tbody tr.product_row > td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    vertical-align: middle !important;
}

/* Keep line total and delete icon compact */
#pos_table tbody .pos_line_total_text {
    white-space: nowrap;
    font-weight: 600;
}

#pos_table tbody .pos_remove_row {
    display: inline-block;
    line-height: 1;
}

/* Slightly tighter controls on narrower POS screens */
@media (max-width: 1400px) {
    #pos_table tbody .pos-product-info-cell {
        width: 22% !important;
        max-width: 160px !important;
    }

    #pos_table tbody .pos-qty-box {
        width: 150px !important;
        min-width: 150px !important;
        flex-basis: 150px !important;
    }

    #pos_table tbody .pos-unit-box {
        width: 82px !important;
        min-width: 82px !important;
        flex-basis: 82px !important;
    }

    #pos_table tbody .pos-unit-price-box {
        width: 105px !important;
        min-width: 95px !important;
        flex-basis: 105px !important;
    }
    /* Right align line totals */
#pos_table tbody td:nth-last-child(2){
    text-align: right !important;
    white-space: nowrap;
    padding-right: 18px !important;
}

#pos_table tbody td:nth-last-child(2) .display_currency,
#pos_table tbody td:nth-last-child(2) .pos_line_total,
#pos_table tbody td:nth-last-child(2) input{
    text-align: right !important;
    font-weight: 600;
}
}


/* =========================================================
   POS Product Row - Final Styling Fixes
========================================================= */

/* Product name and SKU text */
#pos_table tbody .pos-product-info-cell,
#pos_table tbody .pos-product-info-cell span,
#pos_table tbody .pos-product-info-cell .text-link,
#pos_table tbody .pos-product-info-cell .text-info {
    color: #111827 !important;
}

/* Keep the information icon blue */
#pos_table tbody .pos-product-info-cell .fa-info-circle {
    color: #06b6d4 !important;
}

/* Right-align each product line total on every screen size */
#pos_table tbody td:nth-last-child(2) {
    text-align: right !important;
    white-space: nowrap !important;
    padding-right: 18px !important;
    vertical-align: middle !important;
}

#pos_table tbody td:nth-last-child(2) .display_currency,
#pos_table tbody td:nth-last-child(2) .pos_line_total,
#pos_table tbody td:nth-last-child(2) input {
    text-align: right !important;
    font-weight: 700 !important;
}

/* Trash delete button */
#pos_table tbody .pos-delete-cell {
    width: 58px !important;
    min-width: 58px !important;
    padding: 5px 8px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

#pos_table tbody .pos-delete-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0 auto;
    border: 0;
    border-radius: 9px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 18px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

#pos_table tbody .pos-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.06);
}

#pos_table tbody .pos-delete-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}

#pos_table tbody .pos-delete-btn i {
    font-size: 18px;
    color: inherit !important;
    line-height: 1;
}

/* =========================================================
   FINAL POS LAYOUT OVERRIDES
========================================================= */

.pos-right-panel {
    display: flex !important;
    flex-direction: column !important;
    min-height: 600px !important;
    height: calc(100vh - 190px) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.pos-right-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

.pos-product-row {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pos-product-area {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.shopping-cart-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;

    /* Reduce the cart height */
    height: calc(100% - 65px) !important;
    max-height: calc(100% - 65px) !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    background: #ffffff !important;
}

.shopping-cart-header {
    background: #ffffff !important;
    padding: 16px 22px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.cart-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 38px;
}

.pos_form_totals{
    flex: 0 0 auto !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    position: relative;
    bottom: 70px;          /* <-- move it upward */
    z-index: 5;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.pos-right-panel > *,
.pos-right-body > *,
.pos-right-body .box,
.pos-right-body .box-body {
    margin-bottom: 0 !important;
}

#pos_table {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================================================
   FINAL SHOPPING CART HEADER - SINGLE ROW
========================================================= */

#pos_table thead .shopping-cart-header {
    padding: 14px 20px !important;
    height: auto !important;
}

#pos_table .cart-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    min-height: 46px !important;
    gap: 18px !important;
}

/* Shopping Cart title */
#pos_table .cart-title {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    margin: 0 !important;

    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

/* Total + Commission + Badges */
#pos_table .cart-header-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;

    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 12px !important;
}

/* Total */
#pos_table .cart-header-total {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 155px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 12px !important;
    gap: 6px !important;
    white-space: nowrap !important;

    background: #f8fafc !important;
    border: 1px solid #dbe3ee !important;
    border-radius: 8px !important;
}

#pos_table .cart-header-total-label {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

#pos_table .cart-header-total-value {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #16a34a !important;
}

/* Commission Agent */
#pos_table .cart-header-agent {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 180px !important;
    margin: 0 !important;
}

#pos_table .cart-header-agent .select2-container {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

#pos_table .cart-header-agent .select2-selection--single {
    height: 40px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
}

#pos_table .cart-header-agent .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
}

#pos_table .cart-header-agent .select2-selection__arrow {
    height: 38px !important;
}

/* Product and item badges */
#pos_table .cart-badges {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;

    flex: 0 0 auto !important;
    margin: 0 !important;
    gap: 8px !important;
}

#pos_table .cart-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 40px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

/* Put action buttons inside the gradient footer area */

.pos-inline-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;

    width: 100% !important;
    min-height: 78px !important;

    margin: 0 !important;
    padding: 10px 16px !important;
    gap: 10px !important;

    background: linear-gradient(
        90deg,
        #071a35 0%,
        #0a3b58 35%,
        #0c7287 70%,
        #0b2545 100%
    ) !important;

    border-radius: 0 0 18px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

/* Remove the old table-row styling */
.pos-inline-actions-row {
    display: none !important;
}

.payment-bottom-panel {
    padding: 10px 14px 12px;
    background: #fff;
    border-radius: 18px 18px 0 0;
}

/* Cash | Card | Split | 8 action buttons */
.payment-method-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Cash, Card and Split: same fixed height */
.payment-method-tabs > .payment-method-btn {
    flex: 0 0 20%;
    height: 64px;
    min-height: 64px;
    border: 1px solid #e2e7ee;
    border-radius: 11px;
    background: #f9fafc;
    color: #586579;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

/* The middle actions: exactly 4 buttons × 2 rows */
.payment-top-actions {
    flex: 1;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 1px;
    align-items: center;
    overflow: hidden;
}

/* Each small action button */
.payment-top-actions button {
    min-width: 0;
    height: 30px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #586579;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}

.payment-top-actions button i {
    margin-right: 3px;
    color: #009e70;
    font-size: 12px;
}

.payment-top-actions button:hover {
    color: #009e70;
}

/* Active Cash design */
.payment-method-btn:hover,
.payment-method-btn.active {
    color: #fff;
    background: #08ad79;
    border-color: #08ad79;
    box-shadow: 0 4px 9px rgba(8, 173, 121, .22);
}

.payment-method-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.payment-method-btn {
    min-height: 58px;
    border: 1px solid #e2e7ee;
    border-radius: 11px;
    background: #f9fafc;
    color: #586579;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.payment-method-btn:hover,
.payment-method-btn.active {
    color: #fff;
    background: #08ad79;
    border-color: #08ad79;
    box-shadow: 0 4px 9px rgba(8, 173, 121, .22);
}

.payment-method-btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.payment-summary-row {
    display: grid;
    grid-template-columns: 1.25fr 1.7fr 1.45fr 1.6fr;
    margin-top: 7px;
    border: 1px solid #edf0f4;
    border-radius: 0 0 11px 11px;
    overflow: hidden;
}

.payment-summary-item {
    min-height: 62px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid #edf0f4;
    background: #fff;
}

.payment-summary-item:last-child {
    border-right: 0;
}

.payment-summary-item span {
    font-size: 12px;
    color: #8c9aae;
}

.payment-summary-item strong {
    font-size: 20px;
    color: #071d3b;
    white-space: nowrap;
}

.payment-summary-item em {
    font-size: 16px;
    font-style: normal;
    color: #31445f;
}

.payment-paid {
    justify-content: center;
    border: 2px solid #16d497;
    border-radius: 10px;
    margin: 5px;
    min-height: 50px;
}

.payment-change strong,
.payment-change span {
    color: #009a68;
}

.payment-change strong {
    font-size: 27px;
}

.payment-extra-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 11px 18px;
}

.payment-adjustment-actions,
.payment-main-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.payment-extra-actions button {
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #586579;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.payment-extra-actions button i {
    margin-right: 5px;
    color: #009e70;
}

.payment-extra-actions button:hover {
    color: #009e70;
}
.payment-adjustments-source {
    display: none;
}

/* Remove empty gradient space below Shopping Cart */
.pos-right-panel {
    min-height: 0 !important;
height: calc(100vh - 230px) !important;
}

/* Remove the dark strip below payment panel */
.pos-form-actions {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
/* Keep old POS calculation inputs, but remove their visible/layout space */
.pos_form_totals {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Product rows take all free space inside Shopping Cart */
.shopping-cart-body {
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    background: #fff !important;
}
/* Bigger Subtotal amount */
.payment-summary-item:first-child strong {
    font-size: 28px !important;
}

.payment-summary-item:first-child #total_payable {
    font-size: 28px !important;
    font-weight: 800 !important;
}

/* Editable Paid amount */
.pos-paid-amount {
    width: 190px;
    max-width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #071d3b;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

.pos-paid-invalid {
    color: #dc2626 !important;
}

/* Keep Paid field box neat */
.payment-paid {
    justify-content: center;
}
/* Large Change amount + orange color */
.payment-change {
    background: #fff7ed !important;
    border: 2px solid #fb923c !important;
    border-radius: 12px;
    margin: 5px;
    min-height: 52px;
}

.payment-change span,
.payment-change strong,
.payment-change #pos-change-amount {
    color: #ea580c !important;
}

.payment-change strong,
.payment-change #pos-change-amount {
    font-size: 30px !important;
    font-weight: 800 !important;
}

/* Cash payment / print button */
.pos-proceed-cash {
    margin-left: 14px;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: #f97316;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.pos-proceed-cash:hover {
    background: #ea580c;
}
/* Compact payment panel to about 60% of current height */
.payment-bottom-panel {
    padding: 5px 10px 6px !important;
}

/* Cash / Card / Split */
.payment-method-tabs > .payment-method-btn {
    height: 42px !important;
    min-height: 42px !important;
    font-size: 15px !important;
}

/* 8 small action buttons */
.payment-top-actions {
    height: 42px !important;
    column-gap: 6px !important;
    row-gap: 0 !important;
}

.payment-top-actions button {
    height: 20px !important;
    font-size: 11px !important;
}

/* Subtotal / Paid / Change row */
.payment-summary-row {
    margin-top: 4px !important;
}

.payment-summary-item {
    min-height: 46px !important;
    padding: 5px 10px !important;
}

.payment-paid,
.payment-change {
    min-height: 38px !important;
    margin: 3px !important;
}

/* Keep main amounts readable in compact mode */
.payment-summary-item:first-child strong,
.payment-summary-item:first-child #total_payable,
.payment-change strong,
.payment-change #pos-change-amount {
    font-size: 24px !important;
}

.pos-paid-amount {
    font-size: 21px !important;
}

.pos-proceed-cash {
    padding: 6px 9px !important;
    font-size: 11px !important;
}
/* Thin scrollbar in the left product panel */
.pos-product-area::-webkit-scrollbar {
    width: 5px !important;
}

.pos-product-area::-webkit-scrollbar-track {
    background: transparent;
}

.pos-product-area::-webkit-scrollbar-thumb {
    background: #8b8b8b;
    border-radius: 10px;
}

.pos-product-area::-webkit-scrollbar-thumb:hover {
    background: #606060;
}
/* Category + Brands filter buttons */
.pos-sidebar-filter-btn {
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    border-radius: 14px !important;
    font-size: 19px !important;
    gap: 8px !important;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22) !important;
    transition: transform .15s ease, box-shadow .15s ease !important;
}

.pos-sidebar-filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.32) !important;
}

.pos-sidebar-filter-btn svg {
    width: 23px !important;
    height: 23px !important;
}

/* Dashboard header: live date/time and connection status */
.header-live-info {
    align-items: center;
    gap: 10px;
}

.header-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .2s ease;
}

.header-connection-status i {
    font-size: 15px;
}

.header-connection-status.is-offline {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.header-connection-status.is-offline i {
    transform: rotate(180deg);
}

.header-live-clock {
    display: flex;
    min-width: 154px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    line-height: 1.15;
}

#header_live_time {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}

#header_live_date {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 500;
}

/* Thin scrollbar for product-card area */
#product_list_body {
    scrollbar-width: thin;
    scrollbar-color: #7b7b7b transparent;
}

#product_list_body::-webkit-scrollbar {
    width: 5px !important;
}

#product_list_body::-webkit-scrollbar-track {
    background: transparent;
}

#product_list_body::-webkit-scrollbar-thumb {
    background: #858585;
    border-radius: 10px;
}

#product_list_body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#modal_payment {
    display: none !important;
}

#modal_payment.pos-payment-visible {
    display: block !important;
}

/* Dashboard summary cards */
.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.dashboard-summary-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 154px;
    padding: 23px 24px;
    border: 2px solid transparent;
    border-radius: 18px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(115deg, #061a38 0%, #089ca8 52%, #061a38 100%) border-box;
    box-shadow: 0 5px 16px rgba(6, 26, 56, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.dashboard-summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 28px rgba(6, 26, 56, .18);
}

.dashboard-summary-card p {
    margin: 0 0 7px;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-summary-card h3 {
    margin: 0;
    color: #1e3166;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.4px;
    white-space: nowrap;
}

.dashboard-summary-card small {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    border-radius: 16px;
    font-size: 22px;
}

.dashboard-card-icon.green  { color: #087f5b; background: #d1fae5; }
.dashboard-card-icon.blue   { color: #2563eb; background: #dbeafe; }
.dashboard-card-icon.red    { color: #e11d48; background: #ffe4e6; }
.dashboard-card-icon.purple { color: #7c3aed; background: #ede9fe; }
.dashboard-card-icon.orange { color: #ea580c; background: #ffedd5; }
.dashboard-card-icon.teal   { color: #0f766e; background: #ccfbf1; }

.dashboard-cash-card {
    background:
        linear-gradient(#f4fffd, #ffffff) padding-box,
        linear-gradient(115deg, #061a38 0%, #089ca8 52%, #061a38 100%) border-box;
}

/* Tablet: two cards per row */
@media (max-width: 1199px) {
    .dashboard-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: one card per row */
@media (max-width: 639px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 16px;
    }

    .dashboard-summary-card {
        min-height: 130px;
        padding: 18px;
        gap: 14px;
    }

    .dashboard-summary-card h3 {
        font-size: 23px;
    }

    .dashboard-card-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 14px;
        font-size: 19px;
    }
}

/* Keep new dashboard cards consistent with existing POS font */
.dashboard-summary-card,
.dashboard-summary-card p,
.dashboard-summary-card h3,
.dashboard-summary-card small,
.dashboard-card-icon {
    font-family: 'Poppins', sans-serif !important;
}

.dashboard-summary-card p {
    font-size: 16px;
    font-weight: 600;
}

.dashboard-summary-card h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.dashboard-summary-card small {
    font-size: 13px;
    font-weight: 500;
}

/* =========================================
   Dashboard - Sales by Payment Method
========================================= */
.payment-method-dashboard {
    margin: 26px 0 0;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #dce5f0;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(15, 52, 96, 0.06);
}

.payment-method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.payment-method-header h3 {
    margin: 0;
    color: #173b70;
    font-size: 24px;
    font-weight: 700;
}

.payment-method-header p {
    margin: 5px 0 0;
    color: #71809a;
    font-size: 13px;
}

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.payment-method-card {
    min-height: 145px;
    padding: 20px;
    border: 1px solid;
    border-radius: 16px;
}

.payment-method-card p {
    margin: 0 0 12px;
    color: #354968;
    font-size: 16px;
    font-weight: 600;
}

.payment-method-card h3 {
    margin: 0 0 7px;
    color: #173b70;
    font-size: 25px;
    font-weight: 700;
}

.payment-method-card small {
    color: #667995;
    font-size: 13px;
}

.payment-method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 11px;
    font-size: 18px;
}

/* Cash */
.payment-method-card.cash {
    background: #effcf5;
    border-color: #c8f3da;
}

.payment-method-card.cash h3,
.payment-method-card.cash .payment-method-icon {
    color: #07864b;
}

.payment-method-card.cash .payment-method-icon {
    background: #d7f9e5;
}

/* Card */
.payment-method-card.card {
    background: #f0f6ff;
    border-color: #d2e4ff;
}

.payment-method-card.card h3,
.payment-method-card.card .payment-method-icon {
    color: #2563eb;
}

.payment-method-card.card .payment-method-icon {
    background: #dceaff;
}

/* Online */
.payment-method-card.online {
    background: #faf3ff;
    border-color: #ecd9ff;
}

.payment-method-card.online h3,
.payment-method-card.online .payment-method-icon {
    color: #7c2ce8;
}

.payment-method-card.online .payment-method-icon {
    background: #f0e1ff;
}

/* Credit */
.payment-method-card.credit {
    background: #fff9e8;
    border-color: #fae7aa;
}

.payment-method-card.credit h3,
.payment-method-card.credit .payment-method-icon {
    color: #c46800;
}

.payment-method-card.credit .payment-method-icon {
    background: #fff0bd;
}

.payment-method-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e6edf5;
    color: #30496d;
    font-size: 16px;
    font-weight: 600;
}

.payment-method-total strong {
    color: #173b70;
    font-size: 24px;
}

/* Tablet: two cards per row */
@media (max-width: 1199px) {
    .payment-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: one card per row */
@media (max-width: 575px) {
    .payment-method-dashboard {
        margin-top: 18px;
        padding: 17px;
        border-radius: 15px;
    }

    .payment-method-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 16px;
    }

    .payment-method-header h3 {
        font-size: 20px;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .payment-method-card {
        min-height: auto;
        padding: 16px;
    }

    .payment-method-total strong {
        font-size: 20px;
    }
}

.payment-method-date-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 15px;
    background: #f8fbff;
    border: 1px solid #a9c8ff;
    border-radius: 11px;
    color: #173b70;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.payment-method-date-display i {
    color: #2563eb;
    font-size: 16px;
}

.payment-method-date-display span {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575px) {
    .payment-method-date-display {
        width: 100%;
    }
}
@media (max-width: 1024px) {
    .pos-right-panel {
        min-height: 520px !important;
    }

    .shopping-cart-header {
        padding: 14px 18px !important;
    }

    .pos_form_totals {
        margin-bottom: 0 !important;
    }
}
