/* SEMANU portal — Landing "Begeleider" (mei 2026)
   ----------------------------------------------------------------
   Eén-actie-tegelijk, warm, hand-holding voor oudere B2B-klanten.
   ---------------------------------------------------------------- */

/* SSOT-spacing: flex-gap op de home-container regelt ALLE verticale
   ruimte tussen secties. Individuele margins op kinderen worden hard
   overschreven naar 0 om collapsing-margins en dubbele-margin-bugs te
   voorkomen. Pas de gap-waarde aan om de hele pagina compacter of
   ruimer te maken — zo blijft het gedrag voorspelbaar. */
.portal-view[data-pview="home"] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* KRITIEK: styles.css zet een globale `section { padding: 96px 0 }` voor de
   marketing-site. Onze portal-home gebruikt <section>-elementen — die
   erven dus 192px verticale ruimte per blok. Hier hard naar 0 zetten,
   en daarna selectief eigen padding teruggeven aan cards die wel
   inwendige ruimte nodig hebben. */
.portal-view[data-pview="home"] > section,
.portal-view[data-pview="home"] > div {
  padding: 0 !important;
  margin: 0 !important;
}
/* Cards die zelf padding nodig hebben (binnen-de-card-ruimte): */
.portal-view[data-pview="home"] > .pm-welcome { padding: 12px 18px 12px !important; }
.portal-view[data-pview="home"] > .pm-timeline-wrap { padding: 12px 16px 12px !important; }
.portal-view[data-pview="home"] > .pm-help .pm-help-card { padding: 12px 16px !important; }
/* Welkom-intro tekst dichter onder de groet */
.portal-view[data-pview="home"] .pm-welcome-intro { margin-top: 4px; font-size: 13px; line-height: 1.5; }
.portal-view[data-pview="home"] .pm-welcome-row { margin-bottom: 4px; }

/* ---------- Welkom-card ---------- */
.pm-welcome {
  margin: 24px 0 4px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #E5E5E7;
  border-top: 3px solid #FF5A1F;
  padding: 18px 22px 22px;
}
.pm-welcome-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.pm-welcome-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FAEEDA;
  color: #BA7517;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pm-welcome-greet {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: #0A0A0A;
  line-height: 1.2;
}
.pm-welcome-company {
  margin: 2px 0 0;
  font-size: 13px;
  color: #8E8E93;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.pm-welcome-intro {
  margin: 6px 0 0;
  font-size: 14px;
  color: #5F5E5A;
  line-height: 1.55;
}

/* ---------- Primary action (oranje "Nu uw beurt"-blok, stack) ---------- */
.pm-primary {
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-primary-card {
  display: block;
  width: 100%;
  background: #FFF1EB;
  border: 1px solid #FAEEDA;
  border-radius: 12px;
  padding: 14px 18px 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(255, 90, 31, 0.06);
}
.pm-primary-card:hover {
  background: #FFE8DA;
  box-shadow: 0 6px 18px rgba(255, 90, 31, 0.12);
}
.pm-primary-card:active { transform: scale(0.99); }
.pm-primary-card.pm-primary-urgent {
  background: #FCEBEB;
  border-color: #F7C1C1;
}
.pm-primary-card.pm-primary-urgent:hover { background: #F8DCDC; }

.pm-primary-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #FF5A1F;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pm-primary-urgent .pm-primary-badge { background: #A32D2D; }

.pm-primary-title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
  color: #0A0A0A;
  line-height: 1.25;
}
.pm-primary-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: #5F5E5A;
  line-height: 1.4;
}
.pm-primary-cta {
  display: inline-block;
  background: #FF5A1F;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}
.pm-primary-urgent .pm-primary-cta { background: #A32D2D; }

/* ---------- Caught-up state (geen openstaande items) ---------- */
.pm-caught-up {
  background: #F5F5F7;
  border: 1px solid #E5E5E7;
  border-radius: 12px;
  padding: 22px 24px;
  text-align: center;
}
.pm-caught-up-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #0A0A0A;
}
.pm-caught-up-sub {
  margin: 0;
  font-size: 13.5px;
  color: #5F5E5A;
  line-height: 1.55;
}

/* ---------- 4-stappen tijdlijn ---------- */
.pm-timeline-wrap {
  background: #ffffff;
  border: 1px solid #E5E5E7;
  border-radius: 10px;
  padding: 16px 18px 18px;
  margin: 4px 0 4px;
}
.pm-timeline-label {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8E8E93;
  text-transform: uppercase;
  font-weight: 600;
}
.pm-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.pm-step {
  flex: 0 0 auto;
  text-align: center;
  min-width: 64px;
}
.pm-step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin: 0 auto 6px;
}
.pm-step-circle.pm-step-done {
  background: #D8F0E0;
  color: #1A7F4B;
  font-size: 15px;
}
.pm-step-circle.pm-step-current {
  background: #FF5A1F;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18);
}
.pm-step-circle.pm-step-future {
  background: #F1EFE8;
  color: #888780;
}
.pm-step-label {
  display: block;
  font-size: 11.5px;
  color: #888780;
  line-height: 1.3;
  font-weight: 500;
}
.pm-step-is-current .pm-step-label {
  color: #0A0A0A;
  font-weight: 600;
}
.pm-step-line {
  flex: 1 1 auto;
  height: 2px;
  background: #E5E5E7;
  margin: 13px 2px 0;
  align-self: flex-start;
  border-radius: 1px;
}
.pm-step-line.pm-step-line-done { background: #9FE1CB; }

/* ---------- Secondary items (compact rij-formaat) ---------- */
.pm-secondary { margin: 0 0 22px; }
.pm-section-label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8E8E93;
  text-transform: uppercase;
  font-weight: 600;
}
.pm-secondary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-secondary-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #E5E5E7;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.pm-secondary-row:hover {
  background: #FAFAFA;
  border-color: #D2D2D7;
}
.pm-secondary-body { flex: 1; min-width: 0; }
.pm-secondary-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 500;
  color: #0A0A0A;
}
.pm-secondary-sub {
  margin: 0;
  font-size: 12.5px;
  color: #8E8E93;
}
.pm-secondary-arrow {
  font-size: 16px;
  color: #FF5A1F;
  font-weight: 500;
}

/* ---------- Hulp-blok ---------- */
.pm-help {
  margin: 4px 0 6px;
}
.pm-help-card {
  background: #ffffff;
  border: 1px solid #E5E5E7;
  border-radius: 10px;
  padding: 16px 18px 16px;
}
.pm-help-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #0A0A0A;
}
.pm-help-intro {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #3A3A3C;
}
.pm-help-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-help-line {
  margin: 0;
  font-size: 13.5px;
  color: #5F5E5A;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pm-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FF5A1F;
  flex: none;
}
.pm-help-label { color: #8E8E93; font-size: 13px; }
.pm-help-link {
  color: #FF5A1F;
  text-decoration: none;
  font-weight: 600;
}
.pm-help-link:hover { text-decoration: underline; }

/* ---------- Browse-tegels (compact onderaan) ---------- */
.pm-tiles { margin: 6px 0 32px; }
.pm-tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.pm-tile {
  background: #ffffff;
  border: 1px solid #F0F0F2;
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  font: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.pm-tile:hover { border-color: #FF5A1F; background: #FFFBF8; }
.pm-tile:active { transform: scale(0.98); }
.pm-tile-icon { font-size: 22px; line-height: 1; }
.pm-tile-name { font-size: 13px; font-weight: 500; color: #0A0A0A; }

/* ---------- Mobile finetuning ---------- */
@media (max-width: 560px) {
  .pm-welcome { padding: 16px 16px 18px; }
  .pm-welcome-greet { font-size: 17px; }
  .pm-welcome-intro { font-size: 13.5px; }
  .pm-primary-card { padding: 18px 18px 16px; }
  .pm-primary-title { font-size: 16px; }
  .pm-primary-cta { padding: 11px 18px; font-size: 14px; }
  .pm-timeline-wrap { padding: 14px 12px 16px; }
  .pm-step { min-width: 56px; }
  .pm-step-label { font-size: 10.5px; }
}
