/* P86 — czytelna lista pozycji i mobilny stan łódki. */

#ow-race-lite-panel .ow-race-lite-box {
  width: 660px !important;
  max-width: calc(100vw - 24px) !important;
}

#ow-race-lite-panel th,
#ow-race-lite-panel td {
  padding: 6px 5px !important;
}

#ow-race-lite-panel th:nth-child(1),
#ow-race-lite-panel td:nth-child(1) {
  width: 31px !important;
}

#ow-race-lite-panel th:nth-child(2),
#ow-race-lite-panel td:nth-child(2) {
  width: 150px !important;
}

#ow-race-lite-panel th:nth-child(3),
#ow-race-lite-panel td:nth-child(3) {
  width: 43px !important;
  text-align: center !important;
}

#ow-race-lite-panel th:nth-child(4),
#ow-race-lite-panel td:nth-child(4) {
  width: 92px !important;
  text-align: center !important;
}

#ow-race-lite-panel th:nth-child(5),
#ow-race-lite-panel td:nth-child(5) {
  width: 82px !important;
  text-align: right !important;
}

#ow-race-lite-panel th:nth-child(6),
#ow-race-lite-panel td:nth-child(6) {
  width: 62px !important;
  text-align: center !important;
}

#ow-race-lite-panel th:nth-child(7),
#ow-race-lite-panel td:nth-child(7) {
  width: auto !important;
}

#ow-race-lite-panel .ow-race-state {
  display: inline-flex !important;
  min-width: 72px !important;
  justify-content: center !important;
  padding: 2px 3px !important;
  border-radius: 999px !important;
  color: #cbd5e1 !important;
  font-size: 8px !important;
  font-weight: 900 !important;
  letter-spacing: .015em !important;
}

#ow-race-lite-panel .ow-race-state-capsize,
#ow-race-lite-panel .ow-race-state-dnf {
  color: #fee2e2 !important;
  background: rgba(220, 38, 38, .27) !important;
}

#ow-race-lite-panel .ow-race-state-stalled,
#ow-race-lite-panel .ow-race-state-blocked {
  color: #fef3c7 !important;
  background: rgba(217, 119, 6, .24) !important;
}

#ow-race-lite-panel .ow-race-state-recovering {
  color: #d1fae5 !important;
  background: rgba(5, 150, 105, .25) !important;
}

#ow-race-lite-panel tr.ow-row-state-capsize td,
#ow-race-lite-panel tr.ow-row-state-dnf td {
  background: rgba(127, 29, 29, .10) !important;
}

#ow-race-lite-panel .ow-race-prestart-note {
  padding: 15px 12px !important;
  color: #bfdbfe !important;
  font-weight: 800 !important;
  text-align: center !important;
}

#ow-race-lite-panel .ow-sail-main {
  display: inline !important;
}

#ow-race-lite-panel .ow-race-mobile-state {
  display: none !important;
}

@media (max-width: 540px) {
  #ow-race-lite-panel .ow-race-lite-box {
    width: calc(100vw - 20px) !important;
  }

  #ow-race-lite-panel th:nth-child(3),
  #ow-race-lite-panel td:nth-child(3) {
    display: table-cell !important;
    width: 43px !important;
  }

  #ow-race-lite-panel th:nth-child(4),
  #ow-race-lite-panel td:nth-child(4),
  #ow-race-lite-panel th:nth-child(7),
  #ow-race-lite-panel td:nth-child(7) {
    display: none !important;
  }

  #ow-race-lite-panel .ow-sail {
    line-height: 1.1 !important;
  }

  #ow-race-lite-panel .ow-sail-main {
    display: block !important;
  }

  #ow-race-lite-panel .ow-race-mobile-state {
    display: inline-flex !important;
    max-width: 112px !important;
    min-height: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 3px 0 0 25px !important;
    padding: 2px 5px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    color: #cbd5e1 !important;
    background: rgba(71, 85, 105, .38) !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    letter-spacing: .015em !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #ow-race-lite-panel .ow-race-mobile-state-capsize,
  #ow-race-lite-panel .ow-race-mobile-state-dnf {
    color: #fee2e2 !important;
    background: rgba(220, 38, 38, .42) !important;
  }

  #ow-race-lite-panel .ow-race-mobile-state-stalled,
  #ow-race-lite-panel .ow-race-mobile-state-blocked {
    color: #fef3c7 !important;
    background: rgba(217, 119, 6, .38) !important;
  }

  #ow-race-lite-panel .ow-race-mobile-state-recovering {
    color: #d1fae5 !important;
    background: rgba(5, 150, 105, .40) !important;
  }
}
