/* Vandaag · één kaartsysteem (24 september 2026, op gebruikersverzoek).
   Volgorde: stand → wat moet ik doen → wat komt eraan → maand afronden →
   terugblik. Iedere sectie is één kaart met de titel erin; geen losse
   scheidingslijnen. Alleen vormgeving en volgorde: berekeningen, teksten,
   doorkliks, inklapgedrag en de plusknop blijven ongewijzigd. */
#todayView {
  --today-card-radius: 18px;
  --today-card-padding: 18px;
  --today-card-title: 22px;
}
@media (min-width: 721px) {
  #todayView { --today-card-padding: 22px 24px 18px; --today-card-title: 24px; }
}

/* Mobiel: de grafiek kijkt terug en staat daarom onderaan. Op desktop blijft
   hij naast de omzetkaart staan. */
@media (max-width: 720px) {
  #todayView .modern-daily-briefing { grid-row: 5; }
  #todayView .today-context-sections { grid-row: 6; }
  #todayView .modern-month-panel { grid-row: 7; }
  #todayView .studio-rhythm { grid-row: 8; }
}

/* Omzetkaart: minder lege ruimte tussen trendregel en doel. */
#todayView #todayRevenuePanel .revenue-goal { margin-top: 0; }

/* Gedeelde kaart voor de secties onder de KPI's. */
#todayView :is(.studio-rhythm, #todayModernUpcoming, #todayFinancialSummary),
#todayView #todayFocusPanel:not(.is-collapsed):not(.has-calm-status) {
  margin: 0;
  padding: var(--today-card-padding);
  border: 1px solid var(--line);
  border-radius: var(--today-card-radius);
  background: var(--paper);
}
#todayView :is(#todayFocusTitle, #rhythmTitle, #todayUpcomingTitle, #todayFinancialTitle) {
  margin: 0;
  font: 400 var(--today-card-title)/1.15 var(--font-display);
  letter-spacing: -.035em;
}
#todayView .studio-rhythm header > .studio-eyebrow { display: none; }
#todayView :is(.modern-daily-briefing, .modern-month-panel) { border-top: 0; }
#todayView .modern-month-panel { padding-top: 0; }

/* Actie nodig: rijen plat binnen de kaart, geen kaart-in-kaart.
   De koptussenruimte (12px) blijft die van today-spacing.css. */
#todayView #todayFocusPanel #todayModernAttention .modern-attention-card {
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#todayView #todayMoreActions:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
#todayView #todayMoreActions:not([hidden])::after {
  content: '›';
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

/* Ingeklapte aandachtspunten en Controleoverzicht: dezelfde compacte kaartregel. */
#todayView #todayFocusPanel.is-collapsed .modern-focus-collapsed,
#todayView .modern-checks-row {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--today-card-radius);
  background: var(--paper);
}
#todayView .modern-checks-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  margin: 0;
  text-align: left;
}
#todayView .today-context-sections { row-gap: var(--today-section-gap, 12px); }

/* Deze maand afronden: één kaart met regels (label links, waarde rechts). */
#todayView #todayFinancialSummary > h2 { margin-bottom: 4px; }
#todayView #todayFinancialSummary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
#todayView #todayFinancialSummary .modern-month-metric {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
#todayView #todayFinancialSummary .modern-month-metric:first-child,
#todayView #todayFinancialSummary .modern-month-metric[hidden] + .modern-month-metric { border-top: 0; }
/* Verborgen regels en een verborgen kaart blijven verborgen ondanks display:flex/grid. */
#todayView #todayFinancialSummary[hidden],
#todayView #todayFinancialSummary .modern-month-metric[hidden] { display: none; }
#todayView #todayFinancialSummary .modern-month-copy {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
#todayView #todayFinancialSummary .modern-month-copy small {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}
#todayView #todayFinancialSummary .modern-month-copy strong {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  text-align: right;
  font: 400 20px/1.2 var(--font-display);
  white-space: nowrap;
}
@media (min-width: 721px) {
  /* Desktop: vier kolommen binnen dezelfde kaart. */
  /* Evenveel kolommen als zichtbare regels. */
  #todayView #todayFinancialSummary > div { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  #todayView #todayFinancialSummary .modern-month-metric {
    min-height: 0;
    padding: 12px 16px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  #todayView #todayFinancialSummary .modern-month-metric:first-child,
  #todayView #todayFinancialSummary .modern-month-metric[hidden] + .modern-month-metric { border-left: 0; padding-left: 0; }
  #todayView #todayFinancialSummary .modern-month-copy { flex-direction: column; align-items: flex-start; gap: 6px; }
  #todayView #todayFinancialSummary .modern-month-copy small { color: var(--muted); font-size: 13px; }
  #todayView #todayFinancialSummary .modern-month-copy strong { font-size: 24px; }
}
#todayView .today-month-info { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
#todayView .today-month-info > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
#todayView .today-month-info > summary::-webkit-details-marker { display: none; }
#todayView .today-month-info > summary::before {
  content: 'i';
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
#todayView .today-month-info p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }

/* Het aantal aandachtspunten staat al op Vandaag zelf; het badge herhaalt het
   alleen op de andere tabbladen. */
.nav-button.is-active #navTodayCount { display: none; }

/* Actie nodig-poets (26 september 2026, goedgekeurd met voorbeeldbeeld).
   De actie ("Betaling controleren") staat als eigen regel onder de omschrijving en rechts staat
   hetzelfde pijltje als bij Komt eraan; het aantal staat één keer (in "Alle n aandachtspunten"). */
#todayView #todayFocusPanel #todayModernAttention #todayModernAttentionCard { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; column-gap: 12px; text-align: left; }
#todayView #todayFocusPanel #todayModernAttentionCard .modern-attention-copy { display: grid; min-width: 0; text-align: left; }
#todayView #todayFocusPanel #todayModernReminderButton { display: block; justify-self: start; width: auto; min-width: 0; max-width: none; min-height: 0; margin: 6px 0 0; padding: 0; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left; white-space: normal; }
#todayView #todayFocusPanel #todayModernReminderButton:empty { display: none; }
#todayView #todayModernAttentionCard .modern-attention-chevron { display: grid; place-items: center; width: 20px; height: 20px; color: var(--muted); }
#todayView #todayModernAttentionCard .modern-attention-chevron .summa-icon { width: 20px; height: 20px; }
#todayView #todayFocusCount { display: none; }
/* Kop even hoog als de titel (zoals Komt eraan): de inklapknop houdt zijn 44px-klikvlak, maar
   telt niet mee voor de hoogte en staat gecentreerd op de titel. */
#todayView #todayFocusPanel .modern-focus-head-actions { height: 0; align-self: center; }
#todayView #todayFocusPanel .modern-focus-head { padding-top: 0; }
#todayView #todayMoreActions:not([hidden])::after {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5 7 7-7 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5 7 7-7 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

