:root {
  --table-font: 12px;
  --primary-bg-color: #111;
  --primary-text-color: #fff;
  --header-bg-color: #1b1b1b;
  --border-color: #333;
  --cell-bg-color: #bbb;
  --off-bg-color: #000;
  --off-text-color: #fff;
  --sunday-color: #ff4d4d;
}

/* ===== BODY ===== */
body {
  margin: 0;
  background-color: var(--primary-bg-color);
  color: var(--primary-text-color);
  font-family: Arial, sans-serif;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--header-bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px;
  position: relative;
  z-index: 10;
}

/* ===== NAVIGATION (FIXET) ===== */
.nav-wrapper {
  display: flex; /* 🔥 byttet fra grid */
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.nav-wrapper a,
.nav-wrapper button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--primary-text-color);
}

/* ===== DATO ===== */
.søndag {
  color: var(--sunday-color);
  font-weight: bold;
}

.søndag-rad td {
  border-bottom: 3px solid #888;
  box-shadow: 0 2px 0 #000;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--table-font);
}

td, th {
  border: 1px solid var(--border-color);
  padding: 4px;
  text-align: center;
}

td {
  height: 36px;
}

/* ===== CELL ===== */
.editable-cell {
  background: var(--cell-bg-color);
  color: #000;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.offcelle {
  background: var(--off-bg-color) !important;
  color: var(--off-text-color) !important;
}

.celle-navn {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== OVERLAY ===== */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 5;
}

#overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== SIDE MENU ===== */
.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  background: #1b1b1b;
  padding: 15px;
  transition: 0.25s;
  z-index: 20;
}

.side-menu.open {
  right: 0;
}

/* ===== ANSATTE ===== */
.ansatt {
  padding: 8px 0;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fargeboks {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 6px;
}