:root{
  --navy:#0d2f4f;
  --blue:#2f6fba;
  --line:#d9e7f1;
  --muted:#667d8f;
  --green:#14784c;
  --scale:1;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
  font-family:Arial,Helvetica,sans-serif;
  background:#dfeaf2;
  color:var(--navy);
}
#stage{
  position:absolute;
  left:50%;
  top:50%;
  width:calc(1080px * var(--scale));
  height:calc(1920px * var(--scale));
  transform:translate(-50%,-50%);
  overflow:hidden;
}
.screen{
  width:1080px;
  height:1920px;
  transform:scale(var(--scale));
  transform-origin:top left;
  background:linear-gradient(180deg,#f8fcff 0%,#edf7fd 48%,#f8fcff 100%);
  display:grid;
  grid-template-rows:960px 960px;
  overflow:hidden;
}
.half{
  min-height:0;
  padding:20px 28px 20px;
  display:grid;
  grid-template-rows:auto 1fr;
  gap:14px;
}
.half+.half{border-top:2px solid #d4e6f1}
.section-head{
  min-height:84px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}
.eyebrow{
  margin:0 0 4px;
  color:var(--blue);
  font-size:16px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
h1,h2{margin:0;letter-spacing:-.04em;line-height:.92}
h1{font-size:44px}
h2{font-size:54px}
.subline{
  margin:6px 0 0;
  color:var(--muted);
  font-size:15px;
  font-weight:700;
}
.badge{
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 18px;
  font-size:14px;
  font-weight:800;
  box-shadow:0 8px 24px rgba(13,47,79,.08);
  white-space:nowrap;
  margin-bottom:3px;
}
.badge.live{color:var(--green);background:#e8f8ef;border-color:#d4efdf}
.week-grid{
  min-height:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:repeat(2,1fr);
  gap:12px;
}
.day-card{
  min-width:0;
  min-height:0;
  background:#fff;
  border:1px solid rgba(13,47,79,.08);
  border-radius:20px;
  box-shadow:0 8px 24px rgba(13,47,79,.08);
  padding:16px 12px 10px;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
}
.day-card:before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:5px;
  background:var(--accent,#6eb5e0);
}
.day-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.day-card h3{
  margin:0;
  font-size:25px;
  letter-spacing:-.04em;
  line-height:1;
}
.day-date{
  color:var(--muted);
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
  padding-bottom:2px;
}
.bookings{
  min-height:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.booking{
  flex:0 0 auto;
  padding:3px 0 4px;
  border-bottom:1px solid #edf2f5;
  font-size:10.5px;
  line-height:1.04;
}
.booking:last-child{border-bottom:0}
.booking-line{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:5px;
  align-items:start;
}
.booking-time{
  font-weight:900;
  color:var(--blue);
  white-space:nowrap;
}
.booking-title{
  min-width:0;
  font-weight:800;
  color:#173953;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  line-height:1.06;
}
.resource-list{
  margin:1px 0 0 0;
  padding:0 0 0 9px;
  list-style:none;
}
.resource-list li{
  position:relative;
  color:#697f90;
  font-size:9.5px;
  line-height:1.04;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  padding-left:7px;
  margin-top:1px;
}
.resource-list li::before{
  content:'-';
  position:absolute;
  left:0;
  top:0;
}
.empty{color:#8a9aa7;font-size:11px;font-style:italic;padding-top:3px}
.day-card.dense .booking{font-size:9.7px;padding:2px 0 3px}
.day-card.dense .resource-list li{font-size:8.9px;margin-top:0}
.day-card.dense h3{font-size:23px}
.day-card.dense .day-date{font-size:13px}
.day-card.dense .resource-list{padding-left:8px}
.day-card.very-dense .booking{font-size:8.8px;padding:1px 0 2px;line-height:1.02}
.day-card.very-dense .booking-title{-webkit-line-clamp:1}
.day-card.very-dense .resource-list li{font-size:8px;padding-left:6px}
.day-card.very-dense h3{font-size:22px}
.day-card.very-dense .day-date{font-size:12px}
.day-card.very-dense .resource-list{padding-left:7px}
.note-card textarea{
  width:100%;
  height:100%;
  resize:none;
  border:0;
  outline:0;
  background:#f7fbfe;
  border-radius:12px;
  padding:10px;
  font:inherit;
  font-size:15px;
  color:#355166;
}
.source-week{
  position:absolute!important;
  left:-10000px!important;
  top:-10000px!important;
  width:900px!important;
  height:auto!important;
  overflow:visible!important;
}
.panel{
  min-height:0;
  background:#fff;
  border:1px solid rgba(13,47,79,.08);
  border-radius:24px;
  box-shadow:0 12px 34px rgba(13,47,79,.10);
  overflow:hidden;
  display:grid;
  grid-template-rows:50px 1fr;
}
.panel-title{
  padding:13px 18px;
  background:linear-gradient(90deg,#e5f5ff,#f8fcff);
  border-bottom:1px solid var(--line);
  font-size:20px;
  font-weight:800;
  color:#37566d;
}
.conventus-output{
  min-height:0;
  padding:8px 10px 10px;
  overflow:hidden;
}
.conventus-output,.conventus-output *{
  font-family:Arial,Helvetica,sans-serif!important;
  box-sizing:border-box!important;
}
.conventus-output table{
  width:100%!important;
  max-width:100%!important;
  border-collapse:separate!important;
  border-spacing:0 4px!important;
  background:transparent!important;
  border:0!important;
}
.conventus-output thead,.conventus-output th{background:transparent!important}
.conventus-output th{
  padding:6px 8px!important;
  color:#607689!important;
  font-size:14px!important;
  text-align:left!important;
  border:0!important;
}
.conventus-output td{
  padding:7px 8px!important;
  font-size:14px!important;
  line-height:1.1!important;
  border-top:1px solid #e3edf4!important;
  border-bottom:1px solid #e3edf4!important;
  background:#f8fbfd!important;
  color:#15344f!important;
  vertical-align:top!important;
}
.conventus-output tr td:first-child{
  border-left:1px solid #e3edf4!important;
  border-radius:10px 0 0 10px!important;
}
.conventus-output tr td:last-child{
  border-right:1px solid #e3edf4!important;
  border-radius:0 10px 10px 0!important;
}
.conventus-output a{color:var(--blue)!important;text-decoration:none!important;font-weight:700!important}
.conventus-output img{max-height:18px!important;width:auto!important}

/* Specialbygget, kompakt visning af Dagen i dag */
.today-list{display:flex;flex-direction:column;gap:3px;width:100%;min-height:0}
.today-row{display:grid;grid-template-columns:108px minmax(0,1fr) 150px 188px;column-gap:10px;align-items:start;background:#f8fbfd;border:1px solid #e1ebf2;border-radius:9px;padding:6px 9px;min-height:31px;color:#173953}
.today-time{font-size:12px;font-weight:900;color:var(--blue);white-space:nowrap;padding-top:1px}
.today-main{min-width:0}
.today-title{font-size:12.5px;font-weight:900;line-height:1.12;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-category{font-size:10.5px;font-weight:700;line-height:1.14;color:#587187;white-space:normal;overflow:hidden}
.today-resource{display:flex;flex-direction:column;gap:1px;font-size:10.5px;font-weight:800;line-height:1.12;color:#31566f;min-width:0}
.today-resource span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-info{display:grid;grid-template-columns:auto 1fr;gap:6px;align-items:start;margin-top:4px;padding:4px 6px;background:#fff7d6;border:1px solid #efdc9a;border-radius:7px;color:#554b2b}
.today-info-label{font-size:8.5px;font-weight:900;letter-spacing:.05em;color:#9b6c00;background:#ffeaa0;border-radius:999px;padding:2px 5px;line-height:1.1}
.today-info-groups{display:flex;flex-direction:column;gap:2px;min-width:0}
.today-info-group{display:flex;gap:5px;align-items:baseline;font-size:9.5px;line-height:1.15;min-width:0}
.today-info-group b{color:#8b6200;white-space:nowrap}
.today-info-group span{white-space:normal}
.today-empty{padding:20px;text-align:center;color:#718696;font-size:14px;font-style:italic}
.today-list.dense{gap:2px}
.today-list.dense .today-row{grid-template-columns:102px minmax(0,1fr) 140px 178px;column-gap:8px;padding:4px 8px;min-height:27px}
.today-list.dense .today-time{font-size:11px}
.today-list.dense .today-title{font-size:11.5px}
.today-list.dense .today-category,.today-list.dense .today-resource{font-size:9.5px}
.today-list.dense .today-info{margin-top:3px;padding:3px 5px}
.today-list.dense .today-info-group{font-size:8.8px}
.today-list.very-dense{gap:1px}
.today-list.very-dense .today-row{grid-template-columns:96px minmax(0,1fr) 132px 170px;column-gap:7px;padding:3px 7px;min-height:24px;border-radius:7px}
.today-list.very-dense .today-time{font-size:10px}
.today-list.very-dense .today-title{font-size:10.5px;line-height:1.05}
.today-list.very-dense .today-category,.today-list.very-dense .today-resource{font-size:8.8px;line-height:1.05}
.today-list.very-dense .today-info{grid-template-columns:auto 1fr;margin-top:2px;padding:2px 4px;gap:4px}
.today-list.very-dense .today-info-label{font-size:7.5px;padding:1px 4px}
.today-list.very-dense .today-info-group{font-size:8px;line-height:1.08}

/* Smart compact mode til meget travle ugedage. Kun kort der ellers ville overflowe bruger dette. */
.day-card.dense,
.day-card.very-dense{
  padding:13px 9px 7px;
}
.day-card.dense .day-head,
.day-card.very-dense .day-head{margin-bottom:5px}
.day-card.dense .booking,
.day-card.very-dense .booking{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px;
  column-gap:5px;
  align-items:start;
  padding:2px 0;
  line-height:1.03;
}
.day-card.dense .booking-line,
.day-card.very-dense .booking-line{
  min-width:0;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:4px;
}
.day-card.dense .booking-title,
.day-card.very-dense .booking-title{
  -webkit-line-clamp:1;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.day-card.dense .resource-list,
.day-card.very-dense .resource-list{
  margin:0;
  padding:0;
  min-width:0;
  max-width:72px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
  gap:1px;
  overflow:hidden;
}
.day-card.dense .resource-list li,
.day-card.very-dense .resource-list li{
  width:100%;
  margin:0;
  padding:0;
  text-align:right;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#718697;
}
.day-card.dense .resource-list li::before,
.day-card.very-dense .resource-list li::before{display:none}
.day-card.dense .booking{font-size:10px}
.day-card.dense .resource-list li{font-size:8.4px}
.day-card.very-dense .booking{font-size:9.2px}
.day-card.very-dense .resource-list li{font-size:7.9px}
