/* ─────────────────────────────────────────────────────────────────────────
   MPOS Design System — style.css
   Dark-mode first, RTL-ready, premium glassmorphism UI
   ───────────────────────────────────────────────────────────────────────── */

/* ── Variables ── */
:root {
  --bg:           #0f1117;
  --bg-2:         #161b27;
  --bg-3:         #1e2536;
  --surface:      rgba(255,255,255,0.05);
  --surface-2:    rgba(255,255,255,0.09);
  --border:       rgba(255,255,255,0.10);
  --border-2:     rgba(255,255,255,0.16);
  --primary:      #6366f1;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99,102,241,0.25);
  --accent:       #8b5cf6;
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #3b82f6;
  --text:         #e2e8f0;
  --text-2:       #94a3b8;
  --text-3:       #64748b;
  --sidebar-w:    260px;
  --topbar-h:     64px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
  --transition:   0.2s ease;
  --font:         'Inter', system-ui, sans-serif;
  --font-ar:      'Cairo', system-ui, sans-serif;
}

[data-theme="light"] {
  --bg:       #f1f5f9;
  --bg-2:     #ffffff;
  --bg-3:     #e2e8f0;
  --surface:  rgba(0,0,0,0.04);
  --surface-2:rgba(0,0,0,0.07);
  --border:   rgba(0,0,0,0.10);
  --border-2: rgba(0,0,0,0.16);
  --text:     #0f172a;
  --text-2:   #475569;
  --text-3:   #94a3b8;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
[lang="ar"] body, [dir="rtl"] body { font-family: var(--font-ar); }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─────────────── LOGIN ─────────────── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.12) 0%, transparent 60%),
              var(--bg);
}
.login-bg-glow {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  margin: 20px;
  position: relative;
  z-index: 1;
}
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; justify-content: center; }
.login-logo-text { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.login-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.login-sub { color: var(--text-2); text-align: center; margin-bottom: 28px; font-size: 14px; }
.login-lang-toggle { text-align: center; margin-top: 20px; }
.lang-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); padding: 8px 20px; border-radius: 20px; font-size: 13px; transition: var(--transition); }
.lang-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ─────────────── GLASS CARD ─────────────── */
.glass-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

/* ─────────────── APP SHELL ─────────────── */
.app-body { overflow: hidden; }
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ─────────────── SIDEBAR ─────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition);
  z-index: 200;
  position: relative;
}
[dir="rtl"] .sidebar { border-right: none; border-left: 1px solid var(--border); }
.sidebar-header { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--border); }
.sidebar-brand { font-size: 18px; font-weight: 800; background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; flex: 1; }
.sidebar-close-btn { display: none; color: var(--text-2); font-size: 16px; padding: 4px 8px; border-radius: var(--radius-sm); transition: var(--transition); }
.sidebar-close-btn:hover { background: var(--surface); color: var(--text); }

.sidebar-user-info { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: white; flex-shrink: 0; }
.user-name { font-weight: 600; font-size: 14px; }
.user-role { font-size: 10px; }

.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-section-label { font-size: 10px; font-weight: 700; color: var(--text-3); padding: 12px 10px 4px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: var(--transition); position: relative; cursor: pointer;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--primary-glow); color: var(--primary); }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--primary); border-radius: 0 2px 2px 0; }
[dir="rtl"] .nav-item.active::before { left: auto; right: 0; border-radius: 2px 0 0 2px; }
.nav-icon { font-size: 16px; flex-shrink: 0; }
.sidebar-footer { padding: 12px 8px; border-top: 1px solid var(--border); }

/* ─────────────── MAIN CONTENT ─────────────── */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: var(--topbar-h); min-height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: var(--bg-2);
  border-bottom: 1px solid var(--border); z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.hamburger-btn { font-size: 20px; color: var(--text-2); padding: 8px; border-radius: var(--radius-sm); transition: var(--transition); display: none; }
.hamburger-btn:hover { background: var(--surface); color: var(--text); }
.page-title { font-size: 18px; font-weight: 700; }
.topbar-shop { font-size: 13px; color: var(--text-2); padding: 5px 12px; background: var(--surface); border-radius: 20px; border: 1px solid var(--border); }
.icon-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-2); transition: var(--transition); }
.icon-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.page-container { flex: 1; overflow-y: auto; overflow-x: hidden; }
.page { display: none; padding: 24px; animation: fadeIn 0.2s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Sidebar Overlay (mobile) */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; }

/* ─────────────── FORMS ─────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input::placeholder { color: var(--text-3); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
[dir="rtl"] .form-select { background-position: left 12px center; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }

/* ─────────────── BUTTONS ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-success { background: var(--success); color: white; border: 1px solid var(--success); }
.btn-success:hover { opacity: 0.9; }
.btn-danger { background: var(--danger); color: white; border: 1px solid var(--danger); }
.btn-danger:hover { opacity: 0.9; }
.btn-warning { background: var(--warning); color: white; border: 1px solid var(--warning); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm); }

/* ─────────────── CARDS ─────────────── */
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.card-sub { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }

/* ─────────────── STAT CARDS ─────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, var(--stat-color, var(--primary)) 200%); opacity: 0.06; }
.stat-card:hover { border-color: var(--stat-color, var(--primary)); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { font-size: 28px; flex-shrink: 0; }
.stat-value { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-2); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: 11px; margin-top: 6px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ─────────────── TABLES ─────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--bg-3); color: var(--text-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 16px; text-align: left; white-space: nowrap; }
[dir="rtl"] .data-table th { text-align: right; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.data-table .actions { display: flex; gap: 6px; align-items: center; }

/* ─────────────── BADGES ─────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-primary { background: var(--primary-glow); color: var(--primary); }
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger  { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info    { background: rgba(59,130,246,0.15); color: var(--info); }
.badge-gray    { background: var(--surface-2); color: var(--text-2); }

/* ─────────────── SEARCH BAR ─────────────── */
.search-bar { position: relative; }
.search-bar input { padding-left: 38px; }
[dir="rtl"] .search-bar input { padding-left: 14px; padding-right: 38px; }
.search-bar::before { content: '🔍'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 15px; pointer-events: none; }
[dir="rtl"] .search-bar::before { left: auto; right: 11px; }

/* ─────────────── PAGE HEADER ─────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.page-header-left h2 { font-size: 22px; font-weight: 800; }
.page-header-left p  { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.page-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─────────────── TABS ─────────────── */
.tab-bar { display: flex; gap: 4px; padding: 4px; background: var(--bg-3); border-radius: var(--radius-sm); margin-bottom: 20px; width: fit-content; }
.tab-btn { padding: 8px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-2); transition: var(--transition); }
.tab-btn.active { background: var(--primary); color: white; }
.tab-btn:hover:not(.active) { background: var(--surface-2); color: var(--text); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─────────────── ALERTS ─────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.alert-error   { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-info    { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: var(--info); }

/* ─────────────── MODAL ─────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); }
.modal-box { max-width: 600px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 18px; transition: var(--transition); flex-shrink: 0; }
.modal-close-btn:hover { background: var(--danger); color: white; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-box.modal-lg { max-width: 900px; }
.modal-box.modal-xl { max-width: 1100px; }

/* ─────────────── TOAST ─────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
[dir="rtl"] .toast-container { right: auto; left: 24px; }
.toast {
  min-width: 280px; max-width: 380px; padding: 14px 18px;
  border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  animation: slideUp 0.3s ease; font-size: 14px;
}
.toast.removing { animation: slideDown 0.3s ease forwards; }
@keyframes slideUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideDown { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(20px); } }
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info    { border-left: 4px solid var(--info); }

/* ─────────────── SPINNER ─────────────── */
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite;
}
.spinner-dark { border: 2px solid var(--border-2); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────── LOADING PLACEHOLDER ─────────────── */
.loading-state { text-align: center; padding: 60px 20px; color: var(--text-2); }
.loading-state .spinner { margin: 0 auto 16px; width: 36px; height: 36px; border-width: 3px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--text-2); }

/* ─────────────── POS LAYOUT ─────────────── */
.pos-layout { display: grid; grid-template-columns: 1fr 380px; gap: 20px; min-height: calc(100vh - var(--topbar-h) - 48px); }
.pos-products-panel { overflow-y: auto; }
.pos-cart-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h) - 48px); position: sticky; top: 0; }
.pos-cart-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.pos-cart-items { flex: 1; overflow-y: auto; padding: 10px; }
.pos-cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 6px; }
.cart-item-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.cart-item-price { font-size: 12px; color: var(--text-2); }
.cart-qty-control { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--border); color: var(--text); font-size: 14px; font-weight: 700; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-display { font-size: 14px; font-weight: 700; min-width: 24px; text-align: center; }
.cart-totals-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.cart-totals-row.total { font-weight: 800; font-size: 18px; color: var(--primary); }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.product-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px;
  cursor: pointer; transition: var(--transition); text-align: center;
  position: relative; overflow: hidden;
}
.product-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 20px var(--primary-glow); }
.product-card-icon { font-size: 32px; margin-bottom: 10px; }
.product-card-name { font-size: 12px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.product-card-price { font-size: 14px; font-weight: 800; color: var(--primary); }
.product-card-stock { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.product-card-oos { opacity: 0.5; cursor: not-allowed; }
.product-card-oos::after { content: 'Out of Stock'; position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--danger); border-radius: var(--radius); }

/* ─────────────── SHOP OVERVIEW GRID ─────────────── */
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.shop-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.shop-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.shop-avatar { width: 44px; height: 44px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.shop-name { font-size: 16px; font-weight: 700; }
.shop-address { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.shop-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shop-stat { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; }
.shop-stat-value { font-size: 18px; font-weight: 800; }
.shop-stat-label { font-size: 11px; color: var(--text-2); margin-top: 2px; }

/* ─────────────── FILTER BAR ─────────────── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-end; }
.filter-bar .form-group { margin-bottom: 0; min-width: 160px; }

/* ─────────────── PAGINATION ─────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.page-btn { padding: 7px 13px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─────────────── PROGRESS BAR ─────────────── */
.progress-bar { height: 6px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.5s ease; }

/* ─────────────── DIVIDER ─────────────── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ─────────────── RTL SPECIFICS ─────────────── */
[dir="rtl"] .data-table th { text-align: right; }
[dir="rtl"] .form-grid { direction: rtl; }
[dir="rtl"] .toast-success { border-left: none; border-right: 4px solid var(--success); }
[dir="rtl"] .toast-error   { border-left: none; border-right: 4px solid var(--danger); }
[dir="rtl"] .nav-item.active::before { left: auto; right: 0; }
[dir="rtl"] .page-header { flex-direction: row-reverse; }

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
  [dir="rtl"] .sidebar { left: auto; right: 0; transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; pointer-events: none; opacity: 0; transition: opacity var(--transition); }
  .sidebar.open ~ .sidebar-overlay { pointer-events: auto; opacity: 1; }
  .hamburger-btn { display: flex !important; }
  .sidebar-close-btn { display: flex; }
  .pos-layout { grid-template-columns: 1fr; }
  .pos-cart-panel { height: auto; position: relative; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .topbar-shop { display: none; }
}

/* ─────────────── PRODUCT SUBTYPE COLORS ─────────────── */
.type-mobile       { --stat-color: #3b82f6; }
.type-watch        { --stat-color: #8b5cf6; }
.type-perfume      { --stat-color: #ec4899; }
.type-accessory    { --stat-color: #f59e0b; }
.type-service      { --stat-color: #22c55e; }
.type-standard     { --stat-color: #6366f1; }

/* ─────────────── CHART CONTAINER ─────────────── */
.chart-container { position: relative; height: 220px; margin: 10px 0; }

/* ─────────────── STOCK STATUS ─────────────── */
.stock-ok       { color: var(--success); }
.stock-low      { color: var(--warning); }
.stock-out      { color: var(--danger); }

/* ─────────────── IMPORT DROPZONE ─────────────── */
.dropzone {
  border: 2px dashed var(--border-2); border-radius: var(--radius-lg);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: var(--transition); background: var(--surface);
}
.dropzone:hover, .dropzone.drag-over { border-color: var(--primary); background: var(--primary-glow); }
.dropzone-icon { font-size: 40px; margin-bottom: 12px; }
.dropzone-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.dropzone-sub { font-size: 13px; color: var(--text-2); }

/* ─────────────── CATEGORY PILL SELECTOR ─────────────── */
.pill-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─────────────── SALE RECEIPT PREVIEW ─────────────── */
.receipt-preview { background: white; color: #000; padding: 24px; border-radius: var(--radius); font-family: 'Courier New', monospace; max-width: 320px; margin: 0 auto; font-size: 13px; line-height: 1.8; }
.receipt-preview h3 { text-align: center; font-size: 16px; margin-bottom: 4px; }
.receipt-divider { border: none; border-top: 1px dashed #000; margin: 8px 0; }
.receipt-row { display: flex; justify-content: space-between; }
.receipt-total { font-weight: 900; font-size: 16px; }

/* ═══════════════════════════════════════════════════════
   NEW COMPONENT STYLES (added for all page modules)
   ═══════════════════════════════════════════════════════ */

/* ── Utility helpers ── */
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-warning { color: var(--warning) !important; }
.text-info    { color: var(--info)    !important; }
.text-muted   { color: var(--text-2); }
.text-sm      { font-size: 12px; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.col-span-2   { grid-column: span 2; }
.dir-rtl      { direction: rtl; text-align: right; }
.align-end    { display: flex; align-items: flex-end; }
.table-responsive { overflow-x: auto; }

/* ── Card header / body ── */
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header h3, .card-header h4 { font-size: 16px; font-weight: 700; }
.card-body { padding: 20px; }

/* ── Page Toolbar ── */
.page-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.toolbar-left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.toolbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.toolbar-left .form-input,
.toolbar-left .form-select { max-width: 200px; }

/* ── Form row ── */
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form-section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}

/* ── Small form elements ── */
.form-input-sm { padding: 6px 10px; font-size: 12px; }
.btn-xs  { padding: 3px 8px; font-size: 11px; }
.btn-group { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Detail grid ── */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.detail-grid label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.detail-grid p { font-size: 14px; margin: 0; }
@media (max-width: 580px) { .detail-grid { grid-template-columns: 1fr; } }

/* ── Totals rows ── */
.totals-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.totals-row:last-child { border-bottom: none; }
.totals-final { font-weight: 800; font-size: 18px; color: var(--primary); }
.sale-totals, .receipt-totals { padding-top: 10px; }

/* ── Stats row ── */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.stats-row .stat-card { flex-direction: column; align-items: flex-start; gap: 4px; }
.stats-row .stat-card .stat-value { font-size: 22px; }

/* ═══ POS PAGE ═══ */
.pos-layout { display: grid; grid-template-columns: 1fr 400px; gap: 16px; height: calc(100vh - var(--topbar-h) - 48px); }
.pos-left { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.pos-right { display: flex; flex-direction: column; gap: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.pos-search-bar { display: flex; gap: 8px; }
.pos-search-bar .form-input { flex: 1; }

.pos-product-grid {
  flex: 1; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; align-content: start;
}
.pos-product-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 10px;
  cursor: pointer; transition: var(--transition); text-align: center;
}
.pos-product-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 16px var(--primary-glow); }
.pos-product-icon  { font-size: 28px; margin-bottom: 8px; }
.pos-product-name  { font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.pos-product-price { font-size: 13px; font-weight: 800; color: var(--primary); }
.pos-product-stock { font-size: 10px; color: var(--text-3); margin-top: 4px; }

.pos-cart-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pos-customer-row { padding: 10px 12px; border-bottom: 1px solid var(--border); position: relative; }
.pos-customer-results { position: absolute; left: 12px; right: 12px; top: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); z-index: 50; box-shadow: var(--shadow); max-height: 200px; overflow-y: auto; }
.pos-cust-item { padding: 10px 14px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--border); }
.pos-cust-item:hover { background: var(--surface); }
.pos-customer-badge { padding: 6px 10px; font-size: 12px; background: var(--primary-glow); border-radius: var(--radius-sm); color: var(--primary); display: flex; align-items: center; gap: 8px; }

.pos-cart-items { flex: 1; overflow-y: auto; padding: 8px; }
.pos-cart-item { background: var(--surface); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 6px; }
.pos-cart-item-info { display: flex; justify-content: space-between; margin-bottom: 6px; }
.pos-cart-item-name { font-size: 13px; font-weight: 600; flex: 1; }
.pos-cart-item-price { font-size: 12px; color: var(--text-2); }
.pos-cart-item-controls { display: flex; align-items: center; gap: 6px; }
.pos-qty { min-width: 24px; text-align: center; font-weight: 700; }
.pos-price-edit { flex: 0 0 auto; }
.pos-empty-cart { display: flex; align-items: center; justify-content: center; height: 100%; opacity: 0.5; }

.pos-totals { padding: 12px 16px; border-top: 1px solid var(--border); }
.pos-totals-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 14px; }
.pos-total-final { font-weight: 800; font-size: 18px; color: var(--primary); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }
.pos-discount-row { display: flex; align-items: center; gap: 6px; }
.pos-payment-row { padding: 10px 16px; border-top: 1px solid var(--border); }
.pos-payment-row .form-label { margin-bottom: 6px; }
.pos-payment-row .btn-group { margin-top: 4px; }
#pos-complete-btn { margin: 10px 16px 16px; border-radius: var(--radius-sm); }
#pos-notes { margin: 0 16px; width: calc(100% - 32px); border-radius: var(--radius-sm); }

@media (max-width: 900px) {
  .pos-layout { grid-template-columns: 1fr; height: auto; }
  .pos-right { position: static; }
}

/* ── Receipt ── */
.receipt { font-family: 'Courier New', monospace; max-width: 360px; margin: 0 auto; }
.receipt-header { text-align: center; margin-bottom: 12px; }
.receipt-header h2 { font-size: 18px; font-weight: 800; }
.receipt-table { border-collapse: collapse; font-size: 12px; }
.receipt-table th, .receipt-table td { padding: 4px 8px; text-align: left; border-bottom: 1px dotted var(--border); }
.receipt-totals { margin-top: 12px; }
.receipt-totals > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; }
.receipt-total-final { font-weight: 800; font-size: 16px; border-top: 2px solid var(--text); padding-top: 6px !important; }
.receipt-footer { text-align: center; margin-top: 12px; font-size: 12px; color: var(--text-2); }

/* ── Purchase / Transfer item rows ── */
.purch-item-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.purch-item-row:last-child { border-bottom: none; }

/* ═══ REPORTS ═══ */
.reports-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; background: var(--bg-3); padding: 4px; border-radius: var(--radius-sm); width: fit-content; }
.reports-tabs .tab-btn { padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text-2); border-radius: var(--radius-sm); transition: var(--transition); }
.reports-tabs .tab-btn.active { background: var(--primary); color: white; }
.reports-tabs .tab-btn:hover:not(.active) { background: var(--surface-2); color: var(--text); }

.report-filters.card { margin-bottom: 16px; }
.report-filters .form-row { align-items: flex-end; gap: 12px; }
.reports-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .reports-two-col { grid-template-columns: 1fr; } }

/* ═══ ADMIN SHOPS ═══ */
.admin-shops-layout { display: flex; flex-direction: column; gap: 16px; }
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 20px; }
.shop-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: var(--transition);
}
.shop-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.shop-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.shop-icon { font-size: 28px; }
.shop-card-header h4 { font-size: 16px; font-weight: 700; }
.shop-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.shop-card-stats div { background: var(--surface); border-radius: var(--radius-sm); padding: 8px 10px; }
.shop-card-stats .stat-label { font-size: 10px; color: var(--text-3); display: block; margin-bottom: 2px; }
.shop-card-stats .stat-val { font-size: 14px; font-weight: 700; }
.shop-card-footer { display: flex; align-items: center; justify-content: space-between; }

.sub-tabs { display: flex; gap: 4px; padding: 12px 20px 0; border-bottom: 1px solid var(--border); }
.sub-tabs .tab-btn { padding: 8px 16px; font-size: 13px; }

/* ═══ SETTINGS ═══ */
.settings-layout { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.settings-list { display: flex; flex-direction: column; gap: 0; }
.setting-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.setting-item:last-child { border-bottom: none; }
.setting-label { font-size: 14px; font-weight: 600; margin-bottom: 3px; }

/* ═══ BULK IMPORT ═══ */
.bulk-import-layout { display: flex; flex-direction: column; gap: 16px; }
.import-steps { display: flex; flex-direction: column; gap: 16px; }
.import-step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-glow); color: var(--primary); border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.import-step strong { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.file-drop-zone {
  margin-top: 8px; border: 2px dashed var(--border-2); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; cursor: pointer; transition: var(--transition);
  background: var(--surface);
}
.file-drop-zone:hover, .file-drop-zone.drag-over { border-color: var(--primary); background: var(--primary-glow); }
.drop-icon { font-size: 32px; margin-bottom: 8px; }
.import-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.import-error-list { list-style: disc; padding-left: 18px; font-size: 13px; color: var(--danger); }

/* ═══ CATEGORIES ═══ */
.categories-grid-layout { display: flex; flex-direction: column; gap: 16px; }
.cat-name-row { display: flex; align-items: center; gap: 8px; }
.cat-color-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.color-input-row { display: flex; align-items: center; gap: 8px; }

/* ═══ USERS ═══ */
.user-row { display: flex; align-items: center; gap: 10px; }
.user-avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; flex-shrink: 0;
}

/* ═══ JOB CARDS ═══ */
.sale-detail .detail-grid { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .sale-detail .detail-grid { grid-template-columns: 1fr; } }

/* ═══ INVENTORY ═══ */
.qty-display { font-weight: 700; font-size: 16px; }

/* ── Print Receipt ── */
@media print {
  @page { margin: 0; }
  
  /* Hide the main app shell completely so it takes zero height */
  #app-shell, #login-screen, #toast-container, #camera-scanner-modal {
    display: none !important;
  }
  
  /* Only display the modal container */
  .modal-overlay {
    position: static !important;
    display: block !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .modal-box {
    max-width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Hide modal title and buttons */
  .modal-header, .modal-footer { display: none !important; }
  .modal-body { padding: 0 !important; margin: 0 !important; overflow: visible !important; }

  /* Ensure receipt fits the paper naturally */
  #receipt-content {
    position: static !important;
    width: 100% !important;
  }
  
  .receipt {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 5px !important;
  }
}

/* ── Section title ── */
.section-title { font-size: 15px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   QUICK SELL MODAL
   ══════════════════════════════════════════════════════════ */
.quick-sell-form { display: flex; flex-direction: column; gap: 12px; }
.quick-sell-product-info {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.quick-sell-icon { font-size: 36px; }
.quick-sell-name { font-size: 16px; font-weight: 700; }
.quick-sell-name-ar { font-size: 13px; color: var(--text-2); direction: rtl; }
.quick-sell-stock { font-size: 12px; margin-top: 4px; }
.quick-sell-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--primary-glow);
  border-radius: var(--radius-sm); border: 1px solid var(--primary);
  font-size: 15px;
}
.quick-sell-total strong { font-size: 22px; color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   BULK IMPORT / EXPORT ENHANCEMENTS
   ══════════════════════════════════════════════════════════ */
.bulk-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-top: 12px;
}
.export-type-btn {
  padding: 12px 16px; justify-content: flex-start;
  font-size: 13px; gap: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.export-type-btn:hover { background: var(--primary-glow); border-color: var(--primary); color: var(--primary); }

.bulk-type-selector {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.type-radio-card {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 13px; font-weight: 500; transition: var(--transition);
  background: var(--surface);
}
.type-radio-card input[type="radio"] { accent-color: var(--primary); }
.type-radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-glow); color: var(--primary); }
.type-radio-card:hover { border-color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   ADMIN SHOPS — CATEGORY DRILL-DOWN
   ══════════════════════════════════════════════════════════ */
.cat-summary-row { background: var(--surface); }
.cat-summary-row:hover td { background: var(--surface-2) !important; }
.cat-expand-icon {
  display: inline-block; width: 18px; height: 18px; line-height: 18px;
  text-align: center; margin-right: 8px; color: var(--text-2);
  font-size: 11px; transition: var(--transition);
}
[dir="rtl"] .cat-expand-icon { margin-right: 0; margin-left: 8px; }
.cat-products-row td { padding: 0 !important; }
.cat-nested-table { border-top: 1px solid var(--border); background: var(--bg-3); }
.cat-nested-table th { font-size: 11px; padding: 8px 16px; background: var(--bg-3); }
.cat-nested-table td { font-size: 12px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.cat-nested-table tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════════════
   STATUS label
   ══════════════════════════════════════════════════════════ */
.status-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--text-3); }

/* ══════════════════════════════════════════════════════════
   ACCESSORIES PAGE
   ══════════════════════════════════════════════════════════ */
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }

/* ══════════════════════════════════════════════════════════
   SALES THIS MONTH stat key (admin shop)
   ══════════════════════════════════════════════════════════ */
.sales_this_month { color: var(--primary); }

/* ══════════════════════════════════════════════════════════
   MODAL SIZE md
   ══════════════════════════════════════════════════════════ */
.modal-box.modal-md { max-width: 560px; }

/* ══════════════════════════════════════════════════════════
   RTL improvements
   ══════════════════════════════════════════════════════════ */
[dir="rtl"] .cat-summary-row .cat-expand-icon { transform: scaleX(-1); }
[dir="rtl"] .toast-warning { border-left: none; border-right: 4px solid var(--warning); }
[dir="rtl"] .toast-info    { border-left: none; border-right: 4px solid var(--info); }
[dir="rtl"] .actions { flex-direction: row-reverse; }
[dir="rtl"] .bulk-export-grid { direction: rtl; }
[dir="rtl"] .type-radio-card { flex-direction: row-reverse; }

/* ══════════════════════════════════════════════════════════
   WATCH/PERFUME table improvements
   ══════════════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }
.data-table .actions .btn { white-space: nowrap; }

/* ══════════════════════════════════════════════════════════
   IMPORT PREVIEW TABLE
   ══════════════════════════════════════════════════════════ */
#import-preview .data-table th,
#import-preview .data-table td { font-size: 11px; padding: 6px 10px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
