/* ==========================================================================
   Manor Lakes News & Lotto - Syndicate Dashboard Styles
   Franchisee Standard Color Codes & Layout Specifications
   ========================================================================== */

:root {
  /* Franchisee Brand Palette */
  --oz-green: #087743;
  --oz-yellow: #E7E951;
  --pb-blue: #004aad;
  --tatts-red: #d20a0a;
  --wf-teal: #008080;
  --wf-purple: #593887;
  --gold-text: #ffd700;

  /* Status Colors */
  --status-avail: #1e9c47;
  --status-sold: #ff9900;
  --status-soldout: #d9534f;
  --status-central: #0a26c2;

  /* UI Neutrals */
  --bg-app: #f4f6f9;
  --bg-card: #ffffff;
  --bg-table-header: #f2f1ef;
  --bg-table-container: #f3f3f3;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-light: #e5e7eb;
  
  --font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-width: 200px;
  --card-min-height: 200px;
  --card-radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   App Header & Navigation
   ========================================================================== */
.app-header {
  background-color: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  border-bottom: 1px solid #edf2f7;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 54px;
  width: 54px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 61, 100, 0.15);
  background-color: #ffffff;
  padding: 2px;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f3d64;
  letter-spacing: -0.02em;
  margin: 0;
}

.brand-text .subtext {
  font-size: 0.8rem;
  color: #e59c00;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clock-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85rem;
}

.clock-time {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

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

.sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.sync-status.offline {
  background-color: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

.sync-status.offline .status-dot {
  background-color: #f59e0b;
}

.sync-refresh-timer {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background-color: rgba(0, 0, 0, 0.04);
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-left: 6px;
  letter-spacing: 0.2px;
}

.header-btn {
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.header-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.header-btn.active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Nav Tabs */
.nav-tabs-bar {
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
  gap: 4px;
  scrollbar-width: none;
}

.nav-tabs-bar::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
}

.nav-tab-btn:hover {
  color: #0f172a;
  background-color: #f8fafc;
}

.nav-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

.tab-badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  background-color: #e2e8f0;
  color: #475569;
}

.nav-tab-btn.active .tab-badge {
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Staff View Tab Structure Support */
.nav-tab-btn .tab-top-row {
  display: contents;
}
.nav-tab-btn .tab-icon {
  order: 1;
}
.nav-tab-btn .tab-title {
  order: 2;
  display: inline-flex;
}
.nav-tab-btn .tab-badge {
  order: 3;
}

/* Kiosk Progress Bar */
.kiosk-progress-container {
  height: 3px;
  width: 100%;
  background-color: #e2e8f0;
  display: none;
}

.kiosk-progress-container.active {
  display: block;
}

.kiosk-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #0284c7;
  transition: width linear;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 16px 20px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-panel.active {
  display: block;
}

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

/* ==========================================================================
   Banner Headers (Official Franchisee Format)
   ========================================================================== */
.game-banner {
  position: relative;
  height: 76px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
  margin-bottom: 14px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.game-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.game-banner .banner-date {
  color: var(--gold-text);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  z-index: 1;
}

.game-banner .banner-jackpot {
  color: var(--gold-text);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  z-index: 1;
  text-align: right;
}

.banner-ozlotto {
  background-image: url('assets/ozlotto.png');
}

.banner-powerball {
  background-image: url('assets/powerball_r.png');
}

.banner-tattslotto {
  background-image: url('assets/TattsLotto_r.png');
}

.banner-windfall {
  background-image: url('assets/windfall.jpg');
}

/* ==========================================================================
   Franchisee Syndicate Cards Grid (APEX Pixel-Perfect Replication)
   ========================================================================== */
.syndicate-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  justify-content: start;
  margin: 0;
  padding: 0;
  width: 100%;
}

.syndicate-card {
  background-color: #ffffff;
  border-radius: var(--card-radius);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  font-family: var(--font-family);
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: var(--card-min-height);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 600px) {
  .syndicate-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
}

.syndicate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

/* Status Badge in Card (top-right circle) */
.status-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1.1em;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.status-available .status-badge {
  color: var(--status-avail);
}

.status-sold .status-badge {
  color: var(--status-sold);
}

.status-unavailable .status-badge {
  color: var(--status-soldout);
}

.status-central .status-badge {
  color: var(--status-central);
}

/* Card Header (Logo Section) */
.syndicate-header {
  height: 40px;
  margin: 0;
  padding: 0;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
  background-position: center;
  background-repeat: no-repeat;
}

.card-ozlotto .syndicate-header {
  background-color: #04af1e;
  background-image: url('assets/ozlotto.png');
  background-size: 100% 100%;
}

.card-powerball .syndicate-header {
  background-color: #19479b;
  background-image: url('assets/powerball.png');
  background-size: contain;
}

.card-tattslotto .syndicate-header {
  background-color: #e31c23;
  background-image: url('assets/TattsLotto.png');
  background-size: contain;
}

.card-windfall .syndicate-header {
  background-color: #593887;
  background-image: url('assets/windfall.jpg');
  background-size: contain;
}

/* Card Body */
.syndicate-body {
  padding: 6px 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.syndicate-title {
  font-size: 1em;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding-top: 0;
  padding-bottom: 4px;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
}

.card-ozlotto .syndicate-title {
  color: var(--oz-green);
}

.card-powerball .syndicate-title {
  color: var(--pb-blue);
}

.card-tattslotto .syndicate-title {
  color: var(--tatts-red);
}

.card-windfall .syndicate-title {
  color: var(--wf-teal);
}

.syndicate-subtitle {
  font-weight: 600;
  margin: 4px 0 2px 0;
  font-size: 0.85em;
  color: #4b5563;
}

.syndicate-list {
  list-style: disc;
  margin: 0 0 8px 16px;
  color: #333333;
  font-size: 0.85em;
  flex-grow: 1;
  line-height: 1.3;
}

.syndicate-list li {
  margin-bottom: 2px;
}

/* Price Section */
.syndicate-price {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: auto;
  padding: 0;
}

.price-box {
  border-radius: 8px 8px 0 0;
  padding: 5px 12px 4px 12px;
  text-align: center;
  margin: 0;
  line-height: 1.1;
  width: 90%;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08);
}

.card-ozlotto .price-box {
  background-color: var(--oz-yellow);
  color: #111827;
}

.card-powerball .price-box {
  background-color: var(--pb-blue);
  color: #ffffff;
}

.card-tattslotto .price-box {
  background-color: var(--tatts-red);
  color: #ffffff;
}

.card-windfall .price-box {
  background-color: var(--wf-purple);
  color: #ffffff;
}

.price-amount {
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.price-subtext {
  font-size: 0.75em;
  line-height: 1;
  margin-top: 2px;
  font-weight: 500;
}

/* ==========================================================================
   Multi-Column Layout (Weekly Syndicates - Page 3)
   ========================================================================== */
.multi-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1200px) {
  .multi-game-grid {
    grid-template-columns: 1fr;
  }
}

.game-column {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.game-column-header {
  margin-bottom: 10px;
}

/* ==========================================================================
   Windfall Draw Tabs / Columns (Page 4)
   ========================================================================== */
.windfall-draws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1200px) {
  .windfall-draws-grid {
    grid-template-columns: 1fr;
  }
}

.windfall-draw-col {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Franchisee Table Styling (Shares Left, Weekly Syndicates, Dashboard)
   ========================================================================== */
.table-container {
  background-color: var(--bg-table-container);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 10px;
}

.tatts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}

.tatts-table th {
  background-color: var(--bg-table-header);
  color: #334155;
  font-weight: 700;
  padding: 8px 12px;
  border-bottom: 2px solid #cbd5e1;
  font-size: 0.95rem;
}

.tatts-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tatts-table th.sortable:hover {
  background-color: #cbd5e1;
  color: #0f172a;
}

.sort-indicator {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8rem;
  color: #0284c7;
}

.tatts-table td {
  padding: 6px 12px;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.4;
  vertical-align: middle;
}

.tatts-table tr:hover {
  background-color: #ebebeb;
}

.tatts-table tr:last-child td {
  border-bottom: none;
}

.preserve-lines td.games-cell {
  white-space: pre-wrap;
  font-size: 0.9em;
  color: #334155;
}

/* Status Badges in Tables */
.badge-label-sold {
  display: inline-block;
  background: #0ac21c;
  color: rgb(255, 255, 255);
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 80px;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge-label-soldout {
  display: inline-block;
  background: #c20a0a;
  color: rgb(255, 255, 255);
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 80px;
  font-weight: 600;
  letter-spacing: .3px;
}

.badge-label-central {
  display: inline-block;
  background: #0a26c2;
  color: rgb(255, 255, 255);
  padding: 3px 10px;
  font-size: 0.8rem;
  border-radius: 80px;
  font-weight: 600;
  letter-spacing: .3px;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: 700;
}

/* Filter Bar for Shares Left */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 700;
  color: #475569;
  font-size: 0.9rem;
}

.filter-select, .filter-input {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
}

.filter-select:focus, .filter-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* APEX Replication Banner for Shares Left Page */
.shares-product-banner {
  height: 54px;
  background-color: #0f172a;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0 8px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.shares-product-banner.banner-wf-mon,
.shares-product-banner.banner-wf-wed,
.shares-product-banner.banner-wf-fri,
.shares-product-banner.banner-windfall {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%);
  border-left: 6px solid #a855f7;
}

.shares-product-banner.banner-ozlotto {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
  border-left: 6px solid #10b981;
}

.shares-product-banner.banner-powerball {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-left: 6px solid #3b82f6;
}

.shares-product-banner.banner-tattslotto {
  background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
  border-left: 6px solid #f59e0b;
}

.banner-gold-text {
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
}

/* Quick Filter Pills on Shares Left Page */
.shares-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}

.filter-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.filter-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.3);
}

.filter-pill[data-filter="OPEN_DRAW"] {
  border-color: #0284c7;
  color: #0369a1;
  background: #f0f9ff;
  font-weight: 700;
}

.filter-pill[data-filter="OPEN_DRAW"]:hover {
  background: #e0f2fe;
  color: #0284c7;
}

.filter-pill[data-filter="OPEN_DRAW"].active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.35);
}

.shares-day-section {
  margin-bottom: 22px;
}

/* ==========================================================================
   Dashboard KPI Cards (Page 9)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #0284c7;
  display: flex;
  flex-direction: column;
}

.kpi-card.oz { border-left-color: var(--oz-green); }
.kpi-card.pb { border-left-color: var(--pb-blue); }
.kpi-card.tl { border-left-color: var(--tatts-red); }
.kpi-card.wf { border-left-color: var(--wf-teal); }

.kpi-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0;
}

.kpi-sub {
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   Settings Page (Page 11)
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.settings-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.settings-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
  gap: 12px;
  box-sizing: border-box;
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-row.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.setting-row.stacked .setting-info {
  margin-bottom: 2px;
}

.setting-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.setting-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  word-break: break-word;
}

.setting-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
  word-break: break-word;
}

.setting-row select,
.settings-card select,
.setting-row select.filter-select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}

/* Modern Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.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;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981;
}

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

/* ==========================================================================
   APEX Exact Replication for Display Settings
   ========================================================================== */
.apex-settings-container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
  overflow: hidden;
}

.apex-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  gap: 20px;
  flex-wrap: wrap;
}

.apex-settings-row:last-child {
  border-bottom: none;
}

.apex-card-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #6a0dad 0%, #9b4dff 100%);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.22);
  min-width: 250px;
  font-size: 1.15rem;
  font-weight: 700;
}

.apex-card-pill-label.pill-ozlotto {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.22);
}

.apex-card-pill-label.pill-powerball {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.22);
}

.apex-card-pill-label.pill-tattslotto {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.22);
}

.apex-draw-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.apex-toggles-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 48px;
  flex: 1;
  min-width: 280px;
}

.apex-toggle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.badge-label-central {
  display: inline-block;
  background: #0a26c2;
  color: #ffffff;
  padding: 3px 12px;
  font-size: 0.8rem;
  border-radius: 80px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-label-sold {
  display: inline-block;
  background: #0ac21c;
  color: #ffffff;
  padding: 3px 12px;
  font-size: 0.8rem;
  border-radius: 80px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-label-soldout {
  display: inline-block;
  background: #c20a0a;
  color: #ffffff;
  padding: 3px 12px;
  font-size: 0.8rem;
  border-radius: 80px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.apex-switch {
  width: 48px;
  height: 26px;
}

.apex-switch .slider {
  background-color: #94a3b8;
}

.apex-switch input:checked + .slider {
  background-color: #0066cc;
}

.apex-switch .slider:before {
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
}

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

.btn-primary {
  background-color: #0284c7;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #0369a1;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

/* ==========================================================================
   TV / Fullscreen Mode Overrides
   ========================================================================== */
body.tv-kiosk-mode {
  background-color: #0f172a;
  color: #f8fafc;
}

body.tv-kiosk-mode .app-header {
  background-color: #1e293b;
  border-bottom-color: #334155;
}

body.tv-kiosk-mode .brand-text h1 {
  color: #ffffff;
}

body.tv-kiosk-mode .clock-time {
  color: #ffffff;
}

body.tv-kiosk-mode .nav-tab-btn {
  color: #94a3b8;
}

body.tv-kiosk-mode .nav-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

body.tv-kiosk-mode .nav-tab-btn:hover {
  background-color: #334155;
  color: #ffffff;
}

body.tv-kiosk-mode .game-column,
body.tv-kiosk-mode .windfall-draw-col,
body.tv-kiosk-mode .filter-bar,
body.tv-kiosk-mode .kpi-card,
body.tv-kiosk-mode .settings-card {
  background-color: #1e293b;
  color: #f8fafc;
}

body.tv-kiosk-mode .table-container {
  background-color: #1e293b;
}

body.tv-kiosk-mode .tatts-table th {
  background-color: #334155;
  color: #f8fafc;
  border-bottom-color: #475569;
}

body.tv-kiosk-mode .tatts-table td {
  border-bottom-color: #334155;
  color: #e2e8f0;
}

body.tv-kiosk-mode .tatts-table tr:hover {
  background-color: #273549;
}

body.tv-kiosk-mode .preserve-lines td.games-cell {
  color: #cbd5e1;
}

/* Responsive adjustments */
@media (min-width: 1920px) {
  body {
    font-size: 18px;
  }
  :root {
    --card-width: 220px;
    --card-min-height: 220px;
  }
  .game-banner {
    height: 84px;
    font-size: 22px;
  }
}

/* ==========================================================================
   Customer Tablet & High-Readability Kiosk Presentation Mode
   - Ultra-compact header to eliminate wasted premium space at the top
   - Navigation tabs relocated to the bottom of the browser viewport
   - Exactly 2 card columns for high-impact visibility on tablets
   - Significantly enlarged typography & prices for seniors
   - Hidden internal sync telemetry & clutter
   ========================================================================== */

/* 1. Admin/Staff Controls & Tabs Hidden for Customers & Unauthenticated Devices */
html.customer-mode-init .nav-tab-btn[data-tab="weekly"],
html.customer-mode-init .nav-tab-btn[data-tab="shares"],
html.customer-mode-init .nav-tab-btn[data-tab="dashboard"],
html.customer-mode-init .nav-tab-btn[data-tab="central"],
html.customer-mode-init .nav-tab-btn[data-tab="precommit"],
html.customer-mode-init .nav-tab-btn[data-tab="settings"],
html.customer-mode-init #btn-toggle-kiosk,
html.customer-mode-init #btn-fullscreen,
html.customer-mode-init #btn-header-qr,
html.customer-mode-init #btn-header-install,
html.customer-mode-init #btn-header-lock-customer,
html.customer-mode-init #panel-dashboard,
html.customer-mode-init #panel-weekly,
html.customer-mode-init #panel-shares,
html.customer-mode-init #panel-central,
html.customer-mode-init #panel-precommit,
html.customer-mode-init #panel-settings,
html.customer-mode-init #modal-central,
html.customer-mode-init #modal-precommit,
html.customer-mode-init #modal-whatsapp-settings,
html.customer-mode-init #modal-broadcast,
html.customer-mode-init #modal-customer-qr,
html.customer-mode-init #panel-precommit,
html.customer-mode-init .sync-status,
html.customer-mode-init .sync-refresh-timer,
html.customer-mode-init .brand-text .subtext,
html.customer-mode-init .clock-display,
html.customer-mode-init .clock-time,
html.customer-mode-init .clock-date,
html.customer-mode-init #btn-wf-cards,
html.customer-mode-init #btn-wf-table,
html.customer-mode-init #btn-weekly-cards,
html.customer-mode-init #btn-weekly-table,
body.customer-tablet-mode .nav-tab-btn[data-tab="weekly"],
body.customer-tablet-mode .nav-tab-btn[data-tab="shares"],
body.customer-tablet-mode .nav-tab-btn[data-tab="dashboard"],
body.customer-tablet-mode .nav-tab-btn[data-tab="central"],
body.customer-tablet-mode .nav-tab-btn[data-tab="precommit"],
body.customer-tablet-mode .nav-tab-btn[data-tab="settings"],
body.customer-tablet-mode #btn-toggle-kiosk,
body.customer-tablet-mode #btn-fullscreen,
body.customer-tablet-mode #btn-header-qr,
body.customer-tablet-mode #btn-header-install,
body.customer-tablet-mode #btn-header-lock-customer,
body.customer-tablet-mode #modal-central,
body.customer-tablet-mode #modal-precommit,
body.customer-tablet-mode #modal-whatsapp-settings,
body.customer-tablet-mode #modal-broadcast,
body.customer-tablet-mode #modal-customer-qr,
body.customer-tablet-mode #panel-precommit,
body.customer-tablet-mode .sync-status,
body.customer-tablet-mode .sync-refresh-timer,
body.customer-tablet-mode .brand-text .subtext,
body.customer-tablet-mode .clock-display,
body.customer-tablet-mode .clock-time,
body.customer-tablet-mode .clock-date,
body.customer-tablet-mode #btn-wf-cards,
body.customer-tablet-mode #btn-wf-table,
body.customer-tablet-mode #btn-weekly-cards,
body.customer-tablet-mode #btn-weekly-table,
body:fullscreen .nav-tab-btn[data-tab="weekly"],
body:fullscreen .nav-tab-btn[data-tab="shares"],
body:fullscreen .nav-tab-btn[data-tab="dashboard"],
body:fullscreen .nav-tab-btn[data-tab="central"],
body:fullscreen .nav-tab-btn[data-tab="precommit"],
body:fullscreen .nav-tab-btn[data-tab="settings"],
body:fullscreen #btn-toggle-kiosk,
body:fullscreen #btn-header-qr,
body:fullscreen #btn-header-install,
body:fullscreen #btn-header-lock-customer,
body:fullscreen #modal-precommit,
body:fullscreen #modal-whatsapp-settings,
body:fullscreen #panel-precommit,
body:fullscreen .sync-status,
body:fullscreen .sync-refresh-timer,
body:fullscreen .brand-text .subtext,
body:fullscreen .clock-display,
body:fullscreen .clock-time,
body:fullscreen .clock-date,
body:fullscreen #btn-wf-cards,
body:fullscreen #btn-wf-table,
body:fullscreen #btn-weekly-cards,
body:fullscreen #btn-weekly-table {
  display: none !important;
}

/* Staff Login Button (Only visible in Customer Mode) */
body.customer-tablet-mode #btn-header-staff-login,
html.customer-mode-init #btn-header-staff-login {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

body.customer-tablet-mode #btn-header-staff-login:hover,
html.customer-mode-init #btn-header-staff-login:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Hide Staff Login button when in Staff Mode */
body:not(.customer-tablet-mode) #btn-header-staff-login {
  display: none !important;
}

/* Lock Customer Mode Button (Only visible in Staff Mode) */
body:not(.customer-tablet-mode) #btn-header-lock-customer {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  background-color: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

body:not(.customer-tablet-mode) #btn-header-lock-customer:hover {
  background-color: #ffe4e6;
  border-color: #fda4af;
}

/* 2. Compact Header to Reclaim Premium Space */
body.customer-tablet-mode .app-header,
html.customer-mode-init .app-header,
body:fullscreen .app-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #e2e8f0;
}

body.customer-tablet-mode .header-top,
html.customer-mode-init .header-top,
body:fullscreen .header-top {
  padding: 8px 12px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  min-height: 48px !important;
}

body.customer-tablet-mode .brand-section,
html.customer-mode-init .brand-section,
body:fullscreen .brand-section {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

body.customer-tablet-mode .brand-logo,
html.customer-mode-init .brand-logo,
body:fullscreen .brand-logo {
  height: 34px !important;
  width: 34px !important;
  padding: 1px !important;
  flex-shrink: 0 !important;
}

body.customer-tablet-mode .brand-text,
html.customer-mode-init .brand-text,
body:fullscreen .brand-text {
  min-width: 0 !important;
}

body.customer-tablet-mode .brand-text h1,
html.customer-mode-init .brand-text h1,
body:fullscreen .brand-text h1 {
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

body.customer-tablet-mode .header-actions,
html.customer-mode-init .header-actions,
body:fullscreen .header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

body.customer-tablet-mode #btn-fullscreen,
body:fullscreen #btn-fullscreen {
  padding: 4px 10px !important;
  font-size: 0.8rem !important;
  border-radius: 6px !important;
}

#btn-header-install {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

#btn-header-install:hover {
  background: #047857 !important;
}

body.customer-tablet-mode #btn-header-install {
  display: none !important;
}

body.customer-tablet-mode .game-filter-bar,
body:fullscreen .game-filter-bar {
  padding: 4px 10px !important;
  margin-bottom: 8px !important;
  gap: 6px !important;
}

body.customer-tablet-mode .game-filter-bar .filter-label,
body:fullscreen .game-filter-bar .filter-label {
  font-size: 0.78rem !important;
}

body.customer-tablet-mode .chip-btn,
body:fullscreen .chip-btn {
  padding: 4px 10px !important;
  min-height: 32px !important;
  font-size: 0.82rem !important;
}

body.customer-tablet-mode .game-banner,
body:fullscreen .game-banner {
  height: 48px !important;
  margin-bottom: 8px !important;
  padding: 0 16px !important;
  font-size: 1.1rem !important;
  border-radius: 8px !important;
}

body.customer-tablet-mode .game-banner .banner-date,
body:fullscreen .game-banner .banner-date {
  font-size: 1rem !important;
}

body.customer-tablet-mode .game-banner .banner-jackpot,
body:fullscreen .game-banner .banner-jackpot {
  font-size: 1.15rem !important;
}

body.customer-tablet-mode .draw-urgency-banner,
body:fullscreen .draw-urgency-banner {
  padding: 4px 12px !important;
  border-bottom: 1px solid #2563eb !important;
}

body.customer-tablet-mode .urgency-container,
body:fullscreen .urgency-container {
  justify-content: center !important;
  gap: 8px !important;
}

body.customer-tablet-mode .urgency-info,
body:fullscreen .urgency-info {
  gap: 6px !important;
  font-size: 0.85rem !important;
}

body.customer-tablet-mode .urgency-title,
body:fullscreen .urgency-title {
  font-size: 0.95rem !important;
}

body.customer-tablet-mode .urgency-pill,
body:fullscreen .urgency-pill {
  padding: 2px 8px !important;
  font-size: 0.75rem !important;
}

body.customer-tablet-mode .main-content,
html.customer-mode-init .main-content,
body:fullscreen .main-content {
  padding-top: 6px !important;
  padding-bottom: calc(115px + env(safe-area-inset-bottom, 0px)) !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* 3. Relocate Tabs to the Bottom of the Browser Viewport */
body.customer-tablet-mode .nav-tabs-bar,
html.customer-mode-init .nav-tabs-bar,
body:fullscreen .nav-tabs-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  width: 100% !important;
  height: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: 62px !important;
  background-color: #ffffff !important;
  border-top: 1px solid #cbd5e1 !important;
  border-bottom: none !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08) !important;
  z-index: 9999 !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: stretch !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

body.customer-tablet-mode .nav-tab-btn,
html.customer-mode-init .nav-tab-btn,
body:fullscreen .nav-tab-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 25% !important;
  height: 100% !important;
  padding: 6px 2px !important;
  border: none !important;
  border-top: 3px solid transparent !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: #ffffff !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

body.customer-tablet-mode .tab-top-row,
html.customer-mode-init .tab-top-row,
body:fullscreen .tab-top-row {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  line-height: 1 !important;
}

body.customer-tablet-mode .tab-icon,
html.customer-mode-init .tab-icon,
body:fullscreen .tab-icon {
  font-size: 1.15rem !important;
  line-height: 1 !important;
}

body.customer-tablet-mode .tab-badge,
html.customer-mode-init .tab-badge,
body:fullscreen .tab-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 2px 6px !important;
  border-radius: 9999px !important;
  background-color: #64748b !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
  min-width: 18px !important;
  text-align: center !important;
}

body.customer-tablet-mode .tab-title,
html.customer-mode-init .tab-title,
body:fullscreen .tab-title {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  text-align: center !important;
}

body.customer-tablet-mode .nav-tab-btn[data-tab="windfall"].active,
html.customer-mode-init .nav-tab-btn[data-tab="windfall"].active,
body:fullscreen .nav-tab-btn[data-tab="windfall"].active {
  border-top-color: #593887 !important;
  color: #593887 !important;
  background: linear-gradient(to bottom, #faf5ff, #ffffff) !important;
}
body.customer-tablet-mode .nav-tab-btn[data-tab="windfall"].active .tab-badge,
html.customer-mode-init .nav-tab-btn[data-tab="windfall"].active .tab-badge,
body:fullscreen .nav-tab-btn[data-tab="windfall"].active .tab-badge {
  background-color: #593887 !important;
}

body.customer-tablet-mode .nav-tab-btn[data-tab="ozlotto"].active,
html.customer-mode-init .nav-tab-btn[data-tab="ozlotto"].active,
body:fullscreen .nav-tab-btn[data-tab="ozlotto"].active {
  border-top-color: #04af1e !important;
  color: #047857 !important;
  background: linear-gradient(to bottom, #f0fdf4, #ffffff) !important;
}
body.customer-tablet-mode .nav-tab-btn[data-tab="ozlotto"].active .tab-badge,
html.customer-mode-init .nav-tab-btn[data-tab="ozlotto"].active .tab-badge,
body:fullscreen .nav-tab-btn[data-tab="ozlotto"].active .tab-badge {
  background-color: #04af1e !important;
}

body.customer-tablet-mode .nav-tab-btn[data-tab="powerball"].active,
html.customer-mode-init .nav-tab-btn[data-tab="powerball"].active,
body:fullscreen .nav-tab-btn[data-tab="powerball"].active {
  border-top-color: #19479b !important;
  color: #19479b !important;
  background: linear-gradient(to bottom, #eff6ff, #ffffff) !important;
}
body.customer-tablet-mode .nav-tab-btn[data-tab="powerball"].active .tab-badge,
html.customer-mode-init .nav-tab-btn[data-tab="powerball"].active .tab-badge,
body:fullscreen .nav-tab-btn[data-tab="powerball"].active .tab-badge {
  background-color: #19479b !important;
}

body.customer-tablet-mode .nav-tab-btn[data-tab="tattslotto"].active,
html.customer-mode-init .nav-tab-btn[data-tab="tattslotto"].active,
body:fullscreen .nav-tab-btn[data-tab="tattslotto"].active {
  border-top-color: #e31c23 !important;
  color: #e31c23 !important;
  background: linear-gradient(to bottom, #fef2f2, #ffffff) !important;
}
body.customer-tablet-mode .nav-tab-btn[data-tab="tattslotto"].active .tab-badge,
html.customer-mode-init .nav-tab-btn[data-tab="tattslotto"].active .tab-badge,
body:fullscreen .nav-tab-btn[data-tab="tattslotto"].active .tab-badge {
  background-color: #e31c23 !important;
}

/* 4. Display Exactly 2 Card Columns on Tablet */
body.customer-tablet-mode .syndicate-container,
body:fullscreen .syndicate-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
}

@media (max-width: 560px) {
  body.customer-tablet-mode .syndicate-container {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

body.customer-tablet-mode .windfall-draws-grid,
body.customer-tablet-mode .multi-game-grid,
body:fullscreen .windfall-draws-grid,
body:fullscreen .multi-game-grid {
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

body.customer-tablet-mode .windfall-draw-col,
body.customer-tablet-mode .game-column,
body:fullscreen .windfall-draw-col,
body:fullscreen .game-column {
  padding: 8px !important;
  border-radius: 12px !important;
  margin-bottom: 12px !important;
}

/* 5. Much Bigger Cards & High-Contrast Typography for Elderly Customers */
body.customer-tablet-mode .syndicate-card,
body:fullscreen .syndicate-card {
  min-height: 275px !important;
  border-radius: 14px !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  background-color: #ffffff !important;
}

body.customer-tablet-mode .syndicate-card:hover,
body:fullscreen .syndicate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16) !important;
}

body.customer-tablet-mode .syndicate-header,
body:fullscreen .syndicate-header {
  height: 52px !important;
}

body.customer-tablet-mode .status-badge,
body:fullscreen .status-badge {
  width: 36px !important;
  height: 36px !important;
  font-size: 1.35rem !important;
  top: 8px !important;
  right: 8px !important;
}

body.customer-tablet-mode .syndicate-body,
body:fullscreen .syndicate-body {
  padding: 10px 14px 0 14px !important;
}

body.customer-tablet-mode .syndicate-title,
body:fullscreen .syndicate-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  padding: 4px 0 6px 0 !important;
}

body.customer-tablet-mode .syndicate-subtitle,
body:fullscreen .syndicate-subtitle {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 6px 0 4px 0 !important;
  color: #475569 !important;
}

body.customer-tablet-mode .syndicate-list,
body:fullscreen .syndicate-list {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.45 !important;
  margin: 0 0 12px 24px !important;
}

body.customer-tablet-mode .syndicate-list li,
body:fullscreen .syndicate-list li {
  margin-bottom: 4px !important;
}

body.customer-tablet-mode .syndicate-price,
body:fullscreen .syndicate-price {
  margin-top: auto !important;
}

body.customer-tablet-mode .price-box,
body:fullscreen .price-box {
  width: 96% !important;
  padding: 8px 14px 6px 14px !important;
  border-radius: 12px 12px 0 0 !important;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1) !important;
}

body.customer-tablet-mode .price-amount,
body:fullscreen .price-amount {
  font-size: 2rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
}

body.customer-tablet-mode .price-subtext,
body:fullscreen .price-subtext {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin-top: 4px !important;
  opacity: 0.95 !important;
}

body.customer-tablet-mode .syndicate-detail-modal,
body:fullscreen .syndicate-detail-modal {
  max-width: 92% !important;
  border-radius: 18px !important;
}

body.customer-tablet-mode .detail-price-hero .price-hero-amount,
body:fullscreen .detail-price-hero .price-hero-amount {
  font-size: 2.6rem !important;
}

body.customer-tablet-mode .detail-price-hero .price-hero-sub,
body:fullscreen .detail-price-hero .price-hero-sub {
  font-size: 1.15rem !important;
}

body.customer-tablet-mode .detail-games-list li,
body:fullscreen .detail-games-list li {
  font-size: 1.25rem !important;
  padding: 8px 12px !important;
}

body.customer-tablet-mode #modal-detail-title,
body:fullscreen #modal-detail-title {
  font-size: 1.6rem !important;
}

body.customer-tablet-mode .tv-marquee-ticker,
html.customer-mode-init .tv-marquee-ticker,
body:fullscreen .tv-marquee-ticker {
  bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9998 !important;
}

/* ==========================================================================
   Responsive Tablet Media Queries (max-width: 1024px)
/* ==========================================================================
   Mobile & Tablet Responsive Styling (Full Site Mode)
   Enables complete access to all pages & staff tools on phones & tablets
   ========================================================================== */
@media (max-width: 1024px) {
  .app-header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #e2e8f0;
  }

  .header-top {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-logo {
    height: 36px;
    width: 36px;
  }

  .brand-text h1 {
    font-size: 1.15rem;
  }

  .clock-time {
    font-size: 0.92rem;
  }

  /* Full Site Tab Navigation: Top horizontal scrollable bar with all tabs available */
  body:not(.customer-tablet-mode) .nav-tabs-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0 12px;
    gap: 6px;
    scrollbar-width: none;
    border-bottom: 2px solid #e2e8f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  body:not(.customer-tablet-mode) .nav-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  body:not(.customer-tablet-mode) .nav-tab-btn {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
  }

  body:not(.customer-tablet-mode) .main-content {
    padding: 12px 14px 40px 14px;
  }

  /* Responsive Cards Grid for Mobile & Tablets */
  .syndicate-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    width: 100%;
  }

  .windfall-draws-grid,
  .multi-game-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .windfall-draw-col,
  .game-column {
    padding: 8px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .kpi-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }

  .analytics-charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   Central Syndicates Manager & Modal Styles
   ========================================================================== */
.central-manager-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.central-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.central-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #334155;
}

.central-stat-chip.active-draw {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.central-stat-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
}

.central-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.central-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.central-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-jackpot-match {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background-color: #dbeafe;
  color: #1d4ed8;
}

.badge-jackpot-match.active-live {
  background-color: #d1fae5;
  color: #047857;
  border: 1px solid #10b981;
}

.game-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-powerball {
  background-color: #ebf5ff;
  color: #004c97;
}

.pill-ozlotto {
  background-color: #f0fdf4;
  color: #15803d;
}

.pill-tattslotto {
  background-color: #fef2f2;
  color: #b91c1c;
}

.pill-windfall {
  background-color: #f5f3ff;
  color: #593887;
}

.action-btn-group {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-table-action {
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-table-action:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.btn-table-action.delete {
  color: #dc2626;
  border-color: #fecaca;
}

.btn-table-action.delete:hover {
  background-color: #fee2e2;
  border-color: #f87171;
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 16px;
}

.modal-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  padding: 24px;
  animation: modalSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.modal-close-btn:hover {
  color: #0f172a;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #f8fafc;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   Enterprise Retail & Customer Display Enhancements
   ========================================================================== */

/* 1. Next Draw Urgency Banner (Disabled per store preference) */
.draw-urgency-banner {
  display: none !important;
}

.urgency-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.urgency-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.urgency-pulse-icon {
  font-size: 1.25rem;
  animation: pulseIcon 1.5s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.urgency-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #93c5fd;
  text-transform: uppercase;
}

.urgency-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.urgency-pill {
  background: rgba(239, 68, 68, 0.25);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.urgency-action-btn {
  background-color: #ffd700;
  color: #0f3d64;
  border: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.urgency-action-btn:hover {
  background-color: #ffe654;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 2. Customer Price Filter Chips Bar (Hidden per customer screen preference) */
.game-filter-bar {
  display: none !important;
}

.game-filter-bar .filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.chip-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.3);
}

.chip-btn.chip-hot {
  border-color: #f97316;
  color: #c2410c;
  background: #fff7ed;
}

.chip-btn.chip-hot:hover {
  background: #ffedd5;
}

.chip-btn.chip-hot.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.35);
}

/* 3. Interactive Customer Syndicate Detail Modal */
.syndicate-detail-modal {
  max-width: 520px;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}

.detail-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #0f3d64 0%, #1e40af 100%);
  color: #ffffff;
  border-bottom: none;
  margin-bottom: 0;
  position: relative;
}

.detail-header.card-ozlotto {
  background: linear-gradient(135deg, #065f46 0%, #059669 100%);
}

.detail-header.card-powerball {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.detail-header.card-tattslotto {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
}

.detail-header.card-windfall {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}

.detail-header .modal-close-btn {
  color: #ffffff;
  opacity: 0.8;
}

.detail-header .modal-close-btn:hover {
  opacity: 1;
}

.detail-header-info h3 {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 6px 0 2px 0;
}

.detail-game-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-syn-number {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.detail-body {
  padding: 24px;
}

.detail-price-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.price-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-hero-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  margin: 2px 0;
}

.price-hero-sub {
  font-size: 0.82rem;
  color: #64748b;
}

.stock-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stock-badge.available {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.stock-badge.urgent {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  animation: pulseUrgent 1.8s infinite ease-in-out;
}

@keyframes pulseUrgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.25); }
}

.stock-badge.soldout {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.detail-section {
  margin-bottom: 18px;
}

.detail-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.detail-games-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-games-list li {
  padding: 8px 12px;
  background-color: #f1f5f9;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-games-list li::before {
  content: "🎯";
  font-size: 0.9rem;
}

.detail-benefits-box {
  display: flex;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.detail-benefits-box .benefit-icon {
  font-size: 1.5rem;
}

.detail-benefits-box strong {
  display: block;
  font-size: 0.9rem;
  color: #1e40af;
  margin-bottom: 2px;
}

.detail-benefits-box span {
  font-size: 0.82rem;
  color: #1e3a8a;
  line-height: 1.4;
}

.detail-cta-box {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.detail-cta-box .cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.detail-cta-box .cta-prompt {
  font-size: 0.95rem;
  color: #78350f;
  font-weight: 500;
}

/* 4. TV Kiosk Marquee Ticker */
.tv-marquee-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  align-items: center;
  z-index: 9900;
  border-top: 2px solid #ffd700;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.25);
}

.marquee-tag {
  background: #ffd700;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0,0,0,0.2);
}

.marquee-track-container {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeScroll 35s linear infinite;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffd700;
  letter-spacing: 0.02em;
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* 5. Enterprise Dashboard Analytics & Shift Utilities */
.dashboard-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dashboard-title-group h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.dashboard-title-group .sub {
  font-size: 0.8rem;
  color: #64748b;
}

.shift-actions-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-shift-action {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-shift-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-shift-action.primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-shift-action.primary:hover {
  background: #0369a1;
}

.btn-shift-action.success {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.25);
}

.btn-shift-action.success:hover {
  background: #047857;
}

/* KPI Progress Meters */
.kpi-meter {
  height: 6px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  margin-top: 8px;
  overflow: hidden;
}

.kpi-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* Visual Analytics SVG Charts */
.analytics-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.chart-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-card-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
}

.chart-container-svg {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Action Widgets (Low Stock Alert + Top Revenue) */
.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.action-widget-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.action-widget-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-widget-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-widget-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  background: #fee2e2;
  color: #b91c1c;
}

.action-widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
}

.action-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
  transition: background-color 0.15s ease;
}

.action-list-row:last-child {
  border-bottom: none;
}

.action-list-row:hover {
  background-color: #f8fafc;
}

.action-list-syn {
  display: flex;
  flex-direction: column;
}

.action-syn-name {
  font-weight: 700;
  color: #0f172a;
}

.action-syn-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.action-stock-tag {
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-stock-tag.tag-urgent-1 {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.action-stock-tag.tag-urgent-2 {
  background-color: #ffedd5;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

/* Interactive Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 0.25s ease;
}

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

.print-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.print-product-select {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.print-product-select:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

/* Daily Sales Performance & Everyday Product Reports */
.daily-sales-container {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  padding: 20px;
  margin-bottom: 24px;
}

.daily-sales-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.daily-sales-title-group h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.daily-sales-title-group .sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 2px;
}

.daily-sales-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sales-metric-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}

.sales-metric-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sales-metric-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sales-product-select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sales-product-select:focus {
  outline: none;
  border-color: #0284c7;
}

/* Today Product KPI Pills Grid */
.today-product-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 14px 0 20px 0;
}

.product-pill-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-pill-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.product-pill-card.powerball {
  border-left: 4px solid #004aad;
}

.product-pill-card.ozlotto {
  border-left: 4px solid #087743;
}

.product-pill-card.tattslotto {
  border-left: 4px solid #d20a0a;
}

.product-pill-card.windfall {
  border-left: 4px solid #593887;
}

.product-pill-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.product-pill-info {
  flex: 1;
}

.product-pill-name {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
}

.product-pill-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.product-pill-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

/* Product Category Badges */
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-category.powerball {
  background: #e0f2fe;
  color: #004aad;
  border: 1px solid #bae6fd;
}

.badge-category.ozlotto {
  background: #dcfce7;
  color: #087743;
  border: 1px solid #bbf7d0;
}

.badge-category.tattslotto {
  background: #fee2e2;
  color: #d20a0a;
  border: 1px solid #fecaca;
}

.badge-category.windfall {
  background: #f3e8ff;
  color: #593887;
  border: 1px solid #e9d5ff;
}

.badge-category.other {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Print Syndicate Sheet Layout */
.print-sheet-container {
  display: none;
}

@media print {
  @page {
    size: auto;
    margin: 10mm;
  }

  body * {
    visibility: hidden;
  }

  .print-sheet-container,
  .print-sheet-container * {
    visibility: visible;
  }

  .print-sheet-container {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    background: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #000000;
    padding-bottom: 8px;
    margin-bottom: 12px;
  }

  .print-header h1 {
    font-size: 16pt;
    margin: 0;
    letter-spacing: -0.5px;
  }

  .print-header p {
    font-size: 9.5pt;
    color: #333333;
    margin: 3px 0 0 0;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
    page-break-inside: auto;
  }

  .print-table tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .print-table th,
  .print-table td {
    border: 1px solid #333333;
    padding: 4px 6px;
    text-align: left;
    vertical-align: top;
  }

  .print-table th {
    background-color: #f1f5f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 7.5pt;
    letter-spacing: 0.5px;
  }

  .print-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    font-size: 8.5pt;
    border-top: 1px dashed #666666;
    padding-top: 8px;
    page-break-inside: avoid;
  }

  /* Retail Shelf-Talkers (3 cards per A4 page) */
  .shelf-talkers-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .shelf-talker-page {
    page-break-after: always;
    page-break-inside: avoid;
    height: 272mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .shelf-talker-card {
    border: 2px solid #0f172a;
    border-radius: 8px;
    padding: 8px 14px;
    background: #ffffff;
    box-sizing: border-box;
    height: 84mm;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    page-break-inside: avoid;
    position: relative;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shelf-talker-card.powerball { border-color: #004aad; }
  .shelf-talker-card.ozlotto { border-color: #087743; }
  .shelf-talker-card.tattslotto { border-color: #d20a0a; }
  .shelf-talker-card.windfall { border-color: #593887; }

  .shelf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 5px;
  }

  .shelf-card-logo {
    height: 24px;
    object-fit: contain;
  }

  .shelf-card-badge {
    font-size: 8pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shelf-card-badge.powerball { background: #004aad !important; }
  .shelf-card-badge.ozlotto { background: #087743 !important; }
  .shelf-card-badge.tattslotto { background: #d20a0a !important; }
  .shelf-card-badge.windfall { background: #593887 !important; }

  .shelf-card-body {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    flex: 1;
    padding: 6px 0;
  }

  .shelf-card-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .shelf-syn-name {
    font-size: 13.5pt;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 3px;
  }

  .shelf-syn-code {
    font-size: 8pt;
    font-family: monospace;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
  }

  .shelf-games-list {
    font-size: 8.5pt;
    color: #334155;
    line-height: 1.35;
    margin: 0;
    padding-left: 14px;
  }

  .shelf-price-box {
    width: 33%;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    text-align: center;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shelf-price-box.powerball { background: #eff6ff !important; border: 2px solid #004aad; }
  .shelf-price-box.ozlotto { background: #fefce8 !important; border: 2px solid #087743; }
  .shelf-price-box.tattslotto { background: #fef2f2 !important; border: 2px solid #d20a0a; }
  .shelf-price-box.windfall { background: #faf5ff !important; border: 2px solid #593887; }

  .shelf-price-amount {
    font-size: 22pt;
    font-weight: 900;
    line-height: 1;
    color: #0f172a;
  }

  .shelf-price-label {
    font-size: 7pt;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-top: 3px;
  }

  .shelf-stock-pill {
    margin-top: 6px;
    font-size: 7.5pt;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #059669 !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shelf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 7.5pt;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 4px;
  }

  .shelf-cut-guide {
    text-align: center;
    font-size: 7pt;
    color: #94a3b8;
    margin: 4px 0 0 0;
    letter-spacing: 2px;
  }

  /* Customer QR Stand Poster (A4 Portrait) */
  .qr-poster-page {
    page-break-after: always;
    page-break-inside: avoid;
    height: 272mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 8mm 6mm;
    border: 4px double #0f3d64;
    border-radius: 12px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .qr-poster-logo {
    height: 52px;
    object-fit: contain;
    margin-bottom: 6px;
  }

  .qr-poster-store {
    font-size: 16pt;
    font-weight: 900;
    color: #0f3d64;
    letter-spacing: 0.5px;
    margin: 0;
  }

  .qr-poster-sub {
    font-size: 9pt;
    font-weight: 600;
    color: #475569;
    margin-top: 2px;
  }

  .qr-poster-headline-box {
    background: #0f3d64 !important;
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    margin: 12px 0;
    width: 85%;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .qr-poster-headline {
    font-size: 17pt;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.5px;
    color: #ffd700;
  }

  .qr-poster-tagline {
    font-size: 9.5pt;
    margin-top: 4px;
    color: #ffffff;
  }

  .qr-poster-code-frame {
    padding: 16px;
    background: #ffffff !important;
    border: 3px solid #0f3d64;
    border-radius: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 8px 0;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .qr-poster-code-frame svg {
    display: block !important;
    width: 250px !important;
    height: 250px !important;
    visibility: visible !important;
  }

  .qr-poster-code-frame svg rect {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .qr-poster-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    text-align: center;
  }

  .qr-poster-step-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 8px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .qr-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #0f3d64 !important;
    color: white !important;
    font-weight: 800;
    border-radius: 50%;
    font-size: 9pt;
    margin-bottom: 6px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .qr-step-title {
    font-size: 9.5pt;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3px;
  }

  .qr-step-desc {
    font-size: 7.5pt;
    color: #475569;
    line-height: 1.3;
  }

  .qr-poster-footer-bar {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1.5px solid #cbd5e1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8pt;
    color: #64748b;
  }
}

/* On-screen styling for Ticker Editor in Settings */
.ticker-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ticker-preset-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ticker-preset-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.ticker-preview-box {
  background: #0f172a;
  border: 1px solid #ffd700;
  border-radius: 8px;
  padding: 10px 14px;
  overflow: hidden;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-preview-tag {
  background: #ffd700;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ticker-preview-text {
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Pre-Commit WhatsApp Hub & Scheduled Dispatch Styles
   ========================================================================== */

.precommit-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}

.precommit-top-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border-radius: 14px;
  padding: 20px 24px;
  color: white;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

.precommit-banner-title h2 {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.precommit-banner-title p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.92;
  line-height: 1.4;
  max-width: 680px;
}

.precommit-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.precommit-btn-api {
  background: #047857;
  color: white;
  border: 1px solid #10b981;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.precommit-btn-api:hover {
  background: #059669;
  transform: translateY(-1px);
}

.precommit-btn-primary {
  background: #25D366;
  color: #064e3b;
  border: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.precommit-btn-primary:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.precommit-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.precommit-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Two-column layout */
.precommit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1080px) {
  .precommit-grid {
    grid-template-columns: 1fr;
  }
}

/* Template Settings Bar (Week Start & Intro) */
.precommit-config-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.precommit-config-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.precommit-field {
  flex: 1;
  min-width: 200px;
}

.precommit-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.precommit-field input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.precommit-field input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Group Card by Draw Section */
.precommit-section-group {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.precommit-section-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.precommit-section-header.powerball {
  background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
  border-left: 5px solid #0284c7;
}

.precommit-section-header.tattslotto {
  background: linear-gradient(90deg, #fef2f2 0%, #ffffff 100%);
  border-left: 5px solid #dc2626;
}

.precommit-section-header.whole_week {
  background: linear-gradient(90deg, #faf5ff 0%, #ffffff 100%);
  border-left: 5px solid #7c3aed;
}

.precommit-section-header.ozlotto {
  background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
  border-left: 5px solid #16a34a;
}

.precommit-section-header.windfall {
  background: linear-gradient(90deg, #f5f3ff 0%, #ffffff 100%);
  border-left: 5px solid #9333ea;
}

.precommit-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.precommit-section-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Syndicate Rows */
.precommit-syn-table {
  width: 100%;
  border-collapse: collapse;
}

.precommit-syn-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.precommit-syn-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 0.88rem;
}

.precommit-syn-table tr:last-child td {
  border-bottom: none;
}

.precommit-syn-table tr.row-live,
.precommit-syn-table tr.row-sold {
  background: #f8fafc;
  opacity: 0.75;
}

.precommit-syn-table tr.row-expired {
  background: #f8fafc;
  opacity: 0.6;
}

.precommit-syn-table tr.row-paused {
  background: #f8fafc;
  opacity: 0.55;
}

/* Inline 8-digit Syndicate Number Input */
.precommit-syn-input {
  font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  width: 125px;
  letter-spacing: 0.05em;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.precommit-syn-input:focus {
  border-color: #059669;
  background: #f0fdf4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.precommit-syn-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.precommit-syn-name-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.precommit-syn-games {
  font-weight: 600;
  color: #475569;
  font-size: 0.84rem;
}

.precommit-syn-sub {
  font-size: 0.76rem;
  color: #64748b;
}

.precommit-syn-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #047857;
}

/* Status Badges */
.badge-precommit-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-precommit-status.pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-precommit-status.live {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-precommit-status.sold {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-precommit-status.expired {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.badge-precommit-status.paused {
  background: #f1f5f9;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

/* Time Slot Manager in WhatsApp Settings Modal */
.wa-time-slot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.wa-time-picker {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  background: white;
  outline: none;
}

.wa-time-picker:focus {
  border-color: #059669;
}

.wa-time-desc-input {
  flex: 1;
  font-size: 0.82rem;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  background: white;
  outline: none;
}

.wa-time-desc-input:focus {
  border-color: #059669;
}

.btn-remove-time-slot {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-remove-time-slot:hover {
  background: #fee2e2;
}

.precommit-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-icon-syn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #475569;
  transition: all 0.15s;
}

.btn-icon-syn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-icon-syn.danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Sticky WhatsApp Preview Sidebar */
.precommit-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.whatsapp-preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  overflow: hidden;
}

.whatsapp-preview-header {
  background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.whatsapp-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.whatsapp-filter-pill {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 9999px;
  font-weight: 600;
}

/* WhatsApp Chat Bubble Mockup */
.whatsapp-chat-canvas {
  background: #efeae2;
  background-image: radial-gradient(#d1d7db 10%, transparent 11%);
  background-size: 16px 16px;
  padding: 16px;
  min-height: 260px;
  max-height: 480px;
  overflow-y: auto;
}

.whatsapp-bubble {
  background: #dcf8c6;
  border-radius: 8px 8px 0px 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #111b21;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
}

.whatsapp-bubble-time {
  text-align: right;
  font-size: 0.68rem;
  color: #667781;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.whatsapp-actions-box {
  padding: 14px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-send-wa-api {
  background: #25D366;
  color: white;
  border: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.btn-send-wa-api:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.btn-send-wa-api:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.whatsapp-secondary-btns {
  display: flex;
  gap: 8px;
}

.whatsapp-secondary-btns button {
  flex: 1;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: white;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.whatsapp-secondary-btns button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Automation Card */
.automation-status-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.automation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.automation-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.automation-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
}

.automation-pulse-badge.active {
  background: #dcfce7;
  color: #166534;
}

.automation-pulse-dot {
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.automation-pulse-badge.inactive {
  background: #f1f5f9;
  color: #64748b;
}

.automation-schedule-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.schedule-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 3px 8px;
  border-radius: 6px;
}

.automation-log-list {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 10px;
  max-height: 140px;
  overflow-y: auto;
  font-size: 0.74rem;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.automation-log-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 4px;
}

.log-status-ok {
  color: #16a34a;
  font-weight: 700;
}

.log-status-err {
  color: #dc2626;
  font-weight: 700;
}

/* ==========================================================================
   Visitor Analytics & Geolocation Dashboard Styles
   ========================================================================== */
.visitor-analytics-section {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  padding: 20px;
  margin-bottom: 24px;
}

.visitor-analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.visitor-analytics-title-group h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.visitor-analytics-title-group .sub {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #64748b;
}

.visitor-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.visitor-kpi-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid #0d9488;
  border-top: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.visitor-kpi-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.visitor-kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.visitor-kpi-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.visitor-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .visitor-detail-grid {
    grid-template-columns: 1fr;
  }
}

.visitor-panel-box {
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.visitor-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.visitor-panel-header h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.visitor-panel-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
}

.visitor-locations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.visitor-locations-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #64748b;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.visitor-locations-table td {
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.visitor-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.visitor-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #059669);
  border-radius: 4px;
}

.visitor-device-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.visitor-device-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

/* ==========================================================================
   Multi-Share Stepper in Syndicate Detail Modal
   ========================================================================== */
.detail-stepper-box {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stepper-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-share-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.stepper-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.stepper-btn:active {
  transform: scale(0.95);
}

.stepper-qty {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  min-width: 90px;
  text-align: center;
}

.detail-pool-calc {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
}

/* ==========================================================================
   Floating Customer Counter Order Slip Pill
   ========================================================================== */
.floating-picks-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  animation: bounceIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.customer-tablet-mode .floating-picks-bar,
html.customer-mode-init .floating-picks-bar {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  right: 16px !important;
}

@keyframes bounceIn {
  0% { transform: scale(0.7) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.floating-picks-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #0f3d64, #0284c7);
  color: #ffffff;
  border: 2px solid #38bdf8;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 61, 100, 0.35);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-picks-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 61, 100, 0.45);
  background: linear-gradient(135deg, #0a2d4a, #0369a1);
}

.floating-picks-btn:active {
  transform: translateY(1px);
}

.picks-badge-icon {
  font-size: 1.25rem;
}

.picks-badge-text {
  font-weight: 700;
}

.picks-badge-total {
  background: #ffd700;
  color: #0f172a;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.9rem;
}

.picks-badge-cta {
  font-size: 0.82rem;
  opacity: 0.9;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 8px;
}

/* ==========================================================================
   Counter Order Slip Modal (Queue-Buster)
   ========================================================================== */
.order-slip-modal {
  max-width: 540px;
  width: 95%;
}

.order-slip-header {
  background: linear-gradient(135deg, #0f3d64, #0284c7);
  color: #ffffff;
}

.order-slip-body {
  padding: 20px;
}

.order-slip-instructions {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 14px;
  color: #166534;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 16px;
}

.order-slip-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.order-slip-item {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: border-color 0.2s ease;
}

.order-slip-item.card-powerball { border-left: 6px solid #004aad; }
.order-slip-item.card-ozlotto { border-left: 6px solid #087743; }
.order-slip-item.card-tattslotto { border-left: 6px solid #d20a0a; }
.order-slip-item.card-windfall { border-left: 6px solid #593887; }

.slip-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slip-product-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.slip-product-badge.badge-powerball { background: #eff6ff; color: #004aad; }
.slip-product-badge.badge-ozlotto { background: #f0fdf4; color: #087743; }
.slip-product-badge.badge-tattslotto { background: #fef2f2; color: #d20a0a; }
.slip-product-badge.badge-windfall { background: #faf5ff; color: #593887; }

.slip-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.slip-remove-btn:hover {
  color: #dc2626;
  background: #fee2e2;
}

.slip-item-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.slip-terminal-callout {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.slip-terminal-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.slip-terminal-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 1.5px;
}

.slip-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.slip-qty-breakdown {
  color: #475569;
  font-weight: 600;
}

.slip-line-total {
  font-weight: 800;
  color: #059669;
  font-size: 1.05rem;
}

.order-slip-summary {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 4px;
}

.total-price-line {
  border-top: 1px solid #cbd5e1;
  padding-top: 8px;
  margin-top: 6px;
  font-size: 1.15rem;
  color: #0f172a;
}

.total-price-line #order-slip-total-price {
  color: #059669;
  font-size: 1.3rem;
}

.order-slip-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.slip-btn-group {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Kiosk Speed Badge
   ========================================================================== */
.kiosk-speed-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 61, 100, 0.95);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
  display: none;
}

.kiosk-progress-container.active .kiosk-speed-badge {
  display: inline-flex;
  align-items: center;
}

.kiosk-speed-badge:hover {
  background: #0284c7;
  transform: translateY(-50%) scale(1.05);
}

.kiosk-speed-badge:active {
  transform: translateY(-50%) scale(0.95);
}

/* ==========================================================================
   Smooth Kiosk Tab Transitions
   ========================================================================== */
.tab-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel.active {
  display: block;
  opacity: 1;
  animation: tabFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabFadeIn {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* High-Contrast TV Theme additions */
body.tv-kiosk-mode .order-slip-item {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

body.tv-kiosk-mode .slip-item-name {
  color: #ffffff;
}

body.tv-kiosk-mode .slip-terminal-callout {
  background: #0f172a;
  border-color: #475569;
}

body.tv-kiosk-mode .slip-terminal-value {
  color: #38bdf8;
}

body.tv-kiosk-mode .order-slip-summary {
  background: #1e293b;
  color: #f8fafc;
}

body.tv-kiosk-mode .total-price-line {
  border-color: #334155;
  color: #ffffff;
}

