/* Naaldvilt malmaker. Alleen op pagina's met data-nvw-malmaker. */
.mm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 2rem; align-items: start; }
.mm form { margin: 0; }
.mm fieldset { border: 0; margin: 0 0 1.25rem; padding: 0; min-width: 0; }
.mm legend { font-weight: 700; font-size: 1rem; color: var(--tp-inkt); margin: 0 0 .6rem; padding: 0; }
.mm-vormen { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; }
.mm-vorm { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .3rem .5rem; border-radius: 8px; cursor: pointer; color: var(--tp-zacht); font-size: .85rem; line-height: 1.2; text-align: center; box-shadow: inset 0 0 0 1px var(--tp-lijn); transition: box-shadow .15s ease, background-color .15s ease, color .15s ease; }
.mm-vorm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mm-vorm svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 5; stroke-linejoin: round; }
.mm-vorm:hover { background: var(--tp-tint); }
.mm-vorm:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tp-merk); color: var(--tp-inkt); font-weight: 700; background: var(--tp-tint); }
.mm-vorm:has(input:focus-visible) { outline: 3px solid var(--tp-accent); outline-offset: 2px; }
.mm-maten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mm-maten label { display: block; font-weight: 700; font-size: .95rem; color: var(--tp-inkt); }
.mm-maten small { display: block; font-weight: 400; color: var(--tp-licht); font-size: .82rem; }
.mm-maten input { display: block; width: 100%; min-height: 48px; margin-top: .35rem; padding: .5rem .75rem; font-size: 1.1rem; border: 1px solid var(--tp-lijn-sterk); border-radius: 6px; background: var(--tp-papier); color: var(--tp-inkt); }
.mm-maten input[aria-invalid="true"] { border-color: #b3261e; }
.mm-status { min-height: 3rem; margin: 1rem 0 0; font-size: .95rem; line-height: 1.45; color: var(--tp-inkt); }
.mm-status.is-fout { color: #b3261e; font-weight: 700; }
.mm-status.is-let { color: #8a4b00; }
.mm-acties { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.mm-acties button { min-height: 48px; padding: .75rem 1.2rem; border-radius: 6px; font-weight: 700; font-size: 1rem; cursor: pointer; border: 0; }
.mm-acties .mm-print { background: var(--tp-accent); color: var(--tp-accent-tekst); }
.mm-acties .mm-los { background: transparent; color: var(--tp-merk); box-shadow: inset 0 0 0 2px var(--tp-merk); }
.is-leeg .mm-acties button { opacity: .45; pointer-events: none; }
.mm-vel { margin: 0; }
.mm-vel > div { aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 0 0 1px var(--tp-lijn), 0 10px 24px rgba(0,0,0,.12); }
.mm-vel svg { display: block; width: 100%; height: 100%; }
.mm-vel figcaption { font-size: .82rem; color: var(--tp-licht); margin-top: .6rem; line-height: 1.4; }
.mm-presets { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.6rem 0 0; }
.mm-presets button { min-height: 44px; padding: .55rem 1rem; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.mm-presets button:hover { background: rgba(255,255,255,.18); }
.tp-sectie .mm-presets button { color: var(--tp-merk); background: transparent; box-shadow: inset 0 0 0 2px var(--tp-merk); }
@media (max-width: 720px) {
  .mm { grid-template-columns: 1fr; }
  .mm-vel { max-width: 260px; margin: 0 auto; }
  .tp-app__inhoud { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .mm-vorm { transition: none; } }
.tp-sectie .mm-presets { justify-content: flex-start; }
.tp-sectie details { max-width: 64ch; border-bottom: 1px solid var(--tp-lijn); }
.tp-sectie details:first-of-type { border-top: 1px solid var(--tp-lijn); }
.tp-sectie summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 700; font-size: 1.05rem; color: var(--tp-inkt); }
.tp-sectie summary::-webkit-details-marker { display: none; }
.tp-sectie summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--tp-merk); }
.tp-sectie details[open] summary::after { content: "–"; }
.tp-sectie details p { padding: 0 0 1rem; }
.tp-sectie details + p { margin-top: 1.6rem; }
