* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; margin: 0; background: #f0f2f5; }
.pagina-login { display: flex; align-items: center; justify-content: center; height: 100vh; }
.caixa-login { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 320px; }
.caixa-login h1 { margin: 0; color: #003366; }
.caixa-login .subtitulo { color: #666; font-size: 0.85rem; margin-top: 0; }
.caixa-login input { width: 100%; padding: 10px; margin: 6px 0 12px; box-sizing: border-box; }
.caixa-login button { width: 100%; padding: 10px; background: #003366; color: white; border: none; border-radius: 4px; cursor: pointer; }
.erro { color: #c00; font-size: 0.85rem; }
.cabecalho { background: #003366; color: white; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.cabecalho h1 { margin: 0; font-size: 1.2rem; }
#menu-principal { display: flex; gap: 8px; flex: 1; }
#menu-principal button { background: none; border: none; color: white; padding: 8px 12px; cursor: pointer; border-radius: 4px; }
#menu-principal button.ativo { background: rgba(255,255,255,0.2); }
.usuario-logado { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
#conteudo-principal { padding: 20px; }
.cartoes-resumo { display: flex; flex-wrap: wrap; gap: 16px; }
.cartao { background: white; padding: 16px 24px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); min-width: 140px; }
.cartao strong { display: block; font-size: 1.6rem; color: #003366; }
.cartao.alerta strong { color: #c00; }
.sub-nivel { margin-left: 24px; margin-top: 8px; padding-left: 12px; border-left: 2px solid #ddd; }
.item-estrutura-nivel { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.item-estrutura-nivel span { flex: 1; }

/* Conteúdo geral das seções (fora do dashboard/login/drill-down, já estilizados acima) */
.secao h2 { color: #003366; margin: 0 0 16px; }
.secao h3 { color: #003366; margin: 24px 0 10px; font-size: 1rem; border-bottom: 1px solid #ddd; padding-bottom: 6px; }
.secao h3:first-of-type { margin-top: 0; }
.secao hr { border: none; border-top: 1px solid #ddd; margin: 24px 0; }

.secao form {
  background: white; padding: 16px; border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.secao form .form-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%;
}

.secao input[type="text"],
.secao input[type="number"],
.secao input[type="password"],
.secao input[type="datetime-local"],
.secao select {
  padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px;
  font-family: inherit; font-size: 0.9rem; flex: 1; min-width: 140px;
}

.secao button[type="submit"],
.secao button[type="button"] {
  padding: 8px 16px; background: #003366; color: white; border: none;
  border-radius: 4px; cursor: pointer; font-size: 0.9rem; white-space: nowrap;
}
.secao button[type="submit"]:hover,
.secao button[type="button"]:hover { background: #00509e; }
.secao ul button[type="button"],
.secao table button[type="button"] { padding: 4px 10px; font-size: 0.8rem; }
.secao button.btn-perigo { background: #c00; }
.secao button.btn-perigo:hover { background: #e00; }

.secao ul {
  list-style: none; padding: 0; margin: 0 0 16px;
  background: white; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden;
}
.secao ul li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid #eee;
}
.secao ul li:last-child { border-bottom: none; }
.secao ul li:empty { display: none; }

.secao table {
  width: 100%; border-collapse: collapse; background: white; border-radius: 8px;
  overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 16px;
}
.secao table th, .secao table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; }
.secao table th { background: #f0f2f5; color: #003366; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.secao table tr:last-child td { border-bottom: none; }

.aviso-vazio { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); color: #666; text-align: center; }
