/* SYSTJEM 11.15.0 — doelen in dossier, mobiele afwerking en veilige formulieren */
.student-goals-dossier{
  margin-top:18px;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line,#dedbd2);
  background:var(--surface,#fff);
}
.student-goals-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  padding:22px 24px 16px;
  background:linear-gradient(180deg,#f8f5ed 0%,#fff 100%);
}
.student-goals-head h3{margin:4px 0 6px;font-size:clamp(21px,2vw,28px)}
.student-goals-head p{margin:0;max-width:720px;color:var(--muted,#6d746d)}
.student-goals-score{
  min-width:104px;
  padding:13px 15px;
  border:1px solid #d6dfcf;
  border-radius:16px;
  background:#edf5e9;
  text-align:center;
}
.student-goals-score strong{display:block;font-size:24px;line-height:1;color:#25482b}
.student-goals-score span{display:block;margin-top:5px;font-size:12px;font-weight:800;color:#58705b;text-transform:uppercase;letter-spacing:.06em}
.student-goals-progress{height:7px;margin:0 24px 18px;border-radius:999px;overflow:hidden;background:#e8e6df}
.student-goals-progress i{display:block;height:100%;border-radius:inherit;background:#315c38;transition:width .25s ease}
.student-goals-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:14px;
  padding:0 24px 16px;
}
.student-goal-lesson-picker{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0}
.student-goal-lesson-picker label{margin:0;font-weight:850;color:#333a33}
.student-goal-lesson-picker select{min-width:150px;margin:0}
.student-goals-actions{display:flex;gap:8px;flex-wrap:wrap}
.student-goals-bulk{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  min-height:58px;
  padding:10px 24px;
  border-top:1px solid var(--line,#dedbd2);
  border-bottom:1px solid var(--line,#dedbd2);
  background:#f5f2ea;
}
.student-goals-bulk span{margin-right:auto;color:#606760}
.student-goals-bulk button:disabled{opacity:.5;cursor:not-allowed}
.student-goals-list{display:grid}
.student-goal-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  padding:16px 24px;
  border-bottom:1px solid var(--line,#e3e0d7);
  transition:background .15s ease;
}
.student-goal-row:last-child{border-bottom:0}
.student-goal-row.is-done{background:#f0f7ed}
.student-goal-row.is-saving{opacity:.65;pointer-events:none}
.student-goal-bulk-check{display:grid;place-items:start center;margin:2px 0 0;cursor:pointer}
.student-goal-bulk-check input{position:absolute;opacity:0;pointer-events:none}
.student-goal-bulk-check span{
  display:block;width:21px;height:21px;border:2px solid #9da49d;border-radius:7px;background:#fff;
}
.student-goal-bulk-check input:checked+span{border-color:#315c38;background:#315c38;box-shadow:inset 0 0 0 4px #fff}
.student-goal-content{min-width:0}
.student-goal-toggle{margin:0}
.student-goal-toggle label{display:flex;align-items:flex-start;gap:12px;margin:0;cursor:pointer}
.student-goal-toggle input{position:absolute;opacity:0;pointer-events:none}
.goal-checkmark{
  flex:0 0 27px;width:27px;height:27px;border:2px solid #788078;border-radius:9px;background:#fff;position:relative;margin-top:0;
}
.student-goal-toggle input:checked+.goal-checkmark{border-color:#315c38;background:#315c38}
.student-goal-toggle input:checked+.goal-checkmark:after{content:"";position:absolute;left:8px;top:4px;width:6px;height:12px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}
.student-goal-toggle strong{display:block;font-size:16px;line-height:1.35;color:#252a25}
.student-goal-toggle small{display:block;margin-top:4px;color:#737973}
.student-goal-row.is-done .student-goal-toggle strong{text-decoration:line-through;text-decoration-thickness:1px;color:#536053}
.student-goal-comment{margin:10px 0 0 39px;padding:10px 12px;border-left:3px solid #c6ad6a;border-radius:0 10px 10px 0;background:#fff8df;color:#4e493c}
.student-goal-comment-editor{margin:9px 0 0 39px}
.student-goal-comment-editor summary{cursor:pointer;font-weight:750;color:#49634d;font-size:13px}
.student-goal-comment-editor form{margin-top:9px;padding:12px;border:1px solid var(--line,#dedbd2);border-radius:12px;background:#fff}
.student-goal-comment-editor textarea{min-height:86px;margin:0 0 9px}
.student-goal-delete{margin:9px 0 0 39px}
.student-goal-delete button{border:0;background:none;padding:0;color:#9c3f37;text-decoration:underline;cursor:pointer;font:inherit;font-size:13px}
.student-goals-empty{display:grid;gap:5px;padding:28px 24px;text-align:center;color:#687068}
.student-goal-add{margin:16px 24px;border:1px dashed #b9b7ad;border-radius:14px;background:#fbfaf6}
.student-goal-add summary{padding:14px 16px;cursor:pointer;font-weight:850;color:#334e36}
.student-goal-add form{padding:0 16px 16px}
.student-goal-add textarea{min-height:85px}
.student-goals-footer{
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 24px 22px;color:#717771;font-size:13px;
}
.student-goals-dossier .goal-alert{margin:0 24px 14px}

/* Dossierbreed: voorkom dat lange links of teksten de iPhone-breedte openbreken. */
.student-dossier,.student-panel,.student-goal-content{overflow-wrap:anywhere}
.student-dossier input,.student-dossier select,.student-dossier textarea,.student-dossier button{font-size:16px}
.student-dossier .btn,.student-dossier button{min-height:44px}

@media(max-width:760px){
  .student-goals-dossier{margin-left:-2px;margin-right:-2px;border-radius:16px}
  .student-goals-head{padding:18px 16px 14px;gap:12px}
  .student-goals-head p{font-size:14px}
  .student-goals-score{min-width:82px;padding:11px 9px}
  .student-goals-score strong{font-size:20px}
  .student-goals-progress{margin:0 16px 16px}
  .student-goals-toolbar{align-items:stretch;flex-direction:column;padding:0 16px 14px}
  .student-goal-lesson-picker{display:grid;grid-template-columns:1fr;gap:6px;width:100%}
  .student-goal-lesson-picker select{width:100%;min-height:48px}
  .student-goals-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .student-goals-actions .btn{width:100%;padding-left:8px;padding-right:8px}
  .student-goals-bulk{position:sticky;bottom:max(0px,env(safe-area-inset-bottom));z-index:25;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 22px rgba(24,36,25,.12)}
  .student-goals-bulk span{flex:1 0 100%;margin:0}
  .student-goals-bulk .btn{flex:1;min-width:130px}
  .student-goal-row{grid-template-columns:28px minmax(0,1fr);padding:15px 14px;gap:8px}
  .student-goal-bulk-check span{width:20px;height:20px}
  .student-goal-toggle label{gap:10px}
  .goal-checkmark{flex-basis:28px;width:28px;height:28px}
  .student-goal-toggle strong{font-size:15px}
  .student-goal-comment,.student-goal-comment-editor,.student-goal-delete{margin-left:38px}
  .student-goal-add{margin:14px}
  .student-goals-footer{padding:14px 16px 20px;align-items:stretch;flex-direction:column}
  .student-goals-footer .btn{width:100%}
}

@media(min-width:761px) and (max-width:1100px){
  .student-goals-dossier{grid-column:1/-1}
  .student-goals-toolbar{align-items:flex-end}
}

@media(prefers-reduced-motion:reduce){
  .student-goals-progress i,.student-goal-row{transition:none}
}

/* Sprint 14 — lesaanvragen duidelijk zichtbaar */
.dashboard-request-alert{
  margin:0 0 18px;
  padding:20px 22px;
  border:1px solid #d9b85f;
  border-radius:20px;
  background:linear-gradient(135deg,#fff9e7 0%,#fffdf6 100%);
  box-shadow:0 12px 30px rgba(74,55,12,.08);
}
.dashboard-request-alert-head{display:flex;justify-content:space-between;align-items:center;gap:18px}
.dashboard-request-alert h2{margin:3px 0 4px;font-size:clamp(20px,2.2vw,29px);color:#433512}
.dashboard-request-alert p{margin:0;color:#6b5a2e}
.dashboard-request-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.dashboard-request-preview article{display:flex;justify-content:space-between;gap:10px;min-width:0;padding:12px 13px;border:1px solid rgba(150,116,25,.2);border-radius:13px;background:rgba(255,255,255,.78)}
.dashboard-request-preview strong,.dashboard-request-preview span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-request-preview span,.dashboard-request-preview small{font-size:12px;color:#74653e}
.communication-tab-count{display:inline-grid;place-items:center;min-width:23px;height:23px;margin-left:6px;padding:0 6px;border-radius:999px;background:#c99416;color:#fff;font-size:12px;font-weight:900}
.communication-metrics article.needs-action,.request-link-card.has-requests{border-color:#d5ad43;background:linear-gradient(180deg,#fff8df,#fff)}
.request-center{display:grid;gap:15px}
.request-center-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px;border:1px solid #d8d5cb;border-radius:19px;background:#fff}
.request-center-head h3{margin:4px 0 6px;font-size:clamp(22px,2.2vw,30px)}
.request-center-head p{margin:0;color:var(--muted,#697169)}
.request-center-count{flex:0 0 auto;padding:9px 13px;border-radius:999px;background:#f4e5b7;color:#604a0f;font-weight:900}
.request-list{display:grid;gap:12px}
.request-card{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:18px;align-items:start;padding:18px 20px;border:1px solid #dfdcd2;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(31,42,32,.04)}
.request-card-status{display:grid;gap:8px;justify-items:start}
.request-card-status small{color:#777d77}
.request-card-main{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(270px,1.25fr);gap:20px;min-width:0}
.request-card-main h4{margin:4px 0 5px;font-size:20px}
.request-time{margin:0;color:#3d493f;font-weight:750}
.request-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0}
.request-card dl div{min-width:0}
.request-card dt{font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:850;color:#7b817b}
.request-card dd{margin:3px 0 0;overflow-wrap:anywhere;color:#303730}
.request-card-actions{display:grid;gap:8px;min-width:150px}
.request-card-actions form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.request-card-actions .btn{width:100%;min-height:44px;display:grid;place-items:center;text-align:center}
.request-empty{display:grid;justify-items:start;gap:7px;padding:22px}
.request-empty p{margin:0 0 5px;color:var(--muted,#697169)}

/* Sprint 15 — e-mailinstellingen en timing */
.mail-timing-card hr{border:0;border-top:1px solid #ddd9cf;margin:17px 0}
.mail-timing-card input[type=number]{max-width:180px}
.mail-timing-card [data-reminder-fields][aria-disabled="true"]{opacity:.5;pointer-events:none}
.communication-setup .setting-card .check-line{min-height:44px;display:flex;align-items:center;gap:10px}
.communication-setup .setting-card .check-line input{flex:0 0 auto}

@media(max-width:980px){
  .dashboard-request-preview{grid-template-columns:1fr}
  .request-card{grid-template-columns:100px minmax(0,1fr)}
  .request-card-actions{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(150px,.35fr)}
  .request-card-actions form{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .dashboard-request-alert{padding:17px 15px;border-radius:16px}
  .dashboard-request-alert-head,.request-center-head{align-items:stretch;flex-direction:column}
  .dashboard-request-alert-head .btn{width:100%;min-height:48px}
  .dashboard-request-preview article{align-items:flex-start}
  .request-center-head{padding:17px 15px;border-radius:16px}
  .request-center-count{align-self:flex-start}
  .request-card{grid-template-columns:1fr;gap:13px;padding:16px 14px;border-radius:16px}
  .request-card-status{display:flex;justify-content:space-between;align-items:center}
  .request-card-main{grid-template-columns:1fr;gap:13px}
  .request-card dl{grid-template-columns:1fr}
  .request-card-actions{grid-column:auto;grid-template-columns:1fr}
  .request-card-actions form{grid-template-columns:1fr 1fr}
  .request-card-actions .btn{min-height:48px}
  .mail-timing-card input[type=number]{max-width:none;width:100%}
}
@media(max-width:410px){
  .request-card-actions form{grid-template-columns:1fr}
}
