﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html {
  scrollbar-gutter: stable;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-word;
}

.border-top {  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Fixed footer — always visible at the bottom of the viewport */
:root {
  --app-footer-height: 3.25rem;
}

html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding-bottom: var(--app-footer-height);
}

header {
  flex-shrink: 0;
}

body > .container,
body > .container-fluid {
  flex: 1 1 auto;
  min-height: 0;
}

body.mapping-fill {
  height: 100vh;
  overflow: hidden;
}

body.mapping-fill > .mapping-bleed {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
}

body.mapping-fill .mapping-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem 0;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  flex-shrink: 0;
  width: 100%;
  min-height: var(--app-footer-height);
  padding-top: calc(0.5rem + 5px);
  padding-bottom: calc(0.5rem - 5px);
  background-color: #fff;
}

.footer-actions {
  flex-shrink: 0;
}

.footer-action-link {
  color: #6c757d;
  white-space: nowrap;
}

.footer-action-link:hover,
.footer-action-link:focus {
  color: #495057;
  opacity: 1;
}

.app-header-logo {
  height: 36px;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
}

.app-footer-logo {
  height: 28px;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
}

.app-branding-preview {
  height: 48px;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.25rem;
}

.app-inline-link {
  color: inherit;
  font-weight: 700;
  font-size: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.app-inline-link:hover,
.app-inline-link:focus {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.app-inline-link-icon {
  flex-shrink: 0;
}

.login-nav-link {
  color: rgba(255, 255, 255, 0.75);
}

.login-nav-link:hover,
.login-nav-link:focus {
  color: #fff;
  opacity: 1;
}

.about-dialog-content {
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  position: relative;
  background-color: #08111f;
}

.about-dialog-body {
  padding: 0;
}

.about-dialog-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
}

.about-dialog-scroll {
  max-height: min(85vh, 920px);
  overflow-y: auto;
  scroll-behavior: smooth;
}

#aboutDialogShadowHost {
  display: block;
}

.about-dialog-close {
  position: absolute;
  top: 0.85rem;
  right: calc(2.35rem - 6px);
  z-index: 31;
  pointer-events: auto;
  margin: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.65rem;
  background-color: rgba(255, 255, 255, 0.72);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='M3 3l10 10M13 3L3 13' stroke='%23000' stroke-width='2.25' stroke-linecap='round' fill='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  opacity: 1;
}

.about-dialog-close:hover,
.about-dialog-close:focus {
  background-color: rgba(255, 255, 255, 0.88);
  opacity: 1;
}

.payload-editor {
  min-height: 12rem;
  max-height: 28rem;
  resize: vertical;
}

.payload-preview {
  min-height: calc(6rem + 1in);
  max-height: calc(12rem + 1in);
  resize: vertical;
  font-size: 0.8125rem;
}

body > .container:has(.llm-chat-card) {
  display: flex;
  flex-direction: column;
}

body > .container:has(.llm-chat-card) > main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.llm-chat-card {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.llm-chat-card > .card-body {
  flex: 1 1 auto;
  min-height: 0;
}

.llm-chat-messages {
  flex: 1 1 auto;
  min-height: 28rem;
  overflow: auto;
  background-color: #f8f9fa;
}

.llm-chat-input {
  flex-shrink: 0;
}

.llm-chat-message {
  display: flex;
  margin-bottom: 0.75rem;
}

.llm-chat-message-user {
  justify-content: flex-end;
}

.llm-chat-message-assistant {
  justify-content: flex-start;
}

.llm-chat-bubble {
  position: relative;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.audit-path-cell {
  max-width: 14rem;
}

.audit-path-popover {
  cursor: help;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.35);
  word-break: break-all;
}

.audit-path-popover:hover,
.audit-path-popover:focus {
  color: #0d6efd;
  border-bottom-color: #0d6efd;
}

.popover.audit-event-popover {
  max-width: min(28rem, 90vw);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.popover.audit-event-popover .popover-header {
  font-size: 0.875rem;
  font-weight: 600;
}

.popover.audit-event-popover .popover-body {
  font-size: 0.8125rem;
}

.audit-event-detail dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.125rem;
}

.audit-event-detail dd {
  margin-bottom: 0.625rem;
  margin-left: 0;
  word-break: break-word;
}

.audit-event-detail dd:last-child {
  margin-bottom: 0;
}

.audit-event-detail .audit-event-path {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  padding: 0.35rem 0.5rem;
  word-break: break-all;
}

.llm-chat-message-user .llm-chat-column {
  max-width: 85%;
}

.llm-chat-message-user .llm-chat-bubble {
  background-color: #1b6ec2;
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

.llm-chat-message-assistant .llm-chat-column {
  width: calc(100% - 50px);
  max-width: calc(100% - 50px);
}

.llm-chat-message-assistant .llm-chat-bubble {
  background-color: #fff;
  border: 1px solid #dee2e6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.llm-chat-bubble-response {
  padding-right: 2.35rem;
}

.llm-chat-copy {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.llm-chat-copy:hover,
.llm-chat-copy:focus-visible {
  color: #1861ac;
  background-color: rgba(27, 110, 194, 0.12);
  outline: none;
}

.llm-chat-copy.is-copied {
  color: #198754;
  background-color: rgba(25, 135, 84, 0.12);
}

.llm-chat-copy svg {
  width: 1rem;
  height: 1rem;
}

.llm-chat-input textarea {
  resize: none;
}

.home-module-grid {
  --home-module-min-height: 15rem;
}

.home-module-order-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

.home-module-order-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.home-module-order-list li:last-child {
  border-bottom: 0;
}

.home-module-order-name {
  font-weight: 600;
}

.home-module-order-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.home-module-card {
  position: relative;
  overflow: hidden;
  min-height: var(--home-module-min-height);
  background-color: #fff;
  border: 1px solid rgba(24, 97, 172, 0.28);
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.home-module-card::before {
  content: "";
  position: absolute;
  right: -0.5rem;
  bottom: -0.5rem;
  width: min(62%, 12rem);
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.34;
  pointer-events: none;
  transform: rotate(-8deg);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    filter 0.28s ease;
}

.home-module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 50%, rgba(255, 255, 255, 0.28) 100%);
  pointer-events: none;
  transition: background 0.28s ease;
}

.home-module-card:hover,
.home-module-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(27, 110, 194, 0.72);
  box-shadow:
    0 0.35rem 0.75rem rgba(27, 110, 194, 0.14),
    0 1rem 2rem rgba(27, 110, 194, 0.12);
}

.home-module-card:hover::before,
.home-module-card:focus-within::before {
  opacity: 0.62;
  transform: rotate(-4deg) scale(1.08);
  filter: brightness(1.18) saturate(1.2);
}

.home-module-card:hover::after,
.home-module-card:focus-within::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.38) 48%, rgba(219, 234, 254, 0.22) 100%);
}

.home-module-card .card-body {
  position: relative;
  z-index: 1;
  min-height: var(--home-module-min-height);
}

.home-module-card .card-title {
  font-weight: 600;
  transition: color 0.12s ease, font-weight 0.12s ease;
}

.home-module-card:hover .card-title,
.home-module-card:focus-within .card-title {
  color: #1861ac;
  font-weight: 700;
}

.home-module-person-search::before {
  background-image: url("/images/modules/person-search.svg");
}

.home-module-record-search::before {
  background-image: url("/images/modules/record-search.svg");
}

.home-module-mugshot-search::before {
  background-image: url("/images/modules/mugshot-search.svg");
}

.home-module-llm-chat::before {
  background-image: url("/images/modules/llm-chat.svg");
}

.home-module-mapping::before {
  background-image: url("/images/modules/mapping.svg");
}

.home-module-notifications::before {
  background-image: url("/images/modules/notifications.svg");
}

.home-module-master-index::before {
  background-image: url("/images/modules/master-index.svg");
}

.master-index-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  flex: 0 0 auto;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.master-index-bell-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.master-index-bell.is-idle {
  color: #adb5bd;
  opacity: 0.7;
  pointer-events: none;
  cursor: default;
}

.master-index-bell.is-active {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.1);
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.master-index-bell.is-active:hover,
.master-index-bell.is-active:focus-visible {
  color: #0a58ca;
  background-color: rgba(13, 110, 253, 0.18);
  outline: none;
}

.master-index-bell-count {
  position: absolute;
  top: -0.35rem;
  right: -0.45rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background-color: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.home-module-cjis::before {
  background-image: url("/images/modules/cjis.svg");
}

.home-module-access-audit::before {
  background-image: url("/images/modules/access-audit.svg");
}

.home-module-juvenile-records::before {
  background-image: url("/images/modules/juvenile-records.svg");
}

.home-module-match-rules::before {
  background-image: url("/images/modules/match-rules.svg");
}

.home-module-query-categories::before {
  background-image: url("/images/modules/query-categories.svg");
}

.home-module-inbound-messages::before,
.home-module-import-data::before {
  background-image: url("/images/modules/inbound-messages.svg");
}

.home-module-clients::before,
.home-module-inbound-api::before {
  background-image: url("/images/modules/clients.svg");
}

.home-module-outbound-messages::before {
  background-image: url("/images/modules/outbound-messages.svg");
}

.home-module-api-docs::before {
  background-image: url("/images/modules/api-docs.svg");
}

.home-module-configurator::before {
  background-image: url("/images/modules/configurator.svg");
}

.home-module-hangfire::before {
  background-image: url("/images/modules/hangfire.svg");
}

.home-module-license::before {
  background-image: url("/images/modules/cjis.svg");
}

.home-module-user-accounts::before {
  background-image: url("/images/modules/user-accounts.svg");
}

.home-module-system-customization::before {
  background-image: url("/images/modules/system-customization.svg");
}

.mugshot-search-probe-image {
  max-height: 220px;
  object-fit: contain;
}

.mugshot-search-result-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background-color: #f8f9fa;
}

.person-mugshot-panel .person-mugshot-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.person-mugshot-panel .person-mugshot-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
}

.person-mugshot-panel .person-mugshot-slide {
  display: none;
  width: 100%;
  text-align: center;
}

.person-mugshot-panel .person-mugshot-slide.active {
  display: block;
}

.person-mugshot-panel .person-mugshot-image {
  max-height: 320px;
  width: 100%;
  object-fit: contain;
  background-color: #f8f9fa;
}

.person-mugshot-panel .person-mugshot-nav {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
  font-size: 1.25rem;
}

.person-mugshot-panel .person-mugshot-meta {
  display: none;
}

.person-mugshot-panel .person-mugshot-meta.active {
  display: flex;
}

.justice-count-card {
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.justice-count-card:hover,
.justice-count-card:focus-visible {
  background-color: rgba(13, 110, 253, 0.08);
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
  outline: none;
}

.home-module-description {
  flex: 1 1 auto;
  margin-bottom: 0;
  transition: font-weight 0.12s ease, color 0.12s ease;
}

.home-module-card:hover .home-module-description,
.home-module-card:focus-within .home-module-description {
  font-weight: 500;
  color: #495057;
}

.home-module-actions {
  margin-top: auto;
  padding-top: 1.25rem;
  min-height: 3rem;
}

@media (min-width: 992px) {
  .home-module-grid > [class*="col-"] {
    display: flex;
  }
}

.configurator-profile-list-outer {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.35rem;
}

.configurator-profile-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 44rem;
}

.configurator-profile-grid {
  display: grid;
  grid-template-columns:
    minmax(7rem, 1fr)
    minmax(11rem, 1.45fr)
    minmax(5rem, 0.6fr)
    max-content
    max-content;
  column-gap: 0.4rem;
  row-gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-width: 44rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.configurator-profile-grid-row code {
  font-size: 0.9375rem;
}

.configurator-profile-col-type,
.configurator-profile-col-type code {
  font-weight: 700;
}

.configurator-profile-grid .badge {
  font-size: 0.6875rem;
  font-weight: 500;
}

.configurator-profile-col {
  min-width: 0;
}

.configurator-profile-col-messages {
  line-height: 1.35;
}

.configurator-profile-col-version {
  white-space: nowrap;
}

.configurator-profile-col-deployment,
.configurator-profile-col-status {
  justify-self: end;
  text-align: right;
}

.configurator-profile-col-deployment {
  padding-right: 0.15rem;
}

.configurator-profile-panel {
  border: 2px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f4f6f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.configurator-profile-panel-heading {
  margin: 0;
}

.configurator-profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 0;
  background-color: transparent;
  text-align: left;
  color: inherit;
  font-size: 0.9375rem;
}

.configurator-profile-chevron {
  display: block;
  flex: 0 0 0.875rem;
  width: 0.875rem;
  height: 0.875rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c757d'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.875rem;
  transition: transform 0.15s ease;
}

.configurator-profile-toggle.collapsed .configurator-profile-chevron {
  transform: rotate(-90deg);
}

.configurator-profile-grid-row {
  flex: 1 1 auto;
  min-width: 0;
}

.configurator-profile-toggle.collapsed {
  background-color: #eef1f4;
}

.configurator-profile-toggle.collapsed:hover,
.configurator-profile-toggle.collapsed:focus {
  background-color: #e7ebf0;
}

.configurator-profile-toggle:hover,
.configurator-profile-toggle:focus {
  background-color: #eceff3;
}

.configurator-profile-toggle:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.configurator-profile-body {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #fff;
}

.configurator-profile-collapse.collapsing,
.configurator-profile-collapse.show {
  border-top: 0;
}

.inbound-message-details-collapse-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: inherit;
}

.inbound-message-details-collapse-toggle::after {
  margin-left: auto;
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.inbound-message-details-collapse-toggle:not(.collapsed)::after {
  transform: rotate(-135deg);
}

.payload-view {
  white-space: pre;
  font-family: Consolas, "Cascadia Mono", "Courier New", monospace;
}

.notification-bell.is-idle {
  opacity: 0.85;
}

.notification-bell.is-active {
  color: #fff;
}

.notification-bell-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-bell-count {
  position: absolute;
  top: -0.45rem;
  left: -0.55rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background-color: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.notification-bell-count[hidden] {
  display: none !important;
}

.compare-mugshot-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.compare-mugshot-slot--side {
  min-height: 16.25rem;
  margin-bottom: 1rem;
}

.compare-mugshot-slot--hero {
  min-height: 22.5rem;
}

.compare-mugshot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 15rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
}

.compare-mugshot-slot--side .compare-mugshot-frame {
  height: 13.75rem;
}

.compare-mugshot-slot--hero .compare-mugshot-frame {
  height: 20rem;
  max-width: 17.5rem;
}

.compare-mugshot-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.compare-mugshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: #6c757d;
  font-size: 0.875rem;
  text-align: center;
}

.compare-mugshot-placeholder svg {
  width: 4.5rem;
  height: 4.5rem;
}

.compare-mugshot-caption {
  min-height: 1.5rem;
  margin-top: 0.4rem;
}

.compare-mugshot-thumb {
  width: 56px;
  height: 70px;
  object-fit: cover;
}

/* Full-screen busy overlay for long AJAX / form posts */
.jl-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(44, 74, 110, 0.45), transparent 55%),
    rgba(12, 18, 28, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.jl-busy-overlay[hidden] {
  display: none;
}

body.jl-busy {
  overflow: hidden;
}

.jl-busy-panel {
  width: min(26rem, 100%);
  padding: 2rem 1.75rem 1.6rem;
  text-align: center;
  color: #e8eef4;
  background: linear-gradient(180deg, #243852 0%, #1c2a3d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.jl-busy-orbit {
  position: relative;
  width: 7.25rem;
  height: 7.25rem;
  margin: 0 auto 1.1rem;
}

.jl-busy-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.1rem;
  height: 3.1rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 12px rgba(196, 163, 90, 0.45));
  animation: jl-busy-pulse 1.8s ease-in-out infinite;
}

.jl-busy-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.jl-busy-ring-outer {
  border-top-color: #c4a35a;
  border-right-color: rgba(196, 163, 90, 0.25);
  animation: jl-busy-spin 1.15s linear infinite;
}

.jl-busy-ring-inner {
  inset: 0.7rem;
  border-bottom-color: #7eb8c9;
  border-left-color: rgba(126, 184, 201, 0.2);
  animation: jl-busy-spin 1.8s linear infinite reverse;
}

.jl-busy-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.jl-busy-detail {
  margin: 0;
  color: #b7c3d0;
  font-size: 0.92rem;
}

@keyframes jl-busy-spin {
  to { transform: rotate(360deg); }
}

@keyframes jl-busy-pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.82; transform: translate(-50%, -50%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .jl-busy-ring,
  .jl-busy-logo {
    animation: none;
  }
}

.mapping-bleed {
  max-width: 1400px;
}

.mapping-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mapping-page > .mb-3 {
  flex-shrink: 0;
}

.mapping-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
}

.mapping-filters {
  align-self: stretch;
  min-height: 0;
  overflow: auto;
}

.mapping-type-menu {
  width: 100%;
  min-width: 16rem;
}

.mapping-canvas {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mapping-canvas #map {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  width: 100%;
}

.mapping-pin-wrap {
  background: transparent;
  border: 0;
}

.mapping-pin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.mapping-popup table {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.mapping-popup th {
  text-align: left;
  padding-right: 0.6rem;
  color: #6c757d;
  font-weight: 600;
  vertical-align: top;
}

@media (max-width: 900px) {
  .mapping-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(22rem, 1fr);
  }
}

.fix-all-log {
  max-height: 16rem;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
}

.fix-all-log-item {
  padding: 0.2rem 0;
  border-bottom: 1px solid #f1f3f5;
}

.fix-all-log-item:last-child {
  border-bottom: 0;
}
