.loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(21, 21, 21, 0.75);
  z-index: 20002;
  display: block;
}

.loader2 {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #2f4050;
  width: 100px;
  height: 100px;
  position: absolute;
  left: 40%;
  top: 31%;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

.swal2-container {
  z-index: 10000000;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#blah1 {
  cursor: pointer;
  object-fit: contain;
  height: 150px;
  border-radius: 50%;
  /* border: 1px solid; */
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .4);

}

.product_summary tbody tr {
  cursor: pointer;
}

.quantity,
.discount {
  width: 100%;
}

.scrollable {
  overflow-y: auto;
  min-height: 250px;
  max-height: calc(100vh - 600px);

}

div.dt-buttons {
  text-align: right;
}

div.dt-button a {
  margin-left: 12px;
}

.dt-buttons {
  text-align: right;
}

.modalcontent2 .modal-content {
  width: 140%;
}

/*! CSS Used from: https://demo4.onlineoffice.live/AdminLTE/plugins/pace/pace.css?v=42 */
.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: #589dd7;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 100%;
  width: 100%;
  height: 3px;
}

/*! CSS Used from: https://demo4.onlineoffice.live/bootstrap/css/bootstrap.min.css?v=42 */
@media print {

  *,
  :after,
  :before {
    color: #000 !important;
    text-shadow: none !important;
    background: 0 0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
  }
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

:after,
:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/*! CSS Used from: https://demo4.onlineoffice.live/plugins/calculator/calculator.css?v=42 */
*:focus {
  outline: 0 !important;
}

/*! CSS Used from: https://demo4.onlineoffice.live/css/app.css?v=42 */
/* ::-webkit-scrollbar{width:7px;} */
/* ::-webkit-scrollbar-track{background:#f1f1f1;} */
/* ::-webkit-scrollbar-thumb{background:#888;} */
/* ::-webkit-scrollbar-thumb:hover{background:#555;} */
@media print {
  ::-webkit-scrollbar {
    display: none !important;
  }
}

.dataTables_scrollHeadInner,
.dataTables_scrollBody table {
  width: 100% !important;
}

.logo-img {
  width: 35%;
}

.single-page {
  height: 100vh;
}

.installler {
  height: 130vh;
}

.sidebar-container {
  height: 100vh;
  overflow-y: auto !important;
  /* Ensure scrollbar appears only when needed */
  position: fixed;
  z-index: 10;
  background-color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f8f9fa;
}

::-webkit-scrollbar-thumb {
  background-color: #999999;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666666;
}

.sidebar-items .nav-link {
  color: #000;
}

.sidebar-items .nav-link:hover,
.sidebar-items .nav-link.active {
  /* background-color: #f8f9fa; */
  font-weight: bold;
}

.sidebar-items .nav-link:hover i,
.sidebar-items .nav-link.active i {
  color: #1e3c72;
  font-weight: bold;
}


.profile-picture img {
  width: 80%;
}


.content-here {
  min-height: 561px;
}

.md-form {
  margin-top: 0;
  margin-bottom: 0;
}

.md-form>.form-control {
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
  border-radius: 0;
  background-color: transparent;
  box-shadow: 0 1px 0 #d4dae3;
  transition: box-shadow .3s ease-out;
}

.md-form textarea.form-control:focus {
  -webkit-box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.2);
}

.icons-dash i {
  font-size: 39px;
  color: #ccc;
}

.profile-name {
  font-weight: bold;
}


.content-here .row {
  padding-top: 21px;
}

h3.block-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  margin-bottom: 0;
}

.block-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  color: white !important;
  padding: 12px 20px !important;
  border-bottom: none !important;
}

.block-header-default {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

/* Attractive Button Styles inside Block Headers */
.block-header .btn,
.block-header button {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  /* Rounded pill shape for modern look */
  padding: 8px 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.block-header .btn:hover,
.block-header button:hover {
  background: #ffffff !important;
  color: #1e3c72 !important;
  border-color: #ffffff !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.3);
}

.block-header .btn i {
  font-size: 0.9rem;
}


.listview .block-content {
  padding-bottom: 0;
  padding-top: 0;
}

.listview #basic-datatable_filter {
  margin-top: 18px;
}

.listview #basic-datatable_wrapper {
  padding-top: 16px;
}

.btn {
  word-wrap: unset;
  padding: 11px;
  text-align: center;
}

[type="button"] {
  -webkit-appearance: inherit;
  appearance: inherit;
}

@media (max-width: 767px) {
  .sidebar-container {
    background-color: #fff;
  }

}

.dataTables_scrollHeadInner table {
  width: inherit !important;
}

.btn-float {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, var(--brand-color) 0%, var(--brand-color-light) 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, var(--brand-color-dark) 0%, var(--brand-color) 100%);
}

.icon-float {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
  /* animation: float 2s ease-in-out infinite; */

}

.btn-float:hover .icon-float {
  transform: translateY(-2px);
}

:root {
  --brand-color: #1e3c72;
  --brand-color-dark: #1e3c72;
  --brand-color-light: #2a5298;
}

/* Button color overrides */
.btn-info {
  background: linear-gradient(45deg, #17a2b8 0%, #138496 100%);
}

.btn-success {
  background: linear-gradient(45deg, #28a745 0%, #218838 100%);
}

.btn-primary {
  background: linear-gradient(45deg, #1e3c72 0%, #2a5298 100%);
}

.btn-danger {
  background: linear-gradient(45deg, #dc3545 0%, #c82333 100%);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0px);
  }
}

.top-search {
  text-align: center;
  margin-bottom: 10px;
}

.top-search label {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.top-search input {
  width: 50%;
  /* Adjust width as needed */
  text-align: center;
}

.total_show {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  font-size: 32px;
  /* padding: 12px; */
  /* margin-top: 20px; */
  border-radius: 4px;
  color: #fff;
  padding-top: 0px !important;
}

.order_discount_input {
  display: inline-block;
  width: 100px;
  text-align: right;
}

/* Ledger Styles */
.ledger-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white !important;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ledger-header h2 {
  color: white !important;
}

.stat-card {
  background: white;
  border-left: 4px solid #1e3c72;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 10px;
}

.table-ledger thead th {
  background-color: #f8f9fc;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e3e6f0;
}

.page-header-actions {
  margin-bottom: 20px;
}

@media print {

  .btn-print,
  .btn-back,
  .page-header-actions {
    display: none !important;
  }

  .ledger-header {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .ledger-header h2 {
    color: black !important;
  }
}

/* Modal UI Improvements */
.modal-content {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.modal-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
  color: white !important;
  border-bottom: none !important;
  padding: 1.5rem !important;
}

.modal-header .modal-title {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
}

.modal-header .close {
  color: white !important;
  text-shadow: none !important;
  opacity: 0.8;
  transition: all 0.2s;
}

.modal-header .close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem !important;
}

.modal.fadeIn .modal-dialog {
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Dashboard Icon Animations & Block Improvements */
.dash-icon-anim {
  display: inline-block;
  transition: all 0.3s ease;
}

.block:hover .dash-icon-anim {
  animation: iconPulse 1s infinite alternate;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  }
}

.text-orange {
  color: #fd7e14 !important;
}

.icons-dash .block {
  border-radius: 12px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.icons-dash .block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icons-dash .block {
  border-radius: 15px !important;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden;
  position: relative;
}

.icons-dash .block:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.icons-dash i {
  font-size: 2.4rem;
  transition: all 0.4s ease;
}

/* Colorful Accents for Icons-Dash */
.icons-dash:nth-of-type(1) i {
  color: #055f40 !important;
}

.icons-dash:nth-of-type(2) i {
  color: #925600 !important;
}

.icons-dash:nth-of-type(3) i {
  color: #920011 !important;
}

.icons-dash:nth-of-type(4) i {
  color: #1e3c72 !important;
}

/* Subtle accent line at the bottom of each block */
.icons-dash:nth-of-type(1) .block {
  border-bottom: 4px solid #1d976c !important;
}

.icons-dash:nth-of-type(2) .block {
  border-bottom: 4px solid #f09819 !important;
}

.icons-dash:nth-of-type(3) .block {
  border-bottom: 4px solid #eb3349 !important;
}

.icons-dash:nth-of-type(4) .block {
  border-bottom: 4px solid #1e3c72 !important;
}

.icons-dash .block:hover i {
  transform: scale(1.25) rotate(5deg);
}

.icons-dash .h3 {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  margin-top: 5px;
}

.icons-dash .text-uppercase {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #888 !important;
}

.block-link-shadow {
  text-decoration: none !important;
}

/* Premium Dashboard Stats Card */
.stats-card {
  position: relative;
  border-radius: 16px !important;
  overflow: hidden;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  min-height: 110px;
  display: flex !important;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
}

.stats-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12) !important;
}

.stats-card .block-content {
  width: 100%;
  padding: 1.5rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.4s;
}

.stats-card:hover .stats-icon {
  transform: rotate(15deg) scale(1.1);
  background: white !important;
}

.stats-data {
  text-align: right;
  flex-grow: 1;
}

.stats-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.stats-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
}

/* Individual Card Colors */
.stats-completed {
  background: linear-gradient(135deg, #1d976c 0%, #93f9b9 100%) !important;
}

.stats-completed:hover .stats-icon {
  color: #1d976c;
}

.stats-return {
  background: linear-gradient(135deg, #f09819 0%, #edde5d 100%) !important;
}

.stats-return:hover .stats-icon {
  color: #f09819;
}

.stats-cancelled {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
}

.stats-cancelled:hover .stats-icon {
  color: #eb3349;
}

.stats-products {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
}

.stats-products:hover .stats-icon {
  color: #1e3c72;
}

/* ==========================================================================
   Mobile Native App POS Styling (#products/placeorder)
   ========================================================================== */

/* Mobile Tab Switching Controls */
.mobile-pos-nav {
  display: none;
}

@media (max-width: 767.98px) {
  /* Main Container Adjustments for Mobile */
  .page-content {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-bottom: 85px !important; /* Space for fixed bottom bar */
  }

  .main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Mobile Top Tab Bar */
  .mobile-pos-nav {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 5px;
    z-index: 1020;
    border: 1px solid #e0e0e0;
  }

  .mobile-pos-nav .nav-link {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
  }

  .mobile-pos-nav .nav-link.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
  }

  .mobile-pos-nav .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
  }

  /* Hide/Show sections based on active mobile tab */
  .pos-mobile-view-products .col-sm-6:nth-child(2) {
    display: none !important;
  }

  .pos-mobile-view-cart .col-sm-6.product_summary {
    display: none !important;
  }

  .pos-mobile-view-cart .col-sm-6:nth-child(2) {
    display: block !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Products Grid Layout on Mobile */
  #products-grid-container {
    display: flex !important;
    flex-wrap: wrap !important;
    max-height: calc(100vh - 210px) !important;
    overflow-y: auto !important;
    padding: 6px 2px !important;
  }

  #products-grid-container .pos-grid-col {
    padding-left: 4px !important;
    padding-right: 4px !important;
    margin-bottom: 8px !important;
  }

  .product-card {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    cursor: pointer !important;
    touch-action: manipulation;
  }

  .product-card:active {
    transform: scale(0.97) !important;
  }

  .product-card .img-wrapper {
    width: 75px !important;
    height: 75px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    margin: 0 auto 6px auto !important;
    padding: 4px !important;
  }

  .product-card .img-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .product-card .card-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    height: 32px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card .card-price {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #10b981 !important;
    margin-bottom: 4px !important;
  }

  /* Floating Mobile Bottom Action Bar */
  .mobile-pos-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    padding: 10px 16px;
    z-index: 2000;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
  }

  .mobile-pos-bottom-bar .cart-info {
    display: flex;
    flex-direction: column;
  }

  .mobile-pos-bottom-bar .cart-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
  }

  .mobile-pos-bottom-bar .cart-total {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
  }

  .mobile-pos-bottom-bar .action-btns {
    display: flex;
    gap: 8px;
  }

  .mobile-pos-bottom-bar .btn-mobile-checkout {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-pos-bottom-bar .btn-mobile-cart-toggle {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Cart Table Touch Adjustments */
  .order_summary table th,
  .order_summary table td {
    padding: 8px 6px !important;
    font-size: 13px !important;
    vertical-align: middle !important;
  }

  .order_summary .quantity {
    height: 38px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-radius: 6px !important;
  }

  .order_summary .btn-danger,
  .order_summary .btn-info {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }

  /* Total Summary Section on Mobile */
  .total_show {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 16px !important;
    font-size: 18px !important;
    font-weight: 800;
    margin-bottom: 15px;
  }

  .total_show .gtotal {
    color: #34d399;
  }

  /* Responsive Mobile Modals - Fully Visible & Centered */
  .modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
  }

  .modal-dialog {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  .modal-content {
    width: 100% !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    background: #ffffff !important;
  }

  .modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 16px !important;
    background: #f8fafc;
    flex-shrink: 0 !important;
  }

  .modal-header .modal-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .modal-body,
  .popupcontent,
  .popupcontent2,
  .block-content.popupcontent2 {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    max-height: calc(90vh - 60px) !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 16px !important;
  }

  /* Clean Products Section on Mobile */
  /* Hide Export Buttons on Mobile */
  .dt-buttons,
  .dt-button,
  .dt-button-collection,
  .buttons-html5,
  .buttons-csv,
  .buttons-excel,
  .buttons-pdf,
  .buttons-print,
  .buttons-copy {
    display: none !important;
  }

  /* Hide DataTables page size selector on mobile for a cleaner look */
  .dataTables_wrapper .dataTables_length {
    display: none !important;
  }

  /* Full Width Clean Search Bar for Mobile Products */
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: left !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .dataTables_wrapper .dataTables_filter label {
    width: 100% !important;
    display: block !important;
    margin-bottom: 0 !important;
    font-size: 0 !important; /* Hide 'Search:' label text */
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100% !important;
    margin-left: 0 !important;
    border-radius: 12px !important;
    padding: 10px 14px 10px 38px !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") no-repeat 12px center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease-in-out !important;
  }

  .dataTables_wrapper .dataTables_filter input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
    outline: none !important;
  }

  /* Product Section Header Adjustments on Mobile */
  .product_summary .block-header {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .product_summary .block-options {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .product_summary #filter-category {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    height: 36px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  .product_summary #btn-toggle-pos-view {
    height: 36px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  /* Responsive Popup Form Styling (Place Order & Return Order) */
  .placeorderform .form-group {
    margin-bottom: 0.8rem;
  }

  .payment-method-options label {
    background: #f8fafc;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
  }

  .payment-method-options input[type="radio"]:checked + span {
    color: #0284c7;
    font-weight: 700;
  }

  .placeorderform .orderbtn {
    font-size: 13px !important;
    padding: 8px 4px !important;
    white-space: nowrap;
    border-radius: 8px !important;
  }

  /* View Holded Orders Popup Responsive Styles */
  .holded-orders-wrapper {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .holded-orders-table {
    font-size: 13px;
  }

  .holded-orders-table th,
  .holded-orders-table td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
  }

  .holded-actions .btn {
    font-size: 12px !important;
    padding: 5px 8px !important;
    border-radius: 6px !important;
  }

  @media (max-width: 575.98px) {
    .holded-orders-table thead {
      display: none;
    }

    .holded-orders-table,
    .holded-orders-table tbody,
    .holded-orders-table tr,
    .holded-orders-table td {
      display: block;
      width: 100%;
    }

    .holded-orders-table tr {
      margin-bottom: 12px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      padding: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }

    .holded-orders-table td {
      text-align: right !important;
      padding: 8px 10px !important;
      position: relative;
      border: none !important;
      border-bottom: 1px dashed #f1f5f9 !important;
    }

    .holded-orders-table td:last-child {
      border-bottom: none !important;
      text-align: center !important;
      padding-top: 12px !important;
    }

    .holded-orders-table td::before {
      content: attr(data-label);
      float: left;
      font-weight: 700;
      color: #64748b;
      font-size: 12px;
      text-transform: uppercase;
    }
  }
}

/* Hide mobile bottom bar on desktop */
@media (min-width: 768px) {
  .mobile-pos-bottom-bar {
    display: none !important;
  }
}