:root {
  --brand-dark: #10281f;
  --brand-primary: #1f6b4a;
  --brand-primary-hover: #143d2e;
  --brand-light: #f4f7f5;
  --brand-text-main: #1c2822;
  --brand-text-muted: #5c6b63;
  --brand-border: #e2e8e4;
  --brand-success: #1f8a4c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-xl: 24px;
  --shadow-soft: 0 4px 20px -2px rgba(16, 40, 31, .06);
  --shadow-float: 0 12px 30px -4px rgba(16, 40, 31, .12);
  --transition-smooth: all .25s cubic-bezier(.16, 1, .3, 1);
}
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--brand-light);
  color: var(--brand-text-main);
  -webkit-font-smoothing: antialiased;
}
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 0%, #1c5c42 0%, #0c1f18 100%);
  padding: 1.5rem 1rem;
}
.login-card {
  background: rgba(255, 255, 255, .98);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 2rem;
}
.login-logo {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.login-logo img { height: 52px; width: auto; }
.marca-sufixo { color: var(--brand-primary); font-size: .95rem; font-weight: 600; }
.form-control-lg-custom {
  height: 52px;
  border-radius: var(--radius-sm);
  font-size: .98rem;
  border: 1px solid var(--brand-border);
  padding-left: 2.75rem;
  background: #f8faf9;
}
.form-control-lg-custom:focus {
  background: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(31, 107, 74, .14);
}
.input-icon-wrapper { position: relative; }
.input-icon-wrapper .field-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-text-muted);
  font-size: 1.1rem;
  z-index: 5;
  pointer-events: none;
}
.toggle-password {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--brand-text-muted);
  z-index: 5;
  padding: 4px;
}
.btn-brand-primary {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-brand-primary:hover, .btn-brand-primary:focus { background: var(--brand-primary-hover); color: #fff; }
.form-check-input:checked { background-color: var(--brand-primary); border-color: var(--brand-primary); }

.navbar-custom {
  background: var(--brand-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-logo {
  background: #fff;
  border-radius: 10px;
  padding: 3px 8px;
  display: inline-flex;
}
.navbar-logo img { height: 32px; width: auto; }
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d9b6e, #1f6b4a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.card-custom {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.btn-quick-repeat {
  background: linear-gradient(135deg, #1f6b4a, #143d2e);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: .85rem 1.25rem;
  font-weight: 700;
}
.btn-quick-repeat:hover { color: #fff; }
.category-chip {
  border: 1px solid var(--brand-border);
  background: #fff;
  color: var(--brand-text-main);
  padding: .5rem 1.15rem;
  border-radius: 50rem;
  font-weight: 500;
  font-size: .875rem;
  white-space: nowrap;
}
.category-chip.active { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.product-card {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--brand-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}
.product-card:hover { box-shadow: var(--shadow-float); transform: translateY(-2px); }
.product-card.selected-item { border: 2px solid var(--brand-primary); background: #f3faf6; }
.product-badge-qty {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 50rem;
}
.product-icon-box {
  height: 92px;
  background: #f1f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 2rem;
  border-bottom: 1px solid #f1f5f3;
}
.qty-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #f1f5f3;
  border-radius: var(--radius-sm);
  padding: 3px;
  border: 1px solid var(--brand-border);
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--brand-primary); color: #fff; }
.qty-input {
  width: 64px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
}
.qty-input:focus { outline: none; }
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 40, 31, .96);
  padding: .75rem 1.25rem;
  z-index: 1020;
}
.pagina-catalogo { padding-bottom: 92px; }
@media (min-width: 768px) {
  .pagina-catalogo { padding-bottom: 0; }
}
.offcanvas.pedido-gaveta { width: 420px; max-width: 100vw; }
.toast-container { z-index: 1100; }
.icone {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.product-icon-box .icone,
.text-center.py-5 .icone { width: 2.4rem; height: 2.4rem; }
.product-badge-qty .icone { width: .85em; height: .85em; stroke: #fff; }
.field-icon.icone { width: 1.15rem; height: 1.15rem; }

.pagina-catalogo { background: #f3f6f4; }
.topo-pedido {
  background: linear-gradient(90deg, #0e5c3c 0%, #1a7a4e 55%, #146b45 100%);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  position: sticky;
  top: 0;
  z-index: 1040;
}
.topo-logo img {
  height: 44px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
}
.topo-acoes { display: flex; align-items: center; gap: 10px; }
.topo-usuario {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
}
.topo-usuario-texto { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.topo-usuario-texto strong { font-size: .78rem; letter-spacing: .02em; }
.topo-usuario-texto small { font-size: .68rem; opacity: .8; }
.btn-pedido {
  background: #1f9a46;
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px 0 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-pedido:hover { background: #17873c; color: #fff; }
.selo-contagem {
  background: #fff;
  color: #15753a;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 800;
}
.btn-sair {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #e36b76;
  color: #ff9aa3;
  display: grid;
  place-items: center;
  background: transparent;
}
.btn-sair:hover { background: rgba(227, 107, 118, .15); color: #fff; }
.pagina-catalogo main { max-width: 1440px; }
.painel-ola {
  background: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  box-shadow: 0 8px 28px rgba(16, 40, 31, .05);
  margin-bottom: 16px;
}
.ola-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ola-icone {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #e7f6ee;
  color: #1f8a4c;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ola-icone .icone { width: 28px; height: 28px; }
.ola-info h2 { font-size: 1.35rem; font-weight: 800; margin: 0 0 2px; letter-spacing: -.02em; }
.ola-info p { margin: 0 0 8px; color: #7b8a83; font-size: .86rem; }
.ola-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.selo-status {
  background: #eef2f0;
  color: #5c6b63;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
}
.selo-status.selo-ok { background: #e5f6ec; color: #178347; }
.protocolo { color: #8b9891; font-size: .82rem; }
.btn-repetir {
  border: 0;
  background: transparent;
  color: #1f8a4c;
  font-size: .8rem;
  font-weight: 700;
  padding: 0;
}
.ola-data {
  background: #f3faf6;
  border-radius: 16px;
  padding: 12px 14px;
  min-width: min(100%, 460px);
}
.ola-data label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5f7368;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.ola-data-linha { display: flex; gap: 10px; }
.ola-data input[type="date"] {
  flex: 1;
  height: 48px;
  border: 1px solid #e3eee7;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  color: #1c2822;
  font-weight: 600;
}
.btn-abrir {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #1f9a46;
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-abrir:hover { background: #17873c; }
.hora-fim { display: block; margin-top: 8px; color: #5f7368; font-size: .78rem; }
.qtd-min { color: #6b7c74; font-size: .75rem; font-weight: 600; margin-top: 2px; }
.aviso-pedido { color: #5f7368; font-size: .82rem; margin: 0 0 12px; }
.qtd-total-regra { color: #9a6410; font-size: .8rem; font-weight: 600; margin: 0 0 8px; }
.barra-busca {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.busca-wrap { flex: 1 1 280px; max-width: 460px; }
.campo-busca {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e3eee7;
  background: #fff;
  padding: 0 14px 0 2.6rem;
  color: #1c2822;
}
.campo-busca:focus { outline: none; border-color: #1f9a46; box-shadow: 0 0 0 4px rgba(31, 154, 70, .12); }
.chips { display: flex; gap: 8px; overflow: auto; flex: 1 1 auto; }
.category-chip {
  border: 1px solid #e3eee7;
  background: #fff;
  color: #3d4d45;
  padding: .48rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .88rem;
}
.category-chip.active { background: #1f9a46; color: #fff; border-color: #1f9a46; }
.visoes { margin-left: auto; display: flex; gap: 8px; flex: 0 0 auto; }
.visoes button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e3eee7;
  background: #fff;
  color: #6d7d75;
  display: grid;
  place-items: center;
}
.visoes button.ativo { background: #146b45; color: #fff; border-color: #146b45; }
.grade-produtos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card-produto {
  background: #fff;
  border: 1px solid #e7eeea;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-produto.selecionado { border: 2px solid #1f9a46; }
.card-foto {
  position: relative;
  height: 148px;
  min-height: 148px;
  max-height: 148px;
  flex: 0 0 148px;
  overflow: hidden;
  background: #fff;
}
.card-foto img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.selo-qtd {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #146b45;
  color: #fff;
  border-radius: 8px;
  min-height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 800;
}
.selo-qtd .icone { width: 14px; height: 14px; }
.card-corpo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-codigo { color: #9aa59f; font-size: .78rem; line-height: 1; }
.card-titulo { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-titulo h3 { margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.selo-un {
  flex: 0 0 auto;
  background: #1f9a46;
  color: #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  padding: 3px 8px;
  letter-spacing: .03em;
}
.selo-un.selo-cx { background: #fff; color: #1f9a46; border: 1px solid #1f9a46; }
.btn-adicionar {
  margin-top: auto;
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #1f9a46;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-adicionar:hover { background: #17873c; }
.qtd-barra {
  margin-top: auto;
  height: 42px;
  border-radius: 12px;
  background: #f3f6f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}
.qtd-passo {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #1f9a46;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.qtd-passo:hover { background: #e5f6ec; }
.qtd-barra .qty-input { width: 64px; font-size: 1rem; }
.qtd-leitura { text-align: center; font-weight: 800; color: #1f8a4c; }
.grade-vazia {
  grid-column: 1 / -1;
  text-align: center;
  color: #7b8a83;
  padding: 48px 16px;
}
.grade-vazia .icone { width: 2.2rem; height: 2.2rem; }
.grade-vazia h3 { font-size: 1rem; margin-top: 8px; }
.grade-produtos.modo-lista { grid-template-columns: 1fr; }
.grade-produtos.modo-lista .card-produto { display: grid; grid-template-columns: 210px 1fr; }
.grade-produtos.modo-lista .card-foto { height: auto; min-height: 132px; max-height: none; flex: 1 1 auto; }
.grade-produtos.modo-lista .card-corpo { justify-content: center; }
.grade-produtos.modo-lista .btn-adicionar,
.grade-produtos.modo-lista .qtd-barra { max-width: 280px; }
@media (max-width: 1200px) {
  .grade-produtos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grade-produtos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .painel-ola { flex-direction: column; align-items: stretch; }
  .ola-data { min-width: 0; }
  .barra-busca { flex-wrap: wrap; }
  .visoes { margin-left: 0; }
  .topo-usuario-texto { display: none; }
}
@media (max-width: 560px) {
  .grade-produtos,
  .grade-produtos.modo-lista .card-produto { grid-template-columns: 1fr; }
  .btn-pedido-rotulo { display: none; }
  .ola-data-linha { flex-direction: column; }
  .topo-pedido { padding: 10px 12px; }
}
