/* =============================================================
   Phlox Studio POS — style.css
   High-end professional: Black · Navy · White
   ============================================================= */

:root {
  --bg:           #f4f5f7;
  --surface:      #ffffff;
  --border:       #e1e4e8;
  --border-soft:  #eaecef;

  /* Primary: deep navy-black */
  --primary:       #1a2236;
  --primary-mid:   #243049;
  --primary-light: #eef0f5;

  /* Accent: clean white-on-dark + a single warm highlight */
  --accent:        #2d6be4;   /* clean blue for interactive elements */
  --accent-light:  #edf2fc;

  --green:         #1a8f5a;
  --green-light:   #eaf5ef;

  --rose:          #c0392b;
  --rose-light:    #fdf0ef;

  --text:          #111827;
  --text-mid:      #4b5563;
  --text-muted:    #9ca3af;

  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;

  --shadow:        0 1px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 24px rgba(0,0,0,0.11);

  --nav-h:         64px;
  --top-h:         54px;

  --font-body:     'DM Sans', system-ui, sans-serif;
  --font-display:  'Outfit', system-ui, sans-serif;
  --font-mono:     'DM Mono', 'Fira Mono', monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ---- App Shell ---- */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
}

/* ---- Top Bar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--top-h);
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}
.topbar-title {
  flex: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  text-align: center;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}
.user-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
}

/* ---- Bottom Navigation ---- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 100;
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25);
}
.bottom-nav::-webkit-scrollbar { display: none; }

.nav-item {
  flex: 1;
  min-width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 6px;
  gap: 2px;
  font-size: 10px;
  color: rgba(255,255,255,0.38);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-item .nav-icon { font-size: 18px; line-height: 1; }
.nav-item.active { color: #fff; }
.nav-item.active .nav-icon { filter: drop-shadow(0 0 4px rgba(45,107,228,0.7)); }

/* ---- Main Content ---- */
.main-content {
  flex: 1;
  padding: 16px 16px calc(var(--nav-h) + 16px);
  overflow-x: hidden;
}

/* ---- Login ---- */
.login-body {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 24px;
}
.login-wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.login-brand { text-align: center; }
.login-logo-ring {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: 1px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(45,107,228,0.4);
}
.login-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}
.login-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.login-card {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.login-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  margin-bottom: 16px;
}
.card.p-0 { padding: 0; overflow: hidden; }
.card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.card-warning {
  background: #fffbeb;
  border-color: #f59e0b;
}

/* ---- Stat Cards ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-card.profit-pos {
  border-left: 3px solid var(--green);
  background: var(--green-light);
}
.stat-card.profit-neg {
  border-left: 3px solid var(--rose);
  background: var(--rose-light);
}
.stat-card.stat-inline { margin-bottom: 12px; }
.stat-icon { font-size: 20px; flex-shrink: 0; opacity: 0.75; }
.stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.3px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ---- Section Label ---- */
.section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 20px 0 8px;
}

/* ---- Rows ---- */
.sale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.12s;
}
.sale-row:last-child { border-bottom: none; }
.sale-row:hover { background: var(--bg); }
.sale-row.cancelled { opacity: 0.5; }

.pm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.pm-row:last-child { border-bottom: none; }

.log-row {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 8px;
  align-items: start;
  font-size: 13px;
}
.log-action {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.log-green  { color: var(--green); }
.log-rose   { color: var(--rose); }
.log-gold   { color: #d97706; }
.log-muted  { color: var(--text-muted); }
.log-meta   { color: var(--text-mid); }
.log-time   { text-align: right; white-space: nowrap; }

/* ---- Fields ---- */
.field-group { margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: auto;
}
.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,107,228,0.12);
}
.field-input.field-sm {
  padding: 8px 12px;
  font-size: 14px;
}
textarea.field-input { resize: vertical; }

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row;
  margin-bottom: 14px;
}
.check-row input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.btn-primary:hover { background: var(--primary-mid); border-color: var(--primary-mid); }
.btn-outline {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg); }
.btn-danger {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-danger:hover { background: #a5302a; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-fab {
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(45,107,228,0.35);
}
.btn-fab:hover { background: #2460cc; }
.btn-icon {
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 15px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
}
.btn-icon:hover { background: var(--bg); }
.btn-icon-remove { color: var(--rose); }

/* ---- New Sale Page ---- */
.sale-page {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: calc(var(--nav-h) + 60px);
}
.sale-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.sale-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Category Tabs */
.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-bottom: 12px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all 0.14s;
}
.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cat-panel { display: none; }
.cat-panel.active { display: grid; }

/* Service Buttons */
.svc-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.svc-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1.5px solid transparent;
  transition: all 0.14s;
  text-align: left;
  gap: 4px;
}
.svc-btn:hover, .svc-btn:active {
  border-color: var(--primary);
  background: #dce2ee;
}
.svc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.svc-price { font-size: 13px; color: var(--accent); font-weight: 600; }
.btn-custom-item {
  width: 100%;
  border: 1.5px dashed var(--border);
  color: var(--text-muted);
  font-size: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  margin-top: 4px;
  transition: all 0.14s;
}
.btn-custom-item:hover { border-color: var(--accent); color: var(--accent); }

/* Cart Items */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 10px;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-main { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 15px; }
.cart-item-actions { display: flex; gap: 4px; }

/* Payment method buttons */
.pm-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.pm-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  transition: all 0.14s;
}
.pm-btn.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

/* Totals */
.sale-totals {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 15px;
  color: var(--text-mid);
}
.total-grand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  border-top: 1.5px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
}

/* Save button sticky */
.sale-save {
  position: sticky;
  bottom: calc(var(--nav-h) + 8px);
  z-index: 50;
  padding: 10px 0 0;
}

/* ---- Customer search ---- */
.customer-wrap { position: relative; }
.customer-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 60;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.customer-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.1s;
}
.customer-option:last-child { border-bottom: none; }
.customer-option:hover { background: var(--bg); }
.customer-option-name  { font-weight: 600; }
.customer-option-phone { font-size: 12px; color: var(--text-muted); }

/* ---- Receipt ---- */
.minimal-layout { background: var(--bg); }
.receipt-shell {
  min-height: 100dvh;
  padding: 0 0 40px;
  max-width: 520px;
  margin: 0 auto;
}
.receipt-wrap { display: flex; flex-direction: column; gap: 0; }

/* Top nav bar on receipt */
.receipt-nav-bar {
  background: var(--primary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.receipt-nav-bar a {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.14s;
}
.receipt-nav-bar a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.receipt-nav-bar a.home-link {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
}

.receipt-card {
  background: var(--surface);
  margin: 16px;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.receipt-header { text-align: center; }
.receipt-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.receipt-tagline {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}
.receipt-addr { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.receipt-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.receipt-divider.dashed {
  background: none;
  border-top: 1.5px dashed var(--border);
}
.receipt-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.receipt-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}
.receipt-value { font-size: 14px; font-weight: 600; margin-top: 2px; }
.receipt-value.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.receipt-items { display: flex; flex-direction: column; gap: 12px; }
.receipt-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.receipt-item-details { flex: 1; }
.receipt-item-name  { font-size: 14px; font-weight: 600; }
.receipt-item-staff { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.receipt-item-note  { font-size: 12px; color: var(--text-muted); font-style: italic; }
.receipt-item-price { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.receipt-totals { display: flex; flex-direction: column; gap: 4px; }
.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-mid);
}
.receipt-grand-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  border-top: 1.5px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
}
.receipt-notes { font-size: 13px; color: var(--text-mid); }
.receipt-footer-msg {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 4px;
}
.receipt-staff-line {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 16px 16px;
}
.cancelled-banner {
  background: var(--rose);
  color: white;
  text-align: center;
  padding: 10px;
  margin: 16px 16px 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 8px;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius);
  padding: 24px 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.modal-actions .btn { flex: 1; }

/* ---- Flash ---- */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}
.flash-success { background: var(--green-light); color: #145a38; border: 1px solid var(--green); }
.flash-error   { background: var(--rose-light);  color: #922b21; border: 1px solid var(--rose);  }

/* ---- Filters ---- */
.filter-form { margin-bottom: 14px; }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-row .field-input { flex: 1; min-width: 120px; }

/* ---- Tab Bar ---- */
.tab-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.14s;
  white-space: nowrap;
}
.tab-btn.active { background: var(--primary); color: #fff; }

/* ---- Trend Chart ---- */
.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  padding-top: 8px;
}
.trend-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.trend-bar {
  width: 100%;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  opacity: 0.85;
}
.trend-label { font-size: 9px; color: var(--text-muted); }

/* ---- Badges ---- */
.badge {
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  margin-left: 4px;
}
.badge-role { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.badge-admin    { background: var(--primary-light); color: var(--primary); }
.badge-employee { background: var(--green-light); color: var(--green); }
.badge-cancelled { font-size: 11px; font-weight: 600; color: var(--rose); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- Receipt number in lists ---- */
.receipt-no {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ---- Misc ---- */
.dashboard  { padding-bottom: calc(var(--nav-h) + 16px); }
.page-content { padding-bottom: calc(var(--nav-h) + 16px); }
.dash-fab-area {
  position: sticky;
  bottom: calc(var(--nav-h) + 8px);
  text-align: center;
  margin-top: 8px;
}
.empty-state { padding: 32px; text-align: center; color: var(--text-muted); font-size: 14px; }
.text-sm    { font-size: 13px; }
.text-muted { color: var(--text-muted); }
.text-rose  { color: var(--rose); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

/* ---- Desktop ---- */
@media (min-width: 600px) {
  .app-shell { box-shadow: 0 0 60px rgba(0,0,0,0.15); }
  .bottom-nav { border-radius: 0 0 var(--radius) var(--radius); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-overlay { align-items: center; padding: 0 16px; }
  .modal-box { border-radius: var(--radius-lg); }
}

/* ---- Tech / Staff Selector (sale-new) ---- */
.tech-selector-section {
  border-left: 3px solid var(--accent);
}
.tech-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.tech-btn {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--bg);
  border: 2px solid var(--border);
  transition: all 0.14s;
  cursor: pointer;
}
.tech-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tech-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.tech-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.tech-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
