* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f9;
  color: #1f2937;
}

a {
  text-decoration: none;
}

.topo {
  background: #0f172a;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topo h1 {
  margin: 0;
  font-size: 22px;
}

.topo .acoes-topo {
  display: flex;
  gap: 10px;
  align-items: center;
}

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 24px;
}

.card-login {
  max-width: 420px;
  margin: 60px auto;
}

h2, h3 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-success {
  background: #16a34a;
  color: #fff;
}

.btn-warning {
  background: #f59e0b;
  color: #fff;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-dark {
  background: #111827;
  color: #fff;
}

.btn-light {
  background: #e5e7eb;
  color: #111827;
}

.alerta {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 700;
}

.alerta-erro {
  background: #fee2e2;
  color: #991b1b;
}

.alerta-sucesso {
  background: #dcfce7;
  color: #166534;
}

.grid-painel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.chamado-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  padding: 18px;
  border-left: 6px solid #d1d5db;
}

.chamado-card.status-novo {
  border-left-color: #2563eb;
}

.chamado-card.status-atendimento {
  border-left-color: #f59e0b;
}

.chamado-card.status-concluido {
  border-left-color: #16a34a;
}

.chamado-card.status-cancelado {
  border-left-color: #dc2626;
}

.chamado-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.chamado-topo h3 {
  margin: 0;
  font-size: 20px;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.status-novo {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge.status-atendimento {
  background: #fef3c7;
  color: #b45309;
}

.badge.status-concluido {
  background: #dcfce7;
  color: #166534;
}

.badge.status-cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.info-linha {
  margin-bottom: 8px;
  font-size: 15px;
}

.info-linha strong {
  color: #111827;
}

.chamado-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.seletor-pedidos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.opcao-pedido {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #d1d5db;
  background: #fff;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
}

.opcao-pedido.ativa {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}

.rodape-mesa {
  text-align: center;
  margin-top: 16px;
  color: #6b7280;
  font-size: 13px;
}

.mesa-header {
  text-align: center;
  margin-bottom: 24px;
}

.mesa-header h1 {
  margin-bottom: 8px;
}

.mesa-header p {
  margin: 0;
  color: #4b5563;
}

.painel-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.painel-status small {
  color: #6b7280;
}

.vazio {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  color: #6b7280;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
  .topo {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .chamado-topo {
    flex-direction: column;
    align-items: flex-start;
  }
}