/* =====================================================================
   PURE POS — Master Stylesheet
   Dark + Gold Premium Theme | Professional UI
   by Nexfloit - Redesigned
   ===================================================================== */

/* ── CSS Variables ─────────────────────────────────────────────────── */
:root {
  /* ═══ UNIFIED GOLD/AMBER PALETTE ═══ */
  /* Primary Brand Gold - Single cohesive scale */
  --cp-primary: #c9a227;
  --cp-primary-dark: #b08d1e;
  --cp-primary-light: #d4a843;
  --cp-primary-soft: #e0c068;

  /* Gold Scale - Harmonious gradients */
  --cp-blue-900: #7a5f0a;
  --cp-blue-800: #8c6d10;
  --cp-blue-700: #a07c15;
  --cp-blue-600: #c9a227;
  --cp-blue-500: #d4a843;
  --cp-blue-400: #e0c068;
  --cp-blue-300: #e8d08a;
  --cp-blue-200: #f0dfaa;
  --cp-blue-100: #2a2510;
  --cp-blue-50:  #1e1b0e;

  /* Status Colors - Minimal, functional */
  --cp-success: #10b981;
  --cp-success-light: #0d2e22;
  --cp-warning: #f59e0b;
  --cp-warning-light: #2e2206;
  --cp-danger: #ef4444;
  --cp-danger-light: #2e0e0e;

  /* Sidebar - Dark with gold accents */
  --cp-sidebar-bg:     linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  --cp-sidebar-text:   #888888;
  --cp-sidebar-active: #c9a227;
  --cp-sidebar-hover:  rgba(201, 162, 39, 0.08);
  --cp-sidebar-width:  260px;

  /* UI Foundation - Dark surfaces */
  --cp-bg:            #0d0d0d;
  --cp-bg-alt:        #141414;
  --cp-surface:       #1a1a1a;
  --cp-surface-alt:   #1e1e1e;
  --cp-border:        #2a2a2a;
  --cp-border-light:  #333333;
  --cp-text:          #f0f0f0;
  --cp-text-muted:    #888888;
  --cp-text-light:    #666666;

  /* Shadows - Dark tint */
  --cp-shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.3);
  --cp-shadow-md:  0 4px 12px rgba(0, 0, 0, 0.4);
  --cp-shadow-lg:  0 8px 24px rgba(0, 0, 0, 0.5);
  --cp-shadow-xl:  0 16px 48px rgba(0, 0, 0, 0.6);

  /* Border Radius - Consistent */
  --cp-radius-sm:  6px;
  --cp-radius-md:  10px;
  --cp-radius-lg:  14px;
  --cp-radius-xl:  20px;

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Dark Theme */
[data-theme="dark"] {
  --cp-bg:            #0d0d0d;
  --cp-bg-alt:        #141414;
  --cp-surface:       #1a1a1a;
  --cp-border:        #2a2a2a;
  --cp-border-light:  #333333;
  --cp-text:          #f0f0f0;
  --cp-text-muted:    #888888;
  --cp-text-light:    #666666;
  --cp-sidebar-bg:    linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

/* Light + Gold Theme */
[data-theme="light"] {
  --cp-primary: #b8941e;
  --cp-primary-dark: #9a7c18;
  --cp-primary-light: #c9a227;
  --cp-primary-soft: #d4a843;

  --cp-bg:            #f5f0e8;
  --cp-bg-alt:        #ede7db;
  --cp-surface:       #ffffff;
  --cp-surface-alt:   #faf7f0;
  --cp-border:        #e0d5c0;
  --cp-border-light:  #eae2d2;
  --cp-text:          #2c2417;
  --cp-text-muted:    #7a6e5d;
  --cp-text-light:    #a09585;

  --cp-sidebar-bg:    linear-gradient(180deg, #1a1508 0%, #0f0d05 100%);
  --cp-sidebar-text:  #a09585;
  --cp-sidebar-active:#c9a227;
  --cp-sidebar-hover: rgba(201, 162, 39, 0.08);

  --cp-success-light: #e6f7ef;
  --cp-warning-light: #fef6e0;
  --cp-danger-light:  #fde8e8;

  --cp-shadow-sm:  0 1px 3px rgba(44, 36, 23, 0.06);
  --cp-shadow-md:  0 4px 12px rgba(44, 36, 23, 0.08);
  --cp-shadow-lg:  0 8px 24px rgba(44, 36, 23, 0.12);
  --cp-shadow-xl:  0 16px 48px rgba(44, 36, 23, 0.16);
}

/* ── Reset & Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--cp-bg);
  color: var(--cp-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.text-mono, .text-mono * { font-family: var(--font-mono) !important; }
.fw-600 { font-weight: 600; }
a { color: var(--cp-blue-500); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cp-blue-400); }

/* ── Sidebar ───────────────────────────────────────────────────────── */
.cpos-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--cp-sidebar-width);
  background: var(--cp-sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease, width 0.3s ease;
  overflow: hidden;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
  border-right: 1px solid #1a1a1a;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #141414;
  border: 1.5px solid #c9a227;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2);
  overflow: hidden;
}
.brand-name { display: block; font-weight: 800; font-size: 18px; color: #f0f0f0; line-height: 1.2; letter-spacing: -0.3px; }
.brand-tagline { display: block; font-size: 11px; color: var(--cp-sidebar-text); letter-spacing: .5px; margin-top: 2px; }
.sidebar-toggle { background: none; border: none; color: var(--cp-sidebar-text); font-size: 18px; cursor: pointer; padding: 6px; border-radius: 8px; transition: all .2s; }
.sidebar-toggle:hover { background: rgba(255,255,255,.06); color: #f0f0f0; }

.sidebar-store {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  margin: 8px 12px;
  background: rgba(201, 162, 39, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.1);
}
.store-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(201,162,39,.2), rgba(176,141,30,.15));
  color: #c9a227;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.store-name  { font-size: 14px; font-weight: 700; color: #f0f0f0; line-height: 1.3; }
.store-role  { font-size: 11px; color: var(--cp-blue-500); font-weight: 500; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.06) transparent; }
.nav-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: rgba(255,255,255,.2);
  padding: 8px 12px 8px; margin-top: 8px;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--cp-sidebar-text); font-size: 14px; font-weight: 500;
  transition: all .25s cubic-bezier(.4,0,.2,1); cursor: pointer; text-decoration: none;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.nav-link i { font-size: 18px; width: 22px; flex-shrink: 0; transition: transform .2s; }
.nav-link:hover {
  background: var(--cp-sidebar-hover);
  color: #f0f0f0;
  border-color: rgba(201,162,39,.12);
  transform: translateX(4px);
}
.nav-link:hover i { transform: scale(1.1); }
.nav-link.active {
  background: linear-gradient(135deg, rgba(201,162,39,.2) 0%, rgba(176,141,30,.1) 100%);
  color: #c9a227;
  font-weight: 600;
  border-color: rgba(201,162,39,.25);
  box-shadow: 0 4px 15px rgba(201,162,39,.12);
}
.nav-link.active i { color: #c9a227; }
.nav-badge {
  margin-left: auto;
  background: var(--cp-primary);
  color: #0d0d0d; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  letter-spacing: .3px;
}
.nav-chevron { font-size: 11px !important; transition: transform .2s; }
.nav-link:not(.collapsed) .nav-chevron { transform: rotate(180deg); }
.nav-submenu { padding-left: 20px; }
.nav-sublink {
  display: block; padding: 8px 14px; font-size: 13px;
  color: var(--cp-sidebar-text); border-radius: 8px;
  margin-bottom: 2px; transition: all .2s;
  border-left: 2px solid transparent;
}
.nav-sublink:hover, .nav-sublink.active {
  color: var(--cp-blue-500);
  background: rgba(201,162,39,.05);
  border-left-color: var(--cp-blue-500);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.2);
}
.sidebar-user { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #c9a227, #a07c15);
  color: #0d0d0d; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-name  { font-size: 13px; font-weight: 600; color: #f0f0f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 11px; color: var(--cp-sidebar-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-logout {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.15);
  color: #f87171;
  font-size: 16px; cursor: pointer;
  padding: 8px; border-radius: 10px;
  transition: all .2s;
}
.btn-logout:hover { background: rgba(239,68,68,.15); color: #ef4444; transform: scale(1.05); }

/* ── Main Content ─────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--cp-sidebar-width);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .3s;
  background: var(--cp-bg);
}
.page-content { flex: 1; padding: 28px; }

/* ── Topbar ───────────────────────────────────────────────────────── */
.topbar {
  height: 64px;
  background: var(--cp-surface);
  border-bottom: 1px solid var(--cp-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--cp-shadow-sm);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-center { flex: 1; display: flex; justify-content: center; align-items: center; }

/* POS Topbar Controls - Clean Unified Design */
.pos-topbar-controls {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid #2a2a2a;
  border-radius: 50px;
  padding: 6px;
  gap: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

/* Cashier Info */
.topbar-cashier-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #252525;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.topbar-cashier-info i {
  color: #c9a227;
  font-size: 15px;
}
.cashier-session-badge {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}

/* Divider */
.topbar-display-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
  border-left: 1px solid #333;
  margin-left: 4px;
}

/* Control Buttons */
.btn-display-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  border: none;
  background: #252525;
  color: #999;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.btn-display-control i:first-child {
  font-size: 14px;
}
.btn-display-control:hover {
  background: #333;
  color: #c9a227;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Display Active State */
.btn-display-control.display-active {
  background: linear-gradient(135deg, #c9a227, #a07c15);
  color: #0d0d0d;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
}
.btn-display-control.display-active:hover {
  background: linear-gradient(135deg, #d4a843, #b08d1e);
  transform: translateY(-1px);
}
.btn-display-control.display-active i {
  color: #0d0d0d;
}

/* Close Register Button */
.btn-display-control.btn-close-register {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.btn-display-control.btn-close-register:hover {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.45);
}
.btn-display-control.btn-close-register i {
  color: #fff;
}

/* Toggle Icon Styling */
#displayToggleIcon {
  font-size: 16px;
  margin-left: 2px;
}
#displayToggleIcon.bi-toggle-on {
  color: #22c55e;
}

@media (max-width: 992px) {
  .pos-topbar-controls {
    padding: 4px;
  }
  .topbar-cashier-info {
    padding: 6px 12px;
    font-size: 12px;
  }
  .topbar-cashier-info span:not(.cashier-session-badge) {
    display: none;
  }
  .btn-display-control {
    padding: 6px 10px;
    font-size: 11px;
  }
  .btn-display-control span {
    display: none;
  }
}

@media (max-width: 768px) {
  .topbar-center { display: none; }
}

.topbar-toggle {
  background: var(--cp-blue-50);
  border: 1px solid var(--cp-blue-100);
  font-size: 20px; cursor: pointer;
  color: var(--cp-primary);
  padding: 8px 10px; border-radius: 10px;
  transition: all .2s;
}
.topbar-toggle:hover { background: var(--cp-blue-100); transform: scale(1.05); box-shadow: var(--cp-shadow-sm); }
.breadcrumb { font-size: 13px; background: transparent; margin: 0; padding: 0; }
.breadcrumb-item a { color: var(--cp-text-muted); }
.breadcrumb-item.active { color: var(--cp-primary); font-weight: 600; }
.topbar-clock {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--cp-primary);
  background: linear-gradient(135deg, #1e1b0e, #2a2510);
  padding: 8px 16px; border-radius: 25px;
  border: 1px solid rgba(201,162,39,.15);
}
.btn-pos-quick, .btn-theme-toggle, .btn-notif {
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--cp-border);
  background: var(--cp-surface);
  color: var(--cp-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: all .25s; position: relative;
}
.btn-pos-quick:hover, .btn-theme-toggle:hover, .btn-notif:hover {
  background: var(--cp-blue-50);
  color: var(--cp-primary);
  border-color: rgba(201,162,39,.2);
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-sm);
}
.btn-pos-quick {
  color: #0d0d0d;
  background: var(--cp-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}
.btn-pos-quick:hover {
  background: var(--cp-primary-dark);
  transform: translateY(-2px);
}
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 12px;
  min-width: 18px; text-align: center;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
}
.notif-dropdown { width: 320px; padding: 0; border-radius: 16px; box-shadow: var(--cp-shadow-lg); border: 1px solid var(--cp-border); overflow: hidden; background: var(--cp-surface); }
.notif-header { padding: 14px 18px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--cp-border); background: var(--cp-surface-alt); color: var(--cp-primary); }
.notif-item { display: flex; gap: 14px; padding: 14px 18px; align-items: flex-start; transition: background .2s; }
.notif-item:hover { background: var(--cp-blue-50); }
.notif-title { font-size: 13px; font-weight: 600; color: var(--cp-text); }
.notif-text  { font-size: 12px; color: var(--cp-text-muted); }
.notif-empty { padding: 24px; text-align: center; color: var(--cp-text-muted); font-size: 13px; }

/* ── Page Header ─────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cp-border-light);
}
.page-title {
  font-size: 24px; font-weight: 700;
  color: var(--cp-text); line-height: 1.2;
  letter-spacing: -0.3px;
}
.page-subtitle { font-size: 14px; color: var(--cp-text-muted); margin-top: 4px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-cpos {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  transition: all .25s;
  border: none;
  cursor: pointer;
}
.btn-cpos:active { transform: scale(.97); }
.btn-cpos.btn-primary {
  background: var(--cp-primary);
  color: #0d0d0d;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.25);
}
.btn-cpos.btn-primary:hover {
  background: var(--cp-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.35);
}

/* ── Cards ────────────────────────────────────────────────────────── */
.cpos-card {
  border-radius: var(--cp-radius-lg);
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-sm);
  background: var(--cp-surface);
  transition: all .3s;
  overflow: hidden;
}
.cpos-card:hover {
  box-shadow: var(--cp-shadow-md);
}
.cpos-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cp-border-light);
  background: var(--cp-surface-alt);
  border-radius: var(--cp-radius-lg) var(--cp-radius-lg) 0 0;
}
.card-title {
  font-size: 16px; font-weight: 700;
  color: var(--cp-text);
  display: flex; align-items: center; gap: 10px;
}
.card-title i {
  color: var(--cp-primary);
}

/* ── Stat Cards ─────────────────────────────────────────────────── */
.stat-card {
  background: var(--cp-surface);
  border-radius: var(--cp-radius-lg);
  padding: 20px;
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-sm);
  position: relative; overflow: hidden;
  transition: all .2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow-md);
}
.stat-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  border-radius: var(--cp-radius-xl) var(--cp-radius-xl) 0 0;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.04;
  transform: translate(30%, -30%);
}
.stat-blue::before   { background: var(--cp-primary); }
.stat-blue::after    { background: var(--cp-primary); }
.stat-green::before  { background: var(--cp-success); }
.stat-green::after   { background: var(--cp-success); }
.stat-teal::before   { background: var(--cp-blue-400); }
.stat-teal::after    { background: var(--cp-blue-400); }
.stat-purple::before { background: var(--cp-blue-700); }
.stat-purple::after  { background: var(--cp-blue-700); }
.stat-warning::before{ background: var(--cp-warning); }
.stat-warning::after { background: var(--cp-warning); }

.stat-icon {
  font-size: 32px; margin-bottom: 14px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.stat-blue .stat-icon   { color: var(--cp-primary); background: rgba(201,162,39,.1); }
.stat-green .stat-icon  { color: var(--cp-success); background: var(--cp-success-light); }
.stat-teal .stat-icon   { color: var(--cp-blue-400); background: rgba(201,162,39,.08); }
.stat-purple .stat-icon { color: var(--cp-blue-700); background: rgba(201,162,39,.06); }
.stat-warning .stat-icon{ color: var(--cp-warning); background: var(--cp-warning-light); }

.stat-value {
  font-size: 28px; font-weight: 800;
  color: var(--cp-text); line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px; font-weight: 600;
  color: var(--cp-text-muted);
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 10px;
}
.stat-sub { font-size: 13px; color: var(--cp-text-muted); }

.metric-card {
  background: var(--cp-surface);
  border-radius: var(--cp-radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--cp-border);
  transition: all .3s;
}
.metric-card:hover {
  box-shadow: var(--cp-shadow-sm);
}
.metric-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 13px; font-weight: 600;
  color: var(--cp-text-muted);
}
.metric-value {
  font-size: 24px; font-weight: 800;
  color: var(--cp-text); margin-bottom: 4px;
}
.metric-detail { font-size: 12px; color: var(--cp-text-muted); }

/* ── Tables ───────────────────────────────────────────────────────── */
.table-cpos { font-size: 14px; }
.table-cpos thead th {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--cp-text-muted);
  background: var(--cp-bg-alt);
  border-bottom: 1px solid var(--cp-border);
  padding: 12px 16px; white-space: nowrap;
}
.table-cpos tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cp-border-light);
  vertical-align: middle; color: var(--cp-text);
  background: var(--cp-surface);
}
.table-cpos tbody tr:last-child td { border-bottom: none; }
.table-cpos tbody tr { transition: background .15s; }
.table-cpos tbody tr:hover td {
  background: var(--cp-surface-alt);
}

/* ── Badges ───────────────────────────────────────────────────────── */
.bg-primary-soft { background: rgba(201,162,39,.1) !important; }
.bg-success-soft { background: rgba(16,185,129,.1) !important; }
.bg-danger-soft  { background: rgba(239,68,68,.1) !important; }
.bg-secondary-soft { background: rgba(255,255,255,.05) !important; }
.status-badge {
  padding: 5px 12px; border-radius: 25px;
  font-size: 11px; font-weight: 700;
  text-transform: capitalize;
  letter-spacing: .3px;
}
.status-completed { background: var(--cp-success-light); color: #10b981; }
.status-pending   { background: var(--cp-warning-light); color: #f59e0b; }
.status-cancelled { background: var(--cp-danger-light); color: #ef4444; }
.status-refunded  { background: rgba(201,162,39,.1); color: var(--cp-primary); }
.status-on_hold   { background: rgba(201,162,39,.08); color: var(--cp-primary-light); }
.status-processing{ background: rgba(201,162,39,.1); color: var(--cp-primary); }

.stock-indicator  { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.stock-dot        { width: 8px; height: 8px; border-radius: 50%; }
.stock-ok .stock-dot  { background: var(--cp-success); box-shadow: 0 0 8px rgba(16,185,129,.4); }
.stock-low .stock-dot { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,.4); }
.stock-out .stock-dot { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,.4); }
.stock-ok   { color: var(--cp-text); }
.stock-low  { color: #f59e0b; }
.stock-out  { color: #ef4444; }

/* ── Action Buttons ──────────────────────────────────────────────── */
.action-btns { display: flex; gap: 6px; }
.action-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--cp-border);
  background: var(--cp-surface); color: var(--cp-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer;
  transition: all .25s;
}
.action-btn:hover {
  background: rgba(201,162,39,.08);
  color: var(--cp-primary);
  border-color: rgba(201,162,39,.2);
  transform: scale(1.08);
}
.action-btn-danger:hover {
  background: rgba(239,68,68,.08);
  color: #ef4444;
  border-color: rgba(239,68,68,.2);
}

/* ── Forms ────────────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--cp-radius-sm);
  border: 1.5px solid var(--cp-border);
  background: var(--cp-surface-alt); color: var(--cp-text);
  font-size: 14px;
  padding: 12px 16px;
  transition: all .25s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 4px rgba(201,162,39,.1);
  background: var(--cp-surface);
}
.form-label {
  font-size: 13px; font-weight: 600;
  color: var(--cp-text);
  margin-bottom: 8px;
}
/* Form labels inside cards - ensure visibility */
.cpos-card .form-label,
.card-body .form-label {
  color: var(--cp-text) !important;
}
.cpos-card .form-check-label,
.card-body .form-check-label {
  color: var(--cp-text) !important;
}
.form-label.required::after { content: ' *'; color: #ef4444; }
.image-upload-zone {
  border: 2px dashed rgba(201,162,39,.3);
  border-radius: var(--cp-radius-lg);
  padding: 36px; text-align: center; cursor: pointer;
  transition: all .25s;
  background: linear-gradient(135deg, #1e1b0e, var(--cp-surface));
  min-height: 160px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
}
.image-upload-zone:hover {
  border-color: var(--cp-primary);
  background: rgba(201,162,39,.05);
  transform: scale(1.01);
}
.image-upload-zone i { font-size: 32px; color: var(--cp-primary-soft); }
.img-preview { max-width: 100%; max-height: 200px; border-radius: 12px; object-fit: cover; }

/* ── Alerts ───────────────────────────────────────────────────────── */
.alert-floating {
  position: fixed; top: 90px; right: 28px; z-index: 9999;
  min-width: 320px; max-width: 440px;
  border-radius: 16px;
  box-shadow: var(--cp-shadow-xl);
  animation: slideInRight .4s cubic-bezier(.4,0,.2,1);
}
@keyframes slideInRight {
  from { transform: translateX(120%); opacity:0; }
  to { transform: translateX(0); opacity:1; }
}

/* ── Dashboard specifics ──────────────────────────────────────────── */
.top-product-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--cp-border-light);
  transition: all .2s;
}
.top-product-item:hover { background: rgba(201,162,39,.04); }
.top-product-item:last-child { border-bottom: none; }
.top-rank {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(201,162,39,.08);
  color: var(--cp-primary); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.top-name    { font-size: 14px; font-weight: 600; }
.top-meta    { font-size: 12px; color: var(--cp-text-muted); }
.top-revenue {
  margin-left: auto; font-size: 15px; font-weight: 700;
  color: #10b981; white-space: nowrap;
  background: rgba(16,185,129,.08);
  padding: 4px 12px;
  border-radius: 20px;
}
.empty-state-sm { text-align: center; padding: 40px; color: var(--cp-text-muted); }
.empty-state-sm i { font-size: 40px; display: block; margin-bottom: 12px; color: var(--cp-primary-soft); }

/* ── Product Thumbnails ───────────────────────────────────────────── */
.product-thumb {
  width: 48px; height: 48px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201,162,39,.06), rgba(201,162,39,.1));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cp-border-light);
}
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { color: var(--cp-primary-soft); font-size: 20px; }

/* ── Auth Page ────────────────────────────────────────────────────── */
.auth-body {
  background: linear-gradient(135deg, #0d0d0d 0%, #111111 100%);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 0;
}
.auth-body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(176, 141, 30, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.auth-wrapper {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 24px;
  z-index: 1;
  margin: auto;
}
.auth-card {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  padding: 44px;
  box-shadow: 0 32px 100px rgba(0,0,0,.6);
}
/* Auth page responsive */
@media (max-width: 576px) {
  .auth-wrapper {
    padding: 16px;
  }
  .auth-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .auth-logo {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .auth-title {
    font-size: 22px;
  }
  .cred-item {
    padding: 10px 12px;
  }
}
.auth-brand { text-align: center; margin-bottom: 36px; }
.auth-logo {
  width: 80px; height: 80px; border-radius: 20px;
  background: #141414;
  border: 2px solid #c9a227;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.25);
  overflow: hidden;
}
.auth-title { font-size: 28px; font-weight: 800; color: #f0f0f0; margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-subtitle { color: rgba(255,255,255,.4); font-size: 15px; }
.form-label { color: rgba(255,255,255,.7); font-weight: 600; }
.form-control-auth {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  color: #f0f0f0; border-radius: 12px;
  padding: 14px 18px 14px 48px; font-size: 15px;
  transition: all .25s;
}
.form-control-auth:focus {
  background: rgba(255,255,255,.08);
  border-color: var(--cp-primary);
  box-shadow: 0 0 0 4px rgba(201,162,39,.15);
  color: #f0f0f0;
}
.form-control-auth::placeholder { color: rgba(255,255,255,.25); }
.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.35); font-size: 18px; z-index: 1;
}
.input-icon-right {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.35); cursor: pointer;
  padding: 6px; font-size: 18px;
  transition: color .2s;
}
.input-icon-right:hover { color: rgba(255,255,255,.6); }
.btn-auth {
  background: var(--cp-primary);
  border: none; color: #0d0d0d;
  padding: 15px; border-radius: 12px;
  font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
}
.btn-auth:hover {
  background: var(--cp-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
  color: #0d0d0d;
}
.form-check-input {
  background-color: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  width: 18px; height: 18px;
}
.form-check-input:checked {
  background-color: var(--cp-primary);
  border-color: var(--cp-primary);
}
.form-check-label { color: rgba(255,255,255,.55); font-size: 13px; }
.auth-divider { text-align: center; margin: 28px 0 20px; position: relative; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.08); }
.auth-divider span { position: relative; background: transparent; padding: 0 16px; font-size: 12px; color: rgba(255,255,255,.3); }
.auth-demo-creds { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.cred-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; cursor: pointer;
  transition: all .25s;
}
.cred-item:hover {
  background: rgba(201,162,39,.08);
  border-color: rgba(201,162,39,.2);
  transform: translateX(4px);
}
.cred-item i { font-size: 24px; color: var(--cp-primary); }
.cred-item strong { display: block; font-size: 14px; color: #f0f0f0; }
.cred-item small { font-size: 12px; color: rgba(255,255,255,.35); }
.auth-footer { text-align: center; font-size: 12px; color: rgba(255,255,255,.25); margin-top: 24px; }
.auth-bg-shapes { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
@media (max-height: 700px) {
  .auth-body {
    align-items: flex-start;
  }
}
.shape { position: absolute; border-radius: 50%; filter: blur(60px); }
.shape-1 { width: 500px; height: 500px; background: rgba(201,162,39,.06); top: -150px; right: -150px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: rgba(176,141,30,.05); bottom: -100px; left: -100px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 300px; height: 300px; background: rgba(201,162,39,.04); top: 40%; left: 20%; animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ── Overlay & Responsive ─────────────────────────────────────────── */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 999; backdrop-filter: blur(4px); }
@media (max-width: 991.98px) {
  .cpos-sidebar { transform: translateX(-100%); }
  .cpos-sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-overlay.active { display: block; }
  .main-content { margin-left: 0 !important; }
  .page-content { padding: 20px; }
  .topbar { padding: 0 20px; }
}

/* ── Toast Notifications ─────────────────────────────────────────── */
.toast-notification {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  padding: 14px 24px; border-radius: 14px;
  font-size: 14px; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(20px);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--cp-shadow-xl);
  max-width: 380px;
  display: flex; align-items: center; gap: 12px;
}
.toast-notification.show { opacity: 1; transform: translateY(0); }
.toast-success { background: var(--cp-success); }
.toast-danger  { background: var(--cp-danger); }
.toast-warning { background: var(--cp-warning); }
.toast-info    { background: var(--cp-primary); color: #0d0d0d; }

/* ── Scrollbar Styling ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--cp-bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ── Selection ─────────────────────────────────────────────────────── */
::selection { background: rgba(201,162,39,.3); color: #f0f0f0; }

/* ── Utilities ─────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--cp-primary), var(--cp-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-effect {
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.hover-lift { transition: transform .3s, box-shadow .3s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--cp-shadow-lg); }

/* ══════════════════════════════════════════════════════════════════
   COLLAPSIBLE SIDEBAR - Simple & Clean
   ══════════════════════════════════════════════════════════════════ */

/*
   How it works:
   1. Sidebar collapses to 70px width
   2. Text hides, only icons show
   3. Icons are centered
   4. Hover to expand temporarily
*/

/* Collapse button in header */
.sidebar-collapse-btn {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--cp-sidebar-text);
  font-size: 16px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
  display: none;
}
.sidebar-collapse-btn:hover {
  background: rgba(255,255,255,.1);
  color: #f0f0f0;
}

/* Show button only on desktop */
@media (min-width: 992px) {
  .sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .topbar-toggle {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   COLLAPSED STATE - Desktop Only
   ═══════════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {

  /* Sidebar shrinks to 70px */
  .cpos-sidebar.collapsed {
    width: 70px;
  }

  /* Main content fills the space */
  .main-content.sidebar-collapsed {
    margin-left: 70px;
  }

  /* ─── HIDE TEXT ─── */
  .cpos-sidebar.collapsed .brand-text,
  .cpos-sidebar.collapsed .store-info,
  .cpos-sidebar.collapsed .nav-section-label,
  .cpos-sidebar.collapsed .nav-link span,
  .cpos-sidebar.collapsed .nav-badge,
  .cpos-sidebar.collapsed .user-info,
  .cpos-sidebar.collapsed .btn-logout,
  .cpos-sidebar.collapsed .sidebar-collapse-btn {
    display: none;
  }

  /* ─── HEADER: Center logo ─── */
  .cpos-sidebar.collapsed .sidebar-header {
    padding: 20px 0;
    justify-content: center;
  }
  .cpos-sidebar.collapsed .brand {
    justify-content: center;
  }
  .cpos-sidebar.collapsed .brand-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  /* ─── STORE: Center avatar ─── */
  .cpos-sidebar.collapsed .sidebar-store {
    padding: 8px 0;
    margin: 8px 0;
    justify-content: center;
    background: none;
    border: none;
  }
  .cpos-sidebar.collapsed .store-avatar {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  /* ─── NAV: Center icons ─── */
  .cpos-sidebar.collapsed .sidebar-nav {
    padding: 10px 0;
  }
  .cpos-sidebar.collapsed .nav-link {
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0 auto 8px auto;
    justify-content: center;
    border-radius: 12px;
  }
  .cpos-sidebar.collapsed .nav-link i {
    font-size: 20px;
    width: auto;
    margin: 0;
  }
  .cpos-sidebar.collapsed .nav-link:hover {
    transform: none;
    background: var(--cp-sidebar-hover);
  }

  /* ─── FOOTER: Center avatar ─── */
  .cpos-sidebar.collapsed .sidebar-footer {
    padding: 12px 0;
    justify-content: center;
  }
  .cpos-sidebar.collapsed .sidebar-user {
    justify-content: center;
  }
  .cpos-sidebar.collapsed .user-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  /* ═══════════════════════════════════════════════════════════════════
     HOVER TO EXPAND
     ═══════════════════════════════════════════════════════════════════ */

  .cpos-sidebar.collapsed:hover {
    width: var(--cp-sidebar-width);
  }

  /* Show text again */
  .cpos-sidebar.collapsed:hover .brand-text,
  .cpos-sidebar.collapsed:hover .store-info,
  .cpos-sidebar.collapsed:hover .nav-section-label,
  .cpos-sidebar.collapsed:hover .nav-link span,
  .cpos-sidebar.collapsed:hover .nav-badge,
  .cpos-sidebar.collapsed:hover .user-info,
  .cpos-sidebar.collapsed:hover .btn-logout,
  .cpos-sidebar.collapsed:hover .sidebar-collapse-btn {
    display: block;
  }
  .cpos-sidebar.collapsed:hover .sidebar-collapse-btn {
    display: flex;
  }

  /* Restore header */
  .cpos-sidebar.collapsed:hover .sidebar-header {
    padding: 24px 20px 20px;
    justify-content: space-between;
  }
  .cpos-sidebar.collapsed:hover .brand {
    justify-content: flex-start;
  }
  .cpos-sidebar.collapsed:hover .brand-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  /* Restore store */
  .cpos-sidebar.collapsed:hover .sidebar-store {
    padding: 16px 20px;
    margin: 8px 12px;
    justify-content: flex-start;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.1);
  }
  .cpos-sidebar.collapsed:hover .store-avatar {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Restore nav */
  .cpos-sidebar.collapsed:hover .sidebar-nav {
    padding: 16px 12px;
  }
  .cpos-sidebar.collapsed:hover .nav-link {
    width: auto;
    height: auto;
    padding: 11px 14px;
    margin: 0 0 4px 0;
    justify-content: flex-start;
  }
  .cpos-sidebar.collapsed:hover .nav-link i {
    font-size: 18px;
    width: 22px;
  }

  /* Restore footer */
  .cpos-sidebar.collapsed:hover .sidebar-footer {
    padding: 16px;
    justify-content: flex-start;
  }
  .cpos-sidebar.collapsed:hover .sidebar-user {
    justify-content: flex-start;
  }
  .cpos-sidebar.collapsed:hover .user-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SAFE RESPONSIVE STYLES - Does NOT override Bootstrap grid
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── PRINT STYLES ──────────────────────────────────────────────────────── */
@media print {
  .cpos-sidebar,
  .topbar,
  .page-actions,
  .action-btns,
  .pagination,
  .btn-cpos,
  .modal {
    display: none !important;
  }
  .main-content {
    margin-left: 0 !important;
  }
  .page-content {
    padding: 0;
  }
}

/* ─── TOUCH DEVICE OPTIMIZATIONS ────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  .action-btn {
    min-width: 40px;
    min-height: 40px;
  }
  .form-control,
  .form-select,
  .btn-cpos {
    min-height: 44px;
  }
  .btn-cpos:active {
    transform: scale(0.98);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT + GOLD THEME OVERRIDES
   Overrides hardcoded dark colors for the light theme
   ═══════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .cpos-sidebar {
  border-right: 1px solid #2a2510;
}
[data-theme="light"] .brand-icon {
  color: #0d0d0d;
}
[data-theme="light"] .brand-name { color: #f0f0f0; }
[data-theme="light"] .sidebar-store {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.12);
}
[data-theme="light"] .store-name { color: #f0f0f0; }
[data-theme="light"] .user-avatar {
  color: #0d0d0d;
}
[data-theme="light"] .user-name { color: #f0f0f0; }

/* Topbar light overrides */
[data-theme="light"] .topbar-clock {
  background: linear-gradient(135deg, #faf7f0, #f5f0e8);
  border: 1px solid #e0d5c0;
  color: #b8941e;
}
[data-theme="light"] .btn-pos-quick {
  color: #fff;
  background: #b8941e;
  box-shadow: 0 4px 12px rgba(184, 148, 30, 0.3);
}
[data-theme="light"] .btn-pos-quick:hover {
  background: #9a7c18;
}
[data-theme="light"] .notif-header {
  background: #faf7f0;
  color: #b8941e;
}
[data-theme="light"] .notif-dropdown {
  background: #fff;
}
[data-theme="light"] .btn-cpos.btn-primary {
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 148, 30, 0.25);
}
[data-theme="light"] .nav-badge {
  color: #fff;
}

/* Card title */
[data-theme="light"] .card-title {
  color: #2c2417;
}

/* Stat card icons - light bg */
[data-theme="light"] .stat-blue .stat-icon   { background: #fef6e0; }
[data-theme="light"] .stat-teal .stat-icon   { background: #fef6e0; }
[data-theme="light"] .stat-purple .stat-icon { background: #fef6e0; }

/* Badges */
[data-theme="light"] .status-completed { background: #e6f7ef; color: #065f46; }
[data-theme="light"] .status-pending   { background: #fef6e0; color: #92400e; }
[data-theme="light"] .status-cancelled { background: #fde8e8; color: #b91c1c; }
[data-theme="light"] .status-refunded  { background: #fef6e0; color: #b8941e; }
[data-theme="light"] .status-on_hold   { background: #fef6e0; color: #c9a227; }
[data-theme="light"] .status-processing{ background: #fef6e0; color: #b8941e; }

/* Action buttons */
[data-theme="light"] .action-btn:hover {
  background: #fef6e0;
}

/* Forms */
[data-theme="light"] .form-control:focus, [data-theme="light"] .form-select:focus {
  background: #fff;
}
[data-theme="light"] .image-upload-zone {
  background: linear-gradient(135deg, #faf7f0, #fff);
  border-color: rgba(184, 148, 30, 0.3);
}
[data-theme="light"] .image-upload-zone:hover {
  background: #fef6e0;
  border-color: #b8941e;
}

/* Dashboard */
[data-theme="light"] .top-product-item:hover { background: #fef6e0; }
[data-theme="light"] .top-rank {
  background: #fef6e0;
}
[data-theme="light"] .top-revenue {
  background: #e6f7ef;
}

/* Product thumbnails */
[data-theme="light"] .product-thumb {
  background: linear-gradient(135deg, #faf7f0, #fef6e0);
}

/* Auth page - keep dark for premium feel */
[data-theme="light"] .auth-body {
  background: linear-gradient(135deg, #1a1508 0%, #0f0d05 100%);
}
[data-theme="light"] .auth-logo {
  color: #0d0d0d;
}
[data-theme="light"] .btn-auth {
  color: #fff;
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: #f5f0e8; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d5cbb5; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #c0b49d; }

/* Selection */
[data-theme="light"] ::selection { background: rgba(184, 148, 30, 0.2); color: #2c2417; }

/* Glass effect */
[data-theme="light"] .glass-effect {
  background: rgba(255,255,255,.7);
}

/* Toast */
[data-theme="light"] .toast-info { color: #fff; }

/* Sidebar collapsed hover restore - light theme */
@media (min-width: 992px) {
  [data-theme="light"] .cpos-sidebar.collapsed:hover .sidebar-store {
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.12);
  }
}

/* Brand & Auth Logo Images */
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.text-gold {
  color: #c9a227 !important;
}

/* ── Custom Outline Buttons ────────────────────────────────────────── */
.btn-cpos.btn-outline-secondary {
  background: transparent;
  border: 1.5px solid var(--cp-border) !important;
  color: var(--cp-text) !important;
}
.btn-cpos.btn-outline-secondary:hover {
  background: var(--cp-surface-alt) !important;
  color: var(--cp-text) !important;
  border-color: var(--cp-text-muted) !important;
}
.btn-cpos.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--cp-primary) !important;
  color: var(--cp-primary) !important;
}
.btn-cpos.btn-outline-primary:hover {
  background: rgba(201, 162, 39, 0.08) !important;
  color: var(--cp-primary-light) !important;
  border-color: var(--cp-primary-light) !important;
}

/* ── Unified Filter Form Layout ────────────────────────────────────── */
.cpos-filter-form {
  align-items: flex-end !important;
}
.cpos-filter-form .form-control,
.cpos-filter-form .form-select,
.cpos-filter-form .btn-cpos,
.cpos-filter-form .btn {
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
.cpos-filter-form .form-control,
.cpos-filter-form .form-select {
  padding-top: 0;
  padding-bottom: 0;
  border-radius: var(--cp-radius-md); /* 10px */
}
.cpos-filter-form .btn-cpos,
.cpos-filter-form .btn {
  padding-top: 0;
  padding-bottom: 0;
  justify-content: center;
  border-radius: var(--cp-radius-md); /* 10px */
}
.cpos-filter-form .input-group {
  height: 44px;
}
.cpos-filter-form .input-group-text {
  min-height: 44px;
  border-radius: var(--cp-radius-md) 0 0 var(--cp-radius-md);
  display: inline-flex;
  align-items: center;
}
.cpos-filter-form .input-group .form-control {
  border-radius: 0 var(--cp-radius-md) var(--cp-radius-md) 0;
}
.cpos-filter-form .btn-group .btn {
  border-radius: 0;
}
.cpos-filter-form .btn-group .btn:first-child {
  border-radius: var(--cp-radius-md) 0 0 var(--cp-radius-md);
}
.cpos-filter-form .btn-group .btn:last-child {
  border-radius: 0 var(--cp-radius-md) var(--cp-radius-md) 0;
}
