:root {
  --rj-ink: #0b1c2c;
  --rj-navy: #14324d;
  --rj-steel: #1f4b6e;
  --rj-mist: #e8eef4;
  --rj-cloud: #f3f6f9;
  --rj-amber: #e8a317;
  --rj-amber-deep: #c4840c;
  --rj-teal: #1aa6a0;
  --rj-text: #152433;
  --rj-muted: #5c6f82;
  --rj-border: rgba(20, 50, 77, 0.12);
  --rj-shadow: 0 10px 30px rgba(11, 28, 44, 0.12);
  --rj-shadow-lg: 0 18px 50px rgba(11, 28, 44, 0.18);
  --rj-radius: 1rem;
  --rj-font-display: "Sora", sans-serif;
  --rj-font-body: "Figtree", sans-serif;
}

html {
  font-size: 15px;
  height: 100%;
}

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

body {
  min-height: 100%;
  margin: 0;
  font-family: var(--rj-font-body);
  color: var(--rj-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(26, 166, 160, 0.12), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(232, 163, 23, 0.14), transparent 50%),
    linear-gradient(165deg, #f7fafc 0%, #eef3f8 45%, #e7eef5 100%);
  background-attachment: fixed;
}

body.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.app-shell > .container {
  flex: 1 0 auto;
  width: 100%;
}

h1, h2, h3, h4, h5, .navbar-brand, .brand-mark, .stat-value, .auth-brand-title {
  font-family: var(--rj-font-display);
  letter-spacing: -0.02em;
}

a { color: var(--rj-steel); }
a:hover { color: var(--rj-ink); }

/* ——— App chrome ——— */
.app-topbar {
  background: linear-gradient(120deg, var(--rj-ink) 0%, var(--rj-navy) 55%, var(--rj-steel) 100%);
  box-shadow: 0 8px 28px rgba(11, 28, 44, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.75rem;
}

.app-topbar .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  background: linear-gradient(135deg, var(--rj-amber), #ffd56a);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.25);
}

.app-topbar .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
  border-radius: 0.55rem;
  padding: 0.45rem 0.75rem !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-topbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.app-sticky-top {
  position: sticky;
  top: 0;
  z-index: 1050;
}

.alert-baloes {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  max-width: min(320px, calc(100vw - 2rem));
  pointer-events: none;
}

.alert-balao {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(11, 28, 44, 0.28);
  font-size: 0.9rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.alert-balao:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11, 28, 44, 0.34);
}

.alert-balao-solicitacao {
  background: linear-gradient(135deg, #b42318 0%, #e11d48 100%);
  animation: pulse-balao 2s ease-in-out infinite;
}

.alert-balao-ipva {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
}

.alert-balao-icone {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.alert-balao-texto {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.alert-balao-texto strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.alert-balao-texto span:last-child {
  font-size: 0.78rem;
  opacity: 0.92;
}

.alert-balao-num {
  min-width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

@keyframes pulse-balao {
  0%, 100% { box-shadow: 0 10px 28px rgba(180, 35, 24, 0.35); }
  50% { box-shadow: 0 10px 28px rgba(180, 35, 24, 0.35), 0 0 0 8px rgba(180, 35, 24, 0.15); }
}

@media (max-width: 575.98px) {
  .alert-baloes {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .alert-balao-texto span:last-child {
    display: none;
  }
}

.alert-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.25rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
}
.alert-bar:hover { color: #fff; filter: brightness(1.06); }
.alert-bar-solicitacao {
  background: linear-gradient(90deg, #b42318 0%, #e11d48 100%);
}
.alert-bar-ipva {
  background: linear-gradient(90deg, #b45309 0%, #d97706 100%);
}
.alert-bar-count {
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
}
.alert-bar-cta {
  margin-left: auto;
  background: #fff;
  color: #111;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  white-space: nowrap;
}

.app-topbar .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.15em;
}

.app-dropdown {
  --bs-dropdown-bg: #12283c;
  --bs-dropdown-border-color: rgba(255, 255, 255, 0.08);
  --bs-dropdown-link-color: rgba(255, 255, 255, 0.88);
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-active-bg: rgba(26, 166, 160, 0.25);
  --bs-dropdown-divider-bg: rgba(255, 255, 255, 0.12);
  margin-top: 0.35rem !important;
  border-radius: 0.65rem;
  padding: 0.4rem;
  box-shadow: var(--rj-shadow-lg);
  min-width: 12.5rem;
}

.app-dropdown .dropdown-item {
  border-radius: 0.45rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-topbar .navbar-text {
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.9rem;
}

.btn-logout {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.55rem;
  padding: 0.35rem 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--rj-amber);
  border-color: var(--rj-amber);
  color: var(--rj-ink);
}

.app-main {
  animation: riseIn 0.45s ease both;
}

@keyframes riseIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.app-footer {
  position: relative;
  margin-top: auto;
  width: 100%;
  padding: 1.25rem 0;
  color: var(--rj-muted);
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--rj-border);
  font-size: 0.9rem;
  z-index: 1;
}

/* ——— Surfaces ——— */
.surface-card,
.card.border-0.shadow-sm,
.card.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: var(--rj-radius) !important;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: var(--rj-shadow) !important;
  overflow: hidden;
}

.card.stat-card {
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rj-amber), var(--rj-teal));
}

.card.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rj-shadow-lg) !important;
}

.stat-card .stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--rj-ink);
  line-height: 1.1;
}

.stat-card .text-muted {
  color: var(--rj-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-hero h1 {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--rj-ink);
}

.page-hero p {
  margin: 0.35rem 0 0;
  color: var(--rj-muted);
}

.table {
  --bs-table-bg: transparent;
}

.table thead {
  background: linear-gradient(180deg, #edf3f8, #e4ecf4);
}

.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rj-muted);
  font-weight: 700;
  border-bottom: 0;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.table tbody td {
  vertical-align: middle;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.ipva-col-acoes {
  min-width: 13.5rem;
  width: 13.5rem;
}

.ipva-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
}

.table-hover tbody tr {
  transition: background 0.15s ease, transform 0.15s ease;
}

.table-hover tbody tr:hover {
  background: rgba(26, 166, 160, 0.06);
}

/* ——— Forms & buttons ——— */
.form-control, .form-select {
  border-radius: 0.7rem;
  border-color: rgba(20, 50, 77, 0.18);
  padding: 0.7rem 0.9rem;
  box-shadow: inset 0 1px 2px rgba(11, 28, 44, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--rj-teal);
  box-shadow: 0 0 0 0.2rem rgba(26, 166, 160, 0.18);
}

.form-label {
  font-weight: 600;
  color: var(--rj-navy);
  margin-bottom: 0.35rem;
}

.btn {
  border-radius: 0.7rem;
  font-weight: 650;
  padding: 0.55rem 1.1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  --bs-btn-bg: var(--rj-ink);
  --bs-btn-border-color: var(--rj-ink);
  --bs-btn-hover-bg: var(--rj-navy);
  --bs-btn-hover-border-color: var(--rj-navy);
  --bs-btn-active-bg: var(--rj-steel);
  --bs-btn-active-border-color: var(--rj-steel);
  box-shadow: 0 8px 20px rgba(11, 28, 44, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(11, 28, 44, 0.28);
}

.btn-accent {
  background: linear-gradient(135deg, var(--rj-amber), #f0bc3d);
  border: 0;
  color: var(--rj-ink);
  box-shadow: 0 10px 24px rgba(232, 163, 23, 0.35);
}

.btn-accent:hover {
  color: var(--rj-ink);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(232, 163, 23, 0.42);
}

.btn-outline-primary {
  --bs-btn-color: var(--rj-navy);
  --bs-btn-border-color: rgba(20, 50, 77, 0.3);
  --bs-btn-hover-bg: var(--rj-navy);
  --bs-btn-hover-border-color: var(--rj-navy);
  --bs-btn-hover-color: #fff;
  background: rgba(255, 255, 255, 0.7);
}

.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.7);
}

.alert {
  border: 0;
  border-radius: 0.85rem;
  box-shadow: 0 8px 22px rgba(11, 28, 44, 0.08);
}

.alert-success {
  background: linear-gradient(135deg, #e8f8f2, #dff5ec);
  color: #0f5c48;
}

/* ——— Auth screens ——— */
body.auth-body {
  margin: 0;
  min-height: 100vh;
  background: var(--rj-ink);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 34vh; }
}

.auth-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11, 28, 44, 0.35), rgba(11, 28, 44, 0.82)),
    linear-gradient(120deg, #0b1c2c 0%, #164063 48%, #0f766e 100%);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(232, 163, 23, 0.35), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(26, 166, 160, 0.3), transparent 32%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(255, 255, 255, 0.03) 18px 19px
    );
  animation: drift 18s linear infinite;
}

.auth-visual::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -6rem;
  bottom: -8rem;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle, rgba(232, 163, 23, 0.28), transparent 65%);
  filter: blur(2px);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, 20px, 0); }
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: riseIn 0.7s ease both;
}

.auth-brand-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.auth-brand-title span {
  color: var(--rj-amber);
}

.auth-brand-copy {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 28rem;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(232, 163, 23, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fafc, #eef3f7);
}

.auth-panel:has(.download-page) {
  align-items: flex-start;
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.auth-panel:has(.download-page) .download-page {
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.25rem;
  box-shadow: var(--rj-shadow-lg);
  padding: 2rem 1.75rem;
  animation: riseIn 0.55s ease 0.1s both;
}

.auth-card h1 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--rj-ink);
}

.auth-card .lead-muted {
  color: var(--rj-muted);
  margin-bottom: 1.5rem;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rj-navy);
  background: rgba(26, 166, 160, 0.12);
  border: 1px solid rgba(26, 166, 160, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin-bottom: 1rem;
}

.login-wrapper {
  max-width: 440px;
  margin: 0 auto;
}

.mp-config-card .mp-section {
  border-bottom: 1px solid var(--rj-border);
  padding-bottom: 1.25rem;
}

.mp-config-card .mp-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

/* ——— PIX checkout ——— */
.pix-page {
  max-width: 440px;
  margin: 0 auto 2.5rem;
  padding: 0 0.25rem;
}

.pix-page-top {
  margin-bottom: 1rem;
}

.pix-back {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rj-muted);
  text-decoration: none;
}

.pix-back:hover {
  color: var(--rj-ink);
}

.pix-checkout {
  background: #fff;
  border: 1px solid var(--rj-border);
  border-radius: calc(var(--rj-radius) + 0.15rem);
  box-shadow: var(--rj-shadow);
  overflow: hidden;
}

.pix-checkout-head {
  padding: 1.75rem 1.5rem 1.35rem;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(20, 50, 77, 0.04) 0%, transparent 70%),
    #fff;
  border-bottom: 1px solid var(--rj-border);
}

.pix-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rj-teal);
  margin-bottom: 1rem;
}

.pix-amount-label {
  font-size: 0.85rem;
  color: var(--rj-muted);
  margin-bottom: 0.2rem;
}

.pix-amount {
  font-family: var(--rj-font-display);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--rj-ink);
  line-height: 1.15;
}

.pix-status {
  margin-top: 0.85rem;
}

.pix-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.45rem;
}

.pix-pill-wait {
  color: #7a5a00;
  background: rgba(232, 163, 23, 0.18);
  border: 1px solid rgba(232, 163, 23, 0.35);
}

.pix-pill-ok {
  color: #0d5c45;
  background: rgba(26, 166, 160, 0.16);
  border: 1px solid rgba(26, 166, 160, 0.35);
}

.pix-qr-block,
.pix-copy-block {
  padding: 1.35rem 1.5rem 0.25rem;
}

.pix-step {
  font-size: 0.88rem;
  color: var(--rj-muted);
  margin: 0 0 0.9rem;
  text-align: center;
}

.pix-qr-frame {
  width: 220px;
  height: 220px;
  margin: 0 auto 0.5rem;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid var(--rj-border);
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pix-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pix-copy-block {
  padding-bottom: 1.25rem;
}

.pix-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.pix-copy-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.65rem;
  padding: 0 0.85rem;
  border: 1px solid var(--rj-border);
  border-radius: 0.55rem;
  background: var(--rj-cloud);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--rj-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pix-copy-input:focus {
  outline: 2px solid rgba(26, 166, 160, 0.35);
  outline-offset: 1px;
}

.pix-copy-btn {
  flex: 0 0 auto;
  min-width: 5.5rem;
  height: 2.65rem;
  padding: 0 1rem;
}

.pix-copy-feedback {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rj-teal);
}

.pix-checkout-foot {
  padding: 0.95rem 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--rj-muted);
  border-top: 1px solid var(--rj-border);
  background: rgba(243, 246, 249, 0.65);
}

.pix-foot-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.pix-success {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--rj-border);
  background: rgba(26, 166, 160, 0.06);
}

.pix-success-title {
  font-family: var(--rj-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rj-ink);
  margin-bottom: 0.35rem;
}

.pix-success p {
  color: var(--rj-muted);
  margin-bottom: 1rem;
}

.pix-checkout.is-paid .pix-qr-block,
.pix-checkout.is-paid .pix-copy-block,
.pix-checkout.is-paid .pix-checkout-foot {
  display: none;
}

@media (max-width: 480px) {
  .pix-amount { font-size: 1.85rem; }
  .pix-qr-frame { width: 200px; height: 200px; }
  .pix-checkout-head,
  .pix-qr-block,
  .pix-copy-block { padding-left: 1.15rem; padding-right: 1.15rem; }
}

/* ——— Download APKs ——— */
.download-page {
  max-width: 720px;
  margin: 0 auto;
}

.download-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.download-hero h1 {
  font-family: var(--rj-font-display);
  font-size: 1.85rem;
  color: var(--rj-ink);
  margin-bottom: 0.35rem;
}

.download-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .download-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.download-card {
  background: #fff;
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-radius);
  box-shadow: var(--rj-shadow);
  padding: 1.35rem 1.25rem;
}

.download-card h2 {
  font-family: var(--rj-font-display);
  font-size: 1.25rem;
  margin: 0.55rem 0 0.35rem;
  color: var(--rj-ink);
}

.download-card p {
  color: var(--rj-muted);
  font-size: 0.92rem;
  margin: 0;
  min-height: 2.6rem;
}

.download-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.download-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rj-navy);
  background: rgba(26, 166, 160, 0.12);
  border-radius: 0.4rem;
  padding: 0.25rem 0.55rem;
}

.download-ver {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rj-muted);
}

.download-meta {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--rj-muted);
}

.download-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--rj-border);
  border-radius: var(--rj-radius);
  padding: 2rem 1rem;
}

.download-foot {
  text-align: center;
  margin-top: 1.75rem;
}

.download-foot a {
  font-weight: 600;
  color: var(--rj-steel);
}

.apk-form {
  margin-bottom: 6rem;
}

.apk-form .form-control,
.apk-form textarea {
  scroll-margin-bottom: 40vh;
  scroll-margin-top: 6rem;
}

.apk-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  box-shadow: 0 -6px 18px rgba(11, 28, 44, 0.08);
}

/* Detalhe da solicitação: mapa acompanha altura do card da esquerda */
.solicitacao-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.solicitacao-detail-dl > dt {
  color: var(--rj-muted, #6c757d);
  font-weight: 600;
  padding-top: .35rem;
}

.solicitacao-detail-dl > dd {
  margin-bottom: .55rem;
  padding-top: .35rem;
}

.solicitacao-pix-box {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .85rem;
  background: #f8fafc;
  padding: 1rem;
}

.solicitacao-pix-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.solicitacao-pix-qr {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .65rem;
  padding: .5rem;
  line-height: 0;
}

.solicitacao-pix-qr img,
.solicitacao-pix-qr canvas {
  display: block;
  max-width: 140px;
  height: auto;
}

.solicitacao-pix-code {
  flex: 1 1 12rem;
  min-width: 0;
}

.solicitacao-pix-code code {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 7rem;
  overflow: auto;
  padding: .65rem .75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .5rem;
  font-size: .85rem;
}

.solicitacao-map-card {
  overflow: hidden;
  min-height: 280px;
}

.solicitacao-mapa {
  width: 100%;
  min-height: 280px;
  border-radius: inherit;
}

@media (min-width: 992px) {
  .solicitacao-map-card {
    min-height: 0; /* deixa o stretch da row definir a altura */
  }

  .solicitacao-mapa {
    min-height: 100%;
    height: 100%;
  }
}

.solicitacao-acoes .form-control {
  height: calc(1.5em + .75rem + 2px);
}

