/* Min Familiesag – Del 16R-3R v1.0.3: fleksibel aktindsigtsskabelon */
.mfs-report-hub{max-width:1180px;margin:0 auto;padding:1.25rem}
.mfs-report-hub__intro{max-width:780px;color:#4b5563}
.mfs-report-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.5rem 0 2rem}
.mfs-report-template-card{display:flex;flex-direction:column;gap:.7rem;padding:1.25rem;border:1px solid #d8e0e8;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(25,45,70,.06)}
.mfs-report-template-card h2,.mfs-report-template-card h3{margin:0;color:#18324b}
.mfs-report-template-card p{margin:0;color:#536577;line-height:1.55}
.mfs-report-template-card__tag{align-self:flex-start;padding:.25rem .65rem;border-radius:999px;background:#e7f4f2;color:#116d66;font-size:.82rem;font-weight:700}
.mfs-report-template-card__actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:auto;padding-top:.35rem}
.mfs-report-template-card__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.65rem .9rem;border-radius:10px;background:#176f68;color:#fff;text-decoration:none;font-weight:700}
.mfs-report-template-card__actions a.secondary{background:#eef3f6;color:#18324b}
.mfs-template-page{max-width:1040px;margin:0 auto;padding:1.25rem}
.mfs-template-breadcrumb{display:flex;gap:.45rem;align-items:center;margin-bottom:1rem;font-size:.92rem}.mfs-template-breadcrumb a{color:#176f68}
.mfs-template-hero{display:flex;justify-content:space-between;gap:2rem;align-items:center;padding:1.35rem;border-radius:20px;background:linear-gradient(135deg,#eff8f7,#f7fafc);border:1px solid #d9e7e5}.mfs-template-hero h1{margin:.15rem 0 .55rem;color:#18324b}.mfs-template-hero p{margin:0;max-width:720px;line-height:1.6}.mfs-template-hero img{width:min(210px,28vw);height:auto}
.mfs-template-eyebrow{font-size:.83rem!important;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#176f68}
.mfs-template-notice{margin:1rem 0;padding:1rem 1.1rem;border-left:4px solid #176f68;background:#f4f8f8;border-radius:10px}.mfs-template-notice p{margin:.3rem 0 0}
.mfs-template-form{display:grid;gap:1rem}.mfs-template-form fieldset{border:1px solid #d8e0e8;border-radius:16px;padding:1.1rem;background:#fff}.mfs-template-form legend{padding:0 .4rem;font-size:1.06rem;font-weight:800;color:#18324b}.mfs-template-form label{display:grid;gap:.38rem;font-weight:650;color:#263b50}.mfs-template-form label small{font-weight:400;color:#66788a}.mfs-template-form input,.mfs-template-form select,.mfs-template-form textarea{width:100%;box-sizing:border-box;border:1px solid #bbc7d3;border-radius:10px;padding:.72rem .78rem;font:inherit;background:#fff;color:#172a3c}.mfs-template-form textarea{resize:vertical}.mfs-template-form input:focus,.mfs-template-form select:focus,.mfs-template-form textarea:focus{outline:3px solid rgba(23,111,104,.16);border-color:#176f68}
.mfs-template-grid{display:grid;gap:1rem}.mfs-template-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}.mfs-template-grid--postal{grid-template-columns:minmax(100px,.6fr) minmax(160px,1.4fr)}.mfs-template-span-two{grid-column:1/-1}
.mfs-template-choice-list{display:grid;gap:.65rem}.mfs-template-choice{display:flex!important;grid-template-columns:none!important;align-items:flex-start;gap:.65rem;padding:.8rem;border:1px solid #d8e0e8;border-radius:12px}.mfs-template-choice input{width:auto!important;margin-top:.2rem}.mfs-template-choice span{display:grid;gap:.15rem}.mfs-template-choice small{display:block}.mfs-template-date-field{margin-top:1rem;max-width:340px}.mfs-template-checks{display:grid;gap:.55rem;margin-top:1rem}.mfs-template-checks label,.mfs-template-save-profile{display:flex!important;align-items:flex-start;gap:.55rem;font-weight:500!important}.mfs-template-checks input,.mfs-template-save-profile input{width:auto!important;margin-top:.15rem}.mfs-template-field-help{color:#5d6d7d;margin-top:0}
.mfs-template-actions{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center}.mfs-template-actions button,.mfs-template-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.7rem 1rem;border:0;border-radius:10px;font:inherit;font-weight:750;text-decoration:none;cursor:pointer}.mfs-template-actions button{background:#e9f0f3;color:#18324b}.mfs-template-actions .mfs-template-download{background:#176f68;color:#fff}.mfs-template-actions a{color:#176f68}
.mfs-letter-preview{margin-top:2rem}.mfs-letter-preview__label{font-weight:800;margin-bottom:.55rem}.mfs-letter-paper{max-width:760px;margin:0 auto;padding:3rem 3.4rem 2.2rem;background:#fff;border:1px solid #d7dee6;box-shadow:0 12px 36px rgba(15,35,55,.1);line-height:1.6}.mfs-letter-paper>img{width:190px;height:auto;margin-bottom:2rem}.mfs-letter-recipient{margin-bottom:1.4rem}.mfs-letter-paper h2{font-size:1.3rem;margin:1rem 0}.mfs-letter-paper address{font-style:normal}.mfs-letter-paper footer{margin-top:2.5rem;padding-top:.75rem;border-top:1px solid #d8e0e8;font-size:.82rem;color:#657586}
.help-purpose-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.2rem 0}.help-purpose-card{padding:1.1rem;border-radius:16px;border:1px solid #d9e3eb;background:#fff}.help-purpose-card h2,.help-purpose-card h3{margin-top:0}.help-purpose-card--faq{background:#f4f8fb}.help-purpose-card a{font-weight:750;color:#176f68}
@media(max-width:760px){.mfs-report-template-grid,.mfs-template-grid--two,.help-purpose-grid{grid-template-columns:1fr}.mfs-template-span-two{grid-column:auto}.mfs-template-hero{align-items:flex-start;flex-direction:column}.mfs-template-hero img{width:180px}.mfs-letter-paper{padding:1.5rem}.mfs-template-actions>*{width:100%}}

/* Del 16R-3R: aktindsigtsformularen skal ikke arve sagsrapportens fire kolonner. */
.mfs-report form.mfs-template-form{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1rem;
  align-items:stretch;
  margin:1.25rem 0 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.mfs-report form.mfs-template-form fieldset{
  min-width:0;
  width:100%;
  margin:0;
  box-sizing:border-box;
}
.mfs-report form.mfs-template-form .mfs-template-grid,
.mfs-report form.mfs-template-form label,
.mfs-report form.mfs-template-form input,
.mfs-report form.mfs-template-form select,
.mfs-report form.mfs-template-form textarea,
.mfs-report form.mfs-template-form .mfs-template-actions{
  min-width:0;
}
@media (max-width:920px){
  .mfs-template-grid--two,.mfs-template-grid--postal{grid-template-columns:minmax(0,1fr)}
  .mfs-template-span-two{grid-column:auto}
}


/* Del 16R-3R v1.0.3 */
.mfs-template-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.mfs-template-inline-check{display:flex!important;align-items:flex-start;gap:.65rem;font-weight:650!important;margin-bottom:1rem}
.mfs-template-inline-check input{width:auto!important;margin-top:.2rem}
.mfs-template-cpr-field{max-width:360px;margin-bottom:1.25rem}
.mfs-template-children-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-end;margin:1rem 0 .75rem}
.mfs-template-children-heading h2{margin:0;color:#18324b;font-size:1.05rem}
.mfs-template-children-heading p{margin:.3rem 0 0;color:#5d6d7d;font-weight:400}
.mfs-template-add-child{border:0;border-radius:10px;padding:.65rem .9rem;background:#e7f4f2;color:#116d66;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.mfs-template-children{display:grid;gap:.8rem}
.mfs-template-child-row{padding:1rem;border:1px solid #d8e0e8;border-radius:14px;background:#f8fafb}
.mfs-template-child-row__header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem;color:#18324b}
.mfs-template-child-row__header button{border:0;background:transparent;color:#a23a3a;font:inherit;font-weight:750;cursor:pointer}
.mfs-template-legal-note,.mfs-template-context-help{margin:1rem 0 0;padding:.8rem .9rem;border-radius:10px;background:#f4f8f8;color:#536577;font-size:.92rem;line-height:1.55}
.mfs-template-scope-dates{margin:1rem 0}
.mfs-template-scope-dates input:disabled{background:#eef2f5;color:#8996a3}
.mfs-letter-paper>img{display:none}
.mfs-letter-brand-footer{display:flex;align-items:center;gap:.9rem;margin-top:2.5rem;padding-top:.75rem;border-top:1px solid #d8e0e8;font-size:.78rem;color:#657586}
.mfs-letter-brand-footer img{display:block!important;width:92px;height:auto;margin:0}
.mfs-letter-brand-footer div{display:grid;gap:.18rem}
.mfs-letter-brand-footer a{color:#176f68;font-weight:750;text-decoration:none}
.mfs-letter-brand-footer a:hover{text-decoration:underline}

@media(max-width:920px){
  .mfs-template-grid--three{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
  .mfs-template-children-heading{align-items:stretch;flex-direction:column}
  .mfs-template-add-child{width:100%}
  .mfs-letter-brand-footer{align-items:flex-start;flex-direction:column}
}
