/* ================================================================
   LYKOS SISTEMA — PROSPECTING / METRICS STYLES
================================================================ */

/* ── Period Tabs ────────────────────────────────────────────── */
.metrics-period-tabs {
  display: flex;
  gap: 4px;
  background: var(--purple-700);
  border: 1px solid var(--purple-500);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}

.period-tab {
  padding: 8px 20px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}

.period-tab:hover { color: var(--text-secondary); }
.period-tab.active {
  background: var(--purple-500);
  color: var(--text-primary);
}

/* ── Day Tabs ───────────────────────────────────────────────── */
.day-tabs-row {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.day-tab {
  padding: 7px 16px;
  background: var(--purple-700);
  border: 1px solid var(--purple-500);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  flex-shrink: 0;
}

.day-tab:hover { color: var(--text-secondary); }

.day-tab.active {
  background: rgba(255,102,32,0.12);
  border-color: var(--orange-500);
  color: var(--orange-500);
}

/* ── Metrics Section ────────────────────────────────────────── */
.metrics-section {
  background: var(--purple-700);
  border: 1px solid var(--purple-500);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 20px;
}

.metrics-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ── Metrics Grid ───────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

/* ── Metric Item ────────────────────────────────────────────── */
.metric-item {
  background: var(--purple-600);
  border: 1px solid var(--purple-500);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.metric-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.metric-value-input {
  background: var(--purple-700);
  border: 1px solid var(--purple-400);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  padding: 6px 10px;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  text-align: right;
  outline: none;
  transition: border-color var(--t);
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
}

.metric-value-input::-webkit-outer-spin-button,
.metric-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.metric-value-input:focus { border-color: var(--orange-500); }

.metric-btn-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.metric-btn {
  background: var(--purple-500);
  border: 1px solid var(--purple-400);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1;
  width: 24px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t), color var(--t);
}

.metric-btn:hover {
  background: var(--orange-500);
  color: #fff;
  border-color: var(--orange-500);
}

/* Percentage */
.metric-pct {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  align-self: flex-start;
}

.metric-pct.good  { background: rgba(34,197,94,0.15);  color: var(--green); }
.metric-pct.mid   { background: rgba(245,158,11,0.15); color: var(--yellow); }
.metric-pct.low   { background: rgba(239,68,68,0.12);  color: var(--red); }
.metric-pct.none  { background: var(--purple-500); color: var(--text-muted); }

/* ── Conversion Funnel ──────────────────────────────────────── */
.conversion-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funnel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.funnel-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  width: 160px;
  flex-shrink: 0;
}

.funnel-bar-wrap {
  flex: 1;
  height: 10px;
  background: var(--purple-600);
  border-radius: 5px;
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  border-radius: 5px;
  background: var(--orange-500);
  transition: width 0.4s ease;
}

.funnel-pct {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  width: 45px;
  text-align: right;
  flex-shrink: 0;
}

.funnel-count {
  font-size: 12px;
  color: var(--text-muted);
  width: 30px;
  flex-shrink: 0;
}

/* ── Weekly Summary ─────────────────────────────────────────── */
.weekly-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}

.weekly-summary-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--purple-500);
}

.weekly-summary-table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--purple-600);
  color: var(--text-secondary);
}

.weekly-summary-table td:first-child { font-weight: 600; color: var(--text-primary); }
.weekly-summary-table tr:last-child td { border-bottom: none; }
