/* OptiWake position list v1 */

#ow-race-lite-panel {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  top: auto !important;
  left: auto !important;
  z-index: 2147483000 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #e5f3ff !important;
  pointer-events: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#ow-race-lite-panel * {
  box-sizing: border-box !important;
}

#ow-race-lite-panel .ow-race-lite-toggle,
#ow-race-lite-panel .ow-race-lite-refresh {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid rgba(56, 189, 248, 0.75) !important;
  background: rgba(2, 6, 23, 0.96) !important;
  color: #ffffff !important;
  border-radius: 13px !important;
  padding: 8px 11px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.34) !important;
}

#ow-race-lite-panel .ow-race-lite-refresh {
  padding: 5px 9px !important;
  font-size: 10px !important;
  box-shadow: none !important;
}

#ow-race-lite-panel .ow-race-lite-box {
  position: absolute !important;
  right: 0 !important;
  bottom: calc(100% + 8px) !important;
  width: 430px !important;
  max-width: calc(100vw - 36px) !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 38px rgba(0,0,0,0.42) !important;
}

#ow-race-lite-panel.ow-collapsed .ow-race-lite-box {
  display: none !important;
}

#ow-race-lite-panel .ow-race-lite-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 11px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#ow-race-lite-panel .ow-race-lite-actions {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
}

#ow-race-lite-panel table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 11px !important;
}

#ow-race-lite-panel th,
#ow-race-lite-panel td {
  padding: 6px 6px !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#ow-race-lite-panel th {
  color: #93c5fd !important;
  font-size: 9px !important;
  letter-spacing: 0.035em !important;
  text-transform: uppercase !important;
}

#ow-race-lite-panel th:nth-child(1),
#ow-race-lite-panel td:nth-child(1) {
  width: 34px !important;
  text-align: right !important;
}

#ow-race-lite-panel th:nth-child(2),
#ow-race-lite-panel td:nth-child(2) {
  width: 116px !important;
}

#ow-race-lite-panel th:nth-child(3),
#ow-race-lite-panel td:nth-child(3) {
  width: 44px !important;
  text-align: center !important;
}

#ow-race-lite-panel th:nth-child(4),
#ow-race-lite-panel td:nth-child(4) {
  width: 48px !important;
  text-align: right !important;
}

#ow-race-lite-panel th:nth-child(5),
#ow-race-lite-panel td:nth-child(5) {
  width: 52px !important;
  text-align: center !important;
}

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

#ow-race-lite-panel .ow-start-penalty {
  display: inline-flex !important;
  min-width: 33px !important;
  justify-content: center !important;
  padding: 2px 4px !important;
  border-radius: 999px !important;
  color: #cbd5e1 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: .02em !important;
}

#ow-race-lite-panel .ow-start-penalty-ocs {
  color: #fef3c7 !important;
  background: rgba(217, 119, 6, .22) !important;
}

#ow-race-lite-panel .ow-start-penalty-ufd,
#ow-race-lite-panel .ow-start-penalty-bfd {
  color: #fee2e2 !important;
  background: rgba(220, 38, 38, .25) !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),
  #ow-race-lite-panel th:nth-child(4),
  #ow-race-lite-panel td:nth-child(4) {
    display: none !important;
  }
}

#ow-race-lite-panel .ow-sail {
  font-weight: 900 !important;
}

#ow-race-lite-panel .ow-race-dot {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  margin-right: 7px !important;
  vertical-align: -1px !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.16) !important;
}

#ow-race-lite-panel .ow-up {
  color: #86efac !important;
  font-weight: 900 !important;
}

#ow-race-lite-panel .ow-down {
  color: #fca5a5 !important;
  font-weight: 900 !important;
}

#ow-race-lite-panel .ow-same {
  color: #cbd5e1 !important;
}

#ow-race-lite-panel .ow-muted {
  color: #94a3b8 !important;
}

body.ow-map-fullscreen-v1-active #ow-race-lite-panel {
  right: 20px !important;
  bottom: 20px !important;
  z-index: 2147483002 !important;
}

#ow-race-lite-panel tr.ow-row-warning td {
  background: rgba(245, 158, 11, 0.10) !important;
}

#ow-race-lite-panel tr.ow-row-warning .ow-sail {
  color: #fde68a !important;
}
