/* Ali Karam POS System - Complete Styles */
/* Compatible with Windows 7+ browsers */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  min-height: 100vh;
}


/* ====== LOGIN / LICENSE PAGE ====== */

.login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
}

.license-container {
  background: #ffffff;
  height: 85vh;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  text-align: center;
  position: relative;
  overflow-y: auto;
}

.version-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #e74c3c;
  color: white;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: bold;
}

.pos-logo {
  font-size: 48px;
  margin-bottom: 20px;
  color: #3498db;
}

.subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.activation-status {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: bold;
}

.activation-status.activated {
  background-color: #ecf9f1;
  color: #27ae60;
  border: 1px solid #c3e6cb;
}

.activation-status.not-activated {
  background-color: #fdecea;
  color: #e74c3c;
  border: 1px solid #f5c6cb;
}

.form-group {
  text-align: left;
  margin-bottom: 15px;
}

body.rtl .form-group {
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #3498db;
  outline: none;
}

.license-info {
  background: #f5f5f5;
  padding: 15px;
  margin-top: 15px;
  border-radius: 8px;
  text-align: left;
  font-size: 14px;
}

body.rtl .license-info {
  text-align: right;
}

.security-notice {
  background: #f9f9f9;
  padding: 20px;
  margin-top: 25px;
  border-radius: 12px;
  font-size: 14px;
  color: #555;
  text-align: left;
}

body.rtl .security-notice {
  text-align: right;
}

.security-notice ul {
  padding-left: 20px;
}

body.rtl .security-notice ul {
  padding-left: 0;
  padding-right: 20px;
}

.login-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 400px;
  text-align: center;
  margin: 30px auto 0 auto;
}

body.rtl .login-form {
  text-align: right;
}

/* Receipt */
.receipt-header {
  text-align: center;
  margin-bottom: 10px;
}

.receipt-logo {
  max-width: 60px;
  margin-bottom: 5px;
}

.receipt-name {
  font-size: 16px;
  font-weight: bold;
}

.receipt-address {
  font-size: 12px;
  color: #555;
}

.receipt-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
}

body.rtl .receipt-info {
  flex-direction: row-reverse;
  text-align: right;
}


.receipt-items {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.receipt-items th,
.receipt-items td {
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed #ccc;
  text-align: left;
}

body.rtl .receipt-items th,
body.rtl .receipt-items td {
  text-align: right;
}


.receipt-summary {
  margin-top: 10px;
  border-top: 1px dashed #ccc;
  padding-top: 10px;
  font-size: 13px;
  font-weight: bold;
}

.receipt-summary div {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

body.rtl .receipt-summary div {
  flex-direction: row-reverse;
}

.receipt-summary .discount {
  color: #e74c3c;
}

.receipt-summary .total {
  color: #27ae60;
  font-size: 1.2rem;
}

.receipt-footer {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #555;
}

.receipt-footer .developer {
  margin-top: 5px;
  font-size: 11px;
  color: #999;
}

/* Footer */
.footer {
  text-align: center;
  background: #f9f9f9;
  padding: 15px;
  font-size: 13px;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Utility */
.error {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
}

.success {
  color: #27ae60;
  font-size: 0.9rem;
  margin-top: 5px;
}

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

.hidden {
  display: none;
}

@media (max-width: 768px) {

  .login-form,
  .license-container {
    width: 90%;
    padding: 30px;
  }
}


/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 8px 12px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: #2980b9;
}

.lang-btn.active {
  background: #27ae60;
}

/* RTL Support */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .language-switcher {
  right: auto;
  left: 20px;
}

body.rtl .card-header {
  flex-direction: row-reverse;
  justify-content: space-between;
}

body.rtl .card-header input[type="text"] {
  text-align: right;
}

body.rtl .card-header .btn {
  margin-left: 0 !important;
  margin-right: 10px;
}

body.rtl .search-box {
  text-align: right;
}


/* Login Screen */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.login-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 400px;
  text-align: center;
}

.login-form h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.demo-accounts {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-success {
  background: #27ae60;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #229954;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #c0392b;
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: #7f8c8d;
}

.btn-warning {
  background: #f39c12;
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: #e67e22;
}

/* App Layout */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  color: white;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  /* Prevent sidebar from shrinking */
}

.sidebar-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  background: none;
  color: white;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 25px;
  color: white;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.2);
  border-right: 3px solid #3498db;
}

.rtl .nav-item.active {
  border-right: none;
  border-left: 3px solid #3498db;
}

.rtl .nav-item:hover {
  padding-left: 20px;
  padding-right: 25px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  /* Allow scrolling if zoom is too high */
}

.top-bar {
  background: white;
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-area {
  flex: 1;
  padding: 30px 30px 60px 30px;
  overflow-y: auto;
}

/* Cards */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 20px;
}

/* POS Layout */
/* POS Layout */
.pos-layout {
  display: flex;
  /* Changed from Grid to Flex for better side-by-side enforcement */
  flex-wrap: nowrap;
  /* Prevent stacking */
  gap: 20px;
  height: 100%;
  min-width: 800px;
  /* Force minimum width to trigger scrollbar on zoom */
  align-items: flex-start;
  /* Align top */
}

/* Product Section Wrapper (First child of .pos-layout) */
.pos-layout>div:first-child {
  flex: 1;
  /* Take remaining space */
  min-width: 0;
  /* Prevent flex overflow issues */
  display: flex;
  flex-direction: column;
}

/* Cart Section (Second child of .pos-layout or .cart) */
.cart {
  width: 340px;
  flex-shrink: 0;
  /* NEVER shrink below 340px */
  background: white;
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  max-height: 100%;
  /* Allow internal scrolling if needed */
  overflow-y: auto;
}





.product-grid {
  display: grid;
  /* Use variable for dynamic resizing */
  grid-template-columns: repeat(auto-fill, minmax(var(--card-width, 200px), 1fr));
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.product-card {
  background: white;
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.product-card:hover {
  border-color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Legacy Cart style removal/overwrite above handles it */

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.rtl .cart-item {
  flex-direction: row-reverse;
}

.cart-total {
  font-size: 1.5rem;
  font-weight: bold;
  color: #27ae60;
  text-align: center;
  margin: 20px 0;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.data-table tr:hover {
  background: #f8f9fa;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stat-card.blue {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card.green {
  background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-card.orange {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.purple {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-card.red {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
  /* Centering */
  justify-content: center;
  align-items: center;
}

/* Ensure modal is flex when displayed to enable centering */
.modal[style*="display: block"],
.modal[style*="display: flex"] {
  display: flex !important;
}

.modal-content {
  background-color: #fefefe;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border-radius: 8px;
  animation: modalFadeIn 0.3s;
  z-index: 1001;
  /* Ensure content is above overlay */
  position: relative;
  /* Ensure z-index applies */
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal.show {
  text-align: right;
}

body.rtl .search-box {
  text-align: right;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

.modal-close:hover {
  color: #e74c3c;
}

/* User Management */
.user-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  flex: 1;
}

.user-role {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 10px;
}

.role-admin {
  background: #e74c3c;
  color: white;
}

.role-manager {
  background: #f39c12;
  color: white;
}

.role-cashier {
  background: #27ae60;
  color: white;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .form-group:last-child {
  grid-column: 1 / -1;
}

/* Search and Filter */
.search-box {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 20px;
}

.search-box:focus {
  outline: none;
  border-color: #3498db;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  text-align: center;
  padding: 8px 20px;
  font-size: 0.75rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer a {
  color: #3498db;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-weight: 500;
}

.notification.error {
  background: #e74c3c;
}

.notification.warning {
  background: #f39c12;
}

.notification.info {
  background: #3498db;
}

/* Utility Classes */
.error {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
}

.success {
  color: #27ae60;
  font-size: 0.9rem;
  margin-top: 5px;
}

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

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

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

.hidden {
  display: none;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }

  .rtl .pos-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 100%;
    height: auto;
    order: 2;
  }

  .main-content {
    order: 1;
  }

  .language-switcher {
    position: relative;
    top: 10px;
    right: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .login-form {
    width: 90%;
    padding: 30px;
  }
}

.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
  gap: 0;
}

.tab {
  padding: 10px 20px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-right: 4px;
  position: relative;
  top: 2px;
}

.tab:hover {
  background: #e0e0e0;
  color: #000;
}

.tab.active {
  background: white;
  color: #3498db;
  font-weight: bold;
  border-color: #ccc;
  border-bottom: 2px solid white;
  z-index: 1;
}

/* RTL Support */
body.rtl .tabs {
  flex-direction: row-reverse;
}

body.rtl .tab {
  direction: rtl;
}

#product-form-section {
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

#product-form .form-group {
  margin-bottom: 20px;
}

#product-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}

#product-list th,
#product-list td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

#product-form .form-group input,
#product-form .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

#product-form button {
  margin-top: 10px;
  padding: 12px 24px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

#product-form button:hover {
  background: #2980b9;
}

#product-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#product-list th,
#product-list td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#product-list th {
  background: #f2f2f2;
  font-weight: 600;
}

#product-list tr:hover {
  background: #f9f9f9;
}

.action-btn {
  margin-right: 5px;
  padding: 6px 12px;
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.edit-btn {
  background-color: #f39c12;
  color: white;
}

.delete-btn {
  background-color: #e74c3c;
  color: white;
}

.tab-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-group .tab-btn {
  padding: 10px 20px;
  background: #ecf0f1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.tab-group .tab-btn.active {
  background: #3498db;
  color: white;
}

/* RTL Support */
body.rtl #product-list th,
body.rtl #product-list td {
  text-align: right;
}

@media (max-width: 768px) {

  #product-form .form-group input,
  #product-form .form-group select {
    font-size: 0.9rem;
  }

  .action-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
}

/* ===== Reports Page Enhancements ===== */

.report-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.report-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1rem;
  text-align: left;
  transition: transform 0.2s ease;
  border: 1px solid #eee;
}

.report-card:hover {
  transform: translateY(-4px);
}

.report-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.report-card div {
  font-size: 1.25rem;
  font-weight: 600;
  color: #007b83;
}

.form-inline-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.form-inline-group .form-group {
  flex: 1;
  min-width: 160px;
}

.cart-item button img {
  height: 18px;
  margin-left: 5px;
  vertical-align: middle;
}

#cartDiscount {
  color: #e74c3c;
}

body.rtl .cart-item button img {
  margin-left: 0;
  margin-right: 5px;
}

@media (max-width: 600px) {
  .report-cards {
    grid-template-columns: 1fr;
  }

  /* === POS Discount Enhancements === */
  .cart-item button.discount-btn {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
  }

  .cart-item button.discount-btn:hover {
    background: #e67e22;
  }

  .cart-summary div {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 0.95rem;
  }

  .cart-summary #cartDiscount {
    color: #e74c3c;
    font-weight: bold;
  }

  .cart-summary #cartTotal {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    margin-top: 10px;
  }

  /* === Receipt Enhancements === */
  .receipt-container {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.4;
    width: 320px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border: 1px dashed #ccc;
  }

  .receipt-items {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
  }

  .receipt-items th,
  .receipt-items td {
    padding: 4px 0;
    border-bottom: 1px dashed #ccc;
    font-size: 12px;
    text-align: left;
  }

  .rtl .receipt-items th,
  .rtl .receipt-items td {
    text-align: right;
  }

  .receipt-summary {
    margin-top: 10px;
    font-weight: bold;
    font-size: 13px;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
  }

  .receipt-summary div {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
  }

  .receipt-summary .discount {
    color: #e74c3c;
  }

  .receipt-summary .total {
    font-size: 1.2rem;
    color: #27ae60;
  }

  body.rtl .receipt-summary div {
    flex-direction: row-reverse;
  }

  /* === Modal Arabic/English Support === */
  #discountModal label,
  #discountModal select,
  #discountModal input,
  #discountModal label,
  #discountModal select,
  #discountModal input,
  #discountModal button {
    font-size: 0.9rem;
  }

  .rtl #discountModal label {
    text-align: right;
    display: block;
  }

  body.rtl .modal-content {
    direction: rtl;
    text-align: right;
  }

  /* ===== Receipts Page Enhancements ===== */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .data-table th,
  .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  .data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
  }

  .data-table tr:hover {
    background: #f8f9fa;
  }

  #returnModal .modal-body table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 0.9rem;
  }

  #returnModal th,
  #returnModal td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  }

  body.rtl #returnModal th,
  body.rtl #returnModal td {
    text-align: right;
  }

  #returnModal input[type="number"] {
    width: 60px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
  }

  #returnModal textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    resize: vertical;
  }

  .btn-action {
    min-width: 36px;
    height: 36px;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tabs .tab {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
  }

  .tabs .tab:hover {
    background-color: #d9edf7;
    color: #007bff;
  }

  .tabs .tab.active {
    background-color: #007bff;
    color: white;
  }

  .report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }

  .report-table th,
  .report-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    font-size: 14px;
  }

  .report-table th {
    background-color: #f7f7f7;
    color: #333;
  }

  .report-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
  }

  .report-title {
    font-weight: bold;
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
  }

  input[type="date"] {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 300px;
  }

  #salesmen-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }

  #salesmen-table th,
  #salesmen-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
  }

  #salesmen-table th {
    background-color: #f8f8f8;
    font-weight: bold;
  }

  #salesmen-table td:last-child button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }

  /* === Mobile Cart Enhancements === */
  @media (max-width: 768px) {
    .cart-summary div {
      flex-direction: column;
      align-items: flex-start;
    }

    .cart-summary #cartTotal {
      font-size: 1rem;
    }
  }

  /* Improved Mobile Responsiveness */
  @media (max-width: 768px) {
    .pos-layout {
      grid-template-columns: 1fr;
      gap: 15px;
      height: auto;
    }

    .sidebar {
      width: 100%;
      height: auto;
      flex-direction: row;
      overflow-x: auto;
      padding-bottom: 5px;
    }

    .sidebar nav {
      display: flex;
      width: 100%;
    }

    .nav-item {
      padding: 10px;
      white-space: nowrap;
      text-align: center;
      flex: 1;
      justify-content: center;
      border-bottom: 3px solid transparent;
    }

    .nav-item.active {
      border-bottom: 3px solid #3498db;
      background: rgba(255, 255, 255, 0.1);
    }

    .app {
      flex-direction: column;
      height: auto;
      overflow-y: auto;
    }

    .main-content {
      height: auto;
      overflow: visible;
    }
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  }

  body.rtl #returnModal th,
  body.rtl #returnModal td {
    text-align: right;
  }

  #returnModal input[type="number"] {
    width: 60px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
  }

  #returnModal textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.9rem;
    resize: vertical;
  }

  .btn-action {
    min-width: 36px;
    height: 36px;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tabs .tab {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
  }

  .tabs .tab:hover {
    background-color: #d9edf7;
    color: #007bff;
  }

  .tabs .tab.active {
    background-color: #007bff;
    color: white;
  }

  .report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
  }

  .report-table th,
  .report-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    font-size: 14px;
  }

  .report-table th {
    background-color: #f7f7f7;
    color: #333;
  }

  .report-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
  }

  .report-title {
    font-weight: bold;
    font-size: 16px;
    color: #222;
    margin-bottom: 10px;
  }

  input[type="date"] {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 300px;
  }

  #salesmen-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }

  #salesmen-table th,
  #salesmen-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
  }

  #salesmen-table th {
    background-color: #f8f8f8;
    font-weight: bold;
  }

  #salesmen-table td:last-child button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }

  /* === Mobile Cart Enhancements === */
  @media (max-width: 768px) {
    .cart-summary div {
      flex-direction: column;
      align-items: flex-start;
    }

    .cart-summary #cartTotal {
      font-size: 1rem;
    }
  }

  /* Improved Mobile Responsiveness */
  @media (max-width: 768px) {
    .pos-layout {
      grid-template-columns: 1fr;
      gap: 15px;
      height: auto;
    }

    .sidebar {
      width: 100%;
      height: auto;
      flex-direction: row;
      overflow-x: auto;
      padding-bottom: 5px;
    }

    .sidebar nav {
      display: flex;
      width: 100%;
    }

    .nav-item {
      padding: 10px;
      white-space: nowrap;
      text-align: center;
      flex: 1;
      justify-content: center;
      border-bottom: 3px solid transparent;
    }

    .nav-item.active {
      border-bottom: 3px solid #3498db;
      background: rgba(255, 255, 255, 0.1);
    }

    .app {
      flex-direction: column;
      height: auto;
      overflow-y: auto;
    }

    .main-content {
      height: auto;
      overflow: visible;
    }

    .cart {
      margin-bottom: 60px;
    }

    .footer {
      position: fixed;
      bottom: 0;
      width: 100%;
      z-index: 100;
    }
  }


  /* Stock Audit Modal - Maximized */
  #auditModal .modal-content {
    width: 90% !important;
    max-width: 1200px !important;
    max-height: 85vh;
    overflow-y: auto;
  }
}

/* ====================================================
   Tashgheel POS Enterprise â€” Theme Override
   Modernizes all inner-app pages using brand palette.
   Loaded AFTER styles.css so these rules take priority.
   ==================================================== */

/* â”€â”€ Google Font â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* â”€â”€ Global background â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
body { background: #f0f2f8; }

/* â”€â”€ SIDEBAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar {
  width: 250px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.4);
  border-right: none;
}

.sidebar-header {
  padding: 24px 20px 20px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.sidebar-header h2,
.sidebar-header #posSystemTitle {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Enterprise Edition badge inside sidebar */
.sidebar-header p,
.sidebar-header #licensedVersion {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

/* Sidebar-header text used as page name (e.g. Receipts, Backup) */
.sidebar-header[data-i18n],
.sidebar-header[data-i18n-key] {
  font-size: 1rem;
  font-weight: 700;
  padding: 24px 20px;
}

/* Nav items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  padding-left: 24px;
  border-left-color: rgba(255,255,255,0.6);
}

.nav-item.active {
  background: rgba(255,255,255,0.22);
  color: #fff !important;
  font-weight: 700;
  border-left: 3px solid #fff;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 20px;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* â”€â”€ TOP BAR â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.top-bar {
  background: #fff;
  padding: 16px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-bottom: 2px solid #f0f2f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar h1 {
  color: #2c3e50;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

/* â”€â”€ CARDS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid #eef0f6;
  overflow: hidden;
}

.card-header {
  background: #fff;
  border-bottom: 2px solid #f0f2f8;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* â”€â”€ BUTTONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  transition: all 0.2s;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(118,75,162,0.3);
  border: none;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #7b8ff5 0%, #8a5bbf 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(118,75,162,0.4);
}

.btn-success {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  box-shadow: 0 3px 10px rgba(39,174,96,0.25);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #3ed97f 0%, #2ebd6d 100%);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 3px 10px rgba(231,76,60,0.25);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(231,76,60,0.35);
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  box-shadow: 0 3px 8px rgba(243,156,18,0.25);
}

.btn-secondary {
  background: linear-gradient(135deg, #7f8c8d 0%, #636e72 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* â”€â”€ DATA TABLES â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.data-table,
.report-table {
  border-radius: 10px;
  overflow: hidden;
}

.data-table thead th,
.report-table thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.83rem;
  letter-spacing: 0.4px;
  padding: 13px 16px;
  border: none;
}

.data-table tbody tr:hover,
.report-table tbody tr:hover {
  background: rgba(102,126,234,0.05);
  transition: background 0.15s;
}

/* â”€â”€ CART (POS right panel) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cart-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* â”€â”€ LANGUAGE SWITCHER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lang-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  box-shadow: 0 2px 8px rgba(118,75,162,0.3);
  border: none;
  color: #fff;
  transition: all 0.2s;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(118,75,162,0.4);
  background: linear-gradient(135deg, #7b8ff5 0%, #8a5bbf 100%);
}

/* â”€â”€ TRIAL BANNER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
a[href*="tel"][style*="color:white"] {
  color: #fff !important;
}

/* â”€â”€ SEARCH BOX â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-box {
  border: 2px solid #e8eaf0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.88rem;
  transition: border-color 0.2s;
  outline: none;
}

.search-box:focus {
  border-color: #764ba2;
}

/* â”€â”€ TAB BUTTONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tab.active,
.tab.report-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  border-color: #764ba2 !important;
}

/* â”€â”€ USER ROLE BADGE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.user-role {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

/* â”€â”€ FOOTER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer {
  background: #fff;
  border-top: 2px solid #f0f2f8;
  color: #7f8c8d;
  font-size: 0.78rem;
}

/* ====== MOBILE RESPONSIVENESS ====== */
@media (max-width: 991px) {
  .mobile-menu-toggle { display: block !important; }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100vh;
    z-index: 10001;
    transition: transform 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
  }
  
  .rtl .sidebar {
    left: auto;
    right: -260px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  }
  
  .sidebar-opened .sidebar {
    transform: translateX(260px);
  }
  
  .rtl.sidebar-opened .sidebar {
    transform: translateX(-260px);
  }
  
  .app { flex-direction: column; }
  
  .main-content {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .top-bar {
    padding: 10px 15px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    align-items: stretch !important; /* Stack items but stretch to allow burger align-self */
    text-align: center !important;
    gap: 8px !important;
    height: auto !important;
    background: #fff !important;
  }
  
  .top-bar > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 5px !important;
    margin: 0 !important;
  }
  
  .top-bar span, .top-bar .user-role {
    display: block !important;
    width: auto !important;
    margin: 2px 0 !important;
    text-align: center !important;
  }
  
  .top-bar h1 { 
    font-size: 1.2rem !important; 
    margin: 5px 0 10px 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* Trial Banner Stacking */
  [style*="background: orange"], [style*="background:orange"], .trial-banner {
    flex-direction: column !important;
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    gap: 5px !important;
    padding: 10px !important;
  }

  .language-switcher {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-bottom: 2px solid #eee !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: center !important;
    z-index: 1001 !important;
  }
  
  .lang-btn {
    width: 90% !important;
    text-align: center !important;
    padding: 12px !important;
    margin: 5px 0 !important;
  }
  
  .rtl .language-switcher {
    left: 0 !important;
    right: 0 !important;
  }

  .sidebar { 
    width: 280px !important; 
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .sidebar-opened .sidebar { transform: translateX(280px) !important; }
  .rtl.sidebar-opened .sidebar { transform: translateX(-280px) !important; }
  
  .nav-item {
    display: flex !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  }
  
  .content-area { padding: 10px; }
  
  /* POS Stacking */
  .pos-layout {
    flex-direction: column !important;
    min-width: 0 !important;
    gap: 15px !important;
  }
  
  .pos-layout > div:first-child,
  .cart {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    max-height: 400px;
  }
  
  /* Tables Responsiveness */
  .card-body { overflow-x: auto; }
  .data-table { min-width: 600px; }
  
  /* Stats / Forms */
  .stats-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr !important; }
  
  .modal-content { width: 95% !important; margin: 10px; }
  
  .footer { position: static; margin-top: 20px; }
}
