html {
  font-size: 14px;
}

:root {
  --engemap-blue: #005c97;
  --engemap-blue-dark: #003f6b;
  --engemap-blue-soft: #e6f3fb;
  --engemap-blue-border: #a9d6ef;
  --engemap-cyan: #0087c7;
  --surface: #fff;
  --surface-muted: #f8fbfd;
  --line: #d8e3ec;
  --text-muted: #64748b;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, .08);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  border-color: var(--engemap-cyan);
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(0, 92, 151, .28);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f4f7fb;
  color: #1f2933;
  overflow-x: hidden;
}

.navbar {
  border-bottom-color: var(--line) !important;
  box-shadow: var(--shadow-sm);
}

.navbar > .container-fluid {
  align-items: center;
  gap: .75rem;
}

.app-navbar-content {
  align-items: center;
  gap: .75rem;
}

.login-body {
  background:
    linear-gradient(135deg, rgba(0, 92, 151, .10) 0%, rgba(0, 135, 199, .05) 36%, rgba(246, 247, 249, 1) 36%),
    #f6f7f9;
}

.login-body .navbar {
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  margin-bottom: 0 !important;
}

.login-body .app-shell {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.footer-content {
  align-items: center;
  display: flex;
  font-size: .82rem;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: .65rem;
  padding-top: .65rem;
}

a {
  color: var(--engemap-blue);
}

a:hover {
  color: var(--engemap-blue-dark);
}

.btn-primary {
  background-color: var(--engemap-blue);
  border-color: var(--engemap-blue);
}

.btn {
  border-radius: 6px;
  font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--engemap-blue-dark);
  border-color: var(--engemap-blue-dark);
}

.btn-outline-primary {
  border-color: var(--engemap-blue);
  color: var(--engemap-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--engemap-blue);
  border-color: var(--engemap-blue);
  color: #fff;
}

.btn-outline-secondary {
  border-color: #cbd7e2;
  color: #425466;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: #eef5fa;
  border-color: #b8c9d7;
  color: #243447;
}

.app-shell {
  max-width: 1600px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-brand {
  letter-spacing: 0;
}

.brand-logo {
  align-items: center;
  display: inline-flex;
  min-height: 48px;
  padding-bottom: .15rem;
  padding-top: .15rem;
}

.brand-logo img {
  display: block;
  height: 44px;
  max-width: 228px;
  object-fit: contain;
  width: auto;
}

.app-nav {
  align-items: center;
  flex: 1 1 auto;
  gap: .18rem;
  min-width: 0;
  padding-left: .35rem;
  row-gap: .3rem;
  flex-wrap: wrap;
}

.app-nav .nav-item {
  display: flex;
}

.app-nav-link {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e4ee;
  border-radius: 6px;
  color: #334155 !important;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.1;
  min-height: 30px;
  padding: .34rem .46rem !important;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}

.app-nav-link:hover,
.app-nav-link:focus {
  background: var(--engemap-blue-soft);
  border-color: var(--engemap-blue-border);
  color: var(--engemap-blue-dark) !important;
  text-decoration: none;
}

.app-nav-link.active {
  background: var(--engemap-blue);
  border-color: var(--engemap-blue);
  box-shadow: 0 6px 16px rgba(0, 92, 151, .18);
  color: #fff !important;
}

.user-menu {
  align-items: center;
  display: flex;
  gap: .4rem;
  font-size: .86rem;
  justify-content: flex-end;
  margin-left: auto;
  white-space: nowrap;
}

.user-name {
  color: #223346;
  font-weight: 700;
}

.access-summary {
  align-items: flex-end;
  color: #475569;
  display: flex;
  flex-direction: column;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  margin-right: .35rem;
  text-align: right;
}

.access-summary span {
  white-space: nowrap;
}

.role-pill,
.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  padding: .2rem .55rem;
}

.role-pill {
  background: var(--engemap-blue-soft);
  color: var(--engemap-blue-dark);
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-inactive {
  background: #f1f5f9;
  color: #64748b;
}

.form-label {
  color: #334155;
  font-weight: 700;
}

.form-control,
.form-select {
  border-color: #cbd8e4;
  border-radius: 6px;
}

.form-control:hover,
.form-select:hover {
  border-color: #afc4d6;
}

.alert {
  border-radius: 6px;
}

.action-cell {
  white-space: nowrap;
}

.action-cell .btn + .btn {
  margin-left: .35rem;
}

.action-cell form + .btn,
.action-cell .btn + form,
.action-cell form + form {
  margin-left: .35rem;
}

.finance-table small {
  color: #64748b;
  display: block;
  font-size: .72rem;
}

.finance-table th,
.finance-table td {
  white-space: nowrap;
}

.finance-table tbody tr:nth-child(odd) td,
.products-table tbody tr:nth-child(odd) td,
.items-table tbody tr:nth-child(odd) td,
.dashboard-table tbody tr:nth-child(odd) td,
.audit-table tbody tr:nth-child(odd) td,
.analysis-table tbody tr:nth-child(odd) td,
.report-table tbody tr:nth-child(odd) td,
.users-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.finance-table tbody tr:nth-child(even) td,
.products-table tbody tr:nth-child(even) td,
.items-table tbody tr:nth-child(even) td,
.dashboard-table tbody tr:nth-child(even) td,
.audit-table tbody tr:nth-child(even) td,
.analysis-table tbody tr:nth-child(even) td,
.report-table tbody tr:nth-child(even) td,
.users-table tbody tr:nth-child(even) td {
  background: #f1f8fd;
}

.finance-table tbody tr:hover td,
.items-table tbody tr:hover td,
.products-table tbody tr:hover td,
.dashboard-table tbody tr:hover td,
.audit-table tbody tr:hover td,
.analysis-table tbody tr:hover td,
.report-table tbody tr:hover td,
.users-table tbody tr:hover td {
  background: #e6f3fb;
}

.audit-filter {
  align-items: end;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(260px, 420px) auto;
}

.audit-filter-actions {
  display: flex;
  gap: .5rem;
}

.audit-table th,
.audit-table td {
  white-space: nowrap;
}

.report-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  margin-bottom: 1rem;
}

.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--engemap-blue);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  color: #223346;
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-height: 116px;
  padding: 1rem;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.report-card:hover,
.report-card:focus {
  border-color: var(--engemap-blue-border);
  box-shadow: var(--shadow-md);
  color: #223346;
  transform: translateY(-1px);
}

.report-card-active {
  border-color: var(--engemap-blue-border);
  border-left-color: var(--engemap-blue);
  box-shadow: var(--shadow-md);
}

.report-card span {
  color: var(--engemap-blue);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.report-card strong {
  color: #172334;
  font-size: 1.2rem;
  line-height: 1.2;
}

.report-card small {
  color: var(--text-muted);
  font-weight: 700;
}

.report-card-muted {
  border-left-color: #94a3b8;
}

.report-filter-bar {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(260px, 420px) auto;
  margin-bottom: 1rem;
  padding: 1rem;
}

.report-catalog-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.report-filter-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.report-definition-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin: 0;
}

.report-definition-grid > div {
  border-bottom: 1px solid #e7eef5;
  border-right: 1px solid #e7eef5;
  min-height: 86px;
  padding: .9rem 1rem;
}

.report-definition-grid dt {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.report-definition-grid dd {
  color: #172334;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.report-definition-compact {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.report-subsection {
  border-top: 1px solid #e5eaf0;
  padding: .95rem 1rem 1rem;
}

.report-subsection h3 {
  color: #223346;
  font-size: .9rem;
  font-weight: 800;
  margin: 0 0 .75rem;
}

.report-subsection .table-responsive {
  margin-inline: -1rem;
}

.report-subsection .table {
  margin-bottom: -1rem;
}

.report-progress {
  background: #e7eef5;
  border-radius: 999px;
  display: inline-flex;
  height: .45rem;
  margin-right: .45rem;
  overflow: hidden;
  vertical-align: middle;
  width: 86px;
}

.report-progress span {
  background: var(--engemap-blue);
  display: block;
  height: 100%;
}

.report-table th,
.report-table td {
  white-space: nowrap;
}

.analysis-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.analysis-card-critical {
  border-left-color: #dc2626;
}

.analysis-card-warning {
  border-left-color: #f59e0b;
}

.analysis-metrics .metric {
  border-left: 4px solid var(--engemap-blue);
}

.analysis-metrics .metric-critical {
  border-left-color: #dc2626;
}

.analysis-metrics .metric-warning {
  border-left-color: #f59e0b;
}

.analysis-table th,
.analysis-table td {
  white-space: nowrap;
}

.analysis-table td:nth-child(5),
.analysis-table td:nth-child(6) {
  min-width: 280px;
  white-space: normal;
}

.severity-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: .74rem;
  font-weight: 800;
  justify-content: center;
  min-width: 84px;
  padding: .2rem .55rem;
}

.severity-critical {
  background: #fee2e2;
  color: #991b1b;
}

.severity-warning {
  background: #fef3c7;
  color: #92400e;
}

.severity-info {
  background: var(--engemap-blue-soft);
  color: var(--engemap-blue-dark);
}

.analysis-explain {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  padding: 1rem;
}

.analysis-explain div {
  background: #fff;
  border: 1px solid #e1ebf4;
  border-radius: 6px;
  padding: .85rem;
}

.analysis-explain strong,
.analysis-explain span {
  display: block;
}

.analysis-explain strong {
  color: #172334;
  margin-bottom: .25rem;
}

.analysis-explain span {
  color: #64748b;
  font-size: .86rem;
}

@media (max-width: 1200px) {
  .report-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .report-catalog-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .report-definition-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

.page-heading {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 1rem 0 1.25rem;
  padding-bottom: .9rem;
}

.page-heading h1 {
  color: #172334;
  font-size: 1.68rem;
  font-weight: 700;
  margin: 0;
}

.eyebrow {
  color: var(--engemap-blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 .25rem;
  text-transform: uppercase;
}

.heading-meta {
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
}

.access-meta {
  align-items: center;
  color: var(--engemap-blue-dark);
  font-size: .82rem;
  font-weight: 700;
  gap: .45rem;
  justify-content: flex-start;
  min-width: 360px;
}

.access-meta span {
  background: var(--engemap-blue-soft);
  border: 1px solid var(--engemap-blue-border);
  border-radius: 6px;
  padding: .34rem .55rem;
  white-space: nowrap;
}

.dashboard-heading {
  align-items: flex-start;
}

.dashboard-heading-actions {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-left: auto;
  text-align: right;
}

.dashboard-heading-actions .access-meta {
  justify-content: flex-end;
  min-width: 0;
}

.dashboard-heading-actions .export-actions {
  justify-content: flex-end;
}

.metric-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  margin-bottom: 1rem;
}

.metric,
.content-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.metric {
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.metric span {
  color: var(--text-muted);
  display: block;
  font-size: .82rem;
  margin-bottom: .35rem;
}

.metric strong {
  color: #172334;
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
}

.content-section {
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}

.section-title {
  background: var(--surface-muted);
  border-bottom: 1px solid #e5eaf0;
  padding: .9rem 1rem;
}

.section-title h2 {
  color: #223346;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: var(--engemap-blue-soft);
  border-bottom-color: var(--engemap-blue-border);
  color: var(--engemap-blue-dark);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.table tbody td {
  border-bottom-color: #e7eef5;
  font-size: .85rem;
  vertical-align: middle;
}

.table-link {
  color: var(--engemap-blue);
  font-weight: 800;
  text-decoration: none;
}

.table-link:hover,
.table-link:focus {
  color: var(--engemap-blue-dark);
  text-decoration: underline;
}

.schedule-grid {
  max-height: calc(100vh - 360px);
  min-height: 420px;
  overflow: auto;
}

.schedule-grid table {
  min-width: 1500px;
}

.schedule-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
}

.schedule-grid .sticky-col {
  background: #fff;
  position: sticky;
  z-index: 2;
}

.schedule-grid thead .sticky-col {
  background: var(--engemap-blue-soft);
  z-index: 4;
}

.code-col {
  left: 0;
  min-width: 86px;
}

.desc-col {
  left: 86px;
  min-width: 360px;
  max-width: 360px;
}

.month-col {
  min-width: 118px;
}

.total-col {
  min-width: 120px;
}

.month-col span,
.month-col small {
  display: block;
}

.item-number {
  color: #64748b;
  display: inline-block;
  font-weight: 700;
  margin-right: .35rem;
  min-width: 1.4rem;
}

.muted-value {
  color: #94a3b8 !important;
}

.value-link {
  border-radius: 4px;
  color: inherit;
  display: block;
  margin: -.15rem -.35rem;
  padding: .15rem .35rem;
  text-decoration: none;
}

.value-link:hover {
  background: var(--engemap-blue-soft);
  color: var(--engemap-blue-dark);
}

.filter-panel {
  border-color: #d6dee8;
}

.cronograma-filters {
  align-items: end;
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  padding: 1rem;
}

.filter-actions {
  display: flex;
  gap: .5rem;
}

.export-actions {
  align-items: center;
  display: inline-flex;
  gap: .4rem;
  white-space: nowrap;
}

.section-title-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.section-title-actions small {
  color: #64748b;
}

.lancamento-filters {
  align-items: end;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(220px, 320px) minmax(260px, 1fr) auto;
  padding: 1rem;
}

.schedule-metrics .metric {
  border-left: 4px solid #94a3b8;
}

.schedule-metrics .metric-pending {
  border-left-color: #f59e0b;
}

.schedule-metrics .metric-divergent {
  border-left-color: #dc2626;
}

.schedule-metrics .metric-zero {
  border-left-color: #64748b;
}

.schedule-metrics .metric-future {
  border-left-color: #0ea5e9;
}

.schedule-section {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.schedule-table {
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-table tbody tr {
  --row-accent: #d9e0e8;
  --row-bg: #fff;
}

.schedule-table tbody tr:nth-child(even) {
  --row-bg: #f8fafc;
}

.schedule-table tbody tr:hover {
  --row-bg: #eef6ff;
}

.schedule-table tbody tr.row-pending {
  --row-accent: #f59e0b;
}

.schedule-table tbody tr.row-divergent {
  --row-accent: #dc2626;
}

.schedule-table tbody td {
  background: var(--row-bg);
  border-bottom: 1px solid #e6edf5;
}

.schedule-table tbody td:first-child {
  box-shadow: inset 3px 0 0 var(--row-accent);
}

.schedule-table tbody .sticky-col {
  background: var(--row-bg);
}

.schedule-table thead th {
  background: var(--engemap-blue-soft);
  border-bottom: 1px solid var(--engemap-blue-border);
  box-shadow: inset 0 -1px 0 var(--engemap-blue-border);
}

.schedule-table thead .sticky-col {
  background: var(--engemap-blue-soft);
}

.schedule-table tfoot th {
  background: #111827;
  border-top: 2px solid #0f172a;
  bottom: 0;
  color: #fff;
  font-size: .82rem;
  position: sticky;
  white-space: nowrap;
  z-index: 5;
}

.schedule-table tfoot .sticky-col {
  background: #111827;
  z-index: 7;
}

.product-chip {
  background: var(--engemap-blue-soft);
  border: 1px solid var(--engemap-blue-border);
  border-radius: 999px;
  color: var(--engemap-blue-dark);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  justify-content: center;
  min-width: 2.6rem;
  padding: .18rem .55rem;
}

.schedule-status {
  font-weight: 800;
  min-width: 76px;
  text-align: center;
}

.row-ok .schedule-status {
  background: #dcfce7;
  color: #166534;
}

.row-pending .schedule-status {
  background: #fef3c7;
  color: #92400e;
}

.row-divergent .schedule-status {
  background: #fee2e2;
  color: #991b1b;
}

.row-zero .schedule-status {
  background: #f1f5f9;
  color: #64748b;
}

.row-future .schedule-status {
  background: #e0f2fe;
  color: #075985;
}

.diff-cell {
  font-weight: 800;
}

.row-pending .diff-cell {
  color: #b45309;
}

.row-divergent .diff-cell {
  color: #b91c1c;
}

.value-cell {
  font-variant-numeric: tabular-nums;
}

.value-zero {
  background: #f1f5f9 !important;
  color: #94a3b8;
}

.value-pending {
  background: #fff7ed !important;
  color: #b45309;
}

.value-filled {
  color: #1f2937;
}

.lancamentos-section {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.lancamentos-edit-grid {
  max-height: calc(100vh - 390px);
  min-height: 420px;
  overflow: auto;
}

.lancamentos-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1280px;
}

.lancamentos-table thead th {
  background: var(--engemap-blue-soft);
  position: sticky;
  top: 0;
  z-index: 3;
}

.lancamentos-table tbody tr {
  --row-accent: #d9e0e8;
  --row-bg: #fff;
}

.lancamentos-table tbody tr:nth-child(even) {
  --row-bg: #f8fafc;
}

.lancamentos-table tbody tr:hover {
  --row-bg: #eef6ff;
}

.lancamentos-table tbody tr.row-zero {
  --row-accent: #94a3b8;
}

.lancamentos-table tbody tr.row-pending {
  --row-accent: #f59e0b;
}

.lancamentos-table tbody tr.row-divergent {
  --row-accent: #dc2626;
}

.lancamentos-table tbody tr.row-future {
  --row-accent: #0ea5e9;
}

.lancamentos-table tbody td {
  background: var(--row-bg);
  border-bottom: 1px solid #e6edf5;
}

.lancamentos-table tbody td:first-child {
  box-shadow: inset 3px 0 0 var(--row-accent);
}

.lancamentos-table tfoot th {
  background: #111827;
  border-top: 2px solid #0f172a;
  bottom: 0;
  color: #fff;
  font-size: .82rem;
  position: sticky;
  white-space: nowrap;
  z-index: 4;
}

.lancamento-desc {
  min-width: 280px;
  max-width: 460px;
}

.money-edit-cell {
  min-width: 140px;
}

.money-input {
  font-variant-numeric: tabular-nums;
}

.blocos-edit-cell {
  min-width: 110px;
}

.obs-edit-cell {
  min-width: 260px;
}

.empty-grid-cell {
  background: #fff !important;
  color: #64748b;
  padding: 3rem !important;
  text-align: center;
}

.edit-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
}

.edit-form,
.context-panel {
  align-self: start;
}

.form-body {
  padding: 1rem;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.auth-card {
  max-width: 560px;
  width: 100%;
}

.auth-title {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
}

.login-shell {
  align-items: center;
  display: flex;
  min-height: calc(100vh - 166px);
  padding: 2.5rem 1.25rem;
}

.login-panel {
  background: #fff;
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .12);
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(360px, .72fr);
  margin: 0 auto;
  max-width: 1040px;
  min-height: 520px;
  overflow: hidden;
  width: 100%;
}

.login-brand {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(230, 243, 251, .92)),
    var(--engemap-blue-soft);
  border-right: 1px solid #d4e5f0;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  justify-content: center;
  padding: 2.6rem 3rem 3rem;
}

.login-logo {
  display: block;
  height: auto;
  max-width: 310px;
  width: 100%;
}

.login-wordmark {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #d4e5f0;
  border-left: 7px solid var(--engemap-blue);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  color: #142536;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  justify-content: center;
  max-width: 310px;
  min-height: 96px;
  padding: 1.2rem 1.35rem;
  text-align: left;
  width: 100%;
}

.login-brand-system {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(0, 63, 107, .98), rgba(0, 92, 151, .98) 54%, rgba(0, 135, 199, .94)),
    var(--engemap-blue);
  border-right-color: rgba(0, 63, 107, .45);
  gap: 0;
  padding: 2.2rem;
}

.login-brand-system .login-wordmark {
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #eef8fd 100%);
  border: 2px solid rgba(255, 255, 255, .82);
  border-left-width: 2px;
  border-top: 10px solid #66d9ff;
  box-shadow: 0 24px 52px rgba(0, 38, 74, .32);
  flex: 1 1 auto;
  max-width: none;
  min-height: 100%;
  padding: 2.4rem;
  text-align: center;
}

.login-wordmark span,
.login-wordmark strong {
  display: block;
  line-height: 1.06;
}

.login-wordmark span {
  color: #475569;
  font-size: 1.15rem;
  font-weight: 700;
}

.login-wordmark strong {
  color: var(--engemap-blue);
  font-size: 2.05rem;
  font-weight: 800;
}

.login-brand-system .login-wordmark span {
  color: #0f2742;
  font-size: 2.35rem;
}

.login-brand-system .login-wordmark strong {
  color: var(--engemap-blue-dark);
  font-size: 4.35rem;
}

.login-brand h1 {
  color: #142536;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 1rem;
  max-width: 420px;
}

.login-brand p {
  color: #475569;
  font-size: 1.18rem;
  line-height: 1.28;
  margin: 0;
}

.login-brand-copy {
  max-width: 420px;
  text-align: center;
}

.login-subtitle {
  color: var(--engemap-blue);
  font-weight: 700;
}

.login-card {
  align-self: center;
  padding: 3rem;
}

.login-card-header {
  margin-bottom: 1.6rem;
}

.login-card-header h2 {
  color: #172334;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin: .35rem 0 0;
}

.login-form-body .form-label {
  color: #334155;
  font-weight: 700;
}

.login-form-body .form-control {
  border-color: #c8d6e2;
  border-radius: 6px;
  color: #172334;
  font-size: 1rem;
  min-height: 48px;
}

.login-form-body .form-check-label {
  color: #475569;
}

.login-form-body .btn-primary {
  border-radius: 6px;
  font-weight: 800;
  min-height: 48px;
}

.login-secondary-link {
  color: var(--engemap-blue);
  font-weight: 700;
  text-decoration: none;
}

.login-secondary-link:hover,
.login-secondary-link:focus {
  color: #0f5f93;
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: .75rem;
}

.support-form {
  min-height: calc(100vh - 235px);
  overflow: visible;
  width: 100%;
}

.support-form .form-body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 305px);
}

.support-fields-row {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.support-requester {
  background: var(--surface-muted);
  border: 1px solid #e1ebf4;
  border-radius: 6px;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  margin-bottom: 1rem;
  padding: .85rem 1rem;
}

.support-requester span,
.support-requester strong {
  display: block;
}

.support-requester span {
  color: #223346;
  font-weight: 700;
}

.support-requester strong {
  color: var(--text-muted);
  font-size: .75rem;
  margin-bottom: .15rem;
  text-transform: uppercase;
}

.support-textarea {
  flex: 1 1 auto;
  min-height: 330px;
  resize: vertical;
}

.support-form .mb-3:has(.support-textarea) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}


.context-list {
  margin: 0;
  padding: 1rem;
}

.context-list dt {
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  margin-top: .75rem;
  text-transform: uppercase;
}

.context-list dt:first-child {
  margin-top: 0;
}

.context-list dd {
  margin: .2rem 0 0;
}

@media (max-width: 1360px) {
  .brand-logo img {
    height: 38px;
    max-width: 196px;
  }

  .app-nav-link {
    font-size: .76rem;
    min-height: 28px;
    padding: .32rem .43rem !important;
  }

  .user-menu {
    gap: .32rem;
    font-size: .8rem;
  }

  .access-summary {
    font-size: .68rem;
    margin-right: .15rem;
  }

  .user-menu .btn {
    font-size: .78rem;
    padding-left: .42rem;
    padding-right: .42rem;
  }
}

@media (max-width: 1000px) {
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .report-grid {
    grid-template-columns: 1fr;
  }

  .report-filter-bar,
  .report-definition-grid,
  .report-definition-compact {
    grid-template-columns: 1fr;
  }

  .analysis-explain {
    grid-template-columns: 1fr;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-menu {
    align-items: flex-start;
    flex-direction: column;
    margin-top: .75rem;
  }

  .access-summary {
    align-items: flex-start;
    margin-right: 0;
    text-align: left;
  }

  .app-nav {
    align-items: stretch;
    gap: .45rem;
    padding-left: 0;
    padding-top: .75rem;
  }

  .app-nav .nav-item,
  .app-nav-link {
    width: 100%;
  }

  .brand-logo img {
    height: 42px;
    max-width: 220px;
  }

  .auth-title {
    font-size: 1.35rem;
  }

  .login-shell {
    min-height: auto;
    padding: 1rem;
  }

  .login-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-brand {
    border-bottom: 1px solid #d4e5f0;
    border-right: 0;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .login-brand-system {
    gap: 0;
    padding: 1.5rem;
  }

  .login-brand-system .login-wordmark {
    min-height: 280px;
    padding: 2rem;
  }

  .login-logo {
    max-width: 240px;
  }

  .login-brand h1 {
    font-size: 2.05rem;
  }

  .login-brand p {
    font-size: 1.02rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .login-card-header h2 {
    font-size: 1.5rem;
  }

  .login-brand-system .login-wordmark span {
    font-size: 2rem;
  }

  .login-brand-system .login-wordmark strong {
    font-size: 3.55rem;
  }

  .edit-layout {
    grid-template-columns: 1fr;
  }

  .support-fields-row {
    grid-template-columns: 1fr;
  }

  .support-requester {
    grid-template-columns: 1fr;
  }

  .audit-filter {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .cronograma-filters {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .lancamento-filters {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-wrap: wrap;
  }

  .schedule-grid {
    max-height: calc(100vh - 430px);
  }

  .lancamentos-edit-grid {
    max-height: calc(100vh - 460px);
  }
}

@media (max-width: 520px) {
  .login-brand-system {
    padding: 1rem;
  }

  .login-brand-system .login-wordmark {
    min-height: 230px;
    padding: 1.35rem;
  }

  .login-brand-system .login-wordmark span {
    font-size: 1.45rem;
  }

  .login-brand-system .login-wordmark strong {
    font-size: 2.55rem;
  }
}

/* Corporate visual alignment with the GEO application */
:root {
  --corp-bg: #f4f6f8;
  --corp-panel: #ffffff;
  --corp-ink: #182230;
  --corp-muted: #667085;
  --corp-line: #d9e0e8;
  --corp-brand: #126c74;
  --corp-brand-dark: #0f4f58;
  --corp-brand-soft: #e9fbf9;
  --corp-brand-border: #a7ddd8;
  --corp-accent: #166534;
  --engemap-blue: var(--corp-brand);
  --engemap-blue-dark: var(--corp-brand-dark);
  --engemap-blue-soft: var(--corp-brand-soft);
  --engemap-blue-border: var(--corp-brand-border);
  --engemap-cyan: #0bb4aa;
}

body {
  background: var(--corp-bg);
  color: var(--corp-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

.app-header {
  background: var(--corp-brand-dark);
  box-shadow: 0 2px 12px rgba(16, 24, 40, .16);
}

.app-header .navbar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  margin-bottom: 0 !important;
  padding-bottom: .7rem;
  padding-top: .7rem;
}

.app-header .brand-logo {
  color: #fff;
  gap: .75rem;
  font-weight: 800;
  min-height: 48px;
}

.app-header .brand-logo:hover,
.app-header .brand-logo:focus {
  color: #fff;
}

.app-header .brand-logo img {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .18);
  height: 42px;
  max-width: 154px;
  padding: 4px 8px;
}

.app-header .brand-logo span {
  color: #fff;
  font-size: .95rem;
  letter-spacing: 0;
  line-height: 1.15;
  max-width: 210px;
  white-space: normal;
}

.app-header .app-nav-link {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .86) !important;
  min-height: 32px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.app-header .app-nav-link:hover,
.app-header .app-nav-link:focus {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .34);
  color: #fff !important;
  text-decoration: none;
}

.app-header .app-nav-link.active {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(16, 24, 40, .16);
  color: var(--corp-brand-dark) !important;
}

.app-header .user-menu,
.app-header .user-name,
.app-header .access-summary {
  color: #fff;
}

.app-header .access-summary {
  color: rgba(255, 255, 255, .78);
}

.app-header .btn-outline-primary,
.app-header .btn-outline-secondary {
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}

.app-header .btn-outline-primary:hover,
.app-header .btn-outline-primary:focus,
.app-header .btn-outline-secondary:hover,
.app-header .btn-outline-secondary:focus {
  background: #fff;
  border-color: #fff;
  color: var(--corp-brand-dark);
}

.app-header .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--corp-brand-dark);
  box-shadow: none;
}

.app-header .btn-primary:hover,
.app-header .btn-primary:focus {
  background: var(--corp-brand-soft);
  border-color: var(--corp-brand-soft);
  color: var(--corp-brand-dark);
}

.app-header .btn-logout {
  background: var(--corp-brand-dark);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
  box-shadow: none;
}

.app-header .btn-logout:hover,
.app-header .btn-logout:focus {
  background: var(--corp-brand);
  border-color: var(--corp-brand);
  color: #fff;
}

.app-shell {
  padding-top: 1rem;
}

.btn {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn:disabled,
.btn.disabled {
  transform: none;
}

.btn-primary {
  box-shadow: 0 8px 18px rgba(18, 108, 116, .18);
}

.btn-outline-primary {
  border-color: var(--corp-brand);
  color: var(--corp-brand-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--corp-brand);
  border-color: var(--corp-brand);
  color: #fff;
}

.btn-outline-secondary {
  background: #fff;
  border-color: #cbd5e1;
  color: #344054;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #182230;
}

.content-section,
.metric,
.report-card,
.analysis-explain div {
  border-color: var(--corp-line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.section-title {
  background: #f8fafc;
}

.page-heading h1,
.section-title h2,
.metric strong {
  color: var(--corp-ink);
}

.table thead th,
.schedule-table thead th,
.lancamentos-table thead th {
  background: var(--corp-brand-soft);
  border-bottom-color: var(--corp-brand-border);
  color: var(--corp-brand-dark);
}

.table tbody tr:hover td,
.finance-table tbody tr:hover td,
.items-table tbody tr:hover td,
.products-table tbody tr:hover td,
.dashboard-table tbody tr:hover td,
.audit-table tbody tr:hover td,
.analysis-table tbody tr:hover td,
.report-table tbody tr:hover td,
.users-table tbody tr:hover td {
  background: var(--corp-brand-soft);
}

.login-body {
  background:
    linear-gradient(135deg, rgba(11, 180, 170, .12) 0%, rgba(148, 209, 31, .10) 37%, rgba(247, 248, 250, 1) 37%),
    #f7f8fa;
  margin-bottom: 0;
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.login-panel {
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .12);
  grid-template-columns: minmax(430px, .95fr) minmax(360px, .78fr);
  max-width: 1080px;
  min-height: 560px;
}

.login-brand-system {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(233, 251, 249, .94));
  border-right: 1px solid #d4e5f0;
  padding: 3rem;
}

.login-brand-system .login-wordmark {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  justify-content: center;
  max-width: 520px;
  min-height: 100%;
  padding: 0;
}

.login-brand-system .login-wordmark span,
.login-brand-system .login-wordmark strong {
  color: var(--corp-ink);
  display: block;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.login-brand-system .login-wordmark span {
  font-size: 2.45rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.login-brand-system .login-wordmark strong {
  color: var(--corp-brand);
  font-size: 3.65rem;
  font-weight: 800;
}

.login-card {
  background: #fff;
  padding: 3.1rem;
}

.login-card-header {
  margin-bottom: 1.5rem;
}

.login-card-header h2 {
  color: var(--corp-ink);
  font-size: 1.75rem;
  font-weight: 800;
}

.login-form-body .form-control {
  border-color: #cbd5e1;
  min-height: 48px;
}

.login-form-body .btn-primary {
  border-radius: 8px;
  min-height: 48px;
}

@media (max-width: 1000px) {
  .app-header .navbar-collapse {
    padding-top: .75rem;
  }

  .app-header .app-nav {
    align-items: stretch;
    padding-left: 0;
  }

  .app-header .app-nav-link {
    width: 100%;
  }

  .app-header .user-menu {
    align-items: flex-start;
    flex-direction: column;
    margin-top: .75rem;
  }

  .app-header .access-summary {
    align-items: flex-start;
    text-align: left;
  }

  .app-header .brand-logo span {
    max-width: none;
  }

  .login-shell {
    padding: 1rem;
  }

  .login-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-brand-system {
    border-bottom: 1px solid #d4e5f0;
    border-right: 0;
    padding: 2rem;
  }

  .login-brand-system .login-wordmark {
    min-height: 220px;
  }

  .login-brand-system .login-wordmark span {
    font-size: 2rem;
  }

  .login-brand-system .login-wordmark strong {
    font-size: 3rem;
  }

  .login-card {
    padding: 1.5rem;
  }
}

@media (max-width: 520px) {
  .login-brand-system {
    padding: 1.25rem;
  }

  .login-brand-system .login-wordmark {
    min-height: 180px;
  }

  .login-brand-system .login-wordmark span {
    font-size: 1.55rem;
  }

  .login-brand-system .login-wordmark strong {
    font-size: 2.25rem;
  }
}

/* Corporate refresh for Cronograma */
:root {
  --corp-header: #0f4f58;
  --corp-header-2: #126c74;
  --corp-header-line: rgba(255, 255, 255, .18);
  --corp-action: #126c74;
  --corp-action-dark: #0f4f58;
  --corp-action-soft: #e9fbf9;
  --corp-action-border: #a7ddd8;
  --corp-page: #f3f6f8;
  --corp-table-head: #ecf8f7;
}

body {
  background:
    linear-gradient(180deg, rgba(18, 108, 116, .07), rgba(18, 108, 116, 0) 260px),
    var(--corp-page);
}

.app-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--corp-header), var(--corp-header-2));
  border-bottom: 1px solid rgba(15, 79, 88, .32);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
}

.app-navbar {
  padding: 0;
}

.app-header .container-fluid {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: none;
  padding: .85rem 1.25rem .78rem;
  width: 100%;
}

.app-header-main {
  align-items: center;
  display: grid;
  gap: .8rem;
  grid-template-columns: minmax(225px, max-content) minmax(0, 1fr) auto;
  width: 100%;
}

.app-header .brand-logo {
  gap: .75rem;
  margin: 0;
  min-height: 48px;
  padding: 0;
}

.brand-mark {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 8px;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  padding: 5px 7px;
}

.app-header .brand-logo img {
  background: transparent;
  border: 0;
  box-shadow: none;
  height: 36px;
  max-width: 118px;
  padding: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  line-height: 1.08;
  min-width: 0;
}

.brand-text strong {
  color: #fff;
  font-size: .96rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-text small {
  color: rgba(255, 255, 255, .75);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-header .navbar-toggler {
  border-color: rgba(255, 255, 255, .38);
  border-radius: 8px;
  grid-column: 3;
  justify-self: end;
  padding: .45rem .65rem;
}

.app-header .navbar-toggler:focus {
  box-shadow: 0 0 0 .18rem rgba(255, 255, 255, .22);
}

.app-header .user-menu {
  align-items: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid var(--corp-header-line);
  border-radius: 8px;
  display: flex;
  flex: 0 1 auto;
  gap: .55rem;
  grid-column: 3;
  justify-content: flex-end;
  justify-self: end;
  margin: 0;
  max-width: 100%;
  min-width: 0;
  padding: .5rem .6rem;
  width: auto;
}

.app-header .access-summary {
  color: rgba(255, 255, 255, .73);
  column-gap: .35rem;
  display: grid;
  flex: 0 0 auto;
  font-size: .7rem;
  grid-template-columns: max-content max-content;
  line-height: 1.22;
  margin: 0;
  min-width: 230px;
  row-gap: .08rem;
}

.app-header .access-summary span {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.app-header .access-label {
  color: rgba(255, 255, 255, .73);
  font-weight: 800;
  text-align: right;
}

.app-header .access-value {
  color: #fff;
  font-weight: 800;
  text-align: left;
}

.app-header .user-name {
  color: #fff;
  flex: 0 1 auto;
  font-size: .86rem;
  font-weight: 800;
  max-width: 260px;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: .4rem;
}

.user-actions form {
  margin: 0;
}

.app-header .user-actions .btn {
  min-height: 31px;
}

.app-navbar-content {
  border-top: 1px solid var(--corp-header-line);
  margin-top: .72rem;
  padding-top: .68rem;
  width: 100%;
}

.app-header .app-nav {
  align-items: center;
  gap: .28rem;
  padding: 0;
}

.app-header .app-nav-link {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, .78) !important;
  font-size: .82rem;
  min-height: 34px;
  padding: .46rem .68rem !important;
}

.app-header .app-nav-link:hover,
.app-header .app-nav-link:focus {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff !important;
}

.app-header .app-nav-link.active {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .18);
  color: var(--corp-header) !important;
}

.app-shell {
  max-width: 1600px;
  padding-top: 1.2rem;
}

.page-heading {
  align-items: center;
  background: #fff;
  border: 1px solid var(--corp-line);
  border-left: 4px solid var(--corp-action);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
}

.page-heading h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--corp-action-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.heading-meta,
.dashboard-heading-actions,
.export-actions,
.filter-actions,
.form-actions,
.audit-filter-actions {
  gap: .5rem;
}

.heading-meta {
  align-items: center;
}

.heading-meta > span:not(.export-actions) {
  background: #f8fafc;
  border: 1px solid #dbe5ed;
  border-radius: 8px;
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
  padding: .34rem .58rem;
}

.btn {
  border-radius: 8px;
  min-height: 36px;
  padding-left: .78rem;
  padding-right: .78rem;
}

.btn-sm {
  min-height: 32px;
  padding-left: .62rem;
  padding-right: .62rem;
}

.btn-primary {
  background: var(--corp-action);
  border-color: var(--corp-action);
  box-shadow: 0 8px 16px rgba(18, 108, 116, .16);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--corp-action-dark);
  border-color: var(--corp-action-dark);
}

.btn-outline-primary {
  background: #fff;
  border-color: var(--corp-action-border);
  color: var(--corp-action-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--corp-action);
  border-color: var(--corp-action);
  color: #fff;
}

.btn-outline-secondary {
  background: #fff;
  border-color: #d1dbe5;
  color: #344054;
}

.btn-logout {
  border: 1px solid rgba(255, 255, 255, .34);
}

.metric-grid {
  gap: .8rem;
}

.metric {
  border-radius: 8px;
  padding: .95rem 1rem;
}

.metric span {
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.metric strong {
  color: #182230;
  font-size: 1.18rem;
  font-weight: 800;
}

.content-section {
  border-radius: 8px;
}

.section-title {
  background: #f8fafc;
  padding: .82rem 1rem;
}

.section-title h2 {
  color: #182230;
  font-size: .96rem;
}

.form-control,
.form-select {
  border-color: #ccd7e2;
  border-radius: 8px;
  min-height: 40px;
}

.form-label {
  color: #344054;
  font-size: .82rem;
}

.table {
  color: #243447;
}

.table thead th,
.schedule-table thead th,
.lancamentos-table thead th {
  background: var(--corp-table-head);
  border-bottom: 1px solid var(--corp-action-border);
  color: var(--corp-action-dark);
  font-size: .76rem;
  letter-spacing: .01em;
  padding-bottom: .62rem;
  padding-top: .62rem;
  text-transform: uppercase;
}

.table tbody td {
  border-bottom-color: #e7eef5;
  padding-bottom: .58rem;
  padding-top: .58rem;
}

.finance-table tbody tr:nth-child(even) td,
.products-table tbody tr:nth-child(even) td,
.items-table tbody tr:nth-child(even) td,
.dashboard-table tbody tr:nth-child(even) td,
.audit-table tbody tr:nth-child(even) td,
.analysis-table tbody tr:nth-child(even) td,
.report-table tbody tr:nth-child(even) td,
.users-table tbody tr:nth-child(even) td {
  background: #f8fbfd;
}

.finance-table tbody tr:hover td,
.items-table tbody tr:hover td,
.products-table tbody tr:hover td,
.dashboard-table tbody tr:hover td,
.audit-table tbody tr:hover td,
.analysis-table tbody tr:hover td,
.report-table tbody tr:hover td,
.users-table tbody tr:hover td,
.schedule-table tbody tr:hover td,
.lancamentos-table tbody tr:hover td {
  background: #edf8f7;
}

.table-link {
  color: var(--corp-action-dark);
}

.product-chip,
.role-pill,
.severity-info {
  background: var(--corp-action-soft);
  border-color: var(--corp-action-border);
  color: var(--corp-action-dark);
}

.schedule-section,
.lancamentos-section {
  border-color: #cdd7e2;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.schedule-table tfoot th,
.lancamentos-table tfoot th {
  background: #182230;
  border-top-color: #111827;
}

.footer {
  background: #fff;
}

.footer-content {
  color: #667085;
  max-width: 1600px;
}

@media (max-width: 1199px) {
  .app-header-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .app-header .user-menu {
    align-items: flex-start;
    flex-direction: column;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .app-header .access-summary {
    align-items: flex-start;
    text-align: left;
  }

  .user-actions {
    flex-wrap: wrap;
  }

  .app-navbar-content {
    margin-top: .75rem;
  }

  .app-header .app-nav {
    align-items: stretch;
  }

  .app-header .app-nav .nav-item,
  .app-header .app-nav-link {
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .page-heading {
    align-items: stretch;
  }

  .heading-meta,
  .dashboard-heading-actions,
  .export-actions {
    justify-content: flex-start;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .app-header .container-fluid {
    padding-left: .85rem;
    padding-right: .85rem;
  }

  .brand-mark {
    height: 42px;
  }

  .app-header .brand-logo img {
    height: 30px;
    max-width: 126px;
  }

  .brand-text strong {
    font-size: .9rem;
  }

  .brand-text small {
    font-size: .68rem;
  }

  .app-header .access-summary {
    max-width: 100%;
    min-width: 0;
  }

  .app-header .access-summary span {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .page-heading {
    padding: .85rem;
  }

  .page-heading h1 {
    font-size: 1.32rem;
  }
}
