:root {
  --sidebar-width: 220px;
  --sidebar-collapsed-width: 84px;
  --shell-bg: #f4f5f7;
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(17, 24, 39, 0.08);
  --text-main: #111827;
  --text-muted: #6b7280;
  --brand: #111111;
  --accent: #f1f3f5;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --sidebar-bg: #ffffff;
  --sidebar-border: rgba(17, 24, 39, 0.08);
  --sidebar-text: #374151;
  --sidebar-active-bg: #eceef1;
  --sidebar-active-text: #1f2937;
  --sidebar-hover-bg: #f7f7f8;
  --theme-active-bg: #eceef1;
  --theme-active-text: #1f2937;
}

[data-bs-theme="dark"] {
  --shell-bg: #050505;
  --panel-bg: rgba(12, 12, 12, 0.96);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f5f5f5;
  --text-muted: #a3a3a3;
  --brand: #ffffff;
  --accent: #141414;
  --shadow-soft: 0 20px 48px rgba(0, 0, 0, 0.42);
  --sidebar-bg: #000000;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: rgba(255, 255, 255, 0.82);
  --sidebar-active-bg: #1a1a1a;
  --sidebar-active-text: #f5f5f5;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
  --theme-active-bg: #1a1a1a;
  --theme-active-text: #f5f5f5;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-main);
  background: var(--shell-bg);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  text-decoration: none;
}

.app-shell {
  overflow-x: hidden;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  transition: width 0.25s ease, transform 0.25s ease, background 0.25s ease;
  border-right: 1px solid var(--sidebar-border);
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.5rem 1rem;
  margin: 0;
  border-bottom: 1px solid var(--sidebar-border);
  box-sizing: border-box;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sidebar-nav {
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem 1rem 1rem;
  flex: 1 1 auto;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.45rem 0.85rem 0.6rem;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
}

.theme-switcher--sidebar {
  flex-shrink: 0;
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
  padding: 0;
  gap: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.theme-switcher--sidebar-solo .btn-theme--sidebar-flip {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
  color: color-mix(in srgb, var(--sidebar-text) 72%, transparent);
}

.theme-switcher--sidebar-solo .btn-theme--sidebar-flip i {
  font-size: 0.95rem;
  line-height: 1;
}

.theme-switcher--sidebar-solo .btn-theme--sidebar-flip:hover {
  color: var(--sidebar-text);
  background: var(--sidebar-hover-bg);
}

.theme-switcher--sidebar-solo .btn-theme--sidebar-flip.active {
  background: transparent;
  color: color-mix(in srgb, var(--sidebar-text) 72%, transparent);
}

html:not([data-bs-theme="dark"]) .btn-theme--sidebar-flip[data-theme-value="light"],
html[data-bs-theme="dark"] .btn-theme--sidebar-flip[data-theme-value="dark"] {
  display: none;
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-footer-btn:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text);
}

.sidebar-footer-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sidebar-text) 35%, transparent);
  outline-offset: 2px;
}

.nav-link-settings {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
}

.settings-modal {
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: var(--panel-bg);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.settings-modal-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--panel-border);
}

.settings-modal-header .modal-title {
  font-size: 0.98rem;
  line-height: 1.1;
}

.settings-modal-body {
  padding: 1rem;
}

/* Settings modal tabs: match Flights tab styling */
.settings-modal .nav-tabs {
  border-bottom-color: var(--panel-border);
}

.settings-modal .nav-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  padding-left: 0;
  padding-right: 1rem;
}

.settings-modal .nav-tabs .nav-link.active,
.settings-modal .nav-tabs .nav-link:hover,
.settings-modal .nav-tabs .nav-link:focus-visible {
  color: var(--text-main);
  background: transparent;
  border-color: transparent transparent var(--text-main) transparent;
}

.settings-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-top: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--panel-bg) 88%, var(--text-main) 12%);
}

.settings-modal-footer .btn {
  min-width: 110px;
}

.search-preview-modal-dialog {
  max-width: min(92vw, 1600px);
}

.search-preview-modal {
  min-height: min(88vh, 980px);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: var(--panel-bg);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.search-preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--panel-border);
}

.search-preview-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-preview-modal-body {
  position: relative;
  padding: 0;
  min-height: 70vh;
  background: #eef1f5;
}

.iops-page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(226, 231, 236, 0.78);
  backdrop-filter: blur(2.5px) saturate(0.9);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.iops-page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.iops-page-loader-card {
  min-width: min(18rem, 92vw);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--panel-border) 82%, transparent 18%);
  background: color-mix(in srgb, var(--panel-bg) 94%, white 6%);
  box-shadow: var(--shadow-soft);
}

.iops-loader-brand,
.iops-inline-loader {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.iops-loader-brand::before,
.iops-inline-loader::before {
  content: "";
  position: absolute;
  inset: -0.5rem;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.35);
}

.iops-loader-brand::after,
.iops-inline-loader::after {
  content: "";
  position: absolute;
  inset: -0.5rem;
  border-radius: 999px;
  border: 3px solid transparent;
  border-top-color: #8f1439;
  border-right-color: #c81f59;
  animation: iops-loader-progress 1.25s linear infinite;
}

.iops-loader-brand-asset,
.iops-inline-loader-asset {
  display: none;
  object-fit: contain;
}

[data-bs-theme="light"] .iops-loader-brand-asset-light,
[data-bs-theme="light"] .iops-inline-loader-asset-light,
:root:not([data-bs-theme="dark"]) .iops-loader-brand-asset-light,
:root:not([data-bs-theme="dark"]) .iops-inline-loader-asset-light {
  display: block;
}

[data-bs-theme="dark"] .iops-loader-brand-asset-dark,
[data-bs-theme="dark"] .iops-inline-loader-asset-dark {
  display: block;
}

.iops-loader-brand {
  width: 3.15rem;
  height: 3.15rem;
  background: rgba(255, 255, 255, 0.88);
}

.iops-loader-copy {
  display: grid;
  gap: 0.15rem;
}

.iops-loader-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
}

.iops-loader-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.iops-inline-loader {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.84);
}

.iops-inline-loader::before,
.iops-inline-loader::after {
  inset: -0.28rem;
}

@keyframes iops-loader-progress {
  to {
    transform: rotate(360deg);
  }
}

.search-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(226, 231, 236, 0.76);
  backdrop-filter: blur(2px) saturate(0.9);
}

.search-preview-frame {
  width: 100%;
  min-height: 70vh;
  height: min(78vh, 900px);
  border: 0;
  background: var(--body-bg);
  opacity: 1;
  transition: opacity 0.15s ease;
}

.search-preview-frame.is-loading {
  opacity: 0.2;
}

[data-bs-theme="dark"] .search-preview-modal {
  background: #0b0b0c;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .search-preview-modal-body {
  background: #050607;
}

[data-bs-theme="dark"] .search-preview-loading {
  background: rgba(8, 10, 14, 0.76);
  color: #f3f4f6;
}

[data-bs-theme="dark"] .iops-page-loader {
  background: rgba(8, 10, 14, 0.78);
}

[data-bs-theme="dark"] .iops-page-loader-card {
  background: rgba(10, 12, 14, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .iops-loader-brand,
[data-bs-theme="dark"] .iops-inline-loader {
  background: rgba(17, 19, 24, 0.9);
}

[data-bs-theme="dark"] .iops-loader-brand::before,
[data-bs-theme="dark"] .iops-inline-loader::before {
  border-color: rgba(71, 85, 105, 0.55);
}

[data-bs-theme="dark"] .search-preview-frame {
  background: #050607;
}

.popup-shell {
  min-height: 100vh;
  background: transparent;
}

.popup-page-content {
    min-height: 100vh;
    padding: 1rem;
  }

  .startup-shell {
    min-height: 100vh;
    margin: 0;
    background:
      radial-gradient(circle at top, color-mix(in srgb, var(--brand-accent) 16%, transparent), transparent 36%),
      linear-gradient(180deg, color-mix(in srgb, var(--body-bg) 92%, #0b0f14 8%), var(--body-bg));
    color: var(--text-main);
  }

  .startup-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
  }

  .startup-card {
    width: min(42rem, 100%);
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-soft);
  }

  .startup-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .startup-title {
    margin: 0.2rem 0 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .startup-copy {
    margin: 0.85rem 0 1.5rem;
    max-width: 58ch;
    color: var(--text-muted);
  }

  .startup-progress {
    height: 0.8rem;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--panel-border) 70%, transparent);
  }

  .startup-progress-bar {
    height: 100%;
    min-width: 8%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 55%, white));
    transition: width 0.35s ease;
  }

  .startup-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    color: var(--text-muted);
  }

  .startup-phases {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .startup-notice {
    margin: 1rem 0 0;
    padding: 0.78rem 0.95rem;
    border: 1px solid color-mix(in srgb, var(--brand-accent) 34%, var(--panel-border));
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--brand-accent) 7%, var(--panel-bg) 93%);
    color: var(--text-main);
    font-size: 0.88rem;
  }

  .startup-phase {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid var(--panel-border);
    background: color-mix(in srgb, var(--panel-bg) 92%, var(--text-main) 8%);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .startup-phase.is-complete {
    border-color: color-mix(in srgb, #2f9e44 55%, var(--panel-border));
    color: var(--text-main);
  }

  .startup-phase-indicator {
    position: relative;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 1.1rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--panel-border) 74%, transparent 26%);
    background: color-mix(in srgb, var(--panel-bg) 96%, var(--text-main) 4%);
  }

  .startup-phase.is-loading .startup-phase-indicator::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid transparent;
    border-top-color: var(--brand-accent);
    border-right-color: color-mix(in srgb, var(--brand-accent) 62%, white 38%);
    animation: startup-phase-spin 0.9s linear infinite;
  }

  .startup-phase.is-complete .startup-phase-indicator {
    border-color: #2f9e44;
    background: #2f9e44;
  }

  .startup-phase.is-complete .startup-phase-indicator::after {
    content: "";
    position: absolute;
    left: 0.33rem;
    top: 0.15rem;
    width: 0.34rem;
    height: 0.58rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .startup-phase-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
  }

  .startup-phase-title,
  .startup-phase-detail {
    min-width: 0;
  }

  .startup-phase-detail {
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .startup-phase.is-complete .startup-phase-detail {
    color: color-mix(in srgb, #2f9e44 56%, var(--text-muted) 44%);
  }

  @keyframes startup-phase-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .startup-warning {
    margin: 1rem 0 0;
    color: #d26a2f;
  }

  .nav-link-simple {
    display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.65rem;
  color: var(--sidebar-text);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link-simple:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text);
}

.nav-link-simple.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
}

.nav-icon {
  width: 1.1rem;
  min-width: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.95;
}

.nav-icon i {
  font-size: 0.95rem;
  line-height: 1;
}

.nav-label {
  line-height: 1;
}

.content-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.25s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.5rem 1rem;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--panel-border);
  box-sizing: border-box;
}

.warmup-banner {
  position: fixed;
  top: calc(0.75rem - 7px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  display: grid;
  gap: 0.55rem;
  max-width: min(880px, calc(100vw - 2rem));
  padding: 0.46rem 0.55rem 0.46rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--panel-bg) 96%, var(--text-main) 4%);
  color: var(--text-main);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  transition: border-radius 0.18s ease, width 0.18s ease, max-width 0.18s ease;
}

.warmup-banner[hidden] {
  display: none !important;
}

.warmup-banner.is-expanded {
  width: min(760px, calc(100vw - 2rem));
  border-radius: 1rem;
  padding: 0.65rem;
}

.warmup-banner-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.warmup-banner-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.warmup-banner-icon i {
  animation: warmup-banner-spin 1.05s linear infinite;
}

.warmup-banner-text {
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(58vw, 640px);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.warmup-banner.is-expanded .warmup-banner-text {
  max-width: none;
}

.warmup-banner-expand,
.warmup-banner-close {
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--text-muted) 75%, transparent);
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.warmup-banner-expand i {
  font-size: 0.78rem;
  transition: transform 0.15s ease;
}

.warmup-banner.is-expanded .warmup-banner-expand i {
  transform: rotate(180deg);
}

.warmup-banner-expand:hover,
.warmup-banner-expand:focus-visible,
.warmup-banner-close:hover,
.warmup-banner-close:focus-visible {
  background: var(--sidebar-hover-bg);
  color: var(--text-main);
  outline: none;
}

.warmup-banner-details {
  width: 100%;
  max-height: min(62vh, 34rem);
  overflow: auto;
  padding-top: 0.62rem;
  border-top: 1px solid color-mix(in srgb, var(--panel-border) 82%, transparent 18%);
}

.warmup-banner-details[hidden] {
  display: none !important;
}

.warmup-detail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.warmup-detail-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.warmup-detail-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.warmup-detail-list {
  display: grid;
  gap: 0.42rem;
}

.warmup-detail-empty,
.warmup-detail-row {
  border: 1px solid color-mix(in srgb, var(--panel-border) 88%, transparent 12%);
  border-radius: 0.72rem;
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text-main) 6%);
}

.warmup-detail-empty {
  padding: 0.7rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.warmup-detail-row {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 0.62rem 0.7rem;
}

.warmup-detail-row.is-cache-child {
  margin-left: 1rem;
}

.warmup-detail-indicator {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.08rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--panel-border) 74%, transparent 26%);
  background: color-mix(in srgb, var(--panel-bg) 96%, var(--text-main) 4%);
}

.warmup-detail-row.is-loading .warmup-detail-indicator::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  border-top-color: var(--brand-accent);
  border-right-color: color-mix(in srgb, var(--brand-accent) 62%, white 38%);
  animation: warmup-banner-spin 0.9s linear infinite;
}

.warmup-detail-row.is-waiting .warmup-detail-indicator::after {
  content: "";
  position: absolute;
  inset: 0.26rem;
  border-radius: inherit;
  background: color-mix(in srgb, var(--text-muted) 58%, transparent 42%);
}

.warmup-detail-row.is-complete {
  border-color: color-mix(in srgb, #2f9e44 48%, var(--panel-border));
}

.warmup-detail-row.is-complete .warmup-detail-indicator {
  border-color: #2f9e44;
  background: #2f9e44;
}

.warmup-detail-row.is-complete .warmup-detail-indicator::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.12rem;
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.warmup-detail-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.warmup-detail-phase-title,
.warmup-detail-phase-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}

.warmup-detail-phase-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.warmup-detail-phase-detail {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.warmup-detail-row.is-complete .warmup-detail-phase-detail {
  color: color-mix(in srgb, #2f9e44 56%, var(--text-muted) 44%);
}

.warmup-detail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.62rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--brand-accent) 32%, var(--panel-border));
  border-radius: 0.78rem;
  background: color-mix(in srgb, var(--brand-accent) 7%, var(--panel-bg) 93%);
}

.warmup-detail-action-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.warmup-detail-action-title {
  font-size: 0.84rem;
  font-weight: 800;
}

.warmup-detail-action-text {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.warmup-detail-action-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.48rem 0.78rem;
  background: var(--text-main);
  color: var(--panel-bg);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.warmup-detail-action-button:hover,
.warmup-detail-action-button:focus-visible {
  background: color-mix(in srgb, var(--text-main) 86%, var(--brand-accent) 14%);
  outline: none;
}

.warmup-detail-action-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 575.98px) {
  .warmup-detail-action {
    align-items: stretch;
    flex-direction: column;
  }

  .warmup-detail-action-button {
    width: 100%;
    justify-content: center;
  }
}

@keyframes warmup-banner-spin {
  to {
    transform: rotate(360deg);
  }
}

.topbar-left,
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-left {
  min-width: 0;
}

.topbar-tools {
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.topbar-quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.topbar-icon-button {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text-main) 6%);
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topbar-icon-button:hover,
.topbar-icon-button:focus-visible,
.topbar-icon-button.is-active,
.topbar-icon-button.show {
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel-bg) 86%);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--panel-border) 72%);
}

.topbar-icon-button::after {
  display: none;
}

.topbar-icon-button i {
  font-size: 0.95rem;
  line-height: 1;
}

.topbar-icon-button .bx {
  font-size: 1.15rem;
  line-height: 1;
}

.topbar-icon-button--badge {
  overflow: visible;
}

.topbar-icon-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.2rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.22rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f87171;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
}

.topbar-apps-menu {
  min-width: 19rem;
  padding: 0.55rem;
  border-radius: 1rem;
  border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--panel-bg) 96%, var(--text-main) 4%);
  box-shadow: var(--shadow-soft);
}

.topbar-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.topbar-app-link {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.95rem 0.55rem 0.8rem;
  border-radius: 0.85rem;
  color: var(--text-main);
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.topbar-app-link:hover,
.topbar-app-link:focus-visible {
  background: color-mix(in srgb, var(--accent) 14%, var(--panel-bg) 86%);
  color: var(--text-main);
  outline: none;
}

.topbar-app-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--panel-bg) 90%, var(--text-main) 10%);
  color: var(--text-main);
  font-size: 1rem;
}

.topbar-app-label {
  font-size: 0.82rem;
  line-height: 1.25;
}

.topbar-title,
.hero-title,
.panel-title {
  margin: 0;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.section-kicker,
.metric-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.search-form {
  width: 100%;
}

.search-shell {
  position: relative;
  width: 300px;
  max-width: min(100%, 300px);
  flex: 0 0 300px;
  min-width: 0;
}

.search-shell .search-form {
  width: 100%;
}

.search-input {
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-main);
  min-height: 36px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  box-shadow: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(460px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  z-index: 1200;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0.4rem;
  background: color-mix(in srgb, var(--panel-bg) 97%, var(--shell-bg) 3%);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.78rem 0.85rem;
  border-radius: 0.75rem;
  color: var(--text-main);
  transition: background 0.14s ease, color 0.14s ease;
}

.search-result-item + .search-result-item {
  border-top: 1px solid var(--panel-border);
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: var(--sidebar-hover-bg);
  color: var(--text-main);
  outline: none;
}

.search-result-icon,
.search-result-image {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-result-icon {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-size: 0.92rem;
}

.search-result-icon i {
  font-size: 1.84rem;
  line-height: 1;
}

.search-result-image {
  object-fit: cover;
  background: var(--accent);
}

.search-result-copy {
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  display: grid;
  gap: 0.15rem;
}

.search-result-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.search-result-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
}

.search-result-source {
  font-size: 0.68rem;
  color: color-mix(in srgb, var(--text-muted) 70%, transparent);
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}

.search-result-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.search-result-empty {
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.search-results-footer {
  padding: 0.55rem 0.35rem 0.2rem;
  border-top: 1px solid var(--panel-border);
}

.search-results-full-button {
  display: block;
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.14s ease, color 0.14s ease;
}

.search-results-full-button:hover,
.search-results-full-button:focus-visible {
  background: var(--sidebar-hover-bg);
  color: var(--text-main);
  outline: none;
}

[data-bs-theme="dark"] .search-results {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

.search-input:focus,
.btn-theme:focus,
.menu-toggle:focus {
  border-color: rgba(120, 120, 120, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(140, 140, 140, 0.12);
}

.theme-switcher {
    display: inline-flex;
    gap: 0.2rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--panel-border);
  }

.btn-theme {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
  }

.btn-theme.active {
  background: var(--theme-active-bg);
  color: var(--theme-active-text);
}

.theme-switcher--menu {
  width: 100%;
  justify-content: center;
}

.theme-switcher--user-panel {
  width: auto;
  flex-shrink: 0;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--panel-bg) 90%, var(--text-main) 10%);
  border: 1px solid var(--panel-border);
}

.theme-switcher--user-panel .btn-theme {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.88rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
}

.theme-switcher--user-panel .btn-theme:hover {
  color: var(--text-main);
  background: color-mix(in srgb, var(--panel-bg) 75%, var(--text-main) 25%);
}

.theme-switcher--user-panel .btn-theme.active {
  background: var(--theme-active-bg);
  color: var(--theme-active-text);
}

.user-menu-dropdown .dropdown-menu {
  z-index: 1250;
  min-width: 17.5rem;
  max-width: 22rem;
  border-radius: 0.85rem;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.45rem 0.15rem 0.15rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-bg) 92%, var(--text-main) 8%);
  color: var(--text-main);
  line-height: 1;
}

.user-menu-toggle:hover,
.user-menu-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--panel-border) 60%, var(--text-main) 40%);
  background: color-mix(in srgb, var(--panel-bg) 96%, var(--text-main) 4%);
}

.user-menu-toggle::after {
  display: none;
}

.user-menu-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--panel-border);
  background: var(--shell-bg);
}

.user-menu-avatar--fallback {
  object-fit: contain;
  padding: 4px;
}

.user-menu-chevron {
  color: var(--text-muted);
  font-size: 0.7rem;
  padding-right: 0.15rem;
  display: inline-flex;
}

.user-menu-header {
  padding: 0.65rem 0.85rem 0.5rem;
  list-style: none;
}

.user-menu-header-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.user-menu-header-photo {
  flex-shrink: 0;
}

.user-menu-header-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--panel-border);
  background: var(--shell-bg);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text-main) 8%, transparent);
}

.user-menu-header-avatar--fallback {
  object-fit: contain;
  padding: 0.5rem;
}

.user-menu-header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 0.15rem;
}

.user-menu-name {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  color: var(--text-main);
}

.user-menu-meta {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.user-menu-pill {
  background: rgba(17, 24, 39, 0.92);
  color: #ffffff;
  font-weight: 600;
}

[data-bs-theme="dark"] .user-menu-pill {
  background: rgba(255, 255, 255, 0.92);
  color: #060606;
}

.user-menu-divider {
  margin: 0.35rem 0.5rem;
  opacity: 1;
  border-color: var(--panel-border);
}

.user-menu-panel .user-menu-theme-row.dropdown-item-text {
  margin: 0 0.35rem;
  width: calc(100% - 0.7rem);
  border-radius: 0.45rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.5;
}

.user-menu-panel .dropdown-item {
  border-radius: 0.45rem;
  margin: 0 0.35rem;
  width: calc(100% - 0.7rem);
}

.user-menu-panel .dropdown-item:active {
  color: inherit;
}

.user-menu-panel form .dropdown-item {
  width: 100%;
  margin: 0;
  border-radius: 0.45rem;
}

.menu-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text-main);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  flex: 0 0 auto;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.page-content {
  padding: 1.5rem;
}

.hero-panel,
.panel-card,
.metric-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero-copy {
  max-width: 64ch;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-action-list {
    width: min(52rem, 100%);
    margin-left: 0;
}

.admin-action-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.85rem;
}

.admin-action-item .app-description {
    max-width: 72ch;
}

.admin-action-item .app-actions {
    width: 100%;
    justify-content: flex-start;
}

@media (max-width: 767.98px) {
  .admin-action-item {
      flex-direction: column;
    align-items: stretch;
  }

  .admin-action-item .app-actions {
    justify-content: flex-start;
  }
}

.stats-grid,
.content-grid {
  display: grid;
  gap: 1.25rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.metric-card,
.panel-card {
  padding: 1.5rem;
}

.metric-card h3 {
  margin: 0.55rem 0;
  font-size: 1.9rem;
}

.metric-trend,
.activity-row span,
.panel-card p {
  color: var(--text-muted);
}

.trend-up {
  color: #2f855a;
}

.trend-down {
  color: #b45309;
}

.content-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.activity-list {
  display: grid;
  gap: 0.85rem;
}

.activity-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  background: var(--accent);
}

.accent-card {
  background: var(--panel-bg);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1025;
}

.sidebar-open .sidebar-backdrop {
  display: block;
}

.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .content-area {
  margin-left: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-label {
  display: none;
}

.sidebar-collapsed .sidebar-top,
.sidebar-collapsed .nav-link-simple {
  justify-content: center;
}

.sidebar-collapsed .sidebar-nav {
  gap: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  overflow: visible;
}

.sidebar-collapsed .brand {
  justify-content: center;
}

.sidebar-collapsed .sidebar {
  overflow: visible;
}

.sidebar-collapsed .nav-link-simple,
.sidebar-collapsed .nav-submenu-summary {
  position: relative;
}

.sidebar-collapsed .nav-link-simple::after,
.sidebar-collapsed .nav-submenu-summary::after {
  content: attr(data-nav-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 0.7rem);
  transform: translateY(-50%);
  display: none;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.7rem;
  background: var(--panel-bg);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  z-index: 1045;
}

.sidebar-collapsed .nav-link-simple:hover::after,
.sidebar-collapsed .nav-link-simple:focus-visible::after,
.sidebar-collapsed .nav-submenu-summary:hover::after,
.sidebar-collapsed .nav-submenu-summary:focus-visible::after {
  display: block;
}

@media (max-width: 1199.98px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(82vw, 280px);
  }

  .content-area,
  .sidebar-collapsed .content-area {
    margin-left: 0;
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .topbar {
    flex-wrap: wrap;
  }

  .topbar-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-form {
    flex: 1 1 220px;
  }

  .topbar-apps-menu {
    min-width: min(19rem, calc(100vw - 2rem));
  }

  .topbar-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .page-content,
  .topbar {
    padding: 1rem;
  }

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

  .activity-row {
    flex-direction: column;
  }
}


.log-panel {
  padding: 1.5rem;
}

.log-table {
  margin-bottom: 0;
}

.log-table th {
  white-space: nowrap;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.log-table td {
  vertical-align: top;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
  font-size: 0.78rem;
  font-weight: 600;
}

.log-subtext {
  max-width: 24rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  word-break: break-word;
}

div.dt-container .dt-layout-row {
  margin: 0.6rem 0;
}

div.dt-container .dt-search input,
div.dt-container .dt-length select {
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel-bg);
  color: var(--text-main);
}

div.dt-container .dt-input {
  padding: 0.35rem 0.6rem;
}

div.dt-container .dt-paging .dt-paging-button {
  border-radius: 0.5rem;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--sidebar-active-bg) !important;
  color: var(--sidebar-active-text) !important;
  border-color: transparent !important;
}

table.dataTable thead th {
  border-bottom: 1px solid var(--panel-border);
}

table.dataTable tbody td {
  border-top: 1px solid var(--panel-border);
}

div.dt-container .dt-layout-row:first-child {
  align-items: center;
}

div.dt-container .dt-search {
  margin-left: auto;
}

div.dt-container .dt-search input.form-control,
div.dt-container .dt-length select.form-select {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--text-main);
}

div.dt-container .dt-column-order {
  opacity: 0.6;
}

table.dataTable thead th {
  cursor: pointer;
}

.log-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: color-mix(in srgb, var(--panel-bg) 92%, var(--text-main) 8%);
  --bs-table-striped-color: var(--text-main);
  --bs-table-hover-bg: color-mix(in srgb, var(--panel-bg) 88%, var(--text-main) 12%);
  --bs-table-hover-color: var(--text-main);
  border-color: var(--panel-border);
}

[data-bs-theme="dark"] .log-table {
  --bs-table-striped-bg: color-mix(in srgb, var(--panel-bg) 82%, #ffffff 6%);
  --bs-table-hover-bg: color-mix(in srgb, var(--panel-bg) 74%, #ffffff 10%);
}

div.dt-container .row {
  align-items: center;
  margin: 0.5rem 0;
}

div.dt-container .dataTables_filter,
div.dt-container .dt-search {
  text-align: right;
}

div.dt-container .dataTables_filter input,
div.dt-container .dataTables_length select,
div.dt-container .dt-search input,
div.dt-container .dt-length select {
  border: 1px solid var(--panel-border);
  border-radius: 0.65rem;
  background: var(--panel-bg);
  color: var(--text-main);
}

div.dt-container .dataTables_filter input,
div.dt-container .dt-search input {
  margin-left: 0.5rem;
  min-width: 220px;
}

div.dt-container .dataTables_paginate .paginate_button.current,
div.dt-container .dataTables_paginate .paginate_button.current:hover,
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--sidebar-active-bg) !important;
  color: var(--sidebar-active-text) !important;
  border-color: transparent !important;
}

table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 1px solid var(--panel-border) !important;
}

table.dataTable tbody th,
table.dataTable tbody td {
  border-top: 1px solid var(--panel-border) !important;
}

table.dataTable thead th {
  cursor: pointer;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .dt-orderable-asc,
table.dataTable thead .dt-orderable-desc {
  position: relative;
}

.app-list {
  display: grid;
  gap: 1rem;
}

.app-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text-main) 6%);
}

.app-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.app-description,
.app-meta {
  margin: 0;
  color: var(--text-muted);
}

.app-meta {
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.app-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-bg) 92%, #000 8%);
  color: var(--text-main);
  font-size: 0.78rem;
}

@media (max-width: 767.98px) {
  .app-item {
    flex-direction: column;
  }

  .app-actions {
    justify-content: flex-start;
  }

  .search-page-form {
    min-width: 0;
    width: 100%;
  }

  .search-page-form-row {
    flex-direction: column;
  }
}

.search-page-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

.search-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-page-summary {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.search-page-form {
  min-width: min(100%, 460px);
}

.search-page-form-row {
  display: flex;
  gap: 0.75rem;
}

.search-page-form-row .search-input {
  flex: 1 1 auto;
}

.search-page-results {
  display: grid;
  gap: 0.9rem;
}

.search-page-result {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text-main) 6%);
  color: var(--text-main);
  transition: background 0.14s ease, border-color 0.14s ease;
}

.search-page-result:hover,
.search-page-result:focus-visible {
  background: var(--sidebar-hover-bg);
  border-color: color-mix(in srgb, var(--panel-border) 70%, var(--text-main) 30%);
  outline: none;
}

.search-page-result-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.search-page-keywords {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.search-page-empty {
  padding: 1.2rem 0;
  color: var(--text-muted);
}

.app-admin-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.app-upload-form {
  display: grid;
  gap: 1rem;
}

.setup-form-section {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.setup-form-section-accent {
  border-color: rgba(122, 162, 255, 0.18);
  background: rgba(122, 162, 255, 0.04);
}

.compact-list {
  gap: 0.75rem;
}

.compact-list .app-item {
  padding: 0.85rem 1rem;
}

@media (max-width: 1199.98px) {
  .app-admin-grid {
    grid-template-columns: 1fr;
  }
}

.inline-action-form {
  display: inline-flex;
}

.restart-panel {
  max-width: 42rem;
}

.nav-category {
  display: grid;
  gap: 0.2rem;
}

.nav-category + .nav-category {
    margin-top: 0.9rem;
  }

  .nav-category-hub {
    padding: 0.2rem;
    border: 1px solid color-mix(in srgb, var(--panel-border) 82%, var(--brand-accent) 18%);
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--panel-bg) 90%, var(--text-main) 10%);
  }

  .nav-category-hub .nav-category-summary {
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--panel-bg) 84%, var(--brand-accent) 16%);
  }

  .nav-category-hub .nav-category-title {
    padding: 0.25rem 0.9rem 0.2rem;
    letter-spacing: 0.08em;
  }

  .nav-category-hub .nav-category-items {
    padding-top: 0;
  }

.nav-category-summary {
  list-style: none;
  position: relative;
  display: block;
  padding: 0;
  cursor: pointer;
}

.nav-category-summary::-webkit-details-marker {
  display: none;
}

.nav-category-summary::marker {
  content: '';
}

.nav-category-title {
  display: block;
  padding: 0.35rem 0.9rem 0.45rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-category-chevron {
  position: absolute;
  left: -0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--text-muted) 42%, transparent);
  width: 0.7rem;
  min-width: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
}

.nav-category-chevron i {
  font-size: inherit;
}

.nav-category-icon-minus {
  display: none;
}

.nav-category[open] .nav-category-icon-plus {
  display: none;
}

.nav-category[open] .nav-category-icon-minus {
  display: inline-block;
}

.nav-category-items {
  display: grid;
  gap: 0.2rem;
}

.nav-category:not([open]) > .nav-category-items {
  display: none;
}

.sidebar-collapsed .nav-category-summary,
.sidebar-collapsed .nav-category-title,
.sidebar-collapsed .nav-category-chevron {
  display: none;
}

.sidebar-collapsed .sidebar-footer {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  justify-content: flex-start;
}

.sidebar-collapsed .sidebar-footer-btn {
  flex: 1 1 auto;
  justify-content: flex-start;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}





[data-bs-theme="dark"] .settings-modal-footer {
  background: color-mix(in srgb, var(--panel-bg) 99%, #ffffff 1%);
}

.settings-list {
  display: grid;
  gap: 0;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  gap: 1rem;
  align-items: center;
  padding: 0.1rem 0;
}

.settings-row-copy {
  min-width: 0;
}

.settings-row-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.settings-row-description {
  margin-top: 0.3rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.settings-row-control {
  min-width: 0;
}

.settings-theme-select {
  min-height: 34px;
  max-width: 150px;
  margin-left: auto;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-color: var(--panel-border);
  background-color: color-mix(in srgb, var(--panel-bg) 98%, var(--text-main) 2%);
  color: var(--text-main);
  border-radius: 0.65rem;
  box-shadow: none;
}

.settings-theme-select:focus {
  border-color: rgba(120, 120, 120, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(140, 140, 140, 0.12);
}

@media (max-width: 767.98px) {
  .settings-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}







.employee-directory-panel,
.employee-profile-shell {
  display: grid;
  gap: 1.5rem;
}

.employee-directory-copy {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.employee-profile-shell-copy {
  display: grid;
  gap: 0.2rem;
}

.employee-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.employee-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text-main) 6%);
  color: var(--text-main);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.employee-card:hover,
.employee-card:focus-visible {
  transform: translateY(-2px);
  background: var(--sidebar-hover-bg);
  border-color: color-mix(in srgb, var(--panel-border) 70%, var(--text-main) 30%);
  outline: none;
}

.employee-card-image,
.employee-profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.9rem;
  background: var(--accent);
}

.employee-card-copy {
  display: grid;
  gap: 0.2rem;
}

.employee-card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.employee-card-number {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.employee-card-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.employee-profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 1.25rem;
  align-items: start;
}

.employee-profile-summary {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text-main) 6%);
}

.employee-profile-image {
  width: 132px;
  max-width: 132px;
  height: 132px;
  justify-self: start;
  align-self: start;
  border: 1px solid var(--panel-border);
}

.employee-profile-copy {
  display: grid;
  gap: 0.75rem;
}

.employee-profile-copy-top {
  display: grid;
  gap: 0.45rem;
}

.employee-profile-title {
  margin: 0;
  line-height: 1.05;
}

.employee-profile-identity-line {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.employee-profile-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.employee-profile-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid color-mix(in srgb, var(--panel-border) 78%, transparent 22%);
}

.employee-profile-hero-meta-item {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.15rem 0;
}

.employee-profile-hero-meta-item .employee-profile-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.employee-profile-hero-meta-item .employee-profile-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.employee-profile-tabs {
  border-bottom-color: var(--panel-border);
}

.employee-profile-tabs .nav-link {
  color: var(--text-muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding-left: 0;
  padding-right: 1rem;
}

.employee-profile-tabs .nav-link.active,
.employee-profile-tabs .nav-link:hover,
.employee-profile-tabs .nav-link:focus-visible {
  color: var(--text-main);
  background: transparent;
  border-color: transparent transparent var(--text-main) transparent;
}

.employee-profile-content {
  padding-top: 0.5rem;
}

.employee-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.employee-profile-field {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--panel-bg) 95%, var(--text-main) 5%);
}

.employee-profile-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.employee-profile-value {
  font-size: 0.96rem;
  color: var(--text-main);
  word-break: break-word;
}

.employee-profile-json {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--panel-bg) 92%, #000 8%);
  color: var(--text-main);
  font-size: 0.8rem;
  overflow: auto;
}

.contact-section-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.65rem;
  align-items: start;
}

.contact-section-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--panel-bg) 95%, #000 5%);
}

.contact-section-row {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.1rem;
  align-items: start;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--panel-border) 82%, transparent 18%);
}

.contact-section-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
}

.contact-section-value {
  font-size: 0.9rem;
  color: var(--text-main);
  word-break: break-word;
  line-height: 1.5;
}

.grouped-record-shell {
  display: grid;
  gap: 0.75rem;
}

.grouped-record-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.grouped-record-caption {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.grouped-record-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-bg) 96%, #000 4%);
}

.grouped-record-toggle-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  padding: 0.34rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.grouped-record-toggle-button.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
}

.grouped-record-table-wrap {
  border: 1px solid var(--panel-border);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--panel-bg) 96%, #000 4%);
  overflow: auto;
}

.grouped-record-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.grouped-record-table th,
.grouped-record-table td {
  padding: 0.72rem 0.9rem;
  vertical-align: top;
  border-bottom: 1px solid color-mix(in srgb, var(--panel-border) 84%, transparent 16%);
}

.grouped-record-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: nowrap;
  background: color-mix(in srgb, var(--panel-bg) 92%, #000 8%);
  position: sticky;
  top: 0;
  z-index: 1;
}

.grouped-record-table tbody td {
  font-size: 0.92rem;
  color: var(--text-main);
  word-break: break-word;
  line-height: 1.45;
}

.grouped-record-table tbody tr:last-child td {
  border-bottom: 0;
}

.grouped-record-table-listing tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--panel-bg) 92%, #000 8%);
}

@media (max-width: 767.98px) {
  .contact-section-list {
    grid-template-columns: 1fr;
  }

  .contact-section-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 0.12rem;
  }

  .grouped-record-toolbar {
    align-items: stretch;
  }

  .grouped-record-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .grouped-record-toggle-button {
    flex: 1 1 0;
  }

  .grouped-record-table-wrap {
    overflow: visible;
  }

  .grouped-record-table,
  .grouped-record-table thead,
  .grouped-record-table tbody,
  .grouped-record-table tr,
  .grouped-record-table th,
  .grouped-record-table td {
    display: block;
    width: 100%;
  }

  .grouped-record-table thead {
    display: none;
  }

  .grouped-record-table tbody tr {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid color-mix(in srgb, var(--panel-border) 84%, transparent 16%);
  }

  .grouped-record-table tbody tr:last-child {
    border-bottom: 0;
  }

  .grouped-record-table tbody td {
    padding: 0.2rem 0;
    border-bottom: 0;
  }

  .employee-profile-header {
    grid-template-columns: 1fr;
  }

  .employee-profile-summary {
    grid-template-columns: 1fr;
  }

  .employee-profile-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-profile-image {
    max-width: 220px;
  }
}
.search-category-groups {
  display: grid;
  gap: 1.4rem;
}

.search-category-group {
  display: grid;
  gap: 0.85rem;
}

.search-category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--panel-border) 82%, transparent 18%);
}

.search-category-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-category-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-cache-groups {
  display: grid;
  gap: 1.4rem;
}

.search-cache-group {
  display: grid;
  gap: 0.85rem;
}

.search-cache-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.search-cache-group-title {
  margin: 0;
}

.search-cache-table td,
.search-cache-table th {
  vertical-align: top;
}

.search-cache-prewrap {
  white-space: normal;
  word-break: break-word;
  min-width: 180px;
}

.flight-profile-shell {
  display: grid;
  gap: 1.25rem;
}

.flight-aircraft-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--panel-border) 84%, transparent 16%);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel-bg) 90%, #fff 10%);
  color: inherit;
  text-decoration: none;
}

.flight-aircraft-card:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--panel-border) 72%);
}

.flight-aircraft-image-fallback {
  display: inline-flex;
  width: 100%;
  aspect-ratio: 1.4;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 0.9rem;
  background: #fff;
  color: #d9dce1;
  font-size: 2rem;
}

.flight-aircraft-copy {
  display: grid;
  gap: 0.55rem;
}

.flight-profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: start;
}

.flight-profile-copy {
  display: grid;
  gap: 0.5rem;
}

.flight-profile-tabs {
  border-bottom-color: var(--panel-border);
}

.flight-profile-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--text-muted);
  background: transparent;
  padding-left: 0;
  padding-right: 1rem;
}

.flight-profile-tabs .nav-link.active,
.flight-profile-tabs .nav-link:hover,
.flight-profile-tabs .nav-link:focus-visible {
  color: var(--text-main);
  background: transparent;
  border-color: transparent transparent var(--text-main) transparent;
}

.flight-profile-content {
  padding-top: 0.35rem;
}

.flight-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.flight-profile-field {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--panel-bg) 95%, var(--text-main) 5%);
}

.flight-profile-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flight-profile-value {
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
}

.flight-profile-json {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--panel-bg) 88%, var(--text-main) 12%);
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
}

.flight-note-list {
  display: grid;
  gap: 1rem;
}

.flight-note-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--panel-border) 88%, #000 12%);
  border-radius: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-bg) 97%, #fff 3%), color-mix(in srgb, var(--panel-bg) 93%, #000 7%));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.flight-note-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--panel-border) 86%, #000 14%);
}

.flight-note-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.flight-note-body {
  padding: 0.85rem 0.95rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--panel-bg) 96%, #000 4%);
  color: var(--text-main);
  line-height: 1.65;
  word-break: break-word;
}

.flight-note-body p:last-child {
  margin-bottom: 0;
}

.flight-note-body strong {
  font-weight: 800;
}

.flight-note-meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.flight-note-meta-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--panel-bg) 92%, #000 8%);
  border: 1px solid color-mix(in srgb, var(--panel-border) 90%, #000 10%);
}

.flight-note-meta-item .flight-profile-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.flight-note-meta-item .flight-profile-value {
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .flight-aircraft-card {
    grid-template-columns: 1fr;
  }

  .flight-aircraft-image,
  .flight-aircraft-image-fallback {
    max-width: 260px;
  }
}







.fleet-card-image {
  object-fit: contain;
  object-position: center center;
  padding: 0.45rem;
  background: #fff;
}


.fleet-card-image-fallback,
.fleet-profile-image-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #d9dce1;
}

.fleet-card-image-fallback i,
.fleet-profile-image-fallback i {
  transform: scaleX(-1);
}

.fleet-card-image-fallback i {
  font-size: 2.5rem;
}

.fleet-profile-image-fallback i {
  font-size: 5rem;
}



.employee-profile-header .fleet-profile-image-fallback {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #d9dce1;
}

.employee-profile-header .fleet-profile-image-fallback i {
  font-size: 5rem;
  transform: scaleX(-1);
}

.fleet-profile-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center center;
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: #fff;
}

.employee-profile-header .fleet-profile-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.75rem !important;
  border-radius: 0.9rem !important;
  background: #fff !important;
}










.grouped-record-col-label {
  width: 11rem;
}

.grouped-record-col-value {
  width: auto;
}

.grouped-record-table-empty {
  padding: 0;
  border-bottom: 0;
}


.grouped-record-table-six {
  table-layout: fixed;
}

.grouped-record-table-six .grouped-record-col-label {
  width: 10rem;
}

.grouped-record-table-six .grouped-record-col-value {
  width: auto;
}

.grouped-record-table-six .grouped-record-table-empty {
  padding: 0;
  border-bottom: 0;
}

@media (max-width: 767.98px) {
  .grouped-record-table-six th,
  .grouped-record-table-six td {
    display: block;
    width: auto;
    white-space: normal;
  }

  .grouped-record-table-six th {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }

  .grouped-record-table-six td {
    padding-top: 0;
  }
}



.employee-profile-value-wrap,
.contact-section-value-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.employee-info-button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  line-height: 1;
}

.employee-info-button:hover,
.employee-info-button:focus-visible {
  color: var(--text-main);
}

.employee-info-card {
  display: grid;
  gap: 1rem;
}

.employee-info-card-image {
  width: min(180px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.9rem;
  background: var(--accent);
}

.employee-info-card-copy {
  display: grid;
  gap: 0.85rem;
}

.employee-info-card-title {
  margin: 0;
  font-size: 1.1rem;
}

.employee-info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.employee-info-card-field {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--panel-bg) 95%, var(--text-main) 5%);
}


.nav-submenu {
  display: grid;
  gap: 0.35rem;
  position: relative;
}

.nav-submenu-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.65rem;
  color: var(--sidebar-text);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-submenu-summary::-webkit-details-marker {
  display: none;
}

.nav-submenu-summary::marker {
  content: '';
}

.nav-submenu-summary:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text);
}

.nav-submenu[open] > .nav-submenu-summary {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-text);
}

.nav-submenu-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.nav-submenu-chevron {
  font-size: 0.8rem;
  transition: transform 0.15s ease;
}

.nav-submenu[open] .nav-submenu-chevron {
  transform: rotate(180deg);
}

.nav-submenu-items {
  display: grid;
  gap: 0.2rem;
  padding-left: 0.65rem;
}

.nav-link-subitem {
  padding-left: 0.75rem;
}

.sidebar-collapsed .nav-submenu-items {
  display: none;
}

.sidebar-collapsed .nav-submenu-summary {
  justify-content: center;
}

.sidebar-collapsed .nav-submenu-chevron {
  display: none;
}

.sidebar-collapsed .nav-submenu:hover,
.sidebar-collapsed .nav-submenu:focus-within {
  z-index: 1040;
}

.sidebar-collapsed .nav-submenu:hover > .nav-submenu-items,
.sidebar-collapsed .nav-submenu:focus-within > .nav-submenu-items {
  position: absolute;
  top: 0;
  left: calc(100% + 0.7rem);
  display: grid;
  min-width: 14rem;
  padding: 0.45rem;
  border: 1px solid var(--panel-border);
  border-radius: 0.9rem;
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.sidebar-collapsed .nav-submenu:hover > .nav-submenu-items .nav-link-simple,
.sidebar-collapsed .nav-submenu:focus-within > .nav-submenu-items .nav-link-simple {
  justify-content: flex-start;
}

.sidebar-collapsed .nav-submenu:hover > .nav-submenu-items .nav-label,
.sidebar-collapsed .nav-submenu:focus-within > .nav-submenu-items .nav-label {
  display: inline;
}

.sidebar-collapsed .nav-submenu:hover > .nav-submenu-items .nav-link-subitem,
.sidebar-collapsed .nav-submenu:focus-within > .nav-submenu-items .nav-link-subitem {
  padding-left: 0.9rem;
}


.search-result-item.active,
.search-results-full-button.active {
  background: var(--sidebar-hover-bg);
  color: var(--text-main);
  outline: none;
}






.search-results-full-button {
  background: color-mix(in srgb, var(--panel-bg) 94%, var(--text-main) 6%);
  color: var(--text-main);
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.search-results-full-button:hover,
.search-results-full-button:focus-visible,
.search-results-full-button.active,
.search-results-full-button.active:hover,
.search-results-full-button.active:focus-visible {
  background: color-mix(in srgb, var(--sidebar-active-bg) 82%, var(--text-main) 18%);
  color: var(--sidebar-active-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-main) 24%, transparent 76%);
  outline: none;
}

/* ----- Branding: theme-aware logos (wwwroot/images/iOpsStudio/Images/) ----- */
.brand-with-logos .brand-logo-stack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.brand-asset {
  display: none !important;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-asset--icon {
  border-radius: 0.5rem;
}

.brand-asset--full {
  max-height: 2rem;
  max-width: min(11rem, 100%);
  width: auto;
  height: auto;
}

html[data-bs-theme="light"] body:not(.sidebar-collapsed) .brand-asset--full.brand-asset--light,
html:not([data-bs-theme="dark"]) body:not(.sidebar-collapsed) .brand-asset--full.brand-asset--light {
  display: block !important;
}

html[data-bs-theme="dark"] body:not(.sidebar-collapsed) .brand-asset--full.brand-asset--dark {
  display: block !important;
}

html[data-bs-theme="light"] body.sidebar-collapsed .brand-asset--icon.brand-asset--light,
html:not([data-bs-theme="dark"]) body.sidebar-collapsed .brand-asset--icon.brand-asset--light {
  display: block !important;
}

html[data-bs-theme="dark"] body.sidebar-collapsed .brand-asset--icon.brand-asset--dark {
  display: block !important;
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.login-card .login-brand-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  margin-bottom: 0;
  gap: 0;
}

.login-brand-text {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.login-brand-short {
  display: inline-grid;
  place-items: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.7rem;
  border-radius: 0.8rem;
  background: var(--accent);
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand-long {
  min-width: 0;
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.login-asset {
  display: none !important;
  object-fit: contain;
}

.login-asset--full {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  align-self: flex-start;
}

html[data-bs-theme="light"] .login-asset--full.login-asset--light,
html:not([data-bs-theme="dark"]) .login-asset--full.login-asset--light {
  display: block !important;
}

html[data-bs-theme="dark"] .login-asset--full.login-asset--dark {
  display: block !important;
}
