@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}

:root {
  --lx-red: #e53935;
  --lx-red-dark: #c62828;
  --lx-ink: #0d1b2a;
  --lx-navy: #1b263b;
  --lx-slate: #49515a;
  --lx-bg: #f2f4f7;
  --lx-border: #d1d5db;
  --lageone-blue: #246bfd;
  --lageone-green: #22c55e;
  --lageone-orange: #ff8a00;
  --lageone-yellow: #ffc107;
  --lageone-violet: #8b3dff;
  --lageone-black: #0a1018;
  --lageone-dark: #141a22;
  --lageone-charcoal: #202831;
  --lageone-steel: #2e3641;
  --lageone-gray: #6b7280;
  --bs-body-font-family: Montserrat, Arial, sans-serif;
  --bs-body-color: #0d1b2a;
  --bs-body-bg: #f2f4f7;
  --bs-primary: #246bfd;
  --bs-danger: #e53935;
  --bs-success: #22c55e;
  --bs-warning: #ffc107;
  --sidebar-width: 248px;
  --context-width: 340px;
  --topbar-height: 68px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--lx-bg);
  color: var(--lx-ink);
  font-family: Montserrat, Arial, sans-serif;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 20% 20%, #394857 0, #1c2731 45%, #111a22 100%);
}
.login-card {
  width: min(100%, 440px);
  padding: 2.25rem;
}
.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.brand-block h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--lx-red);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px #c8202f44;
}
.brand-mark.small {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 1rem;
  box-shadow: none;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 800;
  color: #77828d;
}
.server-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lx-border);
  font-size: 0.82rem;
  color: #65717d;
}
.sidebar-user-identity {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
}
.sidebar-role-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.25rem;
  border-radius: 0.45rem;
  font: inherit;
  text-align: left;
}
.sidebar-role-button:not([aria-disabled='true']):hover,
.sidebar-role-button:not([aria-disabled='true']):focus,
.sidebar-role-button[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.12);
  outline: 0;
}
.sidebar-role-user,
.sidebar-role-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-role-name {
  color: #9da8b2;
  font-size: 0.75rem;
}
.sidebar-role-menu {
  min-width: 14rem;
}
.sidebar-role-menu .dropdown-item.active {
  background: #c8202f;
}
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.3rem;
}
.status-dot.online {
  background: #2bb673;
  box-shadow: 0 0 0 3px #2bb67322;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template: var(--topbar-height) 1fr / var(--sidebar-width) minmax(0, 1fr) var(--context-width);
  grid-template-areas: 'top top top' 'nav main context';
}
.topbar {
  grid-area: top;
  background: var(--lx-ink);
  color: white;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1040;
}
.top-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
  text-decoration: none;
  font-size: 1.15rem;
}
.incident-context {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  text-align: right;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.incident-context.d-none + .top-actions {
  margin-left: auto;
}
.connection-pill {
  background: #ffffff13;
  border: 1px solid #ffffff1e;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}
.sidebar {
  grid-area: nav;
  background: var(--lx-navy) !important;
  color: white;
  border-right: 1px solid #0002;
}
.module-nav {
  padding: 0.75rem;
}
.module-nav-entry {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.module-nav-entry:has(> .nav-link.d-none) {
  display: none;
}
.module-nav-entry .nav-link {
  flex: 1 1 auto;
  min-width: 0;
}
.module-open-window {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: #9da8b2;
}
.module-open-window:hover,
.module-open-window:focus-visible {
  color: #fff;
  background: #ffffff18;
}
.module-nav .nav-link {
  color: #cbd3da;
  border-radius: 0.5rem;
  margin: 0.12rem 0;
  padding: 0.72rem 0.8rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 600;
}
.module-nav .nav-link:hover,
.module-nav .nav-link.active {
  background: #ffffff12;
  color: white;
}
.module-nav .nav-link.active {
  box-shadow: inset 3px 0 var(--lx-red);
}
.user-card {
  padding: 1rem;
  border-top: 1px solid #ffffff12;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.user-card small {
  display: block;
  color: #9da8b2;
}
.avatar {
  background: var(--lx-red);
  border: 0;
  color: #fff;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.avatar:hover,
.avatar:focus-visible {
  background: #a71825;
  box-shadow: 0 0 0 0.2rem #ffffff26;
}
.commander-gps-toggle {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff2a;
  background: transparent;
  color: #ff6b6b;
}
.commander-gps-toggle.is-active {
  color: #2ecc71;
  border-color: #2ecc7155;
}
.commander-gps-toggle:hover,
.commander-gps-toggle:focus-visible {
  border-color: #ffffff55;
}
.main-content {
  grid-area: main;
  padding: 1.5rem;
  overflow: auto;
}
.context-panel {
  grid-area: context;
  background: white;
  border-left: 1px solid var(--lx-border);
  overflow: auto;
}
.context-head {
  padding: 1.25rem;
  border-bottom: 1px solid var(--lx-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.context-head h2 {
  font-size: 1.15rem;
  margin: 0.2rem 0 0;
}
.context-content {
  padding: 1.25rem;
}
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.metric-card {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px #18212a10;
}
.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: #c8202f12;
  color: var(--lx-red);
  font-size: 1.2rem;
}
.empty-state {
  border: 1px dashed #bdc5cd;
  border-radius: 0.9rem;
  background: white;
  padding: 3rem 1rem;
  text-align: center;
}
.empty-state i {
  font-size: 2.5rem;
  color: #89949f;
}
.context-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 0;
  background: #f4f6f8;
  border-radius: 0.6rem;
  margin-bottom: 0.6rem;
  text-align: left;
  font-weight: 600;
}
.context-action:hover {
  background: #e9edf0;
}
.placeholder-page {
  max-width: 850px;
}
.sighter-readonly-module #main-content #operation-create,
.sighter-readonly-module #main-content #roster-new-vehicle,
.sighter-readonly-module #main-content .vehicle-status-button,
.sighter-readonly-module #main-content .add-child-section,
.sighter-readonly-module #main-content .section-org-add,
.sighter-readonly-module #main-content .map-draw-tools,
.sighter-readonly-module #main-content #map-place-object,
.sighter-readonly-module #main-content #map-vehicle-list,
.sighter-readonly-module #main-content .map-create-incident-map,
.sighter-readonly-module #main-content .logbook-composer {
  display: none !important;
}
.sighter-readonly-module #main-content .resource-hierarchy-row,
.sighter-readonly-module #main-content .section-context-target {
  cursor: default;
}
@media (max-width: 1199.98px) {
  .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    grid-template-areas: 'top top' 'nav main';
  }
  .context-panel {
    position: fixed;
    z-index: 1050;
    right: 0;
    top: var(--topbar-height);
    bottom: 0;
    width: min(92vw, var(--context-width));
    transform: translateX(105%);
    transition: transform 0.2s ease;
    box-shadow: -8px 0 24px #1113;
  }
  .context-panel.open {
    transform: none;
  }
}
@media (max-width: 991.98px) {
  .app-shell {
    display: block;
    padding-top: var(--topbar-height);
  }
  .topbar {
    height: var(--topbar-height);
    position: fixed;
    inset: 0 0 auto;
  }
  .sidebar {
    width: min(86vw, var(--sidebar-width)) !important;
  }
  .main-content {
    padding: 1rem;
  }
  .incident-context {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .login-card {
    padding: 1.5rem;
  }
  .topbar {
    padding: 0 0.7rem;
  }
  .main-content {
    padding: 0.8rem;
  }
  .page-title {
    font-size: 1.4rem;
  }
}
.vehicle-designation {
  display: block;
  font-size: 0.78em;
  font-weight: 400;
  color: #6c757d;
  line-height: 1.25;
  margin-top: 0.08rem;
}

/* Lageone design system */
:root {
  --lx-red: #e53935;
  --lx-red-dark: #c62828;
  --lx-ink: #0d1b2a;
  --lx-navy: #1b263b;
  --lx-slate: #49515a;
  --lx-bg: #f2f4f7;
  --lx-border: #d1d5db;
}
.login-shell {
  background: radial-gradient(circle at 20% 20%, #2e3641 0, #1b263b 42%, #0a1018 100%);
}
.brand-mark {
  width: 54px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 16px #e5393540);
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-mark.small {
  width: 34px;
  height: 42px;
  border-radius: 0;
  filter: none;
}
.brand-block h1 span,
.top-brand strong span {
  color: var(--lx-red);
}
.brand-block h1,
.top-brand strong {
  font-family: Montserrat, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-block-logo {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
}
.lageone-logo {
  display: block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.lageone-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lageone-logo-login {
  width: 132px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.lageone-logo-header {
  width: 52px;
  aspect-ratio: 1;
}
@media (max-width: 575.98px) {
  .lageone-logo-header {
    width: 44px;
  }
  .lageone-logo-login {
    width: 112px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold,
.btn,
.nav-link,
.badge {
  font-family: Montserrat, Arial, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
.fw-semibold,
.fw-bold {
  font-weight: 600 !important;
}
.btn-danger,
.text-bg-danger {
  --bs-btn-bg: #e53935;
  --bs-btn-border-color: #e53935;
  --bs-btn-hover-bg: #c62828;
  --bs-btn-hover-border-color: #c62828;
  --bs-btn-active-bg: #0d1b2a;
  --bs-btn-active-border-color: #0d1b2a;
  background-color: #e53935 !important;
  border-color: #e53935 !important;
}
.btn-primary,
.text-bg-primary {
  background-color: #246bfd !important;
  border-color: #246bfd !important;
}
.text-bg-success {
  background-color: #22c55e !important;
}
.text-bg-warning {
  background-color: #ffc107 !important;
  color: #0a1018 !important;
}
