/**
 * Dashboard (control room) and Edit menu page styles
 */

.hidden { display: none !important; }

.dashboard-draft-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.dashboard-draft-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.dashboard-draft-modal-dialog {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 360px;
  width: 100%;
}
.dashboard-draft-modal-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.dashboard-draft-modal-text {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}
.dashboard-draft-modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-save-options-dialog {
  max-width: 460px;
}
.dashboard-save-options-list {
  margin: 0 0 1.15rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.92;
}
.dashboard-save-options-list li {
  margin-bottom: 0.45rem;
}
.dashboard-save-options-list li:last-child {
  margin-bottom: 0;
}
.dashboard-save-options-actions {
  flex-direction: column;
  align-items: stretch;
}
.dashboard-save-options-actions .btn-dash {
  width: 100%;
  justify-content: center;
}

.dashboard-section-image-path-row {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.dashboard-section-image-path-row .dashboard-section-image-path-input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.dashboard-menu-item-promo-image-path-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.dashboard-menu-item-promo-image-path-row .menu-item-promo-image {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.dashboard-image-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}

.dashboard-leave-snapshot-note {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.45);
  background: rgba(102, 126, 234, 0.12);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Choose saved menu version modal */
.dashboard-version-modal-dialog {
  max-width: 420px;
}
.dashboard-version-modal-loading,
.dashboard-version-modal-error,
.dashboard-version-modal-empty {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
}
.dashboard-version-modal-error {
  color: #fca5a5;
}
.dashboard-version-modal-empty {
  opacity: 0.92;
}
.dashboard-version-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-height: min(50vh, 280px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.dashboard-version-item {
  margin: 0;
}
.dashboard-version-item-btn {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  box-sizing: border-box;
}
.dashboard-version-item-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(102, 126, 234, 0.55);
}
.dashboard-version-item-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.55);
}
.dashboard-version-item-title {
  font-weight: 600;
}
.dashboard-version-item-when {
  font-size: 0.72rem;
  opacity: 0.88;
  font-weight: 400;
}
.dashboard-version-item-extra {
  display: none;
}
.dashboard-version-list-expanded .dashboard-version-item-extra {
  display: block;
}
.dashboard-version-more-wrap {
  margin: 0 0 0.75rem;
  text-align: center;
}
.dashboard-version-more-link {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: rgba(147, 197, 253, 0.95);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dashboard-version-more-link:hover {
  color: #fff;
}
.dashboard-version-modal-actions {
  margin-top: 0.25rem;
}

.dashboard-publish-summary-dialog {
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.dashboard-publish-summary-dialog .dashboard-draft-modal-text {
  flex-shrink: 0;
}
.dashboard-publish-summary-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.dashboard-publish-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.dashboard-publish-summary-item:last-child {
  border-bottom: none;
}
.dashboard-publish-summary-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  word-break: break-word;
}
.dashboard-publish-summary-revert {
  flex-shrink: 0;
  min-width: 2rem;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}
.dashboard-publish-summary-actions {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ========== Control room (/dashboard/) ========== */

.dashboard-control-room {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 2rem;
  color: #fff;
}

.dashboard-control-room .dashboard-header {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: transparent;
  color: #fff;
}

.dashboard-control-room .dashboard-header a,
.dashboard-control-room .dashboard-header .dashboard-title,
.dashboard-control-room .dashboard-header .dashboard-subtitle {
  color: inherit;
}

.dashboard-control-room .dashboard-header-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: -webkit-fill-available;
}

.dashboard-control-room .dashboard-header-container {
  display: flex;
  width: -webkit-fill-available;
  flex-direction: row;
  justify-content: space-between;
}

.dashboard-control-room .dashboard-logo-link {
  display: inline-block;
  text-decoration: none;
}

.dashboard-control-room .dashboard-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-control-room .dashboard-title {
  font-weight: 700;
  margin: 0;
  width: -webkit-fill-available;
  padding: .5em 0 0 0;
}

.dashboard-control-room .dashboard-subtitle {
  opacity: 0.85;
  font-size: 0.95rem;
  margin-block: 0.25rem;
  width: -webkit-fill-available;
}

.dashboard-control-room .dashboard-header-user-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
  width: -webkit-fill-available;
  justify-content: space-between;
}

.dashboard-control-room .dashboard-header-user-business,
.dashboard-control-room .dashboard-header-user-name {
  flex-shrink: 0;
}

.dashboard-control-room .dashboard-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-control-room .btn-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.dashboard-control-room .btn-dash:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dashboard-control-room .btn-dash-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.dashboard-control-room .btn-dash-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.dashboard-control-room .btn-dash-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dashboard-control-room .cards {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.dashboard-control-room .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.dashboard-control-room .card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.dashboard-control-room .card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.dashboard-control-room .card p {
  margin: 0;
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dashboard-control-room .card a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.dashboard-control-room .card a:hover {
  text-decoration: underline;
}

.dashboard-control-room .card .btn-dash {
  margin-top: 0.75rem;
  width: -webkit-fill-available;
}

.dashboard-card-notify-snapshot {
  margin: 0.75rem 0 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-card-notify-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.dashboard-card-notify-snapshot-cell {
  min-width: 0;
}

.dashboard-card-notify-snapshot-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.78;
  margin-bottom: 0.15rem;
}

.dashboard-card-notify-snapshot-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.dashboard-card-edit-menu-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.dashboard-card-edit-menu-top .btn-dash {
  margin-top: 0;
}

.dashboard-card-edit-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}
.dashboard-card-edit-menu-actions .btn-dash {
  margin-top: 0.35rem;
}

.dashboard-publish-flash {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #bbf7d0;
  font-size: 0.86rem;
  line-height: 1.4;
}
.dashboard-publish-flash.hidden {
  display: none !important;
}

.dashboard-menu-status-panel {
  margin: 0.75rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
  line-height: 1.45;
}
.dashboard-menu-status-block + .dashboard-menu-status-block {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-menu-status-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}
.dashboard-menu-status-body p {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  opacity: 0.95;
}
.dashboard-menu-status-body p:last-child {
  margin-bottom: 0;
}
.dashboard-menu-status-muted {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem !important;
}
.dashboard-menu-status-success {
  color: #bbf7d0;
  font-size: 0.84rem !important;
}
.dashboard-menu-status-error {
  color: #fecaca;
  font-size: 0.84rem !important;
}
.dashboard-menu-status-file-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  opacity: 0.92;
  font-size: 0.8rem;
}
.dashboard-menu-status-file-list li {
  margin-bottom: 0.2rem;
}

.dashboard-control-room .user-info {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Shared .btn-dash for edit page (outside .dashboard-control-room) */
.btn-dash {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-size: xx-small;
  text-wrap-mode: nowrap;
  justify-content: center;
}

.btn-dash:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-dash-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-dash-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-dash-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-dash-danger {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: 1px solid rgba(220, 38, 38, 0.5);
}
.btn-dash-danger:hover {
  background: rgba(185, 28, 28, 0.95);
  border-color: rgba(220, 38, 38, 0.8);
}
.btn-dash-danger .fa {
}

/* ========== Edit menu page (/edit-menu/) ========== */

.dashboard-edit-page {
  min-height: 100vh;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.dashboard-edit-header {
  flex-shrink: 0;
  background: #16213e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  height: min-content;
  color: #fff;
}

.dashboard-edit-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
  white-space: nowrap;
}

.dashboard-edit-header-inner a {
  color: #e2e8f0;
}

.dashboard-edit-header-inner a:hover {
  color: #fff;
}

.dashboard-edit-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.dashboard-edit-mode-toggle {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-edit-toggle-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-size: xx-small;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.dashboard-edit-toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-edit-toggle-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.dashboard-edit-submode-wrap {
  display: inline-flex;
  align-items: center;
}

.dashboard-edit-submode-wrap.hidden {
  display: none !important;
}

.dashboard-edit-layout {
  flex: 1;
  display: flex;
  grid-template-columns: 1fr 320px;
  grid-template-rows: 1fr;
  min-height: 0;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  justify-content: space-between;
}

.dashboard-edit-preview {
  display: flex;
  flex-direction: column;
  width: -webkit-fill-available;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-edit-preview-frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}

.dashboard-edit-preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.dashboard-edit-options {
  overflow: hidden;
  min-width: 0;
  width: -webkit-fill-available;
  max-width: 444PX;
  max-height: calc(100vh - 3.5em);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0000005c 0%, #0d1b2a59 100%);
  backdrop-filter: blur(10px);
  transition: max-width 0.25s ease;
  position: fixed;
  right: 0;
}

.dashboard-edit-options-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-edit-options-header .dashboard-edit-selected-type {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-edit-options-header .dashboard-edit-selected-type:empty {
  display: none;
}

.dashboard-edit-options-header .dashboard-edit-header-mark-btn {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
}

.dashboard-edit-options-header .dashboard-edit-header-mark-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dashboard-edit-options-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  margin-left: 0;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dashboard-edit-options-toggle:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.dashboard-edit-options-toggle-icon {
  font-size: 0.75rem;
}

.dashboard-edit-options-collapsed .dashboard-edit-options-inner {
  display: none;
}

.dashboard-edit-options-collapsed {
  background: none;
  max-width: 0;
}

.dashboard-edit-options-collapsed .dashboard-edit-options-toggle-text {
  display: none;
}

.dashboard-edit-options-collapsed .dashboard-edit-options-header {
  padding: 0.5rem;
}

.dashboard-edit-options-collapsed .dashboard-edit-header-mark-btn {
  display: none;
}

.dashboard-edit-options-inner {
  padding: 0.25rem 1.25rem 1.25rem 1.25rem;
  flex: 1;
  min-height: calc(100vh - 6em);
  max-height: calc(100vh - 6em);
  overflow-y: auto;
}

.dashboard-edit-options-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.dashboard-edit-options-intro {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.5;
}

.dashboard-edit-prompt {
  margin-bottom: 1rem;
}

.dashboard-edit-form.hidden,
.dashboard-edit-prompt.hidden {
  display: none !important;
}

/* ----- Edit form: layout and header ----- */
.dashboard-edit-form {
  padding: 0.25rem 0;
}
.dashboard-edit-selected-type {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.35);
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.dashboard-edit-content-source {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: xx-small;
  padding: 0.25rem 0.5rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  word-break: break-all;
  line-height: 1.4;
}

.dashboard-edit-options.hidden {
  display: none !important;
}

/* ========== Color mode aside (independent from content aside) ========== */
.dashboard-edit-color-aside {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 11rem;
  max-width: 11rem;
  width: 100%;
  max-height: calc(100vh - 4em);
  position: fixed;
  right: 0;
  top: 4rem;
  bottom: 0;
  background: linear-gradient(180deg, #00000000 0%, #0d1b2a59 100%);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  transition: max-width 0.25s ease, min-width 0.25s ease;
  z-index: 100;
}

.dashboard-edit-color-aside.hidden {
  display: none !important;
}

.dashboard-edit-color-aside-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.dashboard-edit-color-aside-toggle-text {
  display: none !important;
}

.dashboard-edit-color-aside-toggle:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.dashboard-edit-color-aside-toggle-icon {
  font-size: 0.75rem;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-aside-inner {
  padding: 0.75rem 1rem;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-form {
  display: none !important;
}

.dashboard-edit-color-aside-collapsed {
  min-width: 6rem;
  max-width: 6rem;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-aside-toggle {
  display: none !important;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-intro {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-sections {
  gap: 0.35rem;
}

.dashboard-edit-color-aside-collapsed .dashboard-edit-color-section-btn {
  padding: 0.8rem;
}

.dashboard-edit-color-aside-inner {
  padding: 1.25rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dashboard-edit-color-aside-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-edit-color-aside-header .dashboard-edit-color-section-label {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: end;
}

.dashboard-edit-color-aside-header .dashboard-edit-color-section-label:empty {
  display: none;
}

.dashboard-edit-color-aside-header .dashboard-edit-color-aside-toggle {
  flex-shrink: 0;
}

.dashboard-edit-color-prompt {
  margin-bottom: 1rem;
  width: -webkit-fill-available;
}

.dashboard-edit-color-intro {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.dashboard-edit-color-sections {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: -webkit-fill-available;
}

.dashboard-edit-color-section-btn {
  width: 100%;
  text-align: left;
}

.dashboard-edit-color-section-btn.hidden {
  display: none !important;
}

.dashboard-edit-color-prompt .dashboard-edit-color-intro.hidden {
  display: none !important;
}

.dashboard-edit-color-form.hidden {
  display: none !important;
}

.dashboard-edit-color-section-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #93c5fd;
}

.dashboard-edit-color-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dashboard-edit-color-fields .dashboard-edit-field {
  margin: 0;
}

.dashboard-edit-color-fields .dashboard-edit-field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.dashboard-edit-color-fields .dashboard-edit-input {
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: x-small;
}

.dashboard-edit-color-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row;
}

.dashboard-edit-color-picker {
  width: 2.25rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.dashboard-edit-color-picker::-webkit-color-swatch-wrapper { padding: 2px; }
.dashboard-edit-color-picker::-webkit-color-swatch { border-radius: 4px; border: none; }

.dashboard-edit-color-field-row .dashboard-edit-input {
  flex: 1;
  min-width: 3em;
}

.dashboard-edit-color-slider {
  width: 100%;
  min-width: 80px;
  height: 0.5rem;
  margin: 0;
  accent-color: #667eea;
}

.dashboard-edit-color-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-edit-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.dashboard-edit-field-group.hidden {
  display: none !important;
}
.dashboard-edit-section-fields.hidden {
  display: none !important;
}
.dashboard-edit-menuitem-fields.hidden {
  display: none !important;
}

/* Edit panel: shared chrome for all .dashboard-btn (secondary actions, wizard footer, etc.) */
.dashboard-edit-options-inner .dashboard-btn,
.dashboard-edit-form .dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.dashboard-edit-options-inner .dashboard-btn-secondary,
.dashboard-edit-form .dashboard-btn-secondary {
  padding: 0.45rem 0.85rem;
  width: -webkit-fill-available;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}
.dashboard-edit-options-inner .dashboard-btn-secondary:hover,
.dashboard-edit-form .dashboard-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.dashboard-edit-options-inner .dashboard-btn-secondary:focus-visible,
.dashboard-edit-form .dashboard-btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.55);
}

/* Menu item wizard: step tabs (aligned with .btn-dash-secondary / edit panel) */
.dashboard-menu-item-wizard-nav {
  display: flex;
  margin-block-end: .25em;
  gap: 0.4rem;
  width: -webkit-fill-available;
  flex-wrap: wrap;
  justify-content: center;
}
.dashboard-wizard-tab {
  margin: 0;
  text-wrap-mode: nowrap;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-wizard-tab:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.dashboard-wizard-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.55);
}
.dashboard-wizard-tab-active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.45) 0%, rgba(118, 75, 162, 0.4) 100%);
  border-color: rgba(102, 126, 234, 0.75);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.dashboard-wizard-tab-active:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.55) 0%, rgba(118, 75, 162, 0.48) 100%);
  border-color: rgba(102, 126, 234, 0.9);
}
.dashboard-menu-item-wizard-progress {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}
.dashboard-menu-item-wizard-note {
  margin-bottom: 0.65rem;
}
#dashboardWizardPanel4 .dashboard-edit-field.dashboard-menu-item-availability-times {
  display: inline-block;
  width: calc(50% - 0.35rem);
  vertical-align: top;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  #dashboardWizardPanel4 .dashboard-edit-field.dashboard-menu-item-availability-times {
    width: 100%;
  }
}
.dashboard-menu-item-wizard-panels {
  margin-bottom: 0.75rem;
  padding: 1em;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 1em;
}
.dashboard-menu-item-wizard-panel.hidden {
  display: none !important;
}
.dashboard-menu-item-wizard-footer {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: space-between;
}
.dashboard-menu-item-wizard-footer .dashboard-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dashboard-edit-field {
  margin-bottom: 0.5rem;
}
.dashboard-edit-field:last-child {
  margin-bottom: 0;
}

/* Add buttons (Add price, Add category, etc.) — dashed outline on top of base .dashboard-btn-secondary */
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-cat,
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-item,
.dashboard-edit-field .dashboard-btn-secondary#btnAddPrice,
.dashboard-edit-field .dashboard-btn-secondary#btnAddModification,
.dashboard-edit-field .dashboard-btn-secondary#btnAddAddition,
.dashboard-edit-field .dashboard-btn-secondary#btnAddTag,
.dashboard-edit-field .dashboard-btn-secondary#btnAddIngredient,
.dashboard-edit-field .dashboard-btn-secondary#btnAddCookingmethod,
.dashboard-edit-field .dashboard-btn-secondary#btnAddType,
.dashboard-edit-field .dashboard-btn-secondary#btnAddEvent,
.dashboard-edit-field .dashboard-btn-secondary#btnAddMenuItemPromotion,
.dashboard-edit-field .dashboard-btn-secondary#btnAddPromoDay {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}
.dashboard-edit-field .dashboard-btn-secondary#btnAddPrice:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddModification:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddAddition:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddTag:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddIngredient:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddCookingmethod:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddType:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddEvent:hover,
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-cat:hover,
.dashboard-edit-field .dashboard-btn-secondary.dashboard-btn-add-item:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddMenuItemPromotion:hover,
.dashboard-edit-field .dashboard-btn-secondary#btnAddPromoDay:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.dashboard-edit-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.dashboard-edit-checkbox-wrap input[type="checkbox"] {
  margin: 0;
  width: 1.1em;
  height: 1.1em;
}

.dashboard-side-categories-ui {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.side-cat-block {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.side-cat-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.6rem;
  justify-content: center;
}
.side-cat-header .side-cat-name { flex: 1 1 120px; min-width: 100px; }
.side-cat-header .side-cat-display-name { flex: 1 1 160px; min-width: 120px; }
.side-cat-min-max-group {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.side-cat-min-max-wrap {
  display: inline-flex;
  flex-direction: row;
  gap: 0.2rem;
  align-items: center;
}
.side-cat-min-max-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.side-cat-header .side-cat-min,
.side-cat-header .side-cat-max { width: 4rem; }
.side-cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.side-cat-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.side-cat-item .side-item-name { flex: 1 1 140px; min-width: 100px; }
.side-cat-item .side-item-price { width: 5rem; }
.dashboard-edit-options-inner .dashboard-btn-remove-cat,
.dashboard-edit-options-inner .dashboard-btn-remove-item,
.dashboard-edit-form .dashboard-btn-remove-cat,
.dashboard-edit-form .dashboard-btn-remove-item {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.dashboard-edit-options-inner .dashboard-btn-remove-cat:hover,
.dashboard-edit-options-inner .dashboard-btn-remove-item:hover,
.dashboard-edit-form .dashboard-btn-remove-cat:hover,
.dashboard-edit-form .dashboard-btn-remove-item:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}
.dashboard-btn-add-item {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  margin-top: 0.25rem;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-prices-ui,
.dashboard-pairs-ui,
.dashboard-list-ui {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dashboard-price-row,
.dashboard-pair-row,
.dashboard-list-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-price-row .price-size { flex: 1 1 100px; min-width: 80px; }
.dashboard-price-row .price-flavour { flex: 1 1 80px; min-width: 60px; }
.dashboard-price-row .price-price { width: 5rem; }
.dashboard-pair-row .pair-name { flex: 1 1 120px; min-width: 80px; }
.dashboard-pair-row .pair-price { width: 5rem; }
.dashboard-list-row .list-value { flex: 1 1 160px; min-width: 100px; }
.dashboard-edit-options-inner .dashboard-btn-remove-row,
.dashboard-edit-form .dashboard-btn-remove-row {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.dashboard-edit-options-inner .dashboard-btn-remove-row:hover,
.dashboard-edit-form .dashboard-btn-remove-row:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Item promotions block (wizard step 5) */
.dashboard-menu-item-promotions-ui {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.dashboard-menu-item-promo-row {
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-menu-item-promo-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.dashboard-menu-item-promo-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.dashboard-menu-item-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
}
.dashboard-menu-item-promo-field-span {
  grid-column: 1 / -1;
}
@media (max-width: 520px) {
  .dashboard-menu-item-promo-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-menu-item-images-hint {
  margin: 0 0 0.5rem !important;
  font-size: 0.72rem !important;
  text-align: left !important;
}

.dashboard-menu-item-images-ui {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dashboard-menu-item-images-upload-status {
  display: none;
  margin: 0 0 0.45rem;
  min-height: 1.15em;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(147, 197, 253, 0.95);
}

.dashboard-menu-item-images-upload-status--active {
  display: block;
}

.dashboard-menu-item-images-upload-status--error {
  color: rgba(252, 165, 165, 0.95);
}

.dashboard-menu-item-images-empty {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.dashboard-menu-item-image-row {
  display: grid;
  grid-template-columns: auto 4.25rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Home hero: single image row (no drag handle column) */
.dashboard-hero-image-row.dashboard-menu-item-image-row {
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.6rem;
}

.dashboard-hero-image-row .dashboard-menu-item-image-path-actions {
  flex-wrap: wrap;
}

.dashboard-edit-input.dashboard-hero-image-path-input.hidden {
  display: none !important;
}

.dashboard-site-image-modal-dialog {
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dashboard-site-image-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.dashboard-site-image-modal-head .dashboard-draft-modal-title {
  margin: 0;
  flex: 1;
}
.dashboard-site-image-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.dashboard-site-image-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.dashboard-site-image-modal-hint {
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}
.dashboard-site-image-modal-loading {
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.dashboard-site-image-modal-loading.hidden {
  display: none !important;
}
.dashboard-site-image-modal-error {
  color: #fca5a5;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.dashboard-site-image-modal-empty {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.dashboard-site-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
  overflow-y: auto;
  max-height: min(50vh, 22rem);
  padding: 0.15rem 0 0.25rem;
}
.dashboard-site-image-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.dashboard-site-image-pick-btn:hover {
  border-color: rgba(102, 126, 234, 0.55);
  background: rgba(102, 126, 234, 0.12);
}
.dashboard-site-image-pick-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}
.dashboard-site-image-pick-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dashboard-site-image-pick-thumb--broken {
  background: rgba(239, 68, 68, 0.2);
}
.dashboard-site-image-pick-label {
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
  word-break: break-all;
  max-height: 2.4em;
  overflow: hidden;
}

.dashboard-menu-item-image-row--over {
  border-color: rgba(102, 126, 234, 0.65);
  box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.dashboard-menu-item-image-row--dragging {
  opacity: 0.8;
}

.dashboard-menu-item-image-drag {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding: 0.35rem 0.2rem;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  line-height: 1;
  align-self: center;
}

.dashboard-menu-item-image-drag:active {
  cursor: grabbing;
}

.dashboard-menu-item-image-thumb-wrap {
  position: relative;
  width: 4.25rem;
  height: 3.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.dashboard-menu-item-image-thumb-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.58rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.dashboard-menu-item-image-thumb-loading .fa-spinner {
  font-size: 0.95rem;
  opacity: 0.95;
}

.dashboard-menu-item-image-thumb-loading-label {
  display: block;
}

.dashboard-menu-item-image-row--uploading .dashboard-menu-item-image-thumb-loading {
  display: flex;
}

.dashboard-menu-item-image-thumb-wrap--empty {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 6px,
    rgba(255, 255, 255, 0.09) 6px,
    rgba(255, 255, 255, 0.09) 12px
  );
}

.dashboard-menu-item-image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-menu-item-image-path-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard-menu-item-image-path-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.dashboard-menu-item-image-replace {
  font-size: 0.75rem !important;
  padding: 0.28rem 0.45rem !important;
  align-self: flex-start;
  min-width: auto;
}

.dashboard-menu-item-image-path.dashboard-edit-input {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-size: 0.82rem;
}

.dashboard-menu-item-image-remove {
  padding: 0.35rem 0.5rem;
  min-width: 2rem;
}

@media (max-width: 520px) {
  .dashboard-menu-item-image-row {
    grid-template-columns: auto 3.5rem minmax(0, 1fr) auto;
  }
  .dashboard-hero-image-row.dashboard-menu-item-image-row {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }
  .dashboard-menu-item-image-thumb-wrap {
    width: 3.5rem;
    height: 3rem;
  }
}

.dashboard-edit-slideshow-view {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0;
  min-height: 4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dashboard-edit-slide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 6rem;
  flex-shrink: 0;
}
.dashboard-edit-slide-item img {
  width: 100%;
  height: 4rem;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-edit-slide-cap {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  word-break: break-all;
}

.dashboard-edit-field-note {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  text-align: center;
}

.dashboard-edit-field label {
  display: block;
  margin-block: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
}

.dashboard-edit-input,
.dashboard-edit-textarea {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: #1a1a2e;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-edit-input::placeholder,
.dashboard-edit-textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.dashboard-edit-input:focus,
.dashboard-edit-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.35);
}

.dashboard-edit-textarea {
  min-height: 5em;
  resize: vertical;
}

/* Inputs inside row UIs (slightly smaller, sit in card) */
.dashboard-price-row .dashboard-edit-input,
.dashboard-pair-row .dashboard-edit-input,
.dashboard-list-row .dashboard-edit-input,
.side-cat-block .dashboard-edit-input {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

/* ========== Opening hours – week + zoomable day ========== */
.hours-editor {
  margin-top: 0.5rem;
}
.hours-view.hidden {
  display: none !important;
}
.hours-editor-week .hours-week-day-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  padding: 0 2px;
}
.hours-editor-week .hours-week-day-labels span {
  flex: 1;
  text-align: center;
}
/* Single week timeline: one continuous strip, 7 segments */
.hours-week-timeline {
  display: flex;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  min-height: 40px;
  cursor: pointer;
}
.hours-week-segment {
  flex: 1;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: stretch;
}
.hours-week-segment:hover {
  background: rgba(255, 255, 255, 0.06);
}
.hours-week-segment-track {
  position: relative;
  flex: 1;
  margin: 4px 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hours-week-segment:first-child .hours-week-segment-track {
  margin-left: 4px;
}
.hours-week-segment:last-child .hours-week-segment-track {
  margin-right: 4px;
}
.hours-week-segment-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  pointer-events: none;
  transition: left 0.08s, width 0.08s;
}
.hours-day-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.hours-back-btn, .hours-delete-day-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
}
.hours-back-btn:hover, .hours-delete-day-btn:hover {
  background: rgba(255,255,255,0.2);
}
.hours-delete-day-btn:hover {
  border-color: rgba(220,80,80,0.6);
  background: rgba(220,80,80,0.2);
}
.hours-day-view-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.hours-day-handles {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.hours-day-handle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  width: -webkit-fill-available;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  justify-content: center;
}
.hours-day-handle-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}
.hours-day-handle-btn.hours-day-handle-selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5);
}
.hours-day-handle-label {
  opacity: 0.9;
}
.hours-day-handle-time {
  font-weight: 700;
  min-width: 2.5em;
}
.hours-day-week-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}
.hours-day-week-labels span {
  flex: 1;
  text-align: center;
}
.hours-day-track-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  cursor: crosshair;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}
.hours-day-view .hours-timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.15);
}
.hours-day-view .hours-timeline-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  pointer-events: none;
  transition: left 0.1s, width 0.1s;
}
.hours-day-view .hours-range {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.hours-day-view .hours-day-close {
  z-index: 3;
}
.hours-day-view .hours-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: grab;
}
.hours-day-view .hours-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: grab;
  border: none;
}
.hours-day-summary {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
}
.dashboard-edit-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-edit-form-actions .btn-dash {
  flex: 1;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 8px;
}

.dashboard-edit-option-note {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.dashboard-edit-option-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-edit-option-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.dashboard-edit-option-heading {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.dashboard-edit-option-desc {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
}

.dashboard-edit-option-btn {
  width: 100%;
  justify-content: center;
}

.dashboard-edit-option-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


@media (max-width: 900px) {
  .dashboard-edit-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 1fr;
  }

  .dashboard-edit-preview {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ========== Analytics page (/analytics/) ========== */

.dashboard-analytics-page {
  min-height: 100vh;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.dashboard-analytics-main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.dashboard-analytics-period {
  margin-bottom: 2rem;
}

.dashboard-analytics-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.dashboard-analytics-subtitle {
  margin: 0 0 1.5rem;
  opacity: 0.85;
  font-size: 0.95rem;
}

.dashboard-analytics-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-analytics-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dashboard-analytics-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.dashboard-analytics-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.dashboard-analytics-note {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

.dashboard-analytics-main > .dashboard-analytics-note {
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-analytics-note a {
  color: #a5b4fc;
}

.dashboard-analytics-note a:hover {
  text-decoration: underline;
}

/* ========== Notifications dashboard (/notifications/) ========== */

.dashboard-notify-banner {
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  margin: 0 0 1rem;
}

.dashboard-notify-banner-warn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.dashboard-notify-code {
  font-size: 0.88em;
  word-break: break-all;
  opacity: 0.95;
}

.dashboard-notify-status-error {
  color: #fca5a5 !important;
}

.dashboard-notify-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dashboard-notify-history-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-notify-history-item:last-child {
  border-bottom: none;
}

.dashboard-notify-history-title {
  font-weight: 600;
  color: #fff;
}

.dashboard-notify-history-meta {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Notifications dashboard — tabs */
.dashboard-notify-tabs {
  margin-bottom: 0.5rem;
}

.dashboard-notify-tablist {
  display: flex;
  overflow: auto;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-notify-tab {
  appearance: none;
  font-size: xx-small;
  cursor: pointer;
  padding: 0.55rem 1rem;
  margin: 0 0 -1px;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dashboard-notify-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-notify-tab:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
}

.dashboard-notify-tab[aria-selected="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: #1a1a2e;
  font-weight: 600;
}

.dashboard-notify-tab-panels {
  min-height: 12rem;
}

.dashboard-notify-tab-panel[hidden] {
  display: none !important;
}

.dashboard-notify-tab-section.dashboard-settings-panel {
  margin-bottom: 0;
}

.dashboard-analytics-note.dashboard-notify-tabs-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Menu settings page – key/value rows ========== */

.dashboard-settings-section {
  margin-bottom: 1.75rem;
}

.dashboard-settings-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.35rem;
}

.dashboard-settings-section .dashboard-analytics-heading {
  margin-bottom: 0.25rem;
}

.dashboard-settings-section .dashboard-analytics-subtitle {
  margin-bottom: 1rem;
}

.dashboard-settings-readonly-hint {
  font-size: 0.88rem;
  opacity: 0.78;
  margin-bottom: 0.85rem !important;
}

.dashboard-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 640px;
}

.dashboard-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-settings-row:last-child {
  border-bottom: none;
}

.dashboard-settings-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  min-width: 10rem;
}

.dashboard-settings-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  width: -webkit-fill-available;
}

.dashboard-settings-value code {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.dashboard-settings-thumb {
  vertical-align: middle;
  border-radius: 8px;
  margin-right: 0.5rem;
}

/* Branding uploads: fixed slots + contain so any aspect ratio is letterboxed, not stretched */
.dashboard-branding-preview {
  display: block;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.dashboard-branding-preview:not(.dashboard-branding-preview--wide) {
  width: 48px;
  height: 48px;
}

.dashboard-branding-preview--wide {
  width: 96px;
  height: 48px;
  background: rgba(0, 0, 0, 0.25);
}

.dashboard-settings-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  line-height: 1.3;
}

.dashboard-settings-pill--on {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.dashboard-settings-pill--off {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-settings-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  word-break: break-all;
}

.dashboard-settings-branding .dashboard-settings-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-settings-form .dashboard-settings-row {
  align-items: flex-start;
}

.dashboard-settings-form .dashboard-settings-label {
  padding-top: 0.35rem;
}

.dashboard-settings-input,
.dashboard-settings-input.dashboard-settings-textarea {
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.9rem;
}

.dashboard-settings-textarea {
  resize: vertical;
  min-height: 3rem;
}

select.dashboard-settings-input {
}

.dashboard-settings-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dashboard-settings-save-status {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.dashboard-settings-branding-row {
  align-items: flex-start;
}

.dashboard-settings-branding-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 100%;
}

.dashboard-branding-file-label {
  cursor: pointer;
  margin: 0;
  display: inline-block;
  position: relative;
}

.dashboard-branding-file-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-branding-upload-status {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  min-height: 1.2em;
}

.dashboard-settings-branding-grid {
  max-width: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}

.dashboard-settings-branding-grid .dashboard-settings-branding-row {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.dashboard-settings-branding-grid .dashboard-settings-branding-row .dashboard-settings-label {
  min-width: 0;
  font-weight: 600;
}

.dashboard-settings-branding-grid .dashboard-settings-branding-upload {
  padding-top: 0.25rem;
}

@media (min-width: 720px) {
  .dashboard-settings-branding-grid .dashboard-settings-branding-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
}
