/* 💾 ADMIN → SETTINGS storage breakdown. */
.storage-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.storage-totals > div {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  border: 1px solid var(--c-grey-333);
  border-radius: 8px;
}

.storage-label {
  color: var(--c-grey-aaa);
  font-size: 0.7rem;
}

.storage-heading {
  margin: 14px 0 4px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.storage-parts,
.storage-tables {
  margin: 0;
  padding: 0;
  list-style: none;
}

.storage-part + .storage-part {
  margin-top: 10px;
}

.storage-part-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}

.storage-detail {
  margin-top: 2px;
  color: var(--c-grey-aaa);
  font-size: 0.72rem;
}

.storage-tables li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  border-bottom: 1px dashed var(--c-grey-333);
  font-size: 0.78rem;
}

/* ADMIN → STORAGE: a section at a time, with every table under it. */
.storage-section + .storage-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-grey-222);
}

.storage-table {
  width: auto !important;
  margin-top: 8px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.76rem;
}

.storage-table th,
.storage-table td {
  padding: 3px 12px 3px 0;
  text-align: left;
  white-space: nowrap;
}

.storage-table th {
  color: var(--c-grey-aaa);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.storage-table td:nth-child(2),
.storage-table td:nth-child(3),
.storage-table th:nth-child(2),
.storage-table th:nth-child(3) {
  text-align: right;
}

.storage-table tbody tr + tr td {
  border-top: 1px dashed var(--c-grey-222);
}

@media (max-width: 640px) {
  .storage-table th {
    display: none;
  }

  .storage-table td {
    white-space: normal;
  }

  .storage-table td::before {
    content: attr(data-label) ": ";
    color: var(--c-grey-aaa);
  }
}
