@media (max-width: 767px) {
    .main-header .navbar-custom-menu {
        float: none !important;
        display: block !important;
    }
    .main-header .navbar-custom-menu .dropdown-menu {
        left: auto !important;
    }
    .skin-blue-light .main-header .navbar .dropdown-menu li a {
        color: #777;
    }
    .main-header .navbar {
      height: auto;
    }
}
.bg-danger {
    background-color: #f2dede !important;
}
.btn-big {
    padding: 10px 30px;
    font-size: 18px;
    line-height: 1.3333333;
}

.of-visible {
    overflow: visible !important;
}

#online_indicator {
  font-size: 8px;
  vertical-align: middle;
}

.pt-0 {
  padding-top: 0px;
}
.f-right {
  float: right;
}
.mb-10 {
  margin-bottom: 10px;
}
.discount-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 18px;
  padding: 7px;
}

.discount-badge-small {
  position: absolute;
  top: -2px;
  left: 10px;
  font-size: 12px;
  padding: 6px;
}
.product-info-table td, .product-info-table th {
  font-size: 12px;
}
.catalogue {
  max-height: 127px;
  margin: auto;
  margin-bottom: 18px;
}
.catalogue-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
  margin-bottom: 10px;
}
.bg-light-gray {
  background-color: #f8f8f8 !important;
}
.p-5-5 {
  padding: 5px 5px !important;
}
.m-4 {
  margin: 4px;
}
.skin-black .main-header, .skin-black-light .main-header {
  color: #525f7f !important;
}
.skin-black .main-header .navbar .nav .open>a {
  color: #999 !important;
}
.skin-black .main-header .navbar .nav>li>a:hover{
  color: #999 !important;
}
.skin-black .main-header .navbar > .sidebar-toggle:hover {
  color: #999 !important;
}
.mt-0{
  margin-top: 0 !important;
}
.table-pdf thead tr{
  background-color: #357ca5 !important;
  color: #fff;
}
.table-pdf thead tr th {
  color: #fff !important;
}
.blue-heading {
  background-color: #357ca5;
  color: #fff;
}

.table-pdf .odd {
    background-color: #DCE6F1;
}
.p-4{
  padding: 4px;
}
.p-10{
  padding: 10px !important;
}
.jquery-top-scrollbar{
    height: 6px !important;
}
.jquery-top-scrollbar div {
    height: 6px !important;
}
.scroll-top-bottom {
  width: 100%; 
  overflow: scroll;
}
.scroll-top-bottom::-webkit-scrollbar {
    height: 6px;
}

.scrolltop {
  display:none;
  width:100%;
  margin:0 auto;
  position:fixed;
  bottom:20px;
  right:10px; 
}
.scroll {
  position:absolute;
  right:20px;
  bottom:20px;
  background:#b2b2b2;
  background:rgba(178,178,178,0.7);
  padding:7px;
  text-align: center;
  margin: 0 0 0 0;
  cursor:pointer;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s; 
  border-radius: 6px;   
}
.scroll:hover {
  background:rgba(178,178,178,1.0);
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;    
}
.scroll:hover .fas {
  padding-top:-10px;
}
.scroll .fas {
  font-size:25px;
  margin-top:-5px;
  margin-left:1px;
  transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;  
}

.f-left {
  float: left;
}
.align-left {
 text-align: left;
}
.align-right {
 text-align: right;
}

.table-pdf {
  border-collapse: collapse;
  width: 100%;
  border-spacing: 8px 10px;
}
.td-border td, .td-border th{
  border-bottom: 1px solid lightgrey;
  padding: 8px 5px;
}

.ws-nowrap {
  white-space:nowrap;
}

.btn-app>.fas, .btn-app>.fab{
    font-size: 20px;
    display: block;
}
.dropdown-menu>li>a>.fas{
    margin-right: 6px;
}
.mt-5 {
  margin-top: 5px !important;
}
.pos-form-actions{
  height: auto;
  padding-top: 12px;
  padding-bottom: 20px;
  position: fixed;
  bottom: 0px;
  /* background-color: #D1D5DC; */
  width: 100%;
  z-index: 1000;
}
.mb-12 {
  margin-bottom: 12px !important;
}
.pb-0{
  padding-bottom: 0px !important;
}
.pr-12{
  padding-right: 12px !important;
}
.main-header .sidebar-toggle:before {
    content: "" !important;
}
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
} 
.margin-bottom-20 {
  margin-bottom: 20px !important;
}
.text-white {
  color: #fff;
}
.wizard > .steps > ul > li {
  width: 33.33% !important;
}
.wizard > .content {
  /* background: #445867 !important; */
}
legend {
  color: #fff;
  margin-bottom: 6px;
  border-bottom: none;
}
.left-col {
  background: linear-gradient(0deg,rgba(0, 0, 0, 0.76),rgba(51, 51, 51, 0.32)),url(../img/home-bg.jpg); 
  text-align: center;
  background-size: cover;
  background-position: center;
}
.left-col-content {
  color: #1A7BF9;
  width: 100%;
}
.login-header {
  font-size: 27px;
  font-weight: 600;
}
.login-header a {
  color: #fff;
}
.form-header {
  font-size: 18px;
  margin: 16px 0;
}
.btn-login {
  padding: 6px 52px !important;
}


/* .right-col label {
  color: #fff;
}

.right-col a, .text-white a {
  color: #fff;
  font-weight: 600;
  font-size: 15px
}
.right-col a:hover, .text-white a:hover {
  color: #ccc;
}
.right-col-content {
  padding: 10% 16%;
  padding-bottom: 3%;
}
.right-col-content-register {
  padding: 2% 8%;
} */

.input_inline {
  width: 100%;
  display: inline-flex;
}
.input_inline input, .input_inline span {
  width: 50%;
}
.bg-manufacturing {
  background-color: #ff851b;
}
.img-thumbnail {
  position: relative;
  width: 70px;
  height: 70px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  transition: border .2s ease-in-out;
  padding: 4px;
  margin: 3px;
  text-align: center;
}
.img-thumbnail>.badge{
  position: absolute;
  top: -5px;
  right: -7px;
  font-size: 9px;
  font-weight: 400;
  cursor: pointer;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu {
  max-height: 350px;
}
.bg-aqua-lite {
  background-color: #7FFFD4;
}
.navbar-nav>.notifications-menu>.dropdown-menu>li .menu>li>a {
  white-space: normal;
}
.spacer {
  margin-top: 20px;
}
#product_list_body {
    max-height: 485px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.div-overlay {
    cursor: not-allowed;
    background: #e9e9e9; 
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}

.d-inline-table {
  display: inline-table;
}

.label-round{
  font-size: 8px;
  border-radius: 44%;
}
.table>tbody+tbody{
  border-top: 0;
}
.table-pl-12 td, .table-pl-12 th{
  padding-left: 12px !important;
}
table tbody td.pl-20-td{
  padding-left: 20px !important;
}
table.table-border-center > tbody > tr > td:first-child, 
table.table-border-center > thead > tr > th:first-child,
table.table-border-center > tfoot > tr > td:first-child
{
  border-right: 1px solid darkgray;
}
table.table-border-center-col > tbody > tr > td:nth-child(2), 
table.table-border-center-col > thead > tr > th:nth-child(2),
table.table-border-center-col > tfoot > tr > td:nth-child(2)
{
  border-right: 1px solid darkgray;
  border-left: 1px solid darkgray;
}
.bg-transparent{
  background-color: transparent !important;
}
.mb-0{
  margin-bottom: 0;
}

.nav-tabs>li>a{
  font-size: 18px;
  font-weight: 600;
}
.table-transparent, .table-transparent th {
    background-color: transparent !important;
    color: #000 !important;
}
.td-full-width {
  white-space:nowrap;
}
.font-17{
    font-size: 17px !important;
}
table.dataTable tbody>tr.selected{
    background-color: #B0BED9;
}
tr.footer-total > td {
    vertical-align: middle !important;
}
.error{
	color: red !important;
}
/*  pos tab */
div.pos-tab-container{
  z-index: 10;
  background-color: #ffffff;
  padding: 0 !important;
  border-radius: 4px;
  -moz-border-radius: 4px;
  border:1px solid #ddd;
    margin-bottom: 28px;
  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  -moz-box-shadow: 0 6px 12px rgba(0,0,0,.175);
  background-clip: padding-box;
}
div.pos-tab-menu{
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
}
div.pos-tab-menu div.list-group{
  margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a{
  margin-bottom: 0;
}
div.pos-tab-menu div.list-group>a .glyphicon,
div.pos-tab-menu div.list-group>a .fa {
  color: #5A55A3;
}
div.pos-tab-menu div.list-group>a:first-child{
  border-top-right-radius: 0;
  -moz-border-top-right-radius: 0;
}
div.pos-tab-menu div.list-group>a:last-child{
  border-bottom-right-radius: 0;
  -moz-border-bottom-right-radius: 0;
}


/* div.pos-tab-menu div.list-group>a.active,
div.pos-tab-menu div.list-group>a.active .glyphicon,
div.pos-tab-menu div.list-group>a.active .fa{
  background-color: #3c8dbc;
  color: #ffffff;
    border-color: #3c8dbc;
} */

div.pos-tab-menu div.list-group > a.active,
div.pos-tab-menu div.list-group > a.active .glyphicon,
div.pos-tab-menu div.list-group > a.active .fa {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  color: #ffffff;
  border-color: transparent;
}


div.pos-tab-menu div.list-group>a.active:after{
  /* content: ''; */
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -13px;
  border-left: 0;
  border-bottom: 13px solid transparent;
  border-top: 13px solid transparent;
  border-left: 10px solid #3c8dbc;
}

div.pos-tab-content{
  background-color: #ffffff;
  /* border: 1px solid #eeeeee; */
  padding-left: 20px;
  padding-top: 20px;
}

div.pos-tab div.pos-tab-content:not(.active){
  display: none;
}

.add-product-price-table th{
	background-color: #5cb85c;
    color: white;
}
.blue-header th {
	background-color: #3c8dbc;
    color: white;
}
.table-th-green th{
	background-color: #5cb85c;
    color: white;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0; 
}
.active-cell {
    border: 2px dotted #3c8dbc !important;
}
.cursor-pointer{
    cursor: pointer !important;
}
.pos_product_div{
    /* min-height: 47vh;
    max-height: 57vh; */
    overflow-y: auto;
    /* margin-bottom: 20px; */
    height: 40vh !important;
}
.bg-lightgray{
    background-color: #F0EDED !important;
}
.balance_due_box >li{
    padding: 11px 5px 0px 5px;
}
.option-div {
    padding: 15px;
    background-color: #d2d6de;
    color: #333;
    border:1px solid #d2d6de;
    cursor: pointer;
}
.option-div input[type="radio"]{
    display: none;
}
.option-div-group .icon {
    color: #d33724;
    display: none;
}
.option-div-group .option-div:hover{
    border:1px solid gray;
}
.option-div-group .active .icon{
    display: block;
}
.margin-left-10 {
    margin-left: 10px;
}
.margin-bottom-12{
    margin-bottom: 12px;
}
.bg-info{
    background-color: #00c0ef !important;
}
.bg-info > a{
    color: #FFFFFF !important;
}
.bg-info>a:hover{
    background-color: #337ab7 !important;
}
ul.dt-button-collection{
    background-color: #00c0ef;
}
td.details-control {
    background: url('/img/details_open.png') no-repeat center center;
    cursor: pointer;
}
tr.details td.details-control {
    background: url('/img/details_close.png') no-repeat center center;
}
.icheckbox_square-blue, .iradio_square-blue{
    margin-right: 10px;
}
.header-right-div{
    right: 10px;
    float: right;
    position: absolute;
    top: 15px;
}
.header-left-div{
    margin-top: 15px;
    display: inline-flex;
}
.m-8 {
    margin: 8px;
}
.mt-10{
    margin-top: 10px;
}
.mt-15{
    margin-top: 15px;
}
.m-5 {
    margin: 5px;
}
.icon-link{
  text-align:center;
  display:block;
  margin-bottom: 18px;
}
.icon-link > a {
    display:grid;
}
.icon-link > .badge{
    position: absolute;
    top: 20px;
    right: 67px;
}
.link-des {
    display: inline-block;
    text-align: left;
}

.navbar-nav>.user-menu>.dropdown-menu>li.user-header>img {
    border: none;
    height: auto;
    width: 100%;
    max-height: 120px;
}
.bg-light-green{
    background-color: #98D973 !important;
    color: #fff !important
}
.hover-q {
    font-size: 16px;
    margin-left: 3px;
    cursor: help;
}
.input-group-addon .hover-q{
    margin-left: 0px;
}
.text-bold{
    font-weight: bold;
}
.tour .popover-content{
    padding: 18px 14px;
}
.table-slim>tbody>tr>td, .table-slim>tbody>tr>th, .table-slim>tfoot>tr>td, .table-slim>tfoot>tr>th, .table-slim>thead>tr>td, .table-slim>thead>tr>th{
    padding: 1px;
}

/* Custom scroll bar start*/

/* width */
/* ::-webkit-scrollbar {
    width: 7px;
} */

/* Track */
/* ::-webkit-scrollbar-track {
    background: #f1f1f1; 
} */
 
/* Handle */
/* ::-webkit-scrollbar-thumb {
    background: #888; 
} */

/* Handle on hover */
/* ::-webkit-scrollbar-thumb:hover {
    background: #555; 
} */

/* Custom scroll bar end*/

.product_cell{
    height: 100px;
    padding: 1%;
}
.product_cell_div{
    height: 100% !important;
    width: 100% !important;
    text-align: center;
    vertical-align: middle;
    padding-top: 5px;
    cursor: pointer;
    overflow: hidden;
}

/*CSS to print receipts*/
.print_section{
    display: none;
}
@media print{
    .print_section{
        display: inline !important;
    }
    .modal-xl{
        width: 100% !important;
    }
    ::-webkit-scrollbar{
        display: none !important;
    }
    #toast-container {
      display: none;
    }
}

.input-number .btn-default{
    background-color: white;
    padding: 6px 9px;
}

.width-50{
    width: 50% !important;
}
.width-40{
    width: 40% !important;
}
.width-60{
    width: 60% !important;
}
.width-100{
    width: 100% !important;
}

.font-30{
    font-size: 30px !important;
}

.font-23{
    font-size: 23px !important;
}
.padding-5{
    padding: 5px !important;
}
.padding-10{
    padding: 10px !important;
}
.padding-side-15{
    /*padding-left: 15px !important;
    padding-right: 15px !important;*/
}
.text-muted-imp{
    color: #A3A3A3 !important;
}

.table-no-top-cell-border td{
    border-top: 0px !important;
    border-bottom: 0px !important;
}
.table-no-top-cell-border th{
    border-top: 0px !important;
    border-bottom: 0px !important;
}

.table-no-side-cell-border td{
    border-left: 0px !important;
    border-right: 0px !important;
}
.table-no-side-cell-border th{
    border-left: 0px !important;
    border-right: 0px !important;
}

.color-555 {
    color: #555555 !important;
}
.color-555 *{
    color: #555555 !important;
}
.color-white {
    color: white !important;
}
.col-no-padding{
    padding-left: 0px;
    padding-right: 0px;
}
.col-2px-padding{
    padding: 2px;
}

.pos-express-btn{
    font-size: 23px !important;
    overflow: hidden !important;
    height: 73px !important;
    white-space: normal;
}
.word-wrap{
    word-wrap: break-word !important;
}

.modal-xl{
    width: 90%; /* respsonsive width */
    margin-left: auto !important;
    margin-right: auto !important;
}
table.ajax_view tbody tr{
    cursor: pointer;
}
.bg-white{
    background-color: #fff;
}

.product-thumbnail-small{
    height: 50px;
    width: 50px;
}

table.table-text-center td, table.table-text-center th{
    vertical-align: middle !important;
}
.product_list{
    padding-left: 3px;
    padding-right: 3px;
}
.product_box{
  width: 100%;
  /*padding-top: 5px;
  padding-bottom: 2px;*/
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer;
  /*border: 1px solid darkgray;*/
  font-weight: 600;
  background-color: #fff;
  border-radius: 12px;
  padding: 8px;
}
.product_box .image-container{
  height: 50px;
  margin: auto;
  width: 100%;
  margin-bottom: 4px;
  
}
.product_box .image-container img{
  height: 100%;
  width: 100%;
  border-radius: 12px;
}
.eq-height-row{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:flex;
    flex-wrap: wrap;
}
.eq-height-col{
    display: flex;
}

.product_box .text_div{
    margin-top: 3px;
}
.product_box .text{
    width: 100%;
    overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 1; /* number of lines to show */
   line-height: 14px;        /* fallback */
   max-height: 14px;       /* fallback */
}
.small-box.bg-gray:hover{
    color: #000;
    text-decoration: none;
}

#calendar table tbody td {
    cursor: pointer;
}

.min-height-90hv{
    min-height: 90vh !important;
}

/* Grow Shadow */
.hvr-grow-shadow {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow, transform;
  transition-property: box-shadow, transform;
}
.hvr-grow-shadow:hover, .hvr-grow-shadow:focus, .hvr-grow-shadow:active {
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.text-link{
    cursor: pointer;
}

.text-link:hover{
    text-decoration: underline;
}

.v-center{
    vertical-align: middle !important;
}

.bg-woocommerce{
  background-color: #9E458B !important;
}

/*.box, .info-box, .nav-tabs-custom, .external-event{
  box-shadow: 0 4px 6px 0 hsla(0, 0%, 0%, 0.2) !important;
}*/

.user_avatar {
  border-radius: 50%;
  width: 25px;
  height: 25px;
  margin: 1px;
}

.fs-10 {
  font-size: 10px;
}

.timeline-lode-more-btn {
  margin-left: 50px;
  margin-top: 25px;
  padding-right: 12px;
  padding-left: 12px;
}

.pa-0 {
  padding: 0px !important;
}

.mt-56{
  margin-top: 56px !important;
}

.m-2{
  margin: 2px !important;
}

.treeview-menu i{
  display: none !important;
}
.treeview-menu a{
  padding-left: 25px !important;
  font-size: 95% !important;
}
.treeview-menu a::before{
  content: "\2192 ";
}

@media only screen and (max-width: 600px) {
  .pos-form-actions{
    position: absolute;
  }
}
.mr-8 {
  margin-right: 8px !important;
}

@media (max-width: 1024px) {
   .pos_form_totals{
        margin-bottom: 40px;
    }
}

.swal-modal .swal-text {
    text-align: center;
}

.pos-total {
    /* display: inline-block; */
    padding: 8px 10px;
    vertical-align: middle;
    margin-left: 5px;
    margin-right: 5px;
}
.pos-total span.number{
    font-size: 26px;
    vertical-align: middle;
    font-weight: bolder;
}

.pos-total span.text{
    font-weight: bolder;
    display: inline-block;
    width: 60px;
    vertical-align: middle;
}
.mb-40 {
    margin-bottom: 40px !important;
}

@media print {
    a:after { content:''; }
    a[href]:after { content: none !important; }
}

.fa-times{
    font-size: 30px
}
.mb-5{
  margin-bottom: 5px !important;
}
.tree-actions {
  margin-left: 20px;
  display: none;
}
.jstree-hovered .tree-actions {
  display: inherit;
}

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

/* Modern POS screen polish. Scoped to create/edit POS pages only. */
.pos-modern-shell {
  min-height: calc(100vh - 70px);
  padding: 14px 18px 88px;
  background:
    linear-gradient(135deg, rgba(246, 248, 252, 0.96), rgba(238, 243, 250, 0.98)),
    radial-gradient(circle at 20% 10%, rgba(0, 147, 95, 0.08), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(0, 158, 228, 0.08), transparent 30%);
}

.pos-modern-shell .pos-modern-workspace {
  margin-left: -8px;
  margin-right: -8px;
}

.pos-modern-shell .pos-modern-card,
.pos-modern-shell .pos-modern-sidebar > .row,
.pos-modern-shell #featured_products_box,
.pos-modern-shell #product_list_body {
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
}

.pos-modern-shell .pos-modern-card {
  padding: 14px !important;
  border-radius: 18px !important;
}

.pos-modern-shell .box-body {
  padding: 0;
}

.pos-modern-shell .form-group {
  margin-bottom: 12px;
}

.pos-modern-shell .input-group {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.pos-modern-shell .input-group-addon,
.pos-modern-shell .input-group-btn .btn {
  border: 0 !important;
  background: #f8fafc !important;
  color: #334155;
}

.pos-modern-shell .form-control,
.pos-modern-shell .select2-container .select2-selection {
  border-color: #dbe3ef;
  box-shadow: none;
}

.pos-modern-shell .input-group .form-control {
  border: 0 !important;
  height: 42px;
}

.pos-modern-shell #search_product {
  font-size: 15px;
  font-weight: 600;
}

.pos-modern-shell #pos_table {
  margin-top: 8px;
  border-collapse: separate;
  border-spacing: 0 8px;
  border: 0;
}

.pos-modern-shell #pos_table thead th {
  border: 0 !important;
  color: #475569;
  background: #f8fafc;
  padding: 10px 12px;
}

.pos-modern-shell #pos_table tbody tr {
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pos-modern-shell #pos_table tbody td {
  border-top: 1px solid #edf2f7 !important;
  border-bottom: 1px solid #edf2f7 !important;
  vertical-align: middle;
  padding: 10px 12px;
}

.pos-modern-shell #pos_table tbody td:first-child {
  border-left: 1px solid #edf2f7 !important;
  border-radius: 12px 0 0 12px;
}

.pos-modern-shell #pos_table tbody td:last-child {
  border-right: 1px solid #edf2f7 !important;
  border-radius: 0 12px 12px 0;
}

.pos-modern-shell .pos_form_totals {
  margin-top: 8px;
}

.pos-modern-shell .pos_form_totals table {
  margin-bottom: 0;
}

.pos-modern-shell .pos_form_totals td {
  border: 0 !important;
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px !important;
}

.pos-modern-shell .pos-form-actions {
  left: 16px;
  right: 16px;
  bottom: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16) !important;
}

.pos-modern-shell .pos-form-actions button,
.pos-modern-shell #show_featured_products {
  min-height: 42px;
  border-radius: 12px !important;
  letter-spacing: 0;
}

.pos-modern-shell .pos-total {
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
}

.pos-modern-shell .pos-total span.number,
.pos-modern-shell #total_payable {
  color: #047857 !important;
}

.pos-modern-shell #product_list_body {
  max-height: 565px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.pos-modern-shell .product_box,
.pos-modern-shell .product_list {
  border-radius: 14px !important;
}

.pos-modern-shell .tw-dw-drawer-content label {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

@media (max-width: 767px) {
  .pos-modern-shell {
    padding: 10px 8px 130px;
  }

  .pos-modern-shell .pos-modern-card {
    border-radius: 14px !important;
    padding: 10px !important;
  }

  .pos-modern-shell .pos-form-actions {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .pos-modern-shell #pos_table {
    min-width: 720px;
  }
}

/* Apple-style POS palette: calm neutrals, crisp blue actions, light glass panels. */
.pos-modern-shell {
  background:
    linear-gradient(180deg, #f5f5f7 0%, #ffffff 54%, #f2f2f7 100%),
    radial-gradient(circle at 12% 12%, rgba(0, 122, 255, 0.06), transparent 28%);
  color: #1d1d1f;
}

.pos-modern-shell .pos-modern-card,
.pos-modern-shell #product_list_body,
.pos-modern-shell .pos-form-actions,
.pos-modern-shell .input-group,
.pos-modern-shell .pos_form_totals td {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(60, 60, 67, 0.14) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pos-modern-shell .input-group-addon,
.pos-modern-shell .input-group-btn .btn,
.pos-modern-shell .form-control,
.pos-modern-shell .select2-container .select2-selection {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #1d1d1f;
}

.pos-modern-shell #search_product,
.pos-modern-shell #customer_id,
.pos-modern-shell .select2-selection__rendered {
  color: #1d1d1f !important;
}

.pos-modern-shell .text-primary,
.pos-modern-shell .fa.text-primary,
.pos-modern-shell .fas.text-primary {
  color: #007aff !important;
}

.pos-modern-shell #pos-finalize,
.pos-modern-shell #recent-transactions,
.pos-modern-shell .invoice-template-editor-btn {
  background: #007aff !important;
  border-color: #007aff !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.22) !important;
}

.pos-modern-shell #pos-finalize:hover,
.pos-modern-shell #recent-transactions:hover,
.pos-modern-shell .invoice-template-editor-btn:hover {
  background: #0066d6 !important;
  border-color: #0066d6 !important;
}

.pos-modern-shell .pos-express-finalize[data-pay_method="cash"] {
  background: #34c759 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(52, 199, 89, 0.20) !important;
}

.pos-modern-shell #pos-cancel,
.pos-modern-shell #pos-delete {
  background: #ff3b30 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(255, 59, 48, 0.18) !important;
}

.pos-modern-shell #pos_table thead th {
  background: #f5f5f7 !important;
  color: #6e6e73;
}

.pos-modern-shell #pos_table tbody tr,
.pos-modern-shell #pos_table tbody td {
  background: #ffffff !important;
}

.pos-modern-shell .pos-total {
  background: #f2fbf5 !important;
  border-color: rgba(52, 199, 89, 0.28) !important;
}

.pos-modern-shell .pos-total span.number,
.pos-modern-shell #total_payable {
  color: #248a3d !important;
}

.pos-modern-shell .invoice-template-editor-group .select2-container {
  width: calc(100% - 78px) !important;
}

.pos-modern-shell .invoice-template-editor-btn {
  height: 42px;
  border-radius: 0 12px 12px 0 !important;
  font-weight: 700;
}

/* Safe full-page POS layout for create screen. Keeps the large POS workspace without the blue blank issue. */
.pos-full-page-shell {
  min-height: calc(100vh - 56px);
  display: block;
  visibility: visible;
  overflow: visible;
  padding: 14px 18px 96px;
  background: #ffffff !important;
  color: #1d1d1f;
}

body.lockscreen:not(.upos-dark-mode),
body.lockscreen:not(.upos-dark-mode) main,
body.lockscreen:not(.upos-dark-mode) #scrollable-container,
body.lockscreen:has(.pos-full-page-shell),
body.lockscreen:has(.pos-full-page-shell) main,
body.lockscreen:has(.pos-full-page-shell) #scrollable-container {
  background: #ffffff !important;
}

.pos-full-page-shell .pos-modern-workspace {
  margin-left: -8px;
  margin-right: -8px;
}

.pos-full-page-shell .pos-modern-card,
.pos-full-page-shell .pos-modern-sidebar > .row,
.pos-full-page-shell #featured_products_box,
.pos-full-page-shell #product_list_body {
  background: #ffffff !important;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
}

.pos-full-page-shell .pos-modern-card {
  padding: 12px !important;
}

.pos-full-page-shell .box-body {
  padding: 0;
}

.pos-full-page-shell .input-group,
.pos-full-page-shell .form-control,
.pos-full-page-shell .select2-container .select2-selection {
  background: #ffffff !important;
  color: #1d1d1f !important;
}

.pos-full-page-shell #search_product,
.pos-full-page-shell #customer_id,
.pos-full-page-shell .select2-selection__rendered {
  color: #1d1d1f !important;
}

.pos-full-page-shell .pos-form-actions {
  left: 16px;
  right: 16px;
  bottom: 12px;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08) !important;
}

.pos-full-page-shell #product_list_body {
  max-height: 565px;
  padding: 10px;
}

.pos-full-page-shell #pos-finalize,
.pos-full-page-shell #recent-transactions,
.pos-full-page-shell .invoice-template-editor-btn {
  background: #007aff !important;
  border-color: #007aff !important;
  color: #ffffff !important;
}

.pos-full-page-shell .pos-express-finalize[data-pay_method="cash"] {
  background: #34c759 !important;
  color: #ffffff !important;
}

.pos-full-page-shell #pos-cancel,
.pos-full-page-shell #pos-delete {
  background: #ff3b30 !important;
  color: #ffffff !important;
}

.pos-modern-shell .tw-dw-drawer-overlay,
.pos-full-page-shell .tw-dw-drawer-overlay {
  background: transparent !important;
  color: inherit !important;
}

@media (max-width: 767px) {
  .pos-full-page-shell {
    padding: 10px 8px 130px;
  }

  .pos-full-page-shell .pos-form-actions {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .pos-full-page-shell #pos_table {
    min-width: 720px;
  }
}

/* Apple-style dark dashboard polish */
.home-apple-dashboard {
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 122, 255, 0.28), transparent 34%),
    radial-gradient(circle at 84% 4%, rgba(52, 199, 89, 0.18), transparent 28%),
    linear-gradient(135deg, #050507 0%, #111216 46%, #1d1d1f 100%) !important;
  color: #f5f5f7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-apple-dashboard h1 {
  color: #f5f5f7 !important;
  letter-spacing: 0 !important;
}

.home-apple-dashboard .tw-bg-white,
.home-apple-dashboard .box,
.home-apple-dashboard .info-box {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: blur(18px);
}

.home-apple-dashboard .tw-ring-gray-200 {
  --tw-ring-color: rgba(255, 255, 255, 0.22) !important;
}

.home-apple-dashboard .btn-primary,
.home-apple-dashboard #dashboard_date_filter {
  background: #007aff !important;
  border-color: #007aff !important;
  color: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 26px rgba(0, 122, 255, 0.28) !important;
}

.home-apple-dashboard .tw-rounded-full,
.home-apple-dashboard .info-box-icon {
  background: linear-gradient(145deg, #ffffff, #e8e8ed) !important;
  color: #007aff !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 24px rgba(0, 0, 0, 0.16) !important;
}

.home-apple-dashboard .tw-rounded-full svg,
.home-apple-dashboard .info-box-icon i {
  color: #007aff !important;
  stroke-width: 1.8 !important;
}

.purchase-imei-wrapper.imei-compact-mode .imei-input-group {
  display: none !important;
}

.purchase-imei-wrapper.imei-compact-mode .imei-input-group:first-child {
  display: flex !important;
}

.purchase-imei-wrapper .open-imei-scanner-btn {
  margin: 5px 6px 0 0;
  border-radius: 10px;
}

.purchase-lot-number-wrapper.lot-scanner-mode input.purchase_lot_number {
  display: none !important;
}

.purchase-lot-number-wrapper .open-lot-scanner-btn {
  margin: 5px 6px 0 0;
  border-radius: 10px;
}

.purchase-lot-number-wrapper .lot-row-summary {
  margin-top: 4px;
}

.purchase-lot-imei-list {
  margin-top: 6px;
  max-height: 160px;
  overflow: auto;
  padding: 6px 8px;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  background: #fff;
  white-space: normal;
}

.purchase-lot-imei-list div {
  padding: 2px 0;
  border-bottom: 1px solid #f2f2f7;
}

.purchase-lot-imei-list div:last-child {
  border-bottom: 0;
}

.purchase_lot_number.imei-duplicate,
.lot-scanner-input.imei-duplicate,
.purchase_imei_number.imei-duplicate,
.imei-scanner-input.imei-duplicate {
  border-color: #ff3b30 !important;
  background: #fff2f2 !important;
  color: #b00020 !important;
}

.imei-scanner-modal {
  border-radius: 16px;
  overflow: hidden;
}

.imei-scanner-modal .modal-header {
  background: #111216;
  color: #f5f5f7;
  border-bottom: 0;
}

.imei-scanner-toolbar {
  min-height: 30px;
  margin-bottom: 10px;
}

.imei-scanner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 60vh;
  overflow: auto;
  padding-right: 4px;
}

.imei-scanner-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 10px;
}

.imei-scanner-number {
  min-width: 34px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 767px) {
  .imei-scanner-list {
    grid-template-columns: 1fr;
  }
}

.pos_lot_imei_select + .select2-container {
  margin-top: 8px;
  width: 100% !important;
}

.pos_lot_imei_select + .select2-container .select2-selection--single,
.pos_lot_imei_select + .select2-container .select2-selection--multiple {
  border-radius: 12px !important;
  border-color: #d1d1d6 !important;
  min-height: 38px;
  background: #fbfbfd !important;
}

.pos_lot_imei_select + .select2-container .select2-selection__rendered {
  color: #1d1d1f !important;
  line-height: 28px !important;
  padding-left: 10px !important;
}

.pos_lot_imei_select + .select2-container .select2-selection--multiple .select2-selection__choice {
  background: #007aff !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  margin-top: 6px !important;
  padding: 3px 9px !important;
}

.pos_lot_imei_select + .select2-container .select2-selection--multiple .select2-selection__choice__remove {
  color: rgba(255, 255, 255, 0.75) !important;
  margin-right: 5px !important;
}

.pos-lot-imei-dropdown {
  border-radius: 14px !important;
  overflow: hidden;
  border-color: #d1d1d6 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.pos-lot-imei-dropdown .select2-search--dropdown {
  padding: 10px;
  background: #f5f5f7;
}

.pos-lot-imei-dropdown .select2-search__field {
  border-radius: 10px !important;
  border-color: #c7c7cc !important;
  min-height: 36px;
  padding: 7px 10px !important;
}

.pos-lot-imei-dropdown .select2-results__option {
  padding: 9px 12px;
  color: #1d1d1f;
  background: #fff;
}

.pos-lot-imei-dropdown .select2-results__option--highlighted[aria-selected] {
  background: #007aff !important;
  color: #fff !important;
}

.payment-handling-fee-box {
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  background: #fbfbfd;
  margin-bottom: 12px;
}

.payment-handling-fee-box .payment-fee-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px 0 4px;
}

.payment-handling-fee-box .payment-fee-preset {
  border-radius: 999px !important;
  border: 1px solid #d1d1d6 !important;
  color: #1d1d1f !important;
  background: #fff !important;
  padding: 2px 8px !important;
}

/* Home dashboard: light Apple-style layout */
body.upos-home-page,
body.upos-home-page main,
body.upos-home-page #scrollable-container {
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 122, 255, 0.08), transparent 28%),
    radial-gradient(circle at 15% 18%, rgba(52, 199, 89, 0.08), transparent 26%),
    #f5f7fb !important;
}

body.upos-home-page .thetop {
  gap: 18px;
  padding: 18px 18px 0 18px;
}

body.upos-home-page .side-bar {
  width: 286px !important;
  max-width: 286px !important;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

body.upos-home-page .side-bar > a {
  height: 86px !important;
  justify-content: flex-start !important;
  padding: 0 22px;
  background: transparent !important;
  border: 0 !important;
}

body.upos-home-page .side-bar-heading {
  color: #111827 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}

body.upos-home-page .sidebar-menu {
  padding: 8px 14px 18px !important;
}

body.upos-home-page .sidebar-menu > li > a {
  margin: 4px 0;
  padding: 13px 16px !important;
  border-radius: 12px !important;
  color: #344054 !important;
  font-weight: 600;
}

body.upos-home-page .sidebar-menu > li.active > a,
body.upos-home-page .sidebar-menu > li:hover > a,
body.upos-home-page .sidebar-menu > li.menu-open > a {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.12), rgba(59, 130, 246, 0.08)) !important;
  color: #0f766e !important;
}

body.upos-home-page main > .no-print {
  position: relative;
  z-index: 80;
  margin: 0 6px 0 0;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

body.upos-home-page main > .no-print details,
body.upos-home-page main > .no-print summary,
body.upos-home-page main > .no-print button,
body.upos-home-page main > .no-print a {
  position: relative;
  z-index: 90;
  pointer-events: auto;
}

body.upos-home-page main > .no-print details[open] {
  z-index: 10000;
}

body.upos-home-page main > .no-print details > ul {
  z-index: 10001 !important;
}

body.upos-home-page main > .no-print [class*="tw-bg-"],
body.upos-home-page main > .no-print summary,
body.upos-home-page main > .no-print button,
body.upos-home-page main > .no-print a {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body.upos-home-page main > .no-print summary,
body.upos-home-page main > .no-print button,
body.upos-home-page main > .no-print a {
  min-height: 42px;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
}

body.upos-home-page main > .no-print a[href*="/pos/create"],
body.upos-home-page main > .no-print a[href*="/pos"] {
  background: #f8fafc !important;
}

body.upos-home-page main > .no-print svg {
  color: #111827 !important;
}

body.upos-home-page .home-apple-dashboard {
  padding: 24px 24px 8px !important;
  background: transparent !important;
  color: #111827;
  border-bottom: 0;
}

body.upos-home-page .home-apple-dashboard > .tw-px-5,
body.upos-home-page .home-apple-dashboard .tw-px-5 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.upos-home-page .home-apple-dashboard h1 {
  color: #111827 !important;
  font-size: 32px !important;
  line-height: 1.12 !important;
  margin-bottom: 4px !important;
}

body.upos-home-page .home-apple-subtitle {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

body.upos-home-page .home-apple-dashboard .tw-relative,
body.upos-home-page .home-apple-dashboard .tw-absolute,
body.upos-home-page .home-apple-dashboard .tw-inset-0 {
  background: transparent !important;
}

body.upos-home-page .home-apple-dashboard .tw-absolute.tw-inset-0 {
  display: none !important;
}

body.upos-home-page .home-apple-dashboard .tw-grid {
  gap: 16px !important;
}

body.upos-home-page .home-apple-dashboard .tw-bg-white,
body.upos-home-page .tw-px-5.tw-py-6 .tw-bg-white {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(18px);
}

body.upos-home-page .home-apple-dashboard .tw-bg-white {
  min-height: 134px;
}

body.upos-home-page .home-apple-dashboard .tw-p-4,
body.upos-home-page .home-apple-dashboard .sm\:tw-p-5 {
  padding: 28px !important;
}

body.upos-home-page .home-apple-dashboard .tw-rounded-full {
  width: 58px !important;
  height: 58px !important;
  color: inherit !important;
  border: 0 !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
}

body.upos-home-page .home-apple-dashboard .tw-text-sky-500 {
  color: #16a34a !important;
}

body.upos-home-page .home-apple-dashboard .tw-bg-sky-100,
body.upos-home-page .home-apple-dashboard .bg-sky-100 {
  background: #dcfce7 !important;
}

body.upos-home-page .home-apple-dashboard .tw-text-green-500 {
  color: #2563eb !important;
}

body.upos-home-page .home-apple-dashboard .tw-bg-green-100 {
  background: #dbeafe !important;
}

body.upos-home-page .home-apple-dashboard .tw-text-yellow-500 {
  color: #f97316 !important;
}

body.upos-home-page .home-apple-dashboard .tw-bg-yellow-100 {
  background: #ffedd5 !important;
}

body.upos-home-page .home-apple-dashboard .tw-text-red-500 {
  color: #e11d48 !important;
}

body.upos-home-page .home-apple-dashboard .tw-bg-red-100 {
  background: #ffe4e6 !important;
}

body.upos-home-page .home-apple-dashboard .tw-rounded-full svg {
  color: currentColor !important;
  stroke-width: 2 !important;
}

body.upos-home-page .home-apple-dashboard p.tw-text-sm {
  color: #667085 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

body.upos-home-page .home-apple-dashboard p[class*="tw-font-mono"] {
  color: #111827 !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 21px !important;
  font-weight: 750 !important;
}

body.upos-home-page #dashboard_date_filter {
  background: #111827 !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  min-height: 46px;
  padding-left: 18px !important;
  padding-right: 18px !important;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16) !important;
}

body.upos-home-page #dashboard_date_filter svg,
body.upos-home-page #dashboard_date_filter span {
  color: #ffffff !important;
}

body.upos-home-page .tw-px-5.tw-py-6 {
  padding: 8px 24px 24px !important;
}

body.upos-home-page .tw-px-5.tw-py-6 .tw-bg-white {
  border-radius: 18px !important;
}

body.upos-home-page .tw-px-5.tw-py-6 h3 {
  color: #111827;
  font-size: 22px !important;
  font-weight: 750 !important;
}

body.upos-home-page .tw-px-5.tw-py-6 .tw-border-2 {
  width: 42px !important;
  height: 42px !important;
  border: 0 !important;
  background: #dcfce7 !important;
  color: #16a34a !important;
}

body.upos-home-page .tw-px-5.tw-py-6 .tw-border-dashed {
  border-style: solid !important;
  border-color: #e5e7eb !important;
  background: #ffffff !important;
  border-radius: 16px !important;
}

@media (max-width: 1199px) {
  body.upos-home-page .thetop {
    padding: 0;
    gap: 0;
  }

  body.upos-home-page main > .no-print,
  body.upos-home-page .side-bar {
    margin: 0;
    border-radius: 0;
  }

  body.upos-home-page .home-apple-dashboard,
  body.upos-home-page .tw-px-5.tw-py-6 {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Home dashboard: dark 3D animated theme */
body.upos-home-page,
body.upos-home-page main,
body.upos-home-page #scrollable-container {
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.22), transparent 24%),
    radial-gradient(circle at 82% 9%, rgba(168, 85, 247, 0.22), transparent 27%),
    linear-gradient(135deg, #050816 0%, #101827 46%, #050816 100%) !important;
  color: #f8fafc;
}

body.upos-home-page {
  perspective: 1200px;
}

body.upos-home-page .home-3d-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.upos-home-page .home-3d-orb,
body.upos-home-page .home-3d-cube,
body.upos-home-page .home-3d-grid-floor {
  position: absolute;
  display: block;
}

body.upos-home-page .home-3d-orb {
  border-radius: 999px;
  opacity: 0.62;
  filter: blur(1px);
}

body.upos-home-page .home-3d-orb-one {
  width: 240px;
  height: 240px;
  left: 18%;
  top: 17%;
  background: radial-gradient(circle at 35% 30%, #67e8f9, #2563eb 46%, transparent 74%);
  animation: homeOrbFloat 10s ease-in-out infinite;
}

body.upos-home-page .home-3d-orb-two {
  width: 330px;
  height: 330px;
  right: 4%;
  bottom: 4%;
  background: radial-gradient(circle at 35% 30%, #f0abfc, #7c3aed 48%, transparent 74%);
  animation: homeOrbFloat 13s ease-in-out infinite reverse;
}

body.upos-home-page .home-3d-cube {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

body.upos-home-page .home-3d-cube-one {
  left: 20%;
  bottom: 15%;
  animation: homeCubeSpin 14s linear infinite;
}

body.upos-home-page .home-3d-cube-two {
  right: 18%;
  top: 19%;
  width: 58px;
  height: 58px;
  animation: homeCubeSpin 11s linear infinite reverse;
}

body.upos-home-page .home-3d-grid-floor {
  left: 50%;
  bottom: -170px;
  width: 1200px;
  height: 480px;
  transform: translateX(-50%) rotateX(68deg);
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.42;
  mask-image: linear-gradient(to top, black 20%, transparent 82%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 82%);
  animation: homeGridMove 10s linear infinite;
}

body.upos-home-page .side-bar,
body.upos-home-page main,
body.upos-home-page .home-apple-dashboard,
body.upos-home-page .tw-px-5.tw-py-6,
body.upos-home-page footer,
body.upos-home-page main > .no-print {
  position: relative;
  z-index: 2;
}

body.upos-home-page .side-bar {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58)) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

body.upos-home-page .side-bar-heading {
  color: #ffffff !important;
}

body.upos-home-page .sidebar-menu > li > a {
  color: #cbd5e1 !important;
}

body.upos-home-page .sidebar-menu > li.active > a,
body.upos-home-page .sidebar-menu > li:hover > a,
body.upos-home-page .sidebar-menu > li.menu-open > a {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.14)) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.upos-home-page main > .no-print {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.62)) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

body.upos-home-page main > .no-print [class*="tw-bg-"],
body.upos-home-page main > .no-print summary,
body.upos-home-page main > .no-print button,
body.upos-home-page main > .no-print a {
  background: rgba(15, 23, 42, 0.76) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #f8fafc !important;
}

body.upos-home-page main > .no-print svg {
  color: #e0f2fe !important;
}

body.upos-home-page .home-apple-dashboard h1 {
  color: #ffffff !important;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

body.upos-home-page .home-apple-subtitle {
  color: #94a3b8 !important;
}

body.upos-home-page .home-apple-dashboard .tw-bg-white,
body.upos-home-page .tw-px-5.tw-py-6 .tw-bg-white {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.58)) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #f8fafc !important;
  box-shadow:
    0 30px 74px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

body.upos-home-page .home-apple-dashboard .tw-bg-white {
  transform: translateZ(18px);
  animation: homeCardFloat 8s ease-in-out infinite;
}

body.upos-home-page .home-apple-dashboard .tw-grid > div:nth-child(2n) {
  animation-delay: -2s;
}

body.upos-home-page .home-apple-dashboard .tw-grid > div:nth-child(3n) {
  animation-delay: -4s;
}

body.upos-home-page .home-apple-dashboard p.tw-text-sm,
body.upos-home-page .tw-px-5.tw-py-6 h3 {
  color: #cbd5e1 !important;
}

body.upos-home-page .home-apple-dashboard p[class*="tw-font-mono"],
body.upos-home-page .home-apple-dashboard .total_sell,
body.upos-home-page .home-apple-dashboard .net,
body.upos-home-page .home-apple-dashboard .invoice_due,
body.upos-home-page .home-apple-dashboard .total_sell_return,
body.upos-home-page .home-apple-dashboard .total_purchase,
body.upos-home-page .home-apple-dashboard .purchase_due,
body.upos-home-page .home-apple-dashboard .total_purchase_return,
body.upos-home-page .home-apple-dashboard .total_expense {
  color: #ffffff !important;
}

body.upos-home-page .home-apple-dashboard .tw-rounded-full,
body.upos-home-page .tw-px-5.tw-py-6 .tw-border-2 {
  background: rgba(15, 23, 42, 0.62) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.upos-home-page #dashboard_date_filter {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 52%, #a855f7 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 22px 44px rgba(79, 70, 229, 0.34) !important;
}

body.upos-home-page .tw-px-5.tw-py-6 .tw-border-dashed {
  background: rgba(2, 6, 23, 0.38) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.upos-home-page .highcharts-background {
  fill: transparent !important;
}

body.upos-home-page .highcharts-title,
body.upos-home-page .highcharts-axis-title,
body.upos-home-page .highcharts-axis-labels text,
body.upos-home-page .highcharts-legend-item text {
  fill: #cbd5e1 !important;
  color: #cbd5e1 !important;
}

body.upos-home-page footer,
body.upos-home-page .main-footer {
  background: transparent !important;
  color: #94a3b8 !important;
  border: 0 !important;
}

@keyframes homeCardFloat {
  0%, 100% { transform: translateY(0) translateZ(18px) rotateX(0deg); }
  50% { transform: translateY(-8px) translateZ(26px) rotateX(1deg); }
}

@keyframes homeOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -30px, 0) scale(1.07); }
}

@keyframes homeCubeSpin {
  0% { transform: rotateX(18deg) rotateY(0deg) rotateZ(8deg); }
  100% { transform: rotateX(18deg) rotateY(360deg) rotateZ(8deg); }
}

@keyframes homeGridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 44px, 44px 0; }
}

@media (max-width: 1199px) {
  body.upos-home-page .home-apple-dashboard .tw-bg-white {
    animation: none;
    transform: none;
  }
}

/* App-wide dark 3D theme for all non-POS pages */
body.upos-3d-app,
body.upos-3d-app main,
body.upos-3d-app #scrollable-container {
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.22), transparent 24%),
    radial-gradient(circle at 82% 9%, rgba(168, 85, 247, 0.22), transparent 27%),
    linear-gradient(135deg, #050816 0%, #101827 46%, #050816 100%) !important;
  color: #f8fafc !important;
}

body.upos-3d-app {
  perspective: 1200px;
}

body.upos-3d-app .upos-app-3d-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.upos-3d-app .upos-app-3d-orb,
body.upos-3d-app .upos-app-3d-cube,
body.upos-3d-app .upos-app-3d-grid-floor {
  position: absolute;
  display: block;
}

body.upos-3d-app .upos-app-3d-orb {
  border-radius: 999px;
  opacity: 0.5;
  filter: blur(1px);
}

body.upos-3d-app .upos-app-3d-orb-one {
  width: 240px;
  height: 240px;
  left: 18%;
  top: 17%;
  background: radial-gradient(circle at 35% 30%, #67e8f9, #2563eb 46%, transparent 74%);
  animation: homeOrbFloat 10s ease-in-out infinite;
}

body.upos-3d-app .upos-app-3d-orb-two {
  width: 330px;
  height: 330px;
  right: 4%;
  bottom: 4%;
  background: radial-gradient(circle at 35% 30%, #f0abfc, #7c3aed 48%, transparent 74%);
  animation: homeOrbFloat 13s ease-in-out infinite reverse;
}

body.upos-3d-app .upos-app-3d-cube {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

body.upos-3d-app .upos-app-3d-cube-one {
  left: 20%;
  bottom: 15%;
  animation: homeCubeSpin 14s linear infinite;
}

body.upos-3d-app .upos-app-3d-cube-two {
  right: 18%;
  top: 19%;
  width: 58px;
  height: 58px;
  animation: homeCubeSpin 11s linear infinite reverse;
}

body.upos-3d-app .upos-app-3d-grid-floor {
  left: 50%;
  bottom: -170px;
  width: 1200px;
  height: 480px;
  transform: translateX(-50%) rotateX(68deg);
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.36;
  mask-image: linear-gradient(to top, black 20%, transparent 82%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 82%);
  animation: homeGridMove 10s linear infinite;
}

body.upos-3d-app .thetop,
body.upos-3d-app main,
body.upos-3d-app .side-bar,
body.upos-3d-app .content,
body.upos-3d-app .content-wrapper,
body.upos-3d-app .container,
body.upos-3d-app .container-fluid,
body.upos-3d-app footer,
body.upos-3d-app .main-footer {
  position: relative;
  z-index: 2;
}

body.upos-3d-app .side-bar,
body.upos-3d-app main > .no-print,
body.upos-3d-app .box,
body.upos-3d-app .nav-tabs-custom,
body.upos-3d-app .modal-content,
body.upos-3d-app .tw-bg-white,
body.upos-3d-app .well,
body.upos-3d-app .card,
body.upos-3d-app .panel,
body.upos-3d-app .content-custom,
body.upos-3d-app .filters,
body.upos-3d-app .dataTables_wrapper,
body.upos-3d-app .table-responsive {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58)) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #f8fafc !important;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

body.upos-3d-app .box,
body.upos-3d-app .nav-tabs-custom,
body.upos-3d-app .tw-bg-white,
body.upos-3d-app .well,
body.upos-3d-app .card,
body.upos-3d-app .panel,
body.upos-3d-app .table-responsive {
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 18px !important;
}

body.upos-3d-app .side-bar-heading,
body.upos-3d-app h1,
body.upos-3d-app h2,
body.upos-3d-app h3,
body.upos-3d-app h4,
body.upos-3d-app h5,
body.upos-3d-app h6,
body.upos-3d-app label,
body.upos-3d-app strong,
body.upos-3d-app .box-title,
body.upos-3d-app .modal-title,
body.upos-3d-app .content-header h1 {
  color: #ffffff !important;
}

body.upos-3d-app p,
body.upos-3d-app span,
body.upos-3d-app small,
body.upos-3d-app td,
body.upos-3d-app th,
body.upos-3d-app .help-block,
body.upos-3d-app .text-muted,
body.upos-3d-app .dataTables_info,
body.upos-3d-app .dataTables_length,
body.upos-3d-app .dataTables_filter {
  color: #dbeafe;
}

body.upos-3d-app .sidebar-menu > li > a,
body.upos-3d-app .treeview-menu > li > a {
  color: #cbd5e1 !important;
  opacity: 1 !important;
}

body.upos-3d-app .sidebar-menu > li.active > a,
body.upos-3d-app .sidebar-menu > li:hover > a,
body.upos-3d-app .sidebar-menu > li.menu-open > a,
body.upos-3d-app .treeview-menu > li.active > a,
body.upos-3d-app .treeview-menu > li > a:hover {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(168, 85, 247, 0.14)) !important;
  color: #ffffff !important;
}

body.upos-3d-app main > .no-print [class*="tw-bg-"],
body.upos-3d-app main > .no-print summary,
body.upos-3d-app main > .no-print button,
body.upos-3d-app main > .no-print a {
  background: rgba(15, 23, 42, 0.76) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #f8fafc !important;
}

body.upos-3d-app main > .no-print svg {
  color: #e0f2fe !important;
}

body.upos-3d-app .form-control,
body.upos-3d-app input,
body.upos-3d-app select,
body.upos-3d-app textarea,
body.upos-3d-app .select2-container--default .select2-selection--single,
body.upos-3d-app .select2-container--default .select2-selection--multiple {
  background: rgba(2, 6, 23, 0.56) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #ffffff !important;
}

body.upos-3d-app .form-control::placeholder,
body.upos-3d-app input::placeholder,
body.upos-3d-app textarea::placeholder {
  color: #94a3b8 !important;
}

body.upos-3d-app .input-group-addon,
body.upos-3d-app .input-group-btn .btn,
body.upos-3d-app .btn-default {
  background: rgba(15, 23, 42, 0.76) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #f8fafc !important;
}

body.upos-3d-app .table,
body.upos-3d-app .table > thead > tr > th,
body.upos-3d-app .table > tbody > tr > td,
body.upos-3d-app .table > tbody > tr > th,
body.upos-3d-app table.dataTable tbody tr,
body.upos-3d-app table.dataTable tbody td {
  background: rgba(2, 6, 23, 0.22) !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

body.upos-3d-app .table > thead > tr > th,
body.upos-3d-app table.dataTable thead th {
  background: rgba(15, 23, 42, 0.88) !important;
  color: #ffffff !important;
}

body.upos-3d-app .table-striped > tbody > tr:nth-of-type(odd),
body.upos-3d-app table.dataTable.stripe tbody tr.odd {
  background: rgba(15, 23, 42, 0.32) !important;
}

body.upos-3d-app .table-hover > tbody > tr:hover,
body.upos-3d-app table.dataTable.hover tbody tr:hover {
  background: rgba(56, 189, 248, 0.12) !important;
}

body.upos-3d-app .nav-tabs-custom > .nav-tabs > li > a,
body.upos-3d-app .nav-tabs > li > a {
  color: #cbd5e1 !important;
  background: transparent !important;
}

body.upos-3d-app .nav-tabs-custom > .nav-tabs > li.active > a,
body.upos-3d-app .nav-tabs > li.active > a,
body.upos-3d-app .nav-tabs > li > a:hover {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

body.upos-3d-app .dropdown-menu,
body.upos-3d-app .select2-dropdown {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38) !important;
}

body.upos-3d-app .dropdown-menu > li > a,
body.upos-3d-app .select2-results__option {
  color: #e5e7eb !important;
}

body.upos-3d-app .dropdown-menu > li > a:hover,
body.upos-3d-app .select2-results__option--highlighted {
  background: #0ea5e9 !important;
  color: #ffffff !important;
}

body.upos-3d-app .daterangepicker {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #111827 !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38) !important;
}

body.upos-3d-app .daterangepicker *,
body.upos-3d-app .daterangepicker .ranges li,
body.upos-3d-app .daterangepicker .calendar-table,
body.upos-3d-app .daterangepicker td,
body.upos-3d-app .daterangepicker th {
  color: #111827 !important;
}

body.upos-3d-app .daterangepicker .ranges li.active,
body.upos-3d-app .daterangepicker .ranges li:hover,
body.upos-3d-app .daterangepicker td.active,
body.upos-3d-app .daterangepicker td.active:hover {
  background: #0ea5e9 !important;
  color: #ffffff !important;
}

body.upos-3d-app .daterangepicker .ranges li.disabled,
body.upos-3d-app .daterangepicker td.off,
body.upos-3d-app .daterangepicker td.off.in-range,
body.upos-3d-app .daterangepicker td.off.start-date,
body.upos-3d-app .daterangepicker td.off.end-date {
  color: #9ca3af !important;
}

body.upos-3d-app .pagination > li > a,
body.upos-3d-app .pagination > li > span,
body.upos-3d-app .dt-buttons .btn {
  background: rgba(15, 23, 42, 0.76) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #e5e7eb !important;
}

body.upos-3d-app .pagination > .active > a,
body.upos-3d-app .pagination > .active > span,
body.upos-3d-app .btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 52%, #a855f7 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body.upos-3d-app .main-footer {
  background: transparent !important;
  border: 0 !important;
  color: #94a3b8 !important;
}

/* POS screen: dark 3D animated theme */
body.upos-pos-3d,
body.upos-pos-3d main,
body.upos-pos-3d #scrollable-container {
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.22), transparent 24%),
    radial-gradient(circle at 82% 9%, rgba(168, 85, 247, 0.22), transparent 27%),
    linear-gradient(135deg, #050816 0%, #101827 46%, #050816 100%) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d {
  perspective: 1200px;
}

body.upos-pos-3d .upos-pos-3d-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body.upos-pos-3d .upos-pos-3d-orb,
body.upos-pos-3d .upos-pos-3d-cube,
body.upos-pos-3d .upos-pos-3d-grid-floor {
  position: absolute;
  display: block;
}

body.upos-pos-3d .upos-pos-3d-orb {
  border-radius: 999px;
  opacity: 0.48;
  filter: blur(1px);
}

body.upos-pos-3d .upos-pos-3d-orb-one {
  width: 260px;
  height: 260px;
  left: 12%;
  top: 20%;
  background: radial-gradient(circle at 35% 30%, #67e8f9, #2563eb 46%, transparent 74%);
  animation: homeOrbFloat 10s ease-in-out infinite;
}

body.upos-pos-3d .upos-pos-3d-orb-two {
  width: 360px;
  height: 360px;
  right: 5%;
  bottom: 9%;
  background: radial-gradient(circle at 35% 30%, #f0abfc, #7c3aed 48%, transparent 74%);
  animation: homeOrbFloat 13s ease-in-out infinite reverse;
}

body.upos-pos-3d .upos-pos-3d-cube {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
}

body.upos-pos-3d .upos-pos-3d-cube-one {
  left: 24%;
  bottom: 18%;
  animation: homeCubeSpin 14s linear infinite;
}

body.upos-pos-3d .upos-pos-3d-cube-two {
  right: 22%;
  top: 22%;
  width: 58px;
  height: 58px;
  animation: homeCubeSpin 11s linear infinite reverse;
}

body.upos-pos-3d .upos-pos-3d-grid-floor {
  left: 50%;
  bottom: -190px;
  width: 1320px;
  height: 500px;
  transform: translateX(-50%) rotateX(68deg);
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.34;
  mask-image: linear-gradient(to top, black 20%, transparent 82%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 82%);
  animation: homeGridMove 10s linear infinite;
}

body.upos-pos-3d .thetop,
body.upos-pos-3d main,
body.upos-pos-3d .pos-full-page-shell,
body.upos-pos-3d .pos-modern-workspace,
body.upos-pos-3d .pos-form-actions {
  position: relative;
  z-index: 2;
}

body.upos-pos-3d .pos-full-page-shell {
  background: transparent !important;
  color: #f8fafc !important;
}

body.upos-pos-3d .pos-modern-card,
body.upos-pos-3d .pos-modern-sidebar > .row,
body.upos-pos-3d #featured_products_box,
body.upos-pos-3d #product_list_body,
body.upos-pos-3d .pos-form-actions,
body.upos-pos-3d .modal-content {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58)) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  color: #f8fafc !important;
  box-shadow:
    0 30px 74px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

body.upos-pos-3d .pos-modern-card,
body.upos-pos-3d .pos-modern-sidebar > .row,
body.upos-pos-3d #featured_products_box,
body.upos-pos-3d #product_list_body {
  transform: none;
}

body.upos-pos-3d .pos-form-actions {
  z-index: 30;
}

body.upos-pos-3d .row > .col-md-12,
body.upos-pos-3d .pos-full-page-shell .row > .col-md-12,
body.upos-pos-3d .box,
body.upos-pos-3d .box-body,
body.upos-pos-3d .table,
body.upos-pos-3d .table > thead > tr > th,
body.upos-pos-3d .table > tbody > tr > td,
body.upos-pos-3d .table > tbody > tr > th {
  background: transparent !important;
  color: #f8fafc !important;
}

body.upos-pos-3d h1,
body.upos-pos-3d h2,
body.upos-pos-3d h3,
body.upos-pos-3d h4,
body.upos-pos-3d h5,
body.upos-pos-3d h6,
body.upos-pos-3d label,
body.upos-pos-3d strong,
body.upos-pos-3d th,
body.upos-pos-3d .pos-total,
body.upos-pos-3d .pos-total span,
body.upos-pos-3d .pos-total .number,
body.upos-pos-3d #total_payable,
body.upos-pos-3d .total,
body.upos-pos-3d .table th {
  color: #ffffff !important;
}

body.upos-pos-3d p,
body.upos-pos-3d span,
body.upos-pos-3d small,
body.upos-pos-3d td,
body.upos-pos-3d .text-muted,
body.upos-pos-3d .help-block,
body.upos-pos-3d .product_box,
body.upos-pos-3d .product_box *,
body.upos-pos-3d .product_list,
body.upos-pos-3d .product_list *,
body.upos-pos-3d .product-list-tile,
body.upos-pos-3d .product-list-tile * {
  color: #dbeafe !important;
}

body.upos-pos-3d .product_box,
body.upos-pos-3d .product_list,
body.upos-pos-3d .product-list-tile,
body.upos-pos-3d #product_list_body .col-xs-6,
body.upos-pos-3d #featured_products_box .col-xs-6 {
  background: rgba(2, 6, 23, 0.34) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 14px !important;
}

body.upos-pos-3d .product_box:hover,
body.upos-pos-3d .product_list:hover,
body.upos-pos-3d .product-list-tile:hover {
  background: rgba(56, 189, 248, 0.12) !important;
}

body.upos-pos-3d .form-control,
body.upos-pos-3d input,
body.upos-pos-3d select,
body.upos-pos-3d textarea,
body.upos-pos-3d .select2-container--default .select2-selection--single,
body.upos-pos-3d .select2-container--default .select2-selection--multiple {
  background: rgba(2, 6, 23, 0.58) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #ffffff !important;
}

body.upos-pos-3d .form-control::placeholder,
body.upos-pos-3d input::placeholder,
body.upos-pos-3d textarea::placeholder {
  color: #94a3b8 !important;
}

body.upos-pos-3d .select2-selection__rendered,
body.upos-pos-3d .select2-selection__placeholder {
  color: #f8fafc !important;
}

body.upos-pos-3d .input-group-addon,
body.upos-pos-3d .input-group-btn .btn,
body.upos-pos-3d .btn-default,
body.upos-pos-3d .btn-flat {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d .select2-dropdown,
body.upos-pos-3d .dropdown-menu {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #e5e7eb !important;
}

body.upos-pos-3d .select2-results__option,
body.upos-pos-3d .dropdown-menu > li > a {
  color: #e5e7eb !important;
}

body.upos-pos-3d .select2-results__option--highlighted,
body.upos-pos-3d .dropdown-menu > li > a:hover {
  background: #0ea5e9 !important;
  color: #ffffff !important;
}

body.upos-pos-3d #pos_table thead th,
body.upos-pos-3d .pos-full-page-shell #pos_table thead th {
  background: rgba(15, 23, 42, 0.88) !important;
  color: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

body.upos-pos-3d #pos_table tbody tr,
body.upos-pos-3d #pos_table tbody td,
body.upos-pos-3d .pos-full-page-shell #pos_table tbody tr,
body.upos-pos-3d .pos-full-page-shell #pos_table tbody td {
  background: rgba(2, 6, 23, 0.2) !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

body.upos-pos-3d .pos_form_totals,
body.upos-pos-3d .pos_form_totals table,
body.upos-pos-3d .pos_form_totals td {
  background: transparent !important;
  color: #ffffff !important;
}

body.upos-pos-3d .pos-form-actions .btn,
body.upos-pos-3d .pos-form-actions button,
body.upos-pos-3d .pos-form-actions a {
  color: #ffffff !important;
  text-shadow: none !important;
}

body.upos-pos-3d .pos-form-actions .btn-default,
body.upos-pos-3d .pos-form-actions .btn-flat {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.upos-pos-3d #pos-finalize,
body.upos-pos-3d #recent-transactions,
body.upos-pos-3d .invoice-template-editor-btn,
body.upos-pos-3d .btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 52%, #a855f7 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.32) !important;
}

body.upos-pos-3d .pos-express-finalize[data-pay_method="cash"],
body.upos-pos-3d .btn-success {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
}

body.upos-pos-3d #pos-cancel,
body.upos-pos-3d #pos-delete,
body.upos-pos-3d .btn-danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

body.upos-pos-3d .btn-warning {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #111827 !important;
}

body.upos-pos-3d .tw-dw-drawer-overlay,
body.upos-pos-3d .overlay-category,
body.upos-pos-3d .overlay-brand {
  background: rgba(2, 6, 23, 0.24) !important;
}

body.upos-pos-3d .daterangepicker {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #111827 !important;
}

body.upos-pos-3d .daterangepicker *,
body.upos-pos-3d .daterangepicker .ranges li,
body.upos-pos-3d .daterangepicker .calendar-table,
body.upos-pos-3d .daterangepicker td,
body.upos-pos-3d .daterangepicker th {
  color: #111827 !important;
}

body.upos-pos-3d .daterangepicker .ranges li.active,
body.upos-pos-3d .daterangepicker .ranges li:hover,
body.upos-pos-3d .daterangepicker td.active,
body.upos-pos-3d .daterangepicker td.active:hover {
  background: #0ea5e9 !important;
  color: #ffffff !important;
}

body.upos-pos-3d .modal-backdrop {
  background: rgba(2, 6, 23, 0.68) !important;
}

body.upos-pos-3d .modal-header,
body.upos-pos-3d .modal-footer {
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.upos-pos-3d .close,
body.upos-pos-3d .modal .close {
  color: #ffffff !important;
  opacity: 0.85 !important;
}

/* Dark 3D interaction fixes: keep menus, drawers, modals, and scanners clickable. */
body.upos-3d-app main > .no-print,
body.upos-3d-app main > .no-print .tw-flex,
body.upos-3d-app main > .no-print details,
body.upos-3d-app main > .no-print details summary {
  position: relative;
  z-index: 8000 !important;
}

body.upos-3d-app main > .no-print details[open] {
  z-index: 22000 !important;
}

body.upos-3d-app main > .no-print details > ul {
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46) !important;
  color: #f8fafc !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 23000 !important;
}

body.upos-3d-app main > .no-print details > ul *,
body.upos-3d-app main > .no-print details > ul a {
  color: #f8fafc !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-3d-app main > .no-print details > ul a:hover {
  background: rgba(56, 189, 248, 0.18) !important;
}

body.upos-home-page #dashboard_date_filter {
  position: relative;
  z-index: 120 !important;
  color: #ffffff !important;
}

body.upos-home-page #dashboard_date_filter span,
body.upos-home-page #dashboard_date_filter svg {
  color: #ffffff !important;
  opacity: 1 !important;
}

body.upos-3d-app .daterangepicker,
body.upos-pos-3d .daterangepicker {
  z-index: 16000 !important;
}

body.upos-3d-app .daterangepicker .ranges li,
body.upos-pos-3d .daterangepicker .ranges li {
  color: #111827 !important;
  opacity: 1 !important;
}

body.upos-3d-app .sidebar-menu > li > a span,
body.upos-3d-app .treeview-menu > li > a span,
body.upos-3d-app .side-bar-heading,
body.upos-3d-app .side-bar-heading span {
  color: #e5e7eb !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-3d-app .sidebar-menu > li.active > a span,
body.upos-3d-app .sidebar-menu > li:hover > a span,
body.upos-3d-app .treeview-menu > li.active > a span,
body.upos-3d-app .treeview-menu > li > a:hover span {
  color: #ffffff !important;
}

/* Tailwind class overrides emitted by the sidebar menu presenter. */
body.upos-3d-app .side-bar [class*="tw-bg-gray-200"],
body.upos-3d-app .side-bar [class*="hover:tw-bg-gray-100"]:hover,
body.upos-3d-app .side-bar [class*="focus:tw-bg-gray-100"]:focus {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.24), rgba(99, 102, 241, 0.18)) !important;
  color: #ffffff !important;
}

body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] *,
body.upos-3d-app .side-bar [class*="hover:tw-bg-gray-100"]:hover *,
body.upos-3d-app .side-bar [class*="focus:tw-bg-gray-100"]:focus *,
body.upos-3d-app .side-bar [class*="tw-text-primary-700"],
body.upos-3d-app .side-bar [class*="tw-text-gray-600"],
body.upos-3d-app .side-bar [class*="tw-text-gray-500"] {
  color: #dbeafe !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] > a,
body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] > .drop_down {
  background: transparent !important;
}

body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] > a span,
body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] > a i,
body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] > .drop_down span,
body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] > .drop_down i,
body.upos-3d-app .side-bar [class*="tw-bg-gray-200"] > .drop_down svg {
  color: #ffffff !important;
}

body.upos-3d-app .side-bar .chiled,
body.upos-3d-app .side-bar .chiled > div,
body.upos-3d-app .side-bar .chiled .tw-space-y-3\.5 {
  background: transparent !important;
  color: #dbeafe !important;
}

body.upos-3d-app .side-bar .chiled .tw-bg-gray-200,
body.upos-3d-app .side-bar .chiled a:hover,
body.upos-3d-app .side-bar .chiled a:focus {
  background: rgba(14, 165, 233, 0.18) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
}

body.upos-3d-app .side-bar .chiled a,
body.upos-3d-app .side-bar .chiled a span {
  color: #dbeafe !important;
}

body.upos-3d-app .side-bar .chiled a:hover span,
body.upos-3d-app .side-bar .chiled a:focus span,
body.upos-3d-app .side-bar .chiled .tw-text-primary-700,
body.upos-3d-app .side-bar .chiled .tw-text-primary-700 span {
  color: #ffffff !important;
}

html.tw-bg-white:has(body.upos-3d-app),
body.upos-3d-app .tw-bg-gray-100,
body.upos-home-page main.tw-bg-gray-100,
body.upos-home-page #scrollable-container,
body.upos-home-page .content-wrapper,
body.upos-home-page .content,
body.upos-home-page footer,
body.upos-home-page .main-footer {
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.18), transparent 25%),
    radial-gradient(circle at 82% 10%, rgba(168, 85, 247, 0.2), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #1e1b4b 100%) !important;
}

body.upos-3d-app .modal,
body.upos-pos-3d .modal,
body.upos-pos-3d .view_modal,
body.upos-pos-3d .contact_modal,
body.upos-pos-3d .register_details_modal,
body.upos-pos-3d .close_register_modal,
body.upos-pos-3d .quick_add_product_modal {
  z-index: 20550 !important;
}

body.upos-3d-app .modal-backdrop,
body.upos-pos-3d .modal-backdrop {
  z-index: 20540 !important;
}

/* POS row-edit popups live inside the POS table, so keep the Bootstrap backdrop behind
   the POS shell and let the modal element provide the visible dim layer. */
body.upos-pos-3d .modal-backdrop {
  z-index: 1 !important;
}

body.upos-pos-3d .modal.in,
body.upos-pos-3d .modal.show,
body.upos-pos-3d .row_edit_product_price_model.in,
body.upos-pos-3d .row_edit_product_price_model.show {
  background: rgba(2, 6, 23, 0.56) !important;
  pointer-events: auto !important;
  z-index: 30000 !important;
}

body.upos-pos-3d .modal-dialog,
body.upos-pos-3d .modal-content,
body.upos-pos-3d .modal-content *,
body.upos-pos-3d .row_edit_product_price_model .modal-dialog,
body.upos-pos-3d .row_edit_product_price_model .modal-content,
body.upos-pos-3d .row_edit_product_price_model .modal-content * {
  pointer-events: auto !important;
}

body.upos-pos-3d .row_edit_product_price_model input,
body.upos-pos-3d .row_edit_product_price_model select,
body.upos-pos-3d .row_edit_product_price_model textarea,
body.upos-pos-3d .row_edit_product_price_model button,
body.upos-pos-3d .row_edit_product_price_model .close {
  position: relative;
  z-index: 30010 !important;
}

body.upos-3d-app .select2-container--open,
body.upos-3d-app .select2-dropdown,
body.upos-pos-3d .select2-container--open,
body.upos-pos-3d .select2-dropdown {
  z-index: 24000 !important;
}

body.upos-pos-3d .swal2-container,
body.upos-pos-3d .sweet-alert,
body.upos-pos-3d .toast,
body.upos-pos-3d .toast-top-right {
  z-index: 25000 !important;
}

body.upos-pos-3d .upos-pos-3d-scene,
body.upos-3d-app .upos-app-3d-scene,
body.upos-home-page .home-3d-scene {
  pointer-events: none !important;
}

body.upos-pos-3d .pos-form-actions,
body.upos-pos-3d .pos-form-actions *,
body.upos-pos-3d #pos_table,
body.upos-pos-3d #pos_table *,
body.upos-pos-3d #product_list_body,
body.upos-pos-3d #product_list_body *,
body.upos-pos-3d #featured_products_box,
body.upos-pos-3d #featured_products_box * {
  pointer-events: auto;
}

body.upos-pos-3d .pos-modern-card,
body.upos-pos-3d .pos-modern-sidebar > .row,
body.upos-pos-3d #featured_products_box,
body.upos-pos-3d #product_list_body,
body.upos-pos-3d .pos-form-actions {
  animation: none !important;
}

body.upos-pos-3d .product_box span,
body.upos-pos-3d .product_box small,
body.upos-pos-3d .product-list-tile span,
body.upos-pos-3d .product-list-tile small,
body.upos-pos-3d .pos-form-actions span,
body.upos-pos-3d .pos-form-actions b,
body.upos-pos-3d .pos-form-actions i,
body.upos-pos-3d .pos-form-actions label {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-pos-3d .modal-content,
body.upos-pos-3d .modal-content p,
body.upos-pos-3d .modal-content span,
body.upos-pos-3d .modal-content td,
body.upos-pos-3d .modal-content th,
body.upos-pos-3d .modal-content label,
body.upos-pos-3d .modal-content strong {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.upos-pos-3d .modal-content .form-control,
body.upos-pos-3d .modal-content input,
body.upos-pos-3d .modal-content select,
body.upos-pos-3d .modal-content textarea {
  color: #ffffff !important;
}

body.upos-pos-3d .select2-results__option,
body.upos-pos-3d .select2-results__option *,
body.upos-3d-app .select2-results__option,
body.upos-3d-app .select2-results__option * {
  color: inherit !important;
  opacity: 1 !important;
}

/* POS and purchase modal readability pass. */
body.upos-pos-3d,
body.upos-pos-3d .thetop,
body.upos-pos-3d main.tw-bg-gray-100,
body.upos-pos-3d #scrollable-container,
body.upos-pos-3d .content,
body.upos-pos-3d .content-wrapper,
body.upos-pos-3d .pos-full-page-shell,
body.upos-pos-3d .pos-modern-workspace,
body.upos-pos-3d .pos-modern-workspace > div,
body.upos-pos-3d .pos-modern-workspace > div > div {
  background:
    radial-gradient(circle at 20% 16%, rgba(56, 189, 248, 0.2), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(168, 85, 247, 0.2), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 52%, #1e1b4b 100%) !important;
}

body.upos-pos-3d .pos-modern-card,
body.upos-pos-3d .pos-modern-sidebar > .row,
body.upos-pos-3d #featured_products_box,
body.upos-pos-3d #product_list_body,
body.upos-pos-3d .pos-form-actions {
  background: rgba(15, 23, 42, 0.88) !important;
}

body.upos-pos-3d #pos_table tbody tr,
body.upos-pos-3d #pos_table tbody td,
body.upos-pos-3d .pos_form_totals,
body.upos-pos-3d .pos_form_totals table,
body.upos-pos-3d .pos_form_totals td,
body.upos-pos-3d .pos-total,
body.upos-pos-3d #total_payable,
body.upos-pos-3d .pos-form-actions,
body.upos-pos-3d .pos-form-actions * {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.upos-pos-3d .pos_form_totals .text-primary,
body.upos-pos-3d .pos_form_totals .text-info,
body.upos-pos-3d .pos_form_totals i {
  color: #38bdf8 !important;
}

body.upos-pos-3d .pos_lot_imei_select + .select2-container .select2-selection--single,
body.upos-pos-3d .pos_lot_imei_select + .select2-container .select2-selection--multiple {
  background: rgba(2, 6, 23, 0.9) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #ffffff !important;
}

body.upos-pos-3d .pos_lot_imei_select + .select2-container .select2-selection__rendered,
body.upos-pos-3d .pos_lot_imei_select + .select2-container .select2-search__field,
body.upos-pos-3d .pos_lot_imei_select + .select2-container .select2-selection__placeholder {
  color: #f8fafc !important;
}

body.upos-pos-3d .pos_lot_imei_select + .select2-container .select2-selection__choice {
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6) !important;
  color: #ffffff !important;
}

body.upos-pos-3d .pos-lot-imei-dropdown,
body.upos-pos-3d .pos-lot-imei-dropdown .select2-results,
body.upos-pos-3d .pos-lot-imei-dropdown .select2-results__options {
  background: #020617 !important;
  color: #f8fafc !important;
}

body.upos-pos-3d .pos-lot-imei-dropdown .select2-search--dropdown,
body.upos-pos-3d .pos-lot-imei-dropdown .select2-search__field {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: rgba(56, 189, 248, 0.42) !important;
}

body.upos-pos-3d .pos-lot-imei-dropdown .select2-results__option,
body.upos-pos-3d .pos-lot-imei-dropdown .select2-results__option * {
  background: #020617 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

body.upos-pos-3d .pos-lot-imei-dropdown .select2-results__option--highlighted[aria-selected],
body.upos-pos-3d .pos-lot-imei-dropdown .select2-results__option[aria-selected="true"] {
  background: #0ea5e9 !important;
  color: #ffffff !important;
}

body.upos-3d-app .view_modal,
body.upos-3d-app .view_modal .modal-dialog,
body.upos-3d-app .view_modal .modal-content,
body.upos-3d-app .view_modal .modal-content * {
  pointer-events: auto !important;
}

body.upos-3d-app .view_modal .modal-content,
body.upos-3d-app .modal-content {
  background: rgba(15, 23, 42, 0.97) !important;
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.upos-3d-app .view_modal .modal-content p,
body.upos-3d-app .view_modal .modal-content span,
body.upos-3d-app .view_modal .modal-content td,
body.upos-3d-app .view_modal .modal-content th,
body.upos-3d-app .view_modal .modal-content label,
body.upos-3d-app .view_modal .modal-content strong,
body.upos-3d-app .view_modal .modal-content small {
  color: #f1f5f9 !important;
  opacity: 1 !important;
}

body.upos-3d-app .view_modal .table > thead > tr > th,
body.upos-3d-app .view_modal table.dataTable thead th {
  background: rgba(20, 184, 166, 0.2) !important;
  color: #ffffff !important;
}

body.upos-3d-app .view_modal .btn,
body.upos-3d-app .view_modal button,
body.upos-3d-app .view_modal a {
  pointer-events: auto !important;
  opacity: 1 !important;
}

body.upos-3d-app .purchase-lot-imei-list {
  background: rgba(2, 6, 23, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36) !important;
  color: #ffffff !important;
  display: block;
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px 10px;
}

body.upos-3d-app .purchase-lot-imei-list.hide {
  display: none !important;
}

body.upos-3d-app .purchase-lot-imei-list div {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Final sidebar drawer contrast fix. */
body.upos-3d-app .side-bar {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94)) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}

body.upos-3d-app .side-bar > a {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(79, 70, 229, 0.18)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
}

body.upos-3d-app .side-bar-heading,
body.upos-3d-app .side-bar-heading *,
body.upos-3d-app .sidebar-menu,
body.upos-3d-app .sidebar-menu *,
body.upos-3d-app .treeview-menu,
body.upos-3d-app .treeview-menu * {
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-3d-app .sidebar-menu > li,
body.upos-3d-app .treeview-menu {
  background: transparent !important;
}

body.upos-3d-app .sidebar-menu > li > a,
body.upos-3d-app .sidebar-menu > li > a span,
body.upos-3d-app .sidebar-menu > li > a i,
body.upos-3d-app .sidebar-menu > li > a svg,
body.upos-3d-app .treeview-menu > li > a,
body.upos-3d-app .treeview-menu > li > a span,
body.upos-3d-app .treeview-menu > li > a i,
body.upos-3d-app .treeview-menu > li > a svg {
  color: #dbeafe !important;
  fill: none !important;
}

body.upos-3d-app .sidebar-menu > li.menu-open {
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  border-radius: 14px !important;
  margin: 6px 8px !important;
  overflow: hidden;
}

body.upos-3d-app .sidebar-menu > li.menu-open > a,
body.upos-3d-app .sidebar-menu > li.active > a,
body.upos-3d-app .sidebar-menu > li:hover > a {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.24), rgba(99, 102, 241, 0.18)) !important;
  color: #ffffff !important;
}

body.upos-3d-app .sidebar-menu > li.menu-open > a span,
body.upos-3d-app .sidebar-menu > li.menu-open > a i,
body.upos-3d-app .sidebar-menu > li.active > a span,
body.upos-3d-app .sidebar-menu > li.active > a i,
body.upos-3d-app .sidebar-menu > li:hover > a span,
body.upos-3d-app .sidebar-menu > li:hover > a i {
  color: #ffffff !important;
}

body.upos-3d-app .sidebar-menu > li.menu-open > .treeview-menu {
  display: block;
  background: rgba(2, 6, 23, 0.88) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.16) !important;
  padding: 8px 0 10px !important;
}

body.upos-3d-app .treeview-menu > li > a {
  background: transparent !important;
  color: #cbd5e1 !important;
  margin: 2px 10px !important;
  border-radius: 10px !important;
}

body.upos-3d-app .treeview-menu > li.active > a,
body.upos-3d-app .treeview-menu > li > a:hover {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #ffffff !important;
}

body.upos-3d-app .treeview-menu > li.active > a span,
body.upos-3d-app .treeview-menu > li > a:hover span {
  color: #ffffff !important;
}

@media (max-width: 1199px) {
  body.upos-pos-3d .pos-modern-card,
  body.upos-pos-3d .pos-modern-sidebar > .row,
  body.upos-pos-3d #featured_products_box,
  body.upos-pos-3d #product_list_body {
    transform: none;
  }
}

/* Last-mile menu presenter dark theme rules. Keep this at the very end. */
body.upos-3d-app .side-bar #side-bar,
body.upos-3d-app .side-bar .upos-menu-open,
body.upos-3d-app .side-bar .upos-sidebar-children {
  background: transparent !important;
  color: #dbeafe !important;
}

body.upos-3d-app .side-bar .upos-sidebar-link,
body.upos-3d-app .side-bar .upos-sidebar-link span,
body.upos-3d-app .side-bar .upos-sidebar-link i,
body.upos-3d-app .side-bar .upos-sidebar-link svg,
body.upos-3d-app .side-bar .upos-sidebar-child-link,
body.upos-3d-app .side-bar .upos-sidebar-child-link span {
  color: #dbeafe !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-3d-app .side-bar .upos-sidebar-link:hover,
body.upos-3d-app .side-bar .upos-sidebar-link:focus,
body.upos-3d-app .side-bar .upos-menu-active,
body.upos-3d-app .side-bar .upos-menu-open > .upos-sidebar-link,
body.upos-3d-app .side-bar a.tw-bg-gray-200,
body.upos-3d-app .side-bar div.tw-bg-gray-200 > a {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #ffffff !important;
}

body.upos-3d-app .side-bar .upos-sidebar-link:hover *,
body.upos-3d-app .side-bar .upos-sidebar-link:focus *,
body.upos-3d-app .side-bar .upos-menu-active *,
body.upos-3d-app .side-bar .upos-menu-open > .upos-sidebar-link *,
body.upos-3d-app .side-bar a.tw-bg-gray-200 *,
body.upos-3d-app .side-bar div.tw-bg-gray-200 > a * {
  color: #ffffff !important;
}

body.upos-3d-app .side-bar .upos-menu-open {
  background: rgba(2, 6, 23, 0.42) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 14px !important;
  padding-bottom: 4px !important;
}

body.upos-3d-app .side-bar .upos-sidebar-children .tw-bg-gray-200,
body.upos-3d-app .side-bar .upos-sidebar-child-link:hover,
body.upos-3d-app .side-bar .upos-menu-child-active {
  background: rgba(14, 165, 233, 0.18) !important;
  border-radius: 9px !important;
  color: #ffffff !important;
}

body.upos-3d-app .side-bar .upos-sidebar-children .tw-bg-gray-200 *,
body.upos-3d-app .side-bar .upos-sidebar-child-link:hover *,
body.upos-3d-app .side-bar .upos-menu-child-active * {
  color: #ffffff !important;
}

html.tw-bg-white:has(body.upos-3d-app),
body.upos-3d-app,
body.upos-3d-app .tw-bg-gray-100,
body.upos-3d-app main.tw-bg-gray-100,
body.upos-3d-app #scrollable-container {
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.18), transparent 25%),
    radial-gradient(circle at 82% 10%, rgba(168, 85, 247, 0.2), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #1e1b4b 100%) !important;
}

/* Final dark fixes for table footers, old settings tabs, and empty white strips. */
html.tw-bg-white,
body.upos-3d-app .wrapper,
body.upos-3d-app .right-side,
body.upos-3d-app .content-wrapper,
body.upos-3d-app .content,
body.upos-3d-app .container,
body.upos-3d-app .container-fluid,
body.upos-3d-app .tw-flex-1,
body.upos-3d-app .tw-overflow-y-auto,
body.upos-3d-app main.tw-bg-gray-100 {
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.18), transparent 25%),
    radial-gradient(circle at 82% 10%, rgba(168, 85, 247, 0.2), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #1e1b4b 100%) !important;
  color: #f8fafc !important;
}

body.upos-3d-app table tfoot,
body.upos-3d-app table tfoot tr,
body.upos-3d-app table tfoot tr.bg-gray,
body.upos-3d-app table tfoot tr.footer-total,
body.upos-3d-app table tfoot th,
body.upos-3d-app table tfoot td,
body.upos-3d-app .dataTables_scrollFoot,
body.upos-3d-app .dataTables_scrollFootInner,
body.upos-3d-app .dataTables_scrollFoot table,
body.upos-3d-app .dataTables_scrollFoot tfoot,
body.upos-3d-app .dataTables_scrollFoot tfoot tr,
body.upos-3d-app .dataTables_scrollFoot tfoot th,
body.upos-3d-app .dataTables_scrollFoot tfoot td,
body.upos-3d-app .DTFC_LeftFootWrapper,
body.upos-3d-app .DTFC_RightFootWrapper {
  background: rgba(15, 23, 42, 0.98) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  opacity: 1 !important;
}

body.upos-3d-app table tfoot *,
body.upos-3d-app table tfoot tr.bg-gray *,
body.upos-3d-app .dataTables_scrollFoot *,
body.upos-3d-app .DTFC_LeftFootWrapper *,
body.upos-3d-app .DTFC_RightFootWrapper * {
  color: #f8fafc !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-3d-app .dataTables_scroll,
body.upos-3d-app .dataTables_scrollBody,
body.upos-3d-app .dataTables_scrollHead,
body.upos-3d-app .dataTables_scrollHeadInner,
body.upos-3d-app .dataTables_wrapper,
body.upos-3d-app .table-responsive,
body.upos-3d-app .DTFC_ScrollWrapper,
body.upos-3d-app .DTFC_LeftWrapper,
body.upos-3d-app .DTFC_RightWrapper {
  background: rgba(2, 6, 23, 0.48) !important;
  color: #f8fafc !important;
}

body.upos-3d-app .dataTables_empty,
body.upos-3d-app .table > tbody > tr > td.dataTables_empty {
  background: rgba(2, 6, 23, 0.58) !important;
  color: #dbeafe !important;
}

body.upos-3d-app ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: rgba(2, 6, 23, 0.92);
}

body.upos-3d-app ::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.92) !important;
  border-radius: 999px;
}

body.upos-3d-app ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #38bdf8, #6366f1, #a855f7) !important;
  border: 2px solid rgba(2, 6, 23, 0.92);
  border-radius: 999px;
}

body.upos-3d-app .pos-tab-container,
body.upos-3d-app div.pos-tab-container,
body.upos-3d-app .pos-tab,
body.upos-3d-app div.pos-tab-content,
body.upos-3d-app .pos-tab-content,
body.upos-3d-app .tab-content,
body.upos-3d-app .tab-pane,
body.upos-3d-app .box-body,
body.upos-3d-app .panel-body,
body.upos-3d-app fieldset {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.78)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #f8fafc !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

body.upos-3d-app .pos-tab-container {
  border-radius: 18px !important;
  overflow: hidden;
}

body.upos-3d-app .pos-tab-menu,
body.upos-3d-app div.pos-tab-menu,
body.upos-3d-app div.pos-tab-menu div.list-group,
body.upos-3d-app .list-group {
  background: rgba(2, 6, 23, 0.56) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.upos-3d-app .list-group-item,
body.upos-3d-app div.pos-tab-menu div.list-group > a {
  background: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #dbeafe !important;
  opacity: 1 !important;
}

body.upos-3d-app .list-group-item *,
body.upos-3d-app div.pos-tab-menu div.list-group > a * {
  color: inherit !important;
  opacity: 1 !important;
}

body.upos-3d-app .list-group-item:hover,
body.upos-3d-app div.pos-tab-menu div.list-group > a:hover {
  background: rgba(56, 189, 248, 0.16) !important;
  color: #ffffff !important;
}

body.upos-3d-app .list-group-item.active,
body.upos-3d-app div.pos-tab-menu div.list-group > a.active {
  background: linear-gradient(135deg, #6366f1, #0ea5e9) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

body.upos-3d-app div.pos-tab-menu div.list-group > a.active .glyphicon,
body.upos-3d-app div.pos-tab-menu div.list-group > a.active .fa,
body.upos-3d-app div.pos-tab-menu div.list-group > a:hover .glyphicon,
body.upos-3d-app div.pos-tab-menu div.list-group > a:hover .fa {
  color: #ffffff !important;
}

body.upos-3d-app .pos-tab-content .form-control,
body.upos-3d-app .pos-tab-content input,
body.upos-3d-app .pos-tab-content select,
body.upos-3d-app .pos-tab-content textarea,
body.upos-3d-app .pos-tab-content .input-group-addon,
body.upos-3d-app .pos-tab-content .select2-container--default .select2-selection--single,
body.upos-3d-app .pos-tab-content .select2-container--default .select2-selection--multiple {
  background: rgba(2, 6, 23, 0.74) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #ffffff !important;
}

body.upos-3d-app .pos-tab-content .form-control::placeholder,
body.upos-3d-app .pos-tab-content input::placeholder,
body.upos-3d-app .pos-tab-content textarea::placeholder {
  color: #cbd5e1 !important;
}

body.upos-3d-app .pos-tab-content label,
body.upos-3d-app .pos-tab-content legend,
body.upos-3d-app .pos-tab-content p,
body.upos-3d-app .pos-tab-content span,
body.upos-3d-app .pos-tab-content small,
body.upos-3d-app .pos-tab-content .help-block {
  color: #e0f2fe !important;
  opacity: 1 !important;
}

/* Keep the header POS button readable on the dark 3D header. */
body.upos-3d-app main > .no-print a[href*="/pos/create"],
body.upos-3d-app main > .no-print a[href*="/pos/create"]:hover,
body.upos-3d-app main > .no-print a[href*="/pos/create"]:focus {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(99, 102, 241, 0.2)) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #f8fafc !important;
}

body.upos-3d-app main > .no-print a[href*="/pos/create"] svg,
body.upos-3d-app main > .no-print a[href*="/pos/create"] span {
  color: #f8fafc !important;
  stroke: #f8fafc !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Final modal readability and clickability pass for dark 3D pages. */
body.upos-3d-app.modal-open,
body.upos-pos-3d.modal-open {
  overflow: hidden !important;
}

body.upos-3d-app .modal-backdrop,
body.upos-pos-3d .modal-backdrop {
  background: rgba(2, 6, 23, 0.42) !important;
  opacity: 0.42 !important;
  pointer-events: none !important;
  z-index: 31980 !important;
}

body.upos-3d-app .modal.in,
body.upos-3d-app .modal.show,
body.upos-3d-app .view_modal.in,
body.upos-3d-app .view_modal.show,
body.upos-pos-3d .modal.in,
body.upos-pos-3d .modal.show,
body.upos-pos-3d .view_modal.in,
body.upos-pos-3d .view_modal.show {
  background: rgba(2, 6, 23, 0.2) !important;
  pointer-events: auto !important;
  z-index: 32000 !important;
}

body.upos-3d-app .view_modal .modal-dialog,
body.upos-3d-app .modal-dialog,
body.upos-pos-3d .view_modal .modal-dialog,
body.upos-pos-3d .modal-dialog {
  position: relative !important;
  z-index: 32020 !important;
  pointer-events: auto !important;
}

body.upos-3d-app .view_modal .modal-content,
body.upos-3d-app .modal-content,
body.upos-pos-3d .view_modal .modal-content,
body.upos-pos-3d .modal-content {
  background:
    radial-gradient(circle at 14% 0%, rgba(56, 189, 248, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.99), rgba(15, 23, 42, 0.99)) !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  filter: brightness(1.18) contrast(1.08) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.upos-3d-app .modal-content *,
body.upos-3d-app .view_modal .modal-content *,
body.upos-pos-3d .modal-content *,
body.upos-pos-3d .view_modal .modal-content * {
  opacity: 1 !important;
  visibility: visible !important;
}

body.upos-3d-app .modal-content,
body.upos-3d-app .modal-content p,
body.upos-3d-app .modal-content span,
body.upos-3d-app .modal-content td,
body.upos-3d-app .modal-content th,
body.upos-3d-app .modal-content label,
body.upos-3d-app .modal-content strong,
body.upos-3d-app .modal-content small,
body.upos-pos-3d .modal-content,
body.upos-pos-3d .modal-content p,
body.upos-pos-3d .modal-content span,
body.upos-pos-3d .modal-content td,
body.upos-pos-3d .modal-content th,
body.upos-pos-3d .modal-content label,
body.upos-pos-3d .modal-content strong,
body.upos-pos-3d .modal-content small {
  color: #f8fafc !important;
}

body.upos-3d-app .modal-content .text-muted,
body.upos-3d-app .modal-content .help-block,
body.upos-pos-3d .modal-content .text-muted,
body.upos-pos-3d .modal-content .help-block {
  color: #cbd5e1 !important;
}

body.upos-3d-app .modal-content .modal-header,
body.upos-3d-app .modal-content .modal-footer,
body.upos-pos-3d .modal-content .modal-header,
body.upos-pos-3d .modal-content .modal-footer {
  background: rgba(15, 23, 42, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
}

body.upos-3d-app .modal-content .table,
body.upos-3d-app .modal-content table,
body.upos-3d-app .modal-content tbody,
body.upos-3d-app .modal-content tr,
body.upos-3d-app .modal-content td,
body.upos-pos-3d .modal-content .table,
body.upos-pos-3d .modal-content table,
body.upos-pos-3d .modal-content tbody,
body.upos-pos-3d .modal-content tr,
body.upos-pos-3d .modal-content td {
  background: rgba(2, 6, 23, 0.26) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

body.upos-3d-app .modal-content thead th,
body.upos-3d-app .modal-content .table > thead > tr > th,
body.upos-pos-3d .modal-content thead th,
body.upos-pos-3d .modal-content .table > thead > tr > th {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.78), rgba(14, 165, 233, 0.5)) !important;
  color: #ffffff !important;
}

body.upos-3d-app .modal-content .btn,
body.upos-3d-app .modal-content .tw-dw-btn,
body.upos-3d-app .modal-content button,
body.upos-3d-app .modal-content a,
body.upos-pos-3d .modal-content .btn,
body.upos-pos-3d .modal-content .tw-dw-btn,
body.upos-pos-3d .modal-content button,
body.upos-pos-3d .modal-content a {
  position: relative !important;
  z-index: 32030 !important;
  pointer-events: auto !important;
}

body.upos-3d-app .modal-content .btn:not(.btn-default),
body.upos-3d-app .modal-content .tw-dw-btn,
body.upos-pos-3d .modal-content .btn:not(.btn-default),
body.upos-pos-3d .modal-content .tw-dw-btn {
  color: #ffffff !important;
}

body.upos-3d-app .modal-content .close,
body.upos-pos-3d .modal-content .close {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.purchase-lot-imei-popover {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.2), transparent 35%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98)) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  max-height: 320px;
  min-width: 240px;
  overflow: hidden;
  position: absolute;
  z-index: 33000 !important;
}

.purchase-lot-imei-popover-title {
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
  color: #ffffff !important;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  padding: 10px 12px;
}

.purchase-lot-imei-popover-close {
  background: rgba(148, 163, 184, 0.14) !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 18px;
  height: 28px;
  line-height: 28px;
  padding: 0;
  text-align: center;
  width: 28px;
}

.purchase-lot-imei-popover-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
}

.purchase-lot-imei-popover-item {
  background: rgba(15, 23, 42, 0.76) !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: #f8fafc !important;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 7px 9px;
}

.purchase-lot-imei-popover-item:last-child {
  margin-bottom: 0;
}

/* POS final contrast fixes for header, payment summary, and card fee boxes. */
body.upos-pos-3d .pos-header,
body.upos-pos-3d .pos-header > div,
body.upos-pos-3d .pos-header .tw-bg-white,
body.upos-pos-3d .pos-header [class*="tw-bg-white"] {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 27, 75, 0.88)) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d .pos-header p,
body.upos-pos-3d .pos-header strong,
body.upos-pos-3d .pos-header span,
body.upos-pos-3d .pos-header div,
body.upos-pos-3d .pos-header i,
body.upos-pos-3d .pos-header a,
body.upos-pos-3d .pos-header button {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.upos-pos-3d .pos-header a,
body.upos-pos-3d .pos-header button,
body.upos-pos-3d .pos-header .btn,
body.upos-pos-3d .pos-header [class*="tw-w-8"],
body.upos-pos-3d .pos-header [class*="tw-rounded-md"] {
  background: rgba(15, 23, 42, 0.74) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d .pos-header a:hover,
body.upos-pos-3d .pos-header button:hover,
body.upos-pos-3d .pos-header .btn:hover {
  background: rgba(56, 189, 248, 0.18) !important;
}

body.upos-pos-3d .pos-header .form-control,
body.upos-pos-3d .pos-header select,
body.upos-pos-3d .pos-header input {
  background: rgba(2, 6, 23, 0.64) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  color: #ffffff !important;
}

body.upos-pos-3d #modal_payment .bg-orange,
body.upos-pos-3d #modal_payment .box.bg-orange,
body.upos-pos-3d #modal_payment .box-solid.bg-orange,
body.upos-pos-3d #modal_payment .box.bg-lightgray,
body.upos-pos-3d #modal_payment .payment_row.bg-lightgray {
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 189, 248, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 27, 75, 0.9)) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 14px !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d #modal_payment .bg-orange *,
body.upos-pos-3d #modal_payment .box.bg-orange *,
body.upos-pos-3d #modal_payment .box-solid.bg-orange *,
body.upos-pos-3d #modal_payment .box.bg-lightgray *,
body.upos-pos-3d #modal_payment .payment_row.bg-lightgray * {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.upos-pos-3d #modal_payment .bg-orange small,
body.upos-pos-3d #modal_payment .bg-orange .text-muted,
body.upos-pos-3d #modal_payment .card-handling-fee-box small,
body.upos-pos-3d #modal_payment .payment-base-amount-help {
  color: #cbd5e1 !important;
}

body.upos-pos-3d #modal_payment .bg-orange hr {
  border-top-color: rgba(226, 232, 240, 0.28) !important;
}

body.upos-pos-3d #modal_payment .total_quantity,
body.upos-pos-3d #modal_payment .total_payable_span,
body.upos-pos-3d #modal_payment .card_handling_fee_amount,
body.upos-pos-3d #modal_payment .total_paying,
body.upos-pos-3d #modal_payment .change_return_span,
body.upos-pos-3d #modal_payment .balance_due {
  color: #ffffff !important;
  text-shadow: 0 8px 28px rgba(56, 189, 248, 0.18);
}

body.upos-pos-3d #modal_payment .well.payment-handling-fee-box,
body.upos-pos-3d #modal_payment .payment-handling-fee-box {
  background:
    radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.9)) !important;
  border: 1px solid rgba(56, 189, 248, 0.26) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d #modal_payment .payment-handling-fee-box label,
body.upos-pos-3d #modal_payment .payment-handling-fee-box span,
body.upos-pos-3d #modal_payment .payment-handling-fee-box small {
  color: #f8fafc !important;
  opacity: 1 !important;
}

body.upos-pos-3d #modal_payment .payment-handling-fee-box .input-group-addon {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d #modal_payment .payment-fee-preset {
  background: rgba(71, 85, 105, 0.84) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #ffffff !important;
}

body.upos-pos-3d #modal_payment .payment-fee-preset:hover,
body.upos-pos-3d #modal_payment .payment-fee-preset:focus {
  background: linear-gradient(135deg, #38bdf8, #6366f1) !important;
  color: #ffffff !important;
}

/* POS table input controls: remove remaining white quantity/input areas. */
body.upos-pos-3d #pos_table .input-group,
body.upos-pos-3d #pos_table .input-number {
  background: rgba(2, 6, 23, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.26) !important;
  border-radius: 8px !important;
  overflow: hidden;
}

body.upos-pos-3d #pos_table input,
body.upos-pos-3d #pos_table input.form-control,
body.upos-pos-3d #pos_table input.pos_quantity,
body.upos-pos-3d #pos_table input.input_quantity,
body.upos-pos-3d #pos_table input.pos_unit_price,
body.upos-pos-3d #pos_table input.pos_unit_price_inc_tax,
body.upos-pos-3d #pos_table input.pos_line_total,
body.upos-pos-3d #pos_table select,
body.upos-pos-3d #pos_table select.form-control,
body.upos-pos-3d #pos_table select.sub_unit {
  background: rgba(15, 23, 42, 0.94) !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #f8fafc !important;
}

body.upos-pos-3d #pos_table input:focus,
body.upos-pos-3d #pos_table select:focus {
  background: rgba(2, 6, 23, 0.96) !important;
  border-color: rgba(56, 189, 248, 0.68) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18) !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.upos-pos-3d #pos_table .input-group-btn,
body.upos-pos-3d #pos_table .input-group-addon {
  background: rgba(30, 41, 59, 0.92) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #f8fafc !important;
}

body.upos-pos-3d #pos_table .input-group-btn .btn,
body.upos-pos-3d #pos_table .quantity-down,
body.upos-pos-3d #pos_table .quantity-up {
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
  color: #ffffff !important;
}

body.upos-pos-3d #pos_table .quantity-down:hover,
body.upos-pos-3d #pos_table .quantity-up:hover {
  background: rgba(56, 189, 248, 0.18) !important;
}

body.upos-pos-3d #pos_table .quantity-down i,
body.upos-pos-3d #pos_table .quantity-up i {
  opacity: 1 !important;
}

/* Dark-theme info popovers and tooltips: keep help text readable. */
body.upos-3d-app .popover,
body.upos-pos-3d .popover {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98)) !important;
  border: 1px solid rgba(56, 189, 248, 0.42) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42) !important;
  color: #f8fafc !important;
}

body.upos-3d-app .popover-title,
body.upos-3d-app .popover-content,
body.upos-3d-app .popover *,
body.upos-pos-3d .popover-title,
body.upos-pos-3d .popover-content,
body.upos-pos-3d .popover * {
  background: transparent !important;
  color: #f8fafc !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #f8fafc !important;
}

body.upos-3d-app .popover.top > .arrow:after,
body.upos-pos-3d .popover.top > .arrow:after {
  border-top-color: rgba(15, 23, 42, 0.98) !important;
}

body.upos-3d-app .popover.bottom > .arrow:after,
body.upos-pos-3d .popover.bottom > .arrow:after {
  border-bottom-color: rgba(15, 23, 42, 0.98) !important;
}

body.upos-3d-app .popover.left > .arrow:after,
body.upos-pos-3d .popover.left > .arrow:after {
  border-left-color: rgba(15, 23, 42, 0.98) !important;
}

body.upos-3d-app .popover.right > .arrow:after,
body.upos-pos-3d .popover.right > .arrow:after {
  border-right-color: rgba(15, 23, 42, 0.98) !important;
}

body.upos-3d-app .tooltip-inner,
body.upos-pos-3d .tooltip-inner {
  background: rgba(15, 23, 42, 0.98) !important;
  border: 1px solid rgba(56, 189, 248, 0.36) !important;
  color: #f8fafc !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #f8fafc !important;
}

body.upos-3d-app .tooltip,
body.upos-pos-3d .tooltip {
  opacity: 1 !important;
}

table#pos_table tr.imei-selection-error td {
  box-shadow: inset 0 0 0 2px rgba(244, 63, 94, 0.9) !important;
}

#receipt_section,
#receipt_section * {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
