/* Classic POS — refined retail theme */
.vasy-pos {
  --vasy-primary: #4f46e5;
  --vasy-primary-dark: #4338ca;
  --vasy-primary-light: #eef2ff;
  --vasy-accent: #0ea5e9;
  --vasy-success: #10b981;
  --vasy-success-dark: #059669;
  --vasy-warning: #f59e0b;
  --vasy-danger: #ef4444;
  --vasy-surface: #ffffff;
  --vasy-surface-2: #f8fafc;
  --vasy-bg: #f1f5f9;
  --vasy-border: #e2e8f0;
  --vasy-text: #0f172a;
  --vasy-text-muted: #64748b;
  --vasy-black: #0f172a;
  --vasy-blue: #4f46e5;
  --pos-primary: #4f46e5;
  --pos-success: #10b981;
  --pos-success-dark: #059669;
  --pos-danger: #ef4444;
  --pos-radius: 10px;
  --vasy-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --vasy-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--vasy-bg);
  font-size: 13px;
  color: var(--vasy-text);
}

/* ── Top bar ── */
.vasy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--vasy-border);
  box-shadow: var(--vasy-shadow-sm);
  flex-shrink: 0;
  gap: 10px;
}

.vasy-logo { flex-shrink: 0; }

.vasy-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.vasy-dash-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.42);
  color: #fff !important;
}

.vasy-top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.vasy-header-context {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
}

.vasy-header-context .context-item {
  min-width: 110px;
  cursor: pointer;
  background: var(--vasy-surface);
  border: 1px solid var(--vasy-border);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: var(--vasy-shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.vasy-header-context .context-item:not(.location-selector) { cursor: default; }

.vasy-header-context .context-item.location-selector:hover {
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
  transform: translateY(-1px);
}

.vasy-header-context .context-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--vasy-primary-light) !important;
}

.vasy-header-context .context-icon i { color: var(--vasy-primary) !important; }

.vasy-header-context .context-label {
  font-size: 9px;
  color: var(--vasy-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.vasy-header-context .context-value {
  font-size: 12px;
  color: var(--vasy-text);
  font-weight: 700;
}

.vasy-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.vasy-exit-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.38);
  color: #fff !important;
}

.vasy-exit-btn__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Main layout ── */
.vasy-main { display: flex; flex: 1; min-height: 0; overflow: hidden; }

.vasy-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--vasy-surface);
  border-right: 1px solid var(--vasy-border);
}

.vasy-search-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--vasy-border);
  align-items: center;
  background: var(--vasy-surface-2);
}

.vasy-search-row .context-item {
  height: 40px;
  border: 1px solid var(--vasy-border);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--vasy-surface);
  width: 100%;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.vasy-search-row .context-item:hover {
  background: #fff;
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.vasy-search-field { position: relative; min-width: 0; }

.vasy-search-field input {
  height: 38px;
  border: 1px solid var(--vasy-border);
  border-radius: 8px;
  padding: 0 36px 0 12px;
  font-size: 13px;
  width: 100%;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vasy-search-field input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.vasy-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--vasy-text-muted);
  cursor: pointer;
  padding: 4px;
}

.vasy-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  max-height: 320px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--vasy-border);
  border-radius: 10px;
  box-shadow: var(--vasy-shadow);
}

.vasy-search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 13px;
}

.vasy-search-result-item:hover { background: var(--vasy-primary-light); }
.vasy-search-result-item.active {
  background: #e0e7ff;
  outline: 2px solid var(--vasy-primary);
  outline-offset: -2px;
}
.vasy-search-result-item .name { font-weight: 600; color: var(--vasy-text); }
.vasy-search-result-item .meta { font-size: 11px; color: var(--vasy-text-muted); }

/* ── Table ── */
.vasy-table-wrap { flex: 1; overflow: auto; min-height: 0; background: #fff; }

.vasy-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.vasy-table thead tr {
  background: #4f46e5;
}

.vasy-table thead th {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 8px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  border: none;
  white-space: nowrap;
}

.vasy-table tbody td {
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.vasy-table tbody tr:hover { background: #f8fafc; }
.vasy-table tbody tr.selected { background: #eef2ff; }

.vasy-qty-input {
  width: 70px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--vasy-border);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vasy-qty-input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.vasy-empty {
  text-align: center;
  padding: 48px 16px;
  color: #94a3b8;
  font-size: 14px;
}

/* ── Footer summary ── */
.vasy-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--vasy-border);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 -2px 12px rgba(15, 23, 42, 0.04);
}

.vasy-summary-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  align-items: end;
}

.vasy-stat-box {
  text-align: center;
  border: 1px solid var(--vasy-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  box-shadow: var(--vasy-shadow-sm);
}

.vasy-stat-box .val { font-weight: 700; font-size: 15px; color: var(--vasy-text); }
.vasy-stat-box .lbl { font-size: 10px; color: var(--vasy-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.vasy-stat-box .pos-discount-btn { width: 100%; justify-content: center; margin-top: 4px; }

.vasy-total-box {
  text-align: right;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
}

.vasy-total-box .lbl {
  font-size: 10px;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.vasy-total-box .amount {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

/* ── Footer action buttons ── */
.vasy-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--vasy-border);
  background: #fff;
}

.vasy-footer-actions .pos-action-btn {
  min-width: 130px;
  height: 50px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.vasy-footer-actions .pos-action-btn.cancel {
  background: #fff;
  color: var(--vasy-danger);
  border: 1.5px solid #fecaca;
  flex: 0.35;
  box-shadow: var(--vasy-shadow-sm);
}

.vasy-footer-actions .pos-action-btn.cancel:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.vasy-footer-actions .pos-action-btn.hold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #fff;
  border: none;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
  flex: 0.35;
}

.vasy-footer-actions .pos-action-btn.hold:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.vasy-footer-actions .pos-action-btn.pay {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38);
  flex: 0.45;
}

.vasy-footer-actions .pos-action-btn.pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.vasy-quick-item { position: relative; }

.vasy-hold-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--vasy-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

/* ── Sidebar ── */
.vasy-sidebar {
  width: 272px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--vasy-border);
  background: var(--vasy-surface-2);
  overflow: visible;
  position: relative;
}

.vasy-quick-shell {
  position: relative;
  border-bottom: 1px solid var(--vasy-border);
  background: #fff;
}

.vasy-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}

.vasy-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid var(--vasy-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  min-height: 64px;
  background: #fff;
  color: var(--vasy-text-muted);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
  box-shadow: var(--vasy-shadow-sm);
}

.vasy-quick-item i {
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.vasy-quick-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--vasy-shadow);
  color: #fff;
  border-color: transparent;
}

.vasy-quick-item:hover i { background: rgba(255, 255, 255, 0.2) !important; color: #fff !important; }

/* Sidebar action colors */
.vasy-quick-payment i { background: #ecfdf5; color: #059669; }
.vasy-quick-payment:hover { background: linear-gradient(135deg, #10b981, #059669); }

.vasy-quick-pending i { background: #fffbeb; color: #d97706; }
.vasy-quick-pending:hover { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.vasy-quick-orders i { background: #eef2ff; color: #4f46e5; }
.vasy-quick-orders:hover { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.vasy-order-badge { background: #4f46e5; box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35); }

.vasy-quick-stock i { background: #eff6ff; color: #2563eb; }
.vasy-quick-stock:hover { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.vasy-quick-register i { background: #ecfeff; color: #0891b2; }
.vasy-quick-register:hover { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.vasy-quick-zreport i { background: #f5f3ff; color: #7c3aed; }
.vasy-quick-zreport:hover { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.vasy-quick-return i { background: #fff1f2; color: #e11d48; }
.vasy-quick-return:hover { background: linear-gradient(135deg, #f43f5e, #e11d48); }

.vasy-quick-shift i { background: #f1f5f9; color: #475569; }
.vasy-quick-shift:hover { background: linear-gradient(135deg, #64748b, #475569); }

.vasy-quick-close-shift i { background: #fef2f2; color: #dc2626; }
.vasy-quick-close-shift:hover { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ── Customer panel ── */
.vasy-cust-panel {
  flex: 1;
  overflow: auto;
  padding: 12px 14px;
  font-size: 13px;
  background: #fff;
}

.vasy-cust-panel h6 {
  color: var(--vasy-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vasy-cust-panel .row-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #e2e8f0;
  gap: 8px;
}

.vasy-cust-panel .row-item strong { color: var(--vasy-text); }

.vasy-last-bill {
  padding: 12px 14px;
  border-top: 1px solid var(--vasy-border);
  background: #fff;
}

.vasy-last-bill .row-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}

.vasy-last-bill .print-btn {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.vasy-last-bill .print-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}

/* ── Party / pickers ── */
.vasy-classic-party-btn {
  height: 38px;
  border: 1px solid var(--vasy-border);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--vasy-text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vasy-classic-party-btn:hover {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.vasy-picker-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--vasy-border);
  border-radius: 10px;
  box-shadow: var(--vasy-shadow);
  max-height: 220px;
  overflow: auto;
}

.vasy-picker-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
}

.vasy-picker-menu button:hover,
.vasy-picker-menu button.active { background: var(--vasy-primary-light); }

.vasy-picker-wrap { position: relative; min-width: 0; }

.vasy-header-select {
  border: 1px solid var(--vasy-border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 600;
  max-width: 140px;
}

@media (max-width: 1200px) {
  .vasy-search-row { grid-template-columns: 1fr 1fr; }
  .vasy-summary-row { grid-template-columns: 1fr 1fr; }
}
