/* ==============================================================================
   Dhanalakshmi Crackers - Admin & POS Billing Stylesheet
   Professional, High-Efficiency, Modern Dark-Accent Business Layout
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --admin-sidebar-w: 260px;
  --admin-header-h: 70px;

  --admin-bg: #f3f4f6;
  --admin-sidebar-bg: #111827;
  --admin-sidebar-active: #1f2937;
  --admin-card-bg: #ffffff;
  
  --admin-primary: #dc2626;
  --admin-primary-hover: #b91c1c;
  --admin-accent: #f59e0b;
  --admin-text-main: #111827;
  --admin-text-muted: #6b7280;
  --admin-border: #e5e7eb;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

body.admin-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
  display: flex;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background-color: var(--admin-sidebar-bg);
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.admin-sidebar-header {
  height: var(--admin-header-h);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-header .logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 800;
}

.admin-sidebar-header .brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.2;
}

.admin-sidebar-header .brand-sub {
  font-size: 0.7rem;
  color: var(--admin-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-nav {
  flex-grow: 1;
  padding: 1.25rem 0.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-nav-item:hover {
  background-color: var(--admin-sidebar-active);
  color: #ffffff;
}

.admin-nav-item.active {
  background-color: var(--admin-primary);
  color: #ffffff;
  font-weight: 600;
}

.admin-nav-item .icon {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.btn-logout {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.btn-logout:hover {
  color: #ef4444;
}

/* Main Content Wrapper */
.admin-main {
  margin-left: var(--admin-sidebar-w);
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--admin-sidebar-w));
}

.admin-topbar {
  height: var(--admin-header-h);
  background-color: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--admin-text-main);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-content {
  padding: 2rem;
  flex-grow: 1;
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--admin-card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.kpi-data h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--admin-text-main);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.kpi-icon.sales { background: #fee2e2; color: #dc2626; }
.kpi-icon.orders { background: #fef3c7; color: #d97706; }
.kpi-icon.products { background: #dbeafe; color: #2563eb; }
.kpi-icon.stock { background: #dcfce7; color: #16a34a; }

/* Tables */
.admin-table-card {
  background: var(--admin-card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--admin-border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-header-bar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-header-bar h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #f9fafb;
  padding: 0.85rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #f9fafb;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }

/* Status Select Dropdowns */
.status-select {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  min-width: 105px;
}

.status-select:focus {
  box-shadow: 0 0 0 2px rgba(194, 29, 29, 0.2);
}

.status-select-paid,
.status-select-delivered {
  background-color: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.status-select-unpaid,
.status-select-cancelled {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.status-select-pending {
  background-color: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.status-select-confirmed {
  background-color: #f0f9ff;
  color: #075985;
  border-color: #bae6fd;
}

.status-select-dispatched {
  background-color: #faf5ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.status-select-refunded {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

/* Action Buttons inside Table */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn {
  background: #f3f4f6;
  border: 1px solid var(--admin-border);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--admin-text-main);
  transition: all 0.2s;
}

.action-btn:hover {
  background: #e5e7eb;
}

.action-btn.delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ==============================================================================
   POS BILLING SYSTEM SPECIFIC STYLES
   ============================================================================== */
.pos-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  height: calc(100vh - var(--admin-header-h) - 4rem);
}

.pos-products-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-search-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pos-quick-categories {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.pos-cat-pill {
  padding: 0.4rem 0.9rem;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.pos-cat-pill.active {
  background: var(--admin-primary);
  color: #fff;
}

.pos-grid-scroll {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.pos-item-card {
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-user-select: none;
  user-select: none;
}

.pos-item-card:hover {
  border-color: var(--admin-primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.pos-item-name {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.pos-item-sku {
  font-size: 0.725rem;
  color: var(--admin-text-muted);
}

.pos-item-bottom {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-item-price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--admin-primary);
  font-size: 1rem;
}

.pos-item-stock {
  font-size: 0.7rem;
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

/* POS Bill Cart Panel (Right) */
.pos-cart-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-cart-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  background: #fafafa;
}

.pos-customer-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pos-cart-items-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.pos-cart-table {
  width: 100%;
  border-collapse: collapse;
}

.pos-cart-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  padding: 0.5rem;
  border-bottom: 1px solid var(--admin-border);
}

.pos-cart-table td {
  padding: 0.6rem 0.5rem;
  font-size: 0.85rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.pos-cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--admin-border);
  background: #fafafa;
}

.pos-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--admin-text-muted);
}

.pos-grand-total {
  border-top: 2px dashed var(--admin-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--admin-primary);
  display: flex;
  justify-content: space-between;
}

.pos-payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.pos-pay-btn {
  padding: 0.75rem;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.pos-pay-btn.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.pos-actions-bar {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}


.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--admin-text-muted);
}

.modal-body {
  padding: 1.75rem;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==============================================================================
   Admin Mobile Navigation & Responsive System
   ============================================================================== */

/* Hamburger Menu Toggle Button */
.admin-mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--admin-text-main);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--admin-text-main);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.admin-mobile-toggle:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

/* Sidebar Close Button */
.admin-sidebar-close {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.2s ease;
}

.admin-sidebar-close:hover {
  background: rgba(239, 68, 68, 0.6);
  transform: rotate(90deg);
}

/* Sidebar Backdrop Overlay */
.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.admin-sidebar-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

body.admin-drawer-locked {
  overflow: hidden !important;
}

/* Mobile Quick Bottom Navigation Bar */
.admin-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1500;
  padding: 0 0.5rem;
  justify-content: space-around;
  align-items: center;
}

.admin-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9ca3af;
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  max-width: 80px;
}

.admin-bottom-nav-item .nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.admin-bottom-nav-item:hover,
.admin-bottom-nav-item.active {
  color: #f59e0b;
}

.admin-bottom-nav-item.active .nav-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.5));
}

/* Table Touch Scrolling Container */
.admin-table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

/* POS Mobile Switcher Tabs & Floating Bar */
.pos-mobile-tabs {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
}

.pos-tab-btn {
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pos-tab-btn.active {
  background: var(--admin-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.pos-mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 74px;
  left: 12px;
  right: 12px;
  background: #111827;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.4);
  z-index: 1400;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pos-mobile-floating-bar:active {
  transform: scale(0.98);
}

.pos-float-info {
  display: flex;
  flex-direction: column;
}

.pos-float-items {
  font-size: 0.75rem;
  color: #9ca3af;
}

.pos-float-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f59e0b;
}

.pos-float-btn {
  background: var(--admin-primary);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ==============================================================================
   Order Page Mobile Layout & Component Styles
   ============================================================================== */
.order-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.oss-item {
  background: var(--admin-card-bg);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.oss-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--admin-text-muted);
  letter-spacing: 0.5px;
}

.oss-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--admin-text-main);
  font-family: 'Outfit', sans-serif;
}

.oss-pending .oss-val {
  color: #d97706;
}

.oss-delivered .oss-val {
  color: #059669;
}

/* Order Status Filter Pills Bar */
.order-pills-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.85rem 1.25rem 0.6rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
}

.order-pills-bar::-webkit-scrollbar {
  display: none;
}

.order-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: #f9fafb;
  border: 1px solid var(--admin-border);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.order-pill-btn .pill-badge {
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 9999px;
  transition: all 0.2s;
}

.order-pill-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.order-pill-btn.active {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.order-pill-btn.active .pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Mobile Orders List & Cards */
.admin-orders-mobile-list {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
}

.mobile-order-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mobile-order-card:active {
  background: #fcfcfd;
}

.moc-header {
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.moc-id-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.moc-id {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--admin-text-main);
  font-family: 'Outfit', sans-serif;
}

.moc-date {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
  background: #ffffff;
  border: 1px solid var(--admin-border);
  padding: 2px 6px;
  border-radius: 4px;
}

.moc-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.moc-customer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.moc-customer-info {
  flex-grow: 1;
  min-width: 0;
}

.moc-customer-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--admin-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moc-customer-phone {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.moc-quick-comms {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.moc-comm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--admin-border);
  background: #f9fafb;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.moc-comm-btn.call {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.moc-comm-btn.wa {
  background: #25d366;
  border-color: #25d366;
  color: #ffffff;
}

.moc-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.moc-amount-block {
  display: flex;
  flex-direction: column;
}

.moc-amount-label {
  font-size: 0.68rem;
  color: #92400e;
  text-transform: uppercase;
  font-weight: 700;
}

.moc-amount-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #b45309;
  font-family: 'Outfit', sans-serif;
}

.moc-payment-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.moc-items-preview {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.4;
  background: #f9fafb;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.moc-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-top: 1px solid var(--admin-border);
}

.moc-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  min-height: 38px;
}

/* Modal Responsive Classes */
.order-modal-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #f9fafb;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
  margin-bottom: 1.25rem;
}

.order-modal-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--admin-border);
  padding-top: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .admin-orders-desktop-table {
    display: none !important;
  }

  .admin-orders-mobile-list {
    display: flex;
  }

  .order-pills-bar {
    padding: 0.65rem 0.85rem;
  }

  .order-modal-header-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1rem;
  }

  .order-modal-footer-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .order-modal-footer-actions > * {
    width: 100%;
  }

  .order-modal-footer-actions .modal-actions-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .order-modal-footer-actions .modal-actions-right .btn {
    width: 100%;
    min-height: 42px;
  }
}

/* Tablet & Mobile Breakpoint (<= 991px) */
@media (max-width: 991px) {
  :root {
    --admin-sidebar-w: 280px;
    --admin-header-h: 62px;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-close {
    display: inline-flex;
  }

  .admin-mobile-toggle {
    display: inline-flex;
  }

  .admin-mobile-bottom-nav {
    display: flex;
  }

  .admin-main {
    margin-left: 0;
    width: 100%;
    padding-bottom: 74px; /* Ensure content is never obstructed by bottom bar */
  }

  .admin-topbar {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .admin-page-title {
    font-size: 1.15rem;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .topbar-actions .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }

  .admin-content {
    padding: 1.25rem 1rem;
  }

  /* POS terminal responsive stacking */
  .pos-mobile-tabs {
    display: grid;
  }

  .pos-layout {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1rem;
  }

  .pos-panel-hidden-mobile {
    display: none !important;
  }

  .pos-grid-scroll {
    max-height: 60vh;
    padding: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .pos-cart-panel {
    border-radius: var(--radius-lg);
  }

  .pos-cart-items-scroll {
    max-height: 40vh;
  }

  .pos-customer-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pos-payment-methods {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35rem;
  }

  .pos-pay-btn {
    padding: 0.65rem 0.35rem;
    font-size: 0.8rem;
  }

  .pos-cart-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pos-cart-actions .btn {
    width: 100%;
    padding: 0.85rem;
  }

  /* KPI Grid */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .dashboard-banner-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
}

/* Smartphone Breakpoint (<= 640px) */
@media (max-width: 640px) {
  .admin-page-title {
    font-size: 1rem;
  }

  .topbar-actions .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .kpi-card {
    padding: 1.15rem;
  }

  .table-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .table-header-bar h2 {
    font-size: 1.05rem;
  }

  .search-input-wrapper {
    width: 100%;
  }

  .search-input-wrapper input {
    width: 100%;
  }

  .filter-actions-bar {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .filter-group {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .invoice-filters-row {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .invoice-filters-row select,
  .invoice-filters-row input {
    width: 100%;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* Form layouts */
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .settings-card {
    padding: 1rem;
  }

  /* Modals: bottom-sheet appearance on phones */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-width: 100% !important;
    width: 100% !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 90vh;
    border: none;
  }

  .modal-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-footer .btn {
    width: 100%;
  }
}

/* ==============================================================================
   Admin Component Classes (Eliminates inline styles across admin templates)
   ============================================================================== */
#adminUserName,
.admin-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

#adminUserRole,
.admin-user-role {
  font-size: 0.7rem;
  color: #f59e0b;
}

.table-header-sub {
  font-size: 0.85rem;
  color: #6b7280;
}

.table-header-spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-input-wrapper {
  flex-grow: 1;
  max-width: 450px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.modal-hidden {
  display: none;
}

.th-img {
  width: 60px;
}

.th-actions {
  width: 200px;
}

.th-actions-sm {
  width: 140px;
}

.filter-actions-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
}

.filter-select {
  width: 145px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.invoice-filters-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-grow: 1;
  max-width: 680px;
  flex-wrap: wrap;
}

.invoice-search-input {
  flex: 1;
  min-width: 220px;
}

.channel-filter-select {
  width: 140px;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
}

.payment-status-filter-select {
  width: 145px;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
}

.pos-highlight-link {
  color: #fef08a;
}

.pos-content-pad {
  padding: 1.5rem;
}

.pos-customer-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}

.pos-customer-input {
  padding: 0.5rem;
}

.pos-th-item {
  text-align: left;
}

.pos-th-rate {
  width: 70px;
}

.pos-th-qty {
  width: 60px;
  text-align: center;
}

.pos-th-total {
  width: 75px;
  text-align: right;
}

.pos-th-del {
  width: 30px;
}

.pos-discount-row {
  align-items: center;
}

.pos-discount-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pos-discount-input {
  width: 55px;
  padding: 2px 4px;
  text-align: right;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.pos-discount-display {
  color: #10b981;
  font-weight: 600;
}

.pos-cash-section {
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.pos-cash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.pos-tender-input {
  width: 100px;
  padding: 3px 6px;
  text-align: right;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-weight: 700;
}

.pos-change-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.pos-change-due {
  color: #2563eb;
}

.text-danger {
  color: #ef4444;
}

.text-success {
  color: #10b981;
}

.dashboard-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dash-banner {
  color: #fff;
  padding: 1.5rem;
  border-radius: 14px;
}

.dash-banner-pos {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
}

.dash-banner-inventory {
  background: linear-gradient(135deg, #831843, #9d174d);
}

.dash-banner-sub {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.dash-banner-pos .dash-banner-sub {
  color: #c7d2fe;
}

.dash-banner-inventory .dash-banner-sub {
  color: #fbcfe8;
}

.banner-inv-btn {
  color: #831843;
}

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

.settings-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
}

.settings-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 0.5rem;
}

.settings-section-title-spaced {
  margin-top: 2rem;
}

.form-help-text {
  font-size: 0.75rem;
  color: #6b7280;
  display: block;
  margin-top: 4px;
}

.settings-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.settings-save-bar {
  margin-top: 2rem;
}

.settings-save-btn {
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.form-group-checkbox {
  display: flex;
  align-items: center;
  padding-top: 1.8rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #c21d1d);
}

/* Cloud Sync & Service Role Key Styles */
.cloud-sync-header-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cloud-sync-badge {
  cursor: pointer;
  font-weight: 600;
}

.btn-cloud-status {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}

.service-key-card {
  background: rgba(249, 115, 22, 0.04);
  padding: 1rem;
  border-radius: 8px;
  border: 1px dashed rgba(249, 115, 22, 0.3);
}

.service-key-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.badge-service-tag {
  font-size: 0.7rem;
}

.service-key-help {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.4;
}

.sync-test-actions {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==============================================================================
   Store & Payment Configuration - Mobile-First Redesign
   ============================================================================== */
.settings-container {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Status Strip */
.settings-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  max-width: 860px;
  margin: 0 auto 1.25rem;
}

.status-strip-card {
  background: #ffffff;
  border: 1px solid var(--admin-border, #e5e7eb);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.status-strip-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.status-strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.status-strip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.status-strip-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-strip-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section Navigation Pills */
.settings-nav-pills-bar {
  max-width: 860px;
  margin: 0 auto 1.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.settings-nav-pills-bar::-webkit-scrollbar {
  display: none;
}

.settings-nav-pills {
  display: inline-flex;
  gap: 0.5rem;
  background: #f3f4f6;
  padding: 0.35rem;
  border-radius: 12px;
  min-width: min-content;
}

.settings-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.settings-pill-btn:hover {
  color: #111827;
  background: rgba(255, 255, 255, 0.6);
}

.settings-pill-btn.active {
  background: #ffffff;
  color: #b91c1c;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

/* Card Sections */
.settings-card-section {
  background: #ffffff;
  border: 1px solid var(--admin-border, #e5e7eb);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.settings-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.bg-primary-soft { background: #fee2e2; }
.bg-success-soft { background: #dcfce7; }
.bg-warning-soft { background: #fef3c7; }
.bg-info-soft { background: #e0e7ff; }

.settings-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.2rem;
  font-family: var(--font-heading);
}

.settings-card-sub {
  font-size: 0.82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Form Helper & Row enhancements */
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.form-label-row .form-label {
  margin-bottom: 0;
}

.field-action-link {
  font-size: 0.76rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease;
}

.field-action-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
}

.field-action-wa {
  color: #16a34a;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.field-action-wa:hover {
  background: #dcfce7;
  color: #15803d;
}

.input-with-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.input-with-preview .form-input {
  flex-grow: 1;
}

.logo-preview-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview-box span {
  font-size: 1.25rem;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action .form-input {
  padding-right: 2.75rem;
}

.btn-input-action {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  color: #6b7280;
  border-radius: 6px;
}

.form-input-readonly {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  cursor: not-allowed;
}

.upi-input {
  font-family: monospace;
  font-weight: 600;
  color: #0f172a;
}

.gst-input {
  font-family: monospace;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Live UPI QR Showcase Card */
.upi-preview-card {
  margin-top: 1.25rem;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 14px;
  padding: 1.25rem;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.upi-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upi-brand-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.upi-badge-logo {
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.upi-badge-live {
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.upi-verified-badge {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.upi-preview-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.upi-qr-wrapper {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.upi-qr-image {
  width: 140px;
  height: 140px;
  display: block;
  border-radius: 6px;
}

.upi-qr-scan-hint {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.upi-preview-details {
  flex-grow: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.upi-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.upi-detail-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.upi-detail-val {
  font-size: 1rem;
  color: #f8fafc;
  font-weight: 700;
}

.upi-vpa-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #38bdf8;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
  word-break: break-all;
}

.upi-preview-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.upi-preview-actions .btn {
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
}

.upi-test-btn {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.upi-supported-apps {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.35rem;
}

/* Modern Toggle Switch */
.tax-toggle-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.tax-toggle-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 240px;
}

.admin-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
}

.admin-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.admin-switch input:checked + .admin-slider {
  background-color: #10b981;
}

.admin-switch input:checked + .admin-slider:before {
  transform: translateX(22px);
}

.tax-switch-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.tax-switch-sub {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.tax-toggle-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tax-rate-input {
  width: 90px;
  text-align: center;
  font-weight: 700;
  padding: 0.45rem 0.5rem;
}

.tax-presets {
  display: flex;
  gap: 0.35rem;
}

.tax-preset-chip {
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tax-preset-chip:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.tax-preset-chip.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Cloud Status Banner */
.cloud-status-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cloud-banner-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.cloud-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cloud-banner-content strong {
  font-size: 0.88rem;
  color: #1e40af;
}

.cloud-banner-content span {
  font-size: 0.78rem;
  color: #3b82f6;
  line-height: 1.4;
}

/* Mobile Sticky Floating Save Bar */
.settings-mobile-save-bar {
  display: none;
  position: fixed;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 890;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid #e5e7eb;
  padding: 0.65rem 1rem;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-save-bar-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
}

.mobile-save-dot {
  font-size: 0.8rem;
  color: #10b981;
}

.mobile-save-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
}

.topbar-save-btn {
  display: inline-flex;
}

@media (max-width: 991px) {
  .settings-mobile-save-bar {
    display: flex;
  }
  
  .settings-container {
    padding-bottom: 120px; /* Room for mobile save bar + bottom navigation */
  }

  .settings-card-section {
    padding: 1.15rem;
    margin-bottom: 1.15rem;
  }

  .upi-preview-body {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .upi-qr-wrapper {
    margin: 0 auto;
  }

  .upi-preview-actions {
    justify-content: center;
  }

  .tax-toggle-card {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .tax-toggle-right {
    justify-content: space-between;
    width: 100%;
  }

  .sync-test-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sync-test-actions .btn {
    width: 100%;
  }
}

/* Common Setting Helpers (replaces inline styles) */
.img-hidden-default {
  display: none;
}

.form-group-zero-margin {
  margin: 0;
}

.form-group-top-space {
  margin-top: 1.25rem;
}

.form-row-top-space {
  margin-top: 1rem;
}

.test-btns-row {
  display: flex;
  gap: 0.5rem;
  padding-top: 2px;
}

.btn-test-action {
  flex: 1;
  text-align: center;
  text-decoration: none;
}

.label-no-margin {
  margin-bottom: 0;
}

/* ==============================================================================
   Variable Product Management & Variant Builder Styles
   ============================================================================== */
.product-type-selector-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.product-type-pills {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.type-pill-label {
  flex: 1;
  cursor: pointer;
}

.type-pill-label input[type="radio"] {
  display: none;
}

.type-pill-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.type-pill-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.type-pill-label input:checked + .type-pill-card {
  border-color: var(--admin-primary);
  background: #fff5f5;
  box-shadow: 0 0 0 1px var(--admin-primary);
}

.type-pill-icon {
  font-size: 1.5rem;
}

.type-pill-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--admin-text-main);
  line-height: 1.2;
}

.type-pill-card small {
  display: block;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Variant Builder Container */
.variant-builder-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.variant-builder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.variant-builder-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.variant-presets-bar {
  margin-bottom: 0.75rem;
  padding: 0.6rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
}

.variant-presets-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.variant-presets-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-variant-preset {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-variant-preset:hover {
  background: var(--admin-primary);
  color: #ffffff;
  border-color: var(--admin-primary);
}

.variant-table-wrapper {
  overflow-x: auto;
  margin-bottom: 0.75rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.variant-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.variant-table th {
  background: #f1f5f9;
  padding: 0.5rem 0.6rem;
  font-weight: 600;
  color: #475569;
  text-align: left;
  border-bottom: 1px solid #cbd5e1;
  white-space: nowrap;
}

.variant-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.variant-table input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.variant-table input:focus {
  border-color: var(--admin-primary);
  outline: none;
}

.btn-remove-variant {
  background: #fee2e2;
  border: none;
  color: #dc2626;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.btn-remove-variant:hover {
  background: #dc2626;
  color: #ffffff;
}

/* Variable Manual & Video Modal */
.manual-content-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.6;
  color: #334155;
}

.manual-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.manual-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.manual-steps-list {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.manual-tip-box {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #1e40af;
  margin-top: 0.75rem;
}

.video-player-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.video-player-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==============================================================================
   RESPONSIVE PRODUCT MANAGEMENT & MOBILE UX ENHANCEMENTS
   ============================================================================== */

/* Catalog Quick Action Toolbar */
.admin-catalog-quick-bar {
  display: none;
}

@media (max-width: 991px) {
  .admin-catalog-quick-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
  }

  .admin-catalog-quick-bar::-webkit-scrollbar {
    display: none;
  }

  .admin-catalog-quick-bar .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
  }

  .topbar-actions .btn-action-manual,
  .topbar-actions .btn-action-video,
  .topbar-actions .btn-action-import,
  .topbar-actions .btn-action-export {
    display: none; /* Safely accessible in quick action bar directly underneath */
  }

  .topbar-actions .btn-action-add {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
  }
}

/* Product Table Components */
.admin-prod-thumb-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.admin-prod-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-prod-video-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.62rem;
  padding: 1px 3px;
  border-radius: 3px 0 0 0;
  text-decoration: none;
  line-height: 1;
}

.admin-prod-title-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-prod-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.admin-variant-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
}

.admin-feat-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.admin-prod-sub-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  flex-wrap: wrap;
}

.meta-cat-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #d97706;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.meta-sku-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
}

.sku-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.admin-price-cell {
  display: flex;
  flex-direction: column;
}

.price-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.price-mrp-strike {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.admin-stock-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

.admin-cat-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

/* Variant Table Mobile Swipe Indicator */
.variant-mobile-scroll-hint {
  display: none;
}

/* ==============================================================================
   MOBILE RESPONSIVE CARD VIEW FOR ADMIN PRODUCT TABLE (<= 768px)
   Eliminates horizontal table scroll, exposes Price, Stock, Edit and Delete
   ============================================================================== */
@media (max-width: 768px) {
  .admin-table-container {
    background: transparent !important;
    border: none !important;
    overflow-x: visible !important;
  }

  .admin-table {
    display: block !important;
    width: 100% !important;
  }

  .admin-table thead {
    display: none !important;
  }

  .admin-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .admin-table tr.admin-product-row {
    display: grid !important;
    grid-template-columns: 46px 1fr !important;
    column-gap: 0.75rem !important;
    row-gap: 0.45rem !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.75rem !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-table td {
    border: none !important;
    padding: 0 !important;
    white-space: normal !important;
  }

  .admin-table td.col-img {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  .admin-table td.col-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .admin-table td.col-sku,
  .admin-table td.col-category {
    display: none !important; /* Meta and SKU already rendered in sub-meta line */
  }

  .admin-table td.col-price {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #f8fafc !important;
    padding: 0.4rem 0.65rem !important;
    border-radius: 6px !important;
    border: 1px solid #f1f5f9 !important;
  }

  .admin-table td.col-price .admin-price-cell {
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 0.4rem !important;
  }

  .admin-table td.col-price .price-val {
    font-size: 1rem !important;
    color: #dc2626 !important;
    font-weight: 800 !important;
  }

  .admin-table td.col-stock {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
    display: flex !important;
    justify-content: flex-end !important;
    pointer-events: none;
  }

  .admin-table td.col-actions {
    grid-column: 1 / 3 !important;
    grid-row: 3 !important;
    display: flex !important;
    padding-top: 0.35rem !important;
    border-top: 1px dashed #e2e8f0 !important;
  }

  .admin-table td.col-actions .action-btn-group {
    width: 100% !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  .admin-table td.col-actions .action-btn.edit {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-radius: 6px !important;
  }

  .admin-table td.col-actions .action-btn.delete {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.95rem !important;
    background: #fee2e2 !important;
    border-radius: 6px !important;
  }

  /* Product Add/Edit Modal Mobile Optimization */
  #productEditModal .modal-content,
  #productImportModal .modal-content {
    border-radius: 16px 16px 0 0 !important;
    max-height: 94vh !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .product-type-pills {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .type-pill-card {
    padding: 0.65rem 0.85rem !important;
    width: 100% !important;
  }

  .variant-mobile-scroll-hint {
    display: block !important;
    font-size: 0.72rem !important;
    color: #b45309 !important;
    background: #fef3c7 !important;
    padding: 0.35rem 0.6rem !important;
    border-radius: 4px !important;
    margin-bottom: 0.4rem !important;
    font-weight: 600 !important;
    text-align: center !important;
  }

  .variant-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }

  .variant-presets-btns {
    gap: 0.35rem !important;
  }

  .btn-variant-preset {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.55rem !important;
  }
}

/* ==============================================================================
   BULK IMPORT MODAL STYLES
   ============================================================================== */
.import-help-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.import-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.75rem 1rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.import-dropzone:hover {
  border-color: #ef4444;
  background: #fef2f2;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.dropzone-text {
  font-size: 0.9rem;
  color: #334155;
}

.import-options-card {
  margin-top: 1rem;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.import-option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #334155;
  cursor: pointer;
  line-height: 1.45;
}

.import-option-label input {
  margin-top: 3px;
}

.import-preview-table-wrap {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
}

.import-preview-table {
  font-size: 0.78rem;
  width: 100%;
}

.import-preview-table th {
  padding: 0.4rem 0.6rem;
  background: #f1f5f9;
  font-weight: 600;
  color: #475569;
}

.import-preview-table td {
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Modal Helper & Accessibility Utility Classes (Eliminates inline styles) */
.modal-product-dialog {
  max-width: 780px !important;
}

.modal-manual-dialog {
  max-width: 760px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.modal-video-dialog {
  max-width: 720px !important;
}

.modal-import-dialog {
  max-width: 680px !important;
  max-height: 92vh !important;
  overflow-y: auto !important;
}

.form-label-tight {
  margin-bottom: 0.25rem !important;
}

.form-group-checkbox-align {
  padding-top: 1.8rem !important;
}

.th-var-name { min-width: 140px; }
.th-var-sku { min-width: 90px; }
.th-var-price { width: 85px; }
.th-var-mrp { width: 85px; }
.th-var-stock { width: 80px; }
.th-var-unit { width: 90px; }
.th-var-action { width: 35px; }

.variant-note-text {
  font-size: 0.78rem !important;
  color: #64748b !important;
  margin-top: 4px !important;
}

.manual-list-nested {
  margin: 0.35rem 0 0 1.25rem !important;
}

.manual-list-nested-compact {
  margin: 0.25rem 0 0 1.25rem !important;
}

.manual-p-spacing {
  margin-top: 0.5rem !important;
}

.video-desc-wrap {
  margin-top: 1rem !important;
  line-height: 1.6 !important;
  font-size: 0.9rem !important;
  color: #475569 !important;
}

.video-desc-title {
  font-size: 1rem !important;
  color: #0f172a !important;
  margin-bottom: 0.35rem !important;
}

.video-settings-callout {
  margin-top: 0.75rem !important;
  background: #f8fafc !important;
  padding: 0.75rem 1rem !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.btn-link-unstyled {
  text-decoration: none !important;
}
