.bdsv-blacklist-widget {
  width: 100%;
  max-width: 100%;
  margin: 0 0 22px 0;
  box-sizing: border-box;
}

.bdsv-blacklist-widget .bdsv-blacklist-banner {
  display: block;
  width: 100%;
  margin: 0 0 12px 0;
  box-sizing: border-box;
  text-align: center;
  border-style: solid;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 6px rgba(0,0,0,0.25);
}

.bdsv-blacklist-widget .bdsv-blacklist-title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bdsv-blacklist-widget .bdsv-blacklist-output table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
}

.bdsv-blacklist-widget .bdsv-blacklist-output thead th {
  font-weight: 700;
  vertical-align: middle;
}

.bdsv-blacklist-widget .bdsv-blacklist-output tbody tr:nth-child(odd) {
  background: rgba(0,0,0,0.02);
}

.bdsv-blacklist-widget .bdsv-blacklist-output tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.00);
}

.bdsv-blacklist-widget .bdsv-blacklist-output td.data-name .player-photo img {
  max-width: 64px;
  height: auto;
  border-radius: 6px;
}

.bdsv-blacklist-widget .bdsv-open-value {
  font-weight: 800 !important;
}

@media (max-width: 640px) {
  .bdsv-blacklist-widget .sp-scrollable-table-wrapper {
    overflow-x: hidden !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output table {
    table-layout: fixed;
    width: 100%;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th,
  .bdsv-blacklist-widget .bdsv-blacklist-output td {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal !important;
    font-size: 14px;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-number,
  .bdsv-blacklist-widget .bdsv-blacklist-output th.data-number {
    width: 44px;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-name .player-photo img {
    max-width: 48px;
  }
}

.bdsv-blacklist-widget .bdsv-player-count-bar {
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 0 0;
  border-style: solid;
}

.bdsv-blacklist-widget .bdsv-player-count-number {
  font-weight: 800;
}

.bdsv-blacklist-widget .bdsv-blacklist-output tbody tr:nth-child(odd) td {
  background: #f5f5f5 !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output tbody tr:nth-child(even) td {
  background: #ffffff !important;
}


/* Version 1.4.0: gleiche Tabellenoptik wie SportPress, auch mobil keine Kartenansicht */
.bdsv-blacklist-widget,
.bdsv-blacklist-widget * {
  box-sizing: border-box;
}

.bdsv-blacklist-widget .bdsv-blacklist-output,
.bdsv-blacklist-widget .sp-table-wrapper,
.bdsv-blacklist-widget .sp-scrollable-table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output table,
.bdsv-blacklist-widget table.sp-scrollable-table,
.bdsv-blacklist-widget table.sp-data-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output th,
.bdsv-blacklist-widget .bdsv-blacklist-output td {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  vertical-align: middle !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output th:first-child,
.bdsv-blacklist-widget .bdsv-blacklist-output td:first-child,
.bdsv-blacklist-widget .bdsv-blacklist-output th.data-number,
.bdsv-blacklist-widget .bdsv-blacklist-output td.data-number {
  width: 7% !important;
  min-width: 54px !important;
  text-align: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(2),
.bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2),
.bdsv-blacklist-widget .bdsv-blacklist-output th.data-name,
.bdsv-blacklist-widget .bdsv-blacklist-output td.data-name {
  width: 34% !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(3),
.bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(3) {
  width: 32% !important;
  text-align: center !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(4),
.bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(4),
.bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(5),
.bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(5) {
  width: 13.5% !important;
  text-align: center !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output td.data-name,
.bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2) {
  display: table-cell !important;
}

.bdsv-blacklist-widget .bdsv-blacklist-output td.data-name .player-photo img,
.bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2) img {
  max-width: 34px !important;
  height: auto !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}

.bdsv-blacklist-widget .bdsv-player-count-bar {
  width: 100% !important;
}

@media (max-width: 767px) {
  .bdsv-blacklist-widget .bdsv-blacklist-banner {
    margin-bottom: 10px;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-title {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th,
  .bdsv-blacklist-widget .bdsv-blacklist-output td {
    display: table-cell !important;
    padding: 8px 5px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output thead {
    display: table-header-group !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output tbody {
    display: table-row-group !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output tr {
    display: table-row !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:first-child,
  .bdsv-blacklist-widget .bdsv-blacklist-output td:first-child,
  .bdsv-blacklist-widget .bdsv-blacklist-output th.data-number,
  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-number {
    width: 11% !important;
    min-width: 0 !important;
    font-size: 12px !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(2),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2),
  .bdsv-blacklist-widget .bdsv-blacklist-output th.data-name,
  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-name {
    width: 34% !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(3),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(3) {
    width: 29% !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(4),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(4),
  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(5),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(5) {
    width: 13% !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-name .player-photo img,
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2) img {
    max-width: 34px !important;
    display: block !important;
    margin: 0 0 4px 0 !important;
  }

  .bdsv-blacklist-widget .bdsv-player-count-bar {
    text-align: center !important;
    line-height: 1.25 !important;
  }
}


/* Version 1.5.0: Mobile-Optimierung wie BDSV Tabellen Style / Spielerliste */
@media (max-width: 767px) {
  .bdsv-blacklist-widget {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output,
  .bdsv-blacklist-widget .sp-table-wrapper,
  .bdsv-blacklist-widget .sp-scrollable-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output table,
  .bdsv-blacklist-widget table.sp-scrollable-table,
  .bdsv-blacklist-widget table.sp-data-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th,
  .bdsv-blacklist-widget .bdsv-blacklist-output td {
    display: table-cell !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.18 !important;
    vertical-align: middle !important;
    text-align: center !important;
    font-size: 11px !important;
    padding: 5px 2px !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:first-child,
  .bdsv-blacklist-widget .bdsv-blacklist-output td:first-child,
  .bdsv-blacklist-widget .bdsv-blacklist-output th.data-number,
  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-number,
  .bdsv-blacklist-widget .bdsv-blacklist-output th.data-rank,
  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-rank {
    width: 10% !important;
    min-width: 10% !important;
    max-width: 10% !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(2),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2),
  .bdsv-blacklist-widget .bdsv-blacklist-output th.data-name,
  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-name {
    width: 38% !important;
    min-width: 38% !important;
    max-width: 38% !important;
    text-align: left !important;
    hyphens: auto !important;
    overflow-wrap: break-word !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(3),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(3),
  .bdsv-blacklist-widget .bdsv-blacklist-output th.data-team,
  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-team {
    width: 28% !important;
    min-width: 28% !important;
    max-width: 28% !important;
    text-align: left !important;
    hyphens: auto !important;
    overflow-wrap: break-word !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(4),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(4),
  .bdsv-blacklist-widget .bdsv-blacklist-output th:nth-child(5),
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(5) {
    width: 12% !important;
    min-width: 12% !important;
    max-width: 12% !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
    text-align: center !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output td.data-name a,
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2) a {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.1 !important;
    text-align: left !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output .player-photo {
    display: inline-flex !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-output .player-photo img,
  .bdsv-blacklist-widget .bdsv-blacklist-output img.wp-post-image,
  .bdsv-blacklist-widget .bdsv-blacklist-output td:nth-child(2) img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: block !important;
    margin: 0 !important;
    object-fit: cover !important;
  }

  .bdsv-blacklist-widget .bdsv-blacklist-title {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }

  .bdsv-blacklist-widget .bdsv-player-count-bar {
    text-align: center !important;
    line-height: 1.25 !important;
  }
}

/* Version 1.6.0: eigenes Widget BDSV Spieleranzahl */
.bdsv-spieleranzahl-widget {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bdsv-spieleranzahl-widget .bdsv-player-count-bar,
.bdsv-blacklist-widget .bdsv-player-count-bar {
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0 0 0;
  border-style: solid;
}

.bdsv-spieleranzahl-widget .bdsv-player-count-number,
.bdsv-blacklist-widget .bdsv-player-count-number {
  font-weight: 800;
}

/* Version 1.6.1: Blacklist optional auf-/zuklappbar */
.bdsv-blacklist-widget .bdsv-blacklist-toggle {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bdsv-blacklist-widget .bdsv-blacklist-toggle:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.bdsv-blacklist-widget .bdsv-blacklist-toggle-icon::before {
  content: "▲";
  font-size: 0.85em;
  line-height: 1;
}

.bdsv-blacklist-widget.bdsv-blacklist-closed .bdsv-blacklist-toggle-icon::before {
  content: "▼";
}

.bdsv-blacklist-widget.bdsv-blacklist-closed .bdsv-blacklist-output {
  display: none !important;
}
