/* Resultados — estrutura de acesso (independente de Cenário / Dia da Eleição) */

.res-body .dash-title h1 i {
  margin-right: 0.35rem;
}

.res-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.res-tipos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.res-tipo {
  appearance: none;
  border: 1px solid rgba(15, 40, 80, 0.18);
  background: #fff;
  color: #0f284f;
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  text-align: left;
  cursor: pointer;
  min-width: 9.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.res-tipo:hover,
.res-tipo:focus-visible {
  border-color: #1a5fb4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.15);
}

.res-tipo.is-active {
  background: #eaf2ff;
  border-color: #1a5fb4;
}

.res-tipo-label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
}

.res-tipo-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #5b6b86;
}

.res-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 900px) {
  .res-grid {
    grid-template-columns: 1fr;
  }
}

.res-panel {
  background: #fff;
  border: 1px solid rgba(15, 40, 80, 0.1);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.res-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #0f284f;
}

.res-panel p {
  margin: 0.35rem 0;
  color: #243552;
  font-size: 0.92rem;
  line-height: 1.45;
}

.res-muted {
  color: #5b6b86 !important;
  font-size: 0.88rem !important;
}

.res-niveis {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #243552;
  font-size: 0.9rem;
}

.res-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.res-table-wrap {
  overflow: auto;
  border: 1px solid rgba(15, 40, 80, 0.1);
  border-radius: 10px;
}

.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 880px;
}

.res-table th,
.res-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(15, 40, 80, 0.08);
  text-align: left;
  white-space: nowrap;
}

.res-table th {
  background: #f4f7fb;
  color: #0f284f;
  font-weight: 650;
  position: sticky;
  top: 0;
}

.res-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.res-empty {
  margin: 0.85rem 0 0;
  color: #5b6b86;
  font-size: 0.9rem;
}

.res-authz {
  margin-top: 1rem;
}

.res-authz h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.res-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.res-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .res-form-grid,
  .res-form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.res-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #334155;
}

.res-form-grid input,
.res-form-grid select {
  border: 1px solid rgba(15, 40, 80, 0.18);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.res-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 0.35rem;
}

.res-checkboxes label {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.res-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.85rem;
}

.res-form-msg {
  font-size: 0.88rem;
  color: #1a5fb4;
}

.res-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eef3f9;
  color: #334155;
  font-size: 0.78rem;
}

.res-gate {
  margin-top: 1rem;
}

.res-gate.is-collapsed {
  display: none;
}

.res-opcoes {
  border: 0;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.res-opcao {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(15, 40, 80, 0.14);
  border-radius: 12px;
  background: #fbfcfe;
  cursor: pointer;
}

.res-opcao:has(input:checked) {
  border-color: #1a5fb4;
  background: #eaf2ff;
}

.res-opcao input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
}

.res-opcao-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  color: #0f284f;
  font-size: 0.95rem;
}

.res-opcao-desc {
  display: block;
  margin-top: 0.25rem;
  color: #5b6b86;
  font-size: 0.86rem;
  line-height: 1.4;
}

.res-opcao-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #dce9f8;
  color: #1a5fb4;
  font-size: 0.7rem;
  font-weight: 600;
}

.res-opcao-tag.is-wide {
  background: #e8eef5;
  color: #475569;
}

.res-autorizado-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: #e8f6ee;
  color: #14532d;
  font-size: 0.9rem;
  border: 1px solid rgba(20, 83, 45, 0.15);
}

.res-autorizado-banner i {
  color: #15803d;
}

.res-login-hint,
.res-pendente-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.res-login-hint {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid rgba(154, 52, 18, 0.2);
}

.res-login-hint[hidden],
.res-pendente-banner[hidden],
.res-admin[hidden] {
  display: none !important;
}

.res-pendente-banner {
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid rgba(30, 58, 138, 0.18);
}

.res-admin {
  margin-top: 1rem;
}

.res-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

#res-email[readonly] {
  background: #f1f5f9;
  color: #334155;
}

#res-uf-wrap[hidden],
#res-territorio[hidden] {
  display: none !important;
}

.res-territorio {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed rgba(15, 40, 80, 0.2);
  border-radius: 12px;
  background: #f8fafc;
}

.res-territorio h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  color: #0f284f;
}

