/* Klantenportaal (account/) – bouwt voort op style.css */
.account { padding: 48px 0 72px; background: var(--bg-alt); min-height: 60vh; }
.account h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.account h2 { font-size: 1.2rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nav__form { margin: 0; }
.nav__form .btn { font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }

.auth-box { max-width: 520px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 32px; }
.auth-box .field input { width: 100%; }
.auth-box form { margin-top: 18px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.notice { background: #ecfdf5; color: #065f46; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.form-error { margin: 0 0 14px; }

.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dash-head h1 { margin: 0; }
.dash-block { margin-top: 32px; }
.dash-subhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.dash-subhead h2 { margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.card-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card-box .field input { width: 100%; }
.card-box .field input:disabled { background: var(--bg-alt); color: var(--muted); }

.contracts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 12px; }
.contract { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.contract__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.contract h3 { font-size: 1.15rem; margin: 0 0 12px; word-break: break-all; }
.contract dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 12px; font-size: .92rem; }
.contract dt { color: var(--muted); }
.contract dd { margin: 0; font-weight: 600; }
.contract dd small { font-weight: 400; color: var(--muted); }
.contract__note { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 10px 0 0; }
.progress { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; }
.progress__label { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

.req-list { display: grid; gap: 10px; }
.req { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 20px; }
.req h3 { font-size: 1.05rem; margin: 2px 0 2px; word-break: break-all; }
.req__type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.req__vars, .req__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.req__note { font-size: .88rem; background: var(--bg-alt); border-radius: 10px; padding: 8px 12px; margin: 8px 0 0; }
.req__main { flex: 1; min-width: 0; }
.req__questions { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.req__questions li { font-size: .88rem; background: var(--bg-alt); border-radius: 10px; padding: 8px 12px; margin: 0; }
.req__ask { margin-top: 12px; padding: 0; border: 0; }
.req__ask summary { display: inline-flex; list-style: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .85rem; }
.req__ask summary::-webkit-details-marker { display: none; }
.req__ask summary::after { content: none; }
.req__ask p { color: var(--muted); }
.req__ask[open] summary { border-color: var(--brand); color: var(--brand); }
.req__ask form { margin-top: 12px; padding: 14px 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; }
.req__ask textarea { width: 100%; resize: vertical; }
.req__ask .muted { margin: 0 0 12px; }
.empty-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; text-align: center; color: var(--muted); }
.empty-box p { margin: 0 0 12px; }

.badge-s { flex: none; display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; white-space: nowrap; }
.badge-s--in_behandeling { background: #fef3c7; color: #92400e; }
.badge-s--geaccepteerd, .badge-s--actief, .badge-s--voorstel { background: #d1fae5; color: #065f46; }
.badge-s--afgewezen { background: #fee2e2; color: #991b1b; }
.badge-s--afgerond, .badge-s--beeindigd, .badge-s--overgedragen { background: #f1f5f9; color: #475569; }

.danger { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.danger summary { cursor: pointer; color: var(--err); font-weight: 600; font-size: .9rem; }
.btn--danger { background: var(--err); color: #fff; border: 0; cursor: pointer; }
.btn--danger:hover { background: #b91c1c; }

@media (max-width: 760px) {
  .dash-grid { grid-template-columns: 1fr; }
  .auth-box { padding: 28px 20px; margin: 0 16px; width: auto; }
  .req { flex-direction: column; gap: 8px; }
}
