﻿@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 {
  background-color: #243949;
  height: 100%;
  min-height: 100vh;
}

.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: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;
}
.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{
    body * {
        visibility: hidden !important;
    }
    .print_section,
    .print_section * {
        visibility: visible !important;
        color: #000 !important;
    }
    .print_section{
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm !important;
        max-width: 80mm !important;
    }
    #receipt_section.invoice {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: #fff !important;
    }
    #receipt_section .ticket {
        width: 72mm !important;
        max-width: 72mm !important;
        margin: 0 auto;
    }
    @page {
        size: 80mm auto;
        margin: 1mm 2mm;
    }
    .no-print,
    .no-print * {
        display: none !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: 8px;
    padding-right: 8px;
}
.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: 2px;
  padding-top: 3px;
}
.product_box .image-container{
  /*width: 95%;*/
  height: 55px;
  margin: auto;
  /*padding-top: 5px;*/
  
}
.product_box .image-container img{
    height: 45px;
    /*width: 45px*/
}
.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 */
}

/* Mobile POS Ã¢â‚¬â€ horizontal category scroll */
.mobile-category-scroll-wrap {
    display: none;
    margin-bottom: 8px;
}
.mobile-category-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 2px 8px;
    scroll-behavior: smooth;
}
.mobile-category-scroll::-webkit-scrollbar {
    height: 4px;
}
.mobile-category-scroll::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}
.mobile-category-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid #d2d6de;
    border-radius: 18px;
    padding: 8px 14px;
    background: #fff;
    font-size: 13px;
    line-height: 1.2;
    color: #333;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-category-chip-sub {
    font-size: 12px;
    padding-left: 12px;
}
.mobile-category-chip.active {
    background: #00a65a;
    border-color: #008d4c;
    color: #fff;
    font-weight: 600;
}
@media (max-width: 767px) {
    #product_category_div .pos-category-select-wrap {
        display: none !important;
    }
    .mobile-category-scroll-wrap {
        display: block;
    }
}
#mobile_product_suggestion_modal .mobile-category-scroll-wrap {
    display: block;
}
#mobile_product_suggestion_modal #product_category_div .pos-category-select-wrap {
    display: none !important;
}

.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;
}

/* POS mixed sale + return */
#pos_return_mode_btn.pos-return-mode-active,
#pos_return_mode_btn.btn-danger {
  background-color: #dd4b39 !important;
  border-color: #d73925 !important;
  color: #fff !important;
}
.pos-return-type-btn {
  min-height: 36px;
  padding: 6px 12px !important;
  font-size: 13px;
  line-height: 1.2;
}
.pos-return-type-btn .pos-return-type-btn-text {
  margin-left: 2px;
}
#pos_good_return_btn.pos-good-return-active,
#pos_good_return_btn.btn-success {
  background-color: #00a65a !important;
  border-color: #008d4c !important;
  color: #fff !important;
}
#pos_bad_return_btn.pos-bad-return-active,
#pos_bad_return_btn.btn-warning {
  background-color: #f39c12 !important;
  border-color: #e08e0b !important;
  color: #fff !important;
}
@media (max-width: 767px) {
  .pos-return-type-btn {
    min-height: 42px;
    padding: 8px 10px !important;
    font-size: 12px;
  }
  .pos-return-type-btn .fa-lg {
    font-size: 1.1em;
  }
}
#pos_table tr.pos-return-row td {
  background-color: #fff5f5;
  color: #c0392b;
}
#pos_table tr.pos-return-row .pos_line_total_text,
#pos_table tr.pos-return-row input.pos_line_total {
  color: #c0392b;
}
table#pos_table tbody tr.pos-return-row .pos-return-edit-price {
  background-color: #fff;
  border: 1px solid #e74c3c;
  color: #c0392b;
  font-weight: 600;
}
table#pos_table tbody tr.pos-return-row .pos-return-type-badge {
  display: inline-block;
  margin-left: 6px;
  margin-top: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  vertical-align: middle;
}
table#pos_table tbody tr.pos-return-row .pos-return-type-badge--good {
  background-color: #00a65a;
  color: #fff;
}
table#pos_table tbody tr.pos-return-row .pos-return-type-badge--bad {
  background-color: #f39c12;
  color: #fff;
}
table#pos_table tbody tr.pos-cart-item > td.pos-cell-product .pos-return-type-badge {
  display: inline-block;
  margin: 4px 10px 6px;
}
.pos-receipt-return-row td {
  color: #c0392b !important;
}
table tr.sale-view-return-row td {
  background-color: #fff5f5 !important;
  color: #c0392b;
}
table tr.sale-view-return-row .text-danger,
table tr.sale-view-return-row .display_currency.text-danger {
  color: #c0392b !important;
  font-weight: 600;
}
#pos_return_mode_btn.btn-danger {
  color: #fff;
}

/* POS table + free promo Ã¢â‚¬â€ mobile */
#pos_table tr.free_promo_bundle_row td {
  background-color: #dbeafe;
  border-top: 1px solid #93c5fd;
  vertical-align: middle;
  padding: 4px 8px;
}

.free-promo-bundle-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.3;
}

.free-promo-apply-label {
  font-weight: normal;
  margin: 0;
  white-space: nowrap;
}

.free-promo-free-badge {
  font-size: 10px;
  padding: 2px 6px;
}

.free-promo-product-name {
  color: #1e40af;
}

.free-promo-paid-line-note {
  margin-top: 4px;
  padding: 6px 8px;
  background-color: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 4px;
}

.pos-table-mobile-wrap {
  width: 100%;
  margin-bottom: 0;
}

/* POS cart card styles live in public/css/pos_cart.css */

@media (max-width: 767px) {
  .pos_product_div {
    max-height: 38vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .pos-table-mobile-wrap {
    overflow-x: visible;
    border: 0;
  }

  .mobile-qty-modal-dialog {
    width: calc(100% - 20px);
    max-width: 420px;
    margin: 12px auto;
  }

  #mobile_product_qty_modal .form-control,
  #mobile_product_qty_modal .mobile_price_select {
    min-height: 48px;
    font-size: 16px;
  }
}

.free-promo-paid-line-note .free-promo-note-product-label {
  color: #1e40af;
  font-weight: 600;
}

.free-promo-qty-label {
  margin-right: 4px;
  color: #1e40af;
  font-weight: 600;
}

.free-promo-bundle-qty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.free_promo_edit_qty.free-promo-edit-field {
  width: 72px;
  height: 28px;
  padding: 2px 6px;
  display: inline-block;
  background: #fff !important;
  border: 1px solid #3c8dbc !important;
  font-size: 13px;
  font-weight: 600;
  cursor: text;
  vertical-align: middle;
}

.free-promo-edit-row--hidden {
  display: none !important;
}

.free-promo-rule-input {
  width: 42px;
  height: 22px;
  padding: 2px 4px;
  display: inline-block;
}

.free_promo_subtotal_text {
  color: #1e40af;
}

/* Close Register Cash Count */
.close-register-cash-count {
  margin-bottom: 10px;
}

.close-register-cash-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.close-register-cash-header__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #16a34a;
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

.close-register-cash-header__icon--blue {
  background: #2563eb;
}

.close-register-cash-header__icon--amber {
  background: #d97706;
}

.close-register-cash-header__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #14532d;
}

.close-register-cash-header__help {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.45;
}

.close-register-denomination-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.close-register-denomination-table {
  margin-bottom: 0;
}

.close-register-denomination-table thead th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 10px 14px;
}

.close-register-denomination-table tbody td {
  padding: 8px 14px;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
}

.close-register-section-row td {
  padding: 10px 14px 6px !important;
  background: #fafafa;
  border-top: none !important;
}

.close-register-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.close-register-section-badge--notes {
  background: #dbeafe;
  color: #1d4ed8;
}

.close-register-section-badge--coins {
  background: #fef3c7;
  color: #b45309;
}

.close-register-denom-label {
  display: inline-block;
  min-width: 72px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.close-register-denom-label--coin {
  min-width: 52px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  font-size: 11px;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.25);
}

.close-register-denom-input {
  width: 90px !important;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  height: 36px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.close-register-denom-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.close-register-denom-subtotal {
  display: inline-block;
  min-width: 70px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.close-register-denom-row--coin .close-register-denom-subtotal {
  color: #92400e;
}

.close-register-summary-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 10px;
}

.close-register-summary-card {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.close-register-summary-card__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}

.close-register-summary-card__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.close-register-summary-card--counted {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.close-register-summary-card--counted .close-register-summary-card__value {
  color: #1d4ed8;
}

.close-register-summary-card--counted.close-register-summary-card--matched {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.close-register-summary-card--counted.close-register-summary-card--matched .close-register-summary-card__value {
  color: #15803d;
}

.close-register-summary-card--counted.close-register-summary-card--mismatch {
  border-color: #fca5a5;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
}

.close-register-summary-card--counted.close-register-summary-card--mismatch .close-register-summary-card__value {
  color: #dc2626;
}

.close-register-summary-card--expected {
  border-color: #d1fae5;
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
}

.close-register-summary-card--expected .close-register-summary-card__value {
  color: #047857;
}

.close-register-cash-formula {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #a7f3d0;
  color: #475569;
  font-size: 11px;
  line-height: 1.5;
}

.close-register-cash-formula__label {
  flex-basis: 100%;
  color: #047857;
  font-weight: 700;
}

.close-register-cash-formula strong {
  color: #0f172a;
  font-weight: 700;
}

.close-register-match-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.close-register-match-box__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.close-register-match-box--success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.close-register-match-box--danger {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.close-register-cash-mismatch-error {
  margin: 0;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.close-register-cash-mismatch-error i {
  margin-right: 6px;
}

/* Close Register - Today's Sale Invoices */
.close-register-cash-header--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-color: #bfdbfe;
}

.close-register-cash-header--amber {
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border-color: #fde68a;
}

.close-register-cash-header--green {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #a7f3d0;
}

.close-register-cash-header__icon--green {
  background: #10b981;
  color: #fff;
}

.close-register-method-subtotals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  text-align: right;
}

.close-register-cash-formula--summary {
  margin-top: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #fefce8 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.close-register-summary-panel {
  border: 2px solid #a7f3d0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
}

.close-register-summary-table-wrap {
  overflow-x: auto;
}

.close-register-summary-table {
  margin-bottom: 0;
}

.close-register-summary-table thead th.close-register-summary-th {
  border-bottom: none;
  padding: 11px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.close-register-summary-th--label {
  background: #1e293b !important;
  color: #f8fafc !important;
  min-width: 180px;
}

.close-register-summary-th--cash {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%) !important;
  color: #14532d !important;
}

.close-register-summary-th--cheque {
  background: linear-gradient(180deg, #ede9fe 0%, #ddd6fe 100%) !important;
  color: #5b21b6 !important;
}

.close-register-summary-th--bank {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%) !important;
  color: #1e40af !important;
}

.close-register-summary-th--card {
  background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%) !important;
  color: #9d174d !important;
}

.close-register-summary-th--advance {
  background: linear-gradient(180deg, #cffafe 0%, #a5f3fc 100%) !important;
  color: #0e7490 !important;
}

.close-register-summary-th--other {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  color: #334155 !important;
}

.close-register-summary-th--custom {
  background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%) !important;
  color: #c2410c !important;
}

.close-register-summary-th--credit {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%) !important;
  color: #92400e !important;
}

.close-register-summary-th--total {
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  color: #fff !important;
}

.close-register-summary-row--session td,
.close-register-summary-row--session th {
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
  border-top: 2px solid #93c5fd;
}

.close-register-summary-row--previous td,
.close-register-summary-row--previous th {
  background: linear-gradient(90deg, #fffbeb 0%, #fff7ed 100%);
  border-top: 2px solid #fcd34d;
}

.close-register-summary-row--grand th {
  background: linear-gradient(90deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border-top: 3px solid #10b981;
  font-size: 14px;
  font-weight: 800;
  color: #065f46;
  padding: 14px 12px;
}

.close-register-summary-label {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  min-width: 180px;
}

.close-register-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 8px;
  font-size: 12px;
  vertical-align: middle;
}

.close-register-summary-badge--session {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

.close-register-summary-badge--previous {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.close-register-summary-badge--grand {
  background: #10b981;
  color: #fff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.close-register-summary-cell-total {
  background: rgba(5, 150, 105, 0.08) !important;
  font-weight: 800;
  color: #047857;
}

.close-register-summary-cell-total--grand {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #fff !important;
  font-size: 15px;
}

.close-register-summary-cell-total--grand .display_currency {
  color: #fff !important;
}

.close-register-summary-na {
  color: #94a3b8;
  font-weight: 600;
}

.close-register-amt-bank {
  color: #1d4ed8;
  font-weight: 600;
}

.close-register-amt-card {
  color: #db2777;
  font-weight: 600;
}

.close-register-amt-advance {
  color: #0891b2;
  font-weight: 600;
}

.close-register-amt-other {
  color: #475569;
  font-weight: 600;
}

.close-register-amt-custom {
  color: #ea580c;
  font-weight: 600;
}

.close-register-formula-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.close-register-formula-chip--opening {
  background: #e0e7ff;
  color: #3730a3;
}

.close-register-formula-chip--cash {
  background: #dcfce7;
  color: #166534;
}

.close-register-formula-chip--refund {
  background: #fee2e2;
  color: #b91c1c;
}

.close-register-formula-chip--expense {
  background: #ffedd5;
  color: #c2410c;
}

.close-register-formula-op {
  color: #64748b;
  font-weight: 800;
  font-size: 14px;
}

.close-register-formula-value {
  color: #0f172a;
  font-size: 13px;
}

.close-register-formula-value--cash {
  color: #15803d;
}

.close-register-formula-value--refund {
  color: #dc2626;
}

.close-register-formula-value--expense {
  color: #ea580c;
}

.close-register-formula-value--result {
  color: #047857;
  font-size: 16px;
  padding: 2px 10px;
  background: #d1fae5;
  border-radius: 8px;
  border: 1px solid #6ee7b7;
}

.close-register-summary-table tfoot th {
  background: transparent;
}

.close-register-invoice-table {
  margin-bottom: 0;
}

.close-register-invoice-table thead th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 10px 14px;
  white-space: nowrap;
}

.close-register-invoice-table tbody td {
  padding: 8px 14px;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
}

.close-register-invoice-table tbody tr:hover {
  background: #f8fafc;
}

.close-register-invoice-no {
  display: inline-block;
  padding: 3px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.close-register-amt-cash {
  color: #15803d;
  font-weight: 600;
}

.close-register-amt-credit {
  color: #b45309;
  font-weight: 600;
}

.close-register-amt-cheque {
  color: #7c3aed;
  font-weight: 600;
}

.close-register-invoice-total-row th {
  background: #f1f5f9;
  border-top: 2px solid #e2e8f0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

@media (max-width: 991px) {
  .close-register-summary-stack {
    margin-top: 16px;
    position: static;
  }

  .close-register-summary-card__value {
    font-size: 20px;
  }
}

/* Register Good / Bad Return sections */
.register-return-section {
  margin: 18px 0 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.register-return-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.register-return-section__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.register-return-section__titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.register-return-section__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.register-return-section__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.register-return-table {
  margin-bottom: 0 !important;
  background: #fff;
}

.register-return-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom-width: 1px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.register-return-table tbody td {
  vertical-align: middle !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

.register-return-table__total th {
  font-weight: 700;
  border-top: 2px solid transparent !important;
}

/* Good Return â€” green */
.register-return-section--good {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 48%);
}

.register-return-section--good .register-return-section__header {
  background: linear-gradient(90deg, #00a65a 0%, #16a34a 100%);
}

.register-return-section--good .register-return-section__icon {
  background: rgba(255, 255, 255, 0.22);
}

.register-return-section--good .register-return-section__title {
  color: #fff;
}

.register-return-section--good .register-return-section__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.register-return-section--good .register-return-table thead th {
  background: #ecfdf5;
  color: #166534;
  border-bottom-color: #bbf7d0 !important;
}

.register-return-section--good .register-return-table tbody tr:nth-child(even) td {
  background: #f7fef9;
}

.register-return-section--good .register-return-table__total th {
  background: #dcfce7;
  color: #14532d;
  border-top-color: #86efac !important;
}

/* Remaining Good Return on vehicle — blue */
.register-return-section--remaining-gr {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 48%);
}

.register-return-section--remaining-gr .register-return-section__header {
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
}

.register-return-section--remaining-gr .register-return-section__icon {
  background: rgba(255, 255, 255, 0.22);
}

.register-return-section--remaining-gr .register-return-section__title {
  color: #fff;
}

.register-return-section--remaining-gr .register-return-section__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.register-return-section--remaining-gr .register-return-section__help {
  margin: 0;
  padding: 8px 12px;
  color: #1e3a8a;
  font-size: 12px;
  background: #dbeafe;
  border-bottom: 1px solid #bfdbfe;
}

.register-return-section--remaining-gr .register-return-table thead th {
  background: #eff6ff;
  color: #1e40af;
  border-bottom-color: #bfdbfe !important;
}

.register-return-section--remaining-gr .register-return-table tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.register-return-section--remaining-gr .register-return-table__total th {
  background: #dbeafe;
  color: #1e3a8a;
  border-top-color: #93c5fd !important;
}

/* Bad Return â€” amber/orange */
.register-return-section--bad {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 48%);
}

.register-return-section--bad .register-return-section__header {
  background: linear-gradient(90deg, #f39c12 0%, #ea580c 100%);
}

.register-return-section--bad .register-return-section__icon {
  background: rgba(255, 255, 255, 0.22);
}

.register-return-section--bad .register-return-section__title {
  color: #fff;
}

.register-return-section--bad .register-return-section__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.register-return-section--bad .register-return-table thead th {
  background: #fff7ed;
  color: #9a3412;
  border-bottom-color: #fed7aa !important;
}

.register-return-section--bad .register-return-table tbody tr:nth-child(even) td {
  background: #fffaf5;
}

.register-return-section--bad .register-return-table__total th {
  background: #ffedd5;
  color: #7c2d12;
  border-top-color: #fdba74 !important;
}

@media print {
  .register-return-section {
    box-shadow: none;
    break-inside: avoid;
  }

  .register-return-section--good .register-return-section__header,
  .register-return-section--bad .register-return-section__header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}


/* =========================================================
   VYORA-style Admin Theme — scoped to body.admin-theme ONLY
   (does not affect POS, auth, guest, or other layouts)
   ========================================================= */
body.admin-theme {
  --vy-font: "DM Sans", "Segoe UI", sans-serif;
  --vy-display: "Outfit", "DM Sans", sans-serif;
  --vy-navy: #1e3a8a;
  --vy-navy-deep: #172554;
  --vy-blue: #2563eb;
  --vy-purple: #7c3aed;
  --vy-bg: #eef1f6;
  --vy-ink: #0f172a;
  --vy-muted: #64748b;
  --vy-radius: 14px;
  --vy-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  font-family: var(--vy-font) !important;
  color: #334155 !important;
  background: var(--vy-bg) !important;
}

body.admin-theme h1,
body.admin-theme h2,
body.admin-theme h3,
body.admin-theme h4,
body.admin-theme .logo-lg,
body.admin-theme .content-header > h1 {
  font-family: var(--vy-display) !important;
  letter-spacing: -0.02em;
  color: var(--vy-ink) !important;
}

body.admin-theme .content-wrapper {
  background: #eef1f6 !important;
  color: #334155 !important;
}

body.admin-theme .main-footer {
  background: transparent !important;
  color: var(--vy-muted) !important;
  border-top: 0 !important;
}

/* Logo */
body.admin-theme .main-header .logo,
body.admin-theme .main-sidebar .logo {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%) !important;
  color: #fff !important;
  border-right: 0 !important;
  font-family: var(--vy-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}

/* Navbar */
body.admin-theme .main-header .navbar {
  background-color: #1e3a8a !important;
  background-image: linear-gradient(90deg, #172554 0%, #1e3a8a 55%, #1e40af 100%) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.25);
  border-bottom: 0 !important;
}

body.admin-theme .main-header .navbar .nav > li > a,
body.admin-theme .main-header .navbar .sidebar-toggle {
  border-radius: 10px !important;
  color: #fff !important;
}

body.admin-theme .main-header .navbar .nav > li > a:hover,
body.admin-theme .main-header .navbar .sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

body.admin-theme .main-header li.user-header,
body.admin-theme.skin-black .main-header,
body.admin-theme.skin-black-light .main-header {
  background: #1e3a8a !important;
  color: #fff !important;
}

body.admin-theme.skin-black .main-header .navbar .nav > li > a,
body.admin-theme.skin-black-light .main-header .navbar .nav > li > a,
body.admin-theme.skin-black .main-header .navbar > .sidebar-toggle,
body.admin-theme.skin-black-light .main-header .navbar > .sidebar-toggle {
  color: #fff !important;
}

body.admin-theme .main-header .btn-success.dropdown-toggle,
body.admin-theme .main-header .btn-group > .btn-success {
  background: #2563eb !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Sidebar */
body.admin-theme .main-sidebar {
  background: #f3f4f6 !important;
  border-right: 1px solid #e5e7eb !important;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.04) !important;
}

body.admin-theme .sidebar-menu > li > a,
body.admin-theme .sidebar-menu .treeview-menu > li > a {
  color: #475569 !important;
}

body.admin-theme .sidebar-menu li.header {
  color: #94a3b8 !important;
  background: transparent !important;
}

body.admin-theme .sidebar-menu > li > a {
  border-radius: 12px !important;
  margin: 4px 12px !important;
  padding: 11px 14px !important;
  transition: all 0.2s ease !important;
}

body.admin-theme .sidebar-menu .treeview-menu > li > a {
  border-radius: 10px !important;
  margin: 2px 12px 2px 18px !important;
}

body.admin-theme .sidebar-menu > li > .treeview-menu {
  background: #eceef2 !important;
}

body.admin-theme .sidebar-menu > li:hover > a,
body.admin-theme .sidebar-menu > li.menu-open > a {
  background: #e5e7eb !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.admin-theme .sidebar-menu > li.active > a {
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28) !important;
  font-weight: 700 !important;
}

body.admin-theme .sidebar-menu > li.active > a > .fa,
body.admin-theme .sidebar-menu > li.active > a > .glyphicon,
body.admin-theme .sidebar-menu > li.active > a > .ion,
body.admin-theme .sidebar-menu > li.active > a > .fas,
body.admin-theme .sidebar-menu > li.active > a > .far {
  color: #fff !important;
}

/* Content header band */
body.admin-theme .content-wrapper .content-header-custom {
  background-color: #1e3a8a !important;
  background-image: linear-gradient(135deg, #172554 0%, #1e3a8a 50%, #1e40af 100%) !important;
  border-radius: 0;
  box-shadow: none;
  color: #fff !important;
  padding: 20px 20px 220px !important;
}

body.admin-theme .content-header-custom h1,
body.admin-theme .content-header-custom small,
body.admin-theme .content-header-custom a {
  color: #fff !important;
}

body.admin-theme .content-header-custom h1 {
  font-size: 28px !important;
  font-weight: 700 !important;
}

body.admin-theme .content-wrapper .content-custom {
  margin-top: -210px;
}

body.admin-theme .content-custom > .row:first-of-type .form-control,
body.admin-theme .content-custom > .row:first-of-type .select2-container--default .select2-selection--single {
  background: rgba(255, 255, 255, 0.95) !important;
}

body.admin-theme #dashboard_date_filter {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.admin-theme #dashboard_date_filter:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

/* Dashboard gradient cards */
body.admin-theme .info-box.info-box-new-style,
body.admin-theme .info-box-new-style {
  position: relative !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 16px !important;
  padding: 18px 16px !important;
  min-height: 110px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
  transform: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
  background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}

body.admin-theme .info-box-new-style:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24) !important;
}

body.admin-theme .info-box-new-style::before,
body.admin-theme .info-box-new-style::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
body.admin-theme .info-box-new-style::before {
  width: 120px;
  height: 120px;
  right: -30px;
  bottom: -40px;
}
body.admin-theme .info-box-new-style::after {
  width: 70px;
  height: 70px;
  right: 20px;
  bottom: -20px;
  background: rgba(255, 255, 255, 0.08);
}

body.admin-theme .info-box-new-style .info-box-icon {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 52px !important;
  height: 52px !important;
  line-height: 52px !important;
  box-shadow: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.admin-theme .info-box-new-style .info-box-icon i,
body.admin-theme .info-box-new-style .info-box-icon .fa,
body.admin-theme .info-box-new-style .info-box-icon .fas,
body.admin-theme .info-box-new-style .info-box-icon .ion {
  color: #fff !important;
  font-size: 22px !important;
}

body.admin-theme .info-box-new-style .info-box-content {
  margin-left: 60px !important;
  padding: 4px 0 4px 8px !important;
}

body.admin-theme .info-box-new-style .info-box-text,
body.admin-theme .info-box-new-style .info-box-number,
body.admin-theme .info-box-new-style .text-muted,
body.admin-theme .info-box-new-style p {
  color: #fff !important;
  position: relative;
  z-index: 1;
}

body.admin-theme .info-box-new-style .info-box-text {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  opacity: 0.95;
}

body.admin-theme .info-box-new-style .info-box-number {
  font-family: var(--vy-display) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

body.admin-theme .info-box-new-style.dash-card-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb) !important; }
body.admin-theme .info-box-new-style.dash-card-green { background: linear-gradient(135deg, #22c55e, #16a34a) !important; }
body.admin-theme .info-box-new-style.dash-card-orange { background: linear-gradient(135deg, #f59e0b, #ea580c) !important; }
body.admin-theme .info-box-new-style.dash-card-red { background: linear-gradient(135deg, #f43f5e, #e11d48) !important; }
body.admin-theme .info-box-new-style.dash-card-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; }
body.admin-theme .info-box-new-style.dash-card-amber { background: linear-gradient(135deg, #fb923c, #f97316) !important; }
body.admin-theme .info-box-new-style.dash-card-teal { background: linear-gradient(135deg, #14b8a6, #0f766e) !important; }
body.admin-theme .info-box-new-style.dash-card-magenta { background: linear-gradient(135deg, #ec4899, #db2777) !important; }

/* Boxes / cards inside admin */
body.admin-theme .box,
body.admin-theme .nav-tabs-custom {
  border: 1px solid #dbeafe !important;
  border-radius: 16px !important;
  box-shadow: var(--vy-shadow) !important;
  background: #fff !important;
  color: #334155 !important;
  overflow: hidden;
}

body.admin-theme .box {
  border-top: 3px solid #2563eb !important;
}

body.admin-theme .box.box-primary { border-top-color: #2563eb !important; }
body.admin-theme .box.box-success { border-top-color: #22c55e !important; }
body.admin-theme .box.box-warning { border-top-color: #f59e0b !important; }
body.admin-theme .box.box-danger { border-top-color: #ef4444 !important; }
body.admin-theme .box.box-info { border-top-color: #06b6d4 !important; }

body.admin-theme .box .box-header {
  border-bottom: 1px solid #eef2f7 !important;
  color: var(--vy-ink) !important;
}

body.admin-theme .box .box-header .box-title {
  font-family: var(--vy-display) !important;
  font-weight: 700;
  color: var(--vy-ink) !important;
}

body.admin-theme .box .box-body,
body.admin-theme .box .box-footer,
body.admin-theme .nav-tabs-custom > .tab-content {
  color: #334155 !important;
}

body.admin-theme .box-footer,
body.admin-theme .box .box-footer {
  background: #f8fafc !important;
  border-top-color: #eef2f7 !important;
}

/* Buttons — admin only */
body.admin-theme .btn {
  border-radius: 10px !important;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
body.admin-theme .btn:hover { transform: translateY(-1px); }

body.admin-theme .btn-default {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

body.admin-theme .btn-primary {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}
body.admin-theme .btn-primary:hover,
body.admin-theme .btn-primary:focus,
body.admin-theme .btn-primary:active {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #fff !important;
}

body.admin-theme .btn-success {
  background: #14b8a6 !important;
  border-color: #14b8a6 !important;
  color: #fff !important;
}
body.admin-theme .btn-info {
  background: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #fff !important;
}
body.admin-theme .btn-warning {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
}
body.admin-theme .btn-danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

/* Forms */
body.admin-theme .form-control,
body.admin-theme .select2-container--default .select2-selection--single,
body.admin-theme .select2-container--default .select2-selection--multiple {
  border-radius: 10px !important;
  border-color: #cbd5e1 !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

body.admin-theme .form-control:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

body.admin-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a !important;
}

/* Tables */
body.admin-theme .table > thead > tr > th,
body.admin-theme .box-table thead th,
body.admin-theme table.dataTable thead th {
  background: #1e293b !important;
  color: #fff !important;
  border-bottom: 0 !important;
  font-weight: 600 !important;
}

body.admin-theme .table > thead > tr > th {
  border-color: #1e293b !important;
}

body.admin-theme .table > tbody > tr > td,
body.admin-theme .table > tbody > tr > th {
  color: #334155 !important;
  border-color: #eef2f7 !important;
  background: #fff;
}

body.admin-theme .table-striped > tbody > tr:nth-of-type(odd) > td,
body.admin-theme table.dataTable.stripe tbody tr.odd,
body.admin-theme table.dataTable.display tbody tr.odd {
  background-color: #f8fafc !important;
}

body.admin-theme .table-hover > tbody > tr:hover > td {
  background-color: #eff6ff !important;
}

/* Modals / dropdowns */
body.admin-theme .modal-content {
  border: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.2) !important;
  overflow: hidden;
}

body.admin-theme .modal-header {
  background: linear-gradient(90deg, #172554, #1e3a8a);
  color: #fff;
  border-bottom: 0;
}

body.admin-theme .modal-header .close {
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
}

body.admin-theme .modal-title {
  font-family: var(--vy-display) !important;
  font-weight: 600;
  color: #fff !important;
}

body.admin-theme .modal-footer {
  background: #f8fafc;
  border-top-color: #eef2f7 !important;
}

body.admin-theme .dropdown-menu {
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
}

body.admin-theme .dropdown-menu > li > a,
body.admin-theme .dropdown-item {
  color: #334155 !important;
}

body.admin-theme .dropdown-menu > li > a:hover,
body.admin-theme .dropdown-item:hover {
  background: #eff6ff !important;
  color: #1e40af !important;
}

body.admin-theme .label,
body.admin-theme .badge {
  border-radius: 999px !important;
  font-weight: 600;
  padding: 0.4em 0.7em;
}

body.admin-theme .label-primary { background: #2563eb !important; }
body.admin-theme .label-info { background: #0ea5e9 !important; }
body.admin-theme .label-success { background: #14b8a6 !important; }
body.admin-theme .label-warning { background: #f59e0b !important; color: #fff !important; }
body.admin-theme .label-danger { background: #ef4444 !important; }

body.admin-theme .nav-tabs-custom > .nav-tabs {
  background: #f8fafc;
  border-bottom-color: #eef2f7;
}

body.admin-theme .nav-tabs-custom > .nav-tabs > li.active {
  border-top-color: #2563eb !important;
}

body.admin-theme .nav-tabs-custom > .nav-tabs > li.active > a {
  color: #1e40af !important;
  font-weight: 700;
}

body.admin-theme .pagination > li > a,
body.admin-theme .pagination > li > span {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 8px !important;
  margin: 0 2px;
}

body.admin-theme .pagination > .active > a,
body.admin-theme .pagination > .active > span,
body.admin-theme .pagination > .active > a:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

body.admin-theme a { color: #2563eb; }
body.admin-theme a:hover { color: #1d4ed8; }
body.admin-theme .text-muted { color: #64748b !important; }

body.admin-theme .dataTables_wrapper .dataTables_length,
body.admin-theme .dataTables_wrapper .dataTables_filter,
body.admin-theme .dataTables_wrapper .dataTables_info,
body.admin-theme .dataTables_wrapper .dataTables_paginate {
  color: #64748b !important;
}

body.admin-theme input[type="search"],
body.admin-theme .dataTables_filter input {
  background: #fff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
}

@keyframes vy-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.admin-theme .content-custom > .row,
body.admin-theme .content > .row {
  animation: vy-fade-up 0.4s ease both;
}

@media (max-width: 767px) {
  body.admin-theme .content-wrapper .content-header-custom {
    padding: 16px 16px 160px !important;
  }
  body.admin-theme .sidebar-menu > li > a {
    margin: 2px 8px !important;
  }
}

/* Clean Stock Modal — mobile responsive */
.clean-stock-modal-dialog {
  width: auto;
  max-width: 960px;
  margin: 16px auto;
}

.clean-stock-modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.clean-stock-modal-title {
  font-size: 18px;
  font-weight: 700;
  padding-right: 28px;
  line-height: 1.35;
}

.clean-stock-modal-help {
  font-size: 13px;
  margin-bottom: 14px;
}

.clean-stock-actions-row {
  margin-top: 4px;
  margin-bottom: 8px;
}

.clean-stock-loading {
  padding: 12px;
}

.clean-stock-table-wrap {
  margin-top: 8px;
  -webkit-overflow-scrolling: touch;
}

.clean-stock-product-table {
  min-width: 880px;
  margin-bottom: 0;
}

.clean-stock-product-table--colorful {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.clean-stock-product-table--colorful thead th {
  border: none !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 8px;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-product {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #f8fafc;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-stock {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #eff6ff;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-good-return {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #f0fdf4;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-bad-return {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fef2f2;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-van-return {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fffbeb;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-qty {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #fff7ed;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-pcs {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #f5f3ff;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-price {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: #ecfeff;
}

.clean-stock-product-table--colorful thead th.clean-stock-col-subtotal {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #f0fdfa;
}

.clean-stock-product-table--colorful tbody tr:nth-child(even) {
  background: #f8fafc;
}

.clean-stock-product-table--colorful tbody tr:nth-child(odd) {
  background: #ffffff;
}

.clean-stock-product-table--colorful tbody tr:hover {
  background: #eef2ff;
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-stock {
  background: rgba(37, 99, 235, 0.06);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-good-return {
  background: rgba(22, 163, 74, 0.08);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-bad-return {
  background: rgba(220, 38, 38, 0.06);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-bad-return.clean-stock-has-bad-return {
  background: rgba(220, 38, 38, 0.28);
  box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.45);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-bad-return.clean-stock-has-bad-return .clean-stock-bad-return-qty {
  border-color: #b91c1c;
  background: #fecaca;
  color: #991b1b;
  font-weight: 700;
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-bad-return.clean-stock-has-bad-return small {
  color: #b91c1c;
  font-weight: 600;
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-van-return {
  background: rgba(217, 119, 6, 0.06);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-van-return.clean-stock-has-van-return {
  background: rgba(217, 119, 6, 0.22);
  box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.4);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-van-return.clean-stock-has-van-return .clean-stock-van-return-qty {
  border-color: #b45309;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-van-return.clean-stock-has-van-return small {
  color: #b45309;
  font-weight: 600;
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-qty {
  background: rgba(234, 88, 12, 0.06);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-pcs,
.clean-stock-product-table--colorful tbody td.stock-transfer-total-pcs {
  background: rgba(124, 58, 237, 0.06);
}

.clean-stock-product-table--colorful tbody td.clean-stock-col-price,
.clean-stock-product-table--colorful tbody td.clean-stock-col-subtotal {
  background: rgba(13, 148, 136, 0.05);
}

.clean-stock-product-table--colorful .clean-stock-stock-value {
  color: #1d4ed8;
  font-size: 14px;
}

.clean-stock-product-table--colorful .stock_transfer_total_pcs_display {
  color: #6d28d9;
  font-size: 14px;
}

.clean-stock-product-table--colorful .clean-stock-qty-input {
  border-width: 2px;
  font-weight: 600;
}

.clean-stock-product-table--colorful .clean-stock-bad-return-qty {
  border-color: #fca5a5;
  background: #fff1f2;
}

.clean-stock-product-table--colorful .clean-stock-van-return-qty {
  border-color: #fcd34d;
  background: #fffbeb;
}

.clean-stock-product-table--colorful .clean-stock-van-return-qty:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

.clean-stock-product-table--colorful .clean-stock-bad-return-qty:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.clean-stock-product-table--colorful .clean-stock-transfer-qty,
.clean-stock-product-table--colorful .clean-stock-col-qty .case_qty_input,
.clean-stock-product-table--colorful .clean-stock-col-qty .loose_qty_input {
  border-color: #fdba74;
  background: #fff7ed;
}

.clean-stock-product-table--colorful .clean-stock-transfer-qty:focus,
.clean-stock-product-table--colorful .clean-stock-col-qty .case_qty_input:focus,
.clean-stock-product-table--colorful .clean-stock-col-qty .loose_qty_input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}

.clean-stock-product-table--colorful tr.clean-stock-row-unbalanced {
  background: #fffbeb !important;
  box-shadow: inset 4px 0 0 #f59e0b;
}

.clean-stock-product-table--colorful tfoot .clean-stock-total-row {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #f0fdfa;
}

.clean-stock-product-table--colorful tfoot .clean-stock-total-row td {
  border: none !important;
  font-size: 16px;
  padding: 12px 8px;
}

.clean-stock-return-badge {
  display: inline-block;
  min-width: 48px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.clean-stock-col-good-return,
.clean-stock-col-bad-return,
.clean-stock-col-van-return {
  white-space: nowrap;
}

.clean-stock-product-table thead th {
  white-space: nowrap;
  font-size: 12px;
  vertical-align: middle;
}

.clean-stock-product-table tbody td {
  vertical-align: middle;
  font-size: 13px;
}

.clean-stock-product-table .form-control {
  min-width: 72px;
}

.clean-stock-total-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 15px;
}

.clean-stock-scroll-hint {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 12px;
  color: #64748b;
}

.clean-stock-balance-hint {
  margin-top: -4px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #eff6ff 0%, #f0fdf4 50%, #fff7ed 100%);
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  font-size: 13px;
  color: #334155;
}

.clean-stock-open-btn {
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}

.remaining-location-stock-table-wrap {
  -webkit-overflow-scrolling: touch;
}

.remaining-location-stock-table {
  min-width: 420px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .clean_stock_modal .modal-dialog.clean-stock-modal-dialog,
  .clean_stock_modal .clean-stock-modal-dialog {
    width: calc(100% - 12px);
    max-width: none;
    margin: 6px auto;
  }

  .clean_stock_modal .clean-stock-modal-content {
    max-height: calc(100vh - 12px);
    display: flex;
    flex-direction: column;
  }

  .clean_stock_modal .clean-stock-modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .clean_stock_modal .clean-stock-modal-header,
  .clean_stock_modal .clean-stock-modal-footer {
    flex-shrink: 0;
  }

  .clean_stock_modal .clean-stock-modal-header {
    padding: 12px 14px;
  }

  .clean_stock_modal .clean-stock-modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px;
  }

  .clean_stock_modal .clean-stock-modal-footer .btn {
    width: 100%;
    min-height: 44px;
    margin: 0;
    font-size: 15px;
  }

  .clean_stock_modal .btn-clean-stock-load {
    min-height: 44px;
    font-size: 15px;
    padding: 10px 16px;
  }

  .clean_stock_modal .form-group {
    margin-bottom: 12px;
  }

  .clean_stock_modal .select2-container {
    width: 100% !important;
  }

  .clean_stock_modal .clean-stock-product-table {
    min-width: 760px;
    font-size: 12px;
  }

  .clean_stock_modal .clean-stock-product-table .form-control {
    font-size: 16px;
    min-height: 40px;
    padding: 8px 10px;
  }

  .clean_stock_modal .clean-stock-total-row .hidden-xs {
    display: none !important;
  }

  .clean_stock_modal .clean-stock-total-label {
    display: table-cell !important;
  }

  .clean_stock_modal .clean-stock-total-wrap {
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
  }

  .close_register_modal .modal-dialog.close-register-modal-dialog {
    width: calc(100% - 12px);
    max-width: none;
    margin: 6px auto;
  }

  .close_register_modal .modal-content {
    max-height: calc(100vh - 12px);
    display: flex;
    flex-direction: column;
  }

  .close_register_modal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .close_register_modal .modal-title {
    font-size: 16px;
    line-height: 1.35;
    padding-right: 24px;
  }

  .close_register_modal .modal-footer {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    padding: 12px;
  }

  .close_register_modal .modal-footer .btn {
    width: 100%;
    min-height: 44px;
    margin: 0;
  }

  .close_register_modal .close-register-cash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .close_register_modal .close-register-summary-stack {
    margin-top: 12px;
  }

  .close_register_modal .close-register-denomination-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .close_register_modal .close-register-denomination-table {
    min-width: 320px;
  }

  .remaining-location-stock-table {
    min-width: 360px;
  }

  .clean-stock-trigger-wrap {
    margin: 12px 0 0;
  }
}

@media (max-width: 480px) {
  .clean_stock_modal .clean-stock-modal-title {
    font-size: 16px;
  }

  .clean_stock_modal .clean-stock-product-table {
    min-width: 680px;
  }

  .close_register_modal .close-register-invoice-table {
    min-width: 520px;
  }
}

/* ========== Cheque Details Panel ========== */
.cheque-details-panel {
  --cheque-accent: #0f766e;
  --cheque-accent-soft: #ccfbf1;
  --cheque-accent-mid: #14b8a6;
  --cheque-border: #99f6e4;
  --cheque-bg: linear-gradient(145deg, #f0fdfa 0%, #ecfeff 55%, #f8fafc 100%);
  margin: 0 0 8px;
  border: 1px solid var(--cheque-border);
  border-radius: 10px;
  background: var(--cheque-bg);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
  overflow: hidden;
}

.cheque-details-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #0f766e 0%, #0d9488 60%, #0891b2 100%);
  color: #fff;
}

.cheque-details-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
}

.cheque-details-panel__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cheque-details-panel__body {
  padding: 10px 12px 8px;
}

.cheque-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}

.cheque-details-grid .cheque-field:nth-child(4),
.cheque-details-grid .cheque-field:nth-child(5) {
  grid-column: span 1;
}

/* Second row: date + branch share space evenly (2 of 3 cols each visually balanced) */
.cheque-details-grid .cheque-field:nth-child(4) {
  grid-column: 1 / 2;
}

.cheque-details-grid .cheque-field:nth-child(5) {
  grid-column: 2 / 4;
}

.cheque-field {
  margin: 0;
  min-width: 0;
}

.cheque-field > label {
  display: block;
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 700;
  color: #134e4a;
  line-height: 1.2;
}

.cheque-field .input-group {
  display: flex;
  width: 100%;
  margin: 0;
}

.cheque-field .input-group-addon {
  background: var(--cheque-accent-soft);
  border-color: var(--cheque-border);
  color: var(--cheque-accent);
  padding: 5px 8px;
  font-size: 12px;
  width: auto;
}

.cheque-field .form-control {
  height: 32px;
  padding: 4px 8px;
  font-size: 13px;
  border-color: #a7f3d0;
  background: #fff;
  box-shadow: none;
}

.cheque-field .form-control:focus {
  border-color: var(--cheque-accent-mid);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.cheque-field .form-control[readonly] {
  background: #f0fdfa;
  color: #115e59;
  font-weight: 600;
}

.cheque-field .cheque-bank-group,
.cheque-field .cheque-branch-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.cheque-field .cheque-bank-group > select.form-control,
.cheque-field .cheque-branch-group > select.form-control {
  flex: 1 1 auto;
  width: 1% !important;
  min-width: 0;
}

.cheque-field .cheque-bank-group .select2-container,
.cheque-field .cheque-branch-group .select2-container {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

.cheque-field .select2-container--default .select2-selection--single {
  height: 32px;
  border-color: #a7f3d0;
  border-radius: 0;
  background: #fff;
}

.cheque-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 30px;
  padding-left: 8px;
  font-size: 13px;
  color: #134e4a;
}

.cheque-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 30px;
}

.cheque-field .select2-container--default.select2-container--focus .select2-selection--single,
.cheque-field .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--cheque-accent-mid);
}

.cheque-field .input-group-btn {
  width: auto;
  font-size: 0;
}

.cheque-field .btn-cheque-add {
  height: 32px;
  width: 34px;
  padding: 0;
  border: 1px solid var(--cheque-accent);
  background: var(--cheque-accent);
  color: #fff;
  border-radius: 0 4px 4px 0;
  box-shadow: none;
  line-height: 30px;
}

.cheque-field .btn-cheque-add:hover,
.cheque-field .btn-cheque-add:focus {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.cheque-field .input-group .form-control:first-child,
.cheque-field .input-group-addon:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.cheque-field .input-group .form-control:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

@media (max-width: 991px) {
  .cheque-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cheque-details-grid .cheque-field:nth-child(4),
  .cheque-details-grid .cheque-field:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 575px) {
  .cheque-details-grid {
    grid-template-columns: 1fr;
  }

  .cheque-details-panel__body {
    padding: 8px 10px;
  }
}

/* Sticky detailed error toasts (Sinhala / multi-line) */
#toast-container > div {
    width: 420px;
    max-width: 92vw;
    padding: 14px 14px 14px 50px;
    white-space: normal;
    word-break: break-word;
    opacity: 1 !important;
}
#toast-container > .toast-error,
#toast-container > .toast-warning {
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
#toast-container .toast-close-button {
    font-size: 18px;
    font-weight: bold;
    right: 8px;
    top: 4px;
}
#toast-container .toast-message {
    font-size: 13px;
    line-height: 1.45;
}
