body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  background-color: #F4F7FA;
}

/* .login-overlay redefinido no bloco de identidade visual abaixo */

.login-overlay.hidden {
  display: none;
}

.login-card {
  width: min(92vw, 360px);
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.login-card h2 {
  margin: 0 0 8px 0;
}

.login-card p {
  margin: 0 0 14px 0;
}

.mobile-topbar {
  display: none;
}

.container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.sidebar {
  width: 220px;
  background-color: #06315A;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 100vh;
  transition: width 0.2s ease;
  overflow: hidden;
}

.sidebar h2 {
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #041E37;
  margin: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.sidebar ul li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  text-align: left;
}

.sidebar ul li:hover {
  background-color: #041E37;
}

.sidebar .bottom {
  padding: 10px;
  border-top: 1px solid #041E37;
  margin-top: auto;
}

.sidebar .bottom button {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.content {
  flex: 1;
  padding: 20px;
  background-color: #F4F7FA;
  box-sizing: border-box;
  max-width: 100%;
}

.desktop-menu-toggle {
  position: fixed;
  top: 14px;
  left: 12px;
  z-index: 1100;
  border: 1px solid #041E37;
  background: #12222F;
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  display: none;
}

.sidebar-hotzone {
  display: none;
}

.kpi-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.kpi-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kpi-card h3 {
  margin: 0;
  font-size: 14px;
  color: #93A5B4;
}

.kpi-card p {
  font-size: 28px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 0;
}

.grafico-box,
.form-card,
.table-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  overflow-x: auto;
}

.grafico-box {
  height: 350px;
}

.grafico-box h2,
.form-card h2,
.table-card h2 {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #041E37;
}

.form-group input,
.form-group select {
  padding: 10px;
  border: 1px solid #C9D6E4;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.btn-primary {
  background-color: #06315A;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-secondary {
  background-color: #5C6E7E;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-danger {
  background-color: #B23B3B;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-small {
  padding: 6px 10px;
  font-size: 12px;
  margin: 2px;
}

.mensagem-sucesso {
  color: #1E7A4B;
  font-weight: bold;
  margin-top: 12px;
}

.mensagem-erro {
  color: #B23B3B;
  font-weight: bold;
  margin-top: 12px;
}

.tabela {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 680px;
}

.tabela th,
.tabela td {
  padding: 12px;
  border-bottom: 1px solid #D8E2EC;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.tabela th {
  background-color: #D8E2EC;
}

.header-content {
  margin-bottom: 20px;
}

.header-content h1 {
  margin: 0 0 8px 0;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #D8E2EC;
  font-size: 12px;
  font-weight: bold;
  color: #12222F;
}

.kanban-board {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.kanban-column {
  flex: 1;
  min-width: 240px;
  background: #F7FAFD;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #D8E2EC;
  min-height: 200px;
}

.kanban-column h3 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #12222F;
}

.kanban-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #D8E2EC;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: grab;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-titulo {
  margin: 8px 0 6px 0;
  font-size: 15px;
  color: #12222F;
}

.kanban-projeto {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #93A5B4;
}

.kanban-desc {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #041E37;
  line-height: 1.35;
}

.kanban-resp {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #5C6E7E;
}

.kanban-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.kanban-prioridade {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 999px;
}

.kanban-prioridade-alta {
  background: #FBEEEE;
  color: #B23B3B;
}

.kanban-prioridade-media {
  background: #FDF3E3;
  color: #B8791A;
}

.kanban-prioridade-baixa {
  background: #E4EBF2;
  color: #0E4C82;
}

.kanban-msg {
  font-size: 13px;
  color: #93A5B4;
  margin: 8px 0;
}

.subtitulo-modulo {
  color: #93A5B4;
  margin: 0 0 16px 0;
  font-size: 14px;
}

.hint-text {
  font-size: 13px;
  color: #5C6E7E;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.input-readonly {
  background: #F4F7FA;
  color: #12222F;
  font-weight: 600;
}

.filtros-mp {
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .desktop-menu-toggle {
    display: block;
  }

  .sidebar.collapsed { width: 64px; }
  .sidebar.collapsed.expanded-temp { width: 230px; }

  .sidebar-hotzone {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    z-index: 1005;
  }

  .container .content {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #12222F;
    color: #fff;
    padding: 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .mobile-topbar h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
  }

  .menu-toggle {
    background: #06315A;
    color: #fff;
    border: 1px solid #041E37;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
  }

  .container {
    flex-direction: column;
    min-height: 100vh;
  }

  .desktop-menu-toggle {
    display: none;
  }

  .sidebar-hotzone {
    display: none;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    display: none;
  }

  .sidebar.sidebar-open {
    display: flex;
  }

  .content {
    padding: 12px;
  }

  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  input,
  select,
  button {
    font-size: 16px !important;
    padding: 12px !important;
    height: auto !important;
    box-sizing: border-box;
  }

  .tabela {
    min-width: 760px;
  }

  .kpi-container {
    flex-direction: column;
  }

  .grafico-box {
    height: 320px;
  }

  .sidebar .bottom {
    padding-bottom: 14px;
  }
}

/* ===== Painel PCP - Capacidade de Produção ===== */
.badge { padding: 2px 8px; border-radius: 10px; font-size: 10.5px; font-weight: 700; color: white; white-space: nowrap; }
.badge-critica { background: #B23B3B; }
.badge-alta { background: #B8791A; }
.badge-media { background: #B8791A; }
.badge-planejada { background: #5C6E7E; }
.atraso-ok { color: #1E7A4B; font-weight: 700; }
.atraso-warn { color: #B23B3B; font-weight: 700; }
.del-x { color: #B23B3B; cursor: pointer; font-weight: 700; }

/* Kanban - seletor de status (alternativa ao drag-and-drop pra celular/tablet) */
.kanban-card-move {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #C9D6E4;
}
.kanban-card-move label {
  display: block;
  color: #5C6E7E;
  margin-bottom: 3px;
}
.kanban-card-move select {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #C9D6E4;
  font-size: 13px;
}

/* Wrapper de altura fixa pros gráficos do Painel PCP (canvas com maintainAspectRatio:false) */
.chart-wrap { position: relative; height: 280px; width: 100%; }
.chart-wrap canvas { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; }

/* ===== Kanban Scrumban: semáforo de prazo, WIP, pontos ===== */
.wip-badge {
  font-size: 11px;
  font-weight: 700;
  background: #5C6E7E;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.wip-badge.wip-excedido {
  background: #B23B3B;
  animation: wipPulse 1.4s infinite;
}
@keyframes wipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.kanban-card.prazo-atrasado { border-left: 5px solid #B23B3B; background: #FBEEEE; }
.kanban-card.prazo-atencao { border-left: 5px solid #B8791A; }
.kanban-card.prazo-agendado { border-left: 5px solid #9DB3C7; opacity: 0.82; }
.kanban-card.prazo-ok { border-left: 5px solid #1E7A4B; }
.kanban-card.prazo-concluido { border-left: 5px solid #F8B149; opacity: 0.9; }

.kanban-datas {
  font-size: 11.5px;
  color: #5C6E7E;
  margin: 4px 0 2px;
}
.kanban-prazo-txt {
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0 4px;
}
.kanban-pontos {
  font-size: 11px;
  font-weight: 700;
  background: #06315A;
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ===== Kanban: colunas com rolagem (quadro não estica com muitos cards) ===== */
.kanban-column > div[id^="kanban"] {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 4px;
}
.kanban-column > div[id^="kanban"]::-webkit-scrollbar { width: 7px; }
.kanban-column > div[id^="kanban"]::-webkit-scrollbar-thumb {
  background: #9DB3C7; border-radius: 4px;
}

/* Card compacto: descrição truncada em 2 linhas */
.kanban-card .kanban-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
}

/* Comentários no modal */
.comentario-item {
  border-left: 3px solid #06315A;
  background: #F7FAFD;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.comentario-cabecalho {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #5C6E7E;
  margin-bottom: 4px;
}
.comentario-cabecalho .del-x { margin-left: auto; }
.comentario-texto { font-size: 13px; white-space: pre-wrap; }

/* ==========================================================
   SIDEBAR — layout profissional
   ========================================================== */

/* Sidebar em coluna: logo fixa, menu rolável, rodapé fixo.
   Corrige o corte dos últimos itens em telas 1366x768. */
.sidebar {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.sidebar h2 {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 0;
}
.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* Itens mais compactos, cabem mais módulos sem rolagem */
.sidebar ul li {
  padding: 11px 14px;
  font-size: 13.5px;
  gap: 10px;
  border-bottom: none;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.sidebar ul li .ico {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 15px;
}
.sidebar ul li .rot {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cabeçalho de grupo */
.sidebar ul li.menu-grupo {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.45);
  padding: 14px 14px 5px;
  cursor: default;
  font-weight: 700;
  border-left: none;
}
.sidebar ul li.menu-grupo:hover { background: transparent; }

/* Item ativo — o usuário sabe onde está */
.sidebar ul li.ativo {
  background-color: #041E37;
  border-left-color: #F8B149;
  font-weight: 600;
}
.sidebar ul li.ativo .rot { color: #fff; }

/* Rodapé fixo */
.sidebar .bottom {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
}
.usuario-logado {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 4px 12px;
}
.usuario-logado .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8B149;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.usuario-logado .dados {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.25;
}
.usuario-logado .dados b {
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usuario-logado .dados small {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: capitalize;
}


/* ==========================================================
   SIDEBAR RECOLHIDA — modo ícones (desktop)
   ========================================================== */
@media (min-width: 769px) {
  .sidebar { transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1); }

  /* Logo: encolhe, nunca some (mantém a marca visível) */
  .sidebar.collapsed h2 { padding: 12px 6px; }
  .sidebar.collapsed h2 img {
    max-width: 40px;
    transition: max-width 0.22s ease;
  }
  .sidebar.collapsed.expanded-temp h2 img { max-width: 90%; }

  /* Esconde textos, mantém ícones centralizados */
  .sidebar.collapsed .rot,
  .sidebar.collapsed .usuario-logado .dados,
  .sidebar.collapsed .bottom button .btn-txt {
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    transition: opacity 0.15s ease;
  }
  .sidebar.collapsed.expanded-temp .rot,
  .sidebar.collapsed.expanded-temp .usuario-logado .dados,
  .sidebar.collapsed.expanded-temp .bottom button .btn-txt {
    opacity: 1;
    width: auto;
  }

  .sidebar.collapsed ul li {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
  }
  .sidebar.collapsed.expanded-temp ul li {
    justify-content: flex-start;
    padding: 11px 14px;
    gap: 10px;
  }

  /* Título de grupo vira um traço separador discreto */
  .sidebar.collapsed ul li.menu-grupo {
    font-size: 0;
    padding: 0;
    height: 1px;
    margin: 9px 16px;
    background: rgba(255, 255, 255, 0.16);
  }
  .sidebar.collapsed.expanded-temp ul li.menu-grupo {
    font-size: 10.5px;
    padding: 14px 14px 5px;
    height: auto;
    margin: 0;
    background: transparent;
  }

  /* Rodapé continua acessível (antes sumia por completo) */
  .sidebar.collapsed .bottom { display: block; padding: 10px 6px; }
  .sidebar.collapsed .usuario-logado { justify-content: center; padding: 6px 0 10px; }
  .sidebar.collapsed .bottom button {
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
  }
  .sidebar.collapsed.expanded-temp .bottom { padding: 10px 12px; }
  .sidebar.collapsed.expanded-temp .bottom button {
    text-align: left;
    padding: 10px 12px;
    font-size: 13.5px;
  }
  .sidebar.collapsed.expanded-temp .usuario-logado {
    justify-content: flex-start;
    padding: 8px 4px 12px;
  }

  /* Tooltip ao passar o mouse no modo ícone */
  .sidebar.collapsed ul li[data-module] { position: relative; }
  .sidebar.collapsed ul li[data-module]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #041E37;
    color: #fff;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
    z-index: 1200;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  }
  .sidebar.collapsed ul li[data-module]:hover::after { opacity: 1; }
  .sidebar.collapsed.expanded-temp ul li[data-module]::after { display: none; }

  /* Item ativo continua legível no modo ícone */
  .sidebar.collapsed ul li.ativo {
    border-left-color: transparent;
    box-shadow: inset 3px 0 0 #F8B149;
  }
}

/* ==========================================================
   TELA DE LOGIN — identidade visual JS Grãos (azul-marinho + âmbar)
   Opaca: nenhum módulo aparece por trás antes da autenticação
   ========================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
}
.login-overlay.hidden { display: none; }

/* --- Lado da marca --- */
.login-brand {
  position: relative;
  background:
    radial-gradient(circle at 18% 22%, rgba(248, 177, 73, 0.30) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(185, 168, 140, 0.24) 0%, transparent 50%),
    linear-gradient(145deg, #06315A 0%, #041E37 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

/* Formas orgânicas suaves, evocando grão e gota de óleo */
.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-brand::before {
  width: 420px;
  height: 420px;
  background: #fff;
  opacity: 0.04;
  top: -120px;
  right: -140px;
}
.login-brand::after {
  width: 300px;
  height: 340px;
  background: #F8B149;
  opacity: 0.12;
  bottom: -90px;
  left: -80px;
  border-radius: 50% 50% 46% 54% / 55% 52% 48% 45%;
}

.login-brand-conteudo {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  animation: loginEntrada 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes loginEntrada {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Marca oficial da JS Grãos (assets/JSgraos.svg) no painel do login,
   aplicada direto sobre o azul.

   A marca traz contorno branco próprio ("sombra branca"), que já a separa do fundo escuro. Por isso NÃO leva placa nem medalhão atrás:
   seria branco sobre branco, e o contorno se perderia.

   NÃO aplicar `brightness(0) invert(1)` — aquele filtro vinha da marca
   anterior (monocromática) e apaga o âmbar e o azul-marinho desta.

   Sendo SVG, qualquer tamanho fica nítido, inclusive em tela de alta
   densidade. */
.login-logo {
  width: min(76%, 300px);
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}
.login-brand-conteudo h1 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
}
.login-tagline {
  font-size: 12.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 8px 0 0;
}
.login-linha {
  width: 64px;
  height: 3px;
  background: #F8B149;
  margin: 26px auto;
  border-radius: 2px;
}
.login-setor {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.login-rodape-marca {
  position: absolute;
  bottom: 26px;
  z-index: 2;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* --- Lado do formulário --- */
.login-form-lado {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #F7FAFD;
}
.login-card {
  width: min(100%, 380px);
  background: #fff;
  border-radius: 14px;
  padding: 34px 30px;
  box-shadow: 0 8px 34px rgba(12, 23, 43, 0.1);
  border: 1px solid #E4EBF2;
  animation: loginEntrada 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.login-card h2 {
  margin: 0 0 5px;
  color: #06315A;
  font-size: 21px;
}
.login-card .login-sub {
  margin: 0 0 22px;
  color: #5C6E7E;
  font-size: 13.5px;
}
.login-card .form-group { margin-bottom: 15px; }
.login-card label {
  font-size: 12px;
  font-weight: 600;
  color: #5C6E7E;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.login-card input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #D8E2EC;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.login-card input:focus {
  outline: none;
  border-color: #06315A;
  box-shadow: 0 0 0 3px rgba(25, 63, 99, 0.1);
}

.campo-senha { position: relative; }
.campo-senha input { padding-right: 42px; }
.ver-senha {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 5px 7px;
  opacity: 0.55;
}
.ver-senha:hover { opacity: 1; }

.btn-login {
  width: 100%;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-top: 6px;
  border-radius: 8px;
}

.bloco-licenca {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #EEF3F8;
}
.bloco-licenca summary {
  cursor: pointer;
  font-size: 12.5px;
  color: #5C6E7E;
  user-select: none;
}
.bloco-licenca summary:hover { color: #06315A; }

/* --- Responsivo: só a marca no topo em telas pequenas --- */
@media (max-width: 900px) {
  .login-overlay { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-brand { padding: 26px 20px; }
  .login-logo { width: min(62%, 240px); margin-bottom: 14px; }
  .login-brand-conteudo h1 { font-size: 21px; letter-spacing: 2.5px; }
  .login-linha { margin: 14px auto; }
  .login-tagline, .login-setor, .login-rodape-marca { display: none; }
  .login-brand::before, .login-brand::after { display: none; }
  .login-form-lado { padding: 24px 18px; }
  .login-card { box-shadow: none; border: none; background: transparent; padding: 10px 0; }
}


/* ==========================================================
   JS GRÃOS — status de lote, balanço de massa e semáforos
   ========================================================== */
.badge-lote {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.lote-recebido,
.lote-disponivel,
.lote-em-armazenagem { background: #E3F1EA; color: #06315A; }
.lote-em-processo,
.lote-carregando { background: #FDF3E3; color: #B8791A; }
.lote-consumido,
.lote-expedido { background: #E4EBF2; color: #5C6E7E; }
.lote-bloqueado,
.lote-cancelado { background: #FBEEEE; color: #B23B3B; }

.balanco-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 10px;
  background: #F7FAFD;
  border: 1px solid #D8E2EC;
  margin-bottom: 14px;
}
.balanco-item { text-align: center; min-width: 108px; }
.balanco-item small { display: block; color: #5C6E7E; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
.balanco-item b { display: block; font-size: 18px; color: #06315A; margin-top: 2px; }
.balanco-sinal { font-size: 20px; color: #9DB3C7; font-weight: 700; }
.balanco-ok { color: #06315A; font-weight: 600; }
.balanco-erro { color: #B23B3B; font-weight: 600; }

.rendimento-barra {
  height: 8px;
  border-radius: 4px;
  background: #E4EBF2;
  overflow: hidden;
  margin-top: 4px;
}
.rendimento-barra span { display: block; height: 100%; background: #F8B149; }

.ocupacao-barra {
  height: 10px;
  border-radius: 5px;
  background: #E4EBF2;
  overflow: hidden;
}
.ocupacao-barra span { display: block; height: 100%; background: #06315A; }
.ocupacao-alta span { background: #B23B3B; }
.ocupacao-media span { background: #F8B149; }

.linha-rastreio {
  border-left: 3px solid #F8B149;
  padding: 6px 0 6px 14px;
  margin-left: 8px;
}
.linha-rastreio + .linha-rastreio { margin-top: 2px; }
.linha-rastreio small { color: #5C6E7E; }


/* ==========================================================
   ABAS INTERNAS DE MÓDULO (Originação)
   ========================================================== */
.abas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 2px solid #D8E2EC;
  padding-bottom: 0;
}
.abas .aba {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #5C6E7E;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.15s ease;
}
.abas .aba:hover { background: #F7FAFD; color: #06315A; }
.abas .aba.ativa {
  color: #06315A;
  border-bottom-color: #F8B149;
  background: #F7FAFD;
}
@media (max-width: 768px) {
  .abas .aba { flex: 1 1 auto; padding: 10px 10px; font-size: 13px; }
}
