html {
  font-size: 14px;
}

@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 {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.mobile-bottom-nav {
  min-height: 68px;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.16);
}

.mobile-bottom-nav__content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
}

.mobile-bottom-nav__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.68rem;
  line-height: 1.1;
  min-height: 58px;
  border: 0;
  background: transparent;
  padding: 4px 2px;
}

.mobile-bottom-nav__link i {
  line-height: 1;
  font-size: 1.9rem;
}

.mobile-bottom-nav__button {
  cursor: pointer;
}

.extras-mobile-page {
  padding: 20px 0 90px 0;
}

.extras-mobile-header {
  text-align: center;
  margin-bottom: 24px;
}

.extras-mobile-header h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.extras-mobile-header p {
  color: #6c757d;
  margin-top: 12px;
  margin-bottom: 0;
}

.extras-grid {
  display: grid;
  gap: 14px;
}

.extra-card-link {
  text-decoration: none;
  color: inherit;
}

.extra-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(0, 44, 83, 0.08);
}

.extra-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #002c53;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.extra-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.extra-card-content strong {
  font-size: 1rem;
  color: #0f172a;
}

.extra-card-content span {
  font-size: 0.88rem;
  color: #64748b;
}

.modal-mais-mobile .modal-dialog {
  margin: 0;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  transform: translate3d(0, 0, 0) !important;
}

.modal-mais-mobile.fade .modal-dialog {
  transform: translate3d(0, 100%, 0) !important;
  opacity: 0.98;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease-out !important;
}

.modal-bottom-sheet {
  max-width: 100%;
}

.modal-mais-mobile.show .modal-dialog {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1;
}

.modal-mais-mobile .modal-content {
  border: 0;
  border-radius: 28px 28px 0 0;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.modal-sheet-handle {
  width: 76px;
  height: 28px;
  border: 0;
  background: transparent;
  display: block;
  padding: 0;
  margin: 4px auto 0;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.modal-sheet-handle::before {
  content: "";
  width: 58px;
  height: 6px;
  background: #d0d7de;
  border-radius: 999px;
  display: block;
  margin: 10px auto 0;
}

.modal-sheet-handle:active {
  cursor: grabbing;
}

.modal-mais-mobile .modal-dialog.is-dragging {
  transition: none !important;
}

.modal-mais-mobile .modal-title {
  font-size: 1.4rem;
  color: #1e293b;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: #64748b;
}

.mais-mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  padding-bottom: 10px;
}

.mais-mobile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: #1e293b;
}

.mais-mobile-card-form {
  margin: 0;
}

.mais-mobile-card-button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}

.mais-mobile-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #f4f6f8;
  color: #002c53;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.mais-mobile-label {
  font-size: 0.76rem;
  line-height: 1.2;
}

.record-page {
  padding: 22px 0 92px;
}

.record-shell {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 44, 83, 0.1);
  overflow: hidden;
}

.record-header {
  background: #002c53;
  color: #fff;
  padding: 28px 32px;
}

.record-header span {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.82;
  margin-bottom: 8px;
}

.record-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
}

.record-header p {
  color: rgba(255, 255, 255, 0.84);
  margin: 8px 0 0;
}

.record-body {
  padding: 30px 32px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.record-item {
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  background: #f8fbfd;
  padding: 14px 16px;
  min-width: 0;
}

.record-item-full {
  grid-column: 1 / -1;
}

.record-label {
  display: block;
  color: #5c6b7a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.record-value {
  color: #102a43;
  font-size: 0.98rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.record-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.record-btn-primary {
  background-color: #002c53;
  border-color: #002c53;
  color: #fff;
}

.record-btn-primary:hover {
  background-color: #0b416f;
  border-color: #0b416f;
  color: #fff;
}

.record-alert {
  border-radius: 14px;
  border: 1px solid #f1b6b6;
  background: #fff5f5;
  color: #8a1f1f;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.record-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef6ff;
  color: #002c53;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .record-page {
    padding-top: 10px;
  }

  .record-shell {
    border-radius: 14px;
  }

  .record-header,
  .record-body {
    padding: 22px 18px;
  }

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

  .record-item-full {
    grid-column: auto;
  }

  .record-actions {
    flex-direction: column-reverse;
  }

  .record-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .mobile-bottom-nav__link {
    font-size: 0.62rem;
  }

  .mobile-bottom-nav__link i {
    font-size: 1.62rem;
  }

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

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
