:root {
  --navy: #0c1f38;
  --navy-deep: #0c1f38;
  --orange: #ffa100;
  --grey: #5a6472;
  --grey-soft: #8b94a3;
  --ink: #0c1f38;
  --line: #e4e8ef;
  --ok: #2e9e5b;
  --warn: #e8a33d;
  --err: #d1495b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(255, 161, 0, .10), transparent 60%),
    radial-gradient(1100px 700px at 110% 120%, rgba(12, 31, 56, .14), transparent 60%),
    #eef1f6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================ tela inicial ============================ */

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

/* largura total: o cartao ocupa a tela inteira, sem margem em volta */
.card {
  flex: 1 1 auto;
  width: 100%;
  /* altura da tela: a lista rola por dentro quando as 2 colunas enchem */
  height: 100vh;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(470px, 37%) 1fr;
  background: #fff;
}

/* --- lado azul (marca) --- */

.lado-marca {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 36px 26px;
  color: #fff;
  background: var(--navy);  /* mesmo azul liso dos dashboards */
  border-right: 4px solid var(--orange);
  overflow: hidden;
}

.lado-marca > * {
  position: relative;
}

/* particulas animadas no fundo, atras de todo o conteudo */
.lado-marca > .fundo-particulas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.marca-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-right: 16px;
  border-right: 2px solid var(--orange);
}

.logo .in {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .5px;
}

.logo .in span {
  color: var(--orange);
}

.logo .sub {
  font-size: 9.5px;
  letter-spacing: 5.5px;
  color: var(--grey-soft);
  margin-top: 4px;
}

.gps {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1;
  white-space: nowrap;
}

.gps span {
  color: #c3ccdd;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  position: relative;
  top: -6px;
}

/* meio do lado azul: nome do portal + ultimas planilhas, centralizado na
   altura entre o logo e os numeros */
.meio {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: auto 0;
}

.titulo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.titulo-pre {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--orange);
}

/* mesmo estilo do titulo da barra de cada dashboard: fino e espacado */
.titulo-nome {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 7px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

.titulo::after {
  content: "";
  width: 56px;
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--orange);
}

.rotulo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 6px;
}

.recentes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.recentes a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color .15s ease, padding .15s ease;
}

.recentes li:last-child a {
  border-bottom: 0;
}

.recentes .dt {
  min-width: 42px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}

.recentes a:hover {
  padding-left: 4px;
  color: var(--orange);
}

.base {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.numeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.num {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-left: 3px solid var(--orange);
}

.num b {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.num span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-soft);
}

.endereco {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-soft);
}

.endereco b {
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: none;
  color: #fff;
  user-select: all;
}

.endereco b + b {
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

/* --- lado branco (lista) --- */

.lado-lista {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 26px 30px 20px;
}

.lista-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--line);
}

.lista-tit {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: .2px;
}

.lista-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--grey-soft);
}

/* busca + botao do informe, lado a lado */
.topo-acoes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 560px;
  min-width: 0;
}

.busca {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #d8deea;
  border-radius: 9px;
  background: #fff;
  color: var(--grey-soft);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.busca:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 161, 0, .15);
  color: var(--navy);
}

.busca input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--ink);
  background: transparent;
}

/* ate 7 dashboards por coluna, no maximo 2 colunas (o index.html ajusta
   --linhas). Passou de 14, a lista rola pra baixo com barra fina. */
.lista {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(var(--linhas, 7), auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-content: start;
  column-gap: 26px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #eef1f6;
}

.lista::-webkit-scrollbar {
  width: 8px;
}

.lista::-webkit-scrollbar-track {
  background: #eef1f6;
  border-radius: 8px;
}

.lista::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 8px;
}

.lista-aviso {
  grid-column: 1 / -1;
  padding: 40px 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--grey);
}

/* cada linha inteira eh clicavel (o link "estica" por cima dela); os
   atalhos das paginas ficam por cima do link esticado */
.item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f6;
  border-radius: 10px;
  transition: none;  /* sobe na hora, sem animacao */
}

.item:last-child {
  border-bottom: 0;
}

.item:hover,
.item:focus-within {
  background: #faf6ee;
  /* sobe um pouquinho, igual as linhas das tabelas dos dashboards */
  box-shadow: inset 3px 0 0 var(--orange), 0 4px 10px rgba(12, 31, 56, .18);
  transform: translateY(-1px);
}

/* icone: monitor com graficos em traco fino, contorno azul e graficos laranja */
.item-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  transition: transform .15s ease;
}

.ic-dash .az {
  stroke: var(--navy);
}

.ic-dash .la {
  stroke: var(--orange);
}

.ic-dash .la-p {
  fill: #fff;
  stroke: var(--orange);
  stroke-width: 1.6;
}

.item:hover .item-ic {
  transform: scale(1.06);
}

.item-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.item-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  outline: none;
}

.item-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.item-link:focus-visible::after {
  box-shadow: 0 0 0 2px var(--orange);
}

.item-desc {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.4;
}

.paginas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.pag {
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--navy);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #d8deea;
  border-radius: 20px;
  background: #fff;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pag:hover,
.pag:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-deep);
  outline: none;
}

.item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.status.on {
  color: var(--ok);
}

.status.ini {
  color: var(--warn);
}

.data {
  font-size: 11px;
  font-weight: 500;
  color: var(--grey-soft);
}

.data.falta {
  color: var(--err);
  font-weight: 700;
}

.item-seta {
  display: flex;
  color: #c3ccdd;
  transition: color .15s ease, transform .15s ease;
}

.item:hover .item-seta {
  color: var(--orange);
  transform: translateX(3px);
}

/* rodape dentro do lado branco, colado embaixo e centralizado nele */
.rodape {
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  color: var(--grey);
  text-align: center;
  border-top: 1px solid #e4e8ef;
}

.rodape .autor {
  font-weight: 700;
  color: var(--navy);
}

@media (max-width: 1080px) {
  .card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .lista {
    display: flex;
    flex-direction: column;
  }

  .lado-marca {
    border-right: 0;
    border-bottom: 4px solid var(--orange);
    gap: 24px;
  }

  .meio {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .lista-topo {
    flex-direction: column;
    align-items: stretch;
  }

  .topo-acoes {
    flex-basis: auto;
  }

  .item {
    grid-template-columns: auto 1fr;
  }

  .item-meta {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .item-seta {
    display: none;
  }

  .marca-topo .gps {
    font-size: 22px;
  }
}

/* ---------------------------- tela de acesso ----------------------------
   Fundo azul com as mesmas particulas da tela inicial; o cartao do login
   fica branco por cima. */

.acesso-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--navy);  /* mesmo azul liso dos dashboards */
}

.fundo-particulas-cheio {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.acesso-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.acesso-card {
  background: #fff;
  border-radius: 16px;
  border-top: 5px solid var(--orange);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .40);
  padding: 34px 34px 26px;
  text-align: center;
}

.logo-grande {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
}

.logo-grande .in {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--navy);
}

.logo-grande .in span {
  color: var(--orange);
}

.logo-grande .sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 9.5px;
  color: var(--grey-soft);
  margin-top: 7px;
  margin-right: -9.5px;
}

.acesso-card h1 {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.acesso-aviso {
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey);
  margin-bottom: 22px;
}

.acesso-card .campo {
  text-align: left;
}

a.botao-entrar {
  display: block;
  text-align: center;
  text-decoration: none;
}

.botao-entrar {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .6px;

  transition: background .15s ease, color .15s ease;
}

.botao-entrar:hover:not(:disabled) {
  background: var(--orange);
  color: var(--navy-deep);
}

.botao-entrar:disabled {
  opacity: .65;
}

.voltar-portal {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.voltar-portal:hover {
  color: var(--navy);
  border-bottom-color: var(--orange);
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.campo span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--grey);
}

.campo select,
.campo input {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid #d8deea;
  border-radius: 9px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.campo select:focus,
.campo input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 161, 0, .15);
}

.erro-msg {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--rose-bg, #fde8ea);
  border: 1px solid #f3c2c8;
  color: #9c2b36;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.rodape-acesso {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--grey);
  text-align: center;
}

.rodape-acesso b {
  color: var(--navy);
}

/* "Developed by" embaixo do cartao, sobre o fundo azul */
.credito {
  margin-top: 18px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .6);
}

.credito b {
  font-weight: 700;
  color: #fff;
}

/* -------------------- marcacao de area na lista -------------------- */

.area {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  vertical-align: 2px;
  border: 1px solid #d8deea;
  background: #f0f3f9;
  color: var(--grey);
}

.area.livre {
  background: #e2f3e7;
  border-color: #b8dfc5;
  color: #1d6b3a;
}

.area.trancado {
  background: #fff4e0;
  border-color: #f3d9a8;
  color: #8a6100;
}

.sessao {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--grey-soft);
}

.sessao b {
  color: #fff;
  font-size: 12px;
}

.sessao a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sessao a:hover {
  border-bottom-color: var(--orange);
}

/* senha da area logada, a direita do "Conectado como" (olho mostra/esconde) */
.sessao-quem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.senha-area {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.senha-rot {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-soft);
}

.senha-valor {
  min-width: 58px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.senha-valor.aviso {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--grey-soft);
  user-select: none;
}

.senha-olho {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: var(--grey-soft);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.senha-olho:hover,
.senha-olho:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
  background: rgba(255, 161, 0, .10);
  outline: none;
}

/* troca suave de cores quando clica no botao (so durante a troca) */
.tema-trocando,
.tema-trocando *,
.tema-trocando *::before,
.tema-trocando *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease, stroke .3s ease !important;
}

/* ============================ informe semanal ============================ */
.informe-botao {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #d8deea;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font: 700 12px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.informe-botao:hover,
.informe-botao:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  outline: none;
}

.inf-fundo {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(12, 31, 56, .45);
}

.inf-fundo[hidden] {
  display: none;
}

.inf-caixa {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  border-top: 4px solid var(--orange);
  box-shadow: 0 20px 60px rgba(12, 31, 56, .35);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inf-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.inf-tit {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

.inf-sub {
  font-size: 12px;
  color: var(--grey);
  margin-top: 2px;
}

.inf-x {
  border: 0;
  background: transparent;
  color: var(--grey);
  font-size: 16px;
  cursor: pointer;
}

.inf-acoes {
  display: flex;
  gap: 8px;
}

.inf-acoes button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #d8deea;
  background: #fff;
  color: var(--navy);
  font: 600 11px inherit;
  font-family: inherit;
  cursor: pointer;
}

.inf-acoes button:hover {
  border-color: var(--orange);
}

.inf-lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
}

.inf-dash {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.inf-pag,
.inf-opcao {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink);
  padding: 2px 0;
  cursor: pointer;
}

.inf-pag input,
.inf-opcao input {
  accent-color: var(--orange);
}

.inf-msg {
  min-height: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
}

.inf-msg.ok {
  color: var(--ok);
}

.inf-msg.erro {
  color: var(--err);
}

.inf-rodape {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.inf-rodape button {
  padding: 10px 16px;
  border-radius: 8px;
  font: 700 12.5px inherit;
  font-family: inherit;
  cursor: pointer;
}

.inf-cancelar {
  border: 1px solid #d8deea;
  background: #fff;
  color: var(--navy);
}

.inf-gerar {
  border: 0;
  background: var(--navy);
  color: #fff;
}

.inf-gerar:hover {
  background: var(--orange);
  color: var(--navy);
}

.inf-gerar:disabled {
  opacity: .6;
  cursor: default;
}

@media (max-width: 600px) {
  .inf-lista {
    grid-template-columns: 1fr;
  }

  .informe-botao span {
    display: none;
  }
}


.informe-botao[hidden] {
  display: none;
}
