/* Maintaq productdemo. Alles staat onder .mqd zodat niets naar de rest van de site lekt. */
.mqd {
  --wit: #fff; --vlak: #f6f8fa; --rand: #e6eaef; --rand2: #d5dce4; --zacht: #eef2f6;
  --inkt: #0b1f33; --tekst: #1d3248; --sub: #5b6b7c; --sub2: #8593a3;
  --navy: #12355b; --staal: #2f5f8f; --licht: #8fb0d3; --lichter: #c9d8e8;
  --groen: #3d7a5c; --oranje: #c27a12; --rood: #b3261e; --geel: #F2B705;
  container: mqd / inline-size;
  position: relative; width: 100%;
  font-family: Inter, system-ui, sans-serif; font-size: 13px; line-height: 1.45; color: var(--tekst);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align: left; letter-spacing: -0.003em;
}
.mqd *, .mqd *::before, .mqd *::after { box-sizing: border-box; }
.mqd :where(h1, h2, p, ul, li) { margin: 0; padding: 0; }
.mqd :where(ul) { list-style: none; }
.mqd :where(b) { font-weight: 600; }
.mqd :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
.mqd button:focus-visible, .mqd input:focus-visible { outline: 2px solid var(--staal); outline-offset: 2px; }
.mqd :where(svg) { display: block; flex: none; }
.mqd svg text { font-family: inherit; font-size: 11px; fill: var(--sub2); font-variant-numeric: tabular-nums; }
.mqd :is(.mqd-kpi-w, .mqd-kpi-s, .mqd-t, .mqd-dl, .mqd-fi-tijd, .mqd-leg, .mqd-hb, .mqd-budget, .mqd-bedrag, .mqd-donut-c, .mqd-tel, .mqd-dag .u, .mqd-bez, .mqd-vg, .mqd-c-kpis, .mqd-kop p) { font-variant-numeric: tabular-nums; }
.mqd svg text.is-accent { fill: var(--inkt); font-weight: 600; }
.mqd .tt, .mqd .tm { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd .tt { color: var(--inkt); font-weight: 500; }
.mqd .tm { color: var(--sub); font-size: 12px; margin-top: 1px; }
.mqd .mut { color: var(--sub); }
.mqd .is-rood { color: var(--rood) !important; font-weight: 500; }
.mqd .is-oranje { color: var(--oranje) !important; font-weight: 500; }
.mqd .is-groen { color: var(--groen) !important; font-weight: 500; }

/* ---------- schil ---------- */
.mqd-app {
  display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: 56px minmax(0, 1fr);
  height: 720px; background: var(--vlak); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(11, 31, 51, .08), 0 2px 4px rgba(11, 31, 51, .06), 0 28px 64px -24px rgba(11, 31, 51, .42);
}
.mqd-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding-right: 20px; background: var(--wit); border-bottom: 1px solid var(--rand); min-width: 0; }
.mqd-merk { width: 224px; flex: none; padding-left: 24px; font-size: 20px; font-weight: 600; letter-spacing: -0.045em; color: var(--inkt); line-height: 1; }
.mqd-merk i { font-style: normal; color: var(--geel); }
.mqd-zoek { flex: 0 1 360px; min-width: 0; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--vlak); border: 1px solid var(--rand); border-radius: 8px; color: var(--sub2); }
.mqd-zoek input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font: inherit; color: var(--tekst); }
.mqd-zoek input::placeholder { color: var(--sub2); }
.mqd-zoek:focus-within { border-color: var(--licht); background: var(--wit); }
.mqd-top-r { margin-left: auto; display: flex; align-items: center; gap: 16px; flex: none; }
.mqd-datum { color: var(--sub); font-weight: 500; white-space: nowrap; }
.mqd-belk { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: var(--sub); border-radius: 8px; }
.mqd-belk::after { content: ""; position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--rood); box-shadow: 0 0 0 2px var(--wit); }
.mqd-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; letter-spacing: .02em; flex: none; }

.mqd-side { background: var(--wit); border-right: 1px solid var(--rand); padding: 12px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-height: 0; }
.mqd-nb { position: relative; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--sub); font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s; }
.mqd-nb .l { overflow: hidden; text-overflow: ellipsis; }
.mqd-nb:hover { background: var(--vlak); color: var(--inkt); }
.mqd-nb[aria-current="page"] { background: #edf2f8; color: var(--navy); font-weight: 600; }
.mqd-nb[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy); }
.mqd-tel { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--zacht); color: var(--sub); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; }
.mqd-tel.is-n { background: var(--navy); color: #fff; }
.mqd-tel[hidden] { display: none; }
.mqd-koppel { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; }
.mqd-koppel i { width: 6px; height: 6px; border-radius: 50%; background: var(--groen); flex: none; }

.mqd-main { overflow: auto; min-height: 0; min-width: 0; container: mqm / inline-size; scrollbar-width: thin; scrollbar-color: var(--rand2) transparent; }
.mqd-view { padding: 14px 24px 12px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mqd-view.is-in { animation: mqd-in .24s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mqd-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- koppen, kaarten, KPI's ---------- */
.mqd-kop { display: flex; align-items: flex-end; gap: 16px; min-height: 44px; }
.mqd-kop > div:first-child { min-width: 0; }
.mqd-kop .mqd-h1 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.025em; color: var(--inkt); line-height: 1.2; }
.mqd-kop p:not(.mqd-h1) { color: var(--sub); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd-kop p b { color: var(--inkt); font-weight: 600; }
.mqd-kop-r { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.mqd-terug { display: inline-flex; align-items: center; gap: 4px; color: var(--staal); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.mqd-terug:hover { text-decoration: underline; }
.mqd-live { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--rand); border-radius: 14px; background: var(--wit); font-size: 12px; font-weight: 500; color: var(--sub); }
.mqd-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--groen); animation: mqd-puls 2s ease-in-out infinite; }
@keyframes mqd-puls { 50% { opacity: .35; } }

.mqd-kaart { background: var(--wit); border: 1px solid var(--rand); border-radius: 12px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.mqd-kh { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--rand); min-height: 50px; }
.mqd-kh > div:first-child { flex: 1; min-width: 0; }
.mqd-kh .mqd-h2 { font-size: 13.5px; font-weight: 600; color: var(--inkt); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.mqd-kh p:not(.mqd-h2) { font-size: 12px; color: var(--sub); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd-link { flex: none; font-size: 12px; font-weight: 600; color: var(--staal); white-space: nowrap; }
.mqd-link:hover { text-decoration: underline; }
.mqd-kb { padding: 16px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mqd-kb.is-chart { justify-content: flex-start; padding: 12px 16px 14px; gap: 8px; }
.mqd-leeg { padding: 32px 16px; text-align: center; color: var(--sub); }
.mqd-stapel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.mqd-kpis { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); background: var(--wit); border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; }
.mqd-kpi { padding: 10px 18px 12px; border-left: 1px solid var(--rand); min-width: 0; }
.mqd-kpi:first-child { border-left: 0; }
.mqd-kpi-l, .mqd-kpi-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--sub); }
.mqd-kpi-l { font-weight: 500; }
.mqd-kpi-w { font-size: 24px; font-weight: 400; letter-spacing: -0.035em; color: var(--inkt); line-height: 1.2; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd-kpi-s { margin-top: 1px; }
.mqd-mbar { height: 4px; border-radius: 2px; background: var(--zacht); margin-top: 8px; overflow: hidden; }
.mqd-mbar.is-leeg { background: none; }
.mqd-mbar i { display: block; height: 100%; border-radius: 2px; background: var(--staal); }

/* rasters: schuiven in op de breedte van het paneel, niet van het scherm */
.mqd-g { display: grid; gap: 16px; min-width: 0; }
.mqd-g.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mqd-g.g-ov { grid-template-columns: 1.45fr 1.05fr 1.2fr 1fr; }
.mqd-g.g-11 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mqd-g.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.mqd-g.g-31 { grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); }
.mqd-g.g-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mqd-g.g-2 .is-breed { grid-column: 2 / -1; }

/* ---------- onderdelen ---------- */
.mqd-badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--zacht); color: var(--sub); letter-spacing: 0; }
.mqd-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.mqd-kop .mqd-h1 .mqd-badge { font-size: 12px; }
.b-bezig { background: #e9f0f7; color: var(--staal); }
.b-niet { background: #eef1f4; color: var(--sub); }
.b-hold { background: #f8f0e3; color: #95600f; }
.b-scope { background: #eef3f9; color: #4c6f98; }
.b-scope::before { background: var(--licht); }
.b-gereed { background: #e8f1ec; color: var(--groen); }
.b-rood { background: #f7e8e7; color: var(--rood); }
.b-annul { background: #f2f4f6; color: var(--sub2); }

.mqd-seg { display: inline-flex; padding: 3px; background: var(--zacht); border-radius: 9px; gap: 2px; flex: none; }
.mqd-seg button { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--sub); white-space: nowrap; transition: background-color .15s, color .15s; }
.mqd-seg button:hover { color: var(--inkt); }
.mqd-seg button[aria-pressed="true"] { background: var(--wit); color: var(--inkt); box-shadow: 0 1px 2px rgba(11, 31, 51, .12), 0 0 0 1px rgba(11, 31, 51, .04); }
.mqd-seg em { font-style: normal; color: var(--sub2); margin-left: 4px; }
.mqd-btn { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rand2); background: var(--wit); font-size: 12.5px; font-weight: 500; color: var(--inkt); white-space: nowrap; transition: background-color .15s, border-color .15s; }
.mqd-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.mqd-bar { height: 6px; border-radius: 3px; background: var(--zacht); overflow: hidden; }
.mqd-bar i { display: block; height: 100%; border-radius: 3px; background: var(--staal); }
.mqd-bar.is-warn i { background: var(--oranje); }
.mqd-bar.is-over i { background: var(--rood); }
.mqd-bar.is-gereed i { background: var(--groen); }
.mqd-budget { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mqd-budget .r1 { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--inkt); font-weight: 500; }
.mqd-budget .r1 span:last-child { color: var(--sub); font-weight: 500; }
.mqd-budget .r2 { font-size: 11.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd-vg { display: flex; align-items: center; gap: 8px; }
.mqd-vg .mqd-bar { flex: 1; }
.mqd-vg span { width: 34px; text-align: right; font-size: 12px; color: var(--sub); }
.mqd-rb { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--zacht); color: var(--tekst); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.mqd-rb.is-rood { background: var(--rood); color: #fff !important; }
.mqd-rb.is-oranje { background: var(--oranje); color: #fff !important; }

.mqd-dw { display: flex; align-items: center; gap: 20px; min-width: 0; }
.mqd-donut { position: relative; flex: none; }
.mqd-donut circle { transition: opacity .15s; }
.mqd-donut g circle:hover { opacity: .82; }
.mqd-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.mqd-donut-c b { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; color: var(--inkt); line-height: 1; }
.mqd-donut-c span { font-size: 11px; color: var(--sub); margin-top: 4px; }
.mqd-leg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mqd-leg li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 24px; min-width: 0; }
.mqd-leg .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mqd-leg .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tekst); }
.mqd-leg .v { font-weight: 600; color: var(--inkt); }
.mqd-leg .p { width: 36px; text-align: right; color: var(--sub); }

.mqd-chart { width: 100%; min-width: 0; overflow: hidden; }
.mqd-chart g[data-tip]:hover path, .mqd-chart g[data-tip]:hover rect:not([fill="transparent"]) { opacity: .85; }
.mqd-sw { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--sub); }
.mqd-sw span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mqd-sw i { width: 10px; height: 10px; border-radius: 3px; }
.mqd-kop-r .mqd-sw { gap: 4px 12px; }

.mqd-hb { display: flex; flex-direction: column; gap: 10px; }
.mqd-hb li { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 76px; align-items: center; gap: 12px; font-size: 12.5px; }
.mqd-hb .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tekst); }
.mqd-hb .t { height: 8px; border-radius: 4px; background: var(--zacht); overflow: hidden; }
.mqd-hb .t i { display: block; height: 100%; border-radius: 4px; }
.mqd-hb .v { text-align: right; font-weight: 600; color: var(--inkt); white-space: nowrap; }

/* checkbox en taken */
.mqd-cb { width: 18px; height: 18px; flex: none; border-radius: 5px; border: 1.5px solid #b5c1ce; background: var(--wit); display: grid; place-items: center; color: transparent; transition: background-color .15s, border-color .15s, color .15s; }
.mqd-cb:hover { border-color: var(--staal); }
.mqd-cb[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.mqd-cb svg { stroke-width: 3; }
.mqd-taken li, .mqd-taak { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--rand); min-width: 0; }
.mqd-taken li:last-child { border-bottom: 0; }
.mqd-taken.is-kort li { min-height: 42px; }
.mqd-taak-b { flex: 1; min-width: 0; }
.mqd-taak.is-af .tt { color: var(--sub2); text-decoration: line-through; text-decoration-color: var(--rand2); font-weight: 400; }
.mqd-dl { flex: none; width: 104px; text-align: right; line-height: 1.35; }
.mqd-dl .d1 { display: block; font-size: 12.5px; color: var(--tekst); white-space: nowrap; }
.mqd-dl .d2 { display: block; font-size: 12px; color: var(--sub); white-space: nowrap; }
.mqd-dl.is-bijna .d2 { color: var(--oranje); font-weight: 500; }
.mqd-dl.is-laat .d2 { color: var(--rood); font-weight: 600; }
.mqd-dl.is-cel { width: auto; text-align: left; }
.mqd-nr { flex: none; width: 64px; font-size: 12px; color: var(--sub); }
.mqd-taken.is-kort .mqd-dl { width: 92px; }

/* binnenkomend */
.mqd-feed { height: calc(var(--max) * 50px); overflow: hidden; }
.mqd-feed.is-breed { height: calc(var(--max) * 54px); }
.mqd-fi { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; height: 50px; padding: 0 16px; border-bottom: 1px solid var(--rand); }
.mqd-fi-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--vlak); border: 1px solid var(--rand); display: grid; place-items: center; color: var(--staal); }
.mqd-fi-b { min-width: 0; }
.mqd-fi-r1 { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.mqd-fi-t { display: block; flex: 1; min-width: 0; font-weight: 500; color: var(--inkt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd-fi-m { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; margin-top: 2px; }
.mqd-fi-m .van { color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 48px; flex: 0 100 auto; }
.mqd-fi-m .van::after { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--sub2); margin-left: 8px; vertical-align: middle; }
.mqd-fi-m .mqd-st { flex: 0 1 auto; }
.mqd-st > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mqd-fi-tijd { flex: none; font-size: 12px; color: var(--sub2); }
.mqd-fi.is-nieuw { animation: mqd-feed-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.mqd-fi.is-nieuw .mqd-fi-ic { background: #e9f0f7; border-color: #d3e0ed; }
.mqd-fi.is-klaar .mqd-st { animation: mqd-fade .35s ease both; }
@keyframes mqd-feed-in { from { margin-top: -50px; opacity: 0; } to { margin-top: 0; opacity: 1; } }
@keyframes mqd-fade { from { opacity: 0; transform: translateX(-3px); } to { opacity: 1; transform: none; } }
.mqd-st { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 500; min-width: 0; }
.mqd-st svg { flex: none; }
.mqd-st.is-ok { color: var(--groen); }
.mqd-st.is-ok svg { stroke-width: 2.5; }
.mqd-st.is-bezig { color: var(--staal); }
.mqd-st.is-hand { color: var(--oranje); }
.mqd-spin { width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.75px solid var(--lichter); border-top-color: var(--staal); animation: mqd-draai .8s linear infinite; }
@keyframes mqd-draai { to { transform: rotate(360deg); } }
.mqd-kanaal { display: inline-flex; align-items: center; gap: 6px; color: var(--tekst); white-space: nowrap; }
.mqd-kanaal svg { color: var(--staal); }
.mqd-wacht li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--rand); }
.mqd-wacht li:last-child { border-bottom: 0; }
.mqd-wacht .b { flex: 1; min-width: 0; }
.mqd-bedrag { flex: none; text-align: right; font-weight: 600; color: var(--inkt); font-size: 12.5px; white-space: nowrap; }
.mqd-bedrag em { display: block; font-style: normal; font-weight: 400; color: var(--sub); font-size: 11.5px; }

/* agenda vandaag */
.mqd-dag li { display: flex; align-items: center; gap: 12px; min-height: 34px; padding: 0 16px; border-bottom: 1px solid var(--rand); min-width: 0; }
.mqd-dag li:last-child { border-bottom: 0; }
.mqd-dag .u { width: 38px; flex: none; font-size: 12.5px; font-weight: 500; color: var(--tekst); }
.mqd-dag .b { flex: 1; min-width: 0; padding-left: 12px; }
.mqd-dag .mqd-ty-intern .b { border-left-color: var(--grijs, #c3ccd6); }
.mqd-dag .mqd-ty-storing .b { border-left-color: var(--navy); }
.mqd-dag .is-volgende { background: #f4f7fb; }
.mqd-dag .is-volgende .u { color: var(--navy); font-weight: 600; }

/* tabellen */
.mqd-t { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mqd-t th { height: 36px; padding: 0 12px; font-size: 12px; font-weight: 500; color: var(--sub); background: var(--vlak); border-bottom: 1px solid var(--rand); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqd-t td { height: 48px; padding: 6px 12px; border-bottom: 1px solid var(--rand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.mqd-t th:first-child, .mqd-t td:first-child { padding-left: 16px; }
.mqd-t th:last-child, .mqd-t td:last-child { padding-right: 16px; }
.mqd-t tbody tr:last-child td { border-bottom: 0; }
.mqd-t tbody tr { transition: background-color .12s; }
.mqd-t tbody tr:hover { background: #fafbfc; }
.mqd-t .r { text-align: right; }
.mqd-t .tt.is-norm { font-weight: 400; color: var(--tekst); }
.mqd-t.is-klik tbody tr { cursor: pointer; }
.mqd-t.is-klik td { height: 60px; }
.mqd-t.is-klik tbody tr:hover .mqd-rij { color: var(--staal); }
.mqd-rij { max-width: 100%; }
.mqd-t tr.is-annul .tt, .mqd-t tr.is-annul .tm { color: var(--sub2); }
.mqd-t tr.is-annul .tt { text-decoration: line-through; text-decoration-color: var(--rand2); }
.mqd-wie { display: inline-flex; align-items: center; gap: 8px; }
.mqd-wie i { width: 24px; height: 24px; border-radius: 50%; background: var(--zacht); color: var(--tekst); font-style: normal; font-size: 10px; font-weight: 600; display: grid; place-items: center; flex: none; }
.mqd-t .mqd-budget { padding-right: 4px; }

.mqd-aandacht li { border-bottom: 1px solid var(--rand); }
.mqd-aandacht li:last-child { border-bottom: 0; }
.mqd-aandacht button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 16px; color: var(--sub2); }
.mqd-aandacht button:hover { background: var(--vlak); }
.mqd-aandacht i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mqd-aandacht .b { flex: 1; min-width: 0; }

/* agenda week */
.mqd-wk { --uur: 42px; }
.mqd-wk-kop { display: grid; grid-template-columns: 56px repeat(var(--d), minmax(0, 1fr)); border-bottom: 1px solid var(--rand); }
.mqd-wk-h { display: flex; align-items: baseline; gap: 6px; padding: 12px 8px 10px; font-size: 12px; color: var(--sub); border-left: 1px solid var(--rand); min-width: 0; }
.mqd-wk-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd-wk-h b { font-size: 15px; color: var(--inkt); font-weight: 600; }
.mqd-wk-h.is-vandaag { color: var(--navy); font-weight: 600; }
.mqd-wk-h.is-vandaag b { color: #fff; background: var(--navy); border-radius: 6px; padding: 0 6px; line-height: 22px; font-size: 13px; }
.mqd-wk-body { position: relative; display: grid; grid-template-columns: 56px repeat(var(--d), minmax(0, 1fr)); margin: 8px 0 12px; }
.mqd-wk-u { position: relative; }
.mqd-wk-u span { position: absolute; right: 10px; transform: translateY(-50%); font-size: 11px; color: var(--sub2); }
.mqd-wk-u span:first-child { transform: none; }
.mqd-wk-l { position: absolute; left: 56px; right: 0; top: 0; bottom: 0; pointer-events: none; }
.mqd-wk-l i { position: absolute; left: 0; right: 0; height: 1px; background: #eef1f4; }
.mqd-wk-k { position: relative; border-left: 1px solid var(--rand); }
.mqd-wk-k.is-vandaag { background: rgba(47, 95, 143, .035); }
.mqd-ev { position: absolute; left: 4px; right: 4px; border-radius: 6px; padding: 4px 8px; background: #eaf1f8; overflow: hidden; font-size: 12px; line-height: 1.3; transition: transform .15s; }
.mqd-ev:hover { transform: translateY(-1px); }
.mqd-ev .tt { font-size: 12px; }
.mqd-ev .tm { font-size: 11.5px; }
.mqd-ev.mqd-ty-intern { background: var(--vlak); border-left-color: #b5c1ce; }
.mqd-ev.mqd-ty-intern .tt { color: var(--tekst); font-weight: 500; }
.mqd-ev.mqd-ty-storing { background: var(--navy); border-left-color: var(--navy); }
.mqd-ev.mqd-ty-storing .tt { color: #fff; }
.mqd-ev.mqd-ty-storing .tm { color: #c6d5e6; }
.mqd-nu { position: absolute; left: -1px; right: 0; height: 2px; background: var(--navy); z-index: 2; }
.mqd-nu::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }

/* planning */
.mqd-gantt { --naam: 232px; position: relative; }
.mqd-gk { display: grid; grid-template-columns: var(--naam) minmax(0, 1fr); border-bottom: 1px solid var(--rand); background: var(--vlak); }
.mqd-gn { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-width: 0; border-right: 1px solid var(--rand); }
.mqd-gn.is-kop { height: 36px; font-size: 12px; font-weight: 500; color: var(--sub); }
.mqd-gn i { width: 30px; height: 30px; border-radius: 50%; background: var(--zacht); color: var(--navy); font-style: normal; font-size: 11px; font-weight: 600; display: grid; place-items: center; flex: none; }
.mqd-gn .b { flex: 1; min-width: 0; }
.mqd-bez { margin-left: auto; flex: none; width: 40px; text-align: right; font-size: 12px; font-weight: 600; color: var(--tekst); }
.mqd-gn.is-kop .mqd-bez { font-weight: 500; color: var(--sub); }
.mqd-bez.is-vol { color: var(--oranje); }
.mqd-gd { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mqd-gd span { padding: 0 10px; line-height: 36px; font-size: 12px; font-weight: 500; color: var(--sub); border-left: 1px solid var(--rand); }
.mqd-gd span:first-child { border-left: 0; }
.mqd-gd span.is-vandaag { color: var(--navy); font-weight: 600; }
.mqd-gbody { position: relative; }
.mqd-gr { display: grid; grid-template-columns: var(--naam) minmax(0, 1fr); height: 58px; border-bottom: 1px solid var(--rand); }
.mqd-gr:last-of-type { border-bottom: 0; }
.mqd-gt { position: relative; z-index: 1; }
.mqd-gb { position: absolute; top: 8px; bottom: 8px; border-radius: 6px; padding: 0 10px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; font-size: 12px; line-height: 1.3; transition: transform .15s; }
.mqd-gb:hover { transform: translateY(-1px); }
.mqd-gb .tt { font-size: 12px; }
.mqd-gb .tm { font-size: 11.5px; margin-top: 0; }
.mqd-gb.mqd-ty-proj { background: var(--staal); }
.mqd-gb.mqd-ty-proj .tt { color: #fff; } .mqd-gb.mqd-ty-proj .tm { color: #d6e2ef; }
.mqd-gb.mqd-ty-ond { background: var(--lichter); }
.mqd-gb.mqd-ty-ond .tt { color: var(--navy); } .mqd-gb.mqd-ty-ond .tm { color: #3f5f80; }
.mqd-gb.mqd-ty-storing { background: var(--navy); }
.mqd-gb.mqd-ty-storing .tt { color: #fff; } .mqd-gb.mqd-ty-storing .tm { color: #c6d5e6; }
.mqd-gb.mqd-ty-vrij { background: var(--vlak); border: 1px dashed var(--rand2); }
.mqd-gb.mqd-ty-vrij .tt { color: var(--sub); font-weight: 500; }
.mqd-graster { position: absolute; top: 0; bottom: 0; left: var(--naam); right: 0; pointer-events: none; }
.mqd-graster i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rand); }
.mqd-graster b { position: absolute; top: 0; bottom: 0; background: rgba(47, 95, 143, .045); }
.mqd-graster u { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--navy); z-index: 2; }

/* tooltip en melding */
.mqd-tip { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; max-width: 280px; padding: 6px 10px; border-radius: 6px; background: var(--inkt); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4; opacity: 0; transition: opacity .12s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mqd-tip.is-aan { opacity: 1; }
.mqd-toast { position: absolute; right: 20px; bottom: 20px; z-index: 21; max-width: min(420px, calc(100% - 40px)); padding: 10px 14px; border-radius: 10px; background: var(--inkt); color: #fff; font-size: 12.5px; font-weight: 500; box-shadow: 0 12px 32px -12px rgba(11, 31, 51, .5); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mqd-toast.is-aan { opacity: 1; transform: none; }

/* ---------- compact (telefoon) ---------- */
.mqd-compact { display: none; }

/* ---------- inschuiven op de breedte van het hoofdvak ---------- */
@container mqm (max-width: 1040px) {
  .mqd-g.g-ov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mqd-g.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mqd-g.g-2 .is-breed { grid-column: 1 / -1; }
  .mqd .c-lg { display: none; }
}
@container mqm (max-width: 860px) {
  .mqd-g.g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mqd-g.g-3 > :last-child { grid-column: 1 / -1; }
  .mqd-g.g-21, .mqd-g.g-31, .mqd-g.g-11 { grid-template-columns: minmax(0, 1fr); }
  .mqd-stapel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mqd .c-md { display: none; }
  .mqd-kpis { grid-template-columns: repeat(min(var(--n), 3), minmax(0, 1fr)); }
  .mqd-kpis .mqd-kpi:nth-child(n + 4) { display: none; }
  .mqd-kop { flex-wrap: wrap; }
  .mqd-gantt { --naam: 168px; }
  .mqd-gn .b .tm, .mqd-gn i { display: none; }
}

/* zijbalk inklappen tot iconen onder 1100px paneelbreedte */
@container mqd (max-width: 1100px) {
  .mqd-app { grid-template-columns: 64px minmax(0, 1fr); }
  .mqd-merk { width: auto; padding-left: 20px; padding-right: 8px; }
  .mqd-side { padding: 12px 10px; align-items: stretch; }
  .mqd-nb { justify-content: center; padding: 0; gap: 0; }
  .mqd-nb .l, .mqd-koppel { display: none; }
  .mqd-nb .mqd-tel { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
  .mqd-nb[aria-current="page"]::before { left: -10px; }
}
@container mqd (max-width: 820px) {
  .mqd-datum { display: none; }
}
/* telefoon: compacte weergave met KPI's en één lijst */
@container mqd (max-width: 700px) {
  .mqd-app { display: none; }
  .mqd-compact { display: block; background: var(--vlak); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(11, 31, 51, .08), 0 20px 48px -24px rgba(11, 31, 51, .42); }
  .mqd-c-top { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; background: var(--wit); border-bottom: 1px solid var(--rand); }
  .mqd-c-top .mqd-merk { width: auto; padding: 0; font-size: 19px; }
  .mqd-c-kop { padding: 16px 16px 12px; }
  .mqd-c-kop .mqd-h1 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--inkt); }
  .mqd-c-kop p { color: var(--sub); margin-top: 2px; }
  .mqd-c-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 16px 12px; background: var(--wit); border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; }
  .mqd-c-kpis > div { padding: 12px 14px; min-width: 0; border-right: 1px solid var(--rand); border-bottom: 1px solid var(--rand); }
  .mqd-c-kpis > div:nth-child(2n) { border-right: 0; }
  .mqd-c-kpis > div:nth-child(n + 3) { border-bottom: 0; }
  .mqd-c-kpis p, .mqd-c-kpis span { display: block; font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mqd-c-kpis span span { display: inline; }
  .mqd-c-kpis b { display: block; font-size: 22px; font-weight: 400; letter-spacing: -0.03em; color: var(--inkt); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mqd-compact > .mqd-kaart { margin: 0 16px 16px; }
  .mqd-compact .mqd-fi { padding: 0 12px; gap: 10px; }
  .mqd-compact .mqd-fi-m .van { display: none; }
  .mqd-compact .mqd-fi-m .mqd-st { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .mqd *, .mqd *::before, .mqd *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .mqd .mqd-spin { animation: mqd-draai 1.6s linear infinite !important; }
}

/* overzicht: agenda compacter zodat alles binnen het paneel past */
.mqd-dag .tm { display: none; }

/* ---------- overzicht (rustig) ---------- */
.mqd-ov { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; min-width: 0; }
.mqd-ov-l, .mqd-ov-r { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mqd-ov .mqd-kh { min-height: 54px; padding: 8px 12px 8px 20px; }
.mqd-ov-r .mqd-kh { padding-right: 20px; }
.mqd-ov .mqd-kh .mqd-seg { flex: none; }
.mqd-fi.is-breed { grid-template-columns: 32px minmax(0, 1fr) auto 40px; gap: 16px; height: 54px; padding: 0 20px; }
.mqd-fi.is-breed .mqd-fi-ic { width: 32px; height: 32px; }
.mqd-fi.is-breed .mqd-fi-t { font-size: 13px; }
.mqd-fi.is-breed .mqd-st { justify-self: end; max-width: 220px; }
.mqd-fi.is-breed .mqd-fi-tijd { text-align: right; }
.mqd-fi.is-breed:last-child { border-bottom: 0; }
.mqd-fi.is-breed.is-nieuw { animation-name: mqd-feed-in-b; }
@keyframes mqd-feed-in-b { from { margin-top: -54px; opacity: 0; } to { margin-top: 0; opacity: 1; } }
.mqd-fi.is-breed .van::after { display: none; }
.mqd-ov-donut { flex-direction: row; align-items: center; gap: 24px; padding: 10px 20px; }
.mqd-ov-donut .t { width: 150px; flex: none; }
.mqd-ov-donut .mqd-h2 { font-size: 13.5px; font-weight: 600; color: var(--inkt); letter-spacing: -0.01em; }
.mqd-ov-donut p:not(.mqd-h2) { font-size: 12px; color: var(--sub); margin: 2px 0 10px; }
.mqd-ov-donut .mqd-leg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; }
.mqd-ov .mqd-dag li { min-height: 42px; padding: 0 20px; }
.mqd-ov .mqd-dag .pl { flex: none; font-size: 12px; color: var(--sub); white-space: nowrap; }
.mqd-ov .mqd-taken.is-ov li { min-height: 52px; padding: 0 20px; }
.mqd-ov .mqd-taken.is-ov .mqd-dl { width: auto; }
@container mqm (max-width: 980px) {
  .mqd-ov { grid-template-columns: minmax(0, 1fr); }
  .mqd-ov-r { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container mqm (max-width: 700px) {
  .mqd-ov .mqd-kh { flex-wrap: wrap; }
  .mqd-ov-r { grid-template-columns: minmax(0, 1fr); }
  .mqd-ov-donut { flex-wrap: wrap; }
}

/* website: extra tabbladen onderaan */
.mqd-inst { margin-top: auto; }
.mqd-inst + .mqd-koppel { margin-top: 0; }

/* website: teksten in de modules lopen door naar een tweede regel in plaats van af te kappen */
.mqd .mqd-main :is(.tt, .tm, .mqd-kop p:not(.mqd-h1), .mqd-kh p:not(.mqd-h2), .mqd-kpi-l, .mqd-kpi-s, .mqd-budget .r2, .mqd-leg .n, .mqd-hb .n, .mqd-fi-t, .mqd-fi-m .van, .mqd-st, .mqd-st > span, .mqd-wk-h span) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
.mqd .mqd-main .mqd-t td { white-space: normal; overflow: visible; text-overflow: clip; height: auto; padding-top: 10px; padding-bottom: 10px; line-height: 1.35; }
.mqd .mqd-main .mqd-t td:first-child { white-space: nowrap; }
.mqd .mqd-main .mqd-st { align-items: flex-start; }
.mqd .mqd-main .mqd-st > svg { margin-top: 2px; flex: none; }
/* planning en agenda: geen woorden midden in breken; kort blok toont alleen de titel */
.mqd .mqd-main :is(.mqd-gb, .mqd-ev) .tt { overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
.mqd .mqd-main :is(.mqd-gb, .mqd-ev) .tm { overflow-wrap: normal; word-break: normal; hyphens: none; }
.mqd .mqd-main .mqd-gb { container-type: inline-size; padding: 0 8px; }
.mqd .mqd-main .mqd-gb .tt { font-size: 11.5px; line-height: 1.2; }
@container (max-width: 120px) { .mqd .mqd-main .mqd-gb .tm { display: none; } }
.mqd .mqd-main .mqd-ev .tt { line-height: 1.25; }
