/* ==========================================================================
   AntrianKu - Sistem Nomor Antrian Minimalis Modern (HP & Tablet Ready)
   Design System & Responsive Stylesheet
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-ring: rgba(79, 70, 229, 0.25);
  
  --success: #10b981;
  --success-hover: #059669;
  --success-light: #ecfdf5;
  --success-text: #065f46;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-text: #92400e;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-text: #991b1b;
  
  --bg-main: #f8fafc;
  --surface: #ffffff;
  --surface-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
  padding: 0.875rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Bluetooth Status Badge */
.bt-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.bt-status-badge:hover {
  background: var(--bg-main);
  border-color: #cbd5e1;
}

.bt-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--text-light);
  display: inline-block;
  transition: background-color 0.3s ease;
}

.bt-indicator.connected {
  background-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.bt-indicator.connecting {
  background-color: var(--warning);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

/* ==========================================================================
   Main Layout (Responsive Phone & Tablet)
   ========================================================================== */
.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem;
  width: 100%;
  flex: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 460px 1fr;
    align-items: start;
  }
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.card-body {
  padding: 1.25rem;
}

/* ==========================================================================
   Queue Generator Card (Minimalist & Big Touch Targets)
   ========================================================================== */
.queue-generator-card {
  background: linear-gradient(to bottom, #ffffff, #fafbfe);
  border: 2px solid #e0e7ff;
}

.next-number-banner {
  text-align: center;
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.next-number-banner::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.next-number-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.next-number-display {
  font-size: 25pt;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1e1b4b;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.next-number-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Customer Name Input Field */
.form-group-customer {
  margin-bottom: 1.15rem;
}

.customer-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.optional-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
}

.customer-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.customer-input-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.customer-input-field {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.customer-input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
  background: #ffffff;
}

.customer-input-field::placeholder {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 400;
}

.customer-name-tag {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

/* Checklist Status LUNAS (Prominent Interactive Box) */
.lunas-toggle-wrapper {
  margin-bottom: 1.25rem;
}

.lunas-checkbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.15rem;
  border-radius: var(--radius-md);
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lunas-checkbox-card.is-active {
  background: var(--success-light);
  border-color: var(--success);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.lunas-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lunas-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.lunas-checkbox-card.is-active .lunas-icon-box {
  background: var(--success);
  color: white;
}

.lunas-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lunas-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lunas-checkbox-card.is-active .lunas-text h4 {
  color: var(--success-text);
}

/* Custom Large Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--success);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Live Receipt Preview Stamp */
.lunas-preview-badge {
  display: none;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--success-light);
  border: 1px dashed var(--success);
  color: var(--success-text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  text-align: center;
}

.lunas-preview-badge.visible {
  display: block;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pesanan Tambahan Section */
.form-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group-label span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.preset-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 480px) {
  .preset-pills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.preset-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-main);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.preset-chip:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.preset-chip input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  border-radius: 4px;
  cursor: pointer;
}

.preset-chip.checked {
  background: var(--primary-light);
  border-color: #c7d2fe;
  color: #3730a3;
  font-weight: 600;
}

.custom-extra-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.25rem;
}

.custom-extra-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

/* Action Buttons */
.btn-group-primary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
  min-height: 48px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  font-size: 1.05rem;
}

.btn-primary-gradient:hover {
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--bg-main);
  border-color: #cbd5e1;
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  min-height: 34px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Statistics Overview Cards
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.stat-value.color-lunas {
  color: var(--success);
}

.stat-value.color-belum {
  color: var(--warning);
}

.stat-value.color-primary {
  color: var(--primary);
}

/* ==========================================================================
   Queue List (Daftar Antrian Hari Ini)
   ========================================================================== */
.queue-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.queue-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 0.25rem;
  border-radius: var(--radius-md);
  gap: 0.25rem;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.queue-items-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Custom Scrollbar */
.queue-items-container::-webkit-scrollbar {
  width: 6px;
}
.queue-items-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.queue-card-row {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.queue-card-row:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.queue-card-row.is-called {
  border-left: 4px solid var(--primary);
  background: #fafbfe;
}

.queue-left {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  min-width: 0;
}

.queue-number-badge {
  background: #f1f5f9;
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  min-width: 76px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  border: 1px solid #e2e8f0;
}

.queue-info-meta {
  min-width: 0;
  flex: 1;
}

.queue-info-meta .time {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.queue-extras-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.extra-pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  background: #f1f5f9;
  border-radius: 4px;
  color: var(--text-muted);
}

.extra-pill.catatan {
  background: #fef3c7;
  color: #92400e;
  font-style: italic;
}

/* Lunas Interactive Button in List */
.lunas-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

.lunas-badge-btn.lunas {
  background: var(--success-light);
  color: var(--success-text);
  border-color: #a7f3d0;
}

.lunas-badge-btn.belum-lunas {
  background: var(--warning-light);
  color: var(--warning-text);
  border-color: #fde68a;
}

.lunas-badge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.queue-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 1rem;
}

.action-icon-btn:hover {
  background: var(--bg-main);
  color: var(--primary);
  border-color: var(--primary);
}

.action-icon-btn.btn-call:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.action-icon-btn.btn-delete:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger);
}

/* Empty State */
.empty-queue {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-queue-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-body {
  padding: 1.25rem;
}

.modal-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* ==========================================================================
   Thermal Receipt Print Layout (CSS 58mm / 80mm ESC/POS Receipt Styling)
   ========================================================================== */
#receipt-print-area {
  display: none;
}

.receipt-paper {
  background: #ffffff;
  color: #000000;
  font-family: 'Courier New', Courier, monospace;
  width: 280px;
  margin: 0 auto;
  padding: 15px 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  font-size: 12pt;
  line-height: 1.3;
  text-align: center;
}

.receipt-header-title {
  font-size: 13pt;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.receipt-contact {
  font-size: 7.5pt;
  color: #222;
  margin: 2px 0 4px;
  line-height: 1.2;
  white-space: nowrap;
}

.receipt-divider {
  border-top: 1px dashed #000000;
  margin: 6px 0;
}

.receipt-date-time {
  font-size: 12pt;
  color: #111;
  font-weight: 500;
  margin: 4px 0;
}

.receipt-queue-number {
  font-size: 36pt;
  font-weight: 900;
  line-height: 1.1;
  margin: 10px 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transform: scale(1);
}

.receipt-lunas-stamp {
  display: inline-block;
  border: 1.5px solid #000000;
  padding: 4px 14px;
  font-size: 12pt;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 6px 0;
  text-transform: uppercase;
}

.receipt-lunas-stamp.belum {
  border: 1.5px solid #000000;
  font-size: 12pt;
  letter-spacing: 1px;
  padding: 4px 10px;
}

.receipt-footer-msg {
  font-size: 9.5pt;
  font-weight: 600;
  color: #111;
  margin-top: 6px;
  line-height: 1.35;
}

/* Native Print Styles (@media print) */
@media print {
  body * {
    visibility: hidden;
  }
  
  #receipt-print-area,
  #receipt-print-area * {
    visibility: visible;
  }
  
  #receipt-print-area {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 58mm; /* Standard 58mm POS thermal paper */
    margin: 0;
    padding: 0;
    background: #fff;
    color: #000;
  }
  
  .receipt-paper {
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2mm 1mm !important;
    font-size: 12pt !important;
  }

  .receipt-contact {
    font-size: 7.5pt !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    margin: 1mm 0 2mm !important;
  }

  .receipt-date-time {
    font-size: 12pt !important;
  }

  .receipt-queue-number {
    font-size: 36pt !important;
    font-weight: 900 !important;
    margin: 5mm 0 !important;
    white-space: nowrap !important;
    letter-spacing: 1px !important;
  }

  .receipt-lunas-stamp {
    font-size: 12pt !important;
  }
  
  @page {
    margin: 0;
    size: 58mm auto; /* auto height for roll paper */
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: white;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
  animation: slideUp 0.25s ease-out;
}

.toast.toast-success {
  background: #065f46;
  border-left: 4px solid var(--success);
}

.toast.toast-warning {
  background: #78350f;
  border-left: 4px solid var(--warning);
}

.toast.toast-danger {
  background: #7f1d1d;
  border-left: 4px solid var(--danger);
}

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