/* =========================================================
   overview.css – Kompakt-Styles für Übersichten
   Gilt für:
   - trainings.html (Alle Trainings)
   - kasse_uebersicht.html (Kasse Übersicht)
   Ziel:
   - extrem platzsparende 1-Zeilen-Listen
   - einheitliches Look & Feel
   ========================================================= */

/* Saison-Gruppen */
details.season-group{
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 16px;
  background: var(--card, #fff);
  box-shadow: var(--shadow2, 0 6px 18px rgba(15,23,42,0.06));
  padding: 0;            /* wichtig: keine Extra-Höhe */
  margin: 0 0 12px 0;
  overflow: hidden;
}
details.season-group > summary{
  cursor: pointer;
  list-style: none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 8px 12px;
  font-weight: 900;
}
details.season-group > summary::-webkit-details-marker{ display:none; }
details.season-group[open] > summary{
  border-bottom: none;
  padding-bottom: 8px;
  margin-bottom: 0;
}
details.season-group .season-right{
  font-weight: 700;
  color: var(--muted, #64748b);
  font-size: 12px;
}

/* Innenabstand für den geöffneten Bereich */
details.season-group .season-body{
  padding: 0 12px 12px;
}

/* Training-Einträge (eine Zeile, sehr kompakt) */
details.training-item{
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  background: var(--card, #fff);
  box-shadow: var(--shadow2, 0 6px 18px rgba(15,23,42,0.06));
  padding: 0;            /* wichtig: keine Extra-Höhe */
  margin: 8px 0 0 0;
  overflow: hidden;
}
details.training-item > summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  /* Ultra-compact */
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  line-height: 1;
  font-weight: 800;
}
details.training-item > summary::-webkit-details-marker{ display:none; }

details.training-item > summary > span:first-child{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52%;
  font-size: 13px;
}
details.training-item .sum-right{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
  font-weight: 600;
  color: var(--muted, #64748b);
  font-size: 12px;
}

/* Mobile: Datum etwas weniger Platz */
@media (max-width: 720px){
  details.training-item > summary > span:first-child{ max-width: 46%; }
  details.training-item .sum-right{ max-width: 54%; }
}


/* Cash Overview: month header layout (matches Trainings look) */
.month-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.month-left{font-size:13px;font-weight:800;}
.month-right{color:var(--muted);font-weight:600;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;}
@media (max-width:720px){.month-head{flex-wrap:wrap;}.month-right{font-size:11px;}}


/* --- Kassenbuch: tabellarische Darstellung (nur Kassenbuch) --- */
.book-table{
  margin-top: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
}

.book-row{
  display: grid;
  grid-template-columns: 120px 200px 1fr 110px;
  gap: 14px;
  padding: 10px 14px;
  align-items: center;
  font-weight: 500; /* nicht fett */
  border-top: 1px solid rgba(0,0,0,.06);
}

.book-row:first-child{
  border-top: none;
}

.book-header{
  background: rgba(0,0,0,.03);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 600;
}

.book-row .col-amt{
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.book-row .col-date,
.book-row .col-cat{
  white-space: nowrap;
}

.book-row .col-note{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile: Spalten umbrechen */
@media (max-width: 700px){
  .book-row{
    grid-template-columns: 120px 1fr 110px;
    grid-template-areas:
      "date cat amt"
      "note note note";
    row-gap: 6px;
  }
  .book-row .col-date{ grid-area: date; }
  .book-row .col-cat { grid-area: cat; }
  .book-row .col-amt { grid-area: amt; }
  .book-row .col-note{ grid-area: note; white-space: normal; }
  .book-header{
    display:none; /* spart Platz */
  }
}
