/* EetDoel klant-app: gedeelde shell (onderbalk, kop, account). Volgt eetdoel_brand.css. */
:root{
  --ed-dark:#0F6B3A;--ed-mid:#19864f;--ed-fresh:#8CC63F;--ed-fresh-text:#347A2A;--ed-soft:#DCEFD0;--ed-mint:#EEF7EA;
  --ed-salmon:#F6A27A;--ed-salmon-soft:#FFF1EB;--ed-yellow:#E8C15A;--ed-yellow-soft:#FFF5E2;--ed-blue:#77C7EA;--ed-blue-soft:#EEF8FC;
  --ed-dev:#E07A2F;--ed-dev-soft:#FDEDE1;--ed-dev-line:#E9A06B;--ed-dev-text:#9A4510;
  --ed-off:#F8FAF6;--ed-ink:#1F2A22;--ed-muted:#65736b;--ed-line:#DDE8E1;--ed-line-2:#CFDED5;--ed-deep:#103925;
  --ed-font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --ed-display:"Space Grotesk",Inter,ui-sans-serif,sans-serif;
  --ed-grad:#0F6B3A;
  --ed-shadow:0 1px 2px rgba(15,70,43,.05);
  --app-nav-h:66px;
  --app-max:600px;      /* zelfde inhoudsbreedte op alle klantpagina's */
  --app-gutter:16px;    /* zelfde zijmarge */
  --app-gap:14px;       /* zelfde ruimte tussen blokken */
  --app-radius:8px;     /* kaarten (stijl B: hoekig) */
  --app-radius-sm:8px;  /* lijstkaarten */
  --app-radius-btn:6px; /* knoppen */
  --app-radius-chip:4px;
}
html:has(body.app-shell){overflow-x:hidden;overflow-x:clip}
body.app-shell{overflow-x:hidden;overflow-x:clip}
body.app-shell *,body.app-shell *::before,body.app-shell *::after{box-sizing:border-box}
body.app-shell img,body.app-shell svg{max-width:100%}
.app-main{width:100%;max-width:var(--app-max);margin:0 auto;padding:calc(18px + env(safe-area-inset-top)) var(--app-gutter) 24px;display:flex;flex-direction:column;gap:var(--app-gap);min-width:0}
.app-main>*{min-width:0}
@media (min-width:700px){.app-main{padding-top:32px}}
/* Datumvelden: Safari (iOS) geeft ze anders een vaste minimale breedte */
body.app-shell input[type=date]{-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;max-width:100%;text-align:left}
body.app-shell input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0}
body.app-shell input[type=date]::-webkit-datetime-edit{padding:0}
body.app-shell{margin:0;font-family:var(--ed-font);color:var(--ed-ink);background:var(--ed-off);-webkit-font-smoothing:antialiased;padding-bottom:calc(var(--app-nav-h) + env(safe-area-inset-bottom) + 24px)}
body.app-shell :focus-visible{outline:3px solid rgba(140,198,63,.6);outline-offset:2px}

/* Kop */
.app-head{display:flex;align-items:center;gap:10px}
.app-head-mark{width:38px;height:38px;border-radius:50%;box-shadow:0 5px 14px rgba(15,107,58,.10);flex-shrink:0}
.app-head-text{flex:1;min-width:0}
.app-eyebrow{display:block;font-size:12px;font-weight:700;color:var(--ed-fresh-text);letter-spacing:.1em;text-transform:uppercase}
.app-head{min-height:48px}
.app-head h1{margin:0;font-size:26px;font-weight:700;letter-spacing:-.04em;line-height:1.15;color:var(--ed-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-eyebrow{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:400px){.app-head h1{font-size:23px}.app-head{gap:8px}.app-head-actions{gap:5px}}
.app-head-actions{display:flex;gap:6px;align-items:center}
.app-icon-btn{width:44px;height:44px;border-radius:8px;border:1px solid var(--ed-line);background:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.app-icon-btn svg{width:18px;height:18px;fill:none;stroke:var(--ed-dark);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.app-icon-btn:disabled{opacity:.35;cursor:default}

/* Account */
.app-profile{position:relative}
.app-profile summary{list-style:none;width:44px;height:44px;border-radius:8px;border:1px solid var(--ed-line);background:#fff;color:var(--ed-dark);display:grid;place-items:center;font-weight:700;font-size:14px;cursor:pointer;text-transform:uppercase}
.app-profile summary::-webkit-details-marker{display:none}
.app-profile[open] summary{background:var(--ed-mint);border-color:#B9D2C2}
.app-profile-menu{position:absolute;right:0;top:52px;z-index:70;min-width:220px;background:#fff;border:1px solid var(--ed-line);border-radius:8px;padding:14px;box-shadow:0 18px 40px rgba(15,70,43,.16);display:flex;flex-direction:column;gap:4px}
.app-profile-menu strong{font-size:15px;font-weight:700}
.app-profile-menu span{font-size:12px;color:var(--ed-muted);font-weight:600;overflow-wrap:anywhere}
.app-profile-menu form{margin:8px 0 0}
.app-profile-menu button{width:100%;min-height:44px;border-radius:6px;border:1px solid #CBDED3;background:#fff;color:var(--ed-dark);font:900 14px var(--ed-font);cursor:pointer}
.app-profile-menu button:hover{background:#F0F7ED}

/* Onderbalk: altijd zichtbaar */
.app-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--ed-line);padding:7px max(6px,calc(50% - 300px)) calc(8px + env(safe-area-inset-bottom));min-height:var(--app-nav-h);box-sizing:border-box}
.app-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;font:700 11px var(--ed-font);color:var(--ed-muted);text-decoration:none;letter-spacing:0}
.app-nav a.is-active{color:var(--ed-dark);font-weight:700}
.app-nav-icon{width:52px;height:28px;border-radius:6px;display:grid;place-items:center;transition:background .2s}
.app-nav a.is-active .app-nav-icon{background:var(--ed-mint)}
.app-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.app-nav a:hover{color:var(--ed-dark)}
@media print{.app-nav,.app-profile{display:none!important}body.app-shell{padding-bottom:0}}
@media (prefers-reduced-motion:reduce){.app-nav-icon{transition:none}}

/* ---------------- Stijl B: hoekig, Space Grotesk + Inter ---------------- */
body.app-shell{font-family:var(--ed-font);background:#F6F8F5}
.app-head h1,body.app-shell h1,body.app-shell h2,body.app-shell h3{font-family:var(--ed-display);letter-spacing:-.02em}
.app-head h1{font-size:25px;font-weight:700}
.app-eyebrow{font-family:var(--ed-font);font-size:11px;font-weight:600;letter-spacing:.08em}
.app-head-mark{width:34px;height:34px;box-shadow:none}
.app-icon-btn,.app-profile summary{width:40px;height:40px;border-radius:var(--app-radius-btn)}
.app-profile summary{font-family:var(--ed-display);font-weight:700}
.app-profile-menu{top:48px;border-radius:var(--app-radius);box-shadow:0 12px 28px rgba(15,70,43,.14)}
.app-profile-menu button{border-radius:var(--app-radius-btn);font-family:var(--ed-font);font-weight:700}
/* Menu onderaan: actieve tab met streep bovenaan */
.app-nav{padding-top:0;-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff}
.app-nav a{border-top:3px solid transparent;font-family:var(--ed-font);font-weight:500;min-height:56px}
.app-nav a.is-active{border-top-color:var(--ed-dark);font-weight:700}
.app-nav-icon{width:auto;height:24px;border-radius:0;background:none!important}
.app-nav svg{stroke-linecap:square;stroke-linejoin:miter}
@media (max-width:400px){.app-head h1{font-size:23px}}
.app-profile-link{display:flex;align-items:center;height:40px;padding:0 4px;color:var(--ed-ink);font:600 13px var(--ed-font);text-decoration:none;border-top:1px solid var(--ed-line)}
.app-profile-link:hover{color:var(--ed-dark)}

/* iOS: geen automatisch inzoomen bij invoervelden (tekst minimaal 16px op de telefoon) */
@media (max-width:700px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Onderkant: precies genoeg ruimte voor het vaste menu, niet verder doorscrollen */
html,body.app-shell{overscroll-behavior-y:none}
body.app-shell{padding-bottom:calc(var(--app-nav-h) + env(safe-area-inset-bottom) + 12px)!important}
body.app-shell .app-main,body.app-shell .td-main.app-main{padding-bottom:12px!important}
body.app-shell .td-source{margin-bottom:0}

/* PRO (testschakelaar) */
.pro-only{display:none!important}
body.is-pro .pro-only{display:revert!important}
.app-profile summary{position:relative}
body.is-pro .app-pro-badge{display:flex!important;position:absolute;right:-6px;bottom:-6px;height:16px;padding:0 4px;border-radius:3px;background:#8CC63F;color:#103925;font:700 9px/1 var(--ed-font);letter-spacing:.04em;align-items:center}
.app-profile-menu{min-width:248px}
.app-pro{border-top:1px solid var(--ed-line);margin-top:10px;padding-top:10px;display:flex;flex-direction:column;gap:6px}
.app-profile-menu .app-pro-switch{min-height:32px;border:0;padding:0;background:none;display:flex;align-items:center;gap:10px;color:var(--ed-ink,#1F2A22);font:700 13px var(--ed-font);text-align:left}
.app-profile-menu .app-pro-switch:hover{background:none}
.app-pro-tag{height:20px;padding:0 6px;border-radius:3px;background:#8CC63F;color:#103925;font:700 10px/20px var(--ed-font);letter-spacing:.04em}
.app-pro-label{flex:1}
.app-pro-switch i{width:44px;height:26px;border-radius:13px;background:#CFDDD4;position:relative;flex-shrink:0;transition:background .15s}
.app-pro-switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.app-pro-switch[aria-checked="true"] i{background:var(--ed-dark)}
.app-pro-switch[aria-checked="true"] i::after{left:21px}
.app-pro-switch:focus-visible{outline:2px solid var(--ed-fresh);outline-offset:3px}
.app-pro small{font-size:11.5px;line-height:1.45;color:var(--ed-muted);font-weight:500}

/* Mijn metingen in het accountmenu */
body.is-pro .app-profile-link.app-profile-pro{display:flex!important;gap:8px}
.app-profile-menu .app-profile-pro .app-pro-tag{font-size:9px;line-height:16px;height:16px;padding:0 4px;color:#103925}
