:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --surface-2: #1f1f24;
  --border: #2a2a32;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --primary: #ff6a00;
  --primary-hover: #ff8533;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
}
.sidebar .brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  border-radius: 10px;
  color: var(--muted);
  margin-bottom: .25rem;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: rgba(255, 106, 0, 0.12);
  color: var(--text);
}

.sidebar-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -1rem 0 1rem;
  line-height: 1.35;
}

.main {
  padding: 1.5rem 2rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.topbar h1 { margin: 0; font-size: 1.5rem; }
.topbar-sub {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card .label { color: var(--muted); font-size: .85rem; }
.card .value { font-size: 1.75rem; font-weight: 700; margin-top: .25rem; }
.card-hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.card--primary {
  border-color: rgba(255, 106, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.08), var(--surface));
}
.card--primary .value {
  color: var(--primary);
}

.card .value--empty {
  color: var(--muted);
  font-size: 1.5rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.panel h2 { margin: 0 0 1rem; font-size: 1.1rem; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem .5rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary);
}
.badge.inactive { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.badge-rating {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.badge-no-rating {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.password-field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.password-field input {
  flex: 1;
  padding-top: calc(0.65rem + 1px);
  padding-bottom: calc(0.65rem + 1px);
  padding-left: 0.75rem;
  padding-right: 5.5rem;
}

.password-field-actions {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 0.2rem;
}

.password-field-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.password-field-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 106, 0, 0.08);
}

.password-field-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.password-field-btn .icon-eye-off {
  display: none;
}

.password-field-btn.is-visible .icon-eye {
  display: none;
}

.password-field-btn.is-visible .icon-eye-off {
  display: block;
}

.input-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.input-readonly,
input[readonly].input-readonly {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  border-style: dashed;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.table-actions .inline-form {
  display: inline;
  margin: 0;
}

tr.row-inactive td {
  opacity: 0.75;
}

/* Super / plataforma — listagens no padrão do portal */
.admin-page {
  width: 100%;
  max-width: none;
}

.admin-entity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-entity-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.admin-entity-item:last-child {
  border-bottom: none;
}

.admin-entity-item--panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.admin-entity-item--panel:last-child {
  border-bottom: 1px solid var(--border);
}

.admin-entity-item--inactive {
  opacity: 0.72;
}

.admin-entity-main {
  flex: 1 1 240px;
  min-width: 0;
}

.admin-entity-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.admin-entity-initials {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-entity-initials--user {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.admin-entity-title {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

.admin-entity-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.admin-entity-meta code {
  font-size: 0.8rem;
  color: #a1a1aa;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.admin-entity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-entity-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.admin-entity-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-feed-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.dashboard-feed .admin-entity-list {
  margin: 0 -0.25rem;
}

/* Super — formulário empresa */
.tenant-form-topbar {
  align-items: flex-start;
}

.tenant-form-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.tenant-form-back:hover {
  color: var(--primary);
}

.tenant-page--create .tenant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.5rem;
  align-items: start;
}

.tenant-page--full .tenant-form {
  max-width: none;
  width: 100%;
}

.tenant-page--full .form-fields-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .tenant-page--full .form-fields-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tenant-form-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.form-card-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255, 106, 0, 0.12);
  border-radius: 10px;
}

.form-card-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.form-card-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.form-card-head code {
  font-size: 0.8em;
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text);
}

.form-card-body {
  padding: 1.25rem;
}

.form-fields-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 500;
  color: var(--text);
}

.form-card--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
}

.tenant-form-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.form-aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
}

.form-aside-card h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-aside-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-aside-card--muted {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.create-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.create-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.create-checklist strong {
  color: var(--text);
  font-weight: 600;
}

.create-check-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
}

.user-profile-readonly {
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.form-field.hidden,
.create-checklist.hidden,
.is-hidden,
.hidden {
  display: none !important;
}

.step-thankyou-notice {
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.step-thankyou-notice .panel-desc {
  margin: 0;
}

#empresa-field select:disabled {
  opacity: 0.6;
}

@media (max-width: 900px) {
  .tenant-page--create .tenant-form {
    grid-template-columns: 1fr;
  }

  .tenant-form-aside {
    position: static;
    order: -1;
  }

  .form-fields-2 {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  border-radius: 9999px;
  padding: 0.625rem 1.5625rem;
  font-weight: 700;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.25;
  cursor: pointer;
  transition: .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

a.btn:hover,
a.btn:focus-visible,
a.btn:active {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: #52525b;
  color: #fff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.btn-danger:hover,
.btn-danger:focus-visible {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
}

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; font-weight: 700; }
.btn-block { width: 100%; }

.store-link-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.store-link-row__btn {
  flex: 0 0 auto;
  min-width: 6.75rem;
  min-height: 2.375rem;
}

.store-link-row input[type="text"] {
  flex: 1 1 280px;
  min-width: 0;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
}

.form-grid { display: grid; gap: 1rem; max-width: 560px; }
label { display: block; font-size: .9rem; margin-bottom: .35rem; color: var(--muted); }
input, select, textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: .65rem .75rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(255, 106, 0, 0.35);
  border-color: var(--primary);
}

.alert {
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.alert-error { background: rgba(239,68,68,.12); color: #fecaca; }
.alert-success { background: rgba(34,197,94,.12); color: #bbf7d0; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin-top: 0; }

.auth-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.auth-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.home-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.link-box {
  font-family: monospace;
  background: var(--surface-2);
  padding: .5rem .75rem;
  border-radius: 8px;
  word-break: break-all;
}

.stars-inline { color: #fbbf24; letter-spacing: 2px; }

.badge-muted {
  background: var(--surface-2);
  color: var(--muted);
}

/* Filtro de período */
.period-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.period-filter--inline {
  margin-bottom: 0;
}

.period-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.period-filter-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

.period-filter-btn.is-active {
  background: rgba(255, 106, 0, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

.period-filter-label {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Paginação */
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.pagination-range {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1 1 200px;
}

.pagination-range strong {
  color: var(--text);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  flex: 2 1 280px;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.pagination-btn,
.pagination-page {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.2;
  min-width: 2.25rem;
  text-align: center;
}

.pagination-page.is-current {
  border-color: var(--primary);
  background: rgba(255, 106, 0, 0.12);
  color: #fdba74;
  font-weight: 600;
}

.pagination-btn:hover:not(.is-disabled),
.pagination-page:hover:not(.is-current) {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.pagination-ellipsis {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  user-select: none;
}

.pagination-info {
  font-size: 0.9rem;
  color: var(--muted);
}

.pagination-per-page {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  margin: 0;
}

.pagination-per-page label {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.pagination-per-page select {
  min-width: 4.5rem;
  padding: 0.4rem 0.5rem;
}

@media (max-width: 640px) {
  .pagination-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination {
    justify-content: space-between;
  }

  .pagination-per-page {
    justify-content: flex-end;
  }
}

/* Lojas — largura total da área principal */
.stores-page {
  width: 100%;
  max-width: none;
}

.stores-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: none;
}

/* Duas ou mais lojas: colunas lado a lado em telas largas */
.stores-list:has(.store-panel:nth-child(2)) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
}

.store-panel {
  width: 100%;
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.store-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.store-panel-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.store-panel-initials,
.store-panel-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.store-panel-initials {
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

.store-panel-logo {
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.store-panel-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.store-panel-brand h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.store-panel-brand p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.store-panel-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.store-panel-link {
  margin-bottom: 1rem;
}

.store-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(300px, 100%);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.store-panel-links {
  min-width: 0;
}

.store-panel-qrcode {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  min-width: 0;
}

.store-panel-qrcode-renew {
  margin: 0.75rem 0 0;
}

.store-panel-link:last-child {
  margin-bottom: 0;
}

.store-panel-link label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.store-panel-link .store-link-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.store-panel-link .store-link-row__btn {
  flex: 0 0 auto;
  min-width: 6.75rem;
}

.store-panel-link input[type="text"] {
  flex: 1 1 280px;
  min-width: 0;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  font-family: ui-monospace, monospace;
}

.store-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.store-panel-actions__form {
  display: flex;
  margin: 0;
}

.store-panel-actions__btn {
  flex: 1 1 auto;
  min-width: min(100%, 13.5rem);
  min-height: 2.625rem;
  text-align: center;
}

.store-panel-actions form {
  margin: 0;
}

.stores-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.stores-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.stores-empty.panel {
  width: 100%;
  max-width: none;
}

@media (min-width: 768px) {
  .store-panel-top {
    align-items: center;
  }

  .store-panel-initials,
  .store-panel-logo {
    width: 64px;
    height: 64px;
  }

  .store-panel-brand h2 {
    font-size: 1.4rem;
  }

  .store-panel-actions__btn {
    flex: 0 1 auto;
    min-width: 13.5rem;
  }
}

/* Personalizar loja */
.appearance-topbar {
  margin-bottom: 0.5rem;
}

.appearance-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1.75rem;
}

.appearance-hero-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.appearance-hero-logo,
.appearance-hero-initials {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.appearance-hero-logo {
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.appearance-hero-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.appearance-hero-initials {
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
}

.appearance-hero-brand h2 {
  margin: 0;
  font-size: 1.35rem;
}

.appearance-hero-brand p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.appearance-hero-select label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.appearance-hero-select select {
  min-width: 200px;
}

.appearance-store-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
}

.appearance-store-bar label {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.appearance-store-bar select {
  min-width: 220px;
  flex: 1 1 200px;
  max-width: 360px;
}

.appearance-section-store-name {
  margin: 0.15rem 0 0.35rem !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  color: var(--text) !important;
}

.appearance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.appearance-form-panel {
  max-width: none;
}

.appearance-section--card {
  padding: 1.25rem 1.35rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.appearance-section-head {
  margin-bottom: 1rem;
}

.appearance-section-head h3 {
  margin: 0 0 0.2rem;
}

.appearance-section-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.appearance-logo-fields {
  flex: 1;
  min-width: 200px;
}

.color-field--card {
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.appearance-preview-head {
  margin-bottom: 1rem;
}

.appearance-preview-head h3 {
  margin: 0 0 0.2rem;
}

.eval-preview--lg {
  max-width: 100%;
}

.appearance-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.appearance-section h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.appearance-logo-block {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.logo-preview-lg {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-preview-lg img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.file-label {
  display: block;
  margin-bottom: 0.35rem;
}

.appearance-colors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.color-field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.color-field input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 4px;
  cursor: pointer;
  border-radius: 10px;
}

.appearance-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.appearance-preview-panel {
  position: sticky;
  top: 1rem;
}

.appearance-qrcode-section {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.appearance-qrcode-head h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
}

.appearance-qrcode-head .panel-desc {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.appearance-qrcode-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.1rem 1rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.appearance-qrcode-poster-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  max-width: 100%;
  width: 100%;
}

.appearance-qrcode-poster-logo img {
  display: block;
  max-width: min(100%, 400px);
  max-height: 176px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.appearance-qrcode-poster-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  border-radius: 18px;
  background: #fff7ed;
  border: 2px solid #ff6a00;
  color: #ea580c;
  font-size: 2.25rem;
  font-weight: 700;
}

.appearance-qrcode-poster-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  max-width: 100%;
}

.appearance-qrcode-poster-instruction {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.4;
  max-width: 280px;
}

.appearance-qrcode-box {
  display: flex;
  justify-content: center;
  padding: 0.35rem;
  margin-top: 0.15rem;
  width: 100%;
}

.appearance-qrcode-canvas {
  line-height: 0;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.appearance-qrcode-canvas img,
.appearance-qrcode-canvas canvas {
  display: block;
  width: 160px;
  height: 160px;
  max-width: 100%;
  max-height: 100%;
}

.appearance-qrcode-canvas canvas ~ img {
  display: none !important;
}

.appearance-qrcode-canvas table {
  margin: 0 auto;
  border-collapse: collapse;
}

.appearance-qrcode-canvas svg {
  display: block;
  width: 160px !important;
  height: 160px !important;
}

.store-panel-qrcode-poster {
  overflow: hidden;
  max-width: 100%;
}

.store-panel-qrcode-poster .appearance-qrcode-poster-logo {
  min-height: auto;
  max-height: 5rem;
}

.store-panel-qrcode-poster .appearance-qrcode-poster-logo img {
  max-height: 4.5rem;
}

.store-panel-qrcode-poster .appearance-qrcode-poster-initials {
  width: 4rem;
  height: 4rem;
  font-size: 1.35rem;
}

.store-panel-qrcode-poster .appearance-qrcode-poster-name {
  font-size: 0.95rem;
}

.store-panel-qrcode-poster .appearance-qrcode-poster-instruction {
  font-size: 0.8rem;
  max-width: 100%;
}

.store-panel-qrcode-poster .appearance-qrcode-box {
  width: 100%;
}

.appearance-qrcode-download {
  width: 100%;
  justify-content: center;
  flex-shrink: 0;
}

.appearance-preview-panel h3 {
  margin: 0 0 0.25rem;
}

.panel-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.5rem 0 1rem;
}

.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.color-row input[type="color"] {
  width: 56px;
  height: 40px;
  padding: 2px;
  cursor: pointer;
}

.logo-upload .logo-preview {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.logo-upload img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  padding: 0.25rem;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Opção tipo card (ex.: remover logo) */
.option-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}

.option-toggle:hover {
  border-color: #3f3f46;
  background: rgba(255, 255, 255, 0.03);
}

.option-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.option-toggle-box {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: border-color 0.15s, background 0.15s;
}

.option-toggle-box svg {
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
  color: #fff;
}

.option-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.option-toggle-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.option-toggle-text small {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.option-toggle:has(input:checked) {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.option-toggle:has(input:checked) .option-toggle-text strong {
  color: #fca5a5;
}

.option-toggle:has(input:checked) .option-toggle-box {
  border-color: var(--danger);
  background: var(--danger);
}

.option-toggle:has(input:checked) .option-toggle-box svg {
  opacity: 1;
  transform: scale(1);
}

.option-toggle:has(input:focus-visible) {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.option-toggle--danger:hover {
  border-color: rgba(239, 68, 68, 0.35);
}

.eval-preview {
  background: #000;
  border-radius: 12px;
  padding: 1rem;
  max-width: 320px;
  margin: 0 auto;
  color: #fff;
}

.eval-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.eval-preview-logo,
.eval-preview-logo-ph {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.eval-preview-logo-ph {
  display: grid;
  place-items: center;
  color: #000;
  font-size: 0.55rem;
  font-weight: 700;
}

.eval-preview-header small {
  background: #fff;
  color: #000;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  font-size: 0.55rem;
}

.eval-preview-stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  position: relative;
}

.eval-preview-stepper::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: #333;
}

.eval-preview-stepper span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #666;
  background: #000;
  z-index: 1;
  position: relative;
}

.eval-preview-stepper span.on {
  border-color: var(--color-stepper);
  background: var(--color-stepper);
}

.eval-preview-body {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.eval-preview-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-step);
  margin: 0 auto 0.5rem;
}

.eval-preview-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

.eval-preview-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Dashboard — feed de avaliações */
.dashboard-feed-header {
  margin-bottom: 1.25rem;
}

.dashboard-feed-header h2 {
  margin: 0 0 0.25rem;
}

.super-week-chart-panel {
  padding: 1.25rem 1.5rem 1.5rem;
}

.super-week-chart-panel .dashboard-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.super-week-chart-summary {
  text-align: right;
  flex-shrink: 0;
}

.super-week-chart-total {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

.super-week-chart-total-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.super-week-chart-empty {
  padding: 2rem 1rem;
}

.super-week-chart {
  width: 100%;
}

.super-week-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
  min-height: 220px;
  padding-top: 0.5rem;
}

.super-week-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.super-week-chart-col.is-today .super-week-chart-weekday {
  color: var(--primary);
  font-weight: 700;
}

.super-week-chart-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-height: 1.25rem;
}

.super-week-chart-bar-track {
  width: 100%;
  max-width: 56px;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 8px 8px 4px 4px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.super-week-chart-bar-fill {
  width: 100%;
  min-height: 0;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 106, 0, 0.55) 100%);
  border-radius: 6px 6px 0 0;
  transition: height 0.35s ease;
}

.super-week-chart-col.is-today .super-week-chart-bar-fill {
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.35);
}

.super-week-chart-weekday {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.super-week-chart-date {
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .super-week-chart-bars {
    gap: 0.35rem;
    min-height: 180px;
  }

  .super-week-chart-bar-track {
    height: 120px;
    max-width: 100%;
  }

  .super-week-chart-value {
    font-size: 0.75rem;
  }

  .super-week-chart-date {
    display: none;
  }
}

.dashboard-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.eval-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eval-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  transition: border-color 0.2s;
}

.eval-card:hover {
  border-color: rgba(255, 106, 0, 0.35);
}

.eval-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.eval-card-store {
  font-weight: 600;
  font-size: 1rem;
  display: block;
}

.eval-card-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.eval-card-avg {
  text-align: right;
  flex-shrink: 0;
}

.eval-card-avg-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.eval-card-avg-stars {
  font-size: 0.75rem;
  color: #fbbf24;
  letter-spacing: 1px;
}

.eval-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
}

.eval-step-score {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: 88px;
}

.eval-step-score.is-empty .badge-no-rating {
  flex-shrink: 0;
}

.eval-step-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.eval-step-icon svg {
  width: 22px;
  height: 22px;
}

.eval-step-name {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eval-step-stars {
  font-size: 0.85rem;
  color: #fbbf24;
  letter-spacing: -1px;
  line-height: 1;
}

.eval-step-stars .dim {
  color: #3f3f46;
}

.eval-step-na {
  font-size: 0.85rem;
  color: var(--muted);
}

.eval-card-comment {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.eval-card-footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.hidden { display: none !important; }

/* Avaliações — listagem e detalhe */
.eval-filter-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.eval-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: flex-end;
}

.eval-filter-field {
  flex: 1 1 200px;
  min-width: 0;
}

.eval-filter-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.eval-filter-form select {
  min-width: 180px;
  width: 100%;
  max-width: 280px;
}

.eval-filter-custom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.eval-filter-custom-row select {
  width: auto;
  min-width: 120px;
}

.eval-filter-summary {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.tenant-filter-panel {
  margin-bottom: 1.25rem;
}

.tenant-filter-field--search {
  flex: 2 1 280px;
}

.tenant-filter-actions {
  flex: 0 0 auto;
}

.tenant-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tenant-filter-actions-label {
  visibility: hidden;
}

.eval-list-panel {
  padding: 1rem 1.25rem 1.25rem;
}

.eval-list-panel .eval-list-item:last-child {
  margin-bottom: 0;
}

.eval-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.eval-list-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.eval-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.eval-list-store {
  font-size: 1.05rem;
}
.eval-list-date {
  font-size: 0.85rem;
  color: var(--muted);
}
.eval-list-snippet {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.eval-list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.eval-list-avg {
  text-align: right;
}
.eval-list-avg-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.35rem;
}
.eval-list-avg-stars {
  font-size: 0.9rem;
  color: #fbbf24;
}
.eval-list-avg-stars .dim {
  color: #3f3f46;
}
.eval-list-na {
  font-size: 0.85rem;
  color: var(--muted);
}

.eval-detail-hero {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
}
.eval-detail-score-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.eval-detail-score-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.35rem 0 0.75rem;
}
.eval-detail-score-stars {
  font-size: 1.5rem;
  color: #fbbf24;
  letter-spacing: 2px;
}
.eval-detail-score-stars .dim {
  color: #3f3f46;
}
.eval-detail-no-avg {
  margin: 0;
  color: var(--muted);
}
.eval-detail-section h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.eval-detail-grid {
  margin-top: 0;
}
.eval-detail-comment {
  margin: 0;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  font-style: normal;
}
.eval-detail-text-block {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.eval-detail-text-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.eval-detail-text-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.eval-detail-text-block p {
  margin: 0;
  line-height: 1.55;
}

.eval-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.eval-card-store {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Etapas — listagem e formulário */
.steps-quick-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.steps-quick-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-right: 0.25rem;
}

.steps-flow {
  width: 100%;
  max-width: none;
}

.step-card {
  width: 100%;
  display: grid;
  grid-template-columns: 2.5rem 3.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-sizing: border-box;
}
.step-card--inactive {
  opacity: 0.65;
}
.step-card--final {
  border-color: rgba(34, 197, 94, 0.35);
}
.step-card-order {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.step-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.step-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.step-card-question {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}
.step-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.step-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.step-move-form {
  display: flex;
  gap: 0.15rem;
}
.steps-connector {
  width: 2px;
  height: 1.25rem;
  background: var(--border);
  margin: 0 auto 0 2.9rem;
}

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  min-width: 2.375rem;
  border-radius: 50%;
}

.btn-copy-link.is-copied,
.btn-qrcode-download.is-copied {
  border-color: var(--primary);
  color: var(--primary);
}

/* Modal — ordenar etapas */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-overlay.is-hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-panel--reorder {
  max-width: 560px;
}

.modal-panel--confirm {
  max-width: 420px;
}

.modal-panel--confirm .modal-header {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.modal-panel--confirm .modal-desc {
  line-height: 1.5;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: var(--border);
  color: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.step-reorder-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.step-reorder-item {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: grab;
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
  user-select: none;
}

.step-reorder-item:last-child {
  margin-bottom: 0;
}

.step-reorder-item:active {
  cursor: grabbing;
}

.step-reorder-item.is-dragging {
  opacity: 0.45;
  border-style: dashed;
}

.step-reorder-item.is-drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.25);
}

.step-reorder-handle {
  display: flex;
  color: var(--muted);
  width: 1.25rem;
}

.step-reorder-handle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.step-reorder-pos {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-reorder-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-reorder-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.step-reorder-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.step-reorder-body strong {
  font-size: 0.95rem;
  color: var(--text);
}

.step-reorder-body span {
  font-size: 0.8rem;
  color: var(--muted);
}

.step-type-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}
.step-type-rating {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.step-type-text {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.step-type-thank_you {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.step-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.step-form-panel,
.step-preview-panel {
  min-width: 0;
  max-width: 100%;
}

.step-form-panel .form-grid {
  max-width: 100%;
  width: 100%;
}

.step-form-panel .appearance-section {
  margin-bottom: 1.5rem;
  min-width: 0;
}

.step-obrigatoria-section {
  padding: 1.15rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-obrigatoria-section .panel-desc {
  margin: 0 0 1rem;
}

.step-obrigatoria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.step-obrigatoria-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 2px solid #52525b;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.step-obrigatoria-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.step-obrigatoria-option strong {
  font-size: 0.95rem;
  color: var(--text);
}

.step-obrigatoria-option span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.step-obrigatoria-option.is-selected {
  border-color: var(--primary);
  background: rgba(255, 106, 0, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.2);
}

.step-obrigatoria-option.is-selected strong {
  color: #fdba74;
}

.step-obrigatoria-option:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .step-obrigatoria-grid {
    grid-template-columns: 1fr;
  }
}

.step-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.step-type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
.step-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.step-type-option strong {
  font-size: 0.95rem;
}
.step-type-option span {
  font-size: 0.8rem;
  color: var(--muted);
}
.step-type-option.is-selected {
  border-color: var(--primary);
  background: rgba(255, 106, 0, 0.08);
}
.step-type-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 72px), 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.icon-picker-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
.icon-picker-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.icon-picker-item.is-selected {
  border-color: var(--primary);
  background: rgba(255, 106, 0, 0.1);
}
.icon-picker-svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-picker-svg svg {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-picker-label {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.2;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
  min-width: 0;
}

.form-row-2--status {
  align-items: start;
}

.form-row-2--status .step-active-field {
  grid-column: 1 / -1;
}

.step-active-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.step-active-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.step-active-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid #52525b;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
  min-width: 0;
}

.step-active-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.step-active-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.step-active-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.step-active-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.step-active-text strong {
  font-size: 0.95rem;
  color: var(--text);
}

.step-active-text span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.step-active-option--on.is-selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.step-active-option--on.is-selected .step-active-icon {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.step-active-option--on.is-selected .step-active-text strong {
  color: #86efac;
}

.step-active-option--off.is-selected {
  border-color: #71717a;
  background: rgba(113, 113, 122, 0.12);
  box-shadow: 0 0 0 1px rgba(113, 113, 122, 0.25);
}

.step-active-option--off.is-selected .step-active-icon {
  border-color: #a1a1aa;
  background: rgba(161, 161, 170, 0.15);
  color: #d4d4d8;
}

.step-active-option:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .step-active-grid {
    grid-template-columns: 1fr;
  }
}

.step-preview-panel {
  position: sticky;
  top: 1.5rem;
}
.step-preview-panel h3 {
  margin: 0 0 0.25rem;
}
.step-preview-phone {
  margin-top: 1rem;
  padding: 2rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.step-preview-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-preview-icon svg {
  width: 2rem;
  height: 2rem;
}
.step-preview-question {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.step-preview-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}
.step-preview-stars {
  font-size: 1.75rem;
  color: #fbbf24;
  letter-spacing: 2px;
}
.step-preview-text {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .appearance-layout { grid-template-columns: 1fr; }
  .appearance-preview-panel { position: static; }
  .appearance-colors { grid-template-columns: 1fr; }
  .stores-list,
  .stores-list:has(.store-panel:nth-child(2)) {
    grid-template-columns: 1fr;
  }
  .store-panel-body {
    grid-template-columns: 1fr;
  }
  .appearance-hero { flex-direction: column; align-items: flex-start; }
  .eval-steps-grid {
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .step-form-layout { grid-template-columns: minmax(0, 1fr); }
  .step-preview-panel { position: static; }
  .form-row-2 { grid-template-columns: 1fr; }
  .step-card {
    grid-template-columns: 2rem 2.75rem 1fr;
    grid-template-rows: auto auto;
  }
  .step-card-actions {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .steps-connector { margin-left: 1.9rem; }
}

/* Personalizar cardápio (portal) */
.menu-inline-form { margin-bottom: 1rem; }
.menu-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.menu-inline-row input[type="text"],
.menu-inline-row input:not([type="checkbox"]) {
  flex: 1;
  min-width: 140px;
}
.menu-categories-admin { display: flex; flex-direction: column; gap: 0.75rem; }
.menu-cat-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.menu-cat-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.menu-cat-panel summary::-webkit-details-marker { display: none; }
.menu-cat-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}
.menu-items-admin {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.menu-items-admin > li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
  padding: 0.65rem;
  border-radius: 10px;
  background: #faf9f7;
  border: 1px solid var(--border);
}
.menu-items-admin > li.is-inactive { opacity: 0.55; }
.menu-item-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.4rem;
  flex: 1;
  min-width: min(100%, 280px);
}
.menu-item-form--new {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}
.option-toggle--compact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}
.option-toggle--compact input { width: auto; }
.btn-danger-text { color: #c0392b; }
.menu-preview-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.menu-preview-hero {
  text-align: center;
  padding: 1.25rem;
  background: color-mix(in srgb, var(--menu-accent, #ff6a00) 12%, #fff);
}
.menu-preview-hero img,
.menu-preview-initials {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin: 0 auto 0.5rem;
  display: block;
  object-fit: contain;
}
.menu-preview-initials {
  background: var(--menu-accent, #ff6a00);
  color: #fff;
  font-weight: 800;
  line-height: 56px;
  text-align: center;
}
.menu-preview-hero strong { display: block; font-size: 1rem; }
.menu-preview-hero small { color: var(--muted); font-size: 0.8rem; }
.menu-preview-section {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}
.menu-preview-section em {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.menu-preview-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.25rem 0;
}
.menu-preview-item b { color: var(--menu-accent, #ff6a00); white-space: nowrap; }

/* Super — PDV Legal na empresa */
.tenant-pdv-section[hidden] {
  display: none !important;
}

.tenant-pdv-meta .field-hint {
  margin: 0;
}

.tenant-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tenant-pdv-help {
  padding: 0.75rem 1rem;
  background: #f8f6f3;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.input-mono {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.02em;
}

.topbar-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.menu-products-admin {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu-products-toolbar {
  margin-bottom: 1rem;
}

.menu-products-toolbar__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.menu-products-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.menu-products-toolbar__row input[type="search"] {
  flex: 1 1 240px;
  min-width: 0;
}

.menu-products-toolbar__meta {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.menu-products-toolbar__meta strong {
  color: var(--text);
}

.menu-products-group.is-inactive {
  opacity: 0.55;
}

.menu-products-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.menu-products-group-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.menu-products-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-products-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.menu-products-row.is-inactive {
  opacity: 0.55;
}

.menu-products-row .menu-products-info strong {
  color: #111827;
}

.menu-products-row .menu-products-info span {
  color: #6b7280;
}

.menu-products-row .menu-products-info em {
  color: var(--primary);
}

.menu-products-row .btn-ghost {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.menu-products-row .btn-ghost:hover,
.menu-products-row .btn-ghost:focus-visible {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.menu-products-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
}

.menu-products-thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.85rem;
}

.menu-products-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.menu-products-info strong {
  font-size: 0.95rem;
}

.menu-products-info span,
.menu-products-info em {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
}

.menu-products-info em {
  color: var(--primary);
  font-weight: 700;
}

/* Cardápio — banners no portal */
.menu-banner-preview {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  max-height: 160px;
}

.menu-banner-preview img {
  width: 100%;
  height: 100%;
  max-height: 160px;
  object-fit: cover;
  display: block;
}

.menu-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-promo-admin-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.menu-promo-admin-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: stretch;
}

.menu-promo-admin-item.is-inactive {
  opacity: 0.72;
  border-style: dashed;
}

.menu-promo-admin-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0c;
  border: 1px solid var(--border);
  min-height: 88px;
}

.menu-promo-admin-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
}

.menu-promo-admin-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.3rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  color: #e4e4e7;
  background: rgba(0, 0, 0, 0.65);
}

.menu-promo-admin-status.is-on {
  color: #bbf7d0;
  background: rgba(22, 101, 52, 0.85);
}

.menu-promo-admin-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.menu-promo-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.menu-promo-admin-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.menu-promo-admin-item.is-inactive .menu-promo-admin-title {
  color: var(--muted);
}

.menu-promo-admin-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.menu-promo-admin-link-row {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
}

.menu-promo-admin-link-row span {
  font-weight: 600;
  color: #a1a1aa;
  margin-right: 0.35rem;
}

.menu-promo-admin-link-row a {
  color: #fdba74;
  text-decoration: underline;
}

.menu-promo-admin-link-row--empty {
  font-style: italic;
}

.menu-promo-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.menu-promo-admin-actions form {
  margin: 0;
}

.menu-promo-add-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

/* Prévia do cardápio (painel) */
.menu-admin-preview {
  margin-bottom: 0.25rem;
}

.menu-admin-preview__device {
  padding: 0.65rem;
  border-radius: 22px;
  background: #18181b;
  border: 2px solid #3f3f46;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.menu-admin-preview__screen {
  border-radius: 14px;
  overflow: hidden;
  background: #fafaf9;
  max-height: 420px;
  overflow-y: auto;
}

.menu-admin-preview__hero {
  height: 88px;
  background: linear-gradient(160deg, var(--menu-top, var(--menu-accent, #e85d04)), #1f2937);
}

.menu-admin-preview__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-admin-preview__store {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: -1.35rem 0.75rem 0.65rem;
  padding: 0.6rem 0.7rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.menu-admin-preview__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-admin-preview__initials {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--menu-accent, #e85d04);
  flex-shrink: 0;
}

.menu-admin-preview__store-text {
  min-width: 0;
}

.menu-admin-preview__store-text strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--menu-text, #171717);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-admin-preview__store-text small {
  display: block;
  font-size: 0.72rem;
  color: var(--menu-muted, #6b7280);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-admin-preview__promos {
  display: flex;
  gap: 0.45rem;
  padding: 0 0.75rem 0.65rem;
}

.menu-admin-preview__promos img {
  flex: 1;
  min-width: 0;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

.menu-admin-preview__search {
  margin: 0 0.75rem 0.55rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  color: var(--menu-muted, #9ca3af);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
}

.menu-admin-preview__tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 0.75rem 0.55rem;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}

.menu-admin-preview__tabs span {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--menu-muted, #6b7280);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
}

.menu-admin-preview__tabs span.is-active {
  color: var(--menu-group-text, var(--menu-accent, #e85d04));
  border-bottom-color: var(--menu-group-text, var(--menu-accent, #e85d04));
  background: var(--menu-group-bg, color-mix(in srgb, var(--menu-accent, #e85d04) 12%, #fff));
  border-radius: 6px 6px 0 0;
}

.menu-admin-preview__items {
  padding: 0.55rem 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.menu-admin-preview__item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.72rem;
}

.menu-admin-preview__item-ph {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
}

.menu-admin-preview__item em {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--menu-text, #171717);
  margin-bottom: 0.1rem;
}

.menu-admin-preview__item span {
  display: block;
  color: var(--menu-muted, #6b7280);
  line-height: 1.3;
}

.menu-admin-preview__item b {
  font-size: 0.75rem;
  color: var(--menu-accent, #e85d04);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.menu-admin-aside .appearance-qrcode-section {
  margin-top: 1.25rem;
}

/* Portal — personalizar cardápio (layout organizado) */
.menu-admin-layout {
  align-items: start;
}

.menu-admin-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.menu-admin-quick {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--surface)) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
}

.menu-admin-quick__link label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.menu-admin-block {
  margin: 0;
}

.menu-admin-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.menu-admin-block__head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.menu-admin-block__step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
}

.menu-admin-form {
  gap: 1.15rem;
}

.menu-admin-grid {
  display: grid;
  gap: 1rem;
}

.menu-admin-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-admin-grid__full {
  grid-column: 1 / -1;
}

.menu-admin-colors {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.menu-admin-colors__label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-admin-colors__hint {
  margin: 0 0 0.75rem;
}

.menu-admin-colors-alert {
  margin-bottom: 1rem;
}

.menu-admin-colors-alert p {
  margin: 0 0 0.5rem;
}

.menu-admin-colors-alert p:last-child {
  margin-bottom: 0;
}

.menu-admin-migrate-cmd {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  background: #0a0a0c;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fdba74;
  overflow-x: auto;
}

.menu-admin-colors__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.menu-admin-colors__row--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.menu-admin-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.menu-admin-color input[type="color"] {
  width: 100%;
  max-width: 4.5rem;
  height: 2.5rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-admin-add-promo {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.menu-admin-add-promo h4 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-admin-empty {
  margin: 0 0 1rem;
}

.menu-admin-aside {
  position: sticky;
  top: 1rem;
}

@media (max-width: 960px) {
  .menu-admin-aside {
    position: static;
  }

  .menu-admin-preview__screen {
    max-height: none;
  }

  .menu-admin-grid--2 {
    grid-template-columns: 1fr;
  }

  .menu-admin-colors__row,
  .menu-admin-colors__row--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-admin-color {
    flex-direction: row;
    justify-content: space-between;
  }

  .menu-admin-color input[type="color"] {
    max-width: 5rem;
  }

  .menu-promo-admin-item {
    grid-template-columns: 1fr;
  }

  .menu-promo-admin-thumb {
    min-height: 120px;
  }

  .menu-promo-admin-thumb img {
    min-height: 120px;
  }
}
