/* =============================================================
   GED Speed Enterprise — Store Management System
   Brand: Deep Forest Green #1A5C38 + Gold #C8A84B + White
   Fonts: Playfair Display (headings) + Inter (body)
   Powered by Probus Consortium
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* ── GED Speed Brand Palette ── */
  --brand-green:   #1A5C38;   /* deep forest green — primary */
  --brand-green-2: #22703F;   /* slightly lighter green */
  --brand-green-3: #0F3D25;   /* darkest green — sidebar */
  --brand-gold:    #C8A84B;   /* warm gold accent */
  --brand-gold-lt: #E8C96B;   /* light gold for hover */
  --brand-cream:   #FAFDF7;   /* very light green-white bg */
  --brand-mint:    #EEF7F1;   /* subtle mint surface */

  --sidebar-w:     252px;
  --topbar-h:      64px;

  --text-primary:  #0F2D1A;
  --text-secondary:#3D6B50;
  --text-muted:    #7A9E87;

  --surface:       #FFFFFF;
  --surface-2:     #FAFDF7;
  --surface-3:     #EEF7F1;
  --border:        #C8E0D0;
  --border-soft:   #DDF0E4;

  --success:       #1A7A40;
  --warning:       #B87A10;
  --danger:        #C03535;
  --info:          #1A5B8C;

  --shadow-sm:  0 1px 4px rgba(15,45,26,.07);
  --shadow-md:  0 4px 18px rgba(15,45,26,.11);
  --shadow-lg:  0 8px 36px rgba(15,45,26,.16);

  --radius:    10px;
  --radius-lg: 16px;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--surface-2);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--brand-green-3);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s ease;
  box-shadow: 3px 0 20px rgba(0,0,0,.2);
}

/* Brand / Logo block */
.sidebar-brand {
  padding: 20px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.15);
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  flex-shrink: 0;
}
.brand-logo-fallback {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  flex-shrink: 0;
  padding: 4px;
}
.brand-logo-fallback svg { width: 38px; height: 38px; }
.brand-text { min-width: 0; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tagline {
  font-size: .67rem;
  color: var(--brand-gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.brand-store-label {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
  margin-top: 4px;
  font-weight: 400;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 0; }

.nav-section-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 12px 20px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 400;
  transition: all .18s;
  border-left: 3px solid transparent;
  margin: 1px 0;
}
.nav-item svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.nav-item:hover { background: rgba(200,168,75,.12); color: rgba(255,255,255,.9); }
.nav-item.active {
  background: rgba(200,168,75,.18);
  color: var(--brand-gold);
  border-left-color: var(--brand-gold);
  font-weight: 500;
}

/* Powered-by footer in sidebar */
.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.user-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green-2), var(--brand-gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem; color: #fff; flex-shrink: 0;
}
.user-name { font-size: .84rem; font-weight: 500; color: #fff; }
.user-role { font-size: .71rem; color: rgba(255,255,255,.4); text-transform: capitalize; }
.btn-logout {
  display: block; width: 100%; text-align: center;
  padding: 7px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45); font-size: .78rem;
  transition: all .2s;
}
.btn-logout:hover { background: rgba(200,168,75,.2); color: var(--brand-gold); border-color: var(--brand-gold); }

/* Probus credit at very bottom */
.probus-credit {
  padding: 10px 18px 14px;
  text-align: center;
  font-size: .66rem;
  color: rgba(255,255,255,.22);
  border-top: 1px solid rgba(255,255,255,.05);
}
.probus-credit a { color: rgba(255,255,255,.35); }
.probus-credit a:hover { color: var(--brand-gold); }

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 2px solid var(--brand-green);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.menu-toggle { display: none; padding: 6px; border-radius: 6px; color: var(--text-secondary); }
.menu-toggle:hover { background: var(--surface-3); }
.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* Logo in topbar (visible on mobile when sidebar hidden) */
.topbar-logo {
  display: none;
  align-items: center;
  gap: 8px;
}
.topbar-logo-img {
  height: 36px; width: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--brand-green-3);
  padding: 3px;
}
.topbar-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-green);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  flex: 1;
  color: var(--brand-green-3);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.store-tag {
  font-size: .7rem;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ── MAIN CONTENT ───────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  padding: 28px;
  flex: 1;
  min-height: calc(100vh - var(--topbar-h));
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-green-3);
}
.card-body { padding: 18px 22px; }

/* ── STAT CARDS ─────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-green), var(--brand-gold));
}
.stat-label { font-size: .76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--brand-green-3); line-height: 1; }
.stat-sub   { font-size: .74rem; color: var(--text-secondary); margin-top: 4px; }
.stat-icon  {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 22px; height: 22px; fill: var(--brand-green); }

/* ── TABLES ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
thead tr { background: var(--surface-3); border-bottom: 2px solid var(--border); }
thead th { padding: 11px 14px; text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--brand-green); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border-soft); transition: background .15s; }
tbody tr:hover { background: var(--surface-2); }
tbody td { padding: 11px 14px; }
tbody tr:last-child { border-bottom: none; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: .71rem; font-weight: 500; }
.badge-success { background: #E0F5E9; color: var(--success); }
.badge-warning { background: #FEF3E2; color: var(--warning); }
.badge-danger  { background: #FDECEC; color: var(--danger);  }
.badge-info    { background: #E2EEF8; color: var(--info);    }
.badge-neutral { background: var(--surface-3); color: var(--text-secondary); }
.badge-green   { background: var(--brand-mint); color: var(--brand-green); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 8px; font-size: .87rem; font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-primary {
  background: var(--brand-green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,92,56,.3);
}
.btn-primary:hover { background: var(--brand-green-2); box-shadow: 0 4px 14px rgba(26,92,56,.4); transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-lt));
  color: var(--brand-green-3);
  box-shadow: 0 2px 8px rgba(200,168,75,.35);
  font-weight: 600;
}
.btn-gold:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,168,75,.5); }
.btn-outline { border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand-green); color: var(--brand-green); background: var(--surface-3); }
.btn-danger  { background: #FDECEC; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: #E0F5E9; color: var(--success); }
.btn-success:hover { background: var(--success); color: #fff; }
.btn-sm   { padding: 6px 12px; font-size: .79rem; }
.btn-lg   { padding: 13px 28px; font-size: 1rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 8px; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .81rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-primary); font-size: .87rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus { border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(26,92,56,.1); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,35,20,.55); backdrop-filter: blur(3px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .25s ease;
}
.modal-lg { max-width: 780px; }
.modal-header { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: var(--brand-green-3); }
.modal-close  { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.modal-close:hover { background: var(--surface-2); color: var(--text-primary); }
.modal-close svg { width: 18px; height: 18px; fill: currentColor; }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 0 24px 20px; display: flex; gap: 10px; justify-content: flex-end; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── SEARCH / FILTER BAR ────────────────────────────────────── */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search-wrap { position: relative; flex: 1; min-width: 200px; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: var(--text-muted); }
.search-input { width: 100%; padding: 9px 12px 9px 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: .87rem; outline: none; }
.search-input:focus { border-color: var(--brand-green); }

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: .87rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #E0F5E9; color: var(--success); border-left: 3px solid var(--success); }
.alert-danger  { background: #FDECEC; color: var(--danger);  border-left: 3px solid var(--danger); }
.alert-warning { background: #FEF3E2; color: var(--warning); border-left: 3px solid var(--warning); }

/* ── LOGIN PAGE ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; width: 100%;
  background-color: #1A5C38;
  background-image: linear-gradient(145deg, #0F3D25 0%, #1A5C38 50%, #2A7A4A 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  position: relative; overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(200,168,75,.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(255,255,255,.04) 0%, transparent 40%);
  pointer-events: none;
}
.login-card {
  background: #FFFFFF;
  border-radius: 20px; padding: 44px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  position: relative;
}
/* Top accent bar — solid green only */
.login-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: #1A5C38;
  border-radius: 20px 20px 0 0;
}

.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-img {
  width: 90px; height: 90px;
  object-fit: contain; margin: 0 auto 12px;
  display: block;
}
.login-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--brand-green-3);
  display: block;
}
.login-logo-sub {
  font-size: .72rem; color: var(--text-muted);
  letter-spacing: .12em; text-transform: uppercase;
  display: block; margin-top: 3px;
}
.login-store-label {
  display: inline-block;
  background: var(--brand-mint);
  color: var(--brand-green);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--border);
  margin-top: 8px;
}
.login-card .btn-primary { width: 100%; justify-content: center; margin-top: 6px; }

/* Force white inputs inside login card - override any dark-mode or inherited styles */
.login-card .form-control {
  background: #FFFFFF !important;
  color: #0F3D25 !important;
  border-color: #C8E0D0 !important;
}
.login-card .form-control::placeholder { color: #9ABFA8 !important; }
.login-card .form-control:focus {
  border-color: #1A5C38 !important;
  box-shadow: 0 0 0 3px rgba(26,92,56,.12) !important;
}
.login-card .form-label { color: #3D6B50 !important; }

/* Probus footer on login */
.login-probus {
  text-align: center;
  margin-top: 20px;
  font-size: .72rem;
  color: var(--text-muted);
}
.login-probus a { color: var(--brand-green); font-weight: 500; }

/* ── POS LAYOUT ─────────────────────────────────────────────── */
.pos-layout { display: grid; grid-template-columns: 1fr 370px; gap: 20px; height: calc(100vh - var(--topbar-h) - 56px); }
.pos-products { display: flex; flex-direction: column; overflow: hidden; }
.pos-cart-panel { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-md); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; overflow-y: auto; padding: 4px 2px; flex: 1; }
.product-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 12px; cursor: pointer; transition: all .2s; text-align: center;
}
.product-tile:hover { border-color: var(--brand-green); box-shadow: 0 4px 14px rgba(26,92,56,.18); transform: translateY(-2px); }
.product-tile.out-of-stock { opacity: .42; pointer-events: none; }
.product-tile-name  { font-size: .81rem; font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
.product-tile-price { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 600; color: var(--brand-green); }
.product-tile-stock { font-size: .69rem; color: var(--text-muted); margin-top: 2px; }
.product-cat-badge  { font-size: .64rem; background: var(--surface-3); color: var(--brand-green); padding: 2px 7px; border-radius: 4px; margin-bottom: 7px; display: inline-block; font-weight: 500; }

.cart-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); }
.cart-header h3 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; color: var(--brand-green-3); }
.cart-items { flex: 1; overflow-y: auto; padding: 8px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 8px; margin-bottom: 4px; transition: background .15s; }
.cart-item:hover { background: var(--surface-2); }
.cart-item-name  { flex: 1; font-size: .84rem; font-weight: 500; line-height: 1.3; }
.cart-item-price { font-size: .78rem; color: var(--text-secondary); }
.cart-qty-ctrl   { display: flex; align-items: center; gap: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 600; color: var(--text-secondary); transition: all .15s; }
.qty-btn:hover { border-color: var(--brand-green); color: var(--brand-green); background: var(--surface-3); }
.cart-item-total { font-weight: 600; font-size: .88rem; min-width: 62px; text-align: right; }
.cart-item-del { color: var(--danger); opacity: .45; transition: opacity .15s; }
.cart-item-del:hover { opacity: 1; }
.cart-item-del svg { width: 15px; height: 15px; fill: currentColor; }

.cart-summary { padding: 12px 16px; border-top: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 4px 0; color: var(--text-secondary); }
.summary-row.total { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; }
.summary-row.total span:last-child { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: var(--brand-green); }
.cart-actions { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); }
.cart-empty-msg { text-align: center; padding: 32px 16px; color: var(--text-muted); font-size: .84rem; }

/* ── PAYMENT MODAL ──────────────────────────────────────────── */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.payment-method {
  padding: 12px; border-radius: 8px; border: 2px solid var(--border);
  text-align: center; cursor: pointer; transition: all .2s;
}
.payment-method:hover { border-color: var(--brand-green); }
.payment-method.selected { border-color: var(--brand-green); background: rgba(26,92,56,.07); }
.payment-method svg { width: 24px; height: 24px; fill: var(--brand-green); margin-bottom: 4px; }
.payment-method span { display: block; font-size: .79rem; font-weight: 500; }

/* ── RECEIPT ────────────────────────────────────────────────── */
.receipt { font-size: .84rem; max-width: 340px; margin: 0 auto; }
.receipt-header { text-align: center; padding-bottom: 10px; border-bottom: 2px dashed #ccc; margin-bottom: 10px; }
.receipt-header h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--brand-green-3); }
.receipt-line { display: flex; justify-content: space-between; padding: 3px 0; }
.receipt-divider { border: none; border-top: 1px dashed #ccc; margin: 8px 0; }
.receipt-total { font-weight: 700; font-size: 1rem; }
.receipt-footer { text-align: center; margin-top: 10px; font-size: .74rem; color: #777; }
.receipt-probus { text-align: center; margin-top: 8px; font-size: .65rem; color: #aaa; }

/* ── LOW STOCK ALERT ────────────────────────────────────────── */
.low-stock-bar {
  background: linear-gradient(90deg, #FEF3E2, #FFFDF6);
  border: 1px solid #F8D095; border-radius: 8px;
  padding: 10px 16px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--warning);
}
.low-stock-bar svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ── STOCK LEVEL BAR ────────────────────────────────────────── */
.stock-bar-wrap { display: flex; align-items: center; gap: 8px; }
.stock-bar-bg   { flex: 1; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.stock-bar-fill { height: 100%; border-radius: 3px; background: var(--success); transition: width .4s; }
.stock-bar-fill.low    { background: var(--warning); }
.stock-bar-fill.danger { background: var(--danger); }

/* ── SCROLLBARS ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .topbar { left: 0; }
  .topbar-logo { display: flex; }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .pos-layout { grid-template-columns: 1fr; height: auto; }
}
@media (max-width: 600px) {
  .main-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-600 { font-weight: 600; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.gap-8 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
