/* Peringkat Logbook — memakai shell styles.css (sidebar + main) */

.lb-board-page .page {
  max-width: 920px;
}

.lb-weekbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 10px;
  align-items: end;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f7fb, #eef3fa);
  border: 1px solid rgba(18, 43, 92, 0.1);
}
.lb-weekbar__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.lb-weekbar__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.lb-weekbar__select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(18, 43, 92, 0.2);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23122B5C' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #0b1330;
  font: 650 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
  padding: 10px 36px 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.lb-weekbar__nav {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(18, 43, 92, 0.18);
  background: #fff;
  color: #122B5C;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 1px;
}
.lb-weekbar__nav:hover:not(:disabled) {
  border-color: #122B5C;
  background: #eff4ff;
}
.lb-weekbar__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.lb-weekbar__hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}
@media (max-width: 560px) {
  .lb-weekbar {
    grid-template-columns: auto 1fr auto;
  }
}

.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.lb-tabs__btn {
  appearance: none;
  border: 1px solid rgba(18, 43, 92, 0.18);
  background: #fff;
  color: #122B5C;
  font: 600 13px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lb-tabs__btn:hover {
  border-color: rgba(18, 43, 92, 0.35);
}

.lb-tabs__btn.is-active {
  background: #122B5C;
  border-color: #122B5C;
  color: #fff;
}

.lb-board-mount {
  min-height: 220px;
}

.lb-board__loading,
.lb-board__empty,
.lb-board__error {
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  border: 1px dashed rgba(18, 43, 92, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.lb-board__error {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.25);
  background: #fff8f7;
}

.lb-board__table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(18, 43, 92, 0.12);
  background: #fff;
}

.lb-board__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  color: #0d1326;
}

.lb-board__table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 43, 92, 0.1);
  background: #f7f8fc;
  white-space: nowrap;
}

.lb-board__table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 43, 92, 0.06);
  vertical-align: top;
}

.lb-board__table tr:last-child td {
  border-bottom: none;
}

.lb-rank__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(18, 43, 92, 0.08);
  color: #122B5C;
  font-weight: 800;
  font-size: 12px;
}

.lb-rank--1 .lb-rank__n {
  background: #D4A853;
  color: #1a1408;
}

.lb-rank--2 .lb-rank__n {
  background: #c5cdd9;
  color: #1a2336;
}

.lb-rank--3 .lb-rank__n {
  background: #c47a4a;
  color: #fff;
}

.lb-rank__meta {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.lb-board__footnote {
  margin-top: 16px;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

/* Panel di dashboard SitRoom */
.lb-dash-board {
  margin: 8px 0 28px;
}

.lb-dash-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.lb-dash-board__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0d1326;
}

.lb-dash-board__lead {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.lb-dash-board__link {
  font-size: 13px;
  font-weight: 600;
  color: #122B5C;
  text-decoration: none;
}

.lb-dash-board__link:hover {
  text-decoration: underline;
}

.lb-dash-board__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 16px;
}

.lb-dash-board__panel {
  border: 1px solid rgba(18, 43, 92, 0.12);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.lb-dash-board__panel h4 {
  margin: 0;
  padding: 12px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(18, 43, 92, 0.08);
  background: #f7f8fc;
}

.lb-dash-board__panel .lb-board__table-wrap {
  border: none;
  border-radius: 0;
}

.lb-dash-board__panel .lb-board__table th:nth-child(n+5),
.lb-dash-board__panel .lb-board__table td:nth-child(n+5) {
  /* compact: keep on-time visible on wide screens */
}

@media (max-width: 960px) {
  .lb-dash-board__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lb-board-page .app {
    display: block;
  }
  .lb-board-page .sidebar {
    min-height: auto;
    padding-bottom: 24px;
  }
}

/* —— Search & podium —— */
.lb-search {
  margin: 0 0 18px;
}

.lb-search__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.lb-search .input {
  width: 100%;
  max-width: 420px;
}

.lb-podium-mount {
  margin: 0 0 22px;
}

.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.lb-podium__slot {
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f4f6fb 100%);
  border: 1px solid rgba(18, 43, 92, 0.12);
  border-radius: 16px 16px 8px 8px;
  padding: 16px 12px 20px;
  min-height: 140px;
}

.lb-podium__slot--1 {
  min-height: 180px;
  background: linear-gradient(180deg, #fff8e8 0%, #f5e6b8 100%);
  border-color: rgba(195, 154, 60, 0.45);
  order: 2;
}

.lb-podium__slot--2 { order: 1; }
.lb-podium__slot--3 { order: 3; }

.lb-podium__medal {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: #64748b;
}

.lb-podium__slot--1 .lb-podium__medal { background: #c39a3c; }
.lb-podium__slot--2 .lb-podium__medal { background: #7b8798; }
.lb-podium__slot--3 .lb-podium__medal { background: #a16207; }

.lb-podium__label {
  font-weight: 800;
  color: #122B5C;
  font-size: 15px;
}

.lb-podium__ketua,
.lb-podium__meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.35;
}

.lb-podium__score {
  margin-top: 10px;
  font-weight: 800;
  color: #0d1326;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.lb-podium__next {
  display: grid;
  gap: 8px;
}

.lb-podium__runner {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(18, 43, 92, 0.1);
  background: #fff;
}

.lb-podium__runner-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  background: #eef1f7;
  color: #122B5C;
}

@media (max-width: 640px) {
  .lb-podium {
    grid-template-columns: 1fr;
  }
  .lb-podium__slot--1,
  .lb-podium__slot--2,
  .lb-podium__slot--3 {
    order: 0;
    min-height: 0;
  }
}
