:root {
  --bg: #f6f8fb;
  --bg-soft: #eef2f7;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #94a3b8;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --accent-hover: #0f766e;
  --indigo: #6366f1;
  --indigo-soft: #e0e7ff;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --green: #10b981;
  --green-soft: #d1fae5;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --sidebar-w: 288px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.82rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-soft); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: var(--danger); color: #fff; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }

.muted { color: var(--muted); }
.err { color: var(--danger); margin: 0.75rem 0; font-size: 0.9rem; }
.ok { color: var(--green); margin: 0.75rem 0; }

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.3rem; }

/* Landing */
header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .logo { font-size: 1.4rem; font-weight: 800; color: var(--text); text-decoration: none; }
header.site nav { display: flex; gap: 1rem; align-items: center; }
.hero { text-align: center; padding: 4rem 2rem; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(160deg, var(--bg) 0%, var(--accent-soft) 100%);
}

/* Panel layout */
.panel-body { background: var(--bg); }
.panel-layout { display: flex; min-height: 100vh; width: 100%; }

.panel-sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  width: 100%;
  padding: 0.5rem 0.75rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
  text-align: left;
}
.sidebar-brand-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  margin: 0;
}
.sidebar-logo {
  display: block;
  width: 172px;
  max-width: 100%;
  height: auto;
  margin: 0;
  margin-right: auto;
  object-fit: contain;
  object-position: left center;
}

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 0.15rem; overflow-y: auto; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.12s ease;
}
.nav-item:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}
.nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.9;
}
.nav-icon svg,
.nav-icon [data-lucide] {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2;
}
.nav-item.active .nav-icon { color: var(--accent-hover); }

.nav-section {
  padding: 0.35rem 0.75rem 0.2rem;
}
.nav-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav-section-spacer {
  height: 0.5rem;
}
.nav-locations-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.35rem 0.5rem;
}
.nav-location-group {
  margin-top: 0.35rem;
  padding: 0.45rem 0.5rem 0.5rem;
  border-radius: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
}
.nav-location-group.is-open {
  border-color: rgba(13, 148, 136, 0.25);
  background: rgba(13, 148, 136, 0.04);
}
.nav-location-group.nav-location-pending { border-left: 3px solid var(--amber); }
.nav-location-group.nav-location-inactive { opacity: 0.72; }
.nav-location-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  padding: 0.15rem 0.35rem 0.4rem;
  line-height: 1.25;
  word-break: break-word;
  text-decoration: none;
}
.nav-location-name:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
.nav-subitem-featured {
  color: var(--accent-hover);
  font-weight: 600;
}
.layout-entry-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-location-items {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.nav-subitem {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  transition: all 0.12s ease;
}
.nav-subitem:hover {
  background: var(--bg-soft);
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-subitem.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}
.nav-subitem-add {
  color: var(--accent);
  font-weight: 600;
}
.nav-subitem-add:hover { color: var(--accent-hover); }
.nav-subitem-icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-subitem-icon svg,
.nav-subitem-icon [data-lucide] {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2;
}

.panel-main {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.panel-content-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.65rem 2rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}
.content-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.content-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  max-width: min(520px, 72vw);
  min-width: 0;
  min-height: 2.65rem;
}
.location-picker {
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.location-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.72rem;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 190px;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.location-picker-btn:hover,
.location-picker.is-open .location-picker-btn {
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--accent-hover);
}
.location-picker-btn [data-lucide] {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}
.location-picker-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-picker-chevron {
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.location-picker.is-open .location-picker-chevron {
  transform: rotate(180deg);
}
.location-picker-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 240px;
  max-width: min(340px, 80vw);
  max-height: min(360px, 52vh);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 0.5rem;
  z-index: 40;
}
.location-picker-menu[hidden] {
  display: none !important;
}
.location-picker-search-wrap {
  padding: 0.35rem 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.25rem;
}
.location-picker-search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.15rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-soft);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.location-picker-search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.location-picker-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--muted);
  pointer-events: none;
}
.location-picker-search-icon svg,
.location-picker-search-icon [data-lucide] {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2;
}
.location-picker-search {
  flex: 1;
  min-width: 0;
  width: auto;
  border: none !important;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--text);
  outline: none;
  height: 1.25rem;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none !important;
}
.location-picker-search:focus,
.location-picker-search:focus-visible {
  outline: none;
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}
.location-picker-search::placeholder {
  color: var(--muted);
}
.location-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  max-height: min(280px, 42vh);
  overflow: auto;
}
.location-picker-item.is-hidden {
  display: none !important;
}
.location-picker-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.62rem 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
}
.nav-item-locked {
  opacity: 0.88;
}
.location-required-notice .empty-icon [data-lucide] {
  width: 2rem;
  height: 2rem;
  color: var(--accent-hover);
}
.location-required-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.25rem;
}
.location-required-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.location-picker-item:hover {
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.location-picker-item.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-weight: 600;
}
.location-picker-item-pending { border-left: 3px solid var(--amber); }
.location-picker-item-inactive { opacity: 0.72; }
.location-picker-divider {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: var(--border-light);
}
.location-picker-add {
  color: var(--accent);
  font-weight: 600;
}
.location-picker-add:hover {
  color: var(--accent-hover);
}
.content-user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.content-user-email {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.content-lang-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
}
.content-user-chip .content-logout-form {
  margin: 0;
  flex-shrink: 0;
  border-left: 1px solid var(--border-light);
  padding-left: 0.35rem;
  margin-left: 0.1rem;
}
.content-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}
.content-logout-btn:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}
.content-logout-btn svg,
.content-logout-btn [data-lucide] {
  width: 0.95rem;
  height: 0.95rem;
}
.panel-content-body {
  flex: 1;
  padding: 1.25rem 2rem 2rem;
}

.page-header { margin-bottom: 1.5rem; }
.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.page-header h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.page-header-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.page-header-title-row h1 { margin: 0; }
.page-subtitle { color: var(--muted); margin-top: 0.25rem; font-size: 0.95rem; }
.page-breadcrumb { margin: 0 0 0.35rem; font-size: 0.82rem; }
.page-breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.page-breadcrumb a:hover { text-decoration: underline; }
.notice-success {
  margin-top: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #047857;
  font-size: 0.85rem;
}
.notice-error {
  margin-top: 0.65rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 600;
}

.add-location-panel { margin-bottom: 1.25rem; }
.add-location-panel[hidden] { display: none !important; }
.location-form-card { margin-bottom: 1.25rem; }
.location-data-page { width: 100%; }
.location-data-card { max-width: none; margin-bottom: 1.25rem; }
.location-data-form { width: 100%; }
.location-data-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.location-data-col { min-width: 0; }
.location-form-group { margin-bottom: 1.1rem; }
.location-form-group:last-child { margin-bottom: 0; }
.location-form-label,
.location-form-group > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.location-form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}
.location-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.location-readonly-value {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}
.location-data-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}
.location-logo-field .location-logo-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  min-width: 120px;
  min-height: 120px;
}
.location-logo-field .location-logo-preview[hidden] { display: none !important; }
.location-logo-field .location-logo-preview img {
  display: block;
  max-width: 160px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.location-logo-remove {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.location-logo-remove[hidden] { display: none !important; }
.location-logo-picker { display: inline-block; cursor: pointer; }
.location-logo-picker input { display: none; }
@media (max-width: 900px) {
  .location-data-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .location-form-row { grid-template-columns: 1fr; }
}
.location-type-hint { margin: 0.35rem 0 0.85rem; font-size: 0.82rem; min-height: 1.2em; }
.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
  font-weight: 500;
}
.checkbox-row input { width: auto; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.btn-icon { display: inline-flex; margin-right: 0.35rem; vertical-align: middle; }
.btn-icon svg { width: 1rem; height: 1rem; }

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.stat-card.accent-teal { border-left-color: var(--accent); }
.stat-card.accent-indigo { border-left-color: var(--indigo); }
.stat-card.accent-amber { border-left-color: var(--amber); }
.stat-card.accent-green { border-left-color: var(--green); }
.stat-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 0.35rem 0; letter-spacing: -0.03em; }
.stat-value-sm { font-size: 1.15rem; font-weight: 700; }
.stat-hint { font-size: 0.78rem; color: var(--muted); }

/* Period toolbar */
.period-toolbar { margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.period-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.period-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.12s;
}
.period-chip strong { color: var(--text); font-weight: 700; }
.period-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.period-chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }

.period-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.period-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
}
.period-field label {
  display: inline;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1;
  white-space: nowrap;
}
.period-field input[type="date"] {
  width: auto;
  margin: 0;
  min-width: 150px;
  height: 38px;
  padding: 0.4rem 0.65rem;
  box-sizing: border-box;
}
.period-submit {
  height: 38px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.content-lang-bar .lang-flag {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  overflow: hidden;
}
.content-lang-bar .lang-flag-icon {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.35rem;
  line-height: 1.35rem;
  border-radius: 50%;
  overflow: hidden;
  display: block;
}
.lang-flag:hover { border-color: var(--accent); text-decoration: none; }
.lang-flag.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
  gap: 1.25rem;
  width: 100%;
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .panel-layout { flex-direction: column; }
  .panel-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem;
  }
  .sidebar-brand {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .panel-content-topbar { padding: 0.5rem 1rem; }
  .panel-content-body { padding: 0.75rem 1rem 1rem; }
  .panel-content-body--layout { padding: 0 !important; }
  .content-user-chip { max-width: 180px; }
}

.type-list { list-style: none; }
.type-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}
.type-list li:last-child { border-bottom: none; }

/* Tables */
.data-table, table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td, th, td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem;
}
.data-table th, th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table tbody tr:hover { background: var(--surface-hover); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}
.badge-pending { background: var(--amber-soft); color: #b45309; }
.badge-approved { background: var(--green-soft); color: #047857; }
.badge-rejected { background: var(--danger-soft); color: #b91c1c; }
.badge-suspended { background: var(--bg-soft); color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 1rem;
}
.empty-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.6;
}
.empty-state h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); max-width: 400px; margin: 0 auto; }

.floor-canvas {
  position: relative;
  background: var(--bg-soft);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}

.module-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

/* Layout editor */
.panel-main--layout {
  min-height: 0;
}
.panel-content-body--layout {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.layout-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  width: 100%;
}

.layout-toolbar-card {
  background: #fff;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  width: 100%;
}
.panel-content-body--layout .layout-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0;
}
.panel-content-body--layout .layout-toolbar-row + .layout-toolbar-row {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.panel-content-body--layout .layout-toolbar-row > *:first-child {
  margin-left: 0.65rem;
}
.panel-content-body--layout .layout-toolbar-actions > *:last-child {
  margin-right: 0.65rem;
}
.layout-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
}
.layout-toolbar-row + .layout-toolbar-row {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.layout-toolbar-actions { gap: 0.75rem; }
.layout-toolbar-spacer { flex: 1; min-width: 1rem; }
.layout-btn-zone { white-space: nowrap; }

.layout-zone-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.2rem;
  background: #f1f5f9;
  border-radius: 10px;
}
.layout-zone-tab-item {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.15s, box-shadow 0.15s;
}
.layout-zone-tab-item:hover { background: rgba(255, 255, 255, 0.6); }
.layout-zone-tab-item.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.layout-zone-tab {
  border: none;
  background: transparent;
  color: #64748b;
  padding: 0.45rem 0.35rem 0.45rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px 0 0 8px;
  transition: color 0.15s;
}
.layout-zone-tab-item:hover .layout-zone-tab { color: #334155; }
.layout-zone-tab-item.active .layout-zone-tab { color: var(--accent-hover); }
.layout-zone-tab-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 0.4rem 0.55rem 0.4rem 0.2rem;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.layout-zone-tab-edit svg {
  width: 0.8rem;
  height: 0.8rem;
}
.layout-zone-tab-item:hover .layout-zone-tab-edit,
.layout-zone-tab-item.active .layout-zone-tab-edit {
  opacity: 1;
}
.layout-zone-tab-edit:hover {
  color: var(--accent-hover);
}
.layout-save-status.is-success { color: var(--accent); font-weight: 600; }
.layout-canvas-hint { font-size: 0.8rem; margin: 0; max-width: 520px; line-height: 1.4; }

.layout-workspace {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
/* Floor canvas — fills available workspace */
.floor-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  background: #fafbfc;
  border: none;
  border-right: 1px solid #e2e8f0;
  padding: 0;
  overflow: hidden;
}
.floor-stage {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background-color: #fafbfc;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
  transition: box-shadow 0.2s;
}
.floor-stage.is-drag-over {
  box-shadow:
    inset 0 0 0 2px var(--accent),
    inset 0 0 24px rgba(13, 148, 136, 0.08);
}
.floor-tables {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.floor-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}
.floor-empty::before {
  content: "⊞";
  font-size: 2rem;
  opacity: 0.5;
}
.floor-empty[hidden] {
  display: none !important;
}

/* Right sidebar — table palette */
.layout-palette {
  width: 300px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  overflow: hidden;
}
.layout-palette-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.15rem 1.15rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.layout-palette-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}
.layout-palette-icon svg { width: 18px; height: 18px; }
.layout-palette-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.layout-palette-desc {
  font-size: 0.78rem;
  margin: 0;
  color: #64748b;
  line-height: 1.4;
}
.layout-palette-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.layout-palette-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: grab;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.layout-palette-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.layout-palette-item:active {
  cursor: grabbing;
  transform: scale(0.98);
}
.layout-palette-grip {
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.layout-palette-grip svg { width: 14px; height: 14px; }
.layout-palette-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.layout-palette-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}
.layout-palette-seats {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}
.layout-palette-preview {
  flex-shrink: 0;
  background: linear-gradient(145deg, #f8fafc, #e2e8f0);
  border: 2.5px solid #94a3b8;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.layout-palette-preview.shape-square { border-radius: 6px; }
.layout-palette-preview.shape-round { border-radius: 50%; }
.layout-palette-preview.shape-rectangle { border-radius: 8px; }
.layout-palette-preview.seats-2 { width: 40px; height: 40px; }
.layout-palette-preview.seats-4 { width: 48px; height: 48px; }
.layout-palette-preview.seats-6 { width: 56px; height: 32px; }
.layout-palette-preview.seats-8 { width: 64px; height: 34px; }
.layout-toolbar-actions .layout-delete-zone {
  color: #b91c1c !important;
  border-color: #fecaca !important;
}
.layout-toolbar-actions .layout-delete-zone:hover {
  background: #fef2f2 !important;
}

/* Tables on floor stage */
.floor-table {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transform-origin: center center;
  touch-action: none;
}
.floor-table.shape-square .floor-table-body { border-radius: 10px; }
.floor-table.shape-round .floor-table-body { border-radius: 50%; }
.floor-table.shape-rectangle .floor-table-body { border-radius: 12px; }
.floor-table-body {
  flex-shrink: 0;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 55%, #e2e8f0 100%);
  border: 3px solid #475569;
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.14),
    0 2px 4px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  pointer-events: none;
}
.floor-table:hover .floor-table-body {
  border-color: #334155;
}
.floor-table.is-selected {
  z-index: 10;
  cursor: grabbing;
}
.floor-table.is-selected .floor-table-body {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(13, 148, 136, 0.35),
    0 8px 24px rgba(13, 148, 136, 0.2);
}
.floor-table-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  line-height: 1;
}
.floor-table-seats {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.floor-table.is-selected .floor-table-label { color: var(--accent-hover); }
.floor-table-rotate {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  z-index: 12;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  pointer-events: auto;
}
.floor-table-rotate:hover {
  background: var(--accent-hover);
}

@media (max-width: 1100px) {
  .layout-workspace {
    flex-direction: column;
  }
  .floor-viewport {
    min-height: 280px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .layout-palette {
    width: 100%;
    max-height: 280px;
  }
  .layout-palette-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .layout-palette-item { flex: 1 1 220px; }
}

/* Menu management */
.menu-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}
.menu-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 1 280px;
}
.menu-admin-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 160px;
  max-width: 240px;
  min-height: 3.25rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.menu-admin-action:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.menu-admin-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.menu-admin-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  flex-shrink: 0;
}
.menu-admin-action-icon svg { width: 1.1rem; height: 1.1rem; }
.menu-admin-action-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.menu-admin-action-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}
.menu-admin-action-text small {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-admin-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 420px;
  min-height: 3.25rem;
}
.menu-admin-search .menu-search-label {
  display: block;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.menu-admin-search .menu-admin-search-field {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.9rem;
}
.menu-admin-search .location-picker-search {
  font-size: 0.9rem;
}
.menu-modal-tags {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.menu-modal-tags-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}
.menu-edit-footer--end {
  justify-content: flex-end;
  margin-top: 1rem;
}
.menu-admin-panels {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) {
  .menu-admin-action { max-width: none; }
  .menu-admin-search { max-width: none; }
}
.menu-panel {
  padding: 0;
  overflow: hidden;
}
.menu-panel-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.menu-panel-summary::-webkit-details-marker { display: none; }
.menu-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.menu-panel-meta {
  flex: 1;
  font-size: 0.82rem;
  color: #64748b;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-panel-chevron {
  display: inline-flex;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.menu-panel-chevron svg { width: 1rem; height: 1rem; }
.menu-panel[open] .menu-panel-chevron { transform: rotate(180deg); }
.menu-panel-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #e2e8f0;
}
.menu-panel-body .menu-form { padding-top: 0.85rem; }
.menu-form-card { max-width: none; margin-bottom: 0; }
.menu-form .menu-form-group {
  margin-bottom: 1.15rem;
}
.menu-form .menu-form-group:last-child {
  margin-bottom: 0;
}
.menu-form .menu-form-label,
.menu-form .menu-form-group > label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.menu-form textarea { resize: vertical; min-height: 72px; }
.menu-form .menu-form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}
.menu-form-actions {
  margin-top: 1.35rem;
  padding-top: 0.15rem;
}
.menu-form-field { margin-bottom: 0.15rem; }
.menu-photo-field .menu-photo-preview {
  position: relative;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  max-width: 132px;
}
.menu-photo-field .menu-photo-preview[hidden] {
  display: none !important;
}
.menu-photo-field .menu-photo-preview:not([hidden]) {
  display: inline-flex;
}
.menu-photo-remove[hidden] {
  display: none !important;
}
.menu-photo-field .menu-photo-preview img {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 90px;
  height: auto;
  object-fit: contain;
}
.menu-photo-remove {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-photo-picker {
  display: inline-block;
  cursor: pointer;
}
.menu-photo-picker input { display: none; }
.menu-photo-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.menu-photo-picker-btn svg { width: 1rem; height: 1rem; }
.menu-photo-status {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
}
.menu-form-inline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.menu-form-inline .menu-form-submit {
  align-self: flex-start;
  margin-top: 0.85rem;
}
.menu-category-tags {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.menu-category-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.menu-category-section { margin-bottom: 1.5rem; }
.menu-category-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}
.menu-category-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.menu-category-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.menu-item-card { position: relative; overflow: hidden; padding: 0; }
.menu-item-edit-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}
.menu-item-edit-btn:hover {
  background: #fff;
  color: var(--accent);
  transform: scale(1.05);
}
.menu-item-edit-btn svg { width: 1rem; height: 1rem; }
.menu-item-photo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.menu-item-photo {
  width: auto;
  max-width: 100%;
  max-height: 108px;
  object-fit: contain;
  display: block;
}
.menu-item-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  color: #94a3b8;
}
.menu-item-photo-empty svg { width: 32px; height: 32px; }
.menu-item-body { padding: 1rem; }
.menu-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.menu-item-head h3 { margin: 0; font-size: 1rem; }
.menu-item-price { font-weight: 700; white-space: nowrap; }
.menu-item-desc {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}
.menu-item-notes {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}
.menu-item-notes span { font-weight: 600; }
.menu-item-card.is-hidden { display: none; }
.menu-category-section.is-hidden { display: none; }

.menu-catalog-toolbar {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
}
.menu-search-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.menu-search-wrap {
  position: relative;
}
.menu-search-wrap .menu-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
  pointer-events: none;
}
.menu-search-wrap .menu-search-input {
  width: 100%;
  padding-left: 2.35rem !important;
}
.menu-no-results {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
}

.menu-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.menu-edit-modal[hidden] { display: none !important; }
body.menu-modal-open { overflow: hidden; }
.menu-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.menu-edit-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  margin: 0;
}
.menu-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.menu-edit-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.menu-edit-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0.15rem 0.35rem;
}
.menu-edit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}
.menu-edit-delete-form { margin: 0; }
.menu-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

/* Alerts */
.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.alert.is-dismissing {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease, border-width 0.35s ease;
}

/* Table QR codes (stacked by zone) */
.qr-zones-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.qr-zone-block { padding: 1.1rem; }
.qr-zone-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.qr-zone-block-head h2 { margin: 0; font-size: 1.15rem; }
.qr-zone-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}
.qr-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.qr-table-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.qr-table-card-head { width: 100%; }
.qr-table-label {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}
.qr-table-meta {
  font-size: 0.82rem;
  color: #64748b;
}
.qr-table-image {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.qr-table-url {
  margin: 0;
  font-size: 0.82rem;
}
.qr-table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.qr-generic-card { margin-bottom: 1.25rem; }
.qr-generic-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 0 1rem 1rem;
}
.qr-generic-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Employees admin */
.employee-create-form .location-form-group {
  margin-bottom: 0.4rem;
}
.employee-create-form .location-form-group input {
  margin-bottom: 0;
}
.employee-pin-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
}
.menu-edit-dialog .employee-form-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.employee-screens-field {
  margin: 0 0 0.25rem;
}
.employee-screens-field .location-form-label {
  display: block;
  margin-bottom: 0.55rem;
}
.employee-screens-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}
.employee-form-actions {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
}
.employee-screens-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.employee-screen-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background: #f8fafc;
  color: #334155;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.employee-screen-chip:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.employee-screen-chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.employee-screen-chip:has(.employee-screen-chip-input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.employee-screen-chip-label {
  display: block;
}
.employee-screen-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.badge-soft {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}
.employee-table-card { overflow-x: auto; }
.employee-pin {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  background: #f1f5f9;
  border-radius: 6px;
}
.employee-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.employee-edit-row[hidden] { display: none !important; }
.employee-edit-row.is-open td {
  background: #f8fafc;
  padding: 0.85rem 1rem 1rem !important;
  border-top: none;
  box-shadow: inset 0 3px 0 var(--accent-soft);
}
.employee-row.is-editing td {
  background: #fafbfc;
}
.employee-screens-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}
.employee-screens-field--compact {
  margin: 0;
  width: 100%;
}
.employee-screens-field--compact .location-form-label {
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}
.employee-screens-form-actions {
  padding-top: 0.15rem;
}
.employee-pin-alert { margin-bottom: 1rem; }

/* Stock admin */
.stock-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}
.stock-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
}
.stock-filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 0.85rem;
  background: #fff;
  color: #475569;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.stock-filter-tab:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.stock-filter-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.stock-filter-tab--out:not(.is-active) {
  border-color: #fecaca;
  color: #b91c1c;
}
.stock-filter-tab--out.is-active {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}
.stock-filter-tab--warn:not(.is-active) {
  border-color: #fde68a;
  color: #b45309;
}
.stock-filter-tab--warn.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}
.stock-admin-search {
  flex: 1 1 220px;
  max-width: 420px;
  min-height: 2.5rem;
  margin-left: auto;
}
.stock-low-settings {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.stock-low-settings-form {
  margin: 0;
}
.stock-low-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.stock-low-settings-lead,
.stock-low-settings-suffix {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.25;
}
.stock-low-settings-lead {
  font-weight: 600;
  color: #92400e;
}
.stock-low-threshold-input {
  width: 3.75rem;
  min-width: 3.75rem;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.45rem;
  box-sizing: border-box;
  flex-shrink: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stock-low-threshold-input::-webkit-outer-spin-button,
.stock-low-threshold-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stock-low-settings-suffix {
  color: #78350f;
}
.stock-low-settings-row .stock-low-settings-save {
  height: 2.5rem;
  margin: 0;
  flex-shrink: 0;
}
.stock-low-settings-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}
.stock-no-results {
  text-align: center;
  padding: 0 1rem 1rem;
  margin: 0;
}
.stock-empty-state {
  margin: 0;
  padding: 1.25rem 0;
  text-align: center;
}
.stock-table-card {
  overflow-x: auto;
  padding: 0 0.25rem 0.25rem;
}
.stock-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}
.stock-table thead th {
  border-bottom: none;
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
}
.stock-table tbody td {
  border-bottom: none;
  vertical-align: middle;
}
.stock-table tbody tr {
  background: #fff;
  box-shadow: 0 0 0 1px #e8edf3;
}
.stock-table tbody tr td:first-child {
  border-radius: 10px 0 0 10px;
}
.stock-table tbody tr td:last-child {
  border-radius: 0 10px 10px 0;
}
.stock-table tbody tr:hover {
  box-shadow: 0 0 0 1px #cbd5e1;
}
.stock-table tr.is-hidden { display: none; }
.stock-col-name { width: auto; }
.stock-col-ean { width: 9.5rem; }
.stock-col-price { width: 6.5rem; }
.stock-col-qty { width: 5.5rem; }
.stock-col-actions { width: 3rem; }
.stock-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.stock-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.stock-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}
.stock-thumb--empty svg { width: 18px; height: 18px; }
.stock-qty-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.stock-table .stock-col-actions {
  text-align: center;
  padding-right: 0.75rem;
}
.stock-item-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.stock-item-edit-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.stock-item-edit-btn svg { width: 1rem; height: 1rem; }
.stock-table .stock-col-ean,
.stock-table .stock-col-price,
.stock-table .stock-col-qty {
  text-align: right;
  padding-left: 0.5rem;
  padding-right: 1rem;
}
.stock-cell-num {
  display: inline-block;
  min-width: 100%;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stock-row--out td {
  background: #fef2f2;
}
.stock-row--low td {
  background: #fffbeb;
}
.stock-form .location-form-group input,
.stock-form .location-form-group select {
  margin-bottom: 0;
}
.stock-form .location-form-group { margin-bottom: 0.85rem; }
.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;
}

/* Overview placeholder */
.overview-shell {
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 640px;
}
.overview-shell-icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.overview-coming-list {
  text-align: left;
  max-width: 360px;
  margin: 1rem auto 0;
  padding-left: 1.2rem;
}

/* Location access code */
.location-access-code-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.location-access-code {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.65rem;
  background: #f1f5f9;
  border-radius: 8px;
}

/* Public menu (QR scan) */
.public-menu {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 2rem;
  min-height: 100vh;
  background: #f8fafc;
}
.public-menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}
.public-menu-topbar-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}
.public-menu-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
}
.public-menu-topbar-sub {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
}
.public-menu-cart-btn {
  position: relative;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
}
.public-menu-cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
}
.public-menu-body { padding: 1rem; }
.public-menu-table {
  margin: 0;
  padding: 0.65rem 1rem 0;
  color: #64748b;
  font-weight: 600;
}
.public-table-picker { margin: 1rem; padding: 1rem; }
.public-picker-zone { margin: 1rem 0 0.5rem; font-size: 0.95rem; }
.public-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}
.public-picker-table {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
}
.public-takeaway-btn { width: 100%; margin-top: 1rem; }
.public-cart-drawer[hidden],
.public-cart-backdrop[hidden] {
  display: none !important;
}
.public-cart-drawer {
  position: fixed;
  inset: auto 0 0 0;
  max-height: 70vh;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.15);
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.public-cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.public-cart-drawer-head h2 { margin: 0; font-size: 1rem; }
.public-cart-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.public-cart-lines {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow-y: auto;
  flex: 1;
}
.public-cart-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.public-cart-line-name { flex: 1; font-weight: 600; }
.public-cart-line-meta { font-size: 0.82rem; color: #64748b; }
.public-cart-line-remove {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.public-cart-footer {
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.public-cart-total-row {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.25rem;
}
.btn-block { width: 100%; justify-content: center; }
.public-menu-category { margin-bottom: 1.35rem; }
.public-menu-category-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e2e8f0;
}
.public-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.public-menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.public-menu-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
}
.public-menu-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.public-menu-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.4;
}
.public-menu-notes {
  font-size: 0.78rem;
  color: #94a3b8;
  font-style: italic;
}
.public-menu-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.15rem;
}
.price-input { font-variant-numeric: tabular-nums; }
.public-menu-cart {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}
.public-menu-cart-summary {
  font-size: 0.95rem;
}
.public-menu-empty {
  text-align: center;
  padding: 2rem 1rem;
}

/* Category grid (QR first screen) */
.public-view-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}
.public-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.public-category-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.public-category-cover-wrap {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}
.public-category-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.public-category-cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}
.public-category-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.25;
}
.public-category-count {
  font-size: 0.78rem;
  color: #64748b;
}

/* Products view */
.public-view-products[hidden],
.public-view-categories[hidden],
.public-menu-products-panel[hidden] {
  display: none !important;
}
.public-products-toolbar {
  margin-bottom: 0.75rem;
}
.public-menu-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  color: #0d9488;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.public-products-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

/* QR menu v2 */
.public-menu-search-wrap {
  padding: 0;
  margin-bottom: 0.5rem;
}
.public-menu-search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 0.85rem center;
}
.public-menu-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.public-search-empty {
  text-align: center;
  padding: 1rem;
  margin: 0;
}
.public-menu-cart-icon { display: block; }
.public-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 25;
}
body.public-cart-open { overflow: hidden; }
.public-cart-drawer {
  z-index: 30;
  max-height: 85vh;
}
.public-cart-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 0 0.5rem;
}
.public-cart-empty {
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
  margin: 0;
  font-size: 0.9rem;
}
.public-cart-line {
  padding: 0.65rem 1rem;
  align-items: center;
}
.public-cart-line-main {
  flex: 1;
  min-width: 0;
}
.public-cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.15rem 0.35rem;
}
.public-cart-qty-btn {
  border: none;
  background: #fff;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  line-height: 1;
}
.public-cart-qty-num {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.public-sent-block {
  margin: 0.5rem 1rem 0;
  padding: 0.75rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
}
.public-sent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.public-sent-head h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f766e;
}
.public-sent-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d9488;
  background: #ccfbf1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.public-sent-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.public-sent-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid #ccfbf1;
}
.public-sent-line:last-child { border-bottom: none; }
.public-sent-line-qty {
  font-weight: 700;
  color: #0f766e;
  min-width: 2rem;
}
.public-sent-line-name { flex: 1; }
.public-sent-line-price { font-weight: 600; }
.public-sent-total-row {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}
.public-cart-hint {
  text-align: center;
  font-size: 0.85rem;
  margin: 0;
}
.public-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(120%);
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  z-index: 40;
  max-width: 90vw;
  text-align: center;
  transition: transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.public-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}
.public-menu-item[hidden],
.public-menu-category[hidden] {
  display: none !important;
}
