/* ==========================================================================
   PicklePulse — SaaS Super Admin Panel Styles (admin.css)
   Extends base.css & app.css with clean analytics bars, filters & settings.
   ========================================================================== */

.admin-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--s-2);
  margin-left: var(--s-2);
  border-radius: var(--r-sm);
  background: var(--ink-900);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Revenue & Utilization Bar Chart */
.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-3);
  align-items: end;
  height: 180px;
  padding-top: var(--s-4);
}
.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  height: 100%;
  justify-content: flex-end;
}
.bar-val {
  font-size: var(--text-xs);
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
}
.bar-track {
  width: 100%;
  max-width: 40px;
  height: 120px;
  background: var(--surface-3);
  border-radius: var(--r-sm);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.bar-fill {
  width: 100%;
  background: var(--brand-600);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  transition: height 0.25s var(--ease);
}
.bar-col.is-peak .bar-fill {
  background: var(--ink-900);
}
.bar-lbl {
  font-size: var(--text-xs);
  color: var(--ink-500);
  font-weight: 500;
}

/* Breakdown rows */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.breakdown-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.breakdown-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.breakdown-head span {
  color: var(--ink-600);
}
.breakdown-head strong {
  color: var(--ink-900);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Settings switches */
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.setting-row:first-child {
  padding-top: 0;
}
.setting-row h4 {
  font-size: var(--text-sm);
  margin-bottom: 2px;
}
.setting-row p {
  font-size: var(--text-xs);
  color: var(--ink-500);
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--line-strong);
  border-radius: var(--r-full);
  transition: background-color 0.15s var(--ease);
}
.switch-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  transition: transform 0.15s var(--ease);
}
.switch input:checked + .switch-slider {
  background: var(--brand-600);
}
.switch input:checked + .switch-slider::before {
  transform: translateX(18px);
}
