/* Customer count — scoped styles for the staff tap screen only. Loaded solely by
   customer-count.html. Target: 2018 iPad 6th gen, iPadOS 17 Safari, BOTH orientations
   (1024x768 / 768x1024). Layout keys off content width, not viewport breakpoints. */

/* Full iPad width without touching the global .page 480px cap (scoped modifier, same
   pattern as flavour-velocity/scorecard/pricing-model). */
.page--wide { max-width: 900px; }

/* --- top strip ------------------------------------------------------------ */
.cc-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 18px; }
.cc-top .cc-back { font-size: 15px; }
.cc-tally { font-size: 16px; font-weight: 600; }
.cc-tally .cc-pct { color: var(--accent-text); }
.cc-meta { color: var(--text-muted); font-size: 13px; margin-left: auto; text-align: right; }
.cc-meta .cc-clock { font-variant-numeric: tabular-nums; }

/* --- the two big buttons -------------------------------------------------- */
/* touch-action:manipulation kills Safari's double-tap-to-zoom so rapid taps never
   zoom; the two no-select / no-tap-highlight rules stop text selection and the grey
   flash on fast repeated taps. */
.cc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.cc-tap {
  min-height: 150px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cc-tap:active { filter: brightness(0.96); }
.cc-tap .cc-tap-main { font-size: 30px; font-weight: 700; }
.cc-tap .cc-tap-sub { font-size: 15px; opacity: 0.85; }
.cc-tap.cc-new { background: var(--success-bg); color: var(--success-fill); border-color: var(--success-fill); }
.cc-tap.cc-ret { background: var(--accent-bg); color: var(--accent-text); border-color: var(--accent-text); }

/* --- pending panel -------------------------------------------------------- */
.cc-pending-empty {
  border: 2px dashed var(--border-strong); border-radius: 14px;
  padding: 22px 18px; text-align: center; color: var(--text-secondary); font-size: 15px;
}
.cc-pending {
  border: 1px solid var(--warning-text); background: var(--warning-bg); border-radius: 14px;
  padding: 16px 18px;
}
.cc-pending-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cc-pending-head h2 { font-size: 16px; font-weight: 700; color: var(--warning-text); margin: 0; }
.cc-countdown { font-size: 13px; color: var(--warning-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-line { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.cc-line-label { font-size: 17px; flex: 1; }
.cc-line-count { font-size: 22px; font-weight: 700; min-width: 1.5em; text-align: right; font-variant-numeric: tabular-nums; }
.cc-minus {
  min-width: 46px; min-height: 46px; border-radius: 12px; font-size: 22px; line-height: 1;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.cc-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(138,90,18,0.25); }
.cc-foot .cc-people { font-weight: 600; color: var(--warning-text); }
.cc-foot .cc-foot-actions { margin-left: auto; display: flex; gap: 10px; }
.cc-save { min-height: 46px; padding: 10px 22px; font-size: 16px; font-weight: 600; }

/* --- confirmation + undo -------------------------------------------------- */
.cc-confirm { margin-top: 14px; font-size: 15px; color: var(--success-fill); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cc-confirm .cc-tick { font-weight: 700; }
.cc-undo { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.cc-undo-msg { color: var(--warning-text); }

/* --- not-saved list ------------------------------------------------------- */
.cc-notsaved { margin-top: 16px; }
.cc-notsaved h3 { font-size: 14px; color: var(--danger-text); margin: 0 0 8px; }
.cc-notsaved-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid var(--danger-text); background: var(--danger-bg); border-radius: 10px; font-size: 14px;
}
.cc-notsaved-item .cc-retry { margin-left: auto; min-height: 40px; }
