:root {
  /* Modern Light Theme Colors */
  --bg-dark: #f8fafc;        /* Main background - soft blue-gray white */
  --bg-panel: #ffffff;       /* Panel/Sidebar background - pure white */
  --bg-card: #ffffff;        /* Card background */
  --text-primary: #0f172a;   /* Slate 900 */
  --text-secondary: #64748b; /* Slate 500 */
  --accent-color: #4f46e5;   /* Indigo 600 */
  --accent-hover: #4338ca;   /* Indigo 700 */
  --danger-color: #ef4444;   /* Red 500 */
  --danger-hover: #dc2626;   /* Red 600 */
  --success-color: #10b981;  /* Emerald 500 */
  --border-color: #e2e8f0;   /* Slate 200 */
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --font-family: 'Outfit', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Common UI Elements */
.btn {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-family);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), #818cf8);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: var(--danger-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.input-group {
  margin-bottom: 20px;
  width: 100%;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.input-control {
  width: 100%;
  padding: 14px 16px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  transition: var(--transition);
}

.input-control:focus {
  outline: none;
  background-color: white;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Hide number input spin buttons / stepper arrows (Cross-browser) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Login Page (Centered Clean PIN / Password Layout) */
.login-container {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 25%, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px;
}

body.dark-theme .login-container {
  background: radial-gradient(circle at 50% 25%, #1e293b 0%, #0f172a 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
  text-align: center;
}

/* Role Pills in Login */
.login-role-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

body.dark-theme .login-role-tabs {
  background: #0f172a;
}

.login-role-tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-role-tab.active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* PIN Display Input */
.pin-display-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.pin-display-input {
  width: 100%;
  height: 54px;
  font-size: 24px;
  letter-spacing: 6px;
  text-align: center;
  font-weight: 800;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0 48px;
}

.pin-display-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
  background: #ffffff;
}

body.dark-theme .pin-display-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}

/* Numeric Keypad Grid */
.pin-pad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.pin-key {
  height: 56px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pin-key:hover {
  background: #ffffff;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.pin-key:active {
  transform: scale(0.95);
  background: #e2e8f0;
}

.pin-key.action-key {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
}

.pin-key.action-key:hover {
  color: var(--danger-color);
  border-color: var(--danger-color);
}

body.dark-theme .pin-key {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
body.dark-theme .pin-key:hover {
  background: #334155;
  border-color: var(--accent-color);
}
body.dark-theme .pin-key:active {
  background: #0f172a;
}
  pointer-events: none;
}

.login-header {
  margin-bottom: 40px;
}

.login-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.login-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Layouts */
.app-layout {
  display: flex;
  height: 100vh;
  background-color: var(--bg-dark);
}

.sidebar {
  width: 280px;
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.sidebar-header {
  padding: 32px 24px;
}

.sidebar-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-nav {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: var(--text-primary);
}

.nav-item.active {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--accent-color);
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 80px;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: var(--shadow-sm);
  z-index: 5;
}

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

/* Dashboard Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-card:hover::before {
  transform: translateX(100%);
}

.stat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.2);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-info p {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Tables */
.table-container {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.table-header h3 {
  font-size: 20px;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background-color: #f8fafc;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.modal-header h3 {
  font-size: 24px;
}

.close-modal {
  background: #f1f5f9;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  background: #e2e8f0;
  color: var(--danger-color);
  transform: rotate(90deg);
}

/* Toasts - Completely disabled per user request */
.toast-container,
.toast {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* POS / Worker View */
.pos-layout {
  display: flex;
  height: 100vh;
  background-color: var(--bg-dark);
}

.pos-products {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.pos-cart {
  width: 400px;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 15px rgba(0,0,0,0.03);
  z-index: 10;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-color);
}

.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

.product-info {
  padding: 20px;
}

.product-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 18px;
}

.cart-header {
  padding: 32px;
  border-bottom: 1px solid var(--border-color);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
}

.cart-item-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cart-item-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 14px;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background-color: #f1f5f9;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

.qty-btn:hover {
  background-color: var(--accent-color);
  color: white;
}

.cart-footer {
  padding: 32px;
  border-top: 1px solid var(--border-color);
  background-color: white;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.checkout-btns {
  display: flex;
  gap: 16px;
}

.checkout-btns .btn {
  flex: 1;
  padding: 16px;
  font-size: 16px;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 10px 20px;
  width: 350px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-bar i {
  color: var(--text-secondary);
  margin-right: 12px;
  font-size: 18px;
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: var(--font-family);
  font-size: 15px;
}
.search-bar input::placeholder {
  color: #94a3b8;
}

/* Mobile & Responsiveness */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 900px) {
  .login-left { padding: 20px; }
  .login-card { padding: 30px; }
  .login-header h1 { font-size: 28px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    transition: var(--transition);
  }
  .sidebar.active {
    left: 0;
  }
  
  .topbar {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }
  
  .content-area { padding: 14px 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  
  .pos-layout { flex-direction: column; }
  .pos-cart {
    width: 100%;
    height: 50vh;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
  .pos-products { padding: 16px; height: 50vh; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  
  .search-bar { width: 100%; }
  
  .modal {
    margin: 20px;
    padding: 24px;
  }
}

.mobile-cart-toggle {
  display: none;
}

@media (min-width: 769px) {
  #closeCartBtn {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-cart-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 24px;
    border: none;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    z-index: 100;
    cursor: pointer;
  }
  
  .mobile-cart-toggle span {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
  }

  .pos-cart {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100% !important;
    height: 100% !important;
    z-index: 90;
    transition: var(--transition);
  }

  .pos-cart.active {
    right: 0;
  }
}

/* ========================================================
   OMBOR (WAREHOUSE) VA MAXSULOT KARTALARI DIZAYNI
   ======================================================== */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid var(--border-color);
  background: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card.has-cart {
  border-color: var(--accent-color) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.18) !important;
  background: #fdfefe;
}

.product-card.out-of-stock {
  opacity: 0.72;
  background: #fafafa;
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 175px;
  background: #f8fafc;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.04);
}

.card-cart-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  animation: pulse-sm 1.5s infinite;
}

@keyframes pulse-sm {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.card-stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  margin-top: 8px;
  letter-spacing: 0.2px;
}

.card-stock-tag.in-stock {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.card-stock-tag.low-stock {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  animation: pulse-sm 2s infinite;
}

.card-stock-tag.out-of-stock {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Card bottom action area & Stepper */
.card-action-area {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.card-add-btn {
  width: 100%;
  padding: 9px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-add-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.card-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef2ff;
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  padding: 4px 6px;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

.card-step-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: white;
  color: var(--accent-color);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  transition: all 0.12s ease;
}

.card-step-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.08);
}

.card-step-btn:active {
  transform: scale(0.95);
}

.card-qty-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding: 0 8px;
}

.card-qty-num {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-color);
}

.card-qty-subtext {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

/* Warehouse Top Banner Warning */
.warehouse-warning-banner {
  background: #fff1f2;
  border-left: 5px solid #e11d48;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.08);
}

.warehouse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.warehouse-badge.green {
  background: #dcfce7;
  color: #15803d;
}

.warehouse-badge.yellow {
  background: #fef3c7;
  color: #b45309;
}

.warehouse-badge.red {
  background: #fee2e2;
  color: #b91c1c;
}

/* Quick Stock Restock Modal Input buttons */
.quick-amount-btn {
  padding: 7px 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.quick-amount-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

/* Out of stock overlay */
.out-of-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  z-index: 2;
}

.out-of-stock-overlay span {
  background: #ef4444;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.card-add-btn.disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
}

.w-quick-btn {
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.w-quick-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.w-filter-pill {
  border-radius: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.w-filter-pill:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ========================================================
   POS STOCK FILTERS (Image 1 Style)
   ======================================================== */
.pos-stock-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 6px;
  align-items: center;
}

.stock-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stock-filter-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stock-filter-pill.pill-all {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}
.stock-filter-pill.pill-all.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border-color: #4f46e5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.stock-filter-pill.pill-out {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.stock-filter-pill.pill-out.active {
  background: #ef4444;
  color: white;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.stock-filter-pill.pill-low {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}
.stock-filter-pill.pill-low.active {
  background: #f59e0b;
  color: white;
  border-color: #d97706;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.stock-filter-pill.pill-ok {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}
.stock-filter-pill.pill-ok.active {
  background: #10b981;
  color: white;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

/* Quick cash buttons */
.quick-cash-btn {
  padding: 6px 14px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.quick-cash-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

/* Thermal POS Receipt Design */
.thermal-receipt-modal {
  max-width: 440px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.thermal-paper {
  background: #ffffff;
  padding: 28px 24px 36px;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.22);
  font-family: 'Courier New', Courier, monospace;
  color: #111827;
  position: relative;
  border-top: 6px solid #4f46e5;
}

.thermal-paper::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
  background-size: 16px 16px;
}

.receipt-header {
  text-align: center;
  border-bottom: 1.5px dashed #94a3b8;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.receipt-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
  color: #0f172a;
}

.receipt-meta {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.receipt-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 14px;
}

.receipt-items-table th {
  border-bottom: 1.5px dashed #cbd5e1;
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.receipt-items-table td {
  padding: 8px 4px;
  border-bottom: 1px dotted #e2e8f0;
}

.receipt-totals {
  border-top: 1.5px dashed #475569;
  padding-top: 12px;
  margin-top: 8px;
  font-size: 13px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.receipt-grand-total {
  font-size: 18px;
  font-weight: 900;
  border-top: 1.5px solid #0f172a;
  border-bottom: 1.5px solid #0f172a;
  padding: 10px 0;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
}

.receipt-footer {
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1.5px dashed #cbd5e1;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #printableThermalReceipt, #printableThermalReceipt * {
    visibility: visible !important;
  }
  #printableThermalReceipt {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 320px !important;
    margin: 0 !important;
    padding: 15px !important;
    background: white !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
  }

  #printableBarcodeSticker, #printableBarcodeSticker * {
    visibility: visible !important;
  }
  #printableBarcodeSticker {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 320px !important;
    margin: 0 !important;
    padding: 24px !important;
    background: white !important;
    display: block !important;
    box-shadow: none !important;
    border: 2px solid #000 !important;
  }
}

/* ========================================================
   COMPACT 1-PAGE DASHBOARD DESIGN
   ======================================================== */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1600px;
  margin: 0 auto;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

@media (max-width: 1300px) {
  .dash-stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}

/* SLEEK RECTANGULAR STAT CARDS */
.dash-stat-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-color: rgba(79, 70, 229, 0.35);
}

.dash-stat-card:active {
  transform: scale(0.97);
}

.dash-stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dash-stat-card:hover .dash-stat-card-icon {
  transform: scale(1.08);
}

.dash-stat-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.2px;
}

.dash-stat-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-stat-card-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}

@media (max-width: 480px) {
  .dash-stat-card {
    padding: 12px 10px;
    border-radius: 12px;
  }
  .dash-stat-card-icon {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
  .dash-stat-card-title {
    font-size: 10px;
  }
  .dash-stat-card-value {
    font-size: 15px;
  }
  .dash-stat-card-badge {
    font-size: 10px;
    padding: 2px 5px;
  }
}

/* CIRCULAR DIAGRAM CARD (KRUGAVOY DIAGRAMMA) */
.dash-chart-card {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.dash-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-chart-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-chart-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dash-chart-main-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.dash-chart-sub-title {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.dash-chart-filter-pills {
  display: inline-flex;
  background: var(--bg-secondary, #f1f5f9);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
  border: 1px solid var(--border-color);
}

.dash-pill-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.dash-pill-btn.active {
  background: #ffffff;
  color: var(--accent-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.dark-theme .dash-pill-btn.active {
  background: #1e293b;
  color: #818cf8;
}

.dash-chart-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dash-chart-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-chart-center-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  width: 130px;
}

.dash-chart-center-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.dash-chart-center-val {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 1px 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-chart-center-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.dash-chart-legend {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.dash-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-color);
  gap: 6px;
  transition: transform 0.15s ease;
}

.dash-legend-item:hover {
  transform: translateY(-1px);
}

.dash-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dash-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-legend-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-legend-right {
  text-align: right;
  flex-shrink: 0;
}

.dash-legend-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.dash-legend-pct {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .dash-chart-body {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
  }
  .dash-chart-canvas-wrap {
    max-width: 250px;
    height: 220px;
  }
  .dash-chart-legend {
    width: 55%;
    border-top: none;
    border-left: 1px solid var(--border-color);
    padding-top: 0;
    padding-left: 20px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 2-COLUMN WIDGETS GRID (REPLACES CHARTS & SPLIT) */
.dash-lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .dash-lists-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* MODAL DRILLDOWN FOR STAT CARDS */
.dash-detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dash-detail-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dash-detail-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  transform: translateY(15px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.dash-detail-modal-overlay.active .dash-detail-modal-card {
  transform: translateY(0) scale(1);
}

.dash-detail-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-detail-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.dash-detail-modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.dash-detail-modal-close:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.dash-detail-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}

.dash-detail-modal-footer {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.dash-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 8px;
  border: 1px solid #f1f5f9;
  transition: all 0.15s ease;
}

.dash-item-row:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.dash-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-item-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.dash-item-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.dash-badge-sm {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

/* ========================================================
   DARK THEME SYSTEM
======================================================== */
body.dark-theme {
  --bg-dark: #0b0f19;          /* Deep dark slate */
  --bg-panel: #111827;         /* Dark gray card/panel */
  --bg-card: #1f2937;          /* Elevated card bg */
  --text-primary: #f9fafb;     /* Crisp white text */
  --text-secondary: #9ca3af;   /* Soft muted gray */
  --border-color: #374151;     /* Subdued border */
  --glass-bg: rgba(17, 24, 39, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

body.dark-theme .dash-box,
body.dark-theme .dash-stat-pill,
body.dark-theme .dash-stat-card,
body.dark-theme .dash-detail-modal-card,
body.dark-theme .product-card,
body.dark-theme .pos-cart,
body.dark-theme .modal-content,
body.dark-theme .sidebar,
body.dark-theme .topbar,
body.dark-theme .login-card,
body.dark-theme .stat-card {
  background-color: var(--bg-panel);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-theme .table-responsive,
body.dark-theme table {
  background-color: var(--bg-panel);
  color: var(--text-primary);
}

body.dark-theme th {
  background-color: #1f2937;
  color: #9ca3af;
  border-color: var(--border-color);
}

body.dark-theme td {
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-theme tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

body.dark-theme .input-control,
body.dark-theme select,
body.dark-theme input[type="text"],
body.dark-theme input[type="number"],
body.dark-theme input[type="password"],
body.dark-theme input[type="search"],
body.dark-theme textarea {
  background-color: #111827;
  border-color: #374151;
  color: #f9fafb;
}

body.dark-theme .input-control:focus {
  border-color: var(--accent-color);
  background-color: #1f2937;
}

body.dark-theme .dash-item-row,
body.dark-theme .doughnut-legend-item,
body.dark-theme .cart-item,
body.dark-theme .quick-cash-btn {
  background-color: #111827;
  border-color: #374151;
  color: var(--text-primary);
}

body.dark-theme .dash-item-row:hover {
  background-color: #1f2937;
}

body.dark-theme .nav-item {
  color: #9ca3af;
}

body.dark-theme .nav-item:hover,
body.dark-theme .nav-item.active {
  background-color: rgba(79, 70, 229, 0.15);
  color: #818cf8;
}

body.dark-theme .filter-pill {
  background-color: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

body.dark-theme .filter-pill.active {
  background-color: var(--accent-color);
  color: white;
}

body.dark-theme .pos-dual-filter {
  background: #111827;
  border-color: #374151;
}

body.dark-theme .pos-dual-filter-btn {
  background: #1f2937;
  color: #cbd5e1;
  border-color: #374151;
}

body.dark-theme .pos-dual-filter-btn.active {
  background: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

body.dark-theme .btn-outline {
  border-color: var(--border-color);
  color: var(--text-primary);
  background: var(--bg-panel);
}

body.dark-theme .btn-outline:hover {
  background: var(--bg-card);
}

/* ========================================================
   POS SYSTEM & SEARCH BAR CONTRAST STYLING
======================================================== */
.pos-category-scroll-container,
#categoryFilters {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
  padding-bottom: 2px !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  cursor: grab;
  user-select: none;
}

.pos-category-scroll-container.grabbing,
#categoryFilters.grabbing {
  cursor: grabbing !important;
}

.pos-category-scroll-container::-webkit-scrollbar,
#categoryFilters::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.pos-cat-pill {
  flex-shrink: 0 !important;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid var(--border-color);
  background-color: #f1f5f9;
  color: #1e293b;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.pos-cat-pill:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.pos-cat-pill.active {
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

body.dark-theme .pos-cat-pill {
  background-color: #1f2937;
  color: #cbd5e1;
  border-color: #374151;
}

body.dark-theme .pos-cat-pill:hover {
  background-color: #374151;
  color: #ffffff;
}

body.dark-theme .pos-cat-pill.active {
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
  border-color: var(--accent-color) !important;
}

/* POS Action button (Ombor, Bell) */
.pos-top-btn {
  padding: 9px 16px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.pos-top-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

body.dark-theme .pos-top-btn {
  background-color: #1f2937;
  color: #f9fafb;
  border-color: #374151;
}

body.dark-theme .pos-top-btn:hover {
  background-color: #374151;
}

/* Search bar dark mode */
.search-bar {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 9999px !important;
  padding: 8px 18px !important;
  transition: all 0.2s ease;
}

body.dark-theme .search-bar {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

body.dark-theme .search-bar:focus-within {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.search-bar i {
  color: var(--text-secondary);
  font-size: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

body.dark-theme .search-bar i {
  color: #94a3b8;
}

/* Force input inside search bar to be completely transparent without rectangular dark patch */
.search-bar input,
.search-bar input[type="text"],
body.dark-theme .search-bar input,
body.dark-theme .search-bar input[type="text"] {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 4px 6px !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-family: var(--font-family) !important;
  font-size: 14.5px !important;
  width: 100% !important;
}

body.dark-theme .search-bar input,
body.dark-theme .search-bar input[type="text"] {
  color: #f8fafc !important;
}

body.dark-theme .search-bar input::placeholder,
body.dark-theme .search-bar input[type="text"]::placeholder {
  color: #64748b !important;
}

/* Cart dark mode */
body.dark-theme .pos-cart {
  background-color: #111827;
  border-left-color: #374151;
}

body.dark-theme .cart-header {
  border-bottom-color: #374151;
  color: #f9fafb;
}

body.dark-theme .cart-item {
  background-color: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

body.dark-theme .cart-item-info h4 {
  color: #f9fafb;
}

body.dark-theme .cart-actions {
  background-color: #111827;
  border-color: #374151;
}

body.dark-theme .qty-btn {
  background-color: #374151;
  color: #f9fafb;
}

body.dark-theme .qty-btn:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

body.dark-theme .cart-footer {
  background-color: #111827;
  border-top-color: #374151;
}

body.dark-theme .cart-total {
  color: #f9fafb;
}

body.dark-theme .cart-total span:first-child {
  color: #9ca3af;
}

body.dark-theme .cart-total #cartTotalSum {
  color: #34d399 !important; /* Crisp bright emerald for grand total */
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

/* Product cards dark mode */
body.dark-theme .product-card {
  background-color: #1f2937;
  border-color: #374151;
}

body.dark-theme .product-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

body.dark-theme .product-img {
  background-color: #111827;
  border-bottom-color: #374151;
}

body.dark-theme .product-title {
  color: #f9fafb;
}

/* Modals dark mode */
body.dark-theme .modal {
  background-color: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
}

body.dark-theme .modal-header h3 {
  color: #f9fafb;
}

body.dark-theme .close-modal {
  background-color: #374151;
  color: #9ca3af;
}

body.dark-theme .close-modal:hover {
  background-color: #4b5563;
  color: #ffffff;
}

/* Stock status pills dark mode */
body.dark-theme .stock-filter-pill.pill-all {
  background-color: #1f2937;
  border-color: #374151;
  color: #cbd5e1;
}
body.dark-theme .stock-filter-pill.pill-all.active {
  background-color: var(--accent-color);
  color: #ffffff;
}
body.dark-theme .stock-filter-pill.pill-out {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
body.dark-theme .stock-filter-pill.pill-low {
  background-color: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
body.dark-theme .stock-filter-pill.pill-ok {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Period Filter Bar & Revenue Analyzer Styles */
.period-filter-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.period-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.period-filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.period-badge-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-color);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.period-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .period-filter-wrapper {
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 16px;
  }
  .period-filter-header {
    gap: 8px;
  }
  .period-filter-title {
    font-size: 13px;
  }
  .period-pills-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .period-pills-row::-webkit-scrollbar {
    display: none;
  }
  .period-pill {
    flex-shrink: 0;
    padding: 6px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
}

.period-pill {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.period-pill:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.period-pill.active {
  background: linear-gradient(135deg, var(--accent-color), #6366f1);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.period-custom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.period-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.period-select:focus {
  border-color: var(--accent-color);
}

/* Future Month Banner */
.future-month-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
  animation: fadeIn 0.3s ease;
}

.future-month-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3);
}

.future-month-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.future-month-badge {
  background: #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.future-month-desc {
  font-size: 13.5px;
  color: #1e40af;
  margin: 0;
  line-height: 1.5;
}

/* Empty Month Banner */
.empty-month-banner {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

.empty-month-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.empty-month-title {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
}

.empty-month-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Dark Theme Overrides for Period Analyzer */
body.dark-theme .period-filter-wrapper {
  background: #1e293b;
  border-color: #334155;
}
body.dark-theme .period-pill {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}
body.dark-theme .period-pill:hover {
  background: #1e293b;
  color: #f1f5f9;
}
body.dark-theme .period-pill.active {
  background: linear-gradient(135deg, var(--accent-color), #818cf8);
  color: #ffffff;
}
body.dark-theme .period-select {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
  color-scheme: dark;
}
body.dark-theme .future-month-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(49, 46, 129, 0.4) 100%);
  border-color: rgba(96, 165, 250, 0.4);
}
body.dark-theme .future-month-title {
  color: #93c5fd;
}
body.dark-theme .future-month-desc {
  color: #bfdbfe;
}
body.dark-theme .future-month-badge {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}
body.dark-theme .empty-month-banner {
  background: #1e293b;
  border-color: #334155;
}
body.dark-theme .empty-month-icon {
  background: #0f172a;
  color: #94a3b8;
}
body.dark-theme .empty-month-title {
  color: #f1f5f9;
}
body.dark-theme .empty-month-desc {
  color: #94a3b8;
}

/* Category Card Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   BARCODE SCANNER & LASER ANIMATION STYLES
   ======================================================== */
.scanner-laser-bar {
  position: absolute;
  top: 15%;
  left: 5%;
  width: 90%;
  height: 3px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.2) 0%, #ef4444 50%, rgba(239, 68, 68, 0.2) 100%);
  box-shadow: 0 0 14px 3px rgba(239, 68, 68, 0.85);
  border-radius: 4px;
  z-index: 5;
  animation: scanLaser 2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  pointer-events: none;
}

@keyframes scanLaser {
  0% {
    top: 15%;
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 85%;
    opacity: 0.85;
  }
}

#cameraScannerWrapper video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px;
}

#cameraScannerWrapper img {
  display: none !important;
}

/* Html5Qrcode reader UI adjustments */
#scannerReader {
  border: none !important;
  border-radius: 12px;
}
#scannerReader video {
  border-radius: 12px;
}
#scannerReader__scan_region {
  border-radius: 12px;
}

/* Scanner Button Pulse Effect */
.scanner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}
.scanner-btn:active {
  transform: translateY(1px);
}

/* Dark Theme Overrides for Scanner Modal */
body.dark-theme #workerScannerModal .modal {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
body.dark-theme #workerScannerModal .modal-header h3 {
  color: #f1f5f9 !important;
}
body.dark-theme #scannerRecentList > div {
  background: #0f172a !important;
  border-color: #334155 !important;
}
body.dark-theme #scannerRecentList b {
  color: #f1f5f9 !important;
}
body.dark-theme #btnCloseScannerModal {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Barcode Sticker Modal in Dark Theme */
body.dark-theme #barcodeStickerModal .modal {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}
body.dark-theme #printableBarcodeSticker {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* ========================================================
   TAHO.AUTO ZAPCHAST - PREMIUM BRAND & LOGO STYLING
======================================================== */
.login-brand-logo {
  max-width: 150px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
  background: #000000;
  padding: 4px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  display: inline-block;
}
.login-brand-logo:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 14px 30px -4px rgba(239, 68, 68, 0.45), 0 0 0 3px rgba(255, 255, 255, 1);
}

.login-showcase {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 100%;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  padding: 40px 36px;
  color: white;
  text-align: center;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-showcase-logo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 24px;
  padding: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease;
}
.login-showcase-logo-wrap:hover {
  transform: scale(1.05);
}

.login-showcase-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.login-showcase h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-showcase-sub {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 24px;
}

.login-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.login-feature-item:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.login-feature-item i {
  color: #f87171;
  font-size: 20px;
  flex-shrink: 0;
}

/* Sidebar Brand Header with Logo */
.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: 100%;
}

.sidebar-brand-logo {
  width: 50px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1.5px solid var(--border-color);
  background: #000;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.sidebar-brand-logo:hover {
  transform: scale(1.06);
}

.sidebar-brand-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.sidebar-brand-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.3px;
}

.sidebar-brand-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* POS Brand Header Badge */
.pos-brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}

.pos-logo-mini {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* Thermal Receipts Brand Logo */
.receipt-logo {
  max-width: 170px;
  max-height: 65px;
  width: auto;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  margin: 0 auto 8px;
  display: block;
  background: #ffffff;
}

.receipt-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Settings Page Logo Preview */
.settings-logo-preview {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 2.5px solid var(--accent-color);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.2);
}

/* ==========================================================
   MOBILE PRODUCT CARDS & CLEAN WAREHOUSE/PRODUCTS STYLES
   ========================================================== */
.warehouse-mobile-view, .products-mobile-view, .debtors-mobile-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 769px) {
  .warehouse-mobile-view, .products-mobile-view, .debtors-mobile-view {
    display: none !important;
  }
  .warehouse-desktop-view, .products-desktop-view, .debtors-desktop-view {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .warehouse-desktop-view, .products-desktop-view, .debtors-desktop-view {
    display: none !important;
  }
  .warehouse-mobile-view, .products-mobile-view, .debtors-mobile-view {
    display: flex !important;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }
  .stat-card {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 12px !important;
  }
  .stat-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 19px !important;
    border-radius: 10px !important;
  }
  .stat-info h3 {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.2px !important;
  }
  .stat-info p {
    font-size: 15px !important;
    font-weight: 800 !important;
  }
  .table-container {
    padding: 12px 10px !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}

.m-prod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-prod-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.m-prod-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
  background: #f8fafc;
}

.m-prod-info {
  flex: 1;
  min-width: 0;
}

.m-prod-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
  word-break: break-word;
}

.m-prod-tags {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.m-prod-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #475569;
}

body.dark-theme .m-prod-tag {
  background: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
}

.m-prod-tag.barcode {
  font-family: monospace;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-color);
}

.m-prod-tag.status-ok {
  background: #dcfce7;
  color: #15803d;
}

.m-prod-tag.status-low {
  background: #fef3c7;
  color: #b45309;
}

.m-prod-tag.status-out {
  background: #fee2e2;
  color: #b91c1c;
}

.m-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

body.dark-theme .m-prod-grid {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(51, 65, 85, 0.6);
}

.m-grid-cell {
  display: flex;
  flex-direction: column;
}

.m-grid-label {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1px;
}

.m-grid-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.m-grid-value.cost {
  color: #64748b;
}

.m-grid-value.sale {
  color: var(--accent-color);
  font-weight: 800;
}

.m-grid-value.stock-ok {
  color: #16a34a;
}

.m-grid-value.stock-low {
  color: #d97706;
}

.m-grid-value.stock-out {
  color: #ef4444;
}

.m-prod-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-prod-actions .btn {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
}

