/*!
 * DashTemplate.com — E-Commerce Sales Live · Template Styles
 * © 2025 DashTemplate.com. All Rights Reserved.
 * License: https://dashtemplate.com/license
 */

/* ─── Template accent ────────────────────── */
:root {
  --dt-template-primary: #22C55E;
  --dt-template-accent:  #3B82F6;
}

/* ─── Live GMV ticker ────────────────────── */
.gmv-ticker {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.gmv-ticker__value {
  font-size: 48px; font-weight: 800;
  letter-spacing: -.05em; color: #22C55E;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gmv-ticker__currency {
  font-size: 24px; font-weight: 700;
  color: #22C55E; opacity: .7;
}
.gmv-ticker__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0);  }
}

/* ─── Product table row ──────────────────── */
.prod-row {
  display: grid;
  grid-template-columns: 80px 1fr 80px 70px 70px 65px 60px;
  gap: 10px;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--dt-border);
  font-size: 11.5px;
  transition: background var(--t-fast);
}
.prod-row:hover { background: var(--dt-surface-2); }
.prod-row:last-child { border-bottom: none; }
.prod-row.hdr {
  font-size: 9.5px; font-weight: 700;
  color: var(--dt-text-3); letter-spacing: .07em; text-transform: uppercase;
  background: var(--dt-surface-2);
}
.prod-mono { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; }

/* ─── Channel table ──────────────────────── */
.ec-ch-row {
  display: grid;
  grid-template-columns: 1fr 80px 90px 60px 60px 60px 60px;
  gap: 10px;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--dt-border);
  font-size: 11.5px;
  transition: background var(--t-fast);
}
.ec-ch-row:hover { background: var(--dt-surface-2); }
.ec-ch-row:last-child { border-bottom: none; }
.ec-ch-row.hdr {
  font-size: 9.5px; font-weight: 700;
  color: var(--dt-text-3); letter-spacing: .07em; text-transform: uppercase;
  background: var(--dt-surface-2);
}

/* ─── RFM segment bar ────────────────────── */
.rfm-row {
  display: grid;
  grid-template-columns: 120px 64px 80px 1fr 70px;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--dt-border);
  font-size: 12px;
}
.rfm-row:last-child { border-bottom: none; }
.rfm-row.hdr {
  font-size: 9.5px; font-weight: 700; color: var(--dt-text-3);
  letter-spacing: .07em; text-transform: uppercase; background: var(--dt-surface-2);
}

/* ─── Operations metric cards ────────────── */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ops-card {
  background: var(--dt-surface-2);
  border: 1px solid var(--dt-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.ops-card__label { font-size: 9.5px; font-weight: 700; color: var(--dt-text-3); text-transform: uppercase; letter-spacing: .07em; }
.ops-card__value { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ops-card__delta { font-size: 11px; color: var(--dt-text-3); }

/* ─── Return rate gauge ──────────────────── */
.return-gauge {
  display: flex; align-items: center; justify-content: center; gap: 28px; padding: 8px 0;
}
