html,
body,
body * {
  font-family: "Times New Roman", Times, serif, sans-serif;
}

#main-header {
  min-height: 56px;
  width: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  font-family: "Times New Roman", Times, serif, sans-serif;
}

#main-header.nav-ready {
  background: rgba(0, 130, 203, 1);
}

.leaflet-control-attribution.leaflet-control {
  display: none;
}

.leaflet-shadow-pane {
  display: none !important;
}

.nav-shell {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0px;
}

.nav-spacer {
  flex: 1 1 auto;
  align-self: stretch;
  background: #ffffff;
  box-shadow: inset 2px 0 0 #d8e2ea;
}

.nav-logout {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-rectangle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #004585;
  height: 56px;
  padding: 6px 10px;
  box-sizing: border-box;
}

.nav-logo {
  display: block;
  height: 42px;
  width: auto;
  margin-left: 15px;
}

.top-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 12px;
  min-height: 56px;
  font-family: "Times New Roman", Times, serif, sans-serif;
}

.tab {
  color: #ffffff;
  text-decoration: none;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 3px solid transparent;
  font-family: "Times New Roman", Times, serif, sans-serif;
}

.tab:hover,
.tab.active {
  border-bottom-color: #ffffff;
  background: rgb(63, 154, 206);
}

.nav-bell-container {
  position: relative;
  background: #ffffff;
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 6px;
}

.nav-bell {
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.nav-bell:hover {
  background: #f3f4f6;
}

.nav-bell-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.nav-bell-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: min(420px, 92vw);
  background: #ffffff;
  border: 1px solid #8fb9d8;
  border-radius: 0px;
  box-shadow: 0 8px 24px rgba(0, 69, 133, 0.18);
  z-index: 1400;
  overflow: hidden;
}

.nav-bell-heading {
  padding: 10px 12px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  font-family: "Times New Roman", Times, serif, sans-serif;
}

.nav-bell-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: "Times New Roman", Times, serif, sans-serif;
  color: #374151;
  text-align: left;
  box-sizing: border-box;
}

.nav-bell-item:last-child {
  border-bottom: 0;
}

.nav-bell-item--new {
  background: #fef9ec;
  color: #111827;
}

.nav-bell-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  margin-left: 8px;
}

.nav-bell-empty {
  margin: 0;
  padding: 12px;
  font-size: 0.85rem;
  color: #6b7280;
  font-family: "Times New Roman", Times, serif, sans-serif;
}

.nav-bell-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #7db0d8;
  background: #e6f2fb;
}

.nav-bell-heading-row .nav-bell-heading {
  border-bottom: 0;
  flex: 1 1 auto;
}

.nav-bell-mark-all {
  margin-right: 10px;
  border: 0;
  background: transparent;
  color: #004585;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-bell-mark-all:hover {
  text-decoration: underline;
}

.nav-bell-search {
  border-bottom: 1px solid #deecf8;
}

.nav-bell-search:last-child {
  border-bottom: 0;
}

.nav-bell-item-row {
  display: flex;
  align-items: stretch;
}

.nav-bell-item-row .nav-bell-item {
  border-bottom: 0;
  flex: 1 1 auto;
}

.nav-bell-delete {
  width: 34px;
  border: 0;
  border-left: 1px solid #deecf8;
  background: #f8fcff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-bell-delete:hover {
  background: #eef6fd;
}

.nav-bell-delete-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.nav-bell-item {
  transition: background 0.15s ease;
}

.nav-bell-item:hover {
  background: #eef6fd;
}

.nav-bell-item-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-bell-new-tag {
  margin-left: 8px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a3412;
  font-weight: 700;
}

.nav-bell-expand {
  min-width: 34px;
  border: 0;
  border-left: 1px solid #deecf8;
  background: #f1f8fe;
  color: #004585;
  cursor: pointer;
  font-size: 0.8rem;
}

.nav-bell-expand:hover {
  background: #e2f0fb;
}

.nav-bell-notifications {
  background: #f8fcff;
  border-top: 1px solid #d5e8f8;
  padding: 8px 10px 10px;
}

.nav-bell-notification-copy {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: #0f3e66;
}

.nav-bell-listings {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #c9e1f4;
  background: #ffffff;
}

.nav-bell-listing-section {
  padding: 6px 8px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b7b97;
  background: #f6fbff;
  border-bottom: 1px solid #e7f2fb;
}

.nav-bell-listing {
  padding: 7px 8px;
  font-size: 0.78rem;
  color: #374151;
  border-bottom: 1px solid #e7f2fb;
  line-height: 1.25;
}

.nav-bell-listing:last-child {
  border-bottom: 0;
}

.nav-bell-listing--new {
  font-weight: 700;
  color: #0b3b67;
  background: #dff0ff;
  box-shadow: inset 3px 0 0 #0079bf;
}

.nav-bell-listing-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.nav-bell-listing-link:hover {
  text-decoration: underline;
}

.nav-bell-notification-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-bell-action {
  border: 1px solid #9ec4e1;
  background: #ffffff;
  color: #004585;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.nav-bell-action:hover {
  background: #edf6fd;
}

.nav-bell-action--primary {
  border-color: #004585;
  color: #ffffff;
  background: #0082cb;
}

.nav-bell-action--primary:hover {
  background: #0069a6;
}

@media (max-width: 900px) {
  #main-header,
  #main-header.nav-ready {
    background: rgba(0, 130, 203, 1);
  }

  .nav-shell {
    flex-wrap: wrap;
    gap: 0;
  }

  .top-nav,
  .nav-logout {
    width: 100%;
  }

  .nav-spacer {
    display: none;
  }

  .nav-bell-container {
    background: transparent;
    margin-left: auto;
  }

  .nav-bell:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .nav-bell-icon {
    filter: brightness(0) invert(1);
  }

  .nav-bell-dropdown {
    right: 0;
  }

  .nav-logout {
    margin: 0;
    min-height: 28px;
  }

  .top-nav {
    flex-wrap: wrap;
    min-height: auto;
    padding: 0 8px 3px;
  }

  .tab {
    min-height: 28px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .nav-logo-link {
    width: 100%;
    justify-content: center;
  }

  .nav-logo-rectangle {
    height: 34px;
    padding: 3px 6px;
  }

  .nav-logo {
    height: 26px;
    margin-left: 0;
    margin-top: 3px;
  }

  #main-header {
    min-height: 34px;
  }

  .top-nav {
    padding: 0;
  }

  .top-nav .tab,
  .nav-logout {
    flex: 1 1 33.33%;
    justify-content: center;
    text-align: center;
    padding: 4px 8px;
  }
}

@media (max-width: 520px) {
  .top-nav .tab,
  .nav-logout {
    flex-basis: 33.33%;
    font-size: 0.8rem;
    padding: 4px 4px;
  }
}
