@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{
  margin-top: 1px;
  height: auto;
  padding-top: 1px;
  padding-bottom: 1px;
  position: fixed;
  bottom: 0px;
   /* JHRG888 merubah warna background menu POS bagian bawah menjadi biru */
   background: linear-gradient(to right, #FFD3D3, #C3DFFF) !important;
   /* background-color: #D1D5DC; */
  width: 100%;
  z-index: 888;
  border-radius: 10px 10px 0 0;
}
.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;
}

/* JHRG888 WARNA HALAMAN LOGIN BACKGROUND COLOR ADDED BY PRASHANT */
/* .right-col {
  background-color: #243949;
  height: 100%;
  min-height: 100vh;
} */
.right-col {
  background: linear-gradient(to right, #FFD3D3, #C3DFFF);
  height: 100%;
}

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

/* 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;
}




/* JHRG888 CSS Khusus MODULES Di Tampilan Role Permission Start */

.modules-permissions {
  margin: 15px 0;
}
/*Style untuk Modules */
.module-card {
  border: 1px solid #f08080;
  /* Merah lembut */
  border-radius: 6px;
  margin-bottom: 15px;
  background: #ffe6e6;
  /* Merah sangat lembut */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.module-header {
  padding: 12px 15px;
  background: #ffd4d4;
  /* Merah pastel lembut */
  border-bottom: 1px solid #f08080;
  cursor: pointer;
}

.module-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
  /* Teks hitam gelap */
  font-weight: bold;
}

.module-content {
  padding: 15px;
}

.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}

.permission-item {
  flex: 0 0 calc(33.333% - 10px);
  min-width: 250px;
}

.permission-item .checkbox {
  margin: 0;
}

.permission-divider {
  flex-basis: 100%;
  margin: 10px 0;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  .permission-item {
    flex: 0 0 100%;
  }
}
/* JHRG888 CSS Khusus MODULES Di Tampilan Role Permission End */





/* JHRG888 Custom styles for POS form actions start*/

/* Action Squares Container */
.action-squares-container {
    background: transparent !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100%;
}

.pos-form-actions .tw-text-black {
  color: #000 !important;
}

.pos-form-actions #total_payable {
  margin-left: 5px;
  font-weight: 600 !important;
}

/* Make sure Total Payable text is visible on all backgrounds */
.pos-form-actions .tw-border-blue-200\/30 {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 5px 10px;
}

/* Equal height for the left and right columns in POS form actions */
.pos-form-actions .md\:tw-flex-row {
  align-items: stretch !important;
}

/* Equal height for action buttons and payment buttons */
.pos-form-actions .action-squares-container,
.pos-form-actions .tw-mt-auto {
  height: 100% !important;
  display: flex !important;
}

/* Additional spacing adjustments for the pos-form-actions */
.pos-form-actions .tw-p-2 {
  padding: 0.5rem !important;
}

.pos-form-actions .tw-mb-3 {
  margin-bottom: 0.5rem !important;
}

/* Action Squares (Draft, Quotation, etc.) - Updated to rectangular style */
.action-square {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px !important;
    padding: 5px 10px !important;
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
    gap: 5px;
}

.action-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.action-square i {
    font-size: 14px !important;
    margin-bottom: 0 !important;
}

.action-square span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button specific styles - Updated with gradients */
.draft-square {
    background: linear-gradient(135deg, #F9FAFB, #E5E7EB) !important;
}

.quotation-square {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A) !important;
}

.suspend-square {
    background: linear-gradient(135deg, #FEE2E2, #FCA5A5) !important;
}

.credit-square {
    background: linear-gradient(135deg, #E0E7FF, #C7D2FE) !important;
}

.card-square {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8) !important;
}

/* Multiple Pay Button */
.pay-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 38px;
}

.pay-btn:hover {
    background: linear-gradient(135deg, #2563EB, #1E40AF) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cash Button */
.cash-btn {
    background: linear-gradient(135deg, #10B981, #059669) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 38px;
}

.cash-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cancel Button */
.cancel-btn {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 38px;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Recent Transactions Button */
.recent-trans-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px !important;
    font-size: 11px !important;
    color: #fff !important;
}

.recent-trans-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2)) !important;
    transform: translateY(-2px);
}

/* Mobile styles */
@media (max-width: 767px) {
    .pos-form-actions {
        margin-top: 40px;
    }
    
    .middle-row-actions {
        padding: 10px !important;
    }
    
    .action-squares-container {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: auto auto !important;
        gap: 8px !important;
        margin-top: 15px !important;
    }
    
    .action-square {
        height: 38px !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
    }
    
    .action-square i {
        font-size: 14px !important;
    }
    
    .action-square span {
        font-size: 10px !important;
        font-weight: 600 !important;
    }
    
    .mobile-pos-actions {
        display: block !important;
    }
    
    /* Mobile specific adjustments for totals section */
    .tw-flex-wrap {
        flex-wrap: wrap !important;
    }
    
    .tw-min-w-\[120px\] {
        min-width: 100px !important;
    }
    
    .tw-text-white.tw-text-xs {
        font-size: 11px !important;
    }
    
    /* Ensure buttons are properly sized on mobile */
    .pay-btn, .cash-btn, .cancel-btn {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }
    
    /* Fix for smaller screens to ensure columns stack */
    .md\:tw-flex-row {
        flex-direction: column !important;
    }
    
    .md\:tw-w-1\/2 {
        width: 100% !important;
    }
}
/* JHRG888 Custom styles for POS form actions end*/



/* JHRG888 Custom POS Header Gradient Start*/
.pos-header-gradient {
    background: linear-gradient(to right, #FFD3D3, #C3DFFF) !important;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
    padding: 5px;
}
/* JHRG888 Custom POS Header Gradient End*/

/* JHRG888 POS Header Button Spacing Start */
.pos-header .tw-flex-col > div:first-child {
    margin-right: 8px;
}

.pos-header #pos_header_more_options {
    gap: 8px !important;
}

#add_expense {
    margin-left: 8px;
}
/* JHRG888 POS Header Button Spacing End */

/* Mobile styles for POS totals organization */
@media (max-width: 767px) {
    /* Create a proper row structure */
    .pos-totals-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Reset some default properties */
    .pos-totals-container > div {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    
    /* Hide all items initially to control display order */
    .mobile-discount, .mobile-tax, .mobile-shipping, .mobile-packing {
        display: none !important;
    }
    
    /* Create the first row container */
    .pos-totals-container:before {
        content: "";
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    /* Create the second row container */
    .pos-totals-container:after {
        content: "";
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
    
    /* Position discount and tax in first row */
    .mobile-discount {
        display: inline-block !important;
        width: 48% !important;
        order: 1 !important;
        position: absolute !important;
        left: 15px !important;
        top: 15px !important;
    }
    
    /* Pastikan mobile-tax terhide saat disable_order_tax aktif */
    .mobile-tax {
        display: inline-block !important;
        width: 48% !important;
        order: 2 !important;
        position: absolute !important;
        right: 15px !important;
        top: 15px !important;
    }
    
    /* Tambahan: force hide untuk mobile-tax yang seharusnya disembunyikan */
    .mobile-tax[style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Position shipping and packing in second row */
    .mobile-shipping {
        display: inline-block !important;
        width: 48% !important;
        order: 3 !important;
        position: absolute !important;
        left: 15px !important;
        top: 60px !important;
    }
    
    .mobile-packing {
        display: inline-block !important;
        width: 48% !important;
        order: 4 !important;
        position: absolute !important;
        right: 15px !important;
        top: 60px !important;
    }
    
    /* Add spacing at the bottom of the container */
    .pos-totals-container {
        padding-bottom: 40px !important;
        position: relative !important;
        min-height: 100px !important;
    }
    
    /* Make text and touchable areas larger */
    .pos-totals-container .tw-text-black {
        padding: 8px 0 !important;
    }
    
    .pos-totals-container i.fas.fa-edit,
    .pos-totals-container i.service_modal_btn {
        padding: 6px !important;
        margin-left: 5px !important;
        font-size: 16px !important;
    }
}

/* JHRG888 POS Table Column Sizes CSS START */
.pos_product_div {
  overflow: auto !important; /* Enable both horizontal and vertical scrolling */
  border-radius: 4px;
  max-height: 55vh !important; /* Increased height to show more rows */
}

.pos_product_div table#pos_table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px; /* Ensure table has minimum width for scrolling on small screens */
}

/* Column width adjustments based on content needs */
/* Product column - Make it larger for product name and image */
.pos_product_div table#pos_table th:nth-child(1) {
  width: 33% !important;
}

/* Quantity column - Make it wider to fit at least 4 digits */
.pos_product_div table#pos_table th:nth-child(2) {
  width: 15% !important;
}

/* Service staff column - Slightly wider for dropdown */
.pos_product_div table#pos_table th:nth-child(3) {
  width: 20% !important;
}

/* Price inc. tax column - Wider to fit 8-9 digits */
.pos_product_div table#pos_table th:nth-child(4) {
  width: 16% !important;
}

/* Subtotal column - Wider to fit 8-9 digits */
.pos_product_div table#pos_table th:nth-child(5) {
  width: 16% !important;
}

/* Action X column - Keep it small and similar to original design */
.pos_product_div table#pos_table th:nth-child(6) {
  width: 5% !important;
  min-width: 25px !important;
  max-width: 25px !important;
  padding: 0 !important;
}

/* Make X icon in header smaller and consistent with other header text */
.pos_product_div table#pos_table thead th:last-child i.fas.fa-times,
.pos_product_div table#pos_table thead th .fas.fa-times {
  font-size: 12px !important;
  font-weight: 700 !important;
  vertical-align: middle !important;
  color: #333 !important;
}

/* Table header styling with attractive gradient like in image #3 - made thinner */
.pos_product_div table#pos_table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #ddd;
  background: linear-gradient(to right, #ffd3d364, #c3dfff6a) !important;
  color: #333 !important;
  padding: 4px 3px !important; /* Reduced padding */
  font-weight: 700 !important; /* Bolder font */
  text-align: center !important;
  font-size: 12px !important; /* Smaller font */
  height: 28px !important; /* Set explicit height */
  line-height: 1.2 !important; /* Tighter line height */
}

/* Improved input number styles in quantity column - more compact with no gaps */
.input-group.input-number {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 110px;
  height: 28px !important; /* Reduced height */
  margin: 0 auto;
  border-collapse: collapse;
}

.input-group.input-number .input-group-btn {
  width: auto;
  font-size: 0; /* Remove whitespace */
}

.input-group.input-number .input-group-btn .btn {
  padding: 1px 6px !important; /* Reduced padding */
  height: 28px !important; /* Reduced height */
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Left button styles */
.input-group.input-number .input-group-btn:first-child .btn {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: 0;
}

/* Right button styles */
.input-group.input-number .input-group-btn:last-child .btn {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-left: 0;
}

/* Make the quantity field fit at least 4 digits with reduced height */
.input-group.input-number input.form-control {
  text-align: center;
  width: 60px !important; /* Increased width to accommodate 4 digits */
  flex-grow: 1;
  border-radius: 0;
  height: 28px !important; /* Reduced height */
  padding: 1px 2px !important; /* Reduced padding */
  z-index: 0; /* Prevent the input from covering the buttons */
  margin: 0;
  box-shadow: none;
  font-size: 12px !important; /* Smaller font */
}

/* Fix input width attribute which is sometimes overridden */
.input-group.input-number input.form-control[style*="width"] {
  width: 60px !important; /* Increased width to accommodate 4 digits */
}

/* Ensure text inputs in other columns also stay within bounds */
.pos_product_div table#pos_table td input[type="text"] {
  width: 100% !important;
  max-width: 100%;
}

/* Center-align text in quantity, price and subtotal cells */
.pos_product_div table#pos_table td:nth-child(2),
.pos_product_div table#pos_table td:nth-child(4),
.pos_product_div table#pos_table td:nth-child(5) {
  text-align: center;
}

/* Fix the price and subtotal columns to handle large numbers (8-9 digits) */
.pos_product_div table#pos_table td input.pos_unit_price_inc_tax,
.pos_product_div table#pos_table td input.pos_line_total {
  min-width: 100px; /* Increased min-width for larger numbers */
  max-width: 100%;
  text-align: right;
  padding-right: 10px;
  font-size: 12px !important; /* Smaller font */
  height: 28px !important; /* Reduced height */
}

/* Ensure dropdowns in the table fit properly */
.pos_product_div table#pos_table select.form-control {
  width: 100% !important;
  height: 28px !important; /* Reduced height */
  padding: 1px 6px !important; /* Reduced padding */
  font-size: 12px !important; /* Smaller font */
}

/* Make sure the select2 dropdowns respect column widths */
.pos_product_div table#pos_table .select2-container {
  width: 100% !important;
}

/* Action X column styling - make it compact */
.pos_product_div table#pos_table td:last-child,
.pos_product_div table#pos_table th:last-child {
  padding: 0 !important;
  text-align: center !important;
  width: 5% !important;
  min-width: 25px !important;
  max-width: 25px !important;
  padding-bottom: 6px !important;
  padding-top: 4px !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  /* Enable horizontal scrolling for the table on small screens */
  .pos_product_div {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Adjust padding for mobile */
  .pos_product_div table#pos_table td {
    padding: 2px 2px !important; /* Reduced padding further */
  }
  
  /* Fix X column to stay in place and not shift - remove sticky positioning */
  .pos_product_div table#pos_table td:last-child {
    position: static !important; 
    background-color: transparent !important;
    box-shadow: none !important;
  }
}

/* Make sure the product image fits properly */
.pos_product_div table#pos_table td img {
  max-width: 36px !important; /* Smaller */
  max-height: 36px !important; /* Smaller */
  object-fit: cover;
  vertical-align: middle;
  border: 1px solid #eee;
}

/* Table row padding adjustments for better spacing - made thinner */
.pos_product_div table#pos_table td {
  padding: 2px 3px !important; /* Reduced padding significantly */
  vertical-align: middle;
  font-size: 12px !important; /* Smaller font */
}

/* Keep the delete button properly centered */
.pos_product_div table#pos_table td.text-center.v-center {
  vertical-align: middle;
}

/* Make delete X button smaller and vertically centered */
.pos_product_div table#pos_table .fa.fa-times.text-danger {
  font-size: 12px !important; /* Smaller */
  color: #dc3545 !important;
  vertical-align: middle !important;
}

/* Ensure subunit selection is properly sized */
.pos_product_div table#pos_table .sub_unit {
  max-width: 110px;
  margin: 1px auto 0 !important; /* Reduced margin */
  display: block;
  height: 26px !important; /* Reduced height */
  padding: 1px 5px !important; /* Reduced padding */
  font-size: 12px !important; /* Smaller font */
}

/* Fix for service staff dropdown to make it fit column and look better */
.pos_product_div table#pos_table td .select2-container--default .select2-selection--single {
  height: 28px !important; /* Reduced height */
  min-height: 28px !important; /* Reduced height */
}

.pos_product_div table#pos_table td .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px !important; /* Match height */
  padding-left: 5px !important; /* Reduced padding */
  padding-right: 15px !important; /* Reduced padding */
  font-size: 12px !important; /* Smaller font */
}

.pos_product_div table#pos_table td .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 26px !important; /* Reduced height */
  width: 15px !important; /* Reduced width */
}

/* Product name styling */
.pos_product_div table#pos_table td:first-child {
  font-weight: 500;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  font-size: 12px !important; /* Smaller font */
}

/* Better alignment for the product info */
.pos_product_div table#pos_table tr td:first-child {
  padding-left: 5px !important; /* Reduced padding */
  line-height: 1.1 !important; /* Tighter line height */
}

/* Improve the table's scrolling behavior */
.pos_product_div::-webkit-scrollbar {
  width: 6px; /* Smaller scrollbar */
  height: 6px; /* Smaller scrollbar */
}

.pos_product_div::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.pos_product_div::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

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

/* Reduce row spacing to absolute minimum */
.pos_product_div table#pos_table tbody tr {
  height: 34px !important; /* Force a specific reduced height */
  min-height: 34px !important;
  max-height: 34px !important;
  border-bottom: 1px solid #f0f0f0; /* Add a separator between rows */
}

/* Better spacing for product details */
.pos_product_div table#pos_table td:first-child small {
  margin-top: 1px !important; /* Reduced margin */
  display: block;
  font-size: 10px !important; /* Smaller font */
  line-height: 1 !important; /* Tighter line height */
}

/* JHRG888 POS Table Column Sizes CSS END */

/* Mobile styles for POS totals organization */
@media (max-width: 767px) {
    /* Create a proper row structure */
    .pos-totals-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Reset some default properties */
    .pos-totals-container > div {
        flex: none !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
    
    /* Hide all items initially to control display order */
    .mobile-discount, .mobile-tax, .mobile-shipping, .mobile-packing {
        display: none !important;
    }
    
    /* Create the first row container */
    .pos-totals-container:before {
        content: "";
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
    
    /* Create the second row container */
    .pos-totals-container:after {
        content: "";
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-top: 8px !important;
    }
    
    /* Position discount and tax in first row */
    .mobile-discount {
        display: inline-block !important;
        width: 48% !important;
        order: 1 !important;
        position: absolute !important;
        left: 15px !important;
        top: 15px !important;
    }
    
    /* Pastikan mobile-tax terhide saat disable_order_tax aktif */
    .mobile-tax {
        display: inline-block !important;
        width: 48% !important;
        order: 2 !important;
        position: absolute !important;
        right: 15px !important;
        top: 15px !important;
    }
    
    /* Tambahan: force hide untuk mobile-tax yang seharusnya disembunyikan */
    .mobile-tax[style*="display: none"] {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Position shipping and packing in second row */
    .mobile-shipping {
        display: inline-block !important;
        width: 48% !important;
        order: 3 !important;
        position: absolute !important;
        left: 15px !important;
        top: 60px !important;
    }
    
    .mobile-packing {
        display: inline-block !important;
        width: 48% !important;
        order: 4 !important;
        position: absolute !important;
        right: 15px !important;
        top: 60px !important;
    }
    
    /* Add spacing at the bottom of the container */
    .pos-totals-container {
        padding-bottom: 40px !important;
        position: relative !important;
        min-height: 100px !important;
    }
    
    /* Make text and touchable areas larger */
    .pos-totals-container .tw-text-black {
        padding: 8px 0 !important;
    }
    
    .pos-totals-container i.fas.fa-edit,
    .pos-totals-container i.service_modal_btn {
        padding: 6px !important;
        margin-left: 5px !important;
        font-size: 16px !important;
    }
}

/* Customer Display Table Styling */
.custom-table-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.custom-display-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    margin-bottom: 0;
}

/* Header styling */
.custom-display-table thead {
    background: linear-gradient(to right, #ffd3d364, #c3dfff6a);
    position: sticky;
    top: 0;
    z-index: 10;
}

.custom-display-table th {
    padding: 10px 12px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #eaeaea;
    font-size: 14px;
    color: #333;
}

/* Column widths */
.custom-display-table .product-col {
    width: 32%;
    text-align: center;
}

.custom-display-table .qty-col {
    width: 12%;
    text-align: center;
}

.custom-display-table .staff-col {
    width: 13%;
    text-align: center;
}

.custom-display-table .price-col {
    width: 20%;
    text-align: right;
}

.custom-display-table .subtotal-col {
    width: 23%;
    text-align: center;
}

/* Cell styling */
.custom-display-table td {
    padding: 8px 12px;
    border: 1px solid #eaeaea;
    vertical-align: middle;
    background-color: white;
}

.custom-display-table .product-cell {
    text-align: center;
    font-weight: 500;
}

.custom-display-table .qty-cell {
    text-align: center;
    font-weight: 600;
}

.custom-display-table .staff-cell {
    text-align: center;
}

.custom-display-table .price-cell {
    text-align: right;
    font-weight: 600;
}

.custom-display-table .subtotal-cell {
    text-align: center;
    font-weight: 600;
}

/* Large number handling */
.custom-display-table .large-number {
    font-size: 12px;
}

/* Totals container styling */
.totals-container {
    background: linear-gradient(to right, #ffd3d3aa, #c3dfffaa);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Summary row styling */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.summary-item {
    flex: 1;
}

.summary-item.text-left {
    text-align: left;
}

.summary-item.text-right {
    text-align: right;
}

.summary-label {
    font-weight: 600;
    font-size: 16px;
    color: #444;
}

.summary-value {
    font-weight: 700;
    font-size: 16px;
    margin-left: 5px;
}

/* Charges row styling - updated for horizontal layout */
.charges-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.charges-item {
    padding: 5px 10px;
    flex: 1 1 33%;
    min-width: 0;
    text-align: center;
}

.charges-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
    display: block;
}

.charges-value {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

/* Color coding for charges */
.charges-item:nth-child(1) .charges-label {
    color: #dc3545; /* Red for discount */
}

.charges-item:nth-child(2) .charges-label {
    color: #28a745; /* Green for tax */
}

.charges-item:nth-child(3) .charges-label {
    color: #17a2b8; /* Blue for shipping */
}

/* Total payable in its own box */
.charges-item.total-payable {
    flex: 1 1 100%;
    margin-top: 15px;
    background: linear-gradient(to right, #118844, #2c6e49);
    color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.charges-item.total-payable .charges-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.charges-item.total-payable .charges-value {
    font-size: 18px;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .charges-item {
        flex: 1 1 100%;
        text-align: left;
    }
    
    .charges-item.total-payable {
        text-align: right;
    }
}

/* Payment box styling */
.payment-info {
    margin-top: 15px;
}

.payment-box {
    margin-bottom: 10px;
}

.payment-title {
    font-size: 14px !important;
    margin-bottom: 5px;
}

/* Customer header container */
.customer-header-container {
    margin-bottom: 15px;
}

/* Customer name box */
.customer_details {
    padding: 7px 10px !important;
    border-radius: 12px !important;
}

.customer_details h4 {
    font-size: 13px !important;
    line-height: 1.2;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 767px) {
    .custom-display-table th,
    .custom-display-table td {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .custom-display-table .product-cell {
        max-width: 120px;
    }
    
    .custom-display-table .large-number {
        font-size: 10px;
    }
    
    .summary-row,
    .charges-row {
        flex-direction: column;
    }
    
    .summary-item {
        margin-bottom: 5px;
    }
    
    .charges-item {
        flex: 1 1 100%;
        padding: 3px 0;
    }
    
    .customer-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .customer_details {
        margin-bottom: 10px;
        width: 100%;
        max-width: 100%;
    }
}

/* JHRG888 Product Row Horizontal Layout CSS START */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

/* Product image container */
.product-image {
    flex-shrink: 0;
    margin-right: 10px !important;
}

/* Product info container - needs to take remaining space */
.product-info {
    flex: 1;
    text-align: left;
    min-width: 0; /* Prevent overflow issues */
}

/* Keep product name from overflowing */
.product-info span, .product-info div {
    white-space: normal;
    word-break: break-word;
}
/* JHRG888 Product Row Horizontal Layout CSS END */

/* JHRG888 CSS TOTAL ITEM START */

.item-total-container .tw-flex-1 {
    min-width: 1px;
    padding: 1px 8px;
}


.item-total-container .total_quantity,
.item-total-container .price_total {
    font-weight: 600;
}

/* Mobile responsiveness for Item and Total */
@media (max-width: 767px) {
    .item-total-container {
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .item-total-container .tw-flex-1 {
        flex: 0 0 48%;
        margin-bottom: 5px;
    }
    
    .item-total-container .tw-text-black {
        font-size: 14px;
    }
    
    .item-total-container .total_quantity,
    .item-total-container .price_total {
        font-size: 16px;
    }
}
/* JHRG888 CSS TOTAL ITEM END */

/* JHRG888 Customer Display Screen CSS START */
/* Main container menjadi grid dengan 3 area: header, content, footer */
.display-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #f5f8fa;
  padding: 10px;
  grid-gap: 10px;
}

/* Header styling */
.display-header {
  background: linear-gradient(to right, #FFD3D3, #C3DFFF);
  border-radius: 10px;
  padding: 8px 15px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Content area - bagi menjadi 2 kolom */
.display-content {
  display: grid;
  grid-template-columns: 63% 37%;
  grid-gap: 10px;
  overflow: hidden;
}

/* Main area - tabel produk */
.display-main {
  background: white;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Customer info styling */
.customer-info-container {
  margin-bottom: 10px;
}

.customer-info-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer_details {
  background: linear-gradient(to right, #ffd3d364, #c3dfff6a);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  flex: 1;
}

.customer-name {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

/* Full screen button styling - Now next to customer details */
.fullscreen-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-left: 10px;
}

.fullscreen-btn i {
  color: #646EE4;
  font-size: 18px;
}

/* Products table container */
.products-table-container {
  flex: 1;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
}

/* Sidebar styling */
.display-sidebar {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Carousel taking full height */
.display-sidebar .carousel,
.display-sidebar .carousel-inner,
.display-sidebar .item {
  height: 100%;
}

.display-sidebar .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer styling - condensed version */
.display-footer {
  background: white;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Top row with item count, discount, tax, shipping */
.footer-top-row {
  display: flex;
  justify-content: space-between;
  background: #f8f9fa;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.footer-item {
  display: flex;
  align-items: center;
}

.footer-item.hidden {
  display: none;
}

.footer-label {
  font-weight: 600;
  margin-right: 5px;
  font-size: 13px;
}

.discount-label {
  color: #dc3545;
}

.tax-label {
  color: #28a745;
}

.shipping-label {
  color: #0d6efd;
}

.footer-value {
  font-weight: 700;
  font-size: 13px;
}

/* Bottom row with total and payment details */
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

/* Total payable styling */
.total-group {
  flex: 0 0 35%;
}

.total-payable {
  background: linear-gradient(to right, #00c853, #b9f6ca);
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-weight: 700;
  font-size: 15px;
  color: #000;
}

.total-value {
  font-weight: 700;
  font-size: 18px;
  color: #000;
}

/* Payment info styling */
.payment-group {
  flex: 0 0 63%;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(to right, #FFD3D3, #C3DFFF);
  padding: 8px;
  border-radius: 8px;
}

.payment-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  flex: 1;
  margin: 0 4px;
}

.payment-item:first-child {
  margin-left: 0;
}

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

.payment-label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 2px;
  font-size: 12px;
}

.payment-value {
  font-weight: 700;
  font-size: 14px;
}

.balance_due {
  color: #dc3545;
}

/* Responsive styles */
@media (max-width: 991px) {
  .display-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  
  .display-main {
    height: 55vh; /* Increased height for table */
  }
  
  .display-sidebar {
    height: 25vh; /* Reduced height for carousel */
  }
  
  .footer-top-row {
    flex-wrap: wrap;
  }
  
  .footer-item {
    flex: 1 0 50%;
    margin-bottom: 5px;
  }
  
  .footer-bottom-row {
    flex-direction: column;
  }
  
  .total-group, .payment-group {
    flex: 0 0 100%;
    width: 100%;
  }
  
  .total-group {
    margin-bottom: 8px;
  }
}

@media (max-width: 767px) {
  .display-container {
    padding: 5px;
    grid-gap: 5px;
  }
  
  .customer-info-wrapper {
    flex-wrap: wrap;
  }
  
  .customer_details {
    flex: 0 0 85%;
  }
  
  .fullscreen-btn {
    margin-top: 5px;
  }
  
  .display-main {
    height: 50vh;
  }
  
  .display-sidebar {
    height: 20vh;
  }
  
  .footer-item {
    flex: 1 0 100%;
  }
  
  .payment-group {
    flex-wrap: wrap;
  }
  
  .payment-item {
    flex: 1 0 100%;
    margin: 3px 0;
  }
}

/* Maintain existing custom-display-table styling */
.custom-table-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
}

.custom-display-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

/* Header styling */
.custom-display-table thead {
  background: linear-gradient(to right, #ffd3d364, #c3dfff6a);
  position: sticky;
  top: 0;
  z-index: 10;
}

.custom-display-table th {
  padding: 10px 12px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #eaeaea;
  font-size: 14px;
  color: #333;
}

/* Column widths */
.custom-display-table .product-col {
  width: 32%;
  text-align: center;
}

.custom-display-table .qty-col {
  width: 12%;
  text-align: center;
}

.custom-display-table .staff-col {
  width: 13%;
  text-align: center;
}

.custom-display-table .price-col {
  width: 20%;
  text-align: right;
}

.custom-display-table .subtotal-col {
  width: 23%;
  text-align: center;
}

/* Cell styling */
.custom-display-table td {
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  vertical-align: middle;
  background-color: white;
}

.custom-display-table .product-cell {
  text-align: center;
  font-weight: 500;
}

.custom-display-table .qty-cell {
  text-align: center;
  font-weight: 600;
}

.custom-display-table .staff-cell {
  text-align: center;
}

.custom-display-table .price-cell {
  text-align: right;
  font-weight: 600;
}

.custom-display-table .subtotal-cell {
  text-align: center;
  font-weight: 600;
}

/* Large number handling */
.custom-display-table .large-number {
  font-size: 12px;
}

/* Ensure price and subtotal cells can fit longer numbers */
.custom-display-table .price-cell,
.custom-display-table .subtotal-cell {
  font-family: monospace; /* Fixed-width font for better number alignment */
  min-width: 100px; /* Ensure minimum width */
  white-space: nowrap; /* Prevent wrapping */
}
/* JHRG888 Customer Display Screen CSS END */


