html {
  font-size: 12px;
  background-color: #fafafa;
}
.topBar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem 0;
}
.exportBtns {
  display: flex;
  gap: 0.8rem;
}
.exportBtn {
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
  background: #f0f0f0;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
}
.exportBtn:hover {
  background: #e0e0e0;
  color: #111;
}
.logoutBtn {
  font-size: 1.2rem;
  color: #888;
  text-decoration: none;
}
.logoutBtn:hover {
  color: #f44336;
}
body {
  font-family: "Lato", Arial, sans-serif;
  font-size: 1.5rem;
  color: #131313;
  letter-spacing: 0px;
  margin: 0;
  padding: 0;
}
.box {
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  margin: 2rem auto;
  border-radius: 1.2rem;
  padding: 0 2rem 2rem;
}
.box .header {
  background-color: white;
  padding: 1rem 2rem;
  margin: 0 -2rem;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
}
main > .box {
  min-height: 20rem;
  width: calc(100vw - 8rem);
  margin: 2rem;
}
.pinFilter {
  display: flex;
  gap: 0.2rem;
}
.pinFilter p {
  display: flex;
  align-items: center;
  margin: 0;
  height: 3rem;
  background-color: #f5f5f6;
  padding: 0 1rem;
  cursor: pointer;
  user-select: none;
}
.pinFilter p.active {
  background-color: #777;
  color: white;
}
.widgets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.widget {
  padding: 2rem 0 0;
}
.widget h2 {
  margin: 0;
  font-weight: 400;
}
.widget .box {
  box-shadow: none;
  border: 1px solid #e8e8e8;
  background-color: white;
  margin: 1rem 0 0;
  border-radius: 0.8rem;
  padding: 0;
  overflow: hidden;
}
.widget .box.heatmapWidget {
  padding: 1rem;
}
.widget--full {
  grid-column: 1 / -1;
}
.widget--full .box {
  overflow-x: auto;
}
.widgetHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widgetHeader h2 {
  margin: 0;
  font-weight: 400;
}
.widgetHeader .rookieToggle {
  display: flex;
  align-items: center;
  margin: 0;
  height: 3rem;
  background-color: #f5f5f6;
  padding: 0 1.2rem;
  cursor: pointer;
  border-radius: 0.6rem;
  font-size: 1.3rem;
  user-select: none;
}
.widgetHeader .rookieToggle.active {
  background-color: #4caf50;
  color: white;
}
.periodNav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
}
.periodNav span {
  font-size: 1.3rem;
  font-weight: 600;
  min-width: 14rem;
  text-align: center;
}
.periodNav button {
  background: #f5f5f6;
  border: none;
  border-radius: 0.5rem;
  width: 3rem;
  height: 2.8rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.periodNav button:hover:not(:disabled) {
  background: #e0e0e0;
}
.periodNav button:disabled {
  opacity: 0.3;
  cursor: default;
}
.zeitraumFilter {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.8rem;
}
.zeitraumFilter p {
  display: flex;
  align-items: center;
  margin: 0;
  height: 2.8rem;
  background-color: #f5f5f6;
  padding: 0 1rem;
  cursor: pointer;
  user-select: none;
}
.zeitraumFilter p.active {
  background-color: #555;
  color: white;
}
.customDateForm {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.customDateForm input[type="date"] {
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-family: inherit;
  font-size: 1.4rem;
}
.customDateForm button {
  background-color: #555;
  color: white;
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1.2rem;
  font-family: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
table.leaderboard {
  width: 100%;
  border-collapse: collapse;
}
table.leaderboard thead, table.leaderboard tbody, table.leaderboard tfoot {
  display: block;
  width: 100%;
}
table.leaderboard thead tr, table.leaderboard tbody tr, table.leaderboard tfoot tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}
table.leaderboard tbody {
  max-height: 540px;
  overflow-y: auto;
}
table.leaderboard th, table.leaderboard td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}
table.leaderboard th {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #999;
  background-color: #fafafa;
}
table.leaderboard th small {
  text-transform: none;
  font-weight: 400;
  display: block;
  letter-spacing: 0;
}
table.leaderboard tbody tr:hover {
  background-color: #fafafa;
}
table.leaderboard tr.top-performer td {
  background-color: #edf7ed;
}
table.leaderboard th:nth-child(1), table.leaderboard td:nth-child(1) {
  width: 2.5rem;
  text-align: right;
}
table.leaderboard th:nth-child(2), table.leaderboard td:nth-child(2) {
  width: 18rem;
  text-align: left;
}
table.leaderboard th:nth-child(n+3), table.leaderboard td:nth-child(n+3) {
  width: 6rem;
  text-align: center;
}
table.leaderboard td.rank {
  color: #ccc;
}
table.leaderboard td.name {
  font-weight: 500;
}
table.leaderboard td.vk {
  font-weight: 700;
  font-size: 1.8rem;
}
table.leaderboard td.empty {
  text-align: center;
  color: #bbb;
  padding: 4rem;
}
table.leaderboard .rookieBadge {
  font-size: 1.1rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}
table.leaderboard tfoot td {
  border-bottom: none;
  border-top: 2px solid #e8e8e8;
  background-color: #fafafa;
}
.goalWidget {
  padding: 2rem;
}
.goalSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}
.goalHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.4rem;
}
.goalHeader .goalNumbers {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.goalHeader .goalNumbers .goalTarget {
  font-size: 1.4rem;
  font-weight: 400;
  color: #aaa;
}
.goalBarWrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.goalBarWrap .goalBar {
  position: relative;
  flex: 1;
  height: 1.2rem;
  background-color: #f0f0f0;
  border-radius: 1rem;
  overflow: hidden;
}
.goalBarWrap .goalBar .goalBarForecast {
  position: absolute;
  inset: 0 auto 0 0;
  background-color: #c8e6c9;
  border-radius: 1rem;
  transition: width 0.4s ease;
}
.goalBarWrap .goalBar .goalBarFill {
  position: absolute;
  inset: 0 auto 0 0;
  background-color: #4caf50;
  border-radius: 1rem;
  transition: width 0.4s ease;
}
.goalBarWrap .goalPct {
  font-size: 1.3rem;
  font-weight: 600;
  color: #4caf50;
  min-width: 4rem;
  text-align: right;
}
.goalMeta {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  color: #888;
}
.goalMeta strong {
  color: #333;
}
.goalMeta .goalDays {
  color: #bbb;
}
#geoHeatmap {
  height: 360px;
  width: 100%;
  border-radius: 0.8rem;
}
.mapFilter {
  display: flex;
  gap: 0.2rem;
}
.mapFilter p {
  display: flex;
  align-items: center;
  margin: 0;
  height: 2.4rem;
  background-color: #f5f5f6;
  padding: 0 0.8rem;
  cursor: pointer;
  user-select: none;
  font-size: 1.2rem;
}
.mapFilter p.active {
  background-color: #777;
  color: white;
}
.heatmapGrid {
  display: grid;
  gap: 3px;
}
.heatmapCell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.heatmapDayLabel {
  font-weight: 700;
  color: #aaa;
  font-size: 1.2rem;
  padding-bottom: 0.4rem;
}
.heatmapHourLabel {
  color: #bbb;
  font-size: 1.1rem;
  justify-content: flex-end;
  padding-right: 0.8rem;
}
.heatmapData {
  height: 2.2rem;
  border-radius: 0.4rem;
  background-color: #f5f5f5;
  cursor: default;
  transition: opacity 0.15s;
}
.heatmapData:hover {
  opacity: 0.75;
}
.heatmapEmpty {
  background-color: #f5f5f5;
}
.heatmapNoData {
  text-align: center;
  color: #bbb;
  padding: 2rem;
  margin: 0;
}
