/* Temporary coverage for a to-be-hired territory */

.bbi-tc-tl__eyebrow {
  position: absolute;
  top: 18px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bbi-muted);
}

.bbi-tc-tl__eyebrow svg { width: 15px; height: 15px; color: var(--bbi-indigo); }

.bbi-tc-seg {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.45s ease, background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}

.bbi-tc-seg--past { background: var(--bbi-line); border-radius: 12px 5px 5px 12px; }

.bbi-tc-seg--gap {
  border: 1.5px dashed #ffb3c8;
  background: #fff5f8;
  color: var(--bbi-bad);
}

.bbi-tc-seg--gap.is-gone { opacity: 0; }

.bbi-tc-seg--cover {
  background: repeating-linear-gradient(135deg, rgba(94, 114, 228, 0.3) 0 7px, rgba(17, 167, 196, 0.3) 7px 14px);
  color: var(--bbi-ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--bbi-ease), opacity 0.45s ease, filter 0.45s ease;
}

.bbi-tc-seg--cover.is-on { transform: scaleX(1); }
.bbi-tc-seg--cover.is-ended { opacity: 0.7; }

.bbi-tc-seg__label {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.bbi-tc-seg--jordan {
  justify-content: flex-end;
  border: 1.5px dashed #c9b6f7;
  border-radius: 5px 12px 12px 5px;
  background: #faf7ff;
  color: #7a55e0;
}

.bbi-tc-seg--jordan.is-live {
  border-color: transparent;
  background: linear-gradient(135deg, #a78bfa, #825ee4);
  color: #fff;
}

.bbi-tc-flag {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1.5px solid #e2d7fb;
  background: #fbf9ff;
  font-size: 13px;
  font-weight: 700;
  color: #6b46d6;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.bbi-tc-flag b { font-weight: 800; }
.bbi-tc-flag .bbi-avatar { width: 22px; height: 22px; box-shadow: none; }
.bbi-tc-flag.is-live { border-color: #825ee4; background: #825ee4; color: #fff; }

.bbi-tc-pole { position: absolute; border-radius: 2px; background: #c9b6f7; }

.bbi-tc-now {
  position: absolute;
  top: 44px;
  z-index: 3;
  width: 0;
}

.bbi-tc-now__line {
  position: absolute;
  top: 0;
  left: -1.5px;
  width: 3px;
  height: 40px;
  border-radius: 3px;
  background: var(--bbi-navy-deep);
}

.bbi-tc-now__pill {
  position: absolute;
  top: 38px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bbi-navy-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 16px -8px rgba(30, 42, 74, 0.6);
}

.bbi-tc-now__pill svg { width: 12px; height: 12px; }

/* Territory card */

.bbi-tc-terr__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--bbi-line);
}

.bbi-tc-seat {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: 2px dashed #c9b6f7;
  background: #faf7ff;
  color: #825ee4;
  overflow: hidden;
}

.bbi-tc-seat svg { width: 22px; height: 22px; }

.bbi-tc-seat.is-filled {
  border: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #c9b6f7;
}

.bbi-tc-seat.is-filled svg { width: 100%; height: 100%; display: block; }

.bbi-tc-terr__title { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bbi-tc-terr__name { display: flex; align-items: baseline; width: 100%; }
.bbi-tc-terr__name b { font-size: 16px; font-weight: 800; color: var(--bbi-ink); line-height: 1.1; }
.bbi-tc-terr__name small { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--bbi-muted); }

.bbi-tc-terr__tag {
  border: 1.5px dashed #c9b6f7;
  background: #faf7ff;
  color: #6b46d6;
}

.bbi-tc-terr__tag.bbi-tag--good { border: 1.5px solid var(--bbi-good-edge); background: var(--bbi-good-bg); color: var(--bbi-good); }

.bbi-tc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px 0;
}

.bbi-tc-acct {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  flex: none;
  padding: 0 6px 0 7px;
  border-radius: 11px;
  border: 1px solid var(--bbi-line);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.bbi-tc-acct > b {
  position: relative;
  font-size: 14px;
  font-weight: 800;
  color: var(--bbi-ink);
}

.bbi-tc-acct__fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--bbi-ease);
}

.bbi-tc-acct__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  background: var(--bbi-surface-2);
  color: var(--bbi-muted);
}

.bbi-tc-acct__tile svg { width: 14px; height: 14px; }

.bbi-tc-owner {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bbi-tc-owner .bbi-avatar,
.bbi-tc-owner__av {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  box-shadow: none;
}

.bbi-tc-acct.is-open { border-style: dashed; border-color: #ffc4d3; }
.bbi-tc-acct.is-open .bbi-tc-owner__av { border: 1.5px dashed #ffb3c8; }
.bbi-tc-acct.is-open .bbi-tc-owner__text { color: var(--bbi-bad); }
.bbi-tc-acct.is-open .bbi-tc-owner { background: var(--bbi-bad-bg); }

.bbi-tc-acct.is-maya { border-color: #c6cdf7; }
.bbi-tc-acct.is-maya .bbi-tc-acct__fill {
  transform: scaleX(1);
  background: repeating-linear-gradient(135deg, rgba(94, 114, 228, 0.16) 0 7px, rgba(94, 114, 228, 0.04) 7px 14px);
}

.bbi-tc-acct.is-maya .bbi-tc-owner__text { color: var(--bbi-indigo); }

.bbi-tc-acct.is-diego { border-color: #b4e3ee; }
.bbi-tc-acct.is-diego .bbi-tc-acct__fill {
  transform: scaleX(1);
  transform-origin: right center;
  background: repeating-linear-gradient(135deg, rgba(17, 167, 196, 0.18) 0 7px, rgba(17, 167, 196, 0.05) 7px 14px);
}

.bbi-tc-acct.is-diego .bbi-tc-owner__text { color: #0b8aa3; }

.bbi-tc-acct.is-jordan { border-color: #ded2fb; background: #fbf9ff; }
.bbi-tc-acct.is-jordan .bbi-tc-acct__fill { transform: scaleX(0); transition: none; }
.bbi-tc-acct.is-jordan .bbi-tc-owner { background: #efe8ff; }
.bbi-tc-acct.is-jordan .bbi-tc-owner__text { color: #6b46d6; }
.bbi-tc-acct.is-jordan .bbi-tc-acct__tile { background: #efe8ff; color: #825ee4; }

/* Neighbour reps */

.bbi-tc-nb {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 16px;
  text-align: center;
}

.bbi-tc-nb--maya { border-top: 5px solid var(--bbi-indigo); }
.bbi-tc-nb--diego { border-top: 5px solid #11a7c4; }
.bbi-tc-nb .bbi-avatar { width: 56px; height: 56px; }
.bbi-tc-nb b { margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--bbi-ink); }
.bbi-tc-nb small { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--bbi-muted); }
.bbi-tc-nb__tag { margin-top: 16px; }
.bbi-tc-nb--maya .bbi-tc-nb__tag.is-on { background: rgba(94, 114, 228, 0.12); color: var(--bbi-indigo); }
.bbi-tc-nb--diego .bbi-tc-nb__tag.is-on { background: rgba(17, 167, 196, 0.13); color: #0b8aa3; }

.bbi-tc-fly {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  box-shadow: 0 0 0 2px #fff, 0 10px 18px -6px rgba(30, 42, 74, 0.45);
  will-change: transform;
}

/* Footer actions + outcome tags */

.bbi-tc-foot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.bbi-tc-foot .bbi-tag,
.bbi-tc-foot__tag {
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--bbi-shadow-sm);
}

.bbi-tc-foot .bbi-tag svg { width: 14px; height: 14px; }
.bbi-tc-sf { background: #e3f4fd; color: #0b80c4; }
.bbi-tc-go { height: 36px; padding: 0 16px; font-size: 14px; }
.bbi-tc-go svg { width: 15px; height: 15px; }
