/* =====================================================================
   VISUAL DO SISTEMA — limpo e sóbrio, funciona no notebook e no celular
   ===================================================================== */

:root {
  --cor-primaria: #1f3a5f;
  --cor-primaria-escura: #152a45;
  --cor-fundo: #f4f6f9;
  --cor-cartao: #ffffff;
  --cor-texto: #1f2933;
  --cor-texto-suave: #616e7c;
  --cor-borda: #d9dee5;

  --cor-erro: #b42318;
  --cor-erro-fundo: #fdecea;
  --cor-alerta: #8a6100;
  --cor-alerta-fundo: #fff6d6;
  --cor-ok: #1e7b4a;
  --cor-ok-fundo: #e6f4ec;

  --raio: 8px;
  --sombra: 0 1px 3px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cor-texto);
  background: var(--cor-fundo);
}

h1 { font-size: 1.4rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }

/* ---------- Topo ---------- */

.topo {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 56px;
  padding: 0 1.5rem;
  background: var(--cor-primaria);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topo[hidden] { display: none; }

.marca { font-weight: 700; font-size: 1.1rem; }

.usuario { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
#usuario-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }

.botao-menu {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  border-radius: var(--raio);
  cursor: pointer;
}
.botao-menu:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Menu lateral (áreas) ---------- */

.corpo { display: flex; align-items: flex-start; }

.menu-lateral {
  flex: 0 0 220px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 1rem 0.75rem;
  background: #fff;
  border-right: 1px solid var(--cor-borda);
}
.menu-area + .menu-area { margin-top: 1.25rem; }
.menu-area-titulo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cor-texto-suave);
  padding: 0 0.6rem 0.35rem;
}
.menu-lateral a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: var(--raio);
  color: var(--cor-texto);
  text-decoration: none;
}
.menu-lateral a:hover { background: var(--cor-fundo); }
.menu-lateral a.ativo { background: #e3ecf9; color: var(--cor-primaria); font-weight: 600; }

.menu-fundo { display: none; }

/* ---------- Conteúdo ---------- */

.conteudo {
  flex: 1;
  min-width: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Tela média/celular: menu escondido, abre pelo botão ☰ */
@media (max-width: 900px) {
  .botao-menu { display: inline-block; }
  .menu-lateral {
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 15;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 16px rgba(16, 24, 40, 0.12);
  }
  body.menu-aberto .menu-lateral { transform: none; }
  body.menu-aberto .menu-fundo {
    display: block;
    position: fixed;
    inset: 56px 0 0 0;
    z-index: 10;
    background: rgba(16, 24, 40, 0.35);
  }
}

.cartao {
  background: var(--cor-cartao);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 1.5rem;
}

.cartao-login {
  max-width: 380px;
  margin: 8vh auto 0;
}

.texto-suave { color: var(--cor-texto-suave); }
.texto-pequeno { font-size: 0.85rem; margin-top: 1rem; }

/* ---------- Formulários ---------- */

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 1rem 0 0.3rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--cor-primaria);
  outline-offset: -1px;
  border-color: var(--cor-primaria);
}

.mensagem-erro {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--raio);
  background: var(--cor-erro-fundo);
  color: var(--cor-erro);
  font-size: 0.9rem;
}

.mensagem-ok {
  margin: 1rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--raio);
  background: var(--cor-ok-fundo);
  color: var(--cor-ok);
  font-size: 0.9rem;
}

/* ---------- Botões ---------- */

.botao {
  display: inline-block;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  border-radius: var(--raio);
  border: 1px solid transparent;
  cursor: pointer;
}
.botao:disabled { opacity: 0.6; cursor: default; }

.botao-primario { background: var(--cor-primaria); color: #fff; }
.botao-primario:hover:not(:disabled) { background: var(--cor-primaria-escura); }

.botao-secundario { background: transparent; color: inherit; border-color: currentColor; }
.botao-secundario:hover { background: rgba(255, 255, 255, 0.1); }

.botao-largo { width: 100%; margin-top: 1.25rem; }

.botao-claro { background: #fff; color: var(--cor-texto); border-color: var(--cor-borda); }
.botao-claro:hover { background: var(--cor-fundo); }

.botao-perigo { background: #fff; color: var(--cor-erro); border-color: #f1b5ae; }
.botao-perigo:hover { background: var(--cor-erro-fundo); }

.botao-fechar {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cor-texto-suave);
  padding: 0.25rem 0.5rem;
}

/* ---------- Cabeçalho das telas e filtros ---------- */

.cabecalho-tela {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cabecalho-tela h1 { margin: 0; }

.filtros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
}
.filtros label { margin-top: 0; font-size: 0.8rem; color: var(--cor-texto-suave); }
.campo-botao { display: flex; align-items: flex-end; }
.campo-botao .botao { width: 100%; }

/* ---------- Tabela de tarefas ---------- */

.contagem { margin: 0 0 0.5rem; }

.tabela { width: 100%; border-collapse: collapse; }
.tabela th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cor-texto-suave);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--cor-borda);
}
.tabela td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--cor-borda);
  vertical-align: middle;
}

.linha-tarefa { cursor: pointer; }
.linha-tarefa:hover { background: #f8fafc; }
.linha-tarefa:focus { outline: 2px solid var(--cor-primaria); outline-offset: -2px; }

.linha-tarefa.atrasada { background: var(--cor-erro-fundo); box-shadow: inset 4px 0 var(--cor-erro); }
.linha-tarefa.atrasada:hover { background: #fadcd8; }
.linha-tarefa.hoje { background: var(--cor-alerta-fundo); box-shadow: inset 4px 0 #e0b100; }
.linha-tarefa.hoje:hover { background: #fdeeb3; }

.aviso-prazo { font-size: 0.75rem; font-weight: 700; margin-left: 0.35rem; white-space: nowrap; }
.atrasada .aviso-prazo { color: var(--cor-erro); }
.hoje .aviso-prazo { color: var(--cor-alerta); }

/* ---------- Etiquetas (prioridade e status) ---------- */

.etiqueta {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.prioridade-baixa   { background: #eef1f4; color: #52606d; }
.prioridade-media   { background: #e3ecf9; color: #1f4f8f; }
.prioridade-alta    { background: #fdebd7; color: #9a4d00; }
.prioridade-urgente { background: #fbd9d5; color: #a3180d; }

.status-a_fazer      { background: #eef1f4; color: #3e4c59; }
.status-em_andamento { background: #e3ecf9; color: #1f4f8f; }
.status-aguardando   { background: #f1e8fb; color: #6b3fa0; }
.status-concluida    { background: var(--cor-ok-fundo); color: var(--cor-ok); }
.status-aguardando_validacao { background: #e8e6fb; color: #4b3fb0; }

/* Validação de tarefas */
.indicadores.indicadores-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.indicador-roxo { border-top: 4px solid #6c5ce7; }
.indicador-roxo .indicador-numero { color: #4b3fb0; }
.secao-validar { border-color: #b8b0f2; background: #faf9ff; }
.acoes-linha { text-align: right; white-space: nowrap; }
.acoes-linha .botao { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.texto-ok { color: var(--cor-ok); }
.barra-validacao {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: 1rem; padding: 0.8rem 1rem;
  background: #f1effd; border-left: 4px solid #6c5ce7; border-radius: var(--raio);
}
.nota-validacao {
  margin: 0.5rem 0 0.75rem; padding: 0.6rem 0.8rem;
  background: #f1effd; border-left: 4px solid #6c5ce7; border-radius: var(--raio); font-size: 0.92rem;
}

/* ---------- Janela (diálogo) ---------- */

.dialogo {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--raio);
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.25);
  color: var(--cor-texto);
}
.dialogo::backdrop { background: rgba(16, 24, 40, 0.45); }
.dialogo > * { padding-left: 1.5rem; padding-right: 1.5rem; }
.dialogo-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cor-borda);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.dialogo-topo h2 { margin: 0; }
.dialogo form { padding-bottom: 0.5rem; }
.dialogo h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }

#t-extras { border-top: 1px solid var(--cor-borda); padding-bottom: 1.5rem; }

textarea { resize: vertical; }

.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.acoes { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.25rem; }
.espaco { flex: 1; }

/* ---------- Comentários e histórico ---------- */

.comentario {
  padding: 0.6rem 0.8rem;
  background: var(--cor-fundo);
  border-radius: var(--raio);
  margin-bottom: 0.5rem;
}
.comentario-topo { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; flex-wrap: wrap; }
.comentario-texto { white-space: pre-wrap; margin-top: 0.2rem; overflow-wrap: anywhere; }

.form-comentario { display: flex; gap: 0.5rem; align-items: flex-end; }
.form-comentario textarea { flex: 1; }

.historico { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.historico li { padding: 0.3rem 0; border-bottom: 1px dashed var(--cor-borda); }
.historico li:last-child { border-bottom: 0; }

/* ---------- Painel do gestor ---------- */

.indicadores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.indicador { padding: 1rem 1.1rem; }
.indicador-numero { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.indicador-rotulo { font-size: 0.9rem; color: var(--cor-texto-suave); }
.indicador-dica { margin-top: 0.15rem; }
.indicador-erro   { border-top: 4px solid var(--cor-erro); }
.indicador-erro .indicador-numero { color: var(--cor-erro); }
.indicador-alerta { border-top: 4px solid #e0b100; }
.indicador-alerta .indicador-numero { color: var(--cor-alerta); }
.indicador-ok     { border-top: 4px solid var(--cor-ok); }
.indicador-ok .indicador-numero { color: var(--cor-ok); }

.secao { margin-bottom: 1rem; }
.secao h2 { margin-bottom: 0.75rem; }
.texto-normal { font-weight: 400; font-size: 0.9rem; }
.negrito { font-weight: 700; }
.tabela .num { text-align: right; }

/* ---------- Minhas tarefas (colaborador) ---------- */

.filtro-unico { min-width: 170px; }
.filtro-unico label { margin-top: 0; font-size: 0.8rem; color: var(--cor-texto-suave); }

.resumo { margin: 0 0 0.75rem; font-weight: 600; }
.resumo-atrasada { color: var(--cor-erro); }
.resumo-hoje { color: var(--cor-alerta); }

.detalhes { padding-top: 1rem; padding-bottom: 0.5rem; }
.descricao { white-space: pre-wrap; overflow-wrap: anywhere; }

.dados-tarefa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: var(--cor-fundo);
  border-radius: var(--raio);
}
.dados-tarefa dt { font-size: 0.8rem; color: var(--cor-texto-suave); }
.dados-tarefa dd { margin: 0.15rem 0 0; }

.texto-erro { color: var(--cor-erro); }
.texto-alerta { color: var(--cor-alerta); }

.form-status { display: flex; gap: 0.75rem; align-items: flex-end; }
.form-status .campo { flex: 1; }
.form-status label { margin-top: 0; }

#d-extras { border-top: 1px solid var(--cor-borda); padding-bottom: 1.5rem; }

/* ---------- Faturamento ---------- */

.abas { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.aba {
  font: inherit;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--cor-borda);
  border-radius: 999px;
  background: #fff;
  color: var(--cor-texto);
  cursor: pointer;
}
.aba.ativa { background: var(--cor-primaria); border-color: var(--cor-primaria); color: #fff; font-weight: 600; }
.contador:not(:empty) {
  display: inline-block;
  min-width: 1.4rem;
  margin-left: 0.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  text-align: center;
}
.aba.ativa .contador { background: rgba(255, 255, 255, 0.25); }
.seletor-aba { width: auto; min-width: 180px; }

.titulo-bloco { font-size: 1rem; margin: 1.25rem 0 0.5rem; color: var(--cor-texto-suave); }
.grupo { margin-bottom: 0.75rem; }
.grupo-titulo { font-size: 1.05rem; margin: 0 0 0.5rem; }
.grupo-anterior { border-left: 4px solid var(--cor-laranja); }

/* Laranja = atraso da unidade (esperando produção ou validação) */
:root { --cor-laranja: #c2570c; --cor-laranja-fundo: #fff0e3; }
.linha-tarefa.atraso-unidade { background: var(--cor-laranja-fundo); box-shadow: inset 4px 0 var(--cor-laranja); }
.linha-tarefa.atraso-unidade:hover { background: #ffe3cc; }
.atraso-unidade .aviso-prazo, .resumo-unidade { color: var(--cor-laranja); }
/* Vermelho = atraso da equipe (mesmo visual das tarefas atrasadas) */
.linha-tarefa.atraso-equipe { background: var(--cor-erro-fundo); box-shadow: inset 4px 0 var(--cor-erro); }
.linha-tarefa.atraso-equipe:hover { background: #fadcd8; }
.atraso-equipe .aviso-prazo { color: var(--cor-erro); }

.etapa-aguardando_producao { background: #eef1f4; color: #3e4c59; }
.etapa-aguardando_envio    { background: #fdf2e3; color: #8a5300; }
.etapa-calculo_realizado   { background: #e3ecf9; color: #1f4f8f; }
.etapa-enviado_validacao   { background: #f1e8fb; color: #6b3fa0; }
.etapa-validado_unidade    { background: #e0f2f1; color: #0f6e66; }
.etapa-nf_boleto_enviados  { background: var(--cor-ok-fundo); color: var(--cor-ok); }
.etapa-recebido            { background: #1e7b4a; color: #fff; }
.etapa-sem_producao        { background: #fff; color: #616e7c; border: 1px dashed #9aa5b1; }

.obs-fixas {
  margin: 0.75rem 0 0.25rem;
  padding: 0.7rem 0.9rem;
  background: var(--cor-alerta-fundo);
  border-left: 4px solid #e0b100;
  border-radius: var(--raio);
  font-size: 0.92rem;
}
.obs-fixas > div + div { margin-top: 0.3rem; }
.extras-dialogo { border-top: 1px solid var(--cor-borda); padding-bottom: 1.5rem; }

/* Telas do gestor no Faturamento */
.botoes-cabecalho { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dialogo-pequeno { width: min(460px, calc(100% - 24px)); }
.texto-laranja { color: var(--cor-laranja); }
.botao-link {
  border: 0; background: none; padding: 0.2rem 0.3rem;
  font: inherit; color: var(--cor-primaria); text-decoration: underline; cursor: pointer;
}
.botao-link.texto-erro { color: var(--cor-erro); }
.campo-largo { grid-column: span 2; }
.campo-inteiro { grid-column: 1 / -1; margin: 0; }

.col-marca { width: 2.2rem; }
.col-marca input { width: 1.1rem; height: 1.1rem; cursor: pointer; }

.barra-lote {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  margin-bottom: 1rem; padding: 0.8rem 1rem;
  border-color: var(--cor-primaria); background: #f3f7fc;
  position: sticky; top: 64px; z-index: 5;
}
.lote-acao { display: flex; gap: 0.4rem; align-items: center; }
.lote-acao input, .lote-acao select { width: auto; }
#aviso { margin: 0 0 1rem; }

.indicadores-etapas { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.indicador-etapa .indicador-rotulo { margin-top: 0.3rem; }
.indicador-etapa .etiqueta { white-space: normal; }

.tabela-resumo tfoot td { font-weight: 700; border-top: 2px solid var(--cor-borda); }

.barra { height: 8px; background: #eef1f4; border-radius: 999px; overflow: hidden; min-width: 80px; }
.barra-cheia { height: 100%; background: var(--cor-ok); }

.so-imprimir { display: none; }

/* Unidades */
.chip {
  display: inline-block; padding: 0.1rem 0.5rem; margin: 0.1rem 0;
  border-radius: 999px; background: #e3ecf9; color: #1f4f8f;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.chip-inativo { background: #eef1f4; color: #8a96a3; text-decoration: line-through; }
.linha-tarefa.inativa { opacity: 0.6; }
.linha-check { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.linha-check input { width: auto; }
.cabecalho-secao { margin: 1rem 0 0.5rem; }
.cabecalho-secao h3 { margin: 0; }

/* Impressão do relatório: só o conteúdo, sem menu nem botões */
@media print {
  .topo, .menu-lateral, .menu-fundo, .nao-imprimir { display: none !important; }
  .so-imprimir { display: block; font-size: 1rem; margin: 0 0 0.75rem; }
  body { background: #fff; font-size: 11px; }
  .conteudo { max-width: none; padding: 0; }
  .cartao { box-shadow: none; border: 1px solid #ccc; padding: 0.6rem; }
  .bloco-colaborador { break-inside: auto; }
  .tabela td, .tabela th { padding: 0.3rem 0.4rem; }
  .linha-tarefa { box-shadow: none !important; }
  .etiqueta { border: 1px solid #bbb; }
}

@media (max-width: 1200px) {
  .indicadores.indicadores-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Valores da nota fiscal */
.valores-nf {
  margin: 1rem 0 0; padding: 0.4rem 1rem 0.8rem;
  border: 1px solid var(--cor-borda); border-radius: var(--raio); background: #fbfcfd;
}
.valores-nf legend { font-weight: 700; font-size: 0.9rem; padding: 0 0.35rem; }
.valores-nf label { margin-top: 0.5rem; }
.calculo-nf {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0.8rem 0 0.3rem;
}
.calculo-nf dt { font-size: 0.78rem; color: var(--cor-texto-suave); }
.calculo-nf dd { margin: 0.1rem 0 0; font-weight: 600; }
.calculo-nf .liquido-nf dd { color: var(--cor-ok); font-size: 1.05rem; }
.resumo-valores { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0 0 1rem; padding: 0.8rem 1rem; }
.resumo-valores span { white-space: nowrap; }
.resumo-valores strong { font-size: 1.05rem; }

/* ---------- Celular ---------- */

@media (max-width: 640px) {
  .topo { padding: 0 0.75rem; gap: 0.5rem; }
  .conteudo { padding: 1rem; }
  .cartao { padding: 1.1rem; }

  .filtros { grid-template-columns: 1fr 1fr; }

  /* A tabela vira uma lista de cartões */
  .tabela thead { display: none; }
  .tabela, .tabela tbody, .tabela tr, .tabela td { display: block; width: 100%; }
  .tabela tr {
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio);
    margin-bottom: 0.6rem;
    padding: 0.4rem 0.2rem;
  }
  .tabela td {
    border: 0;
    padding: 0.25rem 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
  }
  .tabela td::before {
    content: attr(data-rotulo);
    color: var(--cor-texto-suave);
    font-size: 0.8rem;
    text-align: left;
  }
  .tabela td:first-child { display: block; text-align: left; }
  .tabela td:first-child::before { content: none; }

  .dialogo > * { padding-left: 1rem; padding-right: 1rem; }
  .grade-2 { grid-template-columns: 1fr; }
  .form-comentario { flex-direction: column; align-items: stretch; }

  .indicadores, .indicadores-etapas, .indicadores.indicadores-6 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .acoes-linha { text-align: left; white-space: normal; display: flex !important; gap: 0.5rem; }
  .campo-largo { grid-column: auto; }
  .barra-lote { top: 60px; }
  .tabela td.col-marca { display: block; text-align: left; }
  .indicador:first-child { grid-column: 1 / -1; }

  .cabecalho-tela { flex-wrap: wrap; }
  .filtro-unico { flex-basis: 100%; }
  .dados-tarefa { grid-template-columns: 1fr 1fr; }
  .form-status { flex-direction: column; align-items: stretch; }
  .calculo-nf { grid-template-columns: 1fr 1fr; }
}
/* Account administration follows the same responsive content boundary as the original screens. */
.tabela-rolagem { overflow-x: auto; max-width: 100%; }
.pagina-topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.versao { font-size: .65em; opacity: .8; }


@media print { table.tabela tbody > tr[hidden] { display: table-row !important; } }
