/* ==========================================================================
   Global Apple-Inspired Minimalist & Centered Design System (Tablet PWA)
   Enforces centered alignment for titles, headers, primary containers,
   form controls, tables, and action button groups across Staff & Kiosk views.
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 20px 24px;
  background-color: #f8fafc;
  color: #0f172a;
  text-align: center;
}

/* Core Titles & Section Headers - Always Centered */
h1, h2, h3, h4, h5, h6,
.page-title,
.page-subtitle,
.header-title,
.kiosk-main-title,
.kiosk-subtitle,
.pn-landing-title,
.pn-landing-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
}

/* Primary Structural Containers - Symmetrical & Centered */
.card,
.manual-card,
.queue-section,
.modal {
  margin-left: auto;
  margin-right: auto;
}

/* Form Elements, Filter Bars & Button Groups - Balanced Whitespace & Centered */
.row,
.actions,
.actions-stack,
.header-controls,
.filter-bar,
.printer-controls,
.printer-toggle-row,
#printControl {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Tables - Clean, Symmetrical & Centered */
table {
  border-collapse: collapse;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
}

th, td {
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  text-align: center;
  vertical-align: middle;
}

.barcode-col {
  word-break: break-all;
}

th {
  background: #f1f5f9;
  font-weight: 700;
}

/* Standalone & Group Buttons */
button {
  margin: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.12s ease, opacity 0.15s ease, filter 0.15s ease;
}

button:hover:not(:disabled) {
  opacity: 0.92;
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

/* Customer grouping colors (1..10) for live_customers rows */
.customer-color-1 { background: #f4cccc; }
.customer-color-2 { background: #ffe599; }
.customer-color-3 { background: #d9ead3; }
.customer-color-4 { background: #c9daf8; }
.customer-color-5 { background: #ead1dc; }
.customer-color-6 { background: #cfe2f3; }
.customer-color-7 { background: #f9cb9c; }
.customer-color-8 { background: #d0e0e3; }
.customer-color-9 { background: #fff2cc; }
.customer-color-10 { background: #ead1dc; }
