/* 
  TipStream Design System (Vanilla CSS)
  Theme: Ultra-Premium Galactic Dark Mode (Frosted Glass & Ambient Glows)
  Fonts: Outfit (Headers) & Inter (Body/Data)
*/

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-base: #07050e;
  --bg-surface: rgba(18, 14, 30, 0.65);
  --bg-surface-hover: rgba(26, 20, 42, 0.8);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-focus: rgba(124, 77, 255, 0.4);
  
  --color-primary: #7c4dff;
  --color-primary-glow: rgba(124, 77, 255, 0.35);
  --color-secondary: #00e5ff;
  --color-secondary-glow: rgba(0, 229, 255, 0.35);
  --color-tertiary: #ff007f;
  
  --color-text-main: #f3f1f6;
  --color-text-muted: #9590a8;
  --color-text-dim: #5c5770;
  
  --color-success: #00e676;
  --color-warning: #ffea00;
  --color-danger: #ff1744;
  
  /* Layout Tokens */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-glow: 0 0 40px rgba(124, 77, 255, 0.15);
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-base);
  color: var(--color-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Ambient Glow Backgrounds */
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, #150f29 0%, #07050e 100%);
  z-index: -3;
}

.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
}

.glow-sphere-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary-glow);
  top: -10%;
  right: -5%;
}

.glow-sphere-2 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary-glow);
  bottom: 10%;
  left: -5%;
}

/* Main Container Layout */
.dashboard-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
  animation: pageFadeIn 0.8s ease forwards;
}

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

/* Header Styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.4);
  color: #fff;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-text-main);
  line-height: 1.1;
}

.logo-text h1 span {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.header-meta {
  display: flex;
  align-items: center;
}

.meta-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.meta-label {
  color: var(--color-text-muted);
}

.meta-pill strong {
  color: #fff;
  font-weight: 600;
}

/* ============================================
   QUICK SUMMARY PANEL — Mobile-First "Last Night" View
   ============================================ */
#quick-summary-panel {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.12) 0%, rgba(0, 229, 255, 0.06) 100%);
  border: 1px solid rgba(124, 77, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem 1.2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(124, 77, 255, 0.15), var(--shadow-main);
  animation: panelFade 0.6s ease forwards;
}

.qs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.qs-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qs-moon {
  font-size: 1.6rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(124, 77, 255, 0.6));
}

.qs-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.qs-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.qs-total-badge {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secondary);
  white-space: nowrap;
}

/* Employee cards grid — 2 col on mobile, 4+ on desktop */
.qs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .qs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .qs-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* Individual employee card */
.qs-card {
  background: rgba(12, 9, 21, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.qs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.5;
}

.qs-card:hover {
  border-color: rgba(124, 77, 255, 0.35);
  background: rgba(124, 77, 255, 0.08);
  transform: translateY(-2px);
}

.qs-card-rank {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.1rem;
}

.qs-card-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-card-total {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin: 0.1rem 0;
}

.qs-card-sub {
  font-size: 0.68rem;
  color: var(--color-text-dim);
  line-height: 1.3;
}

.qs-card-sub .qs-cash { color: var(--color-success); font-weight: 600; }
.qs-card-sub .qs-cc { color: var(--color-secondary); font-weight: 600; }

/* Loading state */
.qs-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  color: var(--color-text-dim);
  font-size: 0.88rem;
}

.qs-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(124, 77, 255, 0.3);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Tab Navigation */
.app-navigation {
  display: flex;
  margin-bottom: 0.5rem;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(12, 9, 21, 0.4);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.nav-tab svg {
  width: 18px;
  height: 18px;
  transition: var(--transition-smooth);
}

.nav-tab:hover {
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), rgba(124, 77, 255, 0.4));
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-tab.active svg {
  stroke: var(--color-secondary);
}

/* KPI Summary Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg {
  width: 26px;
  height: 26px;
}

.total-tips-icon {
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: var(--color-primary);
}

.total-hours-icon {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--color-secondary);
}

.avg-rate-icon {
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--color-success);
}

.top-earner-icon {
  background: rgba(255, 0, 127, 0.15);
  border: 1px solid rgba(255, 0, 127, 0.3);
  color: var(--color-tertiary);
}

.efficiency-icon {
  background: rgba(255, 234, 0, 0.15);
  border: 1px solid rgba(255, 234, 0, 0.3);
  color: var(--color-warning);
}

.kpi-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.kpi-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Visualization Content Styling */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 2rem;
  animation: panelFade 0.5s ease forwards;
}

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

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

/* Grids and Cards */
.charts-row {
  display: grid;
  gap: 1.5rem;
}

.row-primary {
  grid-template-columns: 1.6fr 1fr;
}

.row-secondary {
  grid-template-columns: 1fr 1.6fr;
}

@media (max-width: 1024px) {
  .row-primary, .row-secondary {
    grid-template-columns: 1fr;
  }
}

.chart-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 400px;
}

.card-header {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 1rem;
}

.card-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.card-header p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.chart-wrapper {
  position: relative;
  flex-grow: 1;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* Ledger Data Table Styling */
.card-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.table-toolbar {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.toolbar-title h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.toolbar-title p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.search-box {
  background: rgba(12, 9, 21, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 320px;
  max-width: 100%;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(124, 77, 255, 0.25);
  background: rgba(12, 9, 21, 0.7);
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.search-box input::placeholder {
  color: var(--color-text-dim);
}

.table-wrapper {
  overflow: auto;
  max-height: 520px;
  width: 100%;
  position: relative;
}

#ledger-table, #ref-ledger-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.9rem;
}

#ledger-table th, #ledger-table td, #ref-ledger-table th, #ref-ledger-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Freeze row 1 (thead th) */
#ledger-table thead th, #ref-ledger-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #15112d !important;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

/* Freeze column 1 (Employee) */
#ledger-table th:first-child,
#ledger-table td:first-child,
#ref-ledger-table th:first-child,
#ref-ledger-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background-color: #120e25 !important;
  box-shadow: 2px 0 2px -1px rgba(0, 0, 0, 0.4);
}

/* Intersecting corner cell */
#ledger-table thead th:first-child,
#ref-ledger-table thead th:first-child {
  z-index: 15;
  background-color: #15112d !important;
}

/* Banded rows styling */
#ledger-table tbody tr:nth-child(even),
#ref-ledger-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.015);
}

#ledger-table tbody tr:nth-child(even) td:first-child,
#ref-ledger-table tbody tr:nth-child(even) td:first-child {
  background-color: #14102c !important;
}

/* Hover effects */
#ledger-table tbody tr:hover,
#ref-ledger-table tbody tr:hover {
  background-color: rgba(124, 77, 255, 0.08) !important;
}

#ledger-table tbody tr:hover td:first-child,
#ref-ledger-table tbody tr:hover td:first-child {
  background-color: #1a1438 !important;
}

#ledger-table th.sortable, #ref-ledger-table th.sortable {
  cursor: pointer;
  transition: var(--transition-smooth);
}

#ledger-table th.sortable:hover, #ref-ledger-table th.sortable:hover {
  color: #fff;
  background: rgba(255,255,255,0.04) !important;
}

#ledger-table th.sortable.active, #ref-ledger-table th.sortable.active {
  color: var(--color-secondary);
  font-weight: 700;
}

.sort-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid var(--color-text-dim);
  vertical-align: middle;
  transition: var(--transition-smooth);
  opacity: 0.5;
}

#ledger-table th.sortable:hover .sort-indicator {
  opacity: 0.9;
  border-bottom-color: var(--color-text-muted);
}

#ledger-table th.active .sort-indicator {
  opacity: 1;
  border-bottom-color: var(--color-secondary);
}

.sort-indicator.desc {
  transform: rotate(180deg);
}

#ledger-table tbody tr, #ref-ledger-table tbody tr {
  transition: var(--transition-smooth);
}

#ledger-table td {
  color: var(--color-text-main);
  font-weight: 400;
}

#ledger-table td.numeric {
  font-family: var(--font-display);
  font-weight: 500;
  text-align: right;
}

#ledger-table th.numeric {
  text-align: right;
}

/* Pagination Control */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.8rem;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pagination-info span {
  font-weight: 600;
  color: #fff;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-pag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pag.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
}

.btn-pag svg {
  width: 16px;
  height: 16px;
}

.btn-pag:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.4);
}

.btn-pag:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 0.3rem;
}

.btn-pag.page-num.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}



.custom-select {
  background: rgba(12, 9, 21, 0.6);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.custom-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.3);
}



.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #651fff);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 77, 255, 0.4);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.6);
  background: linear-gradient(135deg, #8c60ff, #7c4dff);
}

.btn-primary:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* Footer */
.app-footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.03);
}

.app-footer p {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* Daily Day Selector Bar Styles */
.daily-selector-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: fit-content;
  margin-bottom: 0.5rem;
}

.daily-selector-bar label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- MOBILE RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
  /* Layout & Container Scaling */
  .dashboard-container {
    padding: 1rem 0.8rem;
    gap: 1.2rem;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.8rem;
  }

  .header-meta {
    width: 100%;
  }

  .meta-pill {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  /* Mobile-first layout ordering and wrapping navigation tab bar */
  .app-navigation {
    width: 100%;
    order: 2;
  }

  .nav-tabs {
    flex-wrap: wrap;
    width: 100%;
    padding: 0.3rem;
    gap: 0.4rem;
  }

  .nav-tab {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 90px;
    justify-content: center;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .nav-tab svg {
    width: 14px;
    height: 14px;
  }

  .app-header { order: 1; }
  #quick-summary-panel { order: 3; }
  #ledger-table-section { order: 4; }
  .kpi-grid { order: 5; }
  .dashboard-content { order: 6; }

  /* KPI Grid */
  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .kpi-card {
    padding: 1.2rem;
    gap: 1rem;
  }

  .kpi-value {
    font-size: 1.5rem;
  }

  /* Charts Container */
  .chart-container {
    padding: 1.2rem;
    min-height: 350px;
  }

  .card-header {
    padding-bottom: 0.8rem;
  }

  /* Table Toolbar */
  .table-toolbar {
    padding: 1.2rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .toolbar-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.8rem;
  }

  .segmented-control {
    width: 100% !important;
  }

  .segmented-btn {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.5rem;
  }

  .search-box {
    width: 100%;
  }

  /* TABLE TO CARD COLLAPSE SYSTEM */
  .table-wrapper {
    overflow-x: visible;
    max-height: none !important;
  }

  #ledger-table th:first-child,
  #ledger-table td:first-child,
  #ref-ledger-table th:first-child,
  #ref-ledger-table td:first-child {
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  #ledger-table tbody tr:nth-child(even) td:first-child,
  #ref-ledger-table tbody tr:nth-child(even) td:first-child {
    background-color: transparent !important;
  }

  #ledger-table tbody tr:hover td:first-child,
  #ref-ledger-table tbody tr:hover td:first-child {
    background-color: transparent !important;
  }

  #ledger-table, #ref-ledger-table {
    display: block;
    width: 100%;
  }

  #ledger-table thead, #ref-ledger-table thead {
    display: none; /* Hide traditional headers */
  }

  #ledger-table tbody, #ref-ledger-table tbody {
    display: block;
    width: 100%;
  }

  #ledger-table tbody tr, #ref-ledger-table tbody tr {
    display: block;
    background: rgba(18, 14, 30, 0.45);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin: 0 0 1rem 0;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
  }

  #ledger-table tbody tr:hover, #ref-ledger-table tbody tr:hover {
    background: rgba(26, 20, 42, 0.6);
    border-color: rgba(124, 77, 255, 0.3);
  }

  #ledger-table tbody tr td, #ref-ledger-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    text-align: right !important;
  }

  #ledger-table tbody tr td:last-child, #ref-ledger-table tbody tr td:last-child {
    border-bottom: none;
  }

  /* Data-Label Pseudo elements mapping */
  #ledger-table tbody tr td::before, #ref-ledger-table tbody tr td::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    float: left;
    text-align: left;
    padding-right: 0.8rem;
  }

  /* Table Pagination */
  .table-pagination {
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .pagination-buttons {
    width: 100%;
    justify-content: center;
  }
}


/* Custom Select styles */
.timeframe-select, .period-select {
  background: rgba(12, 9, 21, 0.6);
  border: 1px solid var(--border-glass) !important;
  color: var(--color-text-main);
  outline: none;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.timeframe-select:hover, .period-select:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background-color: rgba(26, 20, 42, 0.8);
}

.timeframe-select:focus, .period-select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.25);
}

.timeframe-select option, .period-select option {
  background-color: #120e1e;
  color: var(--color-text-main);
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

/* Toast Notification Card */
.toast-notification {
  pointer-events: auto;
  min-width: 320px;
  max-width: 400px;
  background: rgba(18, 14, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-main);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  transform: translateX(120%);
  animation: toastSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-notification.toast-success {
  border-left-color: var(--color-success);
}

.toast-notification.toast-error {
  border-left-color: var(--color-danger);
}

.toast-notification.toast-warning {
  border-left-color: var(--color-warning);
}

.toast-notification.toast-fade-out {
  opacity: 0;
  transform: translateX(120%);
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.toast-notification.toast-info .toast-icon { color: var(--color-secondary); }
.toast-notification.toast-success .toast-icon { color: var(--color-success); }
.toast-notification.toast-error .toast-icon { color: var(--color-danger); }
.toast-notification.toast-warning .toast-icon { color: var(--color-warning); }

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-top: -2px;
  transition: var(--transition-smooth);
}

.toast-close-btn:hover {
  color: var(--color-text-main);
}

@keyframes toastSlideIn {
  to {
    transform: translateX(0);
  }
}

/* Daily Tips Breakdown Mini-cards */
.daily-breakdown-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 1.5rem;
}

.mini-breakdown-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-main);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  flex: 1 1 220px;
  max-width: 280px;
}

.mini-breakdown-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.mini-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.3);
  flex-shrink: 0;
}

.mini-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.mini-card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-card-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.mini-card-sub {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Segmented Control Mode Toggle */
.segmented-control {
  display: flex;
  background: rgba(12, 9, 21, 0.45);
  border: 1px solid var(--border-glass);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  gap: 0.2rem;
  width: fit-content;
}

.segmented-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.segmented-btn:hover {
  color: #fff;
}

.segmented-btn.active {
  background: linear-gradient(135deg, var(--color-primary), rgba(124, 77, 255, 0.4));
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.2);
}

/* Table layout adjustments to prevent columns from being too wide */
.data-table-section {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

/* Detailed Day Card & Grid Layout */
#detailed-ledger-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.detailed-day-card {
  background: rgba(12, 9, 21, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.detailed-day-header {
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border-glass);
}

.detailed-day-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.detailed-day-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.day-summary-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Day tables shared behavior (desktop condensed columns) */
.detailed-day-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 0.8rem;
}

.detailed-day-table th, .detailed-day-table td {
  padding: 0.4rem 0.45rem;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detailed-day-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #15112d !important;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

.detailed-day-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.015);
}

.detailed-day-table tbody tr:hover {
  background-color: rgba(124, 77, 255, 0.08) !important;
}

.detailed-day-table td.numeric {
  font-family: var(--font-display);
  font-weight: 500;
  text-align: right;
}

.detailed-day-table th.numeric {
  text-align: right;
}

/* Sticky employee first column in day tables */
.detailed-day-table th:first-child,
.detailed-day-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background-color: #120e25 !important;
  box-shadow: 2px 0 2px -1px rgba(0, 0, 0, 0.4);
}

.detailed-day-table thead th:first-child {
  z-index: 15;
  background-color: #15112d !important;
}

.detailed-day-table tbody tr:hover td:first-child {
  background-color: #1a1438 !important;
}

.detailed-day-table tbody tr:nth-child(even) td:first-child {
  background-color: #14102c !important;
}

/* Group row styling */
.shift-group-row {
  background: rgba(124, 77, 255, 0.05) !important;
}

.shift-group-row td {
  padding: 0.45rem 0.55rem !important;
  border-bottom: 1px solid rgba(124, 77, 255, 0.15) !important;
}

.shift-group-header-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
}

.shift-group-icon-title {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shift-group-summary {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Sticky first column fix for group divider row */
.detailed-day-table td.shift-group-row-cell {
  position: sticky;
  left: 0;
  z-index: 6;
  background-color: #16122d !important;
}

/* Detailed table sorting active th */
.detailed-day-table th.sortable {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.detailed-day-table th.sortable:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04) !important;
}

.detailed-day-table th.sortable.active {
  color: var(--color-secondary);
  font-weight: 700;
}

.detailed-day-table th.active .sort-indicator {
  opacity: 1;
  border-bottom-color: var(--color-secondary);
}

/* --- MOBILE RESPONSIVE COLLAPSE FOR DETAILED TABLES --- */
@media (max-width: 768px) {
  #detailed-ledger-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.8rem 0.4rem;
  }

  .detailed-day-header {
    padding: 0.8rem 0.6rem;
  }
  
  .detailed-day-title-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  
  .day-summary-badge {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
  }
  
  .detailed-day-table {
    display: block;
    width: 100%;
  }
  
  .detailed-day-table thead {
    display: none;
  }
  
  .detailed-day-table tbody {
    display: block;
    width: 100%;
  }
  
  .detailed-day-table tbody tr {
    display: block;
    background: rgba(18, 14, 30, 0.455);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    margin: 0 0 1rem 0;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
  }
  
  .detailed-day-table th:first-child,
  .detailed-day-table td:first-child {
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }
  
  .detailed-day-table tbody tr:nth-child(even) td:first-child {
    background-color: transparent !important;
  }
  
  .detailed-day-table tbody tr:hover td:first-child {
    background-color: transparent !important;
  }
  
  .detailed-day-table tbody tr.shift-group-row {
    display: block !important;
    background: rgba(124, 77, 255, 0.12) !important;
    border: 1px solid rgba(124, 77, 255, 0.25) !important;
    border-radius: var(--radius-sm) !important;
    margin: 0.8rem 0 0.5rem 0 !important;
    padding: 0.5rem 0.8rem !important;
  }
  
  .detailed-day-table tbody tr.shift-group-row td {
    display: block !important;
    text-align: left !important;
    border: none !important;
    padding: 0 !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  
  .detailed-day-table tbody tr.shift-group-row td::before {
    display: none !important;
  }
  
  .detailed-day-table tbody tr:not(.shift-group-row) td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    text-align: right !important;
  }
  
  .detailed-day-table tbody tr:not(.shift-group-row) td:last-child {
    border-bottom: none;
  }
  
  .detailed-day-table tbody tr:not(.shift-group-row) td::before {
    content: attr(data-label);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    float: left;
    text-align: left;
    padding-right: 0.8rem;
  }
}

/* ============================================
   INTEGRITY AUDIT TAB — Daily Tip Sheet
   ============================================ */
.audit-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.audit-main-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.audit-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
  max-width: 600px;
  line-height: 1.5;
}
.audit-day-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.55rem 1rem;
  border-radius: 50px;
  flex-shrink: 0;
}
.audit-threshold-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.threshold-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  border: 1px solid;
}
.chip-green  { color: var(--color-success);  border-color: rgba(0,230,118,0.3);  background: rgba(0,230,118,0.08); }
.chip-red    { color: #ff6b6b;              border-color: rgba(255,107,107,0.3); background: rgba(255,107,107,0.08); }
.chip-yellow { color: var(--color-warning);  border-color: rgba(255,234,0,0.3);  background: rgba(255,234,0,0.06); }

/* Shift card */
.audit-shift-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
}
.audit-shift-header {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.02);
}

/* Audit table */
.audit-table-wrap { overflow-x: auto; }
.audit-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.audit-table th {
  position: sticky;
  top: 0;
  background: #15112d;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.7rem 0.9rem;
  text-align: left;
  white-space: normal;
  max-width: 90px;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.audit-table th.num { text-align: right; }
.audit-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--color-text-main);
  vertical-align: middle;
}
.audit-table td.num {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 500;
}
.audit-table tbody tr:last-child td { border-bottom: none; }
.audit-table tbody tr:hover td { background: rgba(124,77,255,0.06); }

/* Tip % display */
.tip-pct-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}
.tip-pct-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.tip-flag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 50px;
  white-space: nowrap;
}
.pct-ok    { color: var(--color-success); }
.pct-high  { color: #ff6b6b; }
.pct-low   { color: var(--color-warning); }
.flag-ok   { background: rgba(0,230,118,0.15); color: var(--color-success); border: 1px solid rgba(0,230,118,0.25); }
.flag-high { background: rgba(255,107,107,0.15); color: #ff6b6b;           border: 1px solid rgba(255,107,107,0.25); }
.flag-low  { background: rgba(255,234,0,0.12);  color: var(--color-warning); border: 1px solid rgba(255,234,0,0.25); }

/* Editable cash input */
.cash-input-cell { display: flex; align-items: center; gap: 0.35rem; justify-content: flex-end; }
.cash-actual-input {
  background: rgba(12,9,21,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  width: 78px;
  text-align: right;
  transition: var(--transition-smooth);
}
.cash-actual-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(124,77,255,0.2);
}
.cash-actual-input::placeholder { color: var(--color-text-dim); }

/* Variance */
.var-over  { color: #ff6b6b; font-weight: 700; }  /* declared < actual (pocketing) */
.var-under { color: var(--color-warning); font-weight: 700; }  /* declared > actual (suspicious) */
.var-ok    { color: var(--color-text-dim); }

/* Pool summary row */
.audit-pool-summary {
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(124,77,255,0.06);
  border-top: 1px solid rgba(124,77,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.pool-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.pool-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-text-dim);
  font-weight: 600;
}
.pool-stat-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.audit-empty {
  text-align: center;
  padding: 2.5rem;
  color: var(--color-text-dim);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .audit-table th, .audit-table td { padding: 0.6rem 0.65rem; font-size: 0.78rem; }
  .cash-actual-input { width: 62px; font-size: 0.8rem; }
  .audit-main-title { font-size: 1.05rem; }
}
