:root {
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 86px;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1f2937;
  --sidebar: #2b0f4d;
  --sidebar-border: #7a1ea1;
  --accent: #7a1ea1;
  --accent-strong: #8e2de2;
  --accent-soft: #ff4fa4;
  --menu-border: rgba(255, 255, 255, 0.15);
  --menu-bg: rgba(255, 255, 255, 0.08);
  --menu-hover: rgba(255, 255, 255, 0.16);
  --menu-text: #ffffff;
  --submenu-border: rgba(255, 255, 255, 0.2);
  --submenu-bg: rgba(255, 255, 255, 0.12);
  --submenu-hover: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

/* utility hide class used by JS to toggle visibility */
.hidden { display: none !important; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  row-gap: 2.4rem;
  justify-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  position: relative;
  overflow: hidden;
}

.login-brand {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
  display: grid;
  justify-items: center;
  line-height: 0.95;
  z-index: 1;
  grid-row: 1;
  align-self: center;
}

/* welcome message removed */

.brand-bibi {
  font-family: "Lobster", cursive;
  font-size: clamp(4rem, 7.6vw, 6.5rem);
  letter-spacing: 0.8px;
  color: #ff4fa4;
  text-shadow:
    0 2px 0 #7d0f53,
    0 6px 16px rgba(20, 8, 36, 0.6);
}

.brand-gourmet {
  margin-top: -6px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3rem, 6.4vw, 5.3rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.8px;
  color: #cbf659;
  text-shadow:
    0 2px 0 #3a650d,
    0 6px 16px rgba(20, 8, 36, 0.5);
}

.login-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  color: #0f2745;
}

.login-card {
  width: min(480px, 94%);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 0; /* inner padding moved to .login-card-inner */
  position: relative;
  z-index: 1;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(8, 10, 20, 0.45);
  animation: loginCardIn 420ms ease-out;
  grid-row: 2;
}

.login-card::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4fa4 0%, #7a1ea1 45%, #cbf659 100%);
}

.login-card-inner {
  padding: 28px 28px 30px;
  border-radius: 18px;
}

.login-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 0 0 6px;
  color: #fff;
}

.login-subtitle {
  margin: 0 0 18px;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

.login-card p {
  margin: 0 0 18px;
  color: #334f73;
  font-size: 1.03rem;
}

.login-form {
  display: grid;
  gap: 16px;
}

.input-icon {
  position: relative;
}

.input-icon input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #0f2745;
}

.input-icon .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
}

#registerFields {
  display: grid;
  gap: 14px;
}

#registerFieldsTop,
#registerFieldsBottom {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f2745;
}

.login-form input {
  border: 1px solid #b9cade;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #f5f9ff;
  color: #0f2745;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form input::placeholder {
  color: #5b6b8a;
}

.password-wrap { position: relative; }

.password-wrap input { padding-right: 48px; }

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #000000;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.password-toggle:hover { color: #000000; }
.password-toggle:focus,
.password-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.password-toggle svg {
  pointer-events: none;
}

.login-form .password-toggle {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.password-toggle svg {
  stroke: #000000;
}

.form-row { display:flex; align-items:center; justify-content:space-between; margin-top:4px; }
.form-row .remember { display:flex; align-items:center; gap:6px; color: rgba(255,255,255,0.85); font-weight:600; cursor:pointer; }
.form-row .remember input[type="checkbox"] { width:18px; height:18px; cursor:pointer; }
.form-row .forgot { color: rgba(255,255,255,0.9); text-decoration: none; font-size:0.95rem; }

.primary-btn {
  margin-top: 12px;
  width: 100%;
  background: #fff;
  color: var(--menu-text);
  border: 0;
  padding: 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn {
  margin-top: 10px;
  width: 100%;
  background: transparent;
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.login-message { color: #ffdede; margin-top:10px; }

@media (max-width: 480px) {
  .login-card { width: 95%; }
  .login-title { font-size: 1.4rem; }
}

.login-form input:focus {
  outline: none;
  border-color: #7a1ea1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(122, 30, 161, 0.22);
}

.login-form button {
  border: 1px solid #7a1ea1;
  background: linear-gradient(90deg, #ff4fa4 0%, #8e2de2 52%, #7a1ea1 100%);
  color: var(--menu-text);
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: transform 120ms ease, filter 160ms ease;
}

.login-form .login-mode-btn {
  border: 1px solid #b6a6ce;
  background: #ffffff;
  color: #5b1f7a;
}

.login-form button:hover {
  filter: brightness(1.05);
}

.login-form button:active {
  transform: translateY(1px);
}

.login-message {
  margin: 12px 0 0;
  min-height: 20px;
  font-size: 0.92rem;
  color: #ffffff;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes starsDriftA {
  from {
    background-position: 0 500px, 28px 500px;
  }
  to {
    background-position: 0 0, 28px 0;
  }
}

@keyframes starsDriftB {
  from {
    background-position: 16px 500px, 52px 500px;
  }
  to {
    background-position: 16px 0, 52px 0;
  }
}

.app {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar);
  color: #fff;
  padding: 16px;
  transition: width 220ms ease;
  overflow: hidden;
  border-right: 2px solid var(--sidebar-border);
}

.sidebar-avatar-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 16px;
}

.sidebar-avatar-img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.sidebar-title {
  margin: 0 0 8px;
  text-align: center;
  white-space: nowrap;
}

.sidebar-brand-title {
  display: grid;
  justify-items: center;
  line-height: 0.95;
  margin-bottom: 18px;
}

.sidebar-brand-title .brand-bibi {
  font-size: 3.83rem;
  text-shadow: none;
}

.sidebar-brand-title .brand-gourmet {
  font-size: 2.82rem;
  text-shadow: none;
}

.sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 0;
  height: auto;
  align-content: start;
}

.sidebar nav a {
  color: var(--menu-text);
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 6px;
  border: 1px solid var(--menu-border);
  background: var(--menu-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.menu-group-toggle {
  width: 100%;
  color: var(--menu-text);
  padding: 10px 8px;
  border-radius: 6px;
  border: 1px solid var(--menu-border);
  background: var(--menu-bg);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  font: inherit;
}

.menu-icon {
  width: 18px;
  min-width: 18px;
  text-align: center;
  color: var(--menu-text);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sidebar nav a:hover {
  background: var(--menu-hover);
  border-color: #93c5fd;
}

.menu-group-toggle:hover {
  background: var(--menu-hover);
  border-color: #93c5fd;
}

.submenu-indicator {
  margin-left: auto;
  transition: transform 180ms ease;
}

.menu-group.open .submenu-indicator {
  transform: rotate(90deg);
}

.menu-group:hover .submenu-indicator {
  transform: rotate(90deg);
}

.submenu {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  margin-left: 12px;
}

.sidebar nav .submenu a {
  padding-left: 10px;
  border-color: var(--submenu-border);
  background: var(--submenu-bg);
  color: #ffffff;
}

.sidebar nav .submenu a:hover {
  background: var(--submenu-hover);
  border-color: #d2effa;
}

.menu-group:not(.open) .submenu {
  display: none;
}


.menu-group:hover .submenu {
  display: grid;
}

.menu-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.content {
  margin-left: var(--sidebar-width);
  transition: margin-left 220ms ease;
}

.topbar {
  height: 64px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  margin: 8px 16px 0;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.app.cliente .topbar {
  background: #ffffff;
  border-color: #e5e7eb;
}

.app.cliente .topbar,
.app.cliente .topbar * {
  color: #111827;
}

.app.cliente .home-icon {
  fill: #111827;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-center {
  display: flex;
  justify-content: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.topbar h1 {
  margin: 0;
  font-size: 1.05rem;
}

.menu-toggle {
  border: 0;
  background: #e5e7eb;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
}

.logout-btn {
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.home-btn {
  border: 0;
  background: transparent;
  color: #334155;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-btn:hover {
  background: #f1f5f9;
}

.home-icon {
  fill: #111827;
  width: 26px;
  height: 26px;
}

.app.cliente .sidebar {
  display: none;
}

.app.cliente .content {
  margin-left: 0 !important;
}

.app.cliente .menu-toggle {
  display: none;
}

.app.admin #meusPedidosMenuLink,
.app.admin #novoPedidoMenuLink,
.app.admin #meuCadastroMenuLink {
  display: none;
}
.logout-btn:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.current-datetime {
  font-size: 1.2rem;
  color: #334155;
}

.main {
  min-height: calc(100vh - 64px);
  padding: 16px;
}

.panel {
  background: #ffffff;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  padding: 18px;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 96px);
}

.inicio-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
  justify-items: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

.app.admin .inicio-cards {
  display: none;
}

.admin-dashboard {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  position: relative;
  padding-top: 0;
}


.admin-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.08), transparent 35%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 10px);
  border-radius: 14px;
}

.admin-dashboard > * {
  position: relative;
  z-index: 1;
}

.app:not(.admin) .admin-dashboard {
  display: none;
}

.admin-dash-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  position: relative;
  padding: 12px 12px 6px;
  padding-left: 12px;
  margin-top: -32px;
}


.admin-dash-head h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.admin-dash-head p {
  margin: 0;
  color: #4b5563;
}

.app.admin #inicioSection .admin-dash-head h3,
.app.admin #inicioSection .admin-dash-head p {
  color: #ffffff;
}

.app.admin #inicioSection .admin-dash-head::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -8px;
  width: 180px;
  height: 110px;
  opacity: 0.28;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='160' viewBox='0 0 260 160'%3E%3Crect x='18' y='54' width='160' height='70' rx='16' fill='%23ffffff' opacity='0.35'/%3E%3Cpath d='M60 54l22-26h86l16 26' fill='%23ffffff' opacity='0.35'/%3E%3Ccircle cx='76' cy='128' r='14' fill='%23ffffff' opacity='0.35'/%3E%3Ccircle cx='156' cy='128' r='14' fill='%23ffffff' opacity='0.35'/%3E%3Cpath d='M180 78h40l18 22' stroke='%23ffffff' stroke-width='10' stroke-linecap='round' opacity='0.35'/%3E%3C/svg%3E");
  pointer-events: none;
}

.admin-dash-filters label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  color: #ffffff;
}

.admin-dash-filters select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #ffffff;
  color: #111827;
}

.admin-dash-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-left: 0;
  margin-right: 0;
}

.dash-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 6px;
  text-align: center;
  justify-items: center;
  animation: dashFadeIn 420ms ease-out both;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dash-card:hover {
  transform: translateY(-2px);
  border-color: #c4b5fd;
  box-shadow: 0 12px 22px rgba(122, 30, 161, 0.18);
}

.dash-card-head {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.dash-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3e8ff;
  color: #7c3aed;
}

.dash-icon svg {
  width: 18px;
  height: 18px;
}

.dash-card span {
  color: #64748b;
  font-size: 0.92rem;
}

.dash-card strong {
  font-size: 1.6rem;
  color: #1f1147;
}

.dash-trend {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.dash-trend.up {
  background: #dcfce7;
  color: #166534;
}

.dash-trend.down {
  background: #fee2e2;
  color: #991b1b;
}

.dash-trend.neutral {
  background: #e2e8f0;
  color: #475569;
}

.admin-dash-chart,
.admin-dash-list {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  animation: dashFadeIn 480ms ease-out both;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-dash-chart:hover,
.admin-dash-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(122, 30, 161, 0.16);
}
.admin-dash-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-dash-row.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-dash-chart h4,
.admin-dash-list h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #1f1147;
}

.dash-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 160px;
  padding-bottom: 18px;
  padding-top: 6px;
  filter: drop-shadow(0 8px 16px rgba(122, 30, 161, 0.16));
}

.dash-bars.single {
  justify-items: center;
}

.dash-bars.single .dash-bar {
  width: 220px;
}

.dash-bars.horizontal {
  grid-template-columns: 1fr;
  height: auto;
  align-items: stretch;
}

.dash-bar {
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
  border-radius: 10px 10px 4px 4px;
  height: 30px;
  position: relative;
}

.dash-bars.bibi .dash-bar {
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
}

.dash-bars.bibi .dash-bar .dash-value {
  color: #4c1d95;
}

.dash-bars.bibi .dash-bar.top-1 {
  background: linear-gradient(180deg, #ff4fa4 0%, #8e2de2 100%);
}

.dash-bars.bibi .dash-bar.top-1 .dash-value {
  color: #7d0f53;
}

.dash-bars.horizontal.bibi .dash-label {
  color: #ffffff;
}
.dash-bars.horizontal .dash-bar {
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(90deg, #a78bfa 0%, #7c3aed 100%);
}

.dash-bar .dash-value {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #4c1d95;
  font-weight: 700;
}

.dash-bars.faturamento .dash-value {
  font-size: 0.72rem;
}

.dash-bars.horizontal .dash-value {
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.dash-bar span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #64748b;
}

.dash-bars.horizontal .dash-label {
  position: static;
  transform: none;
  margin-left: 8px;
  font-size: 0.85rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.dash-line {
  position: relative;
  height: 180px;
  display: grid;
  align-items: end;
}

.dash-line-grid {
  position: absolute;
  inset: 16px 12px 24px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
}

.dash-line-grid span {
  border-top: 1px dashed #e2e8f0;
}

.dash-line-svg {
  width: 100%;
  height: 180px;
  display: block;
}

.dash-line-labels {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  font-size: 0.75rem;
  color: #64748b;
}

.dash-line-labels span {
  text-align: center;
}

.dash-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dash-status-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
  text-align: center;
  animation: dashFadeIn 420ms ease-out both;
}

.dash-status-card span {
  color: #475569;
  font-size: 0.9rem;
}

.dash-status-card strong {
  color: #1f1147;
  font-size: 1.2rem;
}

@keyframes dashFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-status-card.status-aguardando {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.dash-status-card.status-confirmado {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0e7490;
}

.dash-status-card.status-preparo {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

.dash-status-card.status-saiu {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.dash-status-card.status-entregue {
  background: #ecfdf3;
  border-color: #86efac;
  color: #166534;
}

.dash-status-card.status-cancelado {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.dash-status-card.status-aguardando span,
.dash-status-card.status-confirmado span,
.dash-status-card.status-preparo span,
.dash-status-card.status-saiu span,
.dash-status-card.status-entregue span,
.dash-status-card.status-cancelado span,
.dash-status-card.status-aguardando strong,
.dash-status-card.status-confirmado strong,
.dash-status-card.status-preparo strong,
.dash-status-card.status-saiu strong,
.dash-status-card.status-entregue strong,
.dash-status-card.status-cancelado strong {
  color: inherit;
}

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dash-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.92rem;
}

.dash-list li span:last-child {
  color: #475569;
}

@media (max-width: 900px) {
  .admin-dash-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-bars {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .admin-dash-row:not(.triple) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-line-labels {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .admin-dash-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-dash-cards {
    grid-template-columns: 1fr;
  }
  .dash-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dash-status-grid {
    grid-template-columns: 1fr;
  }
  .dash-line-labels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.inicio-card-btn {
  max-width: 460px;
}

.inicio-card-btn {
  text-align: center;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  padding: 18px 18px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  width: 100%;
  min-height: 150px;
}

.inicio-card-btn h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.inicio-card-btn p {
  margin: 0;
  color: #4b5563;
  font-size: 1.05rem;
}

.inicio-card-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: 0 10px 22px rgba(122, 30, 161, 0.18);
}

.inicio-card-btn:focus,
.inicio-card-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 79, 164, 0.3);
}

#pedidoSection {
  max-width: none;
}

.panel h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

#inicioSection .panel-head {
  justify-content: center;
  text-align: center;
}

#inicioSection .panel-head .panel-subtitle {
  text-align: center;
}

.welcome-divider {
  height: 4px;
  width: min(520px, 90%);
  margin: 10px auto 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.55), rgba(255,255,255,0.15));
}

#inicioSection {
  max-width: none;
  width: 100%;
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 2px;
  padding-top: 18px;
}

.app.cliente #inicioSection {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  border: 0;
}

.app.cliente #inicioSection .panel-head h2,
.app.admin #inicioSection .panel-head h2 {
  font-family: "Lobster", cursive;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #ffffff;
  text-shadow:
    0 2px 0 #7d0f53,
    0 6px 16px rgba(20, 8, 36, 0.45);
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.app.cliente #inicioSection .panel-subtitle,
.app.admin #inicioSection .panel-subtitle {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: #cbf659;
  text-shadow: 0 2px 12px rgba(20, 8, 36, 0.45);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.brand-bibi-text {
  color: #ff4fa4;
  text-shadow:
    0 2px 0 #7d0f53,
    0 6px 16px rgba(20, 8, 36, 0.45);
}

.app.admin #inicioSection {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  border: 0;
}

.app.admin #inicioSection .panel-head {
  margin-top: 48px;
}


.app.cliente #pedidoSection {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  border: 0;
}

.app.cliente #pedidoSection .panel-head h2,
.app.cliente #pedidoSection .panel-subtitle {
  color: #ffffff;
}

.app.cliente #meusPedidosSection {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  border: 0;
}

.app.cliente #meusPedidosSection .panel-head h2,
.app.cliente #meusPedidosSection .panel-subtitle {
  color: #ffffff;
}

.app.admin #todosPedidosSection {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  border: 0;
}

.app.admin #todosPedidosSection .panel-head h2,
.app.admin #todosPedidosSection .panel-subtitle {
  color: #ffffff;
}

.app.admin #todosPedidosSection .filters-grid label {
  color: #ffffff;
}

.app.admin #usuariosSection,
.app.admin #produtosSection,
.app.admin #configSection {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  border: 0;
}

.app.admin #usuariosSection .panel-head h2,
.app.admin #usuariosSection .panel-subtitle,
.app.admin #produtosSection .panel-head h2,
.app.admin #produtosSection .panel-subtitle,
.app.admin #configSection .panel-head h2,
.app.admin #configSection .panel-subtitle {
  color: #ffffff;
}

.app.admin #usuariosSection .filters-grid label,
.app.admin #produtosSection .filters-grid label,
.app.admin #configSection .filters-grid label {
  color: #ffffff;
}

.app.admin #todosPedidosSection .filters-grid {
  margin-top: 16px;
}

.app.admin #todosPedidosSection .filters-grid input,
.app.admin #todosPedidosSection .filters-grid select {
  max-width: 220px;
}

.app.admin #todosPedidosSection .filters-grid select {
  max-width: 260px;
}
.app.admin #todosPedidosSection .table-wrap {
  margin-top: 16px;
}

.app.admin #todosPedidosSection .panel-subtitle {
  margin-top: 6px;
  margin-bottom: 16px;
}

.app.cliente #meuCadastroSection {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 93, 176, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(203, 246, 89, 0.2) 0%, transparent 36%),
    linear-gradient(180deg, #3c1361 0%, #1f3f76 55%, #203a64 100%);
  border: 0;
}

.app.cliente #meuCadastroSection .panel-head h2,
.app.cliente #meuCadastroSection .panel-subtitle {
  color: #ffffff;
}

.panel-subtitle {
  margin: 0;
  color: #4b5563;
}

.hidden {
  display: none !important;
}

.field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.label-error {
  color: #dc2626;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal-card {
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cddbea;
  border-radius: 10px;
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-head h3 {
  margin: 0;
}


.modal-close {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

#fecharStatusModalBtn {
  border-color: #dc2626;
  background: #dc2626;
  color: #ffffff;
}

#fecharStatusModalBtn:hover {
  border-color: #b91c1c;
  background: #b91c1c;
}

.insert-btn {
  border: 1px solid var(--menu-border);
  background: var(--menu-bg);
  color: var(--menu-text);
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

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

.form-message {
  order: 99;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.1;
  min-height: 22px;
}

.form-grid input:not([type="checkbox"]),
.form-grid select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

.form-grid label.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
}

.form-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.form-actions.align-with-endereco {
  justify-content: flex-end;
}

.form-actions button {
  border: 1px solid var(--menu-border);
  background: var(--menu-bg);
  color: var(--menu-text);
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.delete-user-btn {
  border: 1px solid #dc2626 !important;
  background: #dc2626 !important;
  color: #ffffff;
  margin-right: 0;
}

.delete-user-btn:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.form-message {
  margin: 0;
  font-size: 0.95rem;
  color: #065f46;
  margin-right: auto;
}

.users-list {
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}

.pedido-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.pedido-catalogo,
.pedido-dados,
.pedido-carrinho {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f7ff 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.pedido-dados-grid .pedido-carrinho {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  min-height: 420px;
  padding-right: 0;
  padding-bottom: 0;
}

.pedido-dados-grid .pedido-carrinho {
  position: relative;
  padding-bottom: 56px;
}

.pedido-dados-grid .pedido-carrinho-actions {
  position: absolute;
  right: -8px;
  bottom: -8px;
}
.pedido-dados .form-grid {
  max-width: 720px;
  margin: 0;
}

.pedido-dados-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}


.pedido-dados-grid .pedido-carrinho {
  align-self: start;
  margin-top: 0;
}

.pedido-dados-grid .pedido-carrinho h3 {
  margin-top: 0;
}

.pedido-dados-grid .form-grid {
  max-width: none;
}

@media (max-width: 900px) {
  .pedido-dados-grid {
    grid-template-columns: 1fr;
  }
}

.pedido-carrinho {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.pedido-left {
  display: grid;
  gap: 16px;
}

.pedido-catalogo h3,
.pedido-dados h3,
.pedido-carrinho h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f1147;
}

.pedido-produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 6px 4px 10px;
  perspective: 900px;
}

.pedido-card {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 220ms ease;
  text-align: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  transform-style: preserve-3d;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.16);
  position: relative;
}

.pedido-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6), transparent 40%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.pedido-card:hover {
  transform: translateZ(18px);
  box-shadow: 0 22px 32px rgba(91, 33, 182, 0.25);
  border-color: #c4b5fd;
}

.pedido-info-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d9c8ff !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pedido-info-btn:hover {
  background: #f3edff;
}

.produto-info-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: start;
}

.produto-info-imagem {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f3ff;
  display: grid;
  place-items: center;
}

.produto-info-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produto-info-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #5b21b6;
}

.produto-info-descricao {
  margin: 0 0 8px;
  color: #334155;
}

@media (max-width: 600px) {
  .produto-info-body {
    grid-template-columns: 1fr;
  }
  .produto-info-imagem {
    width: 100%;
    height: 180px;
  }
}

.pedido-card:hover::after {
  opacity: 1;
}

.pedido-card-image {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f3ff;
  display: grid;
  place-items: center;
}

.pedido-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pedido-card-placeholder {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe, #ffe4f0);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #5b21b6;
  letter-spacing: 1px;
}

.pedido-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.pedido-card-meta {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.85rem;
  color: #475569;
}

.pedido-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1f1147;
}

.pedido-add-btn {
  width: 100%;
  border: 0;
  background: var(--menu-bg);
  color: #000000 !important;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.pedido-add-btn:hover,
.pedido-add-btn:active,
.pedido-add-btn:focus,
.pedido-add-btn:focus-visible {
  color: #000000 !important;
}

.pedido-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pedido-add-btn:hover {
  background: var(--menu-hover);
}

.pedido-produtos-grid.scrolling .pedido-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.pedido-produtos-carousel {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: #f6f3ff;
  border: 1px solid #e9ddff;
  max-width: none;
  margin: 0;
}

.carousel-btn {
  border: 1px solid #e2d7ff;
  background: #ffffff;
  color: #3b155f;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 14px rgba(59, 21, 95, 0.18);
}

.carousel-btn:hover {
  background: #efe9ff;
}

.pedido-card h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.pedido-card p {
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.9rem;
}

.pedido-card button {
  border: 1px solid var(--menu-border);
  background: var(--menu-bg);
  color: #ffffff;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.pedido-total {
  margin: 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  background: #f5edff;
  border: 1px solid #e5d3ff;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: right;
}

.pedido-carrinho-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  width: 100%;
  align-self: flex-end;
}

.pedido-action-btn {
  border: 1px solid var(--menu-border) !important;
  background: var(--menu-bg) !important;
  color: var(--menu-text) !important;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pedido-action-btn:hover {
  background: var(--menu-hover);
}

.pedido-status-card {
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
}

.pedido-status-timeline {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.status-history {
  display: grid;
  gap: 6px;
}

.status-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-history-time {
  font-size: 12px;
  color: #475569;
}

.status-modal-itens {
  margin-top: 12px;
}

.status-modal-itens h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1f1147;
}

.status-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.status-modal-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95rem;
}

.status-modal-list li span:last-child {
  color: #475569;
}

.status-history-empty {
  font-size: 12px;
  color: #64748b;
}

.status-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
}

.status-step.active .status-dot {
  background: var(--menu-bg);
}

.status-step.active .status-label {
  font-weight: 700;
  color: #0f172a;
}

.pedido-acoes {
  display: inline-flex;
  gap: 6px;
}

.pedido-acoes button {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}

.pedido-status-select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 8px;
  font: inherit;
  min-width: 140px;
}

.pedido-status-select.status-aguardando {
  border-color: #f59e0b;
  color: #92400e;
  background: #fff7ed;
}

.pedido-status-select.status-confirmado {
  border-color: #0ea5e9;
  color: #0c4a6e;
  background: #e0f2fe;
}

.pedido-status-select.status-preparo {
  border-color: #6366f1;
  color: #4338ca;
  background: #eef2ff;
}

.pedido-status-select.status-saiu {
  border-color: #f97316;
  color: #9a3412;
  background: #ffedd5;
}

.pedido-status-select.status-entregue {
  border-color: #22c55e;
  color: #166534;
  background: #dcfce7;
}

.pedido-status-select.status-cancelado {
  border-color: #ef4444;
  color: #991b1b;
  background: #fee2e2;
}

.full-width {
  grid-column: 1 / -1;
}

.pedido-cliente-info {
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbff;
}

.pedido-cliente-info p {
  margin: 2px 0;
}



.meu-cadastro-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meu-cadastro-layout.single {
  grid-template-columns: 1fr;
}

.meu-cadastro-card {
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
}

.meu-cadastro-card h3 {
  margin: 0 0 10px;
}

.meu-cadastro-card p {
  margin: 0;
}

.meu-cadastro-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.meu-cadastro-form label {
  display: grid;
  gap: 6px;
  font-size: 1.05rem;
  color: #0f172a;
}

.meu-cadastro-form input {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

.cadastro-section {
  grid-column: 1 / -1;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
  margin-bottom: 12px;
}

.cadastro-section h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #1f1147;
}

.cadastro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.endereco-block {
  grid-column: 1 / -1;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
  margin-bottom: 12px;
}

.endereco-block h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #1f1147;
}

.endereco-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.endereco-grid .checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .cadastro-grid {
    grid-template-columns: 1fr;
  }
  .endereco-grid {
    grid-template-columns: 1fr;
  }
}

.meu-cadastro-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.meu-cadastro-actions .form-message {
  margin-right: auto;
}

.meu-cadastro-actions button {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #000000 !important;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.meu-cadastro-card {
  position: relative;
  padding-bottom: 64px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.meu-cadastro-actions {
  position: absolute;
  right: 0;
  bottom: 14px;
  width: auto;
}

@media (max-width: 768px) {
  .meu-cadastro-form {
    grid-template-columns: 1fr;
  }
}
.meu-cadastro-enderecos-lista {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.endereco-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}

.endereco-item.selected {
  box-shadow: none;
}

.endereco-item p {
  margin: 0;
  color: #0f172a;
}

.endereco-item .endereco-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.endereco-item .endereco-edit {
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-size: 1rem;
  padding: 0 4px;
}

.endereco-item .endereco-edit:hover {
  color: #111827;
}

.endereco-item .endereco-default {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: #334155;
}

.users-list h3 {
  margin: 0;
  font-size: 1.05rem;
}

.users-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 2px;
  margin-bottom: 12px;
}

.pedido-filtros {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.filters-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.filters-grid input,
.filters-grid select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe5ee;
  background: #ffffff;
}

.pedido-carrinho-table {
  max-height: 240px;
  overflow-y: auto;
}

.pedido-carrinho-table .users-table {
  table-layout: fixed;
  width: 100%;
}

.pedido-carrinho-table .users-table th:nth-child(1),
.pedido-carrinho-table .users-table td:nth-child(1) {
  width: 38%;
}

.pedido-carrinho-table .users-table th:nth-child(2),
.pedido-carrinho-table .users-table td:nth-child(2) {
  width: 10%;
}

.pedido-carrinho-table .users-table th:nth-child(3),
.pedido-carrinho-table .users-table td:nth-child(3) {
  width: 28%;
}

.pedido-carrinho-table .users-table th:nth-child(4),
.pedido-carrinho-table .users-table td:nth-child(4) {
  width: 14%;
}

.pedido-carrinho-table .users-table th:nth-child(5),
.pedido-carrinho-table .users-table td:nth-child(5) {
  width: 10%;
}

.pedido-carrinho-table .users-table td:nth-child(1) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pedido-carrinho-table thead th {
  position: sticky;
  top: 0;
  background: #eef6fb;
  z-index: 1;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.users-table th,
.users-table td {
  border: 1px solid #dbe5ee;
  padding: 9px 10px;
  text-align: left;
  font-size: 0.92rem;
}

.users-table thead th {
  background: #eef6fb;
}

.pedido-carrinho .users-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.pedido-carrinho .users-table th:nth-child(2),
.pedido-carrinho .users-table td:nth-child(2),
.pedido-carrinho .users-table th:nth-child(4),
.pedido-carrinho .users-table td:nth-child(4) {
  text-align: center;
  white-space: nowrap;
}

.pedido-carrinho .users-table th:nth-child(5),
.pedido-carrinho .users-table td:nth-child(5) {
  text-align: center;
}

.pedido-carrinho .users-table th:nth-child(3),
.pedido-carrinho .users-table td:nth-child(3) {
  text-align: left;
  white-space: normal;
}

.pedido-obs-input {
  width: 100%;
  min-width: 140px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 8px;
  font: inherit;
}

.table-empty {
  text-align: center;
  color: #64748b;
}

.detalhes-link {
  color: #0b63b6;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detalhes-link:hover {
  text-decoration: underline;
}

.pedido-status-list .users-table th:last-child,
.pedido-status-list .users-table td:last-child {
  text-align: center;
}

.pedido-status-list .users-table th,
.pedido-status-list .users-table td {
  text-align: center;
}

#meusPedidosSection .users-table th,
#meusPedidosSection .users-table td {
  text-align: center;
}


#todosPedidosSection .users-table th,
#todosPedidosSection .users-table td {
  text-align: center;
}

#usuariosSection .users-table th,
#usuariosSection .users-table td {
  text-align: center;
}

#todosPedidosSection .pedido-status-select {
  text-align: center;
  text-align-last: center;
}

.inicio-status-card {
  margin-top: 18px;
  border: 1px solid #dbe5ee;
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  gap: 12px;
}

.inicio-status-card.floating {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 520px;
  width: min(94vw, 520px);
  min-height: 260px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  z-index: 30;
  animation: floatIn 0.35s ease-out;
}

.app.cliente #inicioStatusCard {
  display: none !important;
}

.inicio-status-card.floating::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(14, 165, 233, 0.08));
  pointer-events: none;
}

.inicio-status-card.floating > * {
  position: relative;
  z-index: 1;
}

.inicio-status-card.floating .detalhes-link {
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  padding: 6px 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inicio-status-card.floating .detalhes-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}


.modal-card {
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.inicio-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inicio-status-head h3 {
  margin: 0;
}

.inicio-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.inicio-status-label {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 4px;
}

.users-table td.edit-cell {
  text-align: center;
}

.users-table td.status-cell {
  text-align: center;
}

.config-status .form-actions {
  justify-content: flex-start;
}

.status-switch {
  position: relative;
  width: 42px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.status-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.status-switch.active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.status-switch.active .knob {
  transform: translateX(20px);
}

.status-switch.inactive {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.status-switch:hover .knob {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.status-switch:active .knob {
  transform: scale(0.94);
}

.app.collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.app.collapsed .sidebar-title {
  opacity: 0;
}

.app.collapsed .sidebar nav a {
  justify-content: center;
}

.app.collapsed .menu-group-toggle {
  justify-content: center;
}

.app.collapsed .sidebar nav {
  padding: 0 6px;
}

.app.collapsed .content {
  margin-left: var(--sidebar-collapsed-width);
}

.app.collapsed .menu-label {
  display: none;
}

.app.collapsed .submenu {
  display: none;
}

.app.collapsed .submenu-indicator {
  display: none;
}

@media (max-width: 768px) {
  .login-brand {
    top: 9vh;
  }

  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    z-index: 10;
    transition: transform 220ms ease;
  }

  .content {
    margin-left: 0;
  }

  .app.mobile-open .sidebar {
    transform: translateX(0);
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .users-list-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .pedido-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pedido-produtos-carousel {
    grid-template-columns: 32px 1fr 32px;
    padding: 8px;
  }

  .meu-cadastro-layout {
    grid-template-columns: 1fr;
  }

  .inicio-cards {
    grid-template-columns: 1fr;
  }
}
.field-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.22);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: none;
}

.status-aguardando {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.status-confirmado {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #67e8f9;
}

.status-preparo {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
}

.status-saiu {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.status-entregue {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #86efac;
}

.status-cancelado {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
  .admin-dash-row:not(.triple) {
    grid-template-columns: 1fr;
  }
