/* Core Variables & Dark Theme */
:root {
  --bg-main: #0B0F19;           /* Obsidian background */
  --bg-sidebar: #090C15;        /* Deep black sidebar */
  --bg-card: rgba(22, 28, 45, 0.7); /* Translucent dark navy card */
  --bg-input: #172033;          /* Darker slate for inputs */
  
  --text-main: #F8FAFC;         /* Soft white text */
  --text-muted: #94A3B8;        /* Slate gray text */
  --text-light: #FFFFFF;        /* Pure white */
  
  --border-color: rgba(255, 255, 255, 0.08); /* Transparent borders */
  --border-focus: #00F0FF;      /* Neon Cyan */
  
  --color-waiting: #38BDF8;      /* Electric Cyan/Blue */
  --color-washing: #34D399;      /* Neon Green */
  --color-ready: #FBBF24;        /* Radiant Amber */
  
  --color-waiting-bg: rgba(56, 189, 248, 0.08);
  --color-washing-bg: rgba(52, 211, 153, 0.08);
  --color-ready-bg: rgba(251, 191, 36, 0.08);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.15);
  
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode overrides */
html.light-mode {
  --bg-main: #F8FAFC;           /* Clean slate light background */
  --bg-sidebar: #FFFFFF;        /* Crisp white sidebar */
  --bg-card: #FFFFFF;           /* Solid white card */
  --bg-input: #F1F5F9;          /* Light slate input */
  
  --text-main: #0F172A;         /* Deep slate/black text */
  --text-muted: #64748B;        /* Cool grey text */
  --text-light: #FFFFFF;        /* Pure white (keep white for buttons) */
  
  --border-color: #E2E8F0;      /* Clear light border */
  --border-focus: #0EA5E9;      /* Ocean Cyan/Blue */
  
  --color-waiting: #0284C7;      /* Ocean Blue */
  --color-washing: #059669;      /* Emerald Green */
  --color-ready: #D97706;        /* Warm Amber */
  
  --color-waiting-bg: #F0F9FF;
  --color-washing-bg: #ECFDF5;
  --color-ready-bg: #FFFBEB;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, #152238 0%, #0B0F19 75%);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

/* Tablet: allow body to scroll */


/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* App Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 90px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  z-index: 10;
}

.logo {
  font-size: 24px;
  margin-bottom: 35px;
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  color: #0b0f19;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: var(--transition);
}
.logo:hover {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.nav-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  gap: 12px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  padding: 14px 0;
  transition: var(--transition);
  font-size: 10px;
  font-weight: 600;
  gap: 8px;
  position: relative;
  border-radius: 12px;
  margin: 0 8px;
}

.nav-item i {
  font-size: 20px;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.08);
}

.nav-item.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background-color: #00F0FF;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px #00F0FF;
}

.spacer {
  flex: 1;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}



/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  background-color: rgba(11, 15, 25, 0.5);
  /* backdrop-filter disabled for performance */
  border-bottom: 1px solid var(--border-color);
  height: 75px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(120deg, #F8FAFC 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.store-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.store-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.store-type {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: #00F0FF;
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-1px);
}

/* Content Split */
.content-split {
  display: flex;
  flex: 1;
  overflow: hidden;
  padding: 30px;
  gap: 30px;
}

.pos-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  gap: 20px;
  overflow: hidden;
  padding-right: 8px;
}

.kanban-section {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Tablet (8.7 inch ~820px) */


.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  /* backdrop-filter disabled for performance */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  background-color: rgba(22, 28, 45, 0.9);
}

.search-icon {
  color: var(--text-muted);
  font-size: 16px;
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background: transparent;
  text-transform: uppercase;
}

.search-bar input::placeholder {
  color: var(--text-muted);
  text-transform: none;
}

.plate-preview {
  background: #F8FAFC;
  color: #0F172A;
  border: 2px solid #334155;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  letter-spacing: 2px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
}

/* Packages Grid */
.packages-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
  padding-right: 4px;
  padding-bottom: 15px;
}

.package-card {
  background: rgba(30, 41, 67, 0.4);
  /* backdrop-filter disabled for performance */
  /* -webkit-backdrop-filter disabled */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  min-height: 150px;
}

.package-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 240, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  background: rgba(30, 41, 67, 0.7);
}

.package-card.active {
  border-color: #00F0FF;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.85) 0%, rgba(0, 240, 255, 0.08) 100%);
}

.active-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--border-focus);
  color: #0b0f19;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.pkg-icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: var(--transition);
}

.package-card.active .pkg-icon {
  color: var(--border-focus);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.pkg-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.pkg-price {
  font-size: 14px;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 6px;
}

.package-card.active .pkg-price {
  color: #00F0FF;
}

.pkg-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 0;
  margin-bottom: 10px;
  flex-grow: 1;
}

.pkg-time {
  align-self: flex-end;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Order Summary */
.order-summary {
  margin-top: auto;
  flex-shrink: 0;
  background-color: var(--bg-card);
  /* backdrop-filter disabled for performance */
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.summary-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.total-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 18px;
  font-weight: 800;
  color: #00F0FF;
  margin-bottom: 20px;
}

.primary-btn {
  width: 100%;
  background: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
  color: #0B0F19;
  border: none;
  padding: 15px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
  filter: brightness(1.1);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.primary-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--border-color);
  box-shadow: none;
  cursor: not-allowed;
}

.pay-btn {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38BDF8;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.pay-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.action-btn-small {
  width: 100%;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.action-btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-start {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.2);
}

.btn-start:hover {
  background: rgba(56, 189, 248, 0.2);
}

.btn-finish {
  background: rgba(52, 211, 153, 0.1);
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.2);
}

.btn-finish:hover {
  background: rgba(52, 211, 153, 0.2);
}

html.light-mode .pay-btn {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0284C7;
}

html.light-mode .pay-btn:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  color: #0369A1;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.15);
}

html.light-mode .action-btn-small {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

html.light-mode .action-btn-small:hover {
  background: rgba(0, 0, 0, 0.08);
}

html.light-mode .btn-start {
  background: rgba(14, 165, 233, 0.08);
  color: #0284C7;
  border-color: rgba(14, 165, 233, 0.2);
}

html.light-mode .btn-start:hover {
  background: rgba(14, 165, 233, 0.15);
}

html.light-mode .btn-finish {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

html.light-mode .btn-finish:hover {
  background: rgba(16, 185, 129, 0.15);
}

/* Kanban Board */
.kanban-board {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.kanban-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.015);
  /* backdrop-filter disabled for performance */
  /* -webkit-backdrop-filter disabled */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1), 0 10px 30px rgba(0,0,0,0.1);
}

.column-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.column-header.bg-blue { 
  color: #38BDF8; 
  border-top: 3px solid #38BDF8; 
}
.column-header.bg-green { 
  color: #34D399; 
  border-top: 3px solid #34D399; 
}
.column-header.bg-yellow { 
  color: #FBBF24; 
  border-top: 3px solid #FBBF24; 
}

.column-body {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 150px;
}

.column-body.drag-over {
  background: rgba(0, 240, 255, 0.05);
  border: 2px dashed rgba(0, 240, 255, 0.3);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Kanban Cards */
.k-card {
  background: rgba(30, 41, 67, 0.5);
  /* backdrop-filter disabled for performance */
  /* -webkit-backdrop-filter disabled */
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.k-card:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-color: rgba(255, 255, 255, 0.15);
  border-left-color: #00F0FF;
  transform: translateY(-3px);
  background: rgba(30, 41, 67, 0.8);
}

.k-card:active {
  cursor: grabbing;
}

.k-card.dragging {
  opacity: 0.5;
  transform: scale(0.95) rotate(2deg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border-color: #00F0FF;
}

.k-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.k-plate {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: 800;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.k-type {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  background: rgba(0,0,0,0.2);
  padding: 3px 8px;
  border-radius: 12px;
}

.k-package {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #38BDF8;
  margin-bottom: 14px;
}


.k-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.k-time {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-waiting { background: var(--color-waiting-bg); color: var(--color-waiting); border: 1px solid rgba(56, 189, 248, 0.15); }
.status-washing { background: var(--color-washing-bg); color: var(--color-washing); border: 1px solid rgba(52, 211, 153, 0.15); }
.status-ready { background: var(--color-ready-bg); color: var(--color-ready); border: 1px solid rgba(251, 191, 36, 0.15); }

/* --- Dashboard Specific Styles --- */
.dashboard-main {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, #152238 0%, #0B0F19 75%);
  overflow-y: auto;
}

.dashboard-search {
  max-width: 420px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  box-shadow: none;
}

.dashboard-search input {
  font-size: 13px;
  text-transform: none;
}

.dashboard-search input::placeholder {
  text-transform: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  padding-left: 15px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.user-text {
  display: flex;
  flex-direction: column;
}

.user-text .user-name {
  margin: 0;
}

.border-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.border-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.dashboard-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.dashboard-header .page-title {
  font-size: 24px;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.s-card {
  background: var(--bg-card);
  /* backdrop-filter disabled for performance */
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.s-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}

.s-card:nth-child(1)::before { background: linear-gradient(90deg, #00F0FF, #3B82F6); }
.s-card:nth-child(2)::before { background: linear-gradient(90deg, #34D399, #10B981); }
.s-card:nth-child(3)::before { background: linear-gradient(90deg, #F87171, #EF4444); }
.s-card:nth-child(4)::before { background: linear-gradient(90deg, #FBBF24, #F59E0B); }

.s-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.s-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.s-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.s-card:hover .s-icon {
  background: rgba(255,255,255,0.06);
}

.s-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex: 1;
}

.s-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-green {
  background: rgba(52, 211, 153, 0.1);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.text-blue { color: #00F0FF; }
.text-red { color: #F87171; }

.s-value {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.s-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* Dashboard Row */
.dashboard-row {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 24px;
}



.panel {
  background: var(--bg-card);
  /* backdrop-filter disabled for performance */
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Chart */
.chart-wrapper {
  flex: 1;
  min-height: 280px;
  position: relative;
}

/* Leaderboard Table */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.leaderboard-table td {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.leaderboard-table tr:last-child td {
  border-bottom: none;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.leaderboard-table tr:nth-child(1) .rank-badge { background: rgba(251, 191, 36, 0.15); color: #FBBF24; border-color: rgba(251, 191, 36, 0.3); }
.leaderboard-table tr:nth-child(2) .rank-badge { background: rgba(203, 213, 225, 0.15); color: #E2E8F0; border-color: rgba(203, 213, 225, 0.3); }
.leaderboard-table tr:nth-child(3) .rank-badge { background: rgba(180, 83, 9, 0.15); color: #F59E0B; border-color: rgba(180, 83, 9, 0.3); }

.staff-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.08);
}

.staff-commission {
  font-weight: 700;
  color: #38BDF8;
}

.text-yellow {
  color: #FBBF24;
}

/* --- Customer Table Styles --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 16px 24px;
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 16px 24px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  color: var(--text-main);
}

.data-table tbody tr {
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.visit-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.visit-badge.loyal {
  background-color: rgba(251, 191, 36, 0.1);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.08);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-info {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.page-controls {
  display: flex;
  gap: 8px;
}

/* Payment Tags */
.pay-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-gray { background-color: rgba(255,255,255,0.05); color: #94A3B8; border: 1px solid rgba(255,255,255,0.08); }
.tag-blue { background-color: rgba(56, 189, 248, 0.1); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.15); }
.tag-green { background-color: rgba(52, 211, 153, 0.1); color: #34D399; border: 1px solid rgba(52, 211, 153, 0.15); }
.tag-purple { background-color: rgba(168, 85, 247, 0.1); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.15); }

/* Settings Layout */
.settings-layout {
  display: flex;
  min-height: 650px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.settings-sidebar {
  width: 260px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-tab {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-tab i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.setting-tab:hover {
  background-color: rgba(0, 240, 255, 0.03);
  color: var(--text-main);
}

.setting-tab.active {
  background-color: rgba(0, 240, 255, 0.08);
  color: #00F0FF;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

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

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Form Layouts */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-input);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  background-color: var(--bg-input);
}

textarea.form-control {
  resize: vertical;
}

/* Logo Upload */
.logo-upload-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.logo-preview-box {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px dashed var(--border-color);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.logo-preview-box:hover {
  border-color: var(--border-focus);
}

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

.logo-preview-box i {
  font-size: 24px;
  color: var(--text-muted);
}

.logo-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logo-upload-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Input Fields overrides (e.g. for page settings) */
.input-field {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* --- Reports Metric Cards --- */
.stat-card {
  background: var(--bg-card);
  /* backdrop-filter disabled for performance */
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, #00F0FF);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.stat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

/* --- Modal Dialog --- */
.modal-dialog {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #131926;
  color: var(--text-main);
  padding: 0;
  max-width: 500px;
  width: 95%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.15);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-dialog::backdrop {
  background: rgba(5, 8, 16, 0.75);
  /* backdrop-filter disabled for performance */
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.01);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: linear-gradient(120deg, #F8FAFC 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#customer-form {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Confirm Dialog Specific Styles */
.confirm-dialog {
  max-width: 420px;
}

.confirm-body {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
}

#confirm-message {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.danger-btn {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.danger-btn:hover:not(:disabled) {
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45) !important;
}

/* --- Light Mode Specific Components overrides --- */
html.light-mode body {
  background-image: radial-gradient(circle at 50% 0%, #E0F2FE 0%, #F8FAFC 75%);
}

html.light-mode .sidebar {
  border-right: 1px solid #E2E8F0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.02);
}

html.light-mode .nav-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

html.light-mode .nav-item.active {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
}

html.light-mode .nav-item.active i {
  filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.4));
}

html.light-mode .nav-item.active::before {
  background-color: #0284C7;
  box-shadow: 0 0 10px #0284C7;
}

html.light-mode .logo {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

html.light-mode .logo:hover {
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

html.light-mode .topbar {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid #E2E8F0;
}

html.light-mode .primary-btn {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
}

html.light-mode .primary-btn:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

html.light-mode .page-title {
  background: linear-gradient(120deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light-mode .icon-btn {
  background: rgba(0, 0, 0, 0.02);
}

html.light-mode .icon-btn:hover {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.05);
  border-color: rgba(2, 132, 199, 0.2);
}

html.light-mode .package-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

html.light-mode .package-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(14, 165, 233, 0.1);
}

html.light-mode .package-card.active {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(14, 165, 233, 0.05) 100%);
  border-color: #0EA5E9;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15), inset 0 0 20px rgba(14, 165, 233, 0.05);
}

html.light-mode .active-badge {
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

html.light-mode .kanban-column {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.5), 0 4px 15px rgba(0,0,0,0.02);
}

html.light-mode .column-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

html.light-mode .k-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 0.8));
  border: 1px solid rgba(255, 255, 255, 1);
  border-left: 4px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255,255,255,0.5);
  border-radius: 12px;
}

html.light-mode .k-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(14, 165, 233, 0.3);
  border-left-color: #0EA5E9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

html.light-mode .k-card.dragging {
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border-color: #0EA5E9;
}

html.light-mode .k-plate {
  border: none;
  background: #F1F5F9;
  color: #0F172A;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

html.light-mode .k-type {
  background: rgba(0,0,0,0.04);
}

html.light-mode .k-package {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: #0284C7;
}

html.light-mode .k-footer {
  border-top: 1px solid #F1F5F9;
}

html.light-mode .column-body.drag-over {
  background-color: rgba(14, 165, 233, 0.03);
  border: 2px dashed rgba(14, 165, 233, 0.2);
}

html.light-mode .search-bar:focus-within {
  background-color: #FFFFFF;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.15);
}

html.light-mode .modal-dialog {
  background: #FFFFFF;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 30px rgba(14, 165, 233, 0.08);
}

html.light-mode .modal-header {
  border-bottom: 1px solid #E2E8F0;
  background-color: rgba(0, 0, 0, 0.01);
}

html.light-mode .modal-header h3 {
  background: linear-gradient(120deg, #0F172A 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light-mode .modal-footer {
  border-top: 1px solid #E2E8F0;
}

html.light-mode .confirm-icon {
  background: rgba(239, 68, 68, 0.05);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.05);
}

html.light-mode .s-card {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

html.light-mode .s-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

html.light-mode .s-icon {
  background: #F8FAFC;
}

html.light-mode .s-card:hover .s-icon {
  background: #F1F5F9;
}

html.light-mode .rank-badge {
  background: #F8FAFC;
}

html.light-mode .leaderboard-table th, 
html.light-mode .leaderboard-table td, 
html.light-mode .data-table th, 
html.light-mode .data-table td, 
html.light-mode .pagination {
  border-bottom-color: #E2E8F0;
  border-top-color: #E2E8F0;
}

html.light-mode .data-table th {
  background-color: #F8FAFC;
}

html.light-mode .form-control {
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

html.light-mode .form-control:focus {
  background-color: #FFFFFF;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

html.light-mode .settings-sidebar {
  background-color: #F8FAFC;
  border-right: 1px solid #E2E8F0;
}

html.light-mode .settings-content {
  background-color: #FFFFFF;
}

html.light-mode .setting-tab:hover {
  background-color: rgba(2, 132, 199, 0.03);
}

html.light-mode .setting-tab.active {
  background-color: #FFFFFF;
  color: #0EA5E9;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #0EA5E9;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
}

html.light-mode .visit-badge {
  background-color: #F1F5F9;
}

/* --- Reports Styles --- */
.report-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reports-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.report-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

/* --- Mobile Responsive Styles --- */


/* ============================================================
   TABLET MODERN REDESIGN — Samsung Tab A7 Lite (≤ 960px)
   Horizontal List Cards + Floating Cart Bar
   ============================================================ */





.layanan-tabs {
  display: none !important;
}

/* ============================================================
   UNIFIED RESPONSIVE BREAKPOINT (<= 1024px)
   Samsung Tab A7 Lite, iPads, and Mobile Devices
   ============================================================ */
@media (max-width: 1024px) {

  /* 1. BODY & APP CONTAINER */
  body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .app-container {
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh !important;
    width: 100% !important;
  }

  /* 2. BOTTOM NAVIGATION BAR (SIDEBAR OVERRIDE) */
  .sidebar {
    position: fixed !important;
    bottom: 0 !important; top: auto !important;
    left: 0 !important; right: 0 !important;
    width: 100% !important;
    height: 64px !important;
    flex-direction: row !important;
    padding: 0 4px !important;
    border-right: none !important;
    border-top: 1px solid var(--border-color) !important;
    background: var(--bg-sidebar) !important;
    z-index: 1000 !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.25) !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  html.light-mode .sidebar {
    background: #FFFFFF !important;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.08) !important;
  }

  .logo { display: none !important; }

  .nav-links {
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0 !important;
    height: 100% !important;
  }

  .nav-item {
    flex-direction: column !important;
    padding: 6px 4px !important;
    gap: 3px !important;
    flex: 1 !important;
    border-radius: 10px !important;
    margin: 0 2px !important;
    font-size: 9px !important;
    text-align: center !important;
    min-width: 0 !important;
  }

  .nav-item i { font-size: 18px !important; }
  .nav-item span { 
    display: block !important; 
    font-size: 9px !important; 
    overflow: hidden !important; 
    text-overflow: ellipsis !important; 
    white-space: nowrap !important; 
    width: 100% !important; 
  }
  .nav-item.active::before { display: none !important; }
  .spacer { display: none !important; }

  /* 3. MAIN CONTENT */
  .main-content {
    overflow: visible !important;
    flex: none !important;
    width: 100% !important;
    padding-bottom: 160px !important; /* space for bottom nav + floating order summary */
  }

  /* 4. TOPBAR */
  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    padding: 10px 14px !important;
    height: 56px !important;
    flex-wrap: nowrap !important;
    background: var(--bg-main) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  html.light-mode .topbar { background: rgba(248,250,252,0.95) !important; }
  .page-title { font-size: 15px !important; }
  .store-info, .user-name, .user-text { display: none !important; }
  .avatar { width: 30px !important; height: 30px !important; }
  .icon-btn { width: 32px !important; height: 32px !important; padding: 6px !important; }

  /* 5. LAYOUT COLUMNS & TAB SWITCHING */
  .content-split {
    display: block !important;
    overflow: visible !important;
    padding: 12px 10px !important;
    height: auto !important;
  }

  /* Switchable Tabs Visibility */
  .content-split.tab-kasir-active .pos-section {
    display: block !important;
  }
  .content-split.tab-kasir-active .kanban-section {
    display: none !important;
  }

  .content-split.tab-antrean-active .pos-section {
    display: none !important;
  }
  .content-split.tab-antrean-active .kanban-section {
    display: block !important;
  }

  .pos-section {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: visible !important;
    padding-right: 0 !important;
    margin-bottom: 16px !important;
    height: auto !important;
    gap: 0 !important;
  }

  /* 6. TAB SWITCHER STYLING */
  .layanan-tabs {
    display: flex !important;
    padding: 6px 10px !important;
    background: rgba(18, 25, 41, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    gap: 8px !important;
    position: sticky !important;
    top: 56px !important;
    z-index: 99 !important;
    width: 100% !important;
  }

  html.light-mode .layanan-tabs {
    background: rgba(248, 250, 252, 0.9) !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }

  .tab-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: var(--text-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
  }

  .tab-btn i {
    font-size: 14px !important;
  }

  .tab-btn:hover {
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  .tab-btn.active {
    background: rgba(0, 240, 255, 0.08) !important;
    border-color: rgba(0, 240, 255, 0.2) !important;
    color: #00F0FF !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1) !important;
  }

  html.light-mode .tab-btn.active {
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
    color: #0EA5E9 !important;
    box-shadow: none !important;
  }

  /* 7. SEARCH BAR & CUSTOMER INPUTS */
  .search-bar { padding: 12px 14px !important; }

  .customer-inputs {
    flex-direction: row !important;
    gap: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }

  .section-title {
    font-size: 15px !important;
    margin-bottom: 10px !important;
    margin-top: 16px !important;
  }

  /* 8. PACKAGES — Modern Horizontal List */
  .packages-container {
    display: block !important;
    flex: none !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  .packages-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    overflow: visible !important;
    height: auto !important;
    flex: none !important;
    min-height: auto !important;
    padding-bottom: 0 !important;
  }

  .package-card {
    display: grid !important;
    grid-template-columns: 52px 1fr auto !important;
    grid-template-rows: auto auto auto !important;
    align-items: center !important;
    gap: 0 12px !important;
    padding: 12px 14px !important;
    min-height: 72px !important;
    border-radius: 14px !important;
    overflow: visible !important;
    position: relative !important;
  }

  .active-badge {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 9px !important;
    padding: 2px 8px !important;
  }

  .pkg-icon {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    font-size: 22px !important;
    margin-bottom: 0 !important;
    width: 52px !important;
    height: 52px !important;
    background: linear-gradient(135deg, rgba(0,240,255,0.12) 0%, rgba(59,130,246,0.18) 100%) !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(0,240,255,0.2) !important;
    flex-shrink: 0 !important;
    transform: none !important;
    filter: none !important;
  }

  html.light-mode .pkg-icon {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%) !important;
    border: 1px solid #BFDBFE !important;
    color: #0284C7 !important;
  }

  .package-card.active .pkg-icon {
    background: linear-gradient(135deg, rgba(0,240,255,0.2) 0%, rgba(59,130,246,0.3) 100%) !important;
    border-color: #00F0FF !important;
  }

  html.light-mode .package-card.active .pkg-icon {
    background: linear-gradient(135deg, #DBEAFE 0%, #E0F2FE 100%) !important;
    border-color: #0EA5E9 !important;
  }

  .pkg-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }

  .pkg-price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    margin-bottom: 0 !important;
    line-height: 1.3 !important;
  }

  .pkg-desc {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    flex-grow: 0 !important;
  }

  .pkg-time {
    grid-column: 3 !important;
    grid-row: 1 / 4 !important;
    align-self: center !important;
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    background: rgba(255,255,255,0.06) !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    border: 1px solid var(--border-color) !important;
    margin-right: 4px !important;
  }

  html.light-mode .pkg-time {
    background: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
    color: #64748B !important;
  }

  /* 9. FLOATING ORDER BAR (Used on Mobile Viewports < 768px) */
  .order-summary {
    position: fixed !important;
    bottom: 64px !important;
    left: 0 !important; right: 0 !important;
    z-index: 800 !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 12px 16px !important;
    margin-top: 0 !important;
    box-shadow: 0 -6px 30px rgba(0,0,0,0.25) !important;
    border: none !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 70px !important;
    background: var(--bg-sidebar) !important;
  }

  html.light-mode .order-summary {
    background: #FFFFFF !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1) !important;
  }

  .summary-title { display: none !important; }
  .summary-details { display: none !important; }

  .total-row {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .total-row > span:first-child {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    -webkit-text-fill-color: var(--text-muted) !important;
    background: none !important;
  }

  #summary-total {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #00F0FF !important;
    -webkit-text-fill-color: #00F0FF !important;
    background: none !important;
    line-height: 1.2 !important;
  }

  html.light-mode #summary-total {
    color: #0EA5E9 !important;
    -webkit-text-fill-color: #0EA5E9 !important;
  }

  #add-to-queue-btn {
    width: auto !important;
    flex-shrink: 0 !important;
    min-width: 150px !important;
    max-width: 200px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* 9.1 TABLET LANDSCAPE SPLIT SCREEN (>= 768px and <= 1024px) */
  @media (min-width: 768px) {
    .content-split.tab-kasir-active .pos-section {
      display: grid !important;
      grid-template-columns: 320px 1fr !important;
      grid-template-rows: auto auto auto auto !important;
      gap: 16px 24px !important;
      align-items: start !important;
      align-content: start !important; /* Pack rows tightly at the top of the grid to prevent stretching */
    }
    
    .pos-section > .search-bar {
      grid-column: 1 !important;
      grid-row: 1 !important;
      margin: 0 !important;
    }
    
    .pos-section > #loyalty-badge-container {
      grid-column: 1 !important;
      grid-row: 2 !important;
      margin: 0 !important;
    }
    
    .pos-section > .customer-inputs {
      grid-column: 1 !important;
      grid-row: 3 !important;
      flex-direction: column !important;
      gap: 12px !important;
      margin: 0 !important;
    }
    
    .pos-section > .order-summary {
      grid-column: 1 !important;
      grid-row: 4 !important;
      position: static !important; /* Not floating on landscape tablet! */
      margin: 0 !important;
      border-radius: 16px !important;
      border: 1px solid var(--border-color) !important;
      box-shadow: var(--shadow-md) !important;
      padding: 20px !important;
      display: flex !important;
      flex-direction: column !important;
      min-height: auto !important;
    }

    /* Show normal title and details on landscape tablet since it's not floating */
    .pos-section > .order-summary .summary-title {
      display: block !important;
    }
    .pos-section > .order-summary .summary-details {
      display: flex !important;
    }
    .pos-section > .order-summary .total-row {
      margin-top: 16px !important;
      padding-top: 16px !important;
      border-top: 1px solid var(--border-color) !important;
      flex-direction: row !important;
      justify-content: space-between !important;
    }
    .pos-section > .order-summary #add-to-queue-btn {
      width: 100% !important;
      max-width: none !important;
      margin-top: 16px !important;
    }

    .pos-section > .packages-container {
      grid-column: 2 !important;
      grid-row: 1 / 5 !important;
      margin: 0 !important;
    }

    /* Padding adjust since summary is static in landscape tablet */
    .main-content {
      padding-bottom: 80px !important; 
    }
  }

  /* 10. KANBAN SECTION */
  .kanban-section {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    height: auto !important;
  }

  .kanban-board {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
    height: auto !important;
    min-height: 260px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  .kanban-column {
    min-width: 250px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
    height: auto !important;
    max-height: 55vh !important;
  }

  .column-body {
    max-height: calc(55vh - 56px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 11. MODAL */
  .modal-dialog {
    max-width: 95vw !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
  }

  /* 12. DASHBOARD & PANEL */
  .dashboard-row {
    grid-template-columns: 1fr !important;
  }
  .dashboard-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .dashboard-header .page-title {
    font-size: 22px !important;
  }
  .summary-cards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .dashboard-content {
    padding: 15px !important;
  }

  /* 13. SETTINGS */
  .settings-layout {
    flex-direction: column !important;
  }
  .settings-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 15px !important;
  }
  
  /* 14. REPORTS */
  .report-filters-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }
  .report-filters-left {
    flex-direction: column !important;
    width: 100% !important;
    align-items: flex-start !important;
  }
  .report-filters-left .dashboard-search,
  .report-filters-left select {
    width: 100% !important;
  }
  .report-filters-right {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .reports-stat-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .report-cards-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* ============================================================
   CUSTOMERS CARD GRID SYSTEM
   ============================================================ */
.customers-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  padding: 24px 0 !important;
}

.customer-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px !important;
  box-shadow: var(--shadow-sm) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  transition: var(--transition) !important;
  position: relative !important;
  overflow: hidden !important;
}

.customer-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(0, 240, 255, 0.2) !important;
}

html.light-mode .customer-card:hover {
  border-color: #cbd5e1 !important;
}

.customer-card.loyal-card {
  border-color: rgba(251, 191, 36, 0.3) !important;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(251, 191, 36, 0.03) 100%) !important;
}

.customer-card.loyal-card::after {
  content: 'LOYAL' !important;
  position: absolute !important;
  top: 12px !important;
  left: -24px !important;
  background: #FBBF24 !important;
  color: #0b0f19 !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  padding: 2px 24px !important;
  transform: rotate(-45deg) !important;
  letter-spacing: 1px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.c-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.c-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--bg-input) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--primary) !important;
  font-size: 18px !important;
  border: 1px solid var(--border-color) !important;
}

html.light-mode .c-avatar {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #0EA5E9 !important;
}

.c-actions {
  display: flex !important;
  gap: 8px !important;
}

.c-card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.c-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin: 0 !important;
  letter-spacing: 0.2px !important;
}

.c-meta-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.c-wa-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(37, 211, 102, 0.08) !important;
  border: 1px solid rgba(37, 211, 102, 0.2) !important;
  color: #25D366 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: var(--transition) !important;
}

.c-wa-link:hover {
  background: rgba(37, 211, 102, 0.15) !important;
  transform: scale(1.02) !important;
}

.c-card-footer {
  display: flex !important;
  border-top: 1px solid var(--border-color) !important;
  padding-top: 12px !important;
  margin-top: auto !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.c-footer-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.c-label {
  font-size: 10px !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.c-value {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.c-value i {
  font-size: 12px !important;
}

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

/* --- Print Styles --- */

@media print {
  @page { margin: 1.5cm; }
  body { background: #fff !important; color: #000 !important; font-family: 'Inter', sans-serif !important; }
  
  /* Hide UI elements */
  .sidebar, .topbar, .dashboard-header, .icon-btn, .primary-btn, .search-bar, select, button, .pagination {
    display: none !important;
  }
  
  .main-content { margin-left: 0 !important; padding: 0 !important; width: 100% !important; }
  
  /* Add a custom print header if we want, or just rely on content */
  .dashboard-content::before {
    content: "Laporan Pendapatan ARRZEE CARWASH";
    display: block;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
  }

  .metric-card {
    border: 1px solid #000 !important; 
    background: #fff !important;
    box-shadow: none !important; 
    color: #000 !important;
    page-break-inside: avoid;
    margin-bottom: 15px;
  }
  .metric-card h3 { color: #555 !important; font-size: 14px !important; }
  .metric-card .metric-val { color: #000 !important; font-size: 20px !important; }
  
  .dashboard-grid {
    display: flex !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
  }
  .dashboard-grid > div {
    flex: 1 !important;
  }

  /* Table styling */
  table.data-table { border-collapse: collapse !important; width: 100% !important; color: #000 !important; }
  table.data-table th, table.data-table td { 
    border: 1px solid #000 !important; 
    color: #000 !important; 
    padding: 8px !important;
    text-align: left !important;
  }
  table.data-table th { background-color: #eee !important; font-weight: bold !important; }
  
  .pay-tag { 
    border: 1px solid #000 !important; 
    color: #000 !important; 
    background: transparent !important; 
  }
}

/* =========================================
   SweetAlert2 Elegant Theme Override
   ========================================= */
.swal2-popup.swal2-toast {
  background: var(--bg-card, #1A2234) !important;
  border: 1px solid var(--border-color, #2D3748) !important;
  color: var(--text-main, #F1F5F9) !important;
  box-shadow: var(--shadow-hover) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.swal2-popup.swal2-toast .swal2-title {
  color: var(--text-main, #F1F5F9) !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
}
.swal2-popup.swal2-toast .swal2-html-container {
  color: var(--text-muted, #94A3B8) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}

/* Modal alerts */
.swal2-popup:not(.swal2-toast) {
  background: var(--bg-main, #0B0F19) !important;
  border: 1px solid var(--border-focus, #00F0FF) !important;
  color: var(--text-main, #F1F5F9) !important;
  border-radius: var(--radius-lg, 16px) !important;
  box-shadow: var(--shadow-hover) !important;
}
.swal2-popup:not(.swal2-toast) .swal2-title {
  color: var(--text-main, #F1F5F9) !important;
  font-family: 'Inter', sans-serif !important;
}
.swal2-popup:not(.swal2-toast) .swal2-html-container {
  color: var(--text-muted, #94A3B8) !important;
  font-family: 'Inter', sans-serif !important;
}
.swal2-popup:not(.swal2-toast) .swal2-confirm {
  background: var(--primary, #00F0FF) !important;
  color: #000 !important;
  border-radius: var(--radius-md, 10px) !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s ease;
}
.swal2-popup:not(.swal2-toast) .swal2-confirm:hover {
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4) !important;
}
.swal2-popup:not(.swal2-toast) .swal2-cancel {
  background: transparent !important;
  color: var(--text-muted, #94A3B8) !important;
  border: 1px solid var(--border-color, #2D3748) !important;
  border-radius: var(--radius-md, 10px) !important;
  font-family: 'Inter', sans-serif !important;
  transition: all 0.2s ease;
}
.swal2-popup:not(.swal2-toast) .swal2-cancel:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-main, #F1F5F9) !important;
}

/* Light Mode SweetAlert overrides */
html.light-mode .swal2-popup.swal2-toast {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .swal2-popup.swal2-toast .swal2-title {
  color: #0f172a !important;
}
html.light-mode .swal2-popup.swal2-toast .swal2-html-container {
  color: #64748b !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-title {
  color: #0f172a !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-html-container {
  color: #64748b !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-confirm {
  background: #3b82f6 !important;
  color: #ffffff !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-confirm:hover {
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5) !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-cancel {
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
html.light-mode .swal2-popup:not(.swal2-toast) .swal2-cancel:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* ============================================================
   INVENTORY PRODUCT CARD GRID SYSTEM
   ============================================================ */
.inventory-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 20px !important;
  padding: 24px 0 !important;
}

.product-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px !important;
  box-shadow: var(--shadow-sm) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  transition: var(--transition) !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: rgba(0, 240, 255, 0.2) !important;
}

html.light-mode .product-card:hover {
  border-color: #cbd5e1 !important;
}

.product-card.low-stock-card {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(239, 68, 68, 0.03) 100%) !important;
}

.p-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.p-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: var(--bg-input) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--primary) !important;
  font-size: 18px !important;
  border: 1px solid var(--border-color) !important;
}

html.light-mode .p-avatar {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #0EA5E9 !important;
}

.p-status-tag {
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.p-tag-green {
  background-color: rgba(52, 211, 153, 0.1) !important;
  color: #34D399 !important;
  border: 1px solid rgba(52, 211, 153, 0.15) !important;
}

.p-tag-yellow {
  background-color: rgba(251, 191, 36, 0.1) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(251, 191, 36, 0.15) !important;
}

.p-tag-red {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #EF4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.15) !important;
}

html.light-mode .p-tag-green {
  background-color: #ECFDF5 !important;
  color: #059669 !important;
  border-color: #A7F3D0 !important;
}

html.light-mode .p-tag-yellow {
  background-color: #FFFBEB !important;
  color: #D97706 !important;
  border-color: #FDE68A !important;
}

html.light-mode .p-tag-red {
  background-color: #FEF2F2 !important;
  color: #DC2626 !important;
  border-color: #FCA5A5 !important;
}

.p-card-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.p-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px !important;
}

.p-category-badge {
  display: inline-block !important;
  width: fit-content !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-color) !important;
}

html.light-mode .p-category-badge {
  background: #F1F5F9 !important;
  color: #64748B !important;
  border-color: #E2E8F0 !important;
}

.p-price {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--border-focus) !important;
  margin-top: 4px !important;
}

html.light-mode .p-price {
  color: #0284C7 !important;
}

.p-card-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-top: 1px solid var(--border-color) !important;
  padding-top: 16px !important;
  margin-top: auto !important;
}

.p-stock-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.p-label {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.p-value {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.p-value.text-red {
  color: #EF4444 !important;
}

html.light-mode .p-value.text-red {
  color: #DC2626 !important;
}

.p-actions {
  display: flex !important;
  gap: 8px !important;
}

