/* ==========================================================================
   PASTELARIA CROC & CIA - ESTILOS GERAIS, COMANDA DIGITAL E RETAGUARDA
   COMPATIBILIDADE TOTAL: OPERA, CHROME, EDGE, SAFARI E FIREFOX
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Caveat:wght@700&family=Kalam:wght@700&family=Montserrat:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-red: #A31818;
  --dark-red: #780E0E;
  --deep-red: #520909;
  --gold-yellow: #FFBE1A;
  --bright-yellow: #FCD34D;
  --cream-bg: #FDFBF7;
  --ticket-border: #18181B;
  --ticket-bg: #FFFFFF;
  --ticket-header-bg: #1F2429;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #20BA5A;
  --radius-card: 16px;
  --radius-ticket: 24px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  --shadow-ticket: 0 15px 35px rgba(0,0,0,0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

body {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  background-color: #121010;
  color: #333333;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, #1A0505 0%, #3B0A0A 100%);
  border-bottom: 2px solid #5C1212;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  width: 100%;
}

.top-bar {
  background-color: #120303;
  color: #F3F4F6;
  font-size: 0.85rem;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2D0909;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FBBF24;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.contact-pill:hover {
  opacity: 0.85;
}

.status-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.main-nav {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #FFBE1A 0%, #D97706 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
  border: 2px solid #FFFBEB;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 0.72rem;
  color: #FBBF24;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-title {
  font-family: 'Bebas Neue', cursive, sans-serif;
  font-size: 1.85rem;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.nav-tabs {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.4);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  gap: 4px;
  flex-wrap: wrap;
  max-width: 100%;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: #E5E7EB;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255,255,255,0.08);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, #FFBE1A 0%, #F59E0B 100%);
  color: #180505;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  font-weight: 700;
}

.cart-quick-btn {
  background: linear-gradient(135deg, #25D366 0%, #15803D 100%);
  color: white;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.cart-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.cart-badge {
  background: #FFFFFF;
  color: #15803D;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */
.site-main {
  flex: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 80px;
  min-width: 0;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
  width: 100%;
  min-width: 0;
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   VIEW 1: CARDÁPIO OFICIAL
   ========================================================================== */
.cardapio-view-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  min-width: 0;
}

.cardapio-banner-intro {
  background: linear-gradient(90deg, rgba(163, 24, 24, 0.3) 0%, rgba(120, 14, 14, 0.1) 100%);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #FFFFFF;
}

.cardapio-intro-text h2 {
  font-size: 1.4rem;
  color: #FBBF24;
  margin-bottom: 4px;
}

.cardapio-intro-text p {
  color: #E5E7EB;
  font-size: 0.92rem;
}

.btn-start-order-now {
  background: linear-gradient(135deg, #FFBE1A 0%, #F59E0B 100%);
  color: #1E0707;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-start-order-now:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.cardapio-poster {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 20%, #A91919 0%, #821010 45%, #590909 95%);
  border-radius: 28px;
  border: 4px solid #D97706;
  padding: 36px 24px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  color: #FFFFFF;
}

.poster-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 14vw, 9rem);
  color: rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font-weight: 900;
  letter-spacing: 8px;
  max-width: 100%;
}

.poster-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.poster-tag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #FFBE1A;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.poster-main-title {
  font-family: 'Bebas Neue', cursive, sans-serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
}

.poster-corner-pastel-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 110px;
  height: 140px;
  background: url('../assets/pastel_corner_left.jpg') no-repeat 0 0;
  background-size: cover;
  border-bottom-right-radius: 30px;
  opacity: 0.95;
  filter: drop-shadow(4px 4px 10px rgba(0,0,0,0.6));
  z-index: 1;
  pointer-events: none;
}

.poster-corner-pastel-top-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 150px;
  background: url('../assets/pastel_corner_right.jpg') no-repeat 0 0;
  background-size: cover;
  border-bottom-left-radius: 30px;
  opacity: 0.95;
  filter: drop-shadow(-4px 4px 10px rgba(0,0,0,0.6));
  z-index: 1;
  pointer-events: none;
}

.poster-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
}

@media (max-width: 650px) {
  .poster-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.poster-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.poster-section-badge {
  background: #FFBE1A;
  color: #6B0E0E;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 3px;
  text-align: center;
  padding: 4px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: inline-block;
  align-self: flex-start;
  min-width: 130px;
}

.poster-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
}

.poster-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.poster-item-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #FFFFFF;
}

.poster-item-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}

.poster-item-price span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFD56B;
}

.poster-item-subtext {
  font-size: 0.8rem;
  color: #FCD34D;
  margin-top: -4px;
}

.poster-highlight-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 190, 26, 0.4);
  border-radius: 10px;
  padding: 8px 14px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  height: 58px;
  box-sizing: border-box;
}

@media (max-width: 650px) {
  .poster-highlight-box {
    margin-top: 14px;
    height: auto;
    min-height: 52px;
  }
}

.poster-highlight-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.25;
}

.poster-highlight-val {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 800;
  color: #FFBE1A;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .poster-highlight-val {
    font-size: 0.98rem;
  }
  .poster-highlight-label {
    font-size: 0.88rem;
  }
}

.poster-hero-image-wrap {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.poster-hero-img {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  border: 3px solid #FFBE1A;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: cover;
}

.poster-hero-callout {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 18px;
  border-radius: 999px;
  color: #FBBF24;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   VIEW 2: MONTAR PEDIDO
   ========================================================================== */
.builder-layout {
  display: block;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

.builder-controls-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.builder-step-card {
  background: #1C1919;
  border: 1px solid #332828;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  width: 100%;
  min-width: 0;
}

.builder-step-card.active-step {
  border-color: #D97706;
  box-shadow: 0 0 0 1px #D97706, 0 8px 24px rgba(0,0,0,0.4);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.step-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFBE1A 0%, #D97706 100%);
  color: #190505;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 700;
}

.step-helper-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #272222;
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.2);
  white-space: nowrap;
}

/* Step 1: Base Sizes */
.sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.size-option-card {
  background: #262121;
  border: 2px solid #3D3333;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.size-option-card:hover {
  border-color: #F59E0B;
  background: #2E2727;
  transform: translateY(-2px);
}

.size-option-card.selected {
  background: linear-gradient(180deg, #381515 0%, #290E0E 100%);
  border-color: #FFBE1A;
  box-shadow: 0 0 15px rgba(255, 190, 26, 0.25);
}

.size-option-card.selected::after {
  content: "✔";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  background: #FFBE1A;
  color: #190505;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-flavors-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.size-flavors-num span {
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #FBBF24;
}

.size-price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: #4ADE80;
}

.size-limit-badge {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #D1D5DB;
}

/* Quotas Progress Bar */
.flavor-quotas-wrapper {
  background: #231E1E;
  border: 1px solid #3D3333;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.quotas-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.quotas-title {
  color: #FBBF24;
  font-size: 0.88rem;
  font-weight: 700;
}

.quotas-count-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  background: #3B2E2E;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #5C4A4A;
}

.quotas-count-badge.complete {
  background: #14532D;
  color: #4ADE80;
  border-color: #22C55E;
}

.quotas-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quota-slot-pill {
  flex: 1;
  min-width: 55px;
  background: #181515;
  border: 1.5px dashed #4B3F3F;
  border-radius: 8px;
  padding: 5px 8px;
  text-align: center;
  font-size: 0.76rem;
  color: #9CA3AF;
  font-weight: 600;
  transition: all 0.2s;
}

.quota-slot-pill.filled {
  background: #381515;
  border: 1.5px solid #FFBE1A;
  color: #FFFFFF;
  font-weight: 700;
}

/* Sabor Único Auto-Repeat Banner */
.single-flavor-auto-notice {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FDE68A;
  font-size: 0.85rem;
}

/* Grid de Sabores com Contador [- QTY +] */
.flavors-stepper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.flavor-stepper-card {
  background: #252020;
  border: 1.5px solid #383030;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.flavor-stepper-card.has-qty {
  background: #3B1616;
  border-color: #FFBE1A;
}

.flavor-card-name {
  color: #F3F4F6;
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
  cursor: pointer;
}

.flavor-stepper-card.has-qty .flavor-card-name {
  color: #FFFFFF;
  font-weight: 700;
}

.stepper-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: #382F2F;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.stepper-btn:hover:not(:disabled) {
  background: #FFBE1A;
  color: #190505;
}

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper-qty {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.flavor-stepper-card.has-qty .stepper-qty {
  color: #FFBE1A;
}

/* Botão Selecionar Todos / Desmarcar Todos por Categoria */
.btn-toggle-all-category {
  background: #252020;
  border: 1.5px solid #FFBE1A;
  color: #FFBE1A;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-toggle-all-category:hover {
  background: #FFBE1A;
  color: #121010;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 190, 26, 0.35);
}

.btn-toggle-all-category.all-selected {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #F87171;
}

.btn-toggle-all-category.all-selected:hover {
  background: #EF4444;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Grid de Adicionais e Molhos */
.items-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.interactive-checkbox-item {
  background: #252020;
  border: 1.5px solid #383030;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.interactive-checkbox-item:hover {
  background: #2F2929;
  border-color: #6B5D5D;
}

.interactive-checkbox-item.checked {
  background: #3B1616;
  border-color: #FFBE1A;
}

.interactive-checkbox-item .item-label {
  color: #F3F4F6;
  font-size: 0.9rem;
  font-weight: 500;
}

.interactive-checkbox-item.checked .item-label {
  color: #FFFFFF;
  font-weight: 700;
}

.item-check-indicator {
  width: 18px;
  height: 18px;
  border: 1.8px solid #524747;
  border-radius: 4px;
  background: #1A1616;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: transparent;
  transition: all 0.15s ease;
}

.interactive-checkbox-item.checked .item-check-indicator {
  background: #FFBE1A;
  border-color: #FFBE1A;
  color: #1A0505;
}

/* Bebidas Builder List */
.beverages-builder-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beverage-builder-row {
  background: #252020;
  border: 1.5px solid #383030;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.bev-info-name {
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
}

.bev-info-price {
  color: #4ADE80;
  font-size: 0.85rem;
  font-weight: 700;
}

.bev-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #3A3232;
  color: #FFFFFF;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: #F59E0B;
  color: #190505;
}

.qty-display {
  font-weight: 800;
  color: #FFFFFF;
  min-width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

/* Formulário do Cliente e Seção de Entrega */
.customer-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.customer-form-grid .form-group > .form-label {
  min-height: 24px;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .customer-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

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

.form-label {
  color: #D1D5DB;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  background: #272121;
  border: 1.5px solid #423838;
  border-radius: 10px;
  padding: 9px 12px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #FFBE1A;
}

/* Delivery Highlight Box & Alerts */
.delivery-options-box {
  background: #231B1B;
  border: 1.5px solid #D97706;
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delivery-box-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #FFBE1A;
  font-weight: 700;
  font-size: 0.95rem;
}

.delivery-status-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  transition: all 0.2s;
}

.delivery-status-alert.alert-amber {
  background: rgba(234, 179, 8, 0.16);
  border-left: 4px solid #EAB308;
  color: #FDE68A;
}

.delivery-status-alert.alert-green {
  background: rgba(34, 197, 94, 0.16);
  border-left: 4px solid #22C55E;
  color: #BBF7D0;
}

.delivery-fee-badge {
  background: #15803D;
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.payment-methods-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 330px) {
  .payment-methods-pills {
    grid-template-columns: 1fr;
  }
}

/* Order Type Selector Grid & Cards */
.order-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
@media (max-width: 640px) {
  .order-type-grid {
    grid-template-columns: 1fr;
  }
}
.order-type-card {
  background: #272121;
  border: 1.8px solid #423838;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: all 0.2s ease;
  user-select: none;
}
.order-type-card:hover {
  border-color: #6B5D5D;
  background: #2E2525;
}
.order-type-card.selected {
  background: #3B1616;
  border-color: #FFBE1A;
  color: #FFBE1A;
  box-shadow: 0 0 12px rgba(255, 190, 26, 0.25);
}
.order-type-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
}
.order-type-card.selected .order-type-card-title {
  color: #FFBE1A;
}
.order-type-card-desc {
  font-size: 0.78rem;
  color: #9CA3AF;
  line-height: 1.3;
}
.order-type-card.selected .order-type-card-desc {
  color: #FDE68A;
}

/* Shake Animation para Validação Obrigatória */
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.input-error-shake {
  animation: inputShake 0.4s ease-in-out !important;
  border-color: #EF4444 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6) !important;
  background: rgba(239, 68, 68, 0.08) !important;
}

.payment-pill {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #272121;
  border: 1.5px solid #423838;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  color: #D1D5DB;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.payment-pill:hover {
  border-color: #6B5D5D;
}

.payment-pill.selected {
  background: #3B1616;
  border-color: #FFBE1A;
  color: #FFBE1A;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 190, 26, 0.2);
}

.payment-fee-notice {
  font-size: 0.82rem;
  color: #F59E0B;
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.12);
  border-left: 3.5px solid #F59E0B;
  border-radius: 6px;
  line-height: 1.4;
}

/* Botões de Seleção de Troco e Chips de Pagamento em Dinheiro */
.btn-troco-toggle {
  background: #272121;
  border: 1.5px solid #423838;
  border-radius: 8px;
  padding: 8px 14px;
  color: #D1D5DB;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-troco-toggle:hover {
  border-color: #6B5D5D;
}

.btn-troco-toggle.active {
  background: #3B1616;
  border-color: #FFBE1A;
  color: #FFBE1A;
  font-weight: 700;
  box-shadow: 0 0 8px rgba(255, 190, 26, 0.2);
}

.troco-chip {
  background: #272121;
  border: 1px solid #423838;
  border-radius: 6px;
  padding: 6px 12px;
  color: #FCD34D;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.troco-chip:hover {
  background: #3B1616;
  border-color: #FFBE1A;
  transform: translateY(-1px);
}

.cep-feedback-status {
  font-size: 0.83rem;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.4;
}
.cep-feedback-status.loading {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.cep-feedback-status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86EFAC;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.cep-feedback-status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.client-phone-tag {
  background: #252D26;
  border: 1px solid #15803D;
  color: #86EFAC;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Actions Card */
.builder-actions-card {
  background: #1C1919;
  border: 1px solid #332828;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.builder-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed #3D3333;
}

.subtotal-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E5E7EB;
}

.subtotal-amount {
  font-size: 1.7rem;
  font-weight: 900;
  color: #4ADE80;
  font-family: 'Montserrat', sans-serif;
}

.builder-buttons-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .builder-buttons-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

.btn-whatsapp-order {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #25D366 0%, #15803D 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.2s;
}

.btn-whatsapp-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-add-another-pastel {
  background: #2E2525;
  color: #FFBE1A;
  border: 1.5px solid #FFBE1A;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-add-another-pastel:hover {
  background: #3B2E2E;
}

.btn-print-slip {
  background: #332B2B;
  color: #FFFFFF;
  border: 1.5px solid #4D4141;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn-print-slip:hover {
  background: #443939;
}

/* ==========================================================================
   THE COMANDA TICKET
   ========================================================================== */
.comanda-ticket-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  min-width: 0;
  margin: 0 auto;
}

.comanda-ticket-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1C1919;
  border: 1px solid #332828;
  border-radius: 12px;
  padding: 8px 12px;
}

.comanda-tools-title {
  color: #FBBF24;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comanda-tools-actions {
  display: flex;
  gap: 6px;
}

.btn-ticket-mini {
  background: #2D2525;
  border: 1px solid #453939;
  color: #E5E7EB;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-ticket-mini:hover {
  background: #3D3333;
  color: #FFFFFF;
}

/* THE AUTHENTIC PAPER COMANDA */
.comanda-ticket {
  background-color: var(--ticket-bg);
  color: var(--ticket-border);
  border: 3px solid var(--ticket-border);
  border-radius: var(--radius-ticket);
  padding: 12px 10px;
  box-shadow: var(--shadow-ticket);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  user-select: none;
  position: relative;
  box-sizing: border-box;
}

.comanda-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.comanda-logo-wrap {
  display: flex;
  flex-direction: column;
}

.comanda-logo-script {
  font-family: 'Kalam', 'Caveat', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 0.95;
  color: #111111;
  letter-spacing: -0.5px;
}

.comanda-logo-sub {
  font-family: 'Kalam', 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 0.95;
  color: #111111;
  letter-spacing: -0.5px;
}

.comanda-number-box {
  border: 2px solid var(--ticket-border);
  border-radius: 12px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
}

.comanda-number-box span {
  font-size: 0.9rem;
  font-weight: 800;
  color: #111111;
}

.comanda-number-input {
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111111;
  width: 55px;
  outline: none;
  text-align: center;
  background: transparent;
}

.comanda-subheader-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 4px;
}

.comanda-sabores-tag {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #111111;
}

.comanda-whatsapp-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111111;
}

.comanda-whatsapp-icon {
  font-size: 1rem;
}

/* Main Box */
.comanda-box-bordered {
  border: 2px solid var(--ticket-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}

.comanda-sizes-adicionais-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ticket-header-bg);
  color: #FFFFFF;
  border-bottom: 2px solid var(--ticket-border);
}

.comanda-sizes-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 3px 6px;
  border-right: 2px solid var(--ticket-border);
}

.comanda-size-num-pill {
  width: 20px;
  height: 18px;
  border: 1.5px solid #FFFFFF;
  border-radius: 4px;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.comanda-size-num-pill.selected {
  background: #FFFFFF;
  color: #111111;
  box-shadow: 0 0 4px rgba(255,255,255,0.8);
}

.comanda-adicionais-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.comanda-two-cols-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #FFFFFF;
}

.comanda-col-left {
  border-right: 2px solid var(--ticket-border);
  display: flex;
  flex-direction: column;
}

.comanda-col-right {
  display: flex;
  flex-direction: column;
}

.comanda-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  border-bottom: 1px solid #EDEDED;
  cursor: pointer;
  transition: background 0.1s;
}

.comanda-row-item:last-child {
  border-bottom: none;
}

.comanda-row-item:hover {
  background-color: #F8F8F8;
}

.comanda-item-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 2px;
}

.comanda-item-checkbox {
  width: 14px;
  height: 14px;
  border: 1.6px solid var(--ticket-border);
  border-radius: 3px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.1s ease;
  user-select: none;
}

.comanda-row-item.checked .comanda-item-checkbox {
  background: #FFFFFF;
  color: #111111;
  border-color: #111111;
}

.comanda-acrescimo-bar {
  background: var(--ticket-header-bg);
  color: #FFFFFF;
  text-align: center;
  padding: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-top: 2px solid var(--ticket-border);
}

.comanda-molhos-box,
.comanda-bebidas-box {
  border: 2px solid var(--ticket-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}

.comanda-molhos-header,
.comanda-bebidas-header {
  background: var(--ticket-header-bg);
  color: #FFFFFF;
  text-align: center;
  padding: 3px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ticket-border);
}

.comanda-molhos-body,
.comanda-bebidas-body {
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
}

.comanda-total-pay-box {
  border: 2px solid var(--ticket-border);
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
  background: #FFFFFF;
}

.comanda-total-first-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comanda-delivery-fee-line {
  font-size: 0.72rem;
  color: #2563EB;
  font-weight: 700;
  border-bottom: 1px dashed #DDDDDD;
  padding-bottom: 3px;
  display: flex;
  justify-content: space-between;
}

.comanda-total-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.comanda-total-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: #111111;
}

.comanda-total-value {
  font-size: 0.95rem;
  font-weight: 900;
  color: #111111;
  text-decoration: underline;
}

.comanda-pay-methods-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comanda-pay-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.comanda-pay-check {
  width: 12px;
  height: 12px;
  border: 1.8px solid var(--ticket-border);
  border-radius: 3px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  color: transparent;
}

.comanda-pay-item.checked .comanda-pay-check {
  color: #111111;
}

.comanda-social-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111111;
  padding-top: 2px;
}

/* ==========================================================================
   VIEW: RETAGUARDA (PAINEL DO FUNCIONÁRIO / BALCÃO / COZINHA)
   ========================================================================== */
.admin-view-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.admin-top-card {
  background: linear-gradient(135deg, #241432 0%, #1A0E24 100%);
  border: 1px solid #7E22CE;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-title-wrap h2 {
  font-size: 1.5rem;
  color: #E9D5FF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-title-wrap p {
  color: #C084FC;
  font-size: 0.88rem;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-admin-action {
  padding: 9px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-admin-primary {
  background: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.btn-admin-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.6);
}

.btn-admin-secondary {
  background: #3B264E;
  color: #E9D5FF;
  border: 1px solid #6B21A8;
}

.btn-admin-secondary:hover {
  background: #4C3263;
}

/* Abas de Navegação Interna da Retaguarda */
.admin-section-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #332828;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.btn-admin-tab {
  background: #252020;
  border: 1px solid #3D3333;
  color: #D1D5DB;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-admin-tab:hover {
  background: #332B2B;
  color: #FFFFFF;
}

.btn-admin-tab.active {
  background: #A855F7;
  color: #FFFFFF;
  border-color: #A855F7;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.admin-tab-content-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.admin-tab-content-panel.active {
  display: block;
}

/* Painel de Edição de Preços */
.admin-card-section {
  background: #1C1919;
  border: 1px solid #332828;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px dashed #3D3333;
  padding-bottom: 10px;
}

.admin-section-header h3 {
  color: #FFBE1A;
  font-size: 1.25rem;
}

.price-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.price-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-field-group label {
  color: #E5E7EB;
  font-size: 0.85rem;
  font-weight: 600;
}

.price-input-currency-wrap {
  display: flex;
  align-items: center;
  background: #272121;
  border: 1.5px solid #4D3F3F;
  border-radius: 10px;
  padding: 0 10px;
}

.price-input-currency-wrap span {
  color: #9CA3AF;
  font-weight: 700;
  font-size: 0.9rem;
}

.price-input-currency-wrap input {
  background: transparent;
  border: none;
  color: #4ADE80;
  font-weight: 800;
  font-size: 1rem;
  padding: 8px 6px;
  width: 100%;
  outline: none;
}

/* Tabela de Gerenciamento de Taxas de Entrega */
.delivery-admin-table-wrap {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #332828;
  border-radius: 10px;
  margin-bottom: 16px;
}

.delivery-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.delivery-admin-table th {
  background: #251D2A;
  color: #D8B4FE;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  font-weight: 700;
  border-bottom: 2px solid #4D3263;
}

.delivery-admin-table td {
  padding: 8px 14px;
  border-bottom: 1px solid #272121;
  color: #E5E7EB;
}

.delivery-admin-table tr:hover {
  background: #252020;
}

.btn-remove-rate-mini {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-remove-rate-mini:hover {
  text-decoration: underline;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.admin-reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

@media (min-width: 1360px) {
  .admin-reports-kpi-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 860px) and (max-width: 1359px) {
  .admin-reports-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 859px) {
  .admin-reports-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.metric-card {
  background: #1C1919;
  border: 1px solid #332828;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.metric-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.metric-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.metric-label {
  color: #9CA3AF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.metric-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFFFFF;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  margin-top: 3px;
}

/* Scrollbar moderna e discreta para tabelas de administração */
#admin-products-table-container > div::-webkit-scrollbar,
.admin-table-wrapper::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
#admin-products-table-container > div::-webkit-scrollbar-track,
.admin-table-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}
#admin-products-table-container > div::-webkit-scrollbar-thumb,
.admin-table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.5);
  border-radius: 4px;
}
#admin-products-table-container > div::-webkit-scrollbar-thumb:hover,
.admin-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.8);
}

.admin-filters-bar {
  background: #1C1919;
  border: 1px solid #332828;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.status-filters-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip-btn {
  background: #272121;
  border: 1px solid #3D3333;
  color: #D1D5DB;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip-btn.active {
  background: #FFBE1A;
  color: #190505;
  border-color: #FFBE1A;
  font-weight: 700;
}

.admin-search-input {
  background: #272121;
  border: 1px solid #453A3A;
  border-radius: 8px;
  padding: 7px 12px;
  color: #FFFFFF;
  font-size: 0.88rem;
  min-width: 240px;
  outline: none;
}

.admin-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.admin-order-card {
  background: #1C1919;
  border: 1.5px solid #332828;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.admin-order-card.status-pendente {
  border-left: 5px solid #EAB308;
}

.admin-order-card.status-preparo {
  border-left: 5px solid #3B82F6;
}

.admin-order-card.status-pronto {
  border-left: 5px solid #22C55E;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed #332828;
}

.order-card-id-time {
  display: flex;
  flex-direction: column;
}

.order-card-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFBE1A;
}

.order-card-time {
  font-size: 0.76rem;
  color: #9CA3AF;
}

.status-dropdown-select {
  background: #2D2525;
  color: #FFFFFF;
  border: 1px solid #4D3F3F;
  border-radius: 8px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.order-card-client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-name-tag {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
}

.client-location-tag {
  color: #FBBF24;
  font-size: 0.82rem;
  font-weight: 600;
}

.order-card-details-box {
  background: #241F1F;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.84rem;
  color: #D1D5DB;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
}

.order-card-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 2px;
  border-top: 1px solid #332828;
}

.order-card-total-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: #4ADE80;
}

.order-card-payment-tag {
  font-size: 0.82rem;
  color: #E5E7EB;
  font-weight: 600;
}

.order-card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-card-action {
  padding: 7px 8px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-action-print {
  background: #3B3030;
  color: #FFFFFF;
}

.btn-action-print:hover {
  background: #524343;
}

.btn-action-pdf {
  background: #7E22CE;
  color: #FFFFFF;
}

.btn-action-pdf:hover {
  background: #9333EA;
}

.btn-action-wa {
  background: #15803D;
  color: #FFFFFF;
  grid-column: 1 / -1;
}

.btn-action-wa:hover {
  background: #16A34A;
}

/* ==========================================================================
   VIEW 3: RESUMO COMPLETO / CARRINHO DE COMPRAS
   ========================================================================== */
.cart-view-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.cart-items-card {
  background: #1C1919;
  border: 1px solid #332828;
  border-radius: 18px;
  padding: 22px;
}

.cart-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #332828;
}

.cart-title-row h2 {
  color: #FFFFFF;
  font-size: 1.4rem;
}

.empty-cart-state {
  text-align: center;
  padding: 36px 16px;
  color: #9CA3AF;
}

.empty-cart-icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.cart-pastel-item {
  background: #252020;
  border: 1.5px solid #3A3030;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.pastel-summary-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pastel-summary-title {
  color: #FFBE1A;
  font-size: 1.1rem;
  font-weight: 700;
}

.pastel-summary-details {
  font-size: 0.85rem;
  color: #D1D5DB;
}

.pastel-summary-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #4ADE80;
  white-space: nowrap;
}

.btn-remove-cart-item {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.btn-remove-cart-item:hover {
  text-decoration: underline;
}

/* Showcase Dedicated View */
.comanda-showcase-view-container {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 100%;
}

.comanda-showcase-header {
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.comanda-showcase-header h2 {
  font-size: 1.6rem;
  color: #FBBF24;
}

.comanda-showcase-header p {
  color: #9CA3AF;
  font-size: 0.9rem;
}

.comanda-showcase-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  flex-wrap: wrap;
}

/* Floating Bottom Bar on Mobile */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1C1919;
  border-top: 2px solid #D97706;
  padding: 10px 16px;
  z-index: 90;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.5);
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .mobile-bottom-bar {
    display: flex;
  }
  .site-main {
    padding-bottom: 100px;
  }
}

.mobile-bar-total-label {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-transform: uppercase;
}

.mobile-bar-total-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #4ADE80;
}

.mobile-bar-actions {
  display: flex;
  gap: 8px;
}

.btn-mobile-action {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-mobile-whatsapp {
  background: #25D366;
  color: white;
}

.btn-mobile-comanda {
  background: #FFBE1A;
  color: #190505;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 90vw;
}

.toast {
  background: #111827;
  color: #FFFFFF;
  border-left: 4px solid #FFBE1A;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideIn 0.3s ease;
  pointer-events: auto;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-content-card {
  background: #1C1919;
  border: 1px solid #382C2C;
  border-radius: 18px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #332727;
  color: #FFFFFF;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  border-radius: 12px;
}

/* Tabela de Entregas Modal */
.delivery-table-modal-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  max-height: 60vh;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .delivery-table-modal-list {
    grid-template-columns: 1fr;
  }
}

.delivery-rate-row {
  background: #252020;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #383030;
  font-size: 0.85rem;
}

.delivery-rate-name {
  color: #F3F4F6;
  font-weight: 500;
}

.delivery-rate-val {
  color: #4ADE80;
  font-weight: 800;
}

/* Footer Discreto com Acesso para Funcionários */
.site-footer {
  margin-top: auto;
  background-color: #0D0B0B;
  border-top: 1px solid #241D1D;
  padding: 14px 16px;
  color: #6B7280;
  font-size: 0.8rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.discreet-staff-link {
  color: #4B5563;
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.discreet-staff-link:hover {
  color: #9CA3AF;
}

/* ==========================================================================
   ISOLATED PRINT STYLES (@media print)
   ========================================================================== */
#print-isolated-container {
  display: none;
}

@media print {
  @page {
    size: portrait;
    margin: 3mm 5mm !important;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    font-size: 10pt !important;
  }

  body > *:not(#print-isolated-container) {
    display: none !important;
  }

  #print-isolated-container {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #print-isolated-container .comanda-ticket {
    display: block !important;
    width: 330px !important;
    max-width: 330px !important;
    margin: 0 auto !important;
    padding: 8px 10px !important;
    border: 2px solid #000000 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  #print-isolated-container .comanda-logo-script {
    font-size: 1.6rem !important;
    line-height: 1 !important;
  }

  #print-isolated-container .comanda-logo-sub {
    font-size: 1.35rem !important;
    line-height: 1 !important;
  }

  #print-isolated-container .comanda-number-box {
    padding: 2px 6px !important;
    border: 1.5px solid #000000 !important;
  }

  #print-isolated-container .comanda-box-bordered,
  #print-isolated-container .comanda-molhos-box,
  #print-isolated-container .comanda-bebidas-box,
  #print-isolated-container .comanda-total-pay-box {
    border: 1.8px solid #000000 !important;
    margin-bottom: 5px !important;
    border-radius: 8px !important;
  }

  #print-isolated-container .comanda-sizes-adicionais-bar,
  #print-isolated-container .comanda-acrescimo-bar,
  #print-isolated-container .comanda-molhos-header,
  #print-isolated-container .comanda-bebidas-header {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    padding: 2px !important;
    font-size: 0.7rem !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #print-isolated-container .comanda-size-num-pill.selected {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #print-isolated-container .comanda-row-item {
    padding: 1.2px 4px !important;
    min-height: 16px !important;
    border-bottom: 0.5px solid #CCCCCC !important;
  }

  #print-isolated-container .comanda-item-name {
    font-size: 0.67rem !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
  }

  #print-isolated-container .comanda-item-checkbox {
    width: 12px !important;
    height: 12px !important;
    font-size: 9px !important;
    border: 1.2px solid #000000 !important;
  }

  #print-isolated-container .comanda-row-item.checked .comanda-item-checkbox,
  #print-isolated-container .comanda-pay-item.checked .comanda-pay-check {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-weight: 900 !important;
  }

  /* IMPRESSÃO SEPARADA DE COMANDAS (MULTI-PASTEL) */
  #print-isolated-container .comanda-ticket-slip {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 24px !important;
  }

  #print-isolated-container .comanda-page-break {
    page-break-after: always !important;
    break-after: page !important;
  }

  #print-isolated-container .comanda-pastel-seq-header {
    background-color: #000000 !important;
    color: #FFFFFF !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    padding: 3px !important;
    margin: 4px 0 !important;
    border-radius: 4px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ==========================================================================
   ESTILOS DO BOTÃO "ADICIONAR OUTRO PASTEL" ANTES DO PASSO 5
   ========================================================================== */
.add-another-pastel-banner-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 190, 26, 0.12) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 2px dashed #FFBE1A;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 18px 0 24px 0;
}

.add-another-pastel-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.add-another-icon {
  font-size: 2rem;
  line-height: 1;
}

.add-another-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 2px 0;
}

.add-another-subtitle {
  color: #D1D5DB;
  font-size: 0.85rem;
  margin: 0;
}

.btn-add-another-pastel-prominent {
  background: #FFBE1A;
  color: #1E1229;
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(255, 190, 26, 0.3);
}

.btn-add-another-pastel-prominent:hover {
  background: #FFA500;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 190, 26, 0.4);
}

@media (max-width: 640px) {
  .add-another-pastel-banner-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .add-another-pastel-info {
    flex-direction: column;
    text-align: center;
  }
  .btn-add-another-pastel-prominent {
    justify-content: center;
  }
}

/* ==========================================================================
   RESUMO COMPLETO DO PEDIDO NO FINAL DA PÁGINA (SUBSTITUI "MEU PEDIDO")
   ========================================================================== */
.order-final-summary-card {
  background: #241731;
  border: 2px solid #6B21A8;
  border-radius: 14px;
  padding: 22px;
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.summary-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-icon {
  font-size: 1.5rem;
}

.summary-title {
  color: #FFBE1A;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
}

.summary-badge {
  background: rgba(168, 85, 247, 0.25);
  color: #D8B4FE;
  border: 1px solid #A855F7;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.summary-item-info {
  flex: 1;
}

.summary-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.summary-item-name {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
}

.summary-item-details {
  color: #D1D5DB;
  font-size: 0.84rem;
  line-height: 1.35;
}

.summary-item-price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.summary-item-price {
  color: #4ADE80;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.summary-item-remove-btn {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.summary-item-remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

.summary-breakdown-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: #D1D5DB;
}

.summary-row.total-row {
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  margin-top: 4px;
}

.summary-row .total-label {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 900;
}

.summary-row .total-amount {
  color: #4ADE80;
  font-size: 1.45rem;
  font-weight: 900;
}

.summary-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-secondary-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.summary-secondary-buttons .btn-ticket-mini {
  padding: 8px 6px;
  font-size: 0.8rem;
  justify-content: center;
  white-space: nowrap;
  gap: 5px;
}

@media (max-width: 680px) {
  .summary-secondary-buttons {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .summary-secondary-buttons {
    grid-template-columns: 1fr;
  }
}

/* Admin Date Filter Group & Quick Chips */
.admin-date-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #272121;
  border: 1.5px solid #423838;
  padding: 6px 12px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.admin-date-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFBE1A;
  white-space: nowrap;
}

.date-quick-chips {
  display: flex;
  gap: 4px;
}

.date-chip-btn {
  background: #1E1229;
  border: 1px solid #453939;
  color: #D1D5DB;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.date-chip-btn:hover {
  border-color: #FFBE1A;
  color: #FFFFFF;
}

.date-chip-btn.active {
  background: #FFBE1A;
  color: #1E1229;
  border-color: #FFBE1A;
  font-weight: 800;
}

.admin-date-input {
  background: #1E1229;
  border: 1px solid #453939;
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  color-scheme: dark;
}

.admin-date-input:focus {
  border-color: #FFBE1A;
  box-shadow: 0 0 6px rgba(255, 190, 26, 0.3);
}

.btn-clear-date {
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}

.btn-clear-date:hover {
  transform: scale(1.1);
  background: #DC2626;
}

/* Grid Flexível de Campos Promocionais */
.promo-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 14px;
  border-radius: 8px;
}

/* Grade de Horário de Funcionamento Semanal */
.store-day-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(80px, 0.8fr) minmax(120px, 1fr) minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 640px) {
  .store-day-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 8px;
  }
}

.btn-admin-action {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
}

@media (max-width: 600px) {
  .btn-admin-action {
    width: 100%;
    padding: 12px 14px !important;
    font-size: 0.92rem !important;
  }
}

/* ==============================================================================
   ESTILOS DEDICADOS: TABELA DE AUDITORIA & RELATÓRIO WHATSAPP
   ============================================================================== */
#tab-panel-whatsapp-logs .admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

#tab-panel-whatsapp-logs .admin-table th,
#tab-panel-whatsapp-logs .admin-table td {
  vertical-align: middle;
}

#tab-panel-whatsapp-logs .admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

#tab-panel-whatsapp-logs .admin-table td span {
  white-space: nowrap !important;
}

/* ==============================================================================
   MODO BALCÃO DEDICADO (FLUXO ULTRA SIMPLIFICADO DE ATENDIMENTO PRESENCIAL)
   ============================================================================== */
html.mode-balcao .site-header,
body.mode-balcao .site-header {
  display: none !important;
}

html.mode-balcao #balcao-header,
body.mode-balcao #balcao-header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-bottom: 2px solid #6366f1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 10px 18px;
}

.balcao-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.balcao-badge-icon {
  font-size: 1.8rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid #6366f1;
  border-radius: 12px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.balcao-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

.balcao-header-sub {
  font-size: 0.78rem;
  color: #c7d2fe;
}

.balcao-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-balcao-header-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-balcao-header-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fbbf24;
  color: #fbbf24;
}

.btn-balcao-header-admin {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 1px solid #f59e0b;
  color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.4);
}

.btn-balcao-header-admin:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.6);
}

/* Ocultar elementos desnecessários do fluxo de balcão */
html.mode-balcao #store-closed-banner,
body.mode-balcao #store-closed-banner,
html.mode-balcao #store-closed-banner-cardapio,
body.mode-balcao #store-closed-banner-cardapio,
html.mode-balcao #promo-banner-container,
body.mode-balcao #promo-banner-container,
html.mode-balcao #order-type-container,
body.mode-balcao #order-type-container,
html.mode-balcao #delivery-section-box,
body.mode-balcao #delivery-section-box,
html.mode-balcao #takeout-notice-group,
body.mode-balcao #takeout-notice-group,
html.mode-balcao #dinein-location-group,
body.mode-balcao #dinein-location-group,
html.mode-balcao #payment-change-container,
body.mode-balcao #payment-change-container,
html.mode-balcao #view-cardapio,
body.mode-balcao #view-cardapio {
  display: none !important;
}

/* No modo balcão, exibe o seletor ultra-simplificado de localidade/frete */
body.mode-balcao #balcao-frete-container {
  display: block !important;
}

/* No modo balcão, a view-builder é exibida diretamente */
html.mode-balcao #view-builder,
body.mode-balcao #view-builder {
  display: block !important;
}

body.mode-balcao .balcao-contact-highlight {
  display: block !important;
  background: rgba(34, 197, 94, 0.08);
  border: 1.5px dashed rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

body.mode-balcao .balcao-contact-highlight-title {
  color: #4ade80;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

body.mode-balcao .balcao-contact-highlight-desc {
  color: #9ca3af;
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.4;
}

/* Destaque para o botão de finalizar balcão */
body.mode-balcao #btn-send-whatsapp {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border: 1px solid #22c55e;
  font-size: 1.12rem;
  font-weight: 800;
  padding: 16px 22px;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

body.mode-balcao #btn-send-whatsapp:hover {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.6);
}

/* Botões dedicados no Modal de Sucesso para Balcão */
.balcao-success-actions {
  display: none;
  flex-direction: column;
  gap: 10px;
}

body.mode-balcao .balcao-success-actions {
  display: flex !important;
}

body.mode-balcao .default-success-actions {
  display: none !important;
}

.btn-balcao-next-order {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.btn-balcao-next-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.btn-balcao-print {
  background: rgba(255, 190, 26, 0.15);
  border: 1px solid #ffbe1a;
  color: #ffbe1a;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-balcao-print:hover {
  background: rgba(255, 190, 26, 0.25);
  color: #ffffff;
}

.btn-balcao-back-admin-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0 !important;
  border-radius: 10px;
  padding: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-balcao-back-admin-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}

/* ==========================================================================
   ESTILOS DE CONTROLE DE ESTOQUE (SABORES & COMPLEMENTOS EM FALTA / ESGOTADOS)
   ========================================================================== */

/* Montador de Pastéis: Sabor em falta */
.flavor-stepper-card.out-of-stock {
  background: #1e1919 !important;
  border-color: #4a2424 !important;
  opacity: 0.65;
}

.flavor-stepper-card.out-of-stock:hover {
  border-color: #ef4444 !important;
}

.flavor-stepper-card.out-of-stock .flavor-card-name {
  color: #9ca3af !important;
  text-decoration: line-through;
  cursor: not-allowed !important;
}

.badge-out-of-stock {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

.badge-out-of-stock-mini {
  display: inline-block;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Montador de Pastéis: Adicional ou Molho em falta */
.interactive-checkbox-item.out-of-stock {
  background: #1e1919 !important;
  border-color: #4a2424 !important;
  opacity: 0.65;
  cursor: not-allowed !important;
}

.interactive-checkbox-item.out-of-stock:hover {
  border-color: #ef4444 !important;
}

.interactive-checkbox-item.out-of-stock .item-label {
  color: #9ca3af !important;
  text-decoration: line-through;
}

/* Comanda do Cliente: Item em falta */
.comanda-row-item.out-of-stock {
  opacity: 0.55;
  cursor: not-allowed !important;
}

.comanda-row-item.out-of-stock .comanda-item-name {
  text-decoration: line-through;
  color: #9ca3af !important;
}

/* ==========================================================================
   PAINEL DE ADMIN: GESTÃO DE SABORES & COMPLEMENTOS (INGREDIENTES)
   ========================================================================== */
.admin-ingredients-stat-card {
  background: #1f1826;
  border: 1px solid #4a284e;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-ingredients-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.admin-ingredients-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-ingredients-stat-title {
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-ingredients-stat-val {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.admin-ingredients-stat-sub {
  font-size: 0.76rem;
  color: #d1d5db;
  margin-top: 2px;
}

.admin-ingredients-filter-chip {
  background: #241c2c;
  border: 1px solid #4a3854;
  color: #d1d5db;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.admin-ingredients-filter-chip:hover {
  background: #34283f;
  color: #ffffff;
}

.admin-ingredients-filter-chip.active {
  background: #ffbe1a;
  border-color: #ffbe1a;
  color: #1a0505;
  font-weight: 800;
}

.admin-ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.admin-ingredient-card {
  background: #22182b;
  border: 1.5px solid #3c264c;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.15s ease;
}

.admin-ingredient-card:hover {
  border-color: #633c7d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.admin-ingredient-card.is-missing {
  background: #241419;
  border-color: #ef4444;
}

.admin-ingredient-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.admin-ingredient-name {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.admin-ingredient-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c084fc;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 1px 7px;
  border-radius: 4px;
}

.admin-ingredient-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-ingredient-status-pill.available {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
}

.admin-ingredient-status-pill.missing {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.btn-ingredient-toggle {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  border: none;
}

.btn-ingredient-toggle.btn-to-missing {
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid #ef4444;
  color: #fca5a5;
}

.btn-ingredient-toggle.btn-to-missing:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-ingredient-toggle.btn-to-available {
  background: rgba(34, 197, 94, 0.2);
  border: 1.5px solid #22c55e;
  color: #4ade80;
}

.btn-ingredient-toggle.btn-to-available:hover {
  background: #22c55e;
  color: #ffffff;
}




