:root{
  --navy:#073b6f;
  --blue:#1164a3;
  --ice:#eef6fb;
  --bg:#f7f9fc;
  --text:#14243a;
  --muted:#68778c;
  --line:#dbe4ed;
  --green:#118363;
  --amber:#8a6500;
  --red:#b33a32;
  --white:#fff;
  --shadow:0 10px 32px rgba(7,59,111,.08);
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
}

button,
input,
select,
textarea{
  font:inherit;
}

button{
  cursor:pointer;
}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  height:68px;
  display:flex;
  align-items:center;
  gap:20px;
  padding:0 26px;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.brandbutton{
  border:0;
  background:transparent;
  font-size:29px;
  font-weight:900;
  color:var(--navy);
  padding:0;
}

.topbar nav{
  display:flex;
  gap:4px;
}

.topbar nav button,
.account button{
  border:0;
  background:transparent;
  padding:9px 11px;
  border-radius:9px;
  font-weight:700;
  color:var(--text);
}

.account{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
}

.account #hello{
  font-size:13px;
  color:var(--muted);
}

button.primary,
.primary{
  border:0;
  background:var(--navy)!important;
  color:#fff!important;
  padding:11px 15px;
  border-radius:10px;
  font-weight:800;
  text-decoration:none;
  display:inline-block;
}

button.secondary,
.secondary{
  border:0;
  background:var(--ice)!important;
  color:var(--navy)!important;
  padding:11px 15px;
  border-radius:10px;
  font-weight:800;
}


/* =========================
   SIDEOPBYGNING
   ========================= */

.shell{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  min-height:calc(100vh - 68px);
}

/*
  Når brugeren IKKE er logget ind, har sidebar klassen "hidden".
  Derfor skal main bruge hele bredden.
*/
#sidebar.hidden + main{
  grid-column:1 / -1;
}

aside{
  background:#fff;
  border-right:1px solid var(--line);
  padding:22px 14px;
}

aside button{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:12px;
  border-radius:9px;
  margin-bottom:5px;
  font-weight:700;
}

aside button:hover{
  background:var(--ice);
  color:var(--navy);
}


/* =========================
   HOVEDINDHOLD
   ========================= */

main{
  width:100%;
  max-width:1240px;
  margin:0 auto;
  padding:30px;
}

.view{
  display:none;
}

.view.active{
  display:block;
}


/* =========================
   FORSIDE / HERO
   ========================= */

.hero{
  display:grid;
  grid-template-columns:1.35fr .65fr;
  gap:25px;
  align-items:center;
  background:linear-gradient(135deg,#fff,#eaf6ff);
  border:1px solid var(--line);
  border-radius:24px;
  padding:42px;
  box-shadow:var(--shadow);
}

.hero h1{
  font-size:48px;
  line-height:1.03;
  margin:7px 0 14px;
  color:var(--navy);
  max-width:700px;
}

.hero p{
  font-size:18px;
  color:var(--muted);
  max-width:700px;
}

.hero-cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.hero-cards div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px 12px;
  text-align:center;
}

.hero-cards b{
  display:block;
  font-size:23px;
  color:var(--navy);
}

.hero-cards span{
  font-size:12px;
  color:var(--muted);
}


/* =========================
   OVERSKRIFTER
   ========================= */

.eyebrow{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:900;
  color:var(--blue);
}

h2{
  font-size:31px;
  margin:7px 0 16px;
}

h3{
  margin-top:0;
}

.sectionhead{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:15px;
  margin:30px 0 15px;
}


/* =========================
   KORT
   ========================= */

.cards3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.cards2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.card,
.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:19px;
  box-shadow:var(--shadow);
}

.card{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.card p{
  color:var(--muted);
  margin:0;
}


/* =========================
   STATUS
   ========================= */

.pill{
  display:inline-flex;
  width:max-content;
  border-radius:999px;
  padding:5px 9px;
  font-size:11px;
  font-weight:900;
}

.pill.active{
  background:#e4f6ef;
  color:#0b7155;
}

.pill.upcoming{
  background:#fff5cf;
  color:#795b00;
}

.pill.completed{
  background:#edf0f4;
  color:#5f6978;
}


/* =========================
   STATISTIK
   ========================= */

.stats{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.stats span{
  font-size:12px;
  color:var(--muted);
}

.stats b{
  display:block;
  font-size:18px;
  color:var(--text);
}

.statsgrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:26px;
}

.statbox{
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:18px;
}

.statbox span{
  color:var(--muted);
  font-size:13px;
}

.statbox b{
  display:block;
  color:var(--navy);
  font-size:30px;
  margin-top:5px;
}


/* =========================
   FILTRE
   ========================= */

.filters{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.filters button{
  border:1px solid var(--line);
  background:#fff;
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
}

.filters button.active{
  background:var(--navy);
  border-color:var(--navy);
  color:#fff;
}


/* =========================
   FORMULARER
   ========================= */

.formgrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.formgrid label,
.panel form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  font-weight:800;
}

.formgrid .wide{
  grid-column:1/-1;
}

input,
select,
textarea{
  width:100%;
  border:1px solid #ced9e4;
  background:#fff;
  border-radius:9px;
  padding:11px;
  color:var(--text);
}

textarea{
  min-height:110px;
  resize:vertical;
}

.divider{
  height:1px;
  background:var(--line);
}

.actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
}


/* =========================
   BESKEDER
   ========================= */

.notice{
  padding:11px 13px;
  border-radius:9px;
  margin-top:12px;
  background:#fff5d8;
  color:#705300;
}

.notice.success{
  background:#e6f7f0;
  color:#146d55;
}

.notice.error{
  background:#fff0ef;
  color:#98362e;
}

.muted{
  color:var(--muted);
}

.summary{
  background:var(--ice);
  border:1px solid #cee1ef;
  border-radius:11px;
  padding:13px;
}


/* =========================
   ADMINISTRATION
   ========================= */

.twocol{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:16px 0;
}

.empty{
  border:1px dashed #c7d4df;
  background:#fff;
  border-radius:14px;
  padding:26px;
  text-align:center;
  color:var(--muted);
}


/* =========================
   TABELLER
   ========================= */

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  padding:10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

th{
  font-size:11px;
  text-transform:uppercase;
  color:var(--muted);
}


/* =========================
   POPUPS
   ========================= */

.modal{
  position:fixed;
  inset:0;
  z-index:70;
  background:rgba(6,20,35,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.modal.show{
  display:flex;
}

.modalbox{
  position:relative;
  width:min(520px,100%);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border-radius:18px;
  padding:25px;
}

.modalbox.widebox{
  width:min(760px,100%);
}

.x{
  position:absolute;
  right:14px;
  top:14px;
  border:0;
  background:#eef2f6;
  border-radius:50%;
  width:34px;
  height:34px;
  font-size:20px;
}

.modal form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.linkbutton{
  border:0;
  background:transparent;
  color:var(--blue);
  padding:4px 0;
  text-align:left;
}


/* =========================
   GENERELT
   ========================= */

.hidden{
  display:none!important;
}

.standalone{
  max-width:700px;
  margin:60px auto;
  padding:20px;
}

.brandlink{
  font-size:28px;
  font-weight:900;
  color:var(--navy);
  text-decoration:none;
}

.bigmoney{
  font-size:40px;
  font-weight:900;
  color:var(--navy);
  margin:14px 0;
}


/* =========================
   MOBIL / TABLET
   ========================= */

@media(max-width:950px){

  .shell{
    grid-template-columns:1fr;
  }

  aside{
    display:none!important;
  }

  main{
    grid-column:1 / -1;
    padding:18px;
  }

  .hero{
    grid-template-columns:1fr;
    padding:26px;
  }

  .cards3,
  .cards2,
  .statsgrid,
  .twocol,
  .formgrid{
    grid-template-columns:1fr;
  }

  .formgrid .wide{
    grid-column:auto;
  }

  .hero h1{
    font-size:38px;
  }

  .topbar nav{
    display:none;
  }

  .hero-cards{
    grid-template-columns:1fr 1fr 1fr;
  }

  .sectionhead{
    align-items:flex-start;
    flex-direction:column;
  }

  .account #hello{
    display:none;
  }
}