/* =======================
   RESET & BASE
   ======================= */

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
  color: #111827;
}

/* Centro o app e limito largura */
#app {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px;
}

/* Links genéricos */
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =======================
   CABEÇALHO & BOTÕES
   ======================= */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, #1d4ed8, #22c55e);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.app-header h1 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Botões genéricos */
button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #111827;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  background: #030712;
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

button.danger {
  background: #b91c1c;
}
button.danger:hover:not(:disabled) {
  background: #991b1b;
}

.btn-primary {
  background: #2563eb;
}
.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

/* =======================
   CARDS & LAYOUTS GENÉRICOS
   ======================= */

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Seções principais de cada tela */
.admin-main,
.tables-main,
.order-main,
.kitchen-main,
.cashier-main {
  margin-top: 8px;
}

/* Inputs genéricos para Admin e forms */
input,
select {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 6px 8px;
  font-size: 0.9rem;
  width: 100%;
  margin-bottom: 6px;
}
input:focus,
select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* =======================
   TELA DE MESAS (GARÇOM)
   ======================= */

.tables-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tables-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tables-header h2 {
  font-size: 1.1rem;
}

/* Grid de mesas */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.mesa-card {
  border-radius: 16px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ffffff, #e5f3ff);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border 0.12s ease, background 0.12s ease;
}

.mesa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.25);
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.mesa-numero {
  font-size: 1.1rem;
  font-weight: 600;
}

.mesa-info {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

.mesa-status {
  margin-top: 6px;
  font-size: 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  padding: 2px 8px;
  align-items: center;
  gap: 4px;
}

.mesa-status-livre {
  background: #dcfce7;
  color: #166534;
}
.mesa-status-ocupada {
  background: #fee2e2;
  color: #b91c1c;
}
.mesa-status-fechada {
  background: #e0f2fe;
  color: #1d4ed8;
}

/* =======================
   COMANDA (ORDER UI)
   ======================= */

.order-main {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 16px;
}

.order-main section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.order-main h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* Itens da comanda */
.order-item {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}

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

.order-item-main {
  display: grid;
  grid-template-columns: 1.5fr 0.4fr 0.7fr;
  align-items: center;
  gap: 8px;
}

.order-item-status {
  font-size: 0.75rem;
  margin-top: 2px;
  color: #6b7280;
}

.order-item-qty {
  text-align: center;
}

.order-item-subtotal {
  text-align: right;
  font-weight: 600;
}

/* Ações de cada item */
.order-item-actions {
  margin-top: 4px;
  display: flex;
  gap: 6px;
}

.order-item-actions button {
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* Total do pedido */
.order-total {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 1rem;
  font-weight: 600;
}

/* Coluna direita (botões) */
.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-actions button {
  width: 100%;
  justify-content: center;
}

/* =======================
   COZINHA (KANBAN)
   ======================= */

.kitchen-main {
  display: flex; /* Usar flexbox para as colunas Kanban */
  gap: 1rem; /* Espaçamento entre as colunas */
  padding: 1rem; /* Padding geral para o monitor */
  overflow-x: auto; /* Permite rolagem horizontal se houver muitas colunas */
  align-items: flex-start; /* Alinha as colunas ao topo */
  height: calc(100vh - 80px); /* Ajusta a altura para ocupar a tela */
}

.kanban-column {
  flex: 1; /* Faz as colunas ocuparem o espaço disponível */
  min-width: 300px; /* Largura mínima para cada coluna */
  max-width: 400px; /* Largura máxima para cada coluna */
  background-color: #f8fafc; /* Fundo claro para a coluna */
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%; /* Garante que a coluna ocupe a altura total do pai */
}

.kanban-column-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-column-count {
  font-size: 0.85rem;
  color: #6b7280;
  background-color: #e5e7eb;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.kanban-column-content {
  flex: 1; /* Faz o conteúdo da coluna ocupar o espaço restante */
  overflow-y: auto; /* Permite rolagem vertical para os cards */
  padding-right: 0.5rem; /* Espaçamento para a barra de rolagem */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Espaçamento entre os cards */
}

/* Estilos para os cards individuais dentro do Kanban */
.kitchen-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* cursor: grab; Removido, pois não há funcionalidade de arrastar e soltar */
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

/* Removido, pois não há funcionalidade de arrastar e soltar */
/* .kitchen-card:active {
  cursor: grabbing;
  transform: rotate(2deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
} */

/* Estilos para os estados do card */
.kitchen-card-pendente {
  border-left: 4px solid #f97316; /* Laranja */
}

.kitchen-card-em_preparo {
  border-left: 4px solid #eab308; /* Amarelo */
}

.kitchen-card-pronto {
  border-left: 4px solid #16a34a; /* Verde */
}

/* Estilos para o cabeçalho do card */
.kitchen-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.kitchen-card-info-top { /* NOVO: Container para pedido ID e apelido */
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.kitchen-card-pedido { /* NOVO: Estilo para o ID do pedido */
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.kitchen-card-comanda { /* NOVO: Estilo para o apelido da comanda */
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.kitchen-card-status-tag { /* NOVO: Estilo para o badge de status */
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Cores para os badges de status */
.kitchen-card-status-tag.kitchen-card-status-pendente {
  background: #fef3c7;
  color: #92400e;
}
.kitchen-card-status-tag.kitchen-card-status-em_preparo {
  background: #dbeafe;
  color: #1d4ed8;
}
.kitchen-card-status-tag.kitchen-card-status-pronto {
  background: #dcfce7;
  color: #166534;
}

/* Estilos para o corpo do card */
.kitchen-card-body {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.kitchen-card-item-nome { /* NOVO: Estilo para o nome do item */
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.kitchen-card-obs {
  font-style: italic;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem; /* Ajustado */
}

.kitchen-card-peso { /* NOVO: Estilo para o peso */
  font-size: 0.85rem;
  font-weight: 500;
  color: #2563eb; /* Azul para destaque do peso */
  margin-bottom: 0.4rem;
}

.kitchen-card-qty { /* NOVO: Estilo para a quantidade */
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-align: right; /* Alinha a quantidade à direita */
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #e5e7eb;
}

/* Estilos para os botões de ação do card */
.kitchen-card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem; /* Ajustado */
  border-top: 1px solid #e5e7eb; /* Ajustado */
}

.action-button {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background-color: #e5e7eb;
  color: #374151;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.action-button:hover {
  background-color: #d1d5db;
}

.action-button.in-progress {
  background-color: #eab308;
  color: #ffffff;
}

.action-button.in-progress:hover {
  background-color: #d97706;
}

.action-button.ready {
  background-color: #16a34a;
  color: #ffffff;
}

.action-button.ready:hover {
  background-color: #15803d;
}

/* Estilos para o input de peso (churrasqueira) */
.weight-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.weight-input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

.confirm-weight-btn {
  background-color: #2563eb;
  color: #ffffff;
}

.confirm-weight-btn:hover {
  background-color: #1d4ed8;
}

/* Estilos para o estado de "atrasado" */
.kitchen-card-late {
  border-color: #ef4444; /* Vermelho */
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* Removido: .kitchen-card-late .kitchen-card-time, pois não temos mais kitchen-card-time */

/* Estilos para mensagens de vazio nas colunas Kanban */
.kanban-empty-message {
  padding: 0.75rem;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
}

/* =======================
   CAIXA
   ======================= */

.cashier-main.two-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.cashier-left,
.cashier-right {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cashier-left h2,
.cashier-right h2 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.cashier-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Lista de pedidos fechados */
.cashier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border 0.12s ease;
}

.cashier-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
  background: #eef2ff;
}

.cashier-item.selected {
  border-color: #2563eb;
}

.cashier-order-id {
  font-size: 0.82rem;
  color: #6b7280;
}

.cashier-time {
  font-size: 0.8rem;
  color: #9ca3af;
}

.cashier-total {
  font-weight: 700;
}

/* Detalhe do pagamento */
.cashier-detail-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cashier-detail-total {
  font-weight: 600;
}

.cashier-payment-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-title {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Botões de forma de pagamento */
.payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-method-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.85rem;
}

.payment-method-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Valor recebido */
.received-amount label {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 2px;
  display: block;
}

.received-amount input {
  width: 100%;
}

/* Troco */
.change-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 6px 8px;
  border-radius: 8px;
}

.change-label {
  font-size: 0.85rem;
  color: #4b5563;
}

.change-amount {
  font-weight: 600;
}

/* Botões de ação do caixa */
.cashier-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* =======================
   ADMIN / RELATÓRIOS
   ======================= */

.admin-main {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 16px;
}

.admin-main .card {
  height: fit-content;
}

/* Tabelas de relatório */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9rem;
}

.report-table th,
.report-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
}

.report-table th {
  background: #f3f4f6;
  font-weight: 600;
}

/* =======================
   RESPONSIVIDADE
   ======================= */

@media (max-width: 900px) {
  #app {
    padding: 8px;
  }

  .order-main {
    grid-template-columns: 1fr;
  }

  .cashier-main.two-columns {
    grid-template-columns: 1fr;
  }

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

  .tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 600px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .app-header h1 {
    font-size: 1.1rem;
  }
}

/* =======================
   HOME / DASHBOARD INICIAL
   ======================= */

.home-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.home-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
}

.home-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-user-info {
  text-align: right;
  margin-right: 6px;
}

.home-user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.home-user-role {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Hero section */

.home-main {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  gap: 16px;
  align-items: stretch;
}

.home-hero-text h1 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.home-hero-text p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 10px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Stats à direita */

.home-hero-stats {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}

.home-stat-card {
  border-radius: 12px;
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.35);
}

.home-stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.home-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Grid de cards de função */

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

.home-card h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.home-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 6px;
}

.home-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #6b7280;
}

.home-card ul li::before {
  content: "• ";
  color: #2563eb;
}

.home-role-btn {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

/* Responsividade da home */

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

  .home-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 600px) {
  .home-header-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-user-info {
    text-align: left;
    margin-right: 0;
  }

  .home-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Cardápio visual na comanda ===== */

.order-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.order-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.order-menu-info {
  display: flex;
  flex-direction: column;
}

.order-menu-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.order-menu-price {
  font-size: 0.8rem;
  color: #6b7280;
}

.order-menu-add-btn {
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.45);
}

.order-menu-add-btn:hover {
  background: #16a34a;
}

.order-menu-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.mesa-info {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

.mesa-info {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cashier-main {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 14px;
}

.cashier-list,
.cashier-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cashier-pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}

.cashier-pedido-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cashier-pedido-mesa {
  font-weight: 600;
}

.cashier-pedido-info {
  font-size: 0.8rem;
  color: #6b7280;
}

.cashier-pedido-total {
  font-weight: 700;
}

.cashier-resumo {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.cashier-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cashier-form label {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cashier-troco {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 800px) {
  .cashier-main {
    grid-template-columns: 1fr;
  }
}

/* ===== Painel Admin ===== */

.admin-main {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
}

.admin-sidebar {
  height: fit-content;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  width: 100%;
  justify-content: flex-start;
}

.admin-nav-item.active {
  background: #1d4ed8;
  color: #ffffff;
}

.admin-content {
  min-height: 260px;
}

/* ===== Admin reports ===== */

.admin-reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

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

.admin-report-card h3 {
  margin-bottom: 6px;
}

.admin-report-main-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-report-sub {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-report-list {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-report-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsivo */
@media (max-width: 800px) {
  .admin-main {
    grid-template-columns: 1fr;
  }
}

.kitchen-mesa-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kitchen-mesa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.kitchen-mesa-header h2 {
  font-size: 1rem;
}

.kitchen-mesa-count {
  font-size: 0.8rem;
  color: #6b7280;
}

.kitchen-mesa-itens {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Removido: .kitchen-card, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-header, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status-pendente, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status-em_preparo, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status-pronto, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-body, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-obs, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-meta, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-footer, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-title, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-qty, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-empreparo, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-late, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-grid, pois foi substituído pelo layout Kanban */


.kitchen-card-actions {
  display: flex;
  gap: 6px;
}

.kitchen-card-actions .btnIniciar,
.kitchen-card-actions .btnPronto {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.order-item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  margin-top: 2px;
}

.order-item-time {
  color: #6b7280;
}

.order-item-status {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.order-status-pendente {
  background: #fef3c7;
  color: #92400e;
}

.order-status-em_preparo {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-pronto {
  background: #dcfce7;
  color: #166534;
}

.order-status-entregue {
  background: #e5e7eb;
  color: #374151;
}

.order-item-late {
  border: 1px solid #f97316; /* laranja */
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.order-main {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

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

.order-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-right-block {
  padding: 8px 10px;
}

/* meta de item na comanda */
.order-item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  margin-top: 2px;
}

.order-item-time {
  color: #6b7280;
}

.order-item-status {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.order-status-pendente {
  background: #fef3c7;
  color: #92400e;
}

.order-status-em_preparo {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-pronto {
  background: #dcfce7;
  color: #166534;
}

.order-status-entregue {
  background: #e5e7eb;
  color: #374151;
}

.order-item-late {
  border: 1px solid #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

/* Histórico da mesa */
.order-history-panel {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.order-history-timeline {
  position: relative;
  margin-top: 4px;
}

.order-history-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}

.order-history-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  margin-top: 4px;
  flex-shrink: 0;
}

.order-history-content {
  flex: 1;
  font-size: 0.8rem;
}

.order-history-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.order-history-desc {
  color: #4b5563;
}

.order-history-time {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-top: 1px;
}

.order-history-MESA_ABERTA .order-history-dot {
  background: #dbeafe;
}

.order-history-ITEM_ADICIONADO .order-history-dot {
  background: #bbf7d0;
}

.order-history-MESA_FECHADA .order-history-dot {
  background: #fed7aa;
}

.order-history-PAGAMENTO .order-history-dot {
  background: #fee2e2;
}

.order-history-loading,
.order-history-empty,
.order-history-error {
  font-size: 0.8rem;
  color: #6b7280;
}

.order-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BACKDROP genérico do modal (confirm/alert) */
.menu-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* fundo escuro translúcido */
  z-index: 9999;
  display: none; /* o JS vai substituir para flex */
}

/* Essa classe garante centralização do conteúdo */
.menu-modal-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Caixa do modal */
.menu-modal-content {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  max-width: 400px;
  width: 90%;
}

/* Cabeçalho do modal */
.menu-modal-header {
  padding: 0.75rem 1rem;
  background-color: #3498db;
  color: #ffffff;
  font-weight: 600;
}

/* Corpo do modal */
.menu-modal-body {
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}

/* Rodapé (botões) */
.menu-modal-footer {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Botões base, caso não tenha */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #111827;
}

.menu-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 9999;
  display: flex;              /* importante */
  align-items: center;        /* centraliza vertical */
  justify-content: center;    /* centraliza horizontal */
}

.menu-modal-centered {
  /* já estamos usando flex na .menu-modal,
     então aqui pode ficar vazio ou usado para overrides futuros */
}

.menu-modal-content {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  max-width: 400px;
  width: 90%;
}

.menu-modal-header {
  padding: 0.75rem 1rem;
  background-color: #3498db;
  color: #ffffff;
  font-weight: 600;
}

.menu-modal-body {
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}

.menu-modal-footer {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Se ainda não existir */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #111827;
}

.admin-main {
  padding: 1rem;
}

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

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-filtros {
  margin-bottom: 0.5rem;
}

.admin-list {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

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

.admin-list-title {
  font-weight: 600;
}

.admin-list-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

.admin-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 0.25rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.admin-form-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.admin-tabs .tabs-header {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
}

.tab-button {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}

.tab-button.tab-active {
  border-bottom-color: #2563eb;
  font-weight: 600;
  color: #2563eb;
}

.order-item-obs {
     font-size: 0.75rem;
     color: #6b7280;
     margin-top: 2px;
   }

   .cardapio-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.cardapio-grupo-btn {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  background: #e1852a;
  cursor: pointer;
}

.cardapio-grupo-btn.ativo {
  background: #225ad3;
  color: #ffffff;
}

.cardapio-lista {
  max-height: 60vh;
  overflow-y: auto;
}

.cardapio-produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.4rem;
}

.cardapio-produto-card {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.4rem 0.45rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cardapio-produto-card .cp-nome {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d4ed8; /* azul vibrante */
  margin-bottom: 2px;
}

.cardapio-produto-card .cp-preco {
  font-size: 0.8rem;
  color: #16a34a; /* verde de preço */
}

.cardapio-produto-card .cp-desc {
  font-size: 0.75rem;
  color: #6b7280; /* cinza suave pra não competir com o nome */
}

.cardapio-produto-card:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.cardapio-produto-card:hover .cp-nome {
  text-decoration: underline;
}

.order-item-cancelado {
  opacity: 0.6;
  background-color: #f9fafb;
  border-left: 4px solid #ef4444; /* vermelho leve */
}

.order-item-cancelado .order-item-status {
  color: #ef4444;
}

.order-item-cancel-reason {
  font-size: 0.75rem;
  color: #b91c1c;
  margin-top: 2px;
}

/* Removido: .kitchen-grid, pois foi substituído pelo layout Kanban */

/* Removido: .kitchen-card, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-empreparo, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-late, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-header, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-title, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-qty, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-body, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-obs, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-meta, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-footer, pois foi substituído pelos estilos Kanban */


.kitchen-card-actions {
  display: flex;
  gap: 0.3rem;
}

.order-status-pendente {
  color: #f97316;
}

.order-status-em_preparo {
  color: #eab308;
}

.order-status-pronto {
  color: #16a34a;
}

.mesa-apelido {
  font-size: 0.8rem;
  color: #374151;
}

/* ===== TELA DE PRODUTOS ===== */

.products-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 1rem;
  padding: 1rem;
  background: #f9fafb;
  min-height: calc(100vh - 56px);
  box-sizing: border-box;
}

.products-left,
.products-right {
  display: flex;
  flex-direction: column;
}

.products-card {
  padding: 1rem;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow:
    0 10px 15px -3px rgba(15, 23, 42, 0.08),
    0 4px 6px -2px rgba(15, 23, 42, 0.04);
  border: 1px solid #e5e7eb;
}

.products-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.products-card-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.products-search {
  flex: 1;
  max-width: 260px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  background: #f9fafb;
}

/* Lista de produtos */
.products-list {
  margin-top: 0.5rem;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.products-item {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid transparent;
  margin-bottom: 0.35rem;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.05s ease;
}

.products-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

.products-item.selecionado {
  background: #eff6ff;
  border-color: #3b82f6;
}

.products-item-nome {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
}

.products-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.products-item-meta span:first-child {
  font-weight: 500;
  color: #111827;
}

.products-item-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #f3f4f6;
  color: #4b5563;
}

/* Formulário */
.products-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row-inline {
  align-items: center;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field.full {
  flex: 1 1 100%;
}

.form-field label {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.2rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  padding: 0.4rem 0.55rem;
  font-size: 0.86rem;
  background: #f9fafb;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  background: #ffffff;
}

.checkbox-field label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #374151;
}

.checkbox-field input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

/* Ações do formulário */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.form-actions .btn {
  min-width: 110px;
}

/* Responsividade */
@media (max-width: 900px) {
  .products-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .products-card {
    margin-bottom: 0.75rem;
  }

  .products-list {
    max-height: none;
  }
}

/* Quando produtos são exibidos dentro do admin, já há um card pai */
.products-main-embedded {
  background: transparent;
  padding: 0;
  min-height: auto;
}

/* =============================================
   HOME / TELA INICIAL
   ============================================= */

.home-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.home-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-logo {
  font-size: 2rem;
  line-height: 1;
}

.home-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.home-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.home-header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.home-user-nome {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.2rem 0;
}

.home-user-papel {
  font-size: 0.75rem;
  color: #6b7280;
}

.home-main {
  flex: 1;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.home-boas-vindas {
  margin-bottom: 2rem;
}

.home-boas-vindas h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.home-boas-vindas p {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

.home-modulos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.home-modulo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid var(--modulo-cor, #3b82f6);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
}

.home-modulo-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.home-modulo-card:active {
  transform: translateY(0);
}

.home-modulo-icone {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--modulo-cor, #3b82f6) 12%, transparent);
  border-radius: 10px;
}

.home-modulo-info {
  flex: 1;
  min-width: 0;
}

.home-modulo-titulo {
  font-size: 0.975rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.2rem 0;
}

.home-modulo-descricao {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.home-modulo-arrow {
  font-size: 1.4rem;
  color: #d1d5db;
  flex-shrink: 0;
  transition: color 0.15s;
}

.home-modulo-card:hover .home-modulo-arrow {
  color: var(--modulo-cor, #3b82f6);
}

.home-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
}

@media (max-width: 480px) {
  .home-modulos-grid {
    grid-template-columns: 1fr;
  }

  .home-header {
    padding: 0.75rem 1rem;
  }

  .home-main {
    padding: 1.25rem 1rem;
  }

  .home-user-info {
    display: none;
  }
}

/* =============================================
   ADMIN PRODUCTS UI
   ============================================= */

/* Layout geral */
.ap-layout {
  display: flex;
  height: calc(100vh - 0px);
  overflow: hidden;
  background: #f8fafc;
}

/* ── Sidebar ─────────────────────────────── */
.ap-sidebar {
  width: 240px;
  min-width: 200px;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ap-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #f3f4f6;
}

.ap-sidebar-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ap-grupos-lista {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  overflow-y: auto;
  flex: 1;
}

.ap-grupo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.12s;
  border-left: 3px solid transparent;
}

.ap-grupo-item:hover {
  background: #f3f4f6;
}

.ap-grupo-ativo {
  background: #eff6ff !important;
  border-left-color: #3b82f6;
}

.ap-grupo-ativo .ap-grupo-nome {
  color: #1d4ed8;
  font-weight: 600;
}

.ap-grupo-nome {
  font-size: 0.875rem;
  color: #374151;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ap-grupo-acoes {
  display: none;
  gap: 0.2rem;
}

.ap-grupo-item:hover .ap-grupo-acoes {
  display: flex;
}

.ap-grupo-vazio,
.ap-grupo-loading {
  padding: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.6;
}

/* ── Main ────────────────────────────────── */
.ap-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.ap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  gap: 1rem;
  flex-wrap: wrap;
}

.ap-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ap-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ap-main-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.ap-badge {
  display: inline-flex;
  align-items: center;
  background: #e5e7eb;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* Search */
.ap-search-wrap {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.ap-search-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  width: 200px;
  color: #374151;
}

/* ── Produtos Wrap ───────────────────────── */
.ap-produtos-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

/* Empty state */
.ap-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 4rem 2rem;
  color: #6b7280;
  text-align: center;
}

.ap-empty-icon {
  font-size: 3rem;
  line-height: 1;
}

.ap-empty-state p {
  font-size: 0.95rem;
  margin: 0;
}

/* ── Tabela ──────────────────────────────── */
.ap-tabela {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.ap-tabela-header {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ap-tabela-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.1s;
  gap: 0.5rem;
}

.ap-tabela-row:last-child {
  border-bottom: none;
}

.ap-tabela-row:hover {
  background: #fafafa;
}

.ap-row-nome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

/* Avatar colorido */
.ap-produto-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.ap-produto-nome {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ap-produto-desc {
  font-size: 0.78rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.ap-preco {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

/* Tags de setor */
.ap-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.ap-tag-cozinha {
  background: #dbeafe;
  color: #1d4ed8;
}
.ap-tag-churrasco {
  background: #fee2e2;
  color: #b91c1c;
}
.ap-tag-pizzaria {
  background: #ffedd5;
  color: #c2410c;
}
.ap-tag-direto {
  background: #f3f4f6;
  color: #6b7280;
}

/* Ações */
.ap-acoes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.1s;
}

.ap-tabela-row:hover .ap-acoes-row {
  opacity: 1;
}

/* Botões ícone */
.ap-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.1s;
  line-height: 1;
}

.ap-icon-btn:hover {
  background: #f3f4f6;
}

.ap-icon-btn-danger:hover {
  background: #fee2e2;
}

/* Toggle switch */
.ap-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.ap-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ap-toggle-slider {
  width: 36px;
  height: 20px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}

.ap-toggle-slider::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ap-toggle-input:checked + .ap-toggle-slider {
  background: #10b981;
}

.ap-toggle-input:checked + .ap-toggle-slider::after {
  transform: translateX(16px);
}

/* ── Responsivo ──────────────────────────── */
@media (max-width: 640px) {
  .ap-sidebar {
    width: 180px;
    min-width: 140px;
  }

  .ap-search-input {
    width: 130px;
  }

  .ap-produto-desc {
    display: none;
  }

  .ap-tabela-header {
    display: none;
  }
}

/* Estilos para a tela de login mais impactante */

/* Centraliza o container de login na tela */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Garante que ocupe a altura total da viewport */
  background-color: #f3f4f6; /* Cor de fundo suave */
  /* Opcional: Adicionar uma imagem de fundo para a página inteira */
  /* background-image: url('../img/background-login.jpg'); */
  /* background-size: cover; */
  /* background-position: center; */
}

/* Estilo para o card de login */
.login-card-impactful {
  background-color: #ffffff;
  padding: 2.5rem 2rem; /* Mais padding para um visual mais espaçoso */
  border-radius: 12px; /* Bordas mais arredondadas */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Sombra mais pronunciada */
  width: 100%;
  max-width: 400px; /* Largura máxima para o card */
  text-align: center;
  animation: fadeIn 0.5s ease-out; /* Animação de entrada */
}

/* Animação simples para o card de login */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Área do logo */
.login-logo-area {
  margin-bottom: 1.5rem; /* Espaço abaixo do logo */
  padding-bottom: 1rem; /* Padding interno para a área do logo */
  border-bottom: 1px solid #e5e7eb; /* Linha separadora sutil */
}

/* Estilo para a imagem do logo */
.login-logo {
  max-width: 180px; /* Tamanho máximo do logo */
  height: auto;
  display: block; /* Garante que ocupe sua própria linha */
  margin: 0 auto; /* Centraliza o logo */
}

/* Ajustes para o título */
.login-card-impactful h2 {
  color: #374151;
  font-size: 1.8rem; /* Tamanho maior para o título */
  margin-bottom: 1.5rem; /* Espaço abaixo do título */
}

/* Ajustes para os campos do formulário */
.login-form .form-field label {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.3rem;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Ajuste para o botão de entrar */
.login-form .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  width: 100%; /* Botão ocupa a largura total */
}

/* Estilos para o botão de login laranja com efeitos visuais */
.btn-login-orange {
  background-color: #f97316; /* Laranja vibrante */
  color: #ffffff; /* Texto branco */
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3); /* Sombra suave */
}

.btn-login-orange:hover {
  background-color: #ea580c; /* Laranja um pouco mais escuro no hover */
  transform: translateY(-2px); /* Efeito de "levantar" */
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4); /* Sombra mais intensa */
}

.btn-login-orange:active {
  background-color: #c2410c; /* Laranja mais escuro no clique */
  transform: translateY(0); /* Volta à posição original */
  box-shadow: 0 2px 5px rgba(249, 115, 22, 0.2); /* Sombra menor */
}

.btn-login-orange:disabled {
  background-color: #fed7aa; /* Laranja claro para desabilitado */
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Estilos para o Progress Bar */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro semi-transparente */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Garante que fique acima de tudo */
  color: #ffffff;
  font-family: 'Inter', sans-serif; /* Ou a fonte que você estiver usando */
}

.progress-bar-wrapper {
  width: 80%;
  max-width: 400px;
  height: 10px;
  background-color: #4b5563; /* Cor de fundo da barra */
  border-radius: 5px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background-color: #f97316; /* Cor da barra de progresso (laranja) */
  border-radius: 5px;
  transition: width 0.8s ease-out; /* Transição suave para o preenchimento */
}

.progress-text {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}
/* Estilos para o Histórico de Pedidos na Comanda */
.order-history-item {
  background-color: #f9fafb; /* Fundo claro */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.ohi-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #1f2937;
}

.ohi-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4b5563;
}

/* Estilos para o botão "Alertar Garçom" */
.alert-waiter-btn {
  background-color: #3b82f6; /* Azul */
  color: #ffffff;
}

.alert-waiter-btn:hover {
  background-color: #2563eb;
}

.alert-waiter-btn.garcom-alertado {
  background-color: #d1d5db; /* Cinza quando já alertado */
  color: #6b7280;
  cursor: not-allowed;
}

.alert-waiter-btn.garcom-alertado:hover {
  background-color: #d1d5db; /* Mantém a cor no hover */
}



/* =======================
   RESET & BASE
   ======================= */

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

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
  color: #111827;
}

/* Centro o app e limito largura */
#app {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px;
}

/* Links genéricos */
a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =======================
   CABEÇALHO & BOTÕES
   ======================= */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, #1d4ed8, #22c55e);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

.app-header h1 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Botões genéricos */
button {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  background: #111827;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  background: #030712;
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

button.danger {
  background: #b91c1c;
}
button.danger:hover:not(:disabled) {
  background: #991b1b;
}

.btn-primary {
  background: #2563eb;
}
.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

/* =======================
   CARDS & LAYOUTS GENÉRICOS
   ======================= */

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
}

.card h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Seções principais de cada tela */
.admin-main,
.tables-main,
.order-main,
.kitchen-main,
.cashier-main,
.delivery-main { /* NOVO: Adicionado delivery-main */
  margin-top: 8px;
}

/* Inputs genéricos para Admin e forms */
input,
select,
textarea { /* NOVO: Adicionado textarea */
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 6px 8px;
  font-size: 0.9rem;
  width: 100%;
  margin-bottom: 6px;
}
input:focus,
select:focus,
textarea:focus { /* NOVO: Adicionado textarea */
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* =======================
   TELA DE MESAS (GARÇOM)
   ======================= */

.tables-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tables-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tables-header h2 {
  font-size: 1.1rem;
}

/* Grid de mesas */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.mesa-card {
  border-radius: 16px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ffffff, #e5f3ff);
  box-shadow: 0 12px 30px rgba(148, 163, 184, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border 0.12s ease, background 0.12s ease;
}

.mesa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.25);
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.mesa-numero {
  font-size: 1.1rem;
  font-weight: 600;
}

.mesa-info {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

.mesa-status {
  margin-top: 6px;
  font-size: 0.8rem;
  border-radius: 999px;
  display: inline-flex;
  padding: 2px 8px;
  align-items: center;
  gap: 4px;
}

.mesa-status-livre {
  background: #dcfce7;
  color: #166534;
}
.mesa-status-ocupada {
  background: #fee2e2;
  color: #b91c1c;
}
.mesa-status-fechada {
  background: #e0f2fe;
  color: #1d4ed8;
}

/* =======================
   COMANDA (ORDER UI)
   ======================= */

.order-main {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 16px;
}

.order-main section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.order-main h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* Itens da comanda */
.order-item {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}

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

.order-item-main {
  display: grid;
  grid-template-columns: 1.5fr 0.4fr 0.7fr;
  align-items: center;
  gap: 8px;
}

.order-item-status {
  font-size: 0.75rem;
  margin-top: 2px;
  color: #6b7280;
}

.order-item-qty {
  text-align: center;
}

.order-item-subtotal {
  text-align: right;
  font-weight: 600;
}

/* Ações de cada item */
.order-item-actions {
  margin-top: 4px;
  display: flex;
  gap: 6px;
}

.order-item-actions button {
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* Total do pedido */
.order-total {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  font-size: 1rem;
  font-weight: 600;
}

/* Coluna direita (botões) */
.order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-actions button {
  width: 100%;
  justify-content: center;
}

/* =======================
   COZINHA (KANBAN)
   ======================= */

.kitchen-main {
  display: flex; /* Usar flexbox para as colunas Kanban */
  gap: 1rem; /* Espaçamento entre as colunas */
  padding: 1rem; /* Padding geral para o monitor */
  overflow-x: auto; /* Permite rolagem horizontal se houver muitas colunas */
  align-items: flex-start; /* Alinha as colunas ao topo */
  height: calc(100vh - 80px); /* Ajusta a altura para ocupar a tela */
}

.kanban-column {
  flex: 1; /* Faz as colunas ocuparem o espaço disponível */
  min-width: 300px; /* Largura mínima para cada coluna */
  max-width: 400px; /* Largura máxima para cada coluna */
  background-color: #f8fafc; /* Fundo claro para a coluna */
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%; /* Garante que a coluna ocupe a altura total do pai */
}

.kanban-column-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kanban-column-count {
  font-size: 0.85rem;
  color: #6b7280;
  background-color: #e5e7eb;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.kanban-column-content {
  flex: 1; /* Faz o conteúdo da coluna ocupar o espaço restante */
  overflow-y: auto; /* Permite rolagem vertical para os cards */
  padding-right: 0.5rem; /* Espaçamento para a barra de rolagem */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Espaçamento entre os cards */
}

/* Estilos para os cards individuais dentro do Kanban */
.kitchen-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* cursor: grab; Removido, pois não há funcionalidade de arrastar e soltar */
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

/* Removido, pois não há funcionalidade de arrastar e soltar */
/* .kitchen-card:active {
  cursor: grabbing;
  transform: rotate(2deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
} */

/* Estilos para os estados do card */
.kitchen-card-pendente {
  border-left: 4px solid #f97316; /* Laranja */
}

.kitchen-card-em_preparo {
  border-left: 4px solid #eab308; /* Amarelo */
}

.kitchen-card-pronto {
  border-left: 4px solid #16a34a; /* Verde */
}

/* Estilos para o cabeçalho do card */
.kitchen-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.kitchen-card-info-top { /* NOVO: Container para pedido ID e apelido */
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.kitchen-card-pedido { /* NOVO: Estilo para o ID do pedido */
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.kitchen-card-comanda { /* NOVO: Estilo para o apelido da comanda */
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.kitchen-card-status-tag { /* NOVO: Estilo para o badge de status */
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Cores para os badges de status */
.kitchen-card-status-tag.kitchen-card-status-pendente {
  background: #fef3c7;
  color: #92400e;
}
.kitchen-card-status-tag.kitchen-card-status-em_preparo {
  background: #dbeafe;
  color: #1d4ed8;
}
.kitchen-card-status-tag.kitchen-card-status-pronto {
  background: #dcfce7;
  color: #166534;
}

/* Estilos para o corpo do card */
.kitchen-card-body {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.kitchen-card-item-nome { /* NOVO: Estilo para o nome do item */
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

.kitchen-card-obs {
  font-style: italic;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0.4rem; /* Ajustado */
}

.kitchen-card-peso { /* NOVO: Estilo para o peso */
  font-size: 0.85rem;
  font-weight: 500;
  color: #2563eb; /* Azul para destaque do peso */
  margin-bottom: 0.4rem;
}

.kitchen-card-qty { /* NOVO: Estilo para a quantidade */
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  text-align: right; /* Alinha a quantidade à direita */
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #e5e7eb;
}

/* Estilos para os botões de ação do card */
.kitchen-card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem; /* Ajustado */
  border-top: 1px solid #e5e7eb; /* Ajustado */
}

.action-button {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background-color: #e5e7eb;
  color: #374151;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.action-button:hover {
  background-color: #d1d5db;
}

.action-button.in-progress {
  background-color: #eab308;
  color: #ffffff;
}

.action-button.in-progress:hover {
  background-color: #d97706;
}

.action-button.ready {
  background-color: #16a34a;
  color: #ffffff;
}

.action-button.ready:hover {
  background-color: #15803d;
}

/* Estilos para o input de peso (churrasqueira) */
.weight-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.weight-input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
}

.confirm-weight-btn {
  background-color: #2563eb;
  color: #ffffff;
}

.confirm-weight-btn:hover {
  background-color: #1d4ed8;
}

/* Estilos para o estado de "atrasado" */
.kitchen-card-late {
  border-color: #ef4444; /* Vermelho */
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* Removido: .kitchen-card-late .kitchen-card-time, pois não temos mais kitchen-card-time */

/* Estilos para mensagens de vazio nas colunas Kanban */
.kanban-empty-message {
  padding: 0.75rem;
  color: #6b7280;
  font-size: 0.95rem;
  text-align: center;
}

/* =======================
   CAIXA
   ======================= */

.cashier-main.two-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.cashier-left,
.cashier-right {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px rgba(148, 163, 184, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cashier-left h2,
.cashier-right h2 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.cashier-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 8px;
}

/* Lista de pedidos fechados */
.cashier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, border 0.12s ease;
}

.cashier-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.35);
  background: #eef2ff;
}

.cashier-item.selected {
  border-color: #2563eb;
}

.cashier-order-id {
  font-size: 0.82rem;
  color: #6b7280;
}

.cashier-time {
  font-size: 0.8rem;
  color: #9ca3af;
}

.cashier-total {
  font-weight: 700;
}

/* Detalhe do pagamento */
.cashier-detail-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cashier-detail-total {
  font-weight: 600;
}

.cashier-payment-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-title {
  font-size: 0.9rem;
  color: #4b5563;
}

/* Botões de forma de pagamento */
.payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-method-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  font-size: 0.85rem;
}

.payment-method-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* Valor recebido */
.received-amount label {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 2px;
  display: block;
}

.received-amount input {
  width: 100%;
}

/* Troco */
.change-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f5;
  padding: 6px 8px;
  border-radius: 8px;
}

.change-label {
  font-size: 0.85rem;
  color: #4b5563;
}

.change-amount {
  font-weight: 600;
}

/* Botões de ação do caixa */
.cashier-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* =======================
   ADMIN / RELATÓRIOS
   ======================= */

.admin-main {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 16px;
}

.admin-main .card {
  height: fit-content;
}

/* Tabelas de relatório */
.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9rem;
}

.report-table th,
.report-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
}

.report-table th {
  background: #f3f4f6;
  font-weight: 600;
}

/* =======================
   RESPONSIVIDADE
   ======================= */

@media (max-width: 900px) {
  #app {
    padding: 8px;
  }

  .order-main {
    grid-template-columns: 1fr;
  }

  .cashier-main.two-columns {
    grid-template-columns: 1fr;
  }

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

  .tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

@media (max-width: 600px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .app-header h1 {
    font-size: 1.1rem;
  }

  .home-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* =======================
   HOME / DASHBOARD INICIAL
   ======================= */

.home-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.home-subtitle {
  font-size: 0.85rem;
  opacity: 0.85;
}

.home-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-user-info {
  text-align: right;
  margin-right: 6px;
}

.home-user-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.home-user-role {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Hero section */

.home-main {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr;
  gap: 16px;
  align-items: stretch;
}

.home-hero-text h1 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.home-hero-text p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 10px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Stats à direita */

.home-hero-stats {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
}

.home-stat-card {
  border-radius: 12px;
  background: radial-gradient(circle at top left, #eff6ff, #ffffff);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.35);
}

.home-stat-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.home-stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Grid de cards de função */

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

.home-card h2 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.home-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 6px;
}

.home-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #6b7280;
}

.home-card ul li::before {
  content: "• ";
  color: #2563eb;
}

.home-role-btn {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

/* Responsividade da home */

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

  .home-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }
}

@media (max-width: 600px) {
  .home-header-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-user-info {
    text-align: left;
    margin-right: 0;
  }

  .home-hero-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== Cardápio visual na comanda ===== */

.order-menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.order-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.order-menu-info {
  display: flex;
  flex-direction: column;
}

.order-menu-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.order-menu-price {
  font-size: 0.8rem;
  color: #6b7280;
}

.order-menu-add-btn {
  border-radius: 999px;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.45);
}

.order-menu-add-btn:hover {
  background: #16a34a;
}

.order-menu-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.mesa-info {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 2px;
}

.mesa-info {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cashier-main {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 14px;
}

.cashier-list,
.cashier-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cashier-pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}

.cashier-pedido-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.cashier-pedido-mesa {
  font-weight: 600;
}

.cashier-pedido-info {
  font-size: 0.8rem;
  color: #6b7280;
}

.cashier-pedido-total {
  font-weight: 700;
}

.cashier-resumo {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.cashier-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cashier-form label {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cashier-troco {
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 800px) {
  .cashier-main {
    grid-template-columns: 1fr;
  }
}

/* ===== Painel Admin ===== */

.admin-main {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
}

.admin-sidebar {
  height: fit-content;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  width: 100%;
  justify-content: flex-start;
}

.admin-nav-item.active {
  background: #1d4ed8;
  color: #ffffff;
}

.admin-content {
  min-height: 260px;
}

/* ===== Admin reports ===== */

.admin-reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

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

.admin-report-card h3 {
  margin-bottom: 6px;
}

.admin-report-main-value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-report-sub {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-report-list {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-report-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsivo */
@media (max-width: 800px) {
  .admin-main {
    grid-template-columns: 1fr;
  }
}

.kitchen-mesa-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kitchen-mesa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.kitchen-mesa-header h2 {
  font-size: 1rem;
}

.kitchen-mesa-count {
  font-size: 0.8rem;
  color: #6b7280;
}

.kitchen-mesa-itens {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Removido: .kitchen-card, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-header, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status-pendente, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status-em_preparo, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-status-pronto, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-body, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-obs, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-meta, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-footer, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-title, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-qty, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-empreparo, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-card-late, pois foi substituído pelos estilos Kanban */
/* Removido: .kitchen-grid, pois foi substituído pelo layout Kanban */

.kitchen-card-actions {
  display: flex;
  gap: 6px;
}

.kitchen-card-actions .btnIniciar,
.kitchen-card-actions .btnPronto {
  font-size: 0.75rem;
  padding: 4px 8px;
}

.order-item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  margin-top: 2px;
}

.order-item-time {
  color: #6b7280;
}

.order-item-status {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.order-status-pendente {
  background: #fef3c7;
  color: #92400e;
}

.order-status-em_preparo {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-pronto {
  background: #dcfce7;
  color: #166534;
}

.order-status-entregue {
  background: #e5e7eb;
  color: #374151;
}

.order-item-late {
  border: 1px solid #f97316; /* laranja */
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2);
}

.order-main {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
}

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

.order-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-right-block {
  padding: 8px 10px;
}

/* meta de item na comanda */
.order-item-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  margin-top: 2px;
}

.order-item-time {
  color: #6b7280;
}

.order-item-status {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.order-status-pendente {
  background: #fef3c7;
  color: #92400e;
}

.order-status-em_preparo {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-pronto {
  background: #dcfce7;
  color: #166534;
}

.order-status-entregue {
  background: #e5e7eb;
  color: #374151;
}

/* Estilos para o botão "Alertar Garçom" */
.alert-waiter-btn {
  background-color: #3b82f6; /* Azul */
  color: #ffffff;
}

.alert-waiter-btn:hover {
  background-color: #2563eb;
}

.alert-waiter-btn.garcom-alertado {
  background-color: #d1d5db; /* Cinza quando já alertado */
  color: #6b7280;
  cursor: not-allowed;
}

.alert-waiter-btn.garcom-alertado:hover {
  background-color: #d1d5db; /* Mantém a cor no hover */
}

/* Estilos para a tela de Atendimento Delivery */
.delivery-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Lista de pedidos e detalhes */
  gap: 1rem;
  padding: 1rem;
  align-items: flex-start;
}

.delivery-pedidos-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-filtros {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.delivery-filtros select,
.delivery-filtros button {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 70vh; /* Altura máxima para a lista de pedidos */
  overflow-y: auto;
  padding-right: 0.5rem;
}

.delivery-pedido-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.delivery-pedido-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.delivery-pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.delivery-pedido-id {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.delivery-pedido-status-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Cores para os status de delivery */
.delivery-pedido-status-aguardando_preparo { background: #fef3c7; color: #92400e; }
.delivery-pedido-status-em_preparo { background: #dbeafe; color: #1d4ed8; }
.delivery-pedido-status-em_rota { background: #ffedd5; color: #c2410c; }
.delivery-pedido-status-entregue { background: #dcfce7; color: #166534; }
.delivery-pedido-status-cancelado { background: #fee2e2; color: #b91c1c; }

.delivery-pedido-cliente {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.delivery-pedido-endereco {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.delivery-pedido-total {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  text-align: right;
}

.delivery-pedido-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  text-align: right;
}

.delivery-detalhes-pedido {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-detalhes-pedido h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.delivery-detalhes-pedido p {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.delivery-detalhes-pedido h4 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.25rem;
}

.delivery-detalhes-pedido ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.9rem;
  color: #374151;
}

.delivery-detalhes-pedido ul li {
  margin-bottom: 0.2rem;
}

.delivery-detalhes-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Estilos para o modal de novo pedido/cliente */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
}

.sugestoes-clientes {
  border: 1px solid #e5e7eb;
  border-top: none;
  max-height: 150px;
  overflow-y: auto;
  background-color: #ffffff;
  border-radius: 0 0 6px 6px;
}

.sugestao-item {
  padding: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4b5563;
}

.sugestao-item:hover {
  background-color: #f3f4f6;
}

.itens-pedido-form-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem;
}

.item-pedido-form-entry {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1.5fr 0.5fr; /* Item, Qtd, Obs, Remover */
  gap: 0.5rem;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed #e5e7eb;
}

.item-pedido-form-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-pedido-form-entry input,
.item-pedido-form-entry select {
  padding: 0.3rem;
  font-size: 0.85rem;
}

.item-pedido-form-entry .btn-remover-item {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

/* Tag de Delivery no Monitor de Produção */
.delivery-tag {
  background-color: #fcd34d; /* Amarelo */
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

/* Responsividade para Delivery UI */
@media (max-width: 900px) {
  .delivery-main {
    grid-template-columns: 1fr; /* Colunas empilhadas em telas menores */
  }
  .delivery-pedidos-lista,
  .delivery-detalhes-pedido {
    max-height: none; /* Remove altura fixa para melhor rolagem */
  }
}