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

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




.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: url(../img/erp.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: #317db7;
  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: ##333b33;;
    color: white;
}
.blue-header th {
	background-color: #3c8dbc;
    color: white;
}
.table-th-green th{
	background-color: #1e3648;
    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{
    .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;
}
/* Enhanced Product List Styles */
.product_list{
    padding: 8px;
    margin-bottom: 15px;
}

/* Modern Product Card */
.modern-product-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    position: relative;
}

.modern-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #3c8dbc;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.modern-product-card:hover .product-image {
    transform: scale(1.05);
}

/* Stock Status Badge */
.stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

/* متوفر - برتقالي */
.stock-available-qty {
    background: linear-gradient(135deg, #ff8c00, #ff7f00);
    color: white;
    border-color: #ff6600;
}

/* نفد المخزون - أحمر */
.stock-out-qty {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #bd2130;
}

/* غير محدود - أزرق */
.stock-unlimited {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #004085;
}

/* Legacy support */
.stock-available {
    background: linear-gradient(135deg, #ff8c00, #ff7f00);
}

.stock-out {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

/* Product Info Section */
.product-info {
    padding: 12px;
}

/* Product Name */
.product-name {
    margin-bottom: 8px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-variation {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    margin-top: 2px;
}

/* Product Details */
.product-details {
    margin-bottom: 10px;
}

.product-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
    font-size: 10px;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
}

.detail-value {
    color: #495057;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 5px;
}

/* Pricing Section */
.product-pricing {
    margin-bottom: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
}

.price-value {
    font-size: 11px;
    font-weight: 700;
    direction: ltr;
    text-align: right;
}

.price-without-vat {
    color: #17a2b8;
}

.price-with-vat {
    color: #28a745;
}

/* Tax Information Styling */
.price-row.tax-info {
    border-top: 1px solid #e9ecef;
    margin-top: 4px;
    padding-top: 4px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.price-row.tax-info .price-label {
    color: #6c757d;
    font-size: 9px;
    font-weight: 500;
}

.price-row.tax-info .tax-amount {
    color: #fd7e14;
    font-weight: 700;
    font-size: 10px;
}

/* Enhanced Price Labels */
.price-label {
    position: relative;
}

.price-label::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.price-row:hover .price-label::after {
    width: 100%;
}

/* Tax Rate Badge */
.tax-rate-badge {
    display: inline-block;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 600;
    margin-left: 2px;
    vertical-align: middle;
}

/* Price Comparison */
.price-comparison {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.price-difference {
    font-size: 8px;
    color: #6c757d;
    font-style: italic;
}

.price-difference.positive {
    color: #28a745;
}

.price-difference.negative {
    color: #dc3545;
}

/* Tax Type Indicators */
.tax-type-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
    z-index: 5;
}

.tax-type-inclusive {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.tax-type-exclusive {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.tax-type-exempt {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

/* Enhanced Product Pricing Section */
.product-pricing {
    position: relative;
    overflow: hidden;
}

.product-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3c8dbc, transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.modern-product-card:hover .product-pricing::before {
    animation-duration: 1s;
}

/* Price Breakdown Tooltip */
.price-breakdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.price-breakdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.product-pricing:hover .price-breakdown {
    opacity: 1;
}

/* Tax Rate Badge Enhancements */
.tax-rate-badge {
    position: relative;
    overflow: hidden;
}

.tax-rate-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.tax-rate-badge:hover::before {
    left: 100%;
}

/* Responsive Price Display */
@media (max-width: 768px) {
    .price-row {
        margin-bottom: 2px;
    }

    .price-label,
    .price-value {
        font-size: 9px;
    }

    .tax-rate-badge {
        font-size: 7px;
        padding: 1px 3px;
    }

    .price-breakdown {
        font-size: 9px;
        padding: 6px 8px;
    }
}

@media (max-width: 576px) {
    .price-row.tax-info {
        display: none; /* Hide tax details on very small screens */
    }

    .price-comparison {
        display: none; /* Hide price comparison on very small screens */
    }
}

/* Add to Cart Button */
.product-actions {
    margin-top: 8px;
}

.btn-add-to-cart {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* زر متوفر - أخضر */
.btn-add-to-cart.btn-available {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid #1e7e34;
}

.btn-add-to-cart.btn-available:hover {
    background: linear-gradient(135deg, #218838, #1c7430);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-add-to-cart.btn-available:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* زر نفد المخزون - أحمر */
.btn-add-to-cart.btn-out-of-stock {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: 1px solid #bd2130;
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-add-to-cart.btn-out-of-stock:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* زر البيع الزائد - برتقالي */
.btn-add-to-cart.btn-overselling {
    background: linear-gradient(135deg, #ff8c00, #ff7f00);
    color: white;
    border: 1px solid #ff6600;
    animation: pulse-overselling 2s infinite;
}

.btn-add-to-cart.btn-overselling:hover {
    background: linear-gradient(135deg, #ff7f00, #ff6600);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

/* زر الكمية القليلة - أخضر مع تحذير */
.btn-add-to-cart.btn-low-stock {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid #1e7e34;
    position: relative;
}

.btn-add-to-cart.btn-low-stock::after {
    content: '!';
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff8c00;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.btn-add-to-cart.btn-low-stock:hover {
    background: linear-gradient(135deg, #218838, #1c7430);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Default button style (fallback) */
.btn-add-to-cart:not(.btn-available):not(.btn-out-of-stock):not(.btn-overselling):not(.btn-low-stock) {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid #1e7e34;
}

/* Animation for overselling button */
@keyframes pulse-overselling {
    0% {
        background: linear-gradient(135deg, #ff8c00, #ff7f00);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    50% {
        background: linear-gradient(135deg, #ff7f00, #ff6600);
        box-shadow: 0 4px 8px rgba(255, 140, 0, 0.4);
    }
    100% {
        background: linear-gradient(135deg, #ff8c00, #ff7f00);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-products-icon {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
}

.no-products-title {
    color: #495057;
    margin-bottom: 8px;
    font-weight: 600;
}

.no-products-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

/* Legacy Support */
.product_box{
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  background-color: #fff;
  border-radius: 2px;
  padding-top: 3px;
}

.product_box .image-container{
  height: 55px;
  margin: auto;
}

.product_box .image-container img{
    height: 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;
}

/* Responsive Design for Product Cards */
@media (max-width: 1200px) {
    .modern-product-card {
        margin-bottom: 12px;
    }

    .product-image-wrapper {
        height: 100px;
    }

    .product-title {
        font-size: 12px;
    }

    .price-value {
        font-size: 10px;
    }
}

@media (max-width: 992px) {
    .product_list {
        padding: 6px;
        margin-bottom: 12px;
    }

    .modern-product-card {
        margin-bottom: 10px;
    }

    .product-image-wrapper {
        height: 90px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 11px;
        -webkit-line-clamp: 1;
    }

    .product-detail-item,
    .price-label,
    .price-value {
        font-size: 9px;
    }

    .btn-add-to-cart {
        padding: 5px 10px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .product_list {
        padding: 4px;
        margin-bottom: 10px;
    }

    .modern-product-card {
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .product-image-wrapper {
        height: 80px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        min-height: 30px;
        margin-bottom: 6px;
    }

    .product-title {
        font-size: 10px;
    }

    .product-variation {
        font-size: 9px;
    }

    .product-details {
        margin-bottom: 8px;
    }

    .product-pricing {
        padding: 6px;
        margin-bottom: 8px;
    }

    .stock-badge {
        top: 4px;
        right: 4px;
        padding: 2px 6px;
        font-size: 8px;
    }
}

@media (max-width: 576px) {
    .product_list {
        padding: 3px;
    }

    .modern-product-card {
        margin-bottom: 6px;
        border-radius: 6px;
    }

    .product-image-wrapper {
        height: 70px;
    }

    .product-info {
        padding: 6px;
    }

    .product-name {
        min-height: 25px;
        margin-bottom: 4px;
    }

    .product-title {
        font-size: 9px;
        -webkit-line-clamp: 1;
    }

    .product-variation {
        display: none; /* Hide variation on very small screens */
    }

    .product-details {
        margin-bottom: 6px;
    }

    .product-detail-item {
        margin-bottom: 2px;
        font-size: 8px;
    }

    .product-pricing {
        padding: 4px;
        margin-bottom: 6px;
    }

    .price-row {
        margin-bottom: 2px;
    }

    .price-label,
    .price-value {
        font-size: 8px;
    }

    .btn-add-to-cart {
        padding: 4px 8px;
        font-size: 9px;
    }

    .no-products-icon {
        font-size: 36px;
    }

    .no-products-title {
        font-size: 16px;
    }

    .no-products-subtitle {
        font-size: 12px;
    }
}

/* Loading and Animation Effects */
.product-loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-loading .product-image {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Button States */
.btn-add-to-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-add-to-cart.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.btn-add-to-cart.btn-loading {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    color: white !important;
}

.btn-add-to-cart.btn-error {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white !important;
}

/* Enhanced Stock Badge Styles */
.stock-badge {
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

/* Hover effects for stock badges */
.modern-product-card:hover .stock-available-qty {
    background: linear-gradient(135deg, #ff7f00, #ff6600);
    transform: scale(1.05);
}

.modern-product-card:hover .stock-out-qty {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: scale(1.05);
}

.modern-product-card:hover .stock-unlimited {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: scale(1.05);
}

/* Pulse animation for low stock */
.stock-low {
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0% {
        background: linear-gradient(135deg, #ff8c00, #ff7f00);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #ff7f00, #ff6600);
        transform: scale(1.05);
    }
    100% {
        background: linear-gradient(135deg, #ff8c00, #ff7f00);
        transform: scale(1);
    }
}

/* Button icon animations */
.btn-add-to-cart i {
    transition: transform 0.2s ease;
}

.btn-add-to-cart:hover i {
    transform: scale(1.1);
}

.btn-add-to-cart.btn-available:hover i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0) scale(1.1); }
    40% { transform: translateY(-3px) scale(1.2); }
    80% { transform: translateY(-1px) scale(1.15); }
}

/* Stock Quantity Styles */
.stock-info {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 4px 6px;
    margin: 2px 0;
    border-left: 3px solid #dee2e6;
}

.stock-quantity {
    font-weight: 700;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    text-align: center;
    display: inline-block;
    min-width: 60px;
}

/* كمية عالية - أخضر */
.stock-high {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: 1px solid #1e7e34;
}

/* كمية متوسطة - برتقالي */
.stock-medium {
    background: linear-gradient(135deg, #ff8c00, #ff7f00);
    color: white;
    border: 1px solid #ff6600;
}

/* كمية منخفضة - أحمر فاتح */
.stock-low {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    color: white;
    border: 1px solid #d63384;
    animation: pulse-warning 2s infinite;
}

/* نفد المخزون - أحمر غامق */
.stock-zero {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: 1px solid #bd2130;
}

/* غير محدود - أزرق */
.stock-unlimited-text {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 1px solid #004085;
}

@keyframes pulse-warning {
    0% {
        background: linear-gradient(135deg, #fd7e14, #e55a00);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(135deg, #dc3545, #c82333);
        transform: scale(1.05);
    }
    100% {
        background: linear-gradient(135deg, #fd7e14, #e55a00);
        transform: scale(1);
    }
}

/* Enhanced Product Details */
.product-detail-item.stock-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left-color: #6c757d;
    margin: 4px 0;
}

.product-detail-item.stock-info .detail-label {
    color: #495057;
    font-weight: 600;
}

/* Responsive adjustments for stock display */
@media (max-width: 768px) {
    .stock-quantity {
        font-size: 9px;
        padding: 1px 4px;
        min-width: 50px;
    }

    .stock-info {
        padding: 3px 4px;
        margin: 1px 0;
    }
}

/* Enhanced Product Card Borders Based on Stock */
.modern-product-card.stock-high-card {
    border-left: 4px solid #28a745;
}

.modern-product-card.stock-medium-card {
    border-left: 4px solid #ff8c00;
}

.modern-product-card.stock-low-card {
    border-left: 4px solid #fd7e14;
    animation: glow-warning 3s infinite;
}

.modern-product-card.stock-out-card {
    border-left: 4px solid #dc3545;
    opacity: 0.8;
}

.modern-product-card.stock-unlimited-card {
    border-left: 4px solid #007bff;
}

@keyframes glow-warning {
    0% { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    50% { box-shadow: 0 4px 16px rgba(253, 126, 20, 0.3); }
    100% { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
}

/* Product Image Overlay for Stock Status */
.product-image-wrapper.stock-out::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 8px 8px 0 0;
}

.product-image-wrapper.stock-low::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(253, 126, 20, 0.1);
    border-radius: 8px 8px 0 0;
}

/* Enhanced Typography for Stock Information */
.stock-quantity {
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Tooltip for Stock Information */
.stock-tooltip {
    position: relative;
    cursor: help;
}

.stock-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.stock-tooltip:hover::after {
    opacity: 1;
}

/* Print Styles for Stock Information */
@media print {
    .stock-badge {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
    }

    .stock-quantity {
        background: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
    }

    .btn-add-to-cart {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .stock-quantity {
        font-size: 8px;
        padding: 1px 3px;
        min-width: 45px;
    }
}

/* Enhanced Hover Effects */
.modern-product-card:hover .stock-badge {
    transform: scale(1.1);
}

.modern-product-card:hover .product-pricing {
    background: #e3f2fd;
    border-color: #3c8dbc;
}

/* Smooth Transitions */
.modern-product-card * {
    transition: all 0.2s ease;
}

/* Focus States for Accessibility */
.modern-product-card:focus {
    outline: 2px solid #3c8dbc;
    outline-offset: 2px;
}

.btn-add-to-cart:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .modern-product-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }

    .btn-add-to-cart {
        display: none;
    }

    .stock-badge {
        background: #000 !important;
        color: #fff !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-product-card {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }

    .modern-product-card:hover {
        border-color: #3498db;
    }

    .product-image-wrapper {
        background: #34495e;
    }

    .product-title {
        color: #ecf0f1;
    }

    .product-variation,
    .detail-label,
    .price-label {
        color: #bdc3c7;
    }

    .detail-value {
        color: #ecf0f1;
    }

    .product-pricing {
        background: #34495e;
        border-color: #4a5f7a;
    }

    .modern-product-card:hover .product-pricing {
        background: #4a5f7a;
        border-color: #3498db;
    }

    .no-products-message {
        color: #bdc3c7;
    }

    .no-products-title {
        color: #ecf0f1;
    }

    .no-products-icon {
        color: #4a5f7a;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .modern-product-card {
        border: 2px solid #000;
    }

    .modern-product-card:hover {
        border-color: #0066cc;
    }

    .product-title {
        font-weight: 700;
    }

    .btn-add-to-cart {
        border: 2px solid #000;
        font-weight: 700;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .modern-product-card,
    .product-image,
    .btn-add-to-cart,
    .modern-product-card *,
    .stock-badge {
        transition: none;
        animation: none;
    }

    .modern-product-card:hover {
        transform: none;
    }

    .modern-product-card:hover .product-image {
        transform: none;
    }

    .modern-product-card:hover .stock-badge {
        transform: none;
    }
}

/* Keyboard Navigation */
.modern-product-card.keyboard-selected {
    outline: 3px solid #3c8dbc;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(60, 141, 188, 0.2);
}

.modern-product-card:focus {
    outline: 2px solid #3c8dbc;
    outline-offset: 2px;
}

/* Search Highlighting */
mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Loading States */
.products-loading {
    position: relative;
}

.products-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.products-loading::before {
    content: '\f110';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #3c8dbc;
    animation: fa-spin 1s infinite linear;
    z-index: 11;
}

/* Enhanced Grid Layout */
.product-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
}

@media (max-width: 1200px) {
    .product-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .product-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .product-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
        padding: 8px;
    }
}

/* Quick Actions Panel */
.quick-actions-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.quick-actions-panel .btn {
    min-width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-actions-panel .checkbox-inline {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

/* Compact View */
.modern-product-card.compact-view {
    margin-bottom: 5px;
}

.modern-product-card.compact-view .product-image-wrapper {
    height: 60px;
}

.modern-product-card.compact-view .product-info {
    padding: 6px;
}

.modern-product-card.compact-view .product-name {
    min-height: 20px;
    margin-bottom: 4px;
}

.modern-product-card.compact-view .product-title {
    font-size: 10px;
    -webkit-line-clamp: 1;
}

.modern-product-card.compact-view .product-details {
    display: none;
}

.modern-product-card.compact-view .product-pricing {
    padding: 4px;
    margin-bottom: 4px;
}

.modern-product-card.compact-view .price-label,
.modern-product-card.compact-view .price-value {
    font-size: 9px;
}

.modern-product-card.compact-view .btn-add-to-cart {
    padding: 3px 6px;
    font-size: 9px;
}

/* Lazy Loading */
.product-image.lazy {
    background-color: #f8f9fa;
    background-image: none !important;
}

.product-image.lazy::before {
    content: '\f110';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #dee2e6;
    animation: fa-spin 1s infinite linear;
}

/* Product Comparison */
.compare-product {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 10px;
    color: #6c757d;
}

.compare-product:hover {
    background: #3c8dbc;
    color: white;
    border-color: #3c8dbc;
}

.compare-product.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* Comparison Panel */
.comparison-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 300px;
}

.comparison-panel h6 {
    margin: 0 0 10px 0;
    color: #495057;
    font-weight: 600;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 4px;
}

.comparison-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.comparison-item-name {
    flex: 1;
    font-size: 11px;
    color: #495057;
}

.comparison-item-remove {
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
}

/* Touch Gestures Feedback */
.touch-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.touch-feedback.show {
    opacity: 1;
}

/* Enhanced Filters */
.product-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.product-filters select,
.product-filters input {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
}

.product-filters label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 2px;
    display: block;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .quick-actions-panel {
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px;
    }

    .quick-actions-panel .btn {
        min-width: 35px;
        height: 28px;
        font-size: 11px;
    }

    .comparison-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .product-filters {
        gap: 5px;
    }

    .product-filters select,
    .product-filters input {
        font-size: 11px;
        padding: 4px 6px;
    }
}

/* RTL Support */
[dir="rtl"] .modern-product-card {
    text-align: right;
}

[dir="rtl"] .product-detail-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .price-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .stock-badge {
    right: auto;
    left: 8px;
}

[dir="rtl"] .compare-product {
    left: auto;
    right: 8px;
}

[dir="rtl"] .comparison-panel {
    right: auto;
    left: 20px;
}

/* Custom Color Themes */
.theme-green .modern-product-card:hover {
    border-color: #28a745;
}

.theme-green .btn-add-to-cart {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.theme-green .modern-product-card.keyboard-selected {
    outline-color: #28a745;
    box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.2);
}

.theme-red .modern-product-card:hover {
    border-color: #dc3545;
}

.theme-red .btn-add-to-cart {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.theme-red .modern-product-card.keyboard-selected {
    outline-color: #dc3545;
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.2);
}

.theme-purple .modern-product-card:hover {
    border-color: #6f42c1;
}

.theme-purple .btn-add-to-cart {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
}

.theme-purple .modern-product-card.keyboard-selected {
    outline-color: #6f42c1;
    box-shadow: 0 0 0 6px rgba(111, 66, 193, 0.2);
}

/* Performance Optimizations */
.modern-product-card {
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.product-image {
    will-change: transform;
    contain: layout style paint;
}

/* Accessibility Improvements */
.modern-product-card:focus-visible {
    outline: 3px solid #3c8dbc;
    outline-offset: 2px;
}

.btn-add-to-cart:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Screen Reader Support */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Data Mode */
@media (prefers-reduced-data: reduce) {
    .product-image {
        background-image: none !important;
    }

    .product-image::after {
        content: '📦';
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

/* Compatibility with existing POS styles */
.modern-product-card.product_box {
    /* Ensure compatibility with existing JavaScript selectors */
    display: block;
}

/* Enhanced states */
.modern-product-card.hovered {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.modern-product-card.selected {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.modern-product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.modern-product-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modern-product-card.loading::before {
    content: '\f110';
    font-family: 'FontAwesome';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #3c8dbc;
    animation: fa-spin 1s infinite linear;
    z-index: 11;
}

/* Search suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

/* Filter groups */
.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input {
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Loading overlay for product list */
.products-loading {
    position: relative;
    pointer-events: none;
}

.products-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
}

.products-loading::before {
    content: 'جاري التحميل...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #3c8dbc;
    z-index: 101;
    background: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Zoom states */
.modern-product-card.zoomed-in {
    transform: scale(1.1);
    z-index: 10;
}

.modern-product-card.zoomed-out {
    transform: scale(0.9);
}

/* Print optimizations */
@media print {
    .quick-actions-panel,
    .product-filters,
    .btn-add-to-cart {
        display: none !important;
    }

    .modern-product-card {
        break-inside: avoid;
        margin-bottom: 10px;
        box-shadow: none;
        border: 1px solid #000;
    }

    .product-pricing {
        background: transparent !important;
        border: 1px solid #000;
    }
}
.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;
}

/* Eng Mohamed Ali 18-4-2021 */
.sidebar-menu >li.active > a > .pull-right-container > .fa-angle-left{
    transform:rotate(-90deg) ;
    color: #ffffff;
}
.sidebar-menu >li.active > a > .pull-right-container > .fa-angle-left{
    transition: all 0.5s;
}

/* table header  */
thead>tr {
    background-color: #403e3d;
    color: #FFFFFF;
}

tfoot>tr {
    background-color: #403e3d;
    color: #FFFFFF;
}

.check_group{
    border: #0a568c 2px solid;
    border-radius: 10px;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* add for gallery*/
.main-prduct{
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    display: flex;
    padding-top: 16px;
    padding-bottom: 16px;
    justify-content: space-between;
    background-color: white;
}
.produc-div{
   display: flex;
   flex-direction: column;
   margin-bottom: 25px;
}
 .product-image2{
    box-sizing: border-box;
    position: absolute;
    padding-bottom: 1px;
    top: -1px;
    height: calc(100% + 2px);
    right: -1px;
    padding-top: 1px;
    padding-left: 1px;
    width: calc(100% + 2px);
    object-fit: cover;
    padding-right: 1px;
    transition: all ease-out 0.5s;
}
.product-image2:hover{
    width:110%;
}
 .a-product{
     padding-left: 0;
     box-sizing: border-box;
     padding-bottom: 0;
     margin-bottom: 0;
     cursor: pointer;
     display: inline;
     margin-top: 0;
     padding-top: 0;
     text-align: inherit;
     margin-right: 0;
     color: inherit;
     background-color: transparent;
     touch-action: manipulation;
     margin-left: 0;
     padding-right: 0;
     border-right: 0;
     border-top: 0;
     border-left: 0;
     border-bottom: 0;
     list-style: none;
     outline: none;
     text-decoration: none;
 }

 .product-footer{
     background-color: #e8e8e8d1;
     border-radius: 0px 0px 10px 10px;
     margin-top: 5px;
 }
.product-1{
    box-sizing: border-box;
    position: relative;
    width: 100%;
    display: flex;
  flex-direction: column;
}
.product-2{
    position: relative;
    width: 100%;
    display: flex;
    font-family: inherit;
    cursor: pointer;
    text-align: inherit;
    color: inherit;
    list-style: none;
}
.product-3 {
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius:10px;
    border:1px solid #DFD7D7;
    padding: 5px;
    position: relative;
    width: 100%;
    background-color: transparent;
    z-index: 0;
}
.product-4{
    position: relative;
    padding-bottom: 100%;
}

.product-name a {
    color: #333444;
    font-size: 14px;
    font-weight: 500;

}
.product-name {
    flex-wrap: nowrap;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-top: 4px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    border-radius: 5px 5px 0px 0px;
}

.product-name-1{
    padding-left: 0;
    padding-bottom: 3px;
    padding-top: 3px;
    width: 100%;
    padding-right: 0;
}
.product-description{

}
.product-name-2{
    padding-left: 0;
    padding-bottom: 3px;
    padding-top: 3px;
    width: 100%;
    padding-right: 0;
}

.product-name-span{
    word-break: break-word;
    color: #424242;
    font-weight: 600;
    font-size: 1.5rem;
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    display: block;
    line-height: 1.3333;
}
.product-price-span{
    text-align: center;
    word-break: break-word;
    color: #6b6b6b;
    font-weight: 600;
    font-size: 1.5rem;
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    display: block;
    line-height: 1.3333;
}
.product-price{
    flex-wrap: nowrap;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-top: 4px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    border-radius: 5px 5px 0px 0px;
}


.btn-search{
    float: left; width: 20%;
    border-left: none; /* Prevent double borders */
    padding: 4px;
    background: #2196F3;
    color: white;
    font-size: 17px;
    border: 1px solid grey;

    cursor: pointer;
}

/* loading div */

 .loader {
     margin: auto;
     border: 10px solid #280606;;
     border-radius: 50%;
     border-top: 10px solid #43aef7;
     width: 70px;
     height: 70px;
     -webkit-animation: spin 2s linear infinite; /* Safari */
     animation: spin 2s linear infinite;
 }

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden{
    opacity: 0;
    visibility: hidden;
}



/*this add by eng ali 16-11-2021*/
.content-header{
    background-color: #FFFFFF !important;
}

/*Chart of account*/
.parent{
    margin-bottom: 7px;
    padding: 14px;
    color: #369 !important;
    cursor: pointer;
    font-size: 17px;
    transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
}
.parent:hover{
    background-color: #f7f6f6;
    color: #424242 !important;
}


/**/
.bg-gray {
    color: #000;
    background-color: #d2d6de !important;
}

/* for table header color*/

.box-header {
    display: block;
    text-align: center;
    padding: 10px !important;
    border-top: 4px solid #48494F;
    background-color: #48494F;
    border-bottom: 1px solid #48494F;

    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    color: #fff;
    position: relative;
}

.box-header .box-title, .box-header > .fa, .box-header > .glyphicon, .box-header > .ion {
    display: inline-block;
    font-size: 18px;
    margin: 0;
    line-height: 1;
    color: #ffffff;
    text-align: center;
    direction: inherit;
}


/* Table style */
.mytable th {
    background-color: #48494F;
    color: white;
}

.mytable tr:nth-child(even) {
    background-color: #fffefe;
}
.mytable tr:nth-child(odd) {
    background-color:#f8f6f6;
}
.mytable table > tbody > tr > td > span {
    z-index: 3;
    color: white;
    cursor: default;
    background-color: #337ab7;
    border-color: #337ab7;
}
.mytable table > tbody > tr > td:first-child > a,
.mytable table > tbody > tr > td:first-child > span {
    margin-left: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.mytable table > tbody > tr > td:last-child > a,
.mytable table > tbody > tr > td:last-child > span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.mytable table > tbody > tr > td > a:hover,
.mytable   table > tbody > tr > td > span:hover,
.mytable table > tbody > tr > td > a:focus,
.mytable table > tbody > tr > td > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eee;
    border-color: #ddd;
}

.datepicker-switch:hover,.datepicker .next:hover,.datepicker .prev:hover,.datepicker tfoot tr th:hover{
    background: #061c29 !important;
}
.btn{
    border-radius: 5px!important;
}

.input-group-btn button{
   border-radius: 0px !important;
  }
.btn-success{
    background: #085a89  !important;
    border-color: #085a89  !important;
}
.filter-link{
    color: white !important;
}
/*end gridview */

/*Data Table modifcations*/
.table-responsive{
    overflow-x: visible;
}
.dataTables_scrollBody{
    max-height: 100%!important;
}

.btn-group > .btn {
    margin-right: 5px !important;
}


