/* ===== RESET BÁSICO ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* ===== ALTURA TOTAL ===== */
html, body {
  height: 100%;
}

/* ===== CORPO ===== */
body {
  background: url("../images/fundo_login.png") no-repeat center center fixed;
  background-size: cover;

  display: flex;
  flex-direction: column;
}

/* ===== ANIMAÇÃO SUAVE ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 14px 35px rgba(0,0,0,0.3);
  text-align: center;
  animation: fadeUp 0.5s ease-out;

  margin: auto; /* CENTRALIZA O LOGIN */
}

/* ===== LOGO ===== */
.logo {
  width: 80%;
  max-width: 320px;
  margin: 0 auto 10px;
  display: block;
}

/* ===== TÍTULOS ===== */
h1 {
  font-size: 26px;
  color: #000;
  margin-bottom: 4px;
}

.subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
}

/* ===== INPUTS ===== */
.container input,
.container select {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid #ccc;
  outline: none;
  text-align: center;
  background: #fff;
}

.container input:focus,
.container select:focus {
  border-color: #c40000;
  box-shadow: 0 0 0 2px rgba(196, 0, 0, 0.25);
}

/* ===== MELHORIA VISUAL DOS AJUSTES ===== */

/* TÍTULOS DOS GRUPOS (optgroup) */
.container select optgroup {
  font-weight: bold;
  font-size: 15px;
  background-color: #f2f2f2;
  color: #c40000;
}

/* OPÇÕES NORMAIS */
.container select option {
  padding: 10px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
}

/* OPÇÕES DENTRO DOS GRUPOS */
.container select optgroup option {
  background-color: #fff;
  color: #000;
}

/* ===== BOTÕES ===== */
.container button {
  width: 100%;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  background-color: #c40000;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.container button:hover {
  background-color: #a80000;
}

.container button:active {
  transform: scale(0.97);
}

/* ===== GRUPO DE BOTÕES ===== */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

/* ===== BUSCA EAN COM BOTÃO ===== */
.busca-ean {
  display: flex;
  gap: 8px;
}

.busca-ean input {
  flex: 1;
}

.busca-ean button {
  width: 70px;
  padding: 14px;
}

/* ===== RODAPÉ LOGIN ===== */
.login-footer {
  text-align: center;
  padding: 14px 0;
  font-size: 12px;
  color: #777;
  font-family: Arial, sans-serif;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 400px) {
  .container {
    padding: 20px 16px;
  }

  .container input,
  .container select {
    padding: 14px;
    font-size: 16px;
  }

  .container button {
    padding: 14px;
    font-size: 17px;
  }
}
/* ===== CORES POR STATUS (DELIVERY) ===== */

.status-aguardando td  { background:#fff8db !important; }
.status-aceito td      { background:#e3f2fd !important; }
.status-saiu td        { background:#ffe9d6 !important; }
.status-entregue td    { background:#e6f6ea !important; }
.status-problema td    { background:#fde2e2 !important; }
.status-cancelado td   { background:#eeeeee !important; }

/* =====================================================
   CORES POR STATUS – SOMENTE ENTREGADOR
   ===================================================== */

/* DELIVERY */
body[data-setor="entregador_dl"] table tbody tr.status-aguardando td,
body[data-setor="entregador_cm"] table tbody tr.status-aguardando td {
  background:#fff8db !important;
}

body[data-setor="entregador_dl"] table tbody tr.status-aceito td,
body[data-setor="entregador_cm"] table tbody tr.status-aceito td {
  background:#e3f2fd !important;
}

body[data-setor="entregador_dl"] table tbody tr.status-saiu td,
body[data-setor="entregador_cm"] table tbody tr.status-saiu td {
  background:#ffe9d6 !important;
}

body[data-setor="entregador_dl"] table tbody tr.status-entregue td,
body[data-setor="entregador_cm"] table tbody tr.status-entregue td {
  background:#e6f6ea !important;
}

body[data-setor="entregador_dl"] table tbody tr.status-problema td,
body[data-setor="entregador_cm"] table tbody tr.status-problema td {
  background:#fde2e2 !important;
}

body[data-setor="entregador_dl"] table tbody tr.status-cancelado td,
body[data-setor="entregador_cm"] table tbody tr.status-cancelado td {
  background:#eeeeee !important;
}


