/* The annual summary, the storage check and the holding page. */

/* --- annual summary -------------------------------------------------------------- */

.year-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

.year-switch span {
  font: 600 16px/1 var(--display);
  min-width: 48px;
  text-align: center;
}

.summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font: 600 11px/1 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table th:first-child,
.table td:first-child {
  padding-left: 22px;
}

.table th:last-child,
.table td:last-child {
  padding-right: 22px;
}

.table .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table tfoot td {
  border-bottom: 0;
  font-weight: 700;
}

.cls {
  font-weight: 600;
}

.cls-note {
  font-size: 12px;
  color: var(--ink-3);
}

/* --- storage ---------------------------------------------------------------------- */

.storage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bars {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
}

.bar-label b {
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 14px;
  border-radius: 7px;
  background: var(--sunk);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: var(--brand);
}

.bar.is-need > span {
  background: #6f8f78;
}

.verdict {
  font: 600 24px/1.2 var(--display);
  font-stretch: 90%;
  color: var(--brand);
}

.verdict.is-short {
  color: var(--late);
}

.breakdown {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
}

.breakdown li b {
  font-variant-numeric: tabular-nums;
}

.note {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 14px;
}

/* --- holding ---------------------------------------------------------------------- */

.holding-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.file-path {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  word-break: break-all;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--sunk);
  margin: 10px 0 14px;
  user-select: text;
}

@media (max-width: 1100px) {
  .overview,
  .summary-layout,
  .storage-layout,
  .holding-layout {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 24px 24px 48px;
  }
}
