/* Operator roster (clearance feed) */

.operator-roster {
  width: 230px;
  margin: 16px 0 20px;
  padding: 4px 8px 0;
  box-sizing: border-box;
  background: transparent;
  color: var(--body-txt);
  text-align: left;
}

.operator-roster,
.operator-roster div,
.operator-roster span,
.operator-roster header,
.operator-roster ul,
.operator-roster li {
  overflow: visible;
}

.operator-roster__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(83, 216, 240, 0.18);
}

.operator-roster__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--feed-text);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.operator-roster__mode {
  color: var(--excerpt-text);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.operator-roster__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(5 * 2.55rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(83, 216, 240, 0.45) rgba(0, 0, 0, 0.25);
}

.operator-roster__list::-webkit-scrollbar {
  width: 6px;
}

.operator-roster__list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
}

.operator-roster__list::-webkit-scrollbar-thumb {
  background: rgba(83, 216, 240, 0.4);
  border-radius: 3px;
}

.operator-roster__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 2.55rem;
  padding: 6px 1px;
  border-bottom: 1px solid rgba(83, 216, 240, 0.14);
  box-sizing: border-box;
}

.operator-roster__row:last-child {
  border-bottom: none;
}

.operator-roster__avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 216, 240, 0.34);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  color: var(--button-txt);
  font-size: 0.7rem;
}

.operator-roster__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 !important;
}

.operator-roster__avatar.is-empty {
  color: var(--button-txt);
  opacity: 0.75;
}

.operator-roster__callsign {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--body-txt);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
}

.operator-roster__placeholder,
.operator-roster__more {
  padding: 10px 1px;
  color: var(--excerpt-text);
  font-size: 0.58rem;
  line-height: 1.45;
  border-bottom: 1px solid rgba(83, 216, 240, 0.14);
}

.operator-roster__placeholder a,
.operator-roster__more a {
  color: var(--feed-text);
  text-decoration: none;
}

.operator-roster__placeholder a:hover,
.operator-roster__more a:hover {
  text-decoration: underline;
}

.operator-roster__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  color: var(--excerpt-text);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-roster__footer button {
  display: grid;
  width: 25px;
  height: 23px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(83, 216, 240, 0.34);
  border-radius: 0;
  background: rgba(83, 216, 240, 0.05);
  color: var(--feed-text);
  cursor: pointer;
}

.operator-roster__footer button:hover,
.operator-roster__footer button:focus-visible {
  border-color: var(--button-txt);
  color: var(--button-txt);
}

.operator-roster__footer button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.operator-roster.is-checking .operator-roster__footer button i {
  animation: network-status-spin 0.8s linear infinite;
}

.light-mode .operator-roster {
  color: #253236;
}

.light-mode .operator-roster__heading,
.light-mode .operator-roster__footer button,
.light-mode .operator-roster__placeholder a,
.light-mode .operator-roster__more a {
  color: #006f91;
}

.light-mode .operator-roster__callsign {
  color: #253236;
}
