.app-footer {
  width: 100%;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 24px calc(12px + var(--safe-right, env(safe-area-inset-right, 0px))) calc(16px + var(--safe-bottom, env(safe-area-inset-bottom, 0px))) calc(12px + var(--safe-left, env(safe-area-inset-left, 0px)));
  background: var(--primary-blue, #243881);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.app-footer p {
  margin: 0;
  color: #fff;
  font-size: 15px;
}

.app-footer small {
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
}

.app-footer span {
  color: inherit;
}

html,
body.rt-page--footer-bottom {
  min-height: 100%;
}

.rt-page--footer-bottom {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.rt-page--footer-bottom .page-relatorio {
  width: 100%;
  flex: 1 0 auto;
}

.rt-page--footer-bottom .app-footer {
  margin-top: auto;
}

/* Mobile visual refresh */
.app-footer {
  margin-top: 18px;
  padding-top: 18px;
  padding-bottom: calc(14px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
  gap: 6px;
  background: linear-gradient(135deg, #172b67, #243881);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-footer p {
  font-size: 13px;
  font-weight: 600;
}

.app-footer small {
  font-size: 11px;
  opacity: 0.72;
}

@media (max-width: 600px) {
  .app-footer {
    margin-top: 16px;
    padding-top: 16px;
  }
}
