/* ============================================================
   Spiis – admin-dashboard
   ============================================================ */

:root {
  --cream: #FAF6F0;
  --cream-2: #F2EBDF;
  --ink: #1C1814;
  --ink-soft: #6B6257;
  --accent: #D96C2C;
  --accent-deep: #B85417;
  --accent-soft: #F7E3D3;
  --green: #3F7A3B;
  --green-soft: #E4F0DF;
  --red: #B3372B;
  --red-soft: #FBEAE7;
  --moede: #3D5A80;
  --moede-soft: #E9F0F7;
  --line: rgba(28, 24, 20, 0.12);
  --shadow: 0 16px 40px -18px rgba(28, 24, 20, 0.22);
  --radius: 18px;
  --font-display: 'Fraunces', serif;
  --font-body: 'Outfit', sans-serif;
  --font-logo: 'Baloo 2', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
}

button { font-family: var(--font-body); }

[hidden] { display: none !important; }

/* ---------- login ---------- */
.login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 500px at 15% 0%, rgba(217, 108, 44, 0.12), transparent 60%),
    radial-gradient(700px 500px at 90% 100%, rgba(217, 108, 44, 0.1), transparent 60%),
    var(--cream);
  padding: 20px;
}
.login__card {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 48px 44px;
  width: min(400px, 94vw);
  text-align: center;
  animation: loginIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.login__hat { width: 54px; height: 54px; margin: 0 auto 10px; color: var(--ink); }
.login__card h1 {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 2rem;
}
.login__card h1 span { color: var(--accent); }
.login__card > p { color: var(--ink-soft); margin: 8px 0 24px; font-size: 0.95rem; }
.login__card input {
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  padding: 14px;
  border-radius: 14px;
  border: 1.6px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
}
.login__card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 108, 44, 0.15);
}
#loginEmail {
  letter-spacing: normal;
  font-size: 1rem;
  text-align: left;
  margin-bottom: 10px;
}
.login__card input.is-password {
  letter-spacing: 0.15em;
  font-size: 1.1rem;
  text-align: left;
}
.login__error { color: var(--red); font-weight: 600; font-size: 0.9rem; margin-top: 10px; }
.login__card form button { width: 100%; margin-top: 16px; }
.login__back {
  display: inline-block;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}
.login__back:hover { color: var(--accent-deep); }

/* ---------- knapper ---------- */
.abtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.6px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap; /* aldrig tekst over flere linjer i en knap */
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  background: var(--cream-2);
  color: var(--ink);
}
.abtn:hover { transform: translateY(-1px); }
.abtn:active { transform: scale(0.97); }
.abtn:focus-visible,
.inline-input:focus-visible,
.afield input:focus-visible, .afield select:focus-visible, .afield textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 108, 44, 0.28);
}
.abtn--accent {
  background: linear-gradient(180deg, #E07A3A, var(--accent));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px -8px rgba(217, 108, 44, 0.55);
}
.abtn--accent:hover { background: var(--accent-deep); }
.abtn--ghost { background: transparent; border-color: var(--line); }
.abtn--ghost:hover { border-color: var(--ink); }
.abtn--danger { background: var(--red-soft); color: var(--red); }
.abtn--danger:hover { background: var(--red); color: #fff; }
.abtn--green {
  background: linear-gradient(180deg, #EDF6E9, var(--green-soft));
  color: var(--green);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.abtn--green:hover { background: var(--green); color: #fff; box-shadow: none; }
.abtn--big { padding: 13px 26px; font-size: 1rem; }
.abtn--icon { padding: 8px 11px; }

/* ---------- app layout ---------- */
.app {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100svh;
}

.sidebar {
  background: #211B15;
  color: #F5EFE6;
  display: flex;
  flex-direction: column;
  padding: 26px 18px;
  position: sticky;
  top: 0;
  height: 100svh;
}
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 24px;
}
.sidebar__logo svg { width: 32px; height: 32px; margin-top: -8px; }
.sidebar__logo span {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.4rem;
}
.sidebar__logo em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.85rem;
  margin-left: 5px;
  letter-spacing: 0.06em;
}
.sidebar__nav { display: grid; gap: 4px; flex: 1; align-content: start; }
.navitem {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: rgba(245, 239, 230, 0.72);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  text-align: left;
  position: relative;
}
.navitem span { font-size: 1.1rem; }
.navitem:hover { background: rgba(245, 239, 230, 0.08); color: #fff; }
.navitem.is-active { background: var(--accent); color: #fff; font-weight: 600; }
.navitem__badge {
  margin-left: auto;
  background: #fff;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.navitem:not(.is-active) .navitem__badge { background: var(--accent); color: #fff; }
.sidebar__foot {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  padding-top: 16px;
}
.sidebar__foot a, .sidebar__foot button {
  background: none;
  border: 0;
  color: rgba(245, 239, 230, 0.6);
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  padding: 4px 10px;
  font-family: var(--font-body);
}
.sidebar__foot a:hover, .sidebar__foot button:hover { color: #fff; }

/* ---------- topbar ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 3.5vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar__title { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; }
.topbar__date { color: var(--ink-soft); font-size: 0.9rem; }

.bell-wrap { position: relative; }
.bell {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.6px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bell:hover { border-color: var(--accent); transform: translateY(-1px); }
.bell svg { width: 21px; height: 21px; }
.bell__badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--cream);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.belldrop {
  position: absolute;
  right: 0;
  top: 56px;
  width: min(380px, 88vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(28, 24, 20, 0.35);
  border: 1px solid var(--line);
  z-index: 50;
  overflow: hidden;
  animation: dropIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.belldrop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.belldrop__head button {
  background: none;
  border: 0;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.belldrop__list { max-height: 340px; overflow-y: auto; }
.notif {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.06);
  font-size: 0.9rem;
}
.notif--unread { background: var(--accent-soft); }
.notif__icon { font-size: 1.25rem; }
.notif__text strong { display: block; }
.notif__text small { color: var(--ink-soft); }
.belldrop__empty { padding: 26px 16px; text-align: center; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- indhold ---------- */
.content { padding: clamp(18px, 3.5vw, 40px); flex: 1; }
.view { animation: viewIn 0.35s ease; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.acard {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(28, 24, 20, 0.06);
  box-shadow: 0 10px 30px -18px rgba(28, 24, 20, 0.18);
  padding: 22px 24px;
}
.acard + .acard, .stack > * + * { margin-top: 18px; }
.acard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.acard__head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.acard__head .sub { color: var(--ink-soft); font-size: 0.88rem; }

/* stat-fliser */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(28, 24, 20, 0.06);
  padding: 18px 20px;
  box-shadow: 0 10px 30px -18px rgba(28, 24, 20, 0.18);
}
.stat__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  margin-top: 4px;
}
.stat__value small { font-size: 1rem; color: var(--ink-soft); font-weight: 500; }
.stat--accent { background: linear-gradient(150deg, var(--accent), var(--accent-deep)); color: #fff; border: 0; }
.stat--accent .stat__label, .stat--accent .stat__value small { color: rgba(255, 255, 255, 0.8); }

/* lister/tabeller */
.rowlist { display: grid; gap: 10px; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border: 1.6px solid rgba(28, 24, 20, 0.08);
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--cream);
  transition: border-color 0.2s ease;
}
.row:hover { border-color: rgba(217, 108, 44, 0.4); }
.row--new { border-color: var(--accent); background: var(--accent-soft); }
.row--done { opacity: 0.55; }
.row--done:hover { opacity: 1; }

/* tydelig forskel på bookinger: orange kant = arrangement, blå kant = møde */
.row--arr { border-left: 6px solid var(--accent); }
.row--moede { border-left: 6px solid var(--moede); }
.row--moede.row--new { border-color: var(--moede); border-left-width: 6px; background: var(--moede-soft); }

/* dato/tid-editor på bookinger: foldes ud i rækken */
.bkedit {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1.6px dashed rgba(28, 24, 20, 0.15);
}
.bkedit .afield { min-width: 180px; flex: 1; max-width: 260px; }
.bkedit .afield--wide { flex-basis: 100%; max-width: none; }
.bkedit .afield > span em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; }
.bkedit .abtn { margin-bottom: 2px; }
.bkedit__hint { flex-basis: 100%; font-size: 0.84rem; color: var(--ink-soft); }
.bkedit__check {
  flex-basis: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--cream);
  border: 1.6px solid rgba(28, 24, 20, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}
.bkedit__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.bkedit__check em { font-style: normal; color: var(--ink-soft); font-size: 0.82rem; }

/* tjekliste-flueben: tryk for færdig, tryk igen for at fortryde */
.checkbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: #fff;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.checkbtn:hover { transform: scale(1.08); }
.checkbtn.is-done { background: var(--green); color: #fff; }
.row__main { flex: 1; min-width: 200px; }
.row__title { font-weight: 600; }
.row__title .tag { margin-left: 8px; }
.row__sub { color: var(--ink-soft); font-size: 0.88rem; }
.row__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* bestillingens indhold: mad i punktform, streg, så drikkevarer */
.olist { list-style: none; margin: 7px 0 8px; padding: 0; display: grid; gap: 3px; }
.olist li { font-size: 0.94rem; padding-left: 16px; position: relative; }
.olist li::before { content: '•'; position: absolute; left: 3px; color: var(--accent); font-weight: 700; }
.olist li b { color: var(--accent-deep); font-weight: 700; }
.olist li .tag { margin-left: 8px; }
.olist__sep { border-top: 1.6px dashed rgba(28, 24, 20, 0.15); margin: 2px 0; max-width: 340px; }
.olist--drinks li { color: var(--ink-soft); }
.olist--drinks li::before { content: '🥤'; font-size: 0.7rem; left: 0; top: 2px; }

/* emballage-linjer på to-go-bestillinger */
.packline {
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  background: var(--cream-2);
  border-radius: 10px;
  padding: 6px 12px;
  display: inline-block;
}
.packline--reuse {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}

/* intern personale-note på arrangementer/møder */
.staffnote {
  margin-top: 8px;
  background: #fff7df;
  border: 1.6px dashed #d9b44a;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 560px;
  white-space: pre-wrap;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--cream-2);
  color: var(--ink-soft);
  vertical-align: middle;
}
.tag--accent { background: var(--accent-soft); color: var(--accent-deep); }
.tag--green { background: var(--green-soft); color: var(--green); }
.tag--red { background: var(--red-soft); color: var(--red); }
.tag--ink { background: var(--ink); color: var(--cream); }
.tag--moede { background: var(--moede); color: #fff; }

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 30px 10px;
  border: 1.6px dashed var(--line);
  border-radius: 14px;
  font-size: 0.95rem;
}

/* nyheds-redaktøren */
.newsed { align-items: flex-start; }
.newsed__thumb {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.6px solid rgba(28, 24, 20, 0.08);
}
.newsed__thumb--none {
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--accent-soft, #FBEBDD);
}
.newsed .row__main { display: grid; gap: 8px; }
.newsed__toggles { display: flex; gap: 18px; flex-wrap: wrap; }
.newsed__order { display: flex; gap: 8px; flex-wrap: wrap; }
.newsed__order .inline-input { max-width: 130px; }
.newsorder-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--accent-soft, #F7E3D3);
  border-radius: 14px;
}

/* ferie / luk-periode */
.ferie__toggle { display: flex; align-items: center; gap: 10px; font-size: 0.98rem; }
.ferie__toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.closure-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  background: #FBE9D8;
  border-radius: 14px;
}
.newsed--off { opacity: 0.55; }
.newsed__cta { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.newsed__cta input { width: 17px; height: 17px; accent-color: var(--accent); }
.newsprev {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
}
.newsprev img {
  width: 150px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.6px solid rgba(28, 24, 20, 0.1);
}

/* arkiv med færdige bestillinger – foldet sammen til dagen er omme */
.donefold {
  margin-top: 14px;
  border: 1.6px dashed rgba(46, 125, 90, 0.35);
  border-radius: 14px;
  background: rgba(46, 125, 90, 0.05);
  padding: 10px 14px;
}
.donefold summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green, #2E7D5A);
  list-style: none;
  user-select: none;
}
.donefold summary::-webkit-details-marker { display: none; }
.donefold summary::before { content: '▸ '; }
.donefold[open] summary::before { content: '▾ '; }
.donefold summary em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.donefold .row { opacity: 0.72; }
.donefold .row:hover { opacity: 1; }

/* formularer i admin */
.afield { display: grid; gap: 6px; }
.afield > span { font-weight: 600; font-size: 0.88rem; }
.afield input, .afield select, .afield textarea,
.inline-input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1.6px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
.afield input:focus, .afield select:focus, .afield textarea:focus, .inline-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 108, 44, 0.14);
}
.afield textarea { resize: vertical; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formgrid .afield--full { grid-column: 1 / -1; }

/* dagens ret-planlægger */
.planner { display: grid; gap: 12px; }
.planday {
  display: grid;
  grid-template-columns: 150px 1fr 1.4fr 84px 84px auto;
  gap: 10px;
  align-items: center;
  border: 1.6px solid rgba(28, 24, 20, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--cream);
}
.planday--closed { opacity: 0.55; }
.planday--today { border-color: var(--accent); }
.planday__date strong { display: block; font-size: 0.95rem; }
.planday__date small { color: var(--ink-soft); font-size: 0.8rem; }

/* ugeoverblik */
.ugegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.ugeday { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.ugeday--today { border: 2px solid var(--accent); }
.ugeday--closed { opacity: 0.65; }
.ugeday__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1.6px dashed var(--line);
  padding-bottom: 10px;
}
.ugeday__head strong { font-family: var(--font-display); font-size: 1.08rem; }
.ugeday__head span { color: var(--ink-soft); font-size: 0.85rem; }
.ugeday__dish { font-weight: 600; font-size: 0.95rem; }
.ugeday__stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.ugeday__stats strong { color: var(--ink); }
.ugeday__bookings {
  display: grid;
  gap: 5px;
  font-size: 0.86rem;
  background: var(--cream-2);
  border-radius: 11px;
  padding: 10px 13px;
}
.ugeday__bookings em { color: var(--ink-soft); font-style: normal; }
.ugeday__top {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream-2);
  border-radius: 10px;
  padding: 8px 12px;
}
.ugeday__note { min-height: 56px; resize: vertical; }

/* måneds-kalenderen */
.kalhead { align-items: center; }
.kalhead__nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kaltoggle {
  display: inline-flex;
  border: 1.6px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-right: 6px;
  background: #fff;
}
.kaltoggle button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.kaltoggle button.is-on { background: var(--ink); color: #fff; }
.kalcard { padding: 18px; }
.kalgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kalgrid--head { margin-bottom: 6px; }
.kalwd {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  padding: 4px 0;
}
.kalcell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 112px;
  padding: 9px 10px;
  border: 1.6px solid rgba(28, 24, 20, 0.07);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kalcell:hover { border-color: var(--accent); }
.kalcell--out { opacity: 0.4; }
.kalcell--closed { background: rgba(28, 24, 20, 0.035); }
.kalcell--today { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(217, 108, 44, 0.22); }
.kalcell--sel { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(28, 24, 20, 0.16); }
.kalcell__num { font-weight: 800; font-size: 0.95rem; font-family: var(--font-display); }
.kalcell__num i { font-style: normal; font-size: 0.8rem; }
.kalcell__dish {
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kalcell__count { font-size: 0.74rem; color: var(--ink-soft); }
.kalcell__count b { color: var(--ink); }
.kalcell__closed {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kalcell__block { font-size: 0.72rem; color: var(--red); font-weight: 600; }
.kalcell__bk {
  font-size: 0.72rem;
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 2px 7px;
}
.kalcell__bk--moede { background: #E3EAF2; }
.kalcell__more { font-size: 0.72rem; color: var(--ink-soft); }
.kalpanel__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.kalpanel__dish { font-weight: 600; }
.kalpanel__none { color: var(--ink-soft); font-size: 0.92rem; padding: 4px 0 2px; }
.kalpanel__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.kalpanel__stats b { color: var(--ink); }
.kalpanel__note { min-height: 130px; width: 100%; }
@media (max-width: 900px) {
  .kalpanel__grid { grid-template-columns: 1fr; gap: 12px; }
  .kalcell { min-height: 88px; padding: 7px 8px; }
  .kalhead__nav { width: 100%; justify-content: space-between; }
  .kaltoggle { margin-right: 0; }
  .kaltoggle button { padding: 8px 13px; }
}

/* produktionsliste – alle bestilte retter lagt sammen */
.prodlist { display: flex; flex-wrap: wrap; gap: 10px; }
.prod {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--cream);
  border: 1.6px solid rgba(28, 24, 20, 0.08);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-size: 0.95rem;
  font-weight: 500;
}
.prod b {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-deep);
}
.prod em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.8rem;
  border-left: 1px solid rgba(28, 24, 20, 0.12);
  padding-left: 9px;
}

/* dagens køreplan */
.kp__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 20px 0 10px;
}
.rowlist--arr .row { border-color: rgba(217, 108, 44, 0.45); background: var(--accent-soft); }
.rowlist--arr .row.row--new { border-color: var(--red); }
.timeline { display: grid; gap: 10px; }
.tl {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
}
.tl__time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--accent-deep);
  text-align: right;
  padding-top: 13px;
}
.tl__time small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .tl { grid-template-columns: 48px 1fr; gap: 8px; }
}
.ugeday__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* åbningstider */
.hoursgrid { display: grid; gap: 10px; }
.hoursrow {
  display: grid;
  grid-template-columns: 130px auto 110px 24px 110px 1fr;
  gap: 10px;
  align-items: center;
  border: 1.6px solid rgba(28, 24, 20, 0.08);
  border-radius: 14px;
  padding: 11px 14px;
  background: var(--cream);
}
.hoursrow--closed { opacity: 0.6; }
.hoursrow strong { font-size: 0.95rem; }
.hoursrow .dash { text-align: center; color: var(--ink-soft); }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch i {
  width: 40px; height: 23px;
  border-radius: 999px;
  background: #cfc8bc;
  position: relative;
  transition: background 0.2s ease;
  font-style: normal;
}
.switch i::after {
  content: '';
  position: absolute;
  top: 2.5px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(16px); }

/* menukort-editor */
.menued__cat { margin-bottom: 20px; }
.menued__catname { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.menued__catname input { font-weight: 700; }
.menued__item {
  display: grid;
  grid-template-columns: 1.2fr 2fr 90px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
/* faste retter har også "få tilbage" + udsolgt-knap */
.menued__item--full { grid-template-columns: 1.2fr 1.6fr 74px 104px auto auto; }
.menued__item--out [data-f="name"] { text-decoration: line-through; color: var(--ink-soft); background: var(--red-soft); }
.soldbtn {
  border: 1.6px solid rgba(179, 55, 43, 0.35);
  background: #fff;
  color: var(--red);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.soldbtn:active { transform: scale(0.95); }
.soldbtn.is-out { background: var(--red); border-color: var(--red); color: #fff; }

/* blokerede datoer */
.blocked { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.blocked__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}
.blocked__chip button {
  background: var(--red);
  color: #fff;
  border: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}
/* auto-blokeret pga. aftalt arrangement – fjernes via selve arrangementet */
.blocked__chip--auto {
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding-right: 14px;
  cursor: help;
}

/* booking-pipeline: i dag → venter → på plads → arkiv */
.pipebar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pipebar__chip {
  background: #fff;
  border: 1.6px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pipebar__chip.is-hot { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.pipebar__chip.is-today { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }

.acard--today { border: 2px solid var(--accent); }
.acard--fold > summary { cursor: pointer; list-style: none; }
.acard--fold > summary::-webkit-details-marker { display: none; }
.acard--fold > summary .sub::after { content: ' · tryk for at åbne'; opacity: 0.7; }
.acard--fold[open] > summary .sub::after { content: ' · tryk for at lukke'; }
.acard__head--sum { margin-bottom: 0; }
.kp__sub-hint { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; }
.tag--wait { background: #FFF3E4; color: var(--accent-deep); text-transform: none; letter-spacing: 0.02em; }
.when-soon { color: var(--accent-deep); font-weight: 700; }

/* overbliks-kortet: venter-alarm + de næste aftaler */
.waitalert {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--red-soft);
  border: 1.6px solid rgba(179, 55, 43, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--red);
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform 0.15s ease;
}
.waitalert:hover { transform: translateY(-1px); }
.nextlist { display: grid; gap: 8px; }
.nextb {
  display: grid;
  grid-template-columns: 92px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: baseline;
  background: var(--cream);
  border: 1.6px solid rgba(28, 24, 20, 0.07);
  border-radius: 14px;
  padding: 10px 14px;
}
.nextb__when {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
  font-size: 0.95rem;
  align-self: center;
}
.nextb__what { font-weight: 600; font-size: 0.95rem; }
.nextb__sub { color: var(--ink-soft); font-size: 0.84rem; }

/* "installér som app" / "slå notifikationer til"-bannere */
#pwaBanner { display: grid; gap: 10px; margin-bottom: 20px; }
.pwa {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.6px solid rgba(217, 108, 44, 0.35);
  border-radius: 16px;
  padding: 13px 16px;
  box-shadow: var(--shadow);
}
.pwa > span { font-size: 1.6rem; }
.pwa > div { flex: 1; min-width: 0; }
.pwa strong { display: block; font-size: 0.98rem; }
.pwa small { color: var(--ink-soft); font-size: 0.85rem; }
/* notifikations-banneret må ikke kunne overses */
.pwa--push { border-color: var(--accent); background: var(--accent-soft); }
.pwa--push > span { animation: bellring 2.4s ease-in-out infinite; transform-origin: top center; }
@keyframes bellring {
  0%, 60%, 100% { transform: rotate(0); }
  65% { transform: rotate(12deg); }
  71% { transform: rotate(-10deg); }
  77% { transform: rotate(6deg); }
  83% { transform: rotate(-4deg); }
  89% { transform: rotate(0); }
}

/* toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 20px 40px -14px rgba(28, 24, 20, 0.5);
  z-index: 200;
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- responsivt ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: column;
    padding: 16px;
  }
  .sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .navitem { padding: 9px 12px; font-size: 0.88rem; }
  .sidebar__foot { flex-direction: row; display: flex; justify-content: space-between; }
  .planday { grid-template-columns: 1fr; }
  .hoursrow { grid-template-columns: 1fr 1fr; }
  .hoursrow .dash { display: none; }
  .menued__item { grid-template-columns: 1fr; }
  .formgrid { grid-template-columns: 1fr; }
}

/* ---------- telefon: én hånd i køkkenet ---------- */
@media (max-width: 760px) {
  .content { padding: 16px 14px calc(100px + env(safe-area-inset-bottom)); }
  .topbar {
    padding: 9px 14px;
    padding-top: calc(9px + env(safe-area-inset-top));
    background: rgba(250, 246, 240, 0.78);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
  }
  .topbar__title { font-size: 1.16rem; }
  .topbar__date { font-size: 0.78rem; }
  .bell { width: 38px; height: 38px; }
  .bell svg { width: 17px; height: 17px; }

  /* mørk bjælke øverst: helt slank – kun logo + genveje, menuen bor i bunden */
  .sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    padding-top: calc(6px + env(safe-area-inset-top));
  }
  .sidebar__logo svg { width: 20px; height: 20px; margin-top: -4px; }
  .sidebar__logo span { font-size: 1rem; }
  .sidebar__logo em { font-size: 0.62rem; }
  .sidebar__foot {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 16px;
    align-items: center;
  }
  .sidebar__foot a, .sidebar__foot button { white-space: nowrap; font-size: 0.76rem; opacity: 0.85; }

  /* app-agtig bund-navigation: minimal, flydende glas */
  .sidebar__nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(26, 20, 15, 0.82);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4px 6px calc(5px + env(safe-area-inset-bottom));
  }
  .sidebar__nav::-webkit-scrollbar { display: none; }
  .navitem {
    position: relative;
    flex: 1 0 auto;
    flex-direction: column;
    gap: 1px;
    padding: 5px 9px;
    font-size: 0.57rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 10px;
    text-align: center;
    color: rgba(245, 239, 230, 0.62);
  }
  .navitem span { font-size: 1.02rem; }
  .navitem.is-active { background: transparent; color: #fff; font-weight: 700; }
  .navitem.is-active span { filter: drop-shadow(0 0 10px rgba(217, 108, 44, 0.9)); }
  .navitem.is-active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 18px; height: 3px;
    border-radius: 999px;
    background: var(--accent);
  }
  .navitem__badge {
    position: absolute;
    top: 0; right: 4px;
    margin: 0;
    min-width: 15px; height: 15px;
    font-size: 0.58rem;
    padding: 0 4px;
  }

  /* toast og notifikationer skal ligge OVER bund-menuen */
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); max-width: 92vw; text-align: center; }

  /* store tal-fliser to og to */
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 15px 16px; }
  .stat__value { font-size: 1.7rem; }

  /* store trykflader – og aldrig knapper som ovale bobler */
  .abtn { min-height: 44px; padding: 10px 16px; font-size: 0.88rem; border-radius: 15px; }
  .abtn--icon { min-width: 44px; flex: 0 0 auto; }
  .inline-input,
  .afield input, .afield select, .afield textarea { font-size: 16px; padding: 12px 14px; }
  .row { padding: 14px 16px; }
  .row__actions { width: 100%; gap: 8px; }
  .row__actions .abtn { flex: 1 1 auto; }
  .row__actions .abtn--icon, .row__actions .checkbtn { flex: 0 0 auto; }

  /* ugeoverblik: ét dagskort ad gangen med swipe */
  .ugegrid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 14px -14px 0;
    padding: 4px 14px 14px;
    scrollbar-width: none;
  }
  .ugegrid::-webkit-scrollbar { display: none; }
  .ugeday {
    flex: 0 0 87%;
    scroll-snap-align: center;
  }

  .belldrop { position: fixed; left: 12px; right: 12px; top: calc(74px + env(safe-area-inset-top)); width: auto; }
}
