:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #eaf1f8;
  --surface-tint: #f7fafc;
  --text: #10233f;
  --muted: #40516c;
  --line: #cad6e3;
  --teal: #145a67;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --amber: #7a5a16;
  --red: #b42318;
  --shadow: 0 8px 14px rgba(16, 35, 63, 0.08);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.22);
  --font-family-ui: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --text-xs: 0.78rem;
  --text-sm: 0.88rem;
  --text-body: 1rem;
  --text-lg: 1.12rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.62rem;
  --text-page: 1.95rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(135deg, #eef3f8 0%, #dbe6f0 100%);
  color: var(--text);
  font-family: var(--font-family-ui);
  font-size: var(--text-body);
  font-kerning: normal;
  font-optical-sizing: auto;
  line-height: 1.5;
  letter-spacing: 0;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(202, 214, 227, 0.9);
  box-shadow: 0 8px 14px rgba(16, 35, 63, 0.08);
}

.brand {
  grid-column: 2;
  text-align: center;
}

.eyebrow,
.subhead,
.label,
.metric-label,
small {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--text);
  font-size: var(--text-page);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}

.subhead {
  margin-top: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
}

.actions,
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.actions {
  grid-column: 3;
  justify-content: flex-end;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 240px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 800;
}

.user-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 35, 63, 0.08);
  transition: background-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.24);
}

.button.secondary:hover {
  background: var(--surface-soft);
  border-color: #8ea4bc;
  box-shadow: 0 6px 14px rgba(16, 35, 63, 0.1);
}

.button.primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  box-shadow: 0 8px 14px rgba(37, 99, 235, 0.22);
}

.button.secondary:hover,
.button.primary:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button:focus-visible,
.icon-button:focus-visible,
.mini-action:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--focus-ring);
}

.is-hidden {
  display: none !important;
}

.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.mini-action:hover {
  filter: brightness(0.95);
}

.layout {
  display: grid;
  gap: 18px;
  padding: 24px 32px 40px;
}

.status-strip,
.metrics,
.content-grid {
  display: grid;
  gap: 16px;
}

.status-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.status-strip div {
  display: grid;
  gap: 4px;
}

.label {
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  display: grid;
  gap: 12px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resource-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  line-height: 1.2;
}

.resource-head svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.resource-card strong {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.resource-lines {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.resource-lines b {
  color: var(--text);
  font-size: var(--text-body);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.resource-card small,
.metric small {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.35;
}

.resource-card.federal {
  border-color: #9fb4c9;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tint) 100%);
}

.resource-card.estadual {
  border-color: var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tint) 100%);
}

.resource-card.proprio {
  border-color: var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tint) 100%);
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-tint) 100%);
}

.metric strong {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.metric.accent {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 8px 14px rgba(37, 99, 235, 0.12);
}

.bank-panel {
  border-color: var(--line);
}

.bank-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bank-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.bank-card span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bank-card strong {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.bank-card.entry {
  border-color: rgba(20, 90, 103, 0.42);
}

.bank-card.exit {
  border-color: rgba(122, 90, 22, 0.34);
}

.bank-card.balance {
  border-color: rgba(20, 90, 103, 0.42);
}

.bank-card.pending {
  border-color: rgba(180, 35, 24, 0.28);
}

.content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel.wide {
  min-height: 360px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-note {
  margin-top: 4px;
  color: var(--muted);
  max-width: 68ch;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.45;
}

.overview-panel {
  border-color: var(--line);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.overview-grid div {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.overview-grid span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-grid strong {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.proposal-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.proposal-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
}

.proposal-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.proposal-summary strong {
  margin-right: 4px;
  color: var(--text);
}

.resource-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  border: 0;
  border-radius: 14px;
  padding: 18px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 35, 63, 0.22);
}

.resource-dialog::backdrop {
  background: rgba(10, 36, 85, 0.42);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.split-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.split-columns section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.split-columns h3 {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.25;
}

.split-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-total strong {
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}

.split-total span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.split-columns ul {
  display: grid;
  gap: 8px;
  max-height: 420px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.split-columns li {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--line);
}

.split-columns li strong {
  font-size: var(--text-sm);
  line-height: 1.25;
}

.split-columns li span {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.users-dialog {
  width: min(1120px, calc(100vw - 32px));
}

.municipios-dialog {
  width: min(1120px, calc(100vw - 32px));
}

.audit-dialog {
  width: min(1180px, calc(100vw - 32px));
}

.statements-dialog {
  width: min(1120px, calc(100vw - 32px));
}

.demo-requests-dialog {
  width: min(1180px, calc(100vw - 32px));
}

.reconciliation-dialog {
  width: min(1180px, calc(100vw - 32px));
}

.statement-detail-dialog {
  width: min(720px, calc(100vw - 32px));
}

.audit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 12px;
}

.audit-table {
  min-width: 860px;
}

.audit-table td:nth-child(3),
.audit-table td:nth-child(4),
.audit-table td:nth-child(5) {
  text-align: left;
}

.statements-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.statements-table {
  min-width: 860px;
}

.reconciliation-table {
  min-width: 960px;
}

.demo-requests-table {
  min-width: 1040px;
}

.demo-requests-table td:nth-child(2),
.demo-requests-table td:nth-child(3),
.demo-requests-table td:nth-child(4),
.demo-requests-table td:nth-child(5),
.demo-requests-table td:nth-child(6) {
  text-align: left;
}

.demo-request-summary {
  margin: 16px 0 12px;
}

.demo-request-filters {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px);
  margin-bottom: 12px;
}

.status-select {
  width: 100%;
  min-width: 150px;
}

.statements-table td:nth-child(3),
.statements-table td:nth-child(4),
.statements-table td:nth-child(5),
.statements-table td:nth-child(6) {
  text-align: left;
}

.reconciliation-table td:nth-child(2),
.reconciliation-table td:nth-child(3),
.reconciliation-table td:nth-child(5),
.reconciliation-table td:nth-child(6),
.reconciliation-table td:nth-child(7) {
  text-align: left;
}

.reconciliation-table td:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-action.muted {
  background: var(--amber);
}

.mini-action.outline {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
}

.statement-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.statement-summary div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.statement-summary span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statement-summary strong {
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}

.statement-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 150px) minmax(130px, 170px);
  gap: 10px;
}

.statement-filters input,
.statement-filters select {
  width: 100%;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 16px 0 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.user-form,
.users-list {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.user-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.user-form h3,
.users-list h3 {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.25;
}

.user-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
}

.user-form input,
.user-form select {
  width: 100%;
}

.form-message {
  min-height: 20px;
  color: var(--red);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
}

.users-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.users-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.users-table {
  min-width: 620px;
}

.users-table td:nth-child(3),
.users-table td:nth-child(4),
.users-table td:nth-child(5) {
  text-align: left;
}

.password-dialog {
  width: min(520px, calc(100vw - 32px));
}

.password-dialog::backdrop {
  background: rgba(26, 35, 33, 0.68);
}

.password-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.password-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
}

.password-form input {
  width: 100%;
}

.password-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

select,
input {
  min-height: 44px;
  border: 1.8px solid var(--line);
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

select:focus,
input:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: var(--focus-ring);
  outline: none;
}

.status-strip select {
  width: 100%;
  max-width: 180px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  color: var(--text);
  cursor: pointer;
}

.toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.toggle span {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c8d6e5;
  transition: background 0.18s ease;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
}

.toggle input:checked + span {
  background: var(--teal);
}

.toggle input:checked + span::after {
  transform: translateX(18px);
}

.toggle strong {
  font-size: var(--text-sm);
  line-height: 1.2;
}

.scope-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.2;
}

input {
  width: min(220px, 100%);
}

.chart-box {
  position: relative;
  height: 290px;
}

.chart-box.compact {
  height: 290px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(202, 214, 227, 0.75);
  text-align: left;
  line-height: 1.35;
}

th {
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  font-size: var(--text-sm);
}

tbody tr:hover {
  background: var(--surface-tint);
}

td:nth-child(3),
td:nth-child(4),
td:nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.badge {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--teal);
  text-align: center;
  font-weight: 800;
}

.warning-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.warnings ul,
.warnings li {
  margin: 0;
}

.warnings ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.warnings li {
  padding: 10px 12px;
  border: 1px solid rgba(122, 90, 22, 0.24);
  background: #fff8e7;
  border-radius: 8px;
  color: var(--text);
}

.warnings.collapsed ul {
  display: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--text);
  color: white;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eef3f8 0%, #dbe6f0 100%);
  color: var(--text);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  display: grid;
  gap: 0;
  width: min(440px, 100%);
  padding: 3.5rem 3rem;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(16, 35, 63, 0.14);
  transition: box-shadow 0.3s ease;
}

.login-card:hover,
.login-card:focus-within {
  box-shadow: 0 22px 34px rgba(16, 35, 63, 0.18);
}

.login-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  color: var(--teal);
}

.login-mark svg {
  width: 3.8rem;
  height: 3.8rem;
}

.login-brand .eyebrow {
  margin-top: 0.35rem;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.login-brand #loginTitle {
  margin: 0.5rem 0 0.3rem;
  color: var(--text);
  font-size: 2.4rem;
  font-weight: 900;
}

.login-brand .subhead {
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-form {
  display: grid;
  gap: 0;
}

.login-form label {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  margin-top: 0.45rem;
  padding: 1rem 1.3rem;
  border: 1.8px solid var(--line);
  border-radius: 10px;
  background: var(--surface-tint);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  outline-offset: 3px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}

.login-form input:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: var(--focus-ring);
}

.login-form .button {
  width: 100%;
  min-height: 60px;
  margin-top: 0.9rem;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(37, 99, 235, 0.22);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form .button:hover,
.login-form .button:focus {
  background: var(--blue-hover);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.24);
  outline: none;
}

.login-form .button svg {
  stroke-width: 3;
  transition: transform 0.35s ease;
}

.login-form .button:hover svg,
.login-form .button:focus svg {
  transform: rotate(20deg);
}

.login-form .button:disabled {
  opacity: 0.7;
}

.login-form .button:disabled svg {
  animation: spin 0.85s linear infinite;
}

.login-message {
  min-height: 1.6rem;
  margin-top: 1.3rem;
  color: #d32f2f;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.login-demo {
  display: grid;
  gap: 4px;
  margin-top: 3.2rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  box-shadow: none;
}

.login-demo span,
.login-demo small {
  color: var(--text);
}

.login-demo span {
  margin-bottom: 0.45rem;
  font-weight: 800;
}

.login-demo strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--blue);
  font-size: 1.15rem;
}

.login-demo small {
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.landing-page {
  min-height: 100vh;
  background: #f7f9fb;
  color: #172625;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 224, 220, 0.8);
  backdrop-filter: blur(14px);
}

.landing-logo,
.landing-nav nav,
.landing-nav nav a {
  display: inline-flex;
  align-items: center;
}

.landing-logo {
  gap: 10px;
  color: #172625;
  text-decoration: none;
}

.landing-logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0b7d71;
  color: white;
}

.landing-logo svg,
.landing-nav svg {
  width: 18px;
  height: 18px;
}

.landing-nav nav {
  gap: 8px;
}

.landing-nav nav a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #40514f;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav nav a:hover {
  background: #edf3ef;
}

.landing-nav .landing-login {
  background: #172625;
  color: white;
}

.landing-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 78vh;
  padding: 112px clamp(18px, 7vw, 88px) 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(247, 249, 251, 0.96) 0%, rgba(247, 249, 251, 0.86) 48%, rgba(247, 249, 251, 0.22) 100%),
    #edf3ef;
}

.landing-map-bg {
  position: absolute;
  inset: 62px clamp(10px, 5vw, 72px) auto auto;
  width: min(48vw, 430px);
  opacity: 0.72;
}

.landing-map-bg svg {
  width: 100%;
  filter: drop-shadow(0 28px 44px rgba(49, 95, 149, 0.18));
}

.landing-map-bg path {
  fill: #5865f2;
  opacity: 0.9;
}

.landing-map-bg circle:first-of-type {
  fill: #0b7d71;
}

.landing-map-bg circle:last-of-type {
  fill: none;
  stroke: #0b7d71;
  stroke-width: 4;
  opacity: 0.28;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.landing-kicker {
  margin: 0;
  color: #0b7d71;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
}

.landing-hero p:not(.landing-kicker) {
  max-width: 680px;
  color: #40514f;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 650;
  line-height: 1.6;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-outline {
  background: rgba(255, 255, 255, 0.72);
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 36px));
  margin: -38px auto 0;
  border: 1px solid #d9e0dc;
  border-radius: 8px;
  overflow: hidden;
  background: #d9e0dc;
  box-shadow: 0 18px 34px rgba(35, 47, 45, 0.1);
}

.landing-stats div {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 22px;
  background: white;
}

.landing-stats span,
.city-list small,
.contact-grid span,
.landing-footer {
  color: #65716f;
}

.landing-stats span,
.contact-grid span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-stats strong {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.landing-section {
  width: min(1120px, calc(100% - 36px));
  margin: 72px auto 0;
}

.landing-section-head {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 22px;
}

.landing-section h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.landing-section-head p:not(.landing-kicker) {
  color: #65716f;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.6;
}

.tocantins-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.tocantins-map,
.city-list,
.contact-grid a {
  border: 1px solid #d9e0dc;
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 28px rgba(35, 47, 45, 0.08);
}

.tocantins-map {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: clamp(18px, 4vw, 34px);
}

.tocantins-map svg {
  width: min(430px, 100%);
  height: auto;
}

.to-shape {
  fill: #5d5bf2;
  stroke: #dfe3ff;
  stroke-width: 4;
}

.to-river {
  fill: none;
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 4;
}

.city-marker circle:first-child {
  fill: rgba(11, 125, 113, 0.18);
  stroke: #0b7d71;
  stroke-width: 3;
}

.city-marker circle:nth-child(2) {
  fill: #0b7d71;
  stroke: white;
  stroke-width: 4;
}

.city-marker text {
  fill: #172625;
  font-size: 20px;
  font-weight: 900;
}

.to-label {
  fill: rgba(255, 255, 255, 0.75);
  font-size: 72px;
  font-weight: 900;
}

.city-list {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.city-list h3 {
  margin: 0;
  font-size: 1.25rem;
}

.city-list ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.city-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 8px;
  background: #edf3ef;
}

.city-list li div {
  display: grid;
  gap: 4px;
}

.status-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: #0b7d71;
  box-shadow: 0 0 0 6px rgba(11, 125, 113, 0.16);
}

.landing-contact {
  margin-bottom: 72px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-grid a {
  display: grid;
  gap: 10px;
  min-height: 158px;
  padding: 22px;
  color: #172625;
  text-decoration: none;
}

.contact-grid svg {
  width: 24px;
  height: 24px;
  color: #0b7d71;
}

.contact-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.12rem;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid #d9e0dc;
  background: white;
  font-size: 0.92rem;
}

.landing-footer a {
  color: #0b7d71;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .brand,
  .actions {
    grid-column: auto;
    justify-self: stretch;
  }

  .actions {
    justify-content: center;
  }

  .metrics,
  .resource-split,
  .bank-grid,
  .overview-grid,
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel.wide {
    grid-column: 1 / -1;
  }

  .landing-map-bg {
    width: min(62vw, 360px);
    opacity: 0.32;
  }

  .landing-stats,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tocantins-panel {
    grid-template-columns: 1fr;
  }

  .tocantins-map {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .topbar,
  .layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .status-strip,
  .metrics,
  .resource-split,
  .bank-grid,
  .overview-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .split-columns {
    grid-template-columns: 1fr;
  }

  .users-grid {
    grid-template-columns: 1fr;
  }

  .statements-grid {
    grid-template-columns: 1fr;
  }

  .statement-summary,
  .statement-filters,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .password-actions {
    grid-template-columns: 1fr;
  }

  .actions,
  .filters,
  .password-actions,
  .button,
  .mini-action,
  select,
  input {
    width: 100%;
  }

  .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .actions .user-pill {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(260px, 100%);
  }

  .mini-action {
    min-height: 44px;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .landing-nav nav {
    width: 100%;
    justify-content: space-between;
  }

  .landing-nav nav a {
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .landing-hero {
    min-height: 82vh;
    padding-top: 158px;
  }

  .landing-hero-actions,
  .landing-hero-actions .button {
    width: 100%;
  }

  .landing-stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tocantins-map {
    min-height: 360px;
  }

  .city-marker text {
    font-size: 18px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .login-shell {
    padding: 1rem;
  }

  .login-card {
    padding: 2.2rem 2rem 2rem;
  }

  .login-brand #loginTitle {
    font-size: 2rem;
  }

  .login-form .button {
    min-height: 52px;
    font-size: 1.15rem;
  }
}
