* {
  box-sizing: border-box;
}

:root {
  --bg-page: #f1f3f6;
  --bg-card: #f7f7f4;
  --bg-header: #093461;
  --bg-accent: #f7d254;
  --text-primary: #1e293b;
  --border-soft: #d5d9df;
  --shadow-soft: 0 2px 8px rgba(9, 52, 97, 0.12);
  --radius-md: 8px;
  --btn-primary-bg: #f7d254;
  --btn-primary-border: #b1b7bf;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: #b8c1cc;
  --btn-danger-bg: #d83933;
  --btn-danger-border: #b02d29;
  --btn-danger-text: #ffffff;
  --focus-ring: #2b6cb0;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 14px;
  --space-lg: 20px;
}

html{
    scroll-padding-top: 0px;
}

.unselectable {
   user-select: none;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #054c9b;
}

/* Admin top navigation (used in includes/admHeader.inc.php) */
.topnav {
  overflow: hidden;
  background-color: #e0bb44;
  border-bottom: 1px solid #d0b26a;
}

.topnav a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.topnav a:hover {
  background-color: #efd79b;
  color: black;
}

li {
  float: left;
  font-size:14px;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 4px 6px;
  text-decoration: none;
}

li a:hover {
  background-color: darkblue;
}

.active {
  background-color: red;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  margin:0;
  line-height: 1.45;
}

/* Header/Blog Title */
.header {
  padding: 1px;
  color:white;
  text-align: center;
  background-color: var(--bg-header);
  width:100%;
}

/* Header/Blog Title */
.header_w {
  padding: 5px;
  color:white;
  text-align: center;
  /*background-color: #054c9b;*/
  background-color: #093461;
  position: fixed;
  top: 0;
  width:100%;
  z-index:10;
}

.footer {
  margin-top:20px;
  padding: 5px;
  color:white;
  text-align: center;
  background-color: #054c9b;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
}

.header h1 {
  font-size: 40px;
  padding: 0px;
}

.app-shell .header .header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.app-shell .header .header-brand-logo {
  display: block;
  max-height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.app-shell .header .header-brand h1 {
  margin: 0;
}

.app-shell .header--with-actions {
  position: relative;
}

.app-shell .app-header-logout {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  font-size: 0.75rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 0.2rem 0.35rem;
  line-height: 1.25;
  z-index: 2;
}

.app-shell .app-header-logout:hover,
.app-shell .app-header-logout:focus {
  color: #fff;
  text-decoration: underline;
}

h2 {
  font-size: 25px;
  /*color:#d1242d; gammel*/
  color: #fb3822; 
}

.h2_menu{
    font-family: 'Tangerine', serif;
    font-size: 60px;
    text-align: center;
    color:#093461;
    margin: 10px;
    padding: 0px;
    /*
    font-style: italic;
    
    font-family: Arial, Helvetica, sans-serif;
    */
}

/* -------------------------------------------------------------------------- */
/* Menu/forme i kort (.menuform) — bruges flere steder end køkkenet            */
/* -------------------------------------------------------------------------- */

.menuform{
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}

.menuform label{
  display: inline-block;
  margin-bottom: 0.35rem;
}

.menuform select{
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background-color: #fff;
  font-size: 14px;
}

.menuform input[type="date"]{
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background-color: #fff;
}

/* Køkkenets "kort tekst"-felt: giv en bedre standardbredde når det bruges */
.menuform #menutekst1{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  line-height: 1.35;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 16px;
  resize: none;
}

.footer h2{
    color:white;
}

table{
    width:100%;
    text-align:left;
    border-collapse: collapse;
}

/* Batch 4: table readability */
.admin-shell table,
.app-shell table {
  border: 1px solid var(--border-soft);
  background: #fff;
}

.admin-shell th,
.app-shell th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.k1{
    color:indigo;
}

.k2{
    color:indigo;
}

.k3{
    color:indigo;
}

td.celleTop{
    font-size:14px;
    color:black;
    font-weight: bold;
    font-style: italic;
    font-family:"Ebrima", Times, serif;
    /*background:#b3d6ff;*/
    /*background-color: #6cb4c7;*/
    background-color: hsl(193, 45%, 70%);
}

td.celleIndhold{
    font-size:14px;
    color:black;
    height:50px;
    font-style: italic;
    font-family:"Ebrima", Times, serif;
   /*background:#e6f1ff;*/
   background-color: hsl(214, 100%, 96%)
}

table, td, th {
  border: 1px solid lightgray;
  padding: 5px;
  /*font-size: 18px;*/
}



.admin-shell tr:nth-child(even),
.app-shell tr:nth-child(even){background-color: #f8fafc;}
.admin-shell tr:nth-child(odd),
.app-shell tr:nth-child(odd){background-color: #ffffff;}
/*tr:nth-child(1){background-color: #b8b6ad;}*/

.admin-shell tr:hover,
.app-shell tr:hover {background-color: #eaf2ff;}

th {
  text-align: left;
  background-color: #b8b6ad;

}

.leftcolumn {   
  float: left;
  width: 50%;
}

.rightcolumn {
  float: left;
  width: 50%;
  /*padding-left: 20px;*/
}
.treKolonner {
   float: left;
    width: 25%; 
}

/* Add a card effect for articles */
.card {
  background-color: var(--bg-card);
  margin: 0 0 var(--space-md) 0;
  padding: var(--space-sm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}


input[type=button], input[type=reset],input[type=submit]{
  background-color: var(--btn-primary-bg);
  border: solid 1px var(--btn-primary-border);
  color: black;
  padding: 5px 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: filter 0.15s ease, transform 0.06s ease;
}

input[type=button]:hover, input[type=reset]:hover,input[type=submit]:hover{
  filter: brightness(0.97);
}

input[type=button]:active,
input[type=reset]:active,
input[type=submit]:active,
.knap:active {
  transform: translateY(1px);
}

input[type=button]:focus-visible,
input[type=reset]:focus-visible,
input[type=submit]:focus-visible,
.knap:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.knap{
  background-color: var(--btn-secondary-bg);
  border: solid 1px var(--btn-secondary-border);
  color: black;
  padding: 5px 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: filter 0.15s ease, transform 0.06s ease;
}

.knap:hover{
  filter: brightness(0.97);
}

input[type=button]:disabled,
input[type=reset]:disabled,
input[type=submit]:disabled,
.knap:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.form-table{
  border: 2px solid black;
  border-collapse: collapse;
}

.form-table td{
  padding: 5px;
  background-color: #f8f8f8;
  border: 1px solid #f8f8f8;
}

.roedTekst{
  color: red;
}

input[type=text], input[type=password] {
  width: 75%; 
  border: none;
  color: black;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  /*font-size:20px;*/
}

/* Admin: ens feltbredder/spacing og tydelig border */
.admin-shell input[type=text],
.admin-shell input[type=password],
.admin-shell input[type=tel],
.admin-shell input[type=date],
.admin-shell textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background-color: #fff;
  color: var(--text-primary);
  padding: 10px 12px;
  margin: 6px 0;
  cursor: auto;
}

.admin-shell textarea {
  padding: 10px 12px;
  border-width: 1px;
}

.admin-shell .soegForm input[type="text"],
.admin-shell .search-box input[type="text"]{
  width: 100%;
  margin: 0;
}

.admin-shell label{
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
}

/* Admin: mere hensigtsmæssig knap-placering på desktop */
.admin-shell form input[type=button],
.admin-shell form input[type=reset],
.admin-shell form input[type=submit],
.admin-shell form .knap{
  width: auto;
  margin: 8px 8px 0 0;
  vertical-align: middle;
}

.admin-shell form {
  margin: 0;
}

.admin-shell form input[type=text],
.admin-shell form input[type=password],
.admin-shell form input[type=tel],
.admin-shell form input[type=date],
.admin-shell form select,
.admin-shell form textarea {
  min-height: 40px;
  line-height: 1.35;
  font-size: 15px;
}

.admin-shell form input[type=checkbox],
.admin-shell form input[type=radio] {
  width: auto;
  min-height: 0;
  transform: translateY(1px);
  margin-right: 6px;
}

.admin-shell form br + label,
.admin-shell form br + input,
.admin-shell form br + select,
.admin-shell form br + textarea {
  margin-top: 2px;
}

.admin-shell form .roedTekst {
  display: inline-block;
  background: #fff1f1;
  border: 1px solid #f4c4c4;
  border-radius: 6px;
  padding: 4px 8px;
  margin: 4px 0 8px;
}

.feedback-message {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0 10px;
  font-weight: 600;
}

.feedback-success {
  background: #e9f9ee;
  border-color: #b9e6c5;
  color: #1e6b37;
}

.feedback-error {
  background: #fff1f1;
  border-color: #f4c4c4;
  color: #9b1c1c;
}

.feedback-info {
  background: #edf4ff;
  border-color: #c7dafc;
  color: #184a90;
}

#morgenmad-fravaer-status.feedback-message--fadeout,
#morgenmad-fravaer-dato-status.feedback-message--fadeout {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.field-help {
  display: block;
  margin: 4px 0 8px;
  font-size: 13px;
  color: #475569;
}

.admin-shell form button,
.admin-shell form .knap,
.admin-shell form input[type=submit],
.admin-shell form input[type=button],
.admin-shell form input[type=reset] {
  min-height: 38px;
}

.admin-shell form input[type=reset]{
  background-color: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-border);
}

.admin-shell form input[type=submit]{
  font-weight: 700;
}

/* Admin button hierarchy mapped from existing labels/classes */
.admin-shell form input[type=submit],
.admin-shell form input[type=button][value*="gem" i],
.admin-shell form input[type=button][value*="send" i],
.admin-shell form input[type=button][value*="opdater" i],
.admin-shell form input[type=button][value*="opret" i] {
  background-color: var(--btn-primary-bg);
  border-color: var(--btn-primary-border);
  color: #111827;
}

.admin-shell form input[type=reset],
.admin-shell form input[type=button][value*="tilbage" i],
.admin-shell form input[type=button][value*="ny indtastning" i],
.admin-shell form input[type=button][value*="reload" i],
.admin-shell form .knap {
  background-color: var(--btn-secondary-bg);
  border-color: var(--btn-secondary-border);
  color: #111827;
}

.admin-shell form input[type=submit][value*="slet" i],
.admin-shell form input[type=button][value*="slet" i] {
  background-color: var(--btn-danger-bg);
  border-color: var(--btn-danger-border);
  color: var(--btn-danger-text);
}

select {
  width: 100%;
  height:40px;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background-color: #fff;
  font-size:14px;
}

.f_dag{
    color:red;
}

.a_dag{
    color:blue;
}

/* Formatting search box */
.search-box{
    width: 100%;
    position: relative;
    display: inline-block;
    /*font-size: 14px;*/
}
.search-box input[type="text"]{
    height: 32px;
    /*padding: 5px 10px;*/
    border: 1px solid #CCCCCC;
    /*font-size: 10px;*/
    background-color:#f1f1f1;
}
.result{
    /*position: absolute; */      
    /*z-index: 999;*/
    top: 100%;
    left: 0;
    color: black;
}
.search-box input[type="text"], .result{
    width: 100%;
    /*box-sizing: border-box;*/
}

.result p{
    margin: 0;
    padding: 3px 5px;
    border: 1px solid #CCCCCC;
    border-top: none;
    cursor: pointer;
    background: ivory;
}
.result p:hover{
    background: #f2f2f2;
}



.ramme{
  border: solid red 1px;
  margin: auto;
  padding: 5px;
  background-color: #fff;
}

.ramme h2{
  text-align: center;
}

#body{
  visibility: visible;
}

#h2{
  font-family: 'Titillium Web';
  font-size:30px;
  margin:2 0;
}

#logo-header{
  float:left;
}

.login {
margin: 50px auto;
width: 320px;
}

#logo-image img{
  margin: auto;
  display: block;
  width: 150px;
}

.login form {
margin: auto;
padding: 22px 22px 22px 22px;
width: 100%;
border-radius: 5px;
background: #d2dbe6;
border: 2px solid #434a52;
}

.login form input[type="text"] {
background-color: white;
border-radius: 0px 3px 3px 0px;
color: #a9a9a9;
margin-bottom: 1em;
padding: 0 16px;
width: 100%;
height: 40px;
}

.soegForm form input[type="text"]{
  background-color: white;
  border-radius: 0px 3px 3px 0px;
  color: #434a52;
  margin-bottom: 1em;
  padding: 0 16px;
  width: 100%;
  height: 40px;
  border: solid #c6c5c5 1px;
  font-size:16px;
}

/* Vagt-søgninger: samme felt-højde for ensartet layout */
#searchBox2,
#searchBoxX,
#searchBoxFjernMorgenmad,
#searchBoxVisMorgenmad {
  min-height: 44px;
  height: 44px;
  line-height: 1.2;
}

.app-shell .morgenmad-fjern-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}


.login form input[type="password"] {
background-color: white;
border-radius: 0px 3px 3px 0px;
color: #a9a9a9;
margin-bottom: 1em;
padding: 0 16px;
width: 100%;
height: 40px;
}

.login form input[type="submit"] {
background: #d10728;
border: 0;
width: 100%;
height: 40px;
border-radius: 5px;
color: white;
cursor: pointer;
/*transition: background 0.3s ease-in-out;*/
}

.roed{
  background-color:tomato;
  width:7%;
  text-align:center;
  font-size:12px;
}
.lysroed{
  background-color:lightPink;
  width:7%;
  text-align:center;
  font-size:12px;
}
.gul{
  background-color:yellow;
  width:7%;
  text-align:center;
}
.groen{
  background-color:limeGreen;
  width:7%;
  text-align:center;
  font-size:12px;
}
.lysgroen{
  background-color:lightGreen;
  width:7%;
  text-align:center;
  font-size:12px;
}
.smalTabel{
  width:75%;
}
.row{
  position: relative;
  top: 0;
}

.app-shell .row{
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm) 8px var(--space-lg);
}

/* Batch 2: spacing/layout consistency on admin pages */
.admin-shell .leftcolumn,
.admin-shell .rightcolumn {
  padding: 0 var(--space-xs);
}

.admin-shell .card {
  margin-bottom: var(--space-md);
}

.admin-shell .card h1,
.admin-shell .card h2,
.admin-shell .card h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.admin-shell .card p,
.admin-shell .card table,
.admin-shell .card form {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.admin-shell .form-table,
.admin-shell table {
  margin-bottom: var(--space-sm);
}

.admin-shell .search-box,
.admin-shell .soegForm {
  margin-bottom: var(--space-sm);
}

/* style.css: ul { background: #054c9b } til topnav — neutraliser i admin */
body.app-shell.admin-shell ul {
  background: transparent;
  overflow: visible;
}

body.app-shell.admin-shell ul.role-list li,
body.app-shell.admin-shell ul.perm-list li {
  float: none;
}

body.app-shell.admin-shell table,
body.app-shell.admin-shell .admin-table {
  background: var(--bg-page);
}

body.app-shell.admin-shell table th,
body.app-shell.admin-shell .admin-table th,
body.app-shell.admin-shell table td,
body.app-shell.admin-shell .admin-table td {
  background-color: var(--bg-page);
}

body.app-shell.admin-shell tr:nth-child(even),
body.app-shell.admin-shell tr:nth-child(odd),
body.app-shell.admin-shell tr:hover {
  background-color: var(--bg-page);
}

/* -------------------------------------------------------------------------- */
/* Flash / status-beskeder (genbruges på tværs af apps)                       */
/* -------------------------------------------------------------------------- */

/* Generisk basis-klasse (kan bruges direkte) */
.flash {
  margin: 0 0 1em;
  padding: 0.65em 0.85em;
  border-radius: 6px;
  opacity: 1;
}

.flash--ok {
  color: #0d5f2d;
  background-color: #d4edda;
  border: 1px solid #b7dfc4;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.flash--ok.flash--fade {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.flash--error {
  color: #5c1018;
  background-color: #f5c2c7;
  border: 1px solid #e7a1a8;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.flash--error.flash--gone {
  opacity: 0;
  pointer-events: none;
}

/* Backwards-compat: køkkenets eksisterende classnames */
.menu-gemt-ok {
  margin: 0 0 1em;
  padding: 0.65em 0.85em;
  border-radius: 6px;
  color: #0d5f2d;
  background-color: #d4edda;
  border: 1px solid #b7dfc4;
  opacity: 1;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.menu-gemt-ok.menu-gemt-ok--fade {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.menu-gemt-fejl {
  margin: 0 0 1em;
  padding: 0.65em 0.85em;
  border-radius: 6px;
  color: #5c1018;
  background-color: #f5c2c7;
  border: 1px solid #e7a1a8;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.menu-gemt-fejl.menu-gemt-fejl--gone {
  opacity: 0;
  pointer-events: none;
}

#beskedBox{
  background-color: var(--bg-accent);
  margin: auto;
  padding: 1px 10px;
}

#beskedBox p{
  font-family: 'Titillium Web';
  color: black;
}

#beskedBox img{
  width:100px;
  float:right;
  margin:3px;
}

#beskedBox b{
  font-size: large;
}

/* elevNavnet  */
#navnInput{
    font-size:20px;
}

/*Til fraværsoversigt*/
.celleIndholdGroen{
    background:lightgreen;
}
.celleIndholdGul{
    background:lightyellow;
}
.celleIndholdBlaa{
    background:lightblue;
}
.celleIndholdGraa{
    background:gray;
}
.celleIndholdOrange{
    background:orange;
}

#laeseRoFravaerTabel{
    position: relative;
    width:50%;
    font-size: smaller;
    left:180px;
}
       

@media screen and (max-width: 1200px) {
    .leftcolumn, .rightcolumn {   
        width: 100%;
        padding: 0;
    }
}

@media screen and (max-width: 900px) {
  .header h1 {
    font-size: 32px;
  }

  .app-shell .row {
    padding: 8px 6px 14px;
  }

  .admin-shell .leftcolumn,
  .admin-shell .rightcolumn {
    padding: 0;
  }

  .card {
    margin: 0 0 10px 0;
  }

  #laeseRoFravaerTabel {
    width: 100%;
    left: 0;
  }
}

@media screen and (max-width: 600px) {
  .header h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  .app-shell .row {
    padding: 6px 4px 12px;
  }

  .topnav {
    display: flex;
    flex-wrap: wrap;
  }

  .topnav a {
    float: none;
    width: 50%;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #d0b26a;
  }

  .topnav a[style*="float:right"] {
    width: 100%;
    text-align: center;
  }

  .admin-shell .card,
  .app-shell .card {
    padding: 8px;
    margin-bottom: 10px;
  }

  .admin-shell h2,
  .app-shell h2 {
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .admin-shell .result,
  .app-shell .result {
    overflow-x: auto;
  }
  /* Kun brede data-tabeller i .result — ikke fx køkkenets simple oversigter */
  .admin-shell .result table,
  .app-shell .result table {
    min-width: 560px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  input[type=text],
  input[type=password],
  input[type=tel],
  input[type=date],
  select {
    width: 100%;
  }

  input[type=button],
  input[type=reset],
  input[type=submit] {
    width: 100%;
    margin: 6px 0;
    min-height: 42px;
  }

  .admin-shell form .knap{
    display: inline-block;
    width: 100%;
    margin: 6px 0;
    min-height: 42px;
  }

  .admin-shell form input[type=button],
  .admin-shell form input[type=reset],
  .admin-shell form input[type=submit],
  .admin-shell form .knap {
    margin-right: 0;
  }

  #beskedBox img {
    width: 72px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Forside (index.php): hub uden global ul/li-nav-styling */
body.index-hub-layout {
  margin: 0;
  padding: var(--space-lg);
  max-width: 36rem;
  color: var(--text-primary);
  background: var(--bg-page);
}

body.index-hub-layout .index-hub-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

body.index-hub-layout .index-hub-logo {
  display: block;
  max-height: 3rem;
  width: auto;
  object-fit: contain;
}

body.index-hub-layout .index-hub-brand h1 {
  margin: 0;
  color: var(--bg-header);
}

body.index-hub-layout h2 {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1.1rem;
}

body.index-hub-layout .index-hub-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

body.index-hub-layout a.index-hub-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

body.index-hub-layout a.index-hub-link:hover {
  border-color: var(--focus-ring);
}

body.index-hub-layout .index-hub-footnote {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: #475569;
}

body.index-hub-layout .index-hub-footnote a {
  color: var(--focus-ring);
}

/* Presence pilot (public/presencePilot.php) */
body.presence-pilot-layout .presence-pilot-main {
  padding: 10px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.presence-pilot-layout .presence-pilot-lead {
  margin: 0 0 6px;
}

body.presence-pilot-layout .presence-pilot-window.is-open {
  color: #166534;
}

body.presence-pilot-layout .presence-pilot-window.is-closed {
  color: #475569;
}

/* style.css: ul { background: #054c9b } til topnav — neutraliser i presence-pilot */
body.presence-pilot-layout ul {
  background: transparent;
  overflow: visible;
}

body.presence-pilot-layout .presence-pilot-legend {
  margin-bottom: 8px;
  padding: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

body.presence-pilot-layout .presence-pilot-legend h2 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

body.presence-pilot-layout .presence-pilot-legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  background: transparent;
}

body.presence-pilot-layout .presence-pilot-legend-list li {
  float: none;
  font-size: inherit;
}

body.presence-pilot-layout .presence-pilot-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: var(--space-xs);
  border: 1px solid var(--border-soft);
}

body.presence-pilot-layout .presence-pilot-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: var(--bg-card);
}

body.presence-pilot-layout table.presence-pilot-table {
  display: table;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.875rem;
  white-space: normal;
}

body.presence-pilot-layout .presence-pilot-table thead {
  display: table-header-group;
}

body.presence-pilot-layout .presence-pilot-table tbody {
  display: table-row-group;
}

body.presence-pilot-layout .presence-pilot-table tr {
  display: table-row;
}

body.presence-pilot-layout .presence-pilot-table th,
body.presence-pilot-layout .presence-pilot-table td {
  display: table-cell;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
}

body.presence-pilot-layout .presence-pilot-table thead th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8125rem;
}

body.presence-pilot-layout .presence-pilot-status {
  font-weight: 600;
}

body.presence-pilot-layout .presence-pilot-severity.severity-warning {
  color: #d97706;
  font-weight: 600;
}

body.presence-pilot-layout .presence-pilot-severity.severity-critical {
  color: #dc2626;
  font-weight: 700;
}

body.presence-pilot-layout .presence-pilot-back {
  margin-top: 8px;
  font-size: 0.875rem;
}

body.presence-pilot-layout .presence-pilot-flash {
  padding: 7px;
  border-radius: 4px;
  margin: 6px 0;
}

body.presence-pilot-layout .presence-pilot-flash--ok {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #86efac;
}

body.presence-pilot-layout .presence-pilot-flash--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

body.presence-pilot-layout .presence-pilot-form-section {
  margin: 8px 0;
  padding: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
}

body.presence-pilot-layout .presence-pilot-form .presence-pilot-field {
  margin-bottom: var(--space-md);
}

body.presence-pilot-layout .presence-pilot-form label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

body.presence-pilot-layout .presence-pilot-form select,
body.presence-pilot-layout .presence-pilot-form input[type="text"] {
  width: 100%;
  max-width: 24rem;
  padding: var(--space-xs) var(--space-sm);
}

body.presence-pilot-layout .presence-pilot-hint {
  color: #475569;
  font-style: italic;
  margin: 0 0 6px;
}

body.presence-pilot-layout .presence-pilot-hint--inline {
  margin: 0;
  font-style: normal;
  font-size: 0.9rem;
}

body.presence-pilot-layout .presence-pilot-toolbar {
  margin: 6px 0 8px;
  padding: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

body.presence-pilot-layout .presence-pilot-toolbar .presence-pilot-window {
  margin: 0 0 4px;
}

body.presence-pilot-layout .presence-pilot-banner {
  padding: 7px;
  border-radius: 4px;
  margin: 6px 0;
}

body.presence-pilot-layout .presence-pilot-banner--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fcd34d;
}

body.presence-pilot-layout .presence-pilot-house {
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
}

body.presence-pilot-layout .presence-pilot-house-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--bg-header, #093461);
}

body.presence-pilot-layout .presence-pilot-house-count {
  font-weight: normal;
  font-size: 0.95rem;
  color: #64748b;
}

body.presence-pilot-layout .presence-pilot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: flex-end;
  margin: 0 0 6px;
}

body.presence-pilot-layout .presence-pilot-filters label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-weight: 600;
}

body.presence-pilot-layout .presence-pilot-table .presence-pilot-col-nr {
  width: 2.75rem;
  text-align: center;
  white-space: nowrap;
}

body.presence-pilot-layout .presence-pilot-table th:nth-child(2),
body.presence-pilot-layout .presence-pilot-table td:nth-child(2) {
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.presence-pilot-layout .presence-pilot-table .presence-pilot-col-status {
  width: 4.5rem;
  text-align: center;
}

body.presence-pilot-layout .presence-pilot-table .presence-pilot-col-missing {
  width: 2.5rem;
  text-align: center;
}

body.presence-pilot-layout .presence-pilot-table .presence-pilot-row-action {
  width: 38%;
}

body.presence-pilot-layout .presence-pilot-status-badge {
  display: inline-block;
  min-width: 3.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.8125rem;
  text-align: center;
  color: #fff;
  background-color: var(--status-color, #64748b);
  border: 1px solid color-mix(in srgb, var(--status-color, #64748b) 75%, #000);
}

body.presence-pilot-layout .presence-pilot-row-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

body.presence-pilot-layout .presence-pilot-row-form select {
  min-width: 10rem;
  max-width: 14rem;
  padding: var(--space-xs) var(--space-sm);
}

body.presence-pilot-layout .presence-pilot-row-submit {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--btn-primary-bg, #054c9b);
  color: #fff;
  border: none;
  border-radius: 4px;
}

body.presence-pilot-layout .presence-pilot-row-submit:hover {
  filter: brightness(1.05);
}

body.presence-pilot-layout .presence-pilot-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  body.presence-pilot-layout .presence-pilot-main {
    padding-left: 7px;
    padding-right: 7px;
  }

  body.presence-pilot-layout table.presence-pilot-table {
    display: table;
    width: 100%;
    white-space: normal;
  }

  body.presence-pilot-layout .presence-pilot-row-form {
    flex-direction: column;
    align-items: stretch;
  }

  body.presence-pilot-layout .presence-pilot-row-form select {
    max-width: 100%;
  }
}

/* Weekendtilmelding-pilot */
body.weekend-signup-pilot-layout .weekend-signup-pilot-main {
  padding: var(--space-lg);
  max-width: 40rem;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-lead {
  margin-top: 0;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-window.is-open {
  color: #166534;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-window.is-closed {
  color: #475569;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-flash {
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-flash--error {
  background: #fef2f2;
  color: #991b1b;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-flash--ok {
  background: #ecfdf5;
  color: #166534;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-banner {
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-banner--warn {
  background: #fffbeb;
  color: #92400e;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-day,
body.weekend-signup-pilot-layout .weekend-signup-pilot-overnights {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-checklist li {
  margin-bottom: var(--space-sm);
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-hint {
  color: #475569;
  font-style: italic;
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-back {
  margin-top: var(--space-lg);
}

body.weekend-signup-pilot-layout .weekend-signup-pilot-summary-list {
  padding-left: 1.25rem;
}

/* Weekendtilmelding – husoversigt (medarbejder) */
body.weekend-signup-overview-layout .weekend-signup-overview-main {
  max-width: 100%;
}

body.weekend-signup-overview-layout .weekend-signup-overview-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

body.weekend-signup-overview-layout .weekend-signup-overview-filters label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-weight: 600;
}

body.weekend-signup-overview-layout .weekend-signup-overview-stats {
  margin: 0 0 var(--space-md);
}

body.weekend-signup-overview-layout .weekend-signup-overview-table-wrap {
  overflow-x: auto;
}

body.weekend-signup-overview-layout .weekend-signup-overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

body.weekend-signup-overview-layout .weekend-signup-overview-table th,
body.weekend-signup-overview-layout .weekend-signup-overview-table td {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
}

body.weekend-signup-overview-layout .weekend-signup-overview-table thead th {
  background: #f8fafc;
  font-weight: 600;
}

body.weekend-signup-overview-layout .weekend-signup-overview-sub {
  font-weight: 400;
  font-size: 0.85em;
  color: #475569;
}

body.weekend-signup-overview-layout .weekend-signup-overview-check {
  text-align: center;
  white-space: nowrap;
}

body.weekend-signup-overview-layout .weekend-signup-overview-status.is-filled {
  color: #166534;
  font-weight: 600;
}

body.weekend-signup-overview-layout .weekend-signup-overview-status.is-missing {
  color: #991b1b;
  font-weight: 600;
}

body.weekend-signup-overview-layout tr.row-missing td:first-child {
  border-left: 3px solid #fca5a5;
}

body.weekend-signup-overview-layout tr.row-filled td:first-child {
  border-left: 3px solid #86efac;
}

body.weekend-signup-overview-layout .weekend-signup-overview-updated {
  white-space: nowrap;
  font-size: 0.85em;
  color: #475569;
}

/* Weekendtilmelding – køkkenoversigt */
body.weekend-signup-kitchen-layout ul {
  background: transparent;
  overflow: visible;
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-hint {
  color: #475569;
  margin: 0 0 var(--space-md);
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  overflow: hidden;
}

body.weekend-signup-kitchen-layout table.weekend-signup-kitchen-table {
  display: table;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: normal;
  background: var(--bg-page);
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table thead {
  display: table-header-group;
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table tbody {
  display: table-row-group;
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table tr {
  display: table-row;
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table th,
body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table td {
  display: table-cell;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
  background-color: var(--bg-page);
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table thead th {
  background: var(--bg-page);
  font-weight: 600;
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table tr:nth-child(even),
body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table tr:nth-child(odd),
body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table tr:hover {
  background-color: var(--bg-page);
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table .col-kitchen-meal {
  width: auto;
  min-width: 10rem;
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-count-col {
  text-align: center;
  width: 4.5rem;
  font-size: 1.1rem;
}

body.weekend-signup-kitchen-layout .weekend-signup-kitchen-table .col-kitchen-diet {
  width: 4.75rem;
}

body.special-diet-view-layout .special-diet-view-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

body.special-diet-view-layout .special-diet-view-lead {
  margin-bottom: 1rem;
}

body.special-diet-view-layout .special-diet-view-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

body.special-diet-view-layout table.special-diet-view-table {
  width: 100%;
  border-collapse: collapse;
}

body.special-diet-view-layout .special-diet-view-table th,
body.special-diet-view-layout .special-diet-view-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  text-align: left;
  vertical-align: top;
}

body.special-diet-view-layout .special-diet-view-back {
  margin-top: 1.5rem;
}

@media screen and (max-width: 600px) {
  body.weekend-signup-kitchen-layout table.weekend-signup-kitchen-table {
    display: table;
    width: 100%;
    white-space: normal;
  }

  body.weekend-signup-kitchen-layout .weekend-signup-kitchen-count-col {
    width: 4rem;
  }
}

/* Weekendtilmelding – påmindelser */
body.weekend-signup-reminders-layout .weekend-signup-reminders-meta {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  background: #f8fafc;
}

body.weekend-signup-reminders-layout .weekend-signup-reminders-meta p {
  margin: 0 0 var(--space-sm);
}

body.weekend-signup-reminders-layout .weekend-signup-reminders-send {
  margin: var(--space-md) 0 var(--space-lg);
}

/* Planlagt borte — scrollbar ved mange fremtidige rækker */
.away-staff-list-upcoming--many .away-staff-list-upcoming__scroll {
  max-height: min(22rem, 55vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.away-staff-list-upcoming--many .away-staff-list-upcoming__scroll table {
  margin-top: 0;
}

.away-staff-list-upcoming--many .away-staff-list-upcoming__scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
