/* Frente de caixa — layout PC / tablet */
.front-desk-body {
  margin: 0;
  background: #0b1220;
  color: #e2e8f0;
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
}

.fd-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at top, #1e293b 0%, #0b1220 60%);
}
.fd-login-card {
  width: 100%;
  max-width: 420px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.fd-login-card .logo {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
}
.fd-login-card .logo span { color: #3b82f6; }

.fd-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100dvh;
}

.fd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
}
.fd-top-left strong {
  font-size: 1.1rem;
  margin-right: 0.5rem;
  color: #60a5fa;
}
.fd-muted { color: #94a3b8; font-size: 0.9rem; }
.fd-chip {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #334155;
  font-size: 0.75rem;
  font-weight: 600;
}
.fd-chip.open { background: #14532d; color: #86efac; }
.fd-top-right { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.fd-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 0;
  gap: 0;
}
@media (max-width: 900px) {
  .fd-main { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}

.fd-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #1e293b;
}
.fd-cart-col { border-right: none; background: #0f172a; }

.fd-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1e293b;
}
.fd-search-row input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #f8fafc;
  font-size: 1rem;
}
.fd-grid {
  flex: 1;
  overflow: auto;
  padding: 0.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.5rem;
  align-content: start;
  align-items: start;
}
.fd-grid .product-card,
button.fd-prod-card,
.fd-prod-card {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #334155;
  background: #1e293b;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;

  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  height: auto;
  align-self: start;
}
.fd-prod-card, button.fd-prod-card {
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.fd-prod-card:hover, .fd-prod-card:active {
  border-color: #3b82f6;
  transform: scale(0.98);
}
.fd-prod-card .name { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.1rem; line-height: 1.25; }
.fd-prod-card .meta { font-size: 0.68rem; color: #94a3b8; line-height: 1.2; }
.fd-prod-card .price { margin-top: 0.2rem; color: #4ade80; font-weight: 700; font-size: 0.95rem; }

.fd-customer-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
}
.fd-customer-bar input {
  flex: 1;
  min-width: 160px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: #f8fafc;
}
.fd-customer-info {
  padding: 0.35rem 0.75rem 0.5rem;
  font-size: 0.85rem;
}

.fd-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
}
.fd-cart-list {
  flex: 1;
  overflow: auto;
  padding: 0 0.75rem 0.5rem;
}
.fd-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.9rem;
}
.fd-cart-item .qty-btns { display: flex; gap: 0.25rem; align-items: center; }
.fd-cart-item button {
  background: #334155;
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.fd-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 1.25rem;
  border-top: 1px solid #1e293b;
  background: #111827;
}
.fd-total-row strong { color: #4ade80; }

.fd-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem;
}
.fd-pay {
  border: none;
  border-radius: 10px;
  padding: 0.85rem 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  background: #1d4ed8;
}
.fd-pay[data-method="dinheiro"] { background: #15803d; }
.fd-pay[data-method="pix"] { background: #0e7490; }
.fd-pay[data-method="debito"] { background: #1d4ed8; }
.fd-pay[data-method="credito"] { background: #7c3aed; }
.fd-pay:active { opacity: 0.85; }
.fd-pay-progress { padding: 0 0.75rem 0.75rem; min-height: 1.5rem; }

.fd-empty {
  text-align: center;
  color: #64748b;
  padding: 2rem 1rem;
  grid-column: 1 / -1;
}


/* Modal na frente de caixa — não cortar texto */
.front-desk-body .modal-overlay {
  z-index: 5000;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100%;
  max-width: 100vw;
}
.front-desk-body .modal {
  width: 100%;
  max-width: min(520px, 100vw);
  margin: 0 auto;
}
.front-desk-body .modal-footer {
  flex-wrap: wrap;
}
.front-desk-body .modal-footer .btn {
  min-width: 100%;
  flex: 1 1 100%;
}

.fd-bound-chip {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  color: #93c5fd;
}


.fd-menu-wrap { position: relative; }
.fd-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  padding: 0.35rem;
  z-index: 50;
}
.fd-menu-panel.hidden { display: none; }
.fd-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.fd-menu-item .material-icons-round { font-size: 1.15rem; color: #94a3b8; }
.fd-menu-item:hover, .fd-menu-item:active { background: #1e293b; }
.fd-menu-item.danger { color: #fca5a5; }
.fd-menu-item.danger .material-icons-round { color: #f87171; }
.fd-menu-item.disabled, .fd-menu-item:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.fd-menu-sep {
  height: 1px;
  background: #1e293b;
  margin: 0.25rem 0.4rem;
}

/* modal consulta cliente no frente */
.fd-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
}
.fd-modal-overlay.hidden { display: none; }
.fd-modal {
  width: 100%; max-width: 420px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.fd-modal h3 { margin: 0 0 0.75rem; font-size: 1.1rem; }
.fd-modal .fd-modal-actions {
  display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap;
}
