/* DCC_CONTINUOUS_FT8_DECODER */

.dcc-live-decode-panel .decode-body > .decode-row:not([data-dcc-live]),
.dcc-live-roster-panel .roster-table > .roster-row:not([data-dcc-live]) {
  display: none !important;
}

.dcc-live-decode-row,
.dcc-live-roster-row {
  opacity: 1 !important;
}

.dcc-live-decode-panel {
  min-height: 0;
  overflow: hidden;
}

.dcc-live-decode-panel .decode-body {
  height: 112px;
  max-height: 112px;
  min-height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #315967 #08151b;
  scrollbar-width: thin;
}

.dcc-live-roster-panel .roster-table {
  height: 112px;
  max-height: 112px;
  min-height: 112px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #315967 #08151b;
  scrollbar-width: thin;
}

.dcc-empty-decodes,
.dcc-empty-roster {
  color: #7f9eaa;
  font-family: var(--default-mono-font-family, monospace);
  font-size: 12px;
  padding: 12px 14px;
  text-align: center;
}

.dcc-empty-decodes {
  grid-column: 1 / -1;
}

.dcc-live-decode-row span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dcc-db-strong {
  color: #78df3f !important;
  font-weight: 800;
}

.dcc-db-workable {
  color: #ffd02f !important;
  font-weight: 800;
}

.dcc-db-weak {
  color: #ff8a2a !important;
  font-weight: 800;
}

.dcc-cq-row {
  background: linear-gradient(90deg, #24662f99, #173d2866) !important;
  box-shadow: inset 4px 0 #78df3f;
  color: #edfff0 !important;
}

.dcc-cq-row:hover {
  background: linear-gradient(90deg, #338242bb, #1f5034aa) !important;
}

.dcc-worked-row:not(.dcc-cq-row) {
  opacity: 0.72 !important;
}

.dcc-live-roster-row .status-grid {
  color: #77e83f;
}

.dcc-live-roster-row .status-worked {
  color: #8fa9b3;
}

.dcc-live-signal-map {
  background: #07171e !important;
  isolation: isolate;
}

.dcc-live-signal-map::before,
.dcc-live-signal-map::after,
.dcc-live-signal-map > svg:not(.dcc-world-map),
.dcc-live-signal-map > .home-node,
.dcc-live-signal-map > .map-node,
.dcc-live-signal-map > .map-label {
  display: none !important;
}

.dcc-live-signal-map > .dcc-world-map {
  display: block !important;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.dcc-map-base {
  opacity: 1;
}

.dcc-map-grid-layer line {
  stroke: #21414b;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.dcc-map-route {
  fill: none;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.dcc-map-route.dcc-signal-strong {
  stroke: #78df3f;
}

.dcc-map-route.dcc-signal-workable {
  stroke: #ffbc2d;
}

.dcc-map-route.dcc-signal-weak {
  stroke: #ff8a2a;
}

.dcc-world-marker {
  align-items: center;
  background: transparent;
  border: 0;
  color: #ecf8fb;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  line-height: 1.05;
  min-width: 52px;
  padding: 0;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 3px #000, 0 0 4px #000;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.dcc-world-marker i {
  border-radius: 50%;
  display: block;
  height: 9px;
  margin-bottom: 2px;
  width: 9px;
}

.dcc-world-marker strong {
  color: #f2fbff;
  font-size: 11px;
  font-weight: 700;
  transform: translate(
    var(--dcc-label-shift-x, 0),
    var(--dcc-label-shift-y, 0)
  );
}

.dcc-world-marker small {
  color: #b8d0d8;
  font-size: 9px;
  transform: translate(
    var(--dcc-label-shift-x, 0),
    var(--dcc-label-shift-y, 0)
  );
}

.dcc-home-marker i {
  background: #ff4f49;
  border: 3px solid #07171e;
  box-shadow: 0 0 0 2px #ff4f49, 0 0 10px #ff4f49;
  height: 15px;
  width: 15px;
}

.dcc-station-marker {
  cursor: pointer;
}

.dcc-station-marker.dcc-signal-strong i {
  background: #78df3f;
  box-shadow: 0 0 7px #78df3f;
}

.dcc-station-marker.dcc-signal-workable i {
  background: #ffbc2d;
  box-shadow: 0 0 7px #ffbc2d;
}

.dcc-station-marker.dcc-signal-weak i {
  background: #ff8a2a;
  box-shadow: 0 0 7px #ff8a2a;
}

.dcc-live-signal-map .map-legend span:nth-child(1) i {
  background: #78df3f !important;
}

.dcc-live-signal-map .map-legend span:nth-child(2) i {
  background: #ffbc2d !important;
}

.dcc-live-signal-map .map-legend span:nth-child(3) i {
  background: #ff8a2a !important;
}

.dcc-map-view-toggle {
  background: #071116df;
  border: 1px solid #31505a;
  border-radius: 3px;
  color: #d5e7ed;
  cursor: pointer;
  font: 700 10px var(--font-mono, monospace);
  padding: 4px 8px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 7;
}

.dcc-map-view-toggle:hover {
  background: #16323c;
}

.dcc-hide-map-grid .dcc-map-grid-layer,
.dcc-hide-map-signals .dcc-map-route,
.dcc-hide-map-signals .dcc-station-marker {
  display: none !important;
}

.dcc-map-level-controls {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dcc-map-level-filter,
.dcc-hide-worked-control,
.dcc-hide-cq-control {
  align-items: center;
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
}

.dcc-map-level-filter::after {
  border-radius: 50%;
  content: "";
  height: 7px;
  order: -1;
  width: 7px;
}

.dcc-filter-strong::after {
  background: #78df3f;
}

.dcc-filter-workable::after {
  background: #ffbc2d;
}

.dcc-filter-weak::after {
  background: #ff8a2a;
}

.dcc-find-clear-button {
  background: #09232d;
  border: 1px solid #27849c;
  border-radius: 3px;
  color: #6ee8ff;
  cursor: pointer;
  font: 700 9px var(--font-mono, monospace);
  padding: 3px 7px;
  white-space: nowrap;
}

.dcc-find-clear-button:hover {
  background: #124252;
  color: #e2fbff;
}

.dcc-find-clear-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.dcc-adif-file-input {
  display: none;
}

.roster-title .dcc-adif-button {
  align-items: center;
  background: #0c171c;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #bcd0d7;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  padding: 3px 7px;
  text-decoration: none;
  white-space: nowrap;
}

.roster-title .dcc-adif-button:hover {
  background: #16323c;
  color: #ecf9fd;
}

.roster-title .dcc-adif-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.dcc-clear-frequency-marker {
  background: #ff58df;
  box-shadow: 0 0 5px #ff58df;
  height: 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 8;
}

.intel-header > div:last-child,
.roster-title > div {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1250px) {
  .dcc-map-level-controls {
    gap: 3px;
  }

  .dcc-map-level-filter,
  .dcc-find-clear-button,
  .roster-title .dcc-adif-button,
  .dcc-hide-worked-control,
  .dcc-hide-cq-control {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dcc-world-marker {
    transition: left 180ms ease, top 180ms ease, opacity 180ms ease;
  }
}

body.dcc-decoder-error .dcc-live-audio-state,
body.dcc-decoder-error .receive-status > span:nth-child(4) {
  color: #ff5d5d !important;
}
