/* Distribute quota to fit the territory */

.bbi-qt-main .bbi-card__head { padding: 16px 18px 12px; }

.bbi-qt-total {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bbi-ink);
}

.bbi-qt-total small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bbi-muted);
}

.bbi-qt-seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 4px;
  height: 46px;
  margin: 0 18px;
  padding: 4px;
  border-radius: 14px;
  background: var(--bbi-surface-2);
  border: 1px solid var(--bbi-line);
}

.bbi-qt-seg__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--bbi-shadow-sm), 0 0 0 1.5px rgba(94, 114, 228, 0.35);
  transition: left 0.45s var(--bbi-ease), width 0.45s var(--bbi-ease);
}

.bbi-qt-seg__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bbi-muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.bbi-qt-seg__opt svg { width: 15px; height: 15px; }
.bbi-qt-seg__opt em { font-style: normal; font-weight: 600; }
.bbi-qt-seg__opt.is-active { color: var(--bbi-indigo); font-weight: 800; }

.bbi-qt-cols,
.bbi-qt-row {
  display: grid;
  grid-template-columns: 178px 204px 128px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 0 18px;
}

.bbi-qt-cols {
  margin: 18px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bbi-muted);
  white-space: nowrap;
}

.bbi-qt-legend { display: flex; align-items: center; gap: 6px; }
.bbi-qt-legend i { width: 10px; height: 10px; border-radius: 3px; }
.bbi-qt-legend i + i,
.bbi-qt-legend i.is-quota { margin-left: 8px; }
.bbi-qt-legend i.is-arr { background: #11a7c4; }
.bbi-qt-legend i.is-quota { background: var(--bbi-indigo); }

.bbi-qt-row {
  height: 72px;
  border-top: 1px solid var(--bbi-line);
}

.bbi-qt-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bbi-qt-who .bbi-avatar { width: 38px; height: 38px; }
.bbi-qt-who b { display: block; font-size: 14px; font-weight: 800; color: var(--bbi-ink); line-height: 1.25; }
.bbi-qt-who small { display: block; font-size: 12px; font-weight: 600; color: var(--bbi-muted); white-space: nowrap; }
.bbi-qt-row.is-ramp .bbi-qt-who small { color: #7a55e0; font-weight: 700; }
.bbi-qt-row.is-ramp .bbi-qt-who .bbi-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d9cbfb; }

.bbi-qt-bars { display: flex; flex-direction: column; gap: 8px; }
.bbi-qt-barrow { display: flex; align-items: center; gap: 10px; }
.bbi-qt-barrow .bbi-bar { flex: 1; height: 10px; overflow: visible; }

.bbi-qt-barrow em {
  width: 38px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  color: #0b8aa3;
  font-variant-numeric: tabular-nums;
}

.bbi-qt-arr .bbi-bar__fill { background: linear-gradient(90deg, #2dcecc, #11a7c4); }

.bbi-qt-quota .bbi-bar__fill { transition: none; }

.bbi-qt-gap {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: repeating-linear-gradient(135deg, rgba(240, 56, 107, 0.55) 0 4px, rgba(240, 56, 107, 0.18) 4px 8px);
}

.bbi-qt-gap.is-over { background: linear-gradient(90deg, #ff5f8f, #f0386b); border-radius: 0 999px 999px 0; }
.bbi-qt-row:not(.is-off) .bbi-qt-gap { opacity: 0; }

.bbi-qt-quota .bbi-bar__target { top: -5px; bottom: -5px; width: 3px; opacity: 0.55; }

.bbi-qt-amt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.bbi-qt-amt b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--bbi-ink);
  font-variant-numeric: tabular-nums;
}

.bbi-qt-amt .bbi-tag { height: 24px; padding: 0 8px; font-size: 12px; }
.bbi-qt-amt .bbi-tag svg { width: 11px; height: 11px; }

.bbi-qt-load b {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--bbi-ink);
  font-variant-numeric: tabular-nums;
}

.bbi-qt-load b small { font-size: 12px; font-weight: 700; color: var(--bbi-muted); }
.bbi-qt-load .bbi-meter { display: block; width: 100px; height: 6px; }
.bbi-qt-load .bbi-meter__fill { display: block; }

.bbi-qt-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 14px;
}

.bbi-qt-strip__method small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bbi-muted);
}

.bbi-qt-strip__method b { display: block; font-size: 14px; font-weight: 800; color: var(--bbi-ink); }

.bbi-qt-strip__tag {
  margin-left: auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.bbi-qt-strip__tag svg { width: 13px; height: 13px; }
