@font-face {
  font-family: 'MyFont';
  src: url('/static/menus/fonts/mont-extralightdemo-webfont.woff2') format('woff2'),
       url('/static/menus/fonts/mont-extralightdemo-webfont.woff') format('woff'),
}

.not-available {
    color: red;
}

.nav-link {
  z-index: 20;
}

:root { --gap: .75rem; --radius: .5rem; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; color: #111; background: #fafafa; }
/* body { font-family: Trebuchet MS, Helvetica, sans-serif; margin: 0; color: #111; background: #fafafa; } */

.wrap { max-width: 920px; margin: 2rem auto; padding: 0 1rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); padding: 1rem; }
.stack { display: grid; gap: var(--gap); }
.row { display: flex; gap: var(--gap); flex-wrap: wrap; align-items: center; }
input[type="text"] { padding: .5rem .6rem; border: 1px solid #d1d5db; border-radius: .375rem; width: min(340px, 100%); }
/* button, .btn { appearance: none; border: 1px solid #d1d5db; background: #fff; border-radius: .375rem; padding: .5rem .7rem; cursor: pointer; } */
.btn.primary { background: #111827; color: #fff; border-color: #111827; }
.btn.warn { border-color: #ef4444; color: #b91c1c; }
.btn-move { border-color: #d1c62e; color: #d1bd0a; }
.btn.ghost { background: transparent; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #eee; padding: .6rem .4rem; }
.msg { padding: .6rem .8rem; border: 1px solid transparent; border-radius: .375rem; }
.msg.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.msg.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* the floating copy that follows the cursor */
.drag-ghost {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-9999px, -9999px);
  pointer-events: none;
  opacity: .75;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* the slot where the dragged item will drop */
.drop-placeholder {
  border: 2px dashed #aaa;
  border-radius: 8px;
  margin: 8px 0;
  height: 48px;           /* will be resized in JS */
  background: rgba(0,0,0,.03);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* Hide the default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider track */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

/* The circle/handle */
.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* When checked */
.switch input:checked + .slider {
  background-color: #4caf50;
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.alergen-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  max-width: 640px;
}

.alergen-badge {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  background: #fafafa;
  font-size: 13px;
  line-height: 1;
  user-select: none;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.alergen-badge:hover { background: #f0f0f0; }
.alergen-badge[aria-pressed="true"], .alergen-badges[aria-pressed="true"] {
  background: #e6f4ff;
  border-color: #90c2ff;
  box-shadow: 0 0 0 2px rgba(24,119,242,.15) inset;
}

.icon-group {
  display: inline-flex;   /* keep icons in one row */
  align-items: center;    /* align with text */
  gap: 8px;               /* small space between icons */
}

.type-icons {
  width: 20px;
  height: 20px;
  vertical-align: middle; /* align with text baseline */
}

.footer {
  position: fixed; bottom: 0; width: 100%
}