.mapnav-page {
  min-height: 100%;
  padding-bottom: 2rem;
  background-color: #e9eef3;
  background-image:
    radial-gradient(
      circle at 1px 1px,
      rgba(0, 123, 255, 0.055) 1px,
      transparent 0
    ),
    linear-gradient(165deg, #f5f8fb 0%, #e8eef4 45%, #f0f3f7 100%);
  background-size:
    20px 20px,
    100% 100%;
}

.app-layout-mapnav .content-wrapper > section.content:has(.mapnav-page--root) {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mapnav-page--root {
  flex: 1 1 auto;
  min-height: 0;
}

.mapnav-page--root.mapnav-page--root-fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  overflow: hidden;
}

.app-layout-mapnav .content-wrapper:has(.mapnav-page--root-fill) {
  overflow-y: hidden;
  overflow-x: hidden;
}

@media (max-width: 991.98px) {
  .app-layout-mapnav .content-wrapper:has(.mapnav-page--root-fill) {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .app-layout-mapnav
    .content-wrapper
    > section.content:has(.mapnav-page--root-fill) {
    overflow: visible;
    min-height: auto;
  }

  .mapnav-page--root.mapnav-page--root-fill {
    overflow: visible;
    max-height: none;
    flex: 0 1 auto;
    min-height: auto;
  }

  .mapnav-root-main--full {
    overflow: visible;
    flex: 0 1 auto;
    min-height: auto;
  }

  .mapnav-root-main--full .mapnav-card-row--in-main {
    flex: 0 1 auto;
    min-height: auto;
  }
}

.mapnav-root-hero {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 0.15rem;
}

.mapnav-root-hero .mapnav-root-hero-logo.img-fluid {
  max-width: min(92px, 18vw) !important;
  width: auto !important;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.07));
}

.mapnav-root-main--full {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .app-layout-mapnav
    .content-wrapper
    > section.content:has(.mapnav-page--root-fill) {
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
}

.mapnav-root-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.mapnav-root-main .mapnav-card-row--in-main,
.mapnav-root-main .mapnav-footer-separator--in-main,
.mapnav-root-main .mapnav-footer-row {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  flex-shrink: 0;
}

.mapnav-root-main .mapnav-card-row--in-main {
  flex: 1 1 auto;
  min-height: 0;
  align-content: flex-start;
}

.mapnav-page--root .mapnav-card-body {
  padding: 0.85rem 0.65rem !important;
}

.mapnav-page--root .mapnav-card-icon-wrap {
  width: 3.85rem;
  height: 3.85rem;
  margin-bottom: 0.45rem !important;
}

.mapnav-page--root .mapnav-card-icon-fa {
  font-size: 1.65rem;
}

.mapnav-page--root .mapnav-card-title {
  font-size: clamp(0.78rem, 0.5rem + 0.65vw, 0.98rem);
  line-height: 1.28;
}

.mapnav-page--root .mapnav-card .badgeMapNav {
  margin-top: 0.28rem;
  font-size: 0.7rem !important;
  padding: 0.22em 0.48em !important;
}

.mapnav-page--root .mapnav-card:hover {
  transform: translateY(-2px);
}

.mapnav-page--root .mapnav-footer-separator--in-main {
  margin-top: 0.2rem;
  margin-bottom: 0.7rem;
}

.mapnav-root-main--full .mapnav-card-row--in-main,
.mapnav-root-main--full .mapnav-footer-row {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.mapnav-hero {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.mapnav-hero--compact {
  max-width: 280px;
}

.mapnav-hero .logo {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.mapnav-hub-head {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.mapnav-hub-head .mapnav-hub-icon {
  opacity: 0.92;
}

.mapnav-card-row {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.mapnav-page--hub {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.app-layout-mapnav .content-wrapper > section.content:has(.mapnav-page--hub) {
  width: 100%;
  max-width: 100%;
}

.mapnav-page--hub .mapnav-hero {
  max-width: 100%;
}

.mapnav-page--hub .mapnav-hero .mapnav-hub-hero-logo.img-fluid,
.mapnav-page--hub .mapnav-hero .logo.img-fluid {
  max-width: min(110px, 20vw) !important;
  width: auto !important;
  height: auto;
}

.mapnav-page--hub .mapnav-hub-head {
  max-width: 100%;
}

.mapnav-page--hub .mapnav-card-row,
.mapnav-page--hub .mapnav-card-row--hub {
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.app-layout-mapnav .content-wrapper:has(.mapnav-page--hub) {
  width: 100%;
  max-width: none;
}

.mapnav-page--hub .mapnav-card .card-body {
  padding: 1.1rem 0.95rem !important;
}

.mapnav-footer-separator {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.mapnav-footer-separator-hr {
  margin: 0;
  border: 0;
  border-top: 2px solid rgba(0, 0, 0, 0.08);
}

.mapnav-footer-row {
  max-width: 1400px;
}

.mapnav-root-main .mapnav-footer-row {
  max-width: none;
}

.mapnav-logbook-summary-card {
  border: 2px solid rgba(0, 123, 255, 0.45) !important;
  background: linear-gradient(
    155deg,
    rgba(0, 123, 255, 0.14) 0%,
    rgba(232, 244, 255, 0.92) 38%,
    #ffffff 100%
  ) !important;
  box-shadow:
    0 6px 22px rgba(0, 123, 255, 0.12),
    0 2px 8px rgba(22, 54, 77, 0.06) !important;
}

.mapnav-logbook-summary-card:hover {
  box-shadow:
    0 0.75rem 1.75rem rgba(0, 123, 255, 0.2),
    0 0.35rem 0.65rem rgba(22, 54, 77, 0.08) !important;
}

.mapnav-logbook-summary-card .mapnav-card-icon-wrap {
  background: linear-gradient(
    145deg,
    rgba(0, 123, 255, 0.28),
    rgba(0, 123, 255, 0.12)
  );
  border-color: rgba(0, 123, 255, 0.4);
}

.mapnav-logbook-summary-card .mapnav-card-icon-fa {
  color: #0056b3;
}

.mapnav-logbook-modal-dialog {
  max-width: min(720px, calc(100vw - 1.5rem));
}

.mapnav-logbook-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0d3d5c;
}

.mapnav-logbook-modal-body {
  padding-top: 0.5rem;
}

.mapnav-logbook-modal-lead {
  font-size: 0.9rem;
  line-height: 1.45;
}

.mapnav-logbook-modal-table-wrap {
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(22, 54, 77, 0.08);
}

.mapnav-logbook-modal-table {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.mapnav-logbook-modal-table thead th {
  border-bottom-width: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #495057;
  vertical-align: middle;
}

.mapnav-logbook-modal-th-area {
  width: 32%;
  min-width: 7.5rem;
}

.mapnav-logbook-modal-section-name {
  background: linear-gradient(180deg, #234a6b 0%, #16364d 100%);
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  vertical-align: top;
}

.mapnav-logbook-modal-section-items {
  background: #fff;
  vertical-align: top;
}

.mapnav-logbook-modal-item-list {
  padding: 0.15rem 0;
}

.mapnav-logbook-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-weight: 600;
  color: #2c3e50;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mapnav-logbook-modal-item:last-child {
  border-bottom: none;
}

.mapnav-logbook-modal-bullet {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.mapnav-logbook-modal-footer {
  justify-content: center;
  padding-bottom: 1.25rem;
}

.mapnav-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  border-radius: 0.5rem;
  will-change: transform;
}

.mapnav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.65rem 1.35rem rgba(0, 123, 255, 0.14) !important;
}

.mapnav-card:hover .mapnav-card-icon-wrap {
  background: linear-gradient(
    145deg,
    rgba(0, 123, 255, 0.18),
    rgba(0, 123, 255, 0.08)
  );
  border-color: rgba(0, 123, 255, 0.28);
}

.mapnav-card-icon-wrap {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(
    145deg,
    rgba(0, 123, 255, 0.14),
    rgba(0, 123, 255, 0.06)
  );
  border: 1px solid rgba(0, 123, 255, 0.18);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.mapnav-card-icon-fa {
  font-size: 2rem;
  line-height: 1;
  color: #007bff;
}

.mapnav-card-title {
  font-size: 0.95rem;
  line-height: 1.35;
  word-wrap: break-word;
  hyphens: auto;
}

.mapnav-card--disabled {
  opacity: 0.72;
  pointer-events: none;
}

.mapnav-card--disabled .mapnav-card-icon-wrap {
  background: #e9ecef;
  border-color: #dee2e6;
}

.mapnav-card--disabled .mapnav-card-icon-fa {
  color: #adb5bd;
}

.mapnav-card-trigger {
  width: 100%;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
}

.mapnav-card-trigger:hover,
.mapnav-card-trigger:focus {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.mapnav-card-trigger:focus {
  outline: none;
}

.mapnav-card-trigger:focus .mapnav-card-title {
  color: #0056b3;
}

.mapnav-card .mapnav-card-trigger:hover .mapnav-card-title {
  color: #0056b3;
}

.mapnav-card .mapnav-card-trigger:hover .mapnav-card-icon-fa {
  color: #0056b3;
}

.mapnav-card-trigger:active .mapnav-card-title {
  color: #004085;
}

.mapnav-page .mapnav-card .badgeMapNav {
  position: static !important;
  right: auto !important;
  top: auto !important;
  margin-top: 0.35rem;
  font-size: 0.75rem !important;
  padding: 0.35em 0.65em !important;
}

.mapnav-page .mapnavlink:hover > .mapnav-card-title,
.mapnav-page .mapnavlink.active > .mapnav-card-title {
  border-top: none !important;
}

.app-layout-mapnav.app-layout-no-sidebar.wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-layout-mapnav .main-header {
  flex-shrink: 0;
}

.app-layout-mapnav .content-wrapper {
  flex: 1 1 auto;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-layout-mapnav .content-wrapper > .content-header {
  flex-shrink: 0;
}

.app-layout-mapnav .content-wrapper > section.content {
  flex: 1 1 auto;
  min-height: 0;
}

.app-layout-mapnav .main-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.mapnav-loading {
  min-height: 10rem;
  width: 100%;
}
