@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Roboto-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Roboto-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/RobotoMono-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/RobotoMono-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/RobotoMono-Bold.woff2') format('woff2');
}

:root {
  --bg-0: #070707;
  --bg-1: #0f0f0f;
  --bg-2: #171717;
  --bg-3: #202020;
  --line: #353535;
  --line-strong: #4e4e4e;
  --text: #f1f1f1;
  --text-dim: #a7a7a7;
  --chip-bg: #242424;
  --chip-border: #5a5a5a;
  --medical-ready: #74cf7a;
  --shift-status-active-open: #4e9d62;
  --shift-status-active-warn: #bea33f;
  --flight-status-ready15-bg: rgb(150 214 159 / 18%);
  --flight-status-ready15-border: #95d39f;
  --flight-status-ready15-text: #def8e2;
  --flight-status-ready10-bg: rgb(232 213 122 / 18%);
  --flight-status-ready10-border: #e8d57a;
  --flight-status-ready10-text: #fff5bf;
  --flight-status-ready5-bg: rgb(234 145 145 / 18%);
  --flight-status-ready5-border: #ea9191;
  --flight-status-ready5-text: #ffd9d9;
  --input-bg: var(--bg-1);
  --text-color: var(--text);
  --sb-track: rgba(255, 255, 255, 0.06);
  --sb-thumb: rgba(255, 255, 255, 0.2);
  --sb-thumb-hover: rgba(255, 255, 255, 0.28);
  --table-row-height: 44px;
  --avatar-size: calc(var(--table-row-height) * 0.81);
  --flight-card-max-visible-participants: 11;
  --flight-card-row-height: 24px;
  --flight-card-fixed-height: calc(
    (var(--flight-card-max-visible-participants) * var(--flight-card-row-height)) + 168px
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg-0);
  background-image: radial-gradient(circle at 12% 0%, #1d1d1d, #070707 55%);
  color: var(--text);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

html.staff-i18n-pending #app {
  visibility: hidden;
}

html.staff-i18n-ready #app {
  visibility: visible;
}

#app {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-right: 8px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  padding-left: 8px;
  max-width: 100%;
  overflow-x: hidden;
}

#root {
  max-width: 100%;
  overflow-x: hidden;
}

.guest-layout {
  width: 100%;
}

#app.login-mode #guest-layout,
#app.guest-locked #guest-layout {
  flex: 0 0 100%;
}

#app.login-mode {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-right: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  padding-left: 16px;
}

#app.guest-locked {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(16px + env(safe-area-inset-top));
  padding-right: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  padding-left: 16px;
}

#app.login-mode .app-header,
#app.login-mode .session-meta,
#app.login-mode .flash-message,
#app.login-mode .nav-panel,
#app.login-mode .nav-backdrop,
#app.login-mode .log-panel,
#app.login-mode .route-view:not([data-route='/login']) {
  display: none !important;
}

#app.guest-locked .app-header,
#app.guest-locked .session-meta,
#app.guest-locked .flash-message,
#app.guest-locked .nav-panel,
#app.guest-locked .nav-backdrop,
#app.guest-locked .log-panel,
#app.guest-locked .route-view:not([data-route='/login']) {
  display: none !important;
}

#app.login-mode .app-shell {
  display: block;
  width: 100%;
}

#app.guest-locked .app-shell {
  display: block;
  width: 100%;
}

#app.login-mode .content-panel {
  border: 0;
  background: transparent;
  min-height: auto;
  padding: 0;
}

#app.guest-locked .content-panel {
  border: 0;
  background: transparent;
  min-height: auto;
  padding: 0;
}

#app.login-mode .route-login {
  display: flex;
  justify-content: center;
  width: 100%;
}

#app.guest-locked .route-login {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-bootstrap {
  min-height: calc(100vh - 32px);
  display: grid;
  place-content: center;
  gap: 10px;
  justify-items: center;
}

.auth-bootstrap-indicator {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: auth-spin 1s linear infinite;
}

.auth-bootstrap-text {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

@keyframes auth-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.app-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-right: 8px;
  min-width: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.header-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.app-header h1 {
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 22px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 12px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.state-pill {
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  padding: 5px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.state-pill.state-pill--offline {
  color: #ff4d4f;
}

.state-pill.state-pill--reconnecting {
  color: #e8d57a;
}

.session-meta {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.flash-message {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-dim);
  padding: 8px 10px;
  font-size: 13px;
}

.flash-message:empty {
  display: none;
}

.top-toast-host {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  right: 10px;
  left: 10px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.top-toast {
  width: min(460px, calc(100vw - 20px));
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #1f1f1f, #151515);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  pointer-events: auto;
}

.top-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.top-toast-message {
  flex: 1;
  min-width: 0;
  color: #e3c85b;
  display: flex;
  align-items: center;
  min-height: 22px;
}

.top-toast-close {
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 6px;
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.top-toast-close:hover,
.top-toast-close:focus-visible {
  border-color: var(--line-strong);
  background: #2a2a2a;
  outline: none;
}

@media (max-width: 720px) {
  .top-toast-host {
    left: 8px;
    right: 8px;
    align-items: stretch;
  }

  .top-toast {
    width: 100%;
  }
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.header-help-btn {
  font-family: 'Roboto Mono', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
}

.header-help-btn > span {
  line-height: 1;
}

.header-locale-btn {
  min-width: 46px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-feedback-btn {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Roboto Mono', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.header-feedback-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header-feedback-btn span {
  line-height: 1;
}

.nav-toggle {
  flex: 0 0 auto;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  z-index: 30;
}

.app-shell {
  display: block;
  width: 100%;
}

.nav-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #141414, #0d0d0d);
  padding: 8px 6px 8px 8px;
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  align-content: start;
  width: fit-content;
  min-width: 0;
}

.nav-drawer {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 40;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transform: translateX(calc(-100% - 12px));
  transition: transform 0.18s ease;
}

.nav-drawer::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-group + .nav-group {
  position: relative;
  margin-top: 18px;
}

.nav-group + .nav-group::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 8px;
  top: -9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 0%) 0%,
    rgb(255 255 255 / 18%) 12%,
    rgb(255 255 255 / 44%) 50%,
    rgb(255 255 255 / 18%) 88%,
    rgb(255 255 255 / 0%) 100%
  );
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.04),
    0 0 14px rgb(255 255 255 / 0.06);
}

.nav-group.is-leading {
  margin-top: 0;
}

.nav-group.is-leading::before {
  content: none;
}

.nav-group.is-hidden {
  display: none;
}

.nav-panel a {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  padding: 9px 10px;
  letter-spacing: 0.04em;
  font-size: 13px;
  white-space: nowrap;
}

.nav-panel a.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg-0);
}

.nav-panel a.is-hidden {
  display: none;
}

.content-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #131313, #0b0b0b);
  padding: 10px;
  min-height: 560px;
  min-width: 0;
  margin-left: 0;
}

#app.wallet-topups-mode .content-panel {
  border: 0;
  background: transparent;
  padding: 0;
}

.route-view {
  display: none;
}

.route-view.is-active {
  display: block;
}

.route-view h2 {
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  font-size: 18px;
}

.card-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #171717, #0f0f0f);
  padding: 10px;
  min-width: 0;
}

.login-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #171717, #0f0f0f);
  padding: 14px;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  margin: 0;
}

.login-form input {
  font-size: 15px;
  padding: 10px;
}

.captcha-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  padding: 8px;
  overflow: hidden;
}

.login-error {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
}

.login-error:empty {
  display: none;
}

.visually-hidden-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.no-access-card {
  max-width: 760px;
}

label {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.settings-inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.settings-inline-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

input,
textarea,
select,
button,
code {
  font-family: inherit;
}

input,
textarea,
select,
button {
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  color: var(--text);
  padding: 8px 9px;
  font-size: 14px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-color) !important;
  caret-color: var(--text-color) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  transition: background-color 9999s ease-out 0s;
}

textarea {
  resize: vertical;
}

button {
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quiet-btn {
  border-style: dashed;
  font-weight: 600;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.settings-tabs-card {
  margin-bottom: 12px;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-tab-btn {
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text-dim);
  padding: 8px 12px;
}

.settings-tab-btn.is-active {
  color: var(--text);
  border-color: var(--text);
  background: #262626;
}

.settings-tab-panel {
  margin-bottom: 12px;
}

.settings-price-matrix-wrap {
  overflow: auto;
}

.settings-price-matrix-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.settings-price-matrix-table th,
.settings-price-matrix-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
}

.settings-price-matrix-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101010;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.settings-price-matrix-col-group,
.settings-price-matrix-cell-group {
  text-align: left;
}

.settings-price-matrix-cell-group {
  font-weight: 600;
  white-space: nowrap;
}

.settings-price-matrix-input {
  width: 100%;
  min-width: 88px;
  text-align: right;
}

.settings-price-matrix-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.settings-subsection {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}

.settings-subsection h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.settings-consent-text {
  min-height: 260px;
  resize: vertical;
}

.route-reports {
  --rpt-accent: #4e79a7;
  --rpt-positive: #2e7d32;
  --rpt-negative: #c62828;
  --rpt-warning: #f9a825;
  --rpt-space-1: 6px;
  --rpt-space-2: 10px;
  --rpt-space-3: 12px;
  --rpt-radius: 10px;
  --rpt-font-xs: 12px;
  --rpt-font-sm: 13px;
  --rpt-font-md: 14px;
  --rpt-font-lg: 26px;
  --rpt-chart-font-size: 12px;
  --rpt-chart-row-height: 26px;
  --rpt-control-h: 34px;
  --rpt-dashboard-max-w: 1220px;
  --rpt-kpi-min-col: 198px;
  --rpt-chart-min-h: 228px;
  --rpt-chart-body-min-h: 144px;
  --rpt-chart-max-h: 336px;
}

.route-reports .reports-shell {
  display: grid;
  gap: var(--rpt-space-3);
  align-content: start;
}

.route-reports .reports-page-head {
  display: grid;
  gap: var(--rpt-space-2);
}

.route-reports .reports-page-head-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--rpt-space-2);
  align-items: stretch;
}

.route-reports .reports-page-title-wrap {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.route-reports .reports-service-eyebrow {
  margin: 0;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-reports .reports-page-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.route-reports .reports-page-meta,
.route-reports .reports-service-description {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
}

.route-reports .reports-service-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rpt-space-2);
  align-items: stretch;
}

.route-reports .reports-service-chip {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--rpt-radius) - 6px);
  background: rgba(255, 255, 255, 0.02);
  min-height: 100%;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  align-content: start;
}

.route-reports .reports-service-chip-label {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-reports .reports-service-chip-value {
  color: var(--text);
  font-size: var(--rpt-font-sm);
  line-height: 1.35;
  font-weight: 700;
}

.route-reports .reports-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--rpt-control-h);
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.route-reports .reports-compare-toggle input {
  margin: 0;
}

.route-reports .reports-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: var(--rpt-space-2);
  align-items: center;
  overflow-x: visible;
  padding-bottom: 0;
}

.route-reports .reports-toolbar > * {
  margin: 0;
  align-self: center;
}

.route-reports .reports-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin: 0;
}

.route-reports .reports-toolbar input[type='date'],
.route-reports .reports-toolbar input[type='text'] {
  min-width: 144px;
  min-height: var(--rpt-control-h);
  font-size: var(--rpt-font-xs);
}

.route-reports .reports-toolbar input[type='text'] {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.route-reports .reports-toolbar-context {
  display: inline-flex;
  align-items: center;
  min-height: var(--rpt-control-h);
  color: var(--text);
  font-size: var(--rpt-font-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.route-reports .reports-range-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--rpt-space-2);
  align-items: center;
}

.route-reports .reports-toolbar-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--rpt-space-2);
  align-items: center;
  justify-content: flex-end;
}

.route-reports .reports-toolbar .small-btn,
.route-reports .reports-toolbar button {
  min-height: var(--rpt-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--rpt-font-xs);
  margin: 0;
  align-self: center;
}

.route-reports .reports-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rpt-space-1);
  align-items: center;
}

.route-reports .reports-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--rpt-space-2);
  margin-bottom: 0;
}

.route-reports .reports-tab {
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text-dim);
  padding: 8px 10px;
  font-size: var(--rpt-font-xs);
  line-height: 1.2;
  min-height: var(--rpt-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.route-reports .reports-tab.is-active {
  color: var(--text);
  border-color: var(--text);
  background: #262626;
}

.route-reports .reports-content {
  display: grid;
  gap: var(--rpt-space-3);
  align-content: start;
}

.route-reports .report-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161616, #101010);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  border-radius: var(--rpt-radius);
  padding: var(--rpt-space-3);
}

.route-reports .report-card h3,
.route-reports .report-card h4 {
  margin: 0;
  font-size: var(--rpt-font-md);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.route-reports .report-card > h3,
.route-reports .report-card > h4 {
  margin-bottom: var(--rpt-space-2);
}

.route-reports .reports-meta {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
}

.route-reports .reports-note {
  margin: var(--rpt-space-2) 0 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.4;
}

.route-reports .reports-dashboard {
  display: grid;
  gap: var(--rpt-space-3);
  width: 100%;
  max-width: var(--rpt-dashboard-max-w);
  margin: 0 auto;
}

.route-reports .reports-section {
  display: grid;
  gap: var(--rpt-space-2);
}

.route-reports .reports-section-head {
  display: grid;
  gap: 2px;
}

.route-reports .reports-section-title {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.route-reports .reports-section-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
}

.route-reports .reports-section-body {
  display: grid;
  gap: var(--rpt-space-2);
}

.route-reports .reports-metric-card {
  display: grid;
  gap: var(--rpt-space-2);
  align-content: start;
}

.route-reports .reports-metric-list {
  display: grid;
  gap: 10px;
}

.route-reports .reports-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--rpt-space-2);
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.route-reports .reports-metric-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.route-reports .reports-metric-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.route-reports .reports-metric-label,
.route-reports .reports-metric-hint,
.route-reports .reports-metric-value {
  margin: 0;
}

.route-reports .reports-metric-label {
  color: var(--text);
  font-size: var(--rpt-font-sm);
  line-height: 1.3;
}

.route-reports .reports-metric-hint {
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
}

.route-reports .reports-metric-value {
  color: var(--text);
  font-size: var(--rpt-font-sm);
  line-height: 1.3;
  font-weight: 700;
  white-space: nowrap;
}

.route-reports .reports-signal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--rpt-space-2);
}

.route-reports .reports-signal-card {
  grid-column: span 4;
  display: grid;
  gap: 6px;
  min-height: 132px;
  align-content: start;
  position: relative;
  overflow: hidden;
}

.route-reports .reports-signal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--line-strong);
}

.route-reports .reports-signal-card.is-positive::before {
  background: var(--rpt-positive);
}

.route-reports .reports-signal-card.is-warning::before {
  background: var(--rpt-warning);
}

.route-reports .reports-signal-card.is-negative::before {
  background: var(--rpt-negative);
}

.route-reports .reports-signal-card.is-accent::before {
  background: var(--rpt-accent);
}

.route-reports .reports-signal-eyebrow {
  margin: 0;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-reports .reports-signal-value {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.05;
}

.route-reports .reports-signal-title {
  margin: 0;
  color: var(--text);
  font-size: var(--rpt-font-sm);
  line-height: 1.3;
}

.route-reports .reports-signal-text {
  margin: auto 0 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
}

.route-reports .reports-kpi-grid {
  display: grid;
  gap: var(--rpt-space-2);
  grid-template-columns: repeat(auto-fit, minmax(var(--rpt-kpi-min-col), 1fr));
  align-items: stretch;
}

.route-reports .reports-kpi-grid.reports-kpi-grid--finance,
.route-reports .reports-kpi-grid.reports-kpi-grid--aircraft {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.route-reports .reports-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--rpt-space-1);
  padding: var(--rpt-space-3);
  min-height: 116px;
  overflow: hidden;
}

.route-reports .reports-kpi-label {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.25;
  letter-spacing: 0.04em;
  min-height: 2.45em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.route-reports .reports-kpi-value {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2.2vw, var(--rpt-font-lg));
  font-weight: 800;
  line-height: 1.1;
  min-height: 1.15em;
}

.route-reports .reports-kpi-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.3;
}

.route-reports .reports-kpi-sparkline {
  margin-top: auto;
  width: 100%;
  min-height: 30px;
}

.route-reports .reports-kpi-sparkline .reports-svg {
  width: 100%;
  max-width: none;
  max-height: none;
}

.route-reports .reports-kpi-card.kpi-variant-positive .reports-kpi-value {
  color: var(--rpt-positive);
}

.route-reports .reports-kpi-card.kpi-variant-negative .reports-kpi-value {
  color: var(--rpt-negative);
}

.route-reports .reports-kpi-card.kpi-variant-warning .reports-kpi-value {
  color: var(--rpt-warning);
}

.route-reports .reports-chart-grid {
  display: grid;
  gap: var(--rpt-space-3);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: row dense;
  align-items: stretch;
}

.route-reports .reports-chart-card {
  display: grid;
  gap: var(--rpt-space-2);
  padding: var(--rpt-space-3);
  min-height: var(--rpt-chart-min-h);
  grid-template-rows: auto minmax(var(--rpt-chart-body-min-h), 1fr) auto;
  align-content: stretch;
  overflow: hidden;
}

.route-reports .reports-chart-grid > .span-12 {
  grid-column: span 12;
}

.route-reports .reports-chart-grid > .span-8 {
  grid-column: span 8;
}

.route-reports .reports-chart-grid > .span-6 {
  grid-column: span 6;
}

.route-reports .reports-chart-grid > .span-4 {
  grid-column: span 4;
}

.route-reports .reports-chart-head {
  display: grid;
  gap: var(--rpt-space-1);
  align-content: start;
  min-height: 44px;
}

.route-reports .reports-chart-title {
  margin: 0;
  font-size: var(--rpt-font-md);
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.route-reports .reports-chart-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
}

.route-reports .reports-chart-body {
  min-height: var(--rpt-chart-body-min-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.route-reports .reports-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rpt-space-2);
  margin-top: var(--rpt-space-1);
}

.route-reports .reports-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--rpt-space-1);
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.2;
}

.route-reports .reports-chart-legend-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--rpt-accent);
}

.route-reports .reports-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  display: block;
  margin: 0 auto;
  flex: 0 0 auto;
}

.route-reports .reports-chart-body .reports-svg {
  max-height: var(--rpt-chart-max-h);
}

.route-reports .reports-chart-card.span-4 .reports-chart-body .reports-svg {
  max-height: 280px;
}

.route-reports .reports-chart-card.span-6 .reports-chart-body .reports-svg {
  max-height: 312px;
}

.route-reports .reports-chart-card.span-12 .reports-chart-body .reports-svg {
  max-height: 360px;
}

.route-reports .reports-svg text {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: var(--rpt-chart-font-size);
  line-height: 1.2;
  dominant-baseline: middle;
}

.reports-chart-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: min(320px, calc(100vw - 24px));
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0f0f0f;
  color: var(--text);
  font-size: var(--rpt-font-xs, 12px);
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.route-reports .reports-details-block {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #141414, #101010);
  border-radius: var(--rpt-radius);
  padding: 8px var(--rpt-space-2);
}

.route-reports .reports-detail-section {
  display: grid;
  gap: var(--rpt-space-2);
}

.route-reports .reports-detail-head {
  display: grid;
  gap: 2px;
}

.route-reports .reports-detail-title {
  margin: 0;
  font-size: var(--rpt-font-md);
  line-height: 1.3;
}

.route-reports .reports-detail-subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
}

.route-reports .reports-detail-body {
  display: grid;
  gap: var(--rpt-space-2);
}

.route-reports .reports-details-summary {
  cursor: pointer;
  font-size: var(--rpt-font-xs);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  user-select: none;
}

.route-reports .reports-details-body {
  margin-top: var(--rpt-space-2);
  display: grid;
  gap: var(--rpt-space-2);
}

.route-reports .reports-details-body h3,
.route-reports .reports-details-body h4 {
  margin: 0 0 var(--rpt-space-2);
  font-size: var(--rpt-font-md);
}

.route-reports .admin-table-wrap {
  overflow: auto;
  margin: 0 calc(var(--rpt-space-2) * -1) calc(var(--rpt-space-1) * -1);
  padding: 0 var(--rpt-space-2) var(--rpt-space-1);
}

.route-reports .reports-metric-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.route-reports .reports-metric {
  border: 1px solid var(--line);
  background: #121212;
  padding: var(--rpt-space-2);
}

.route-reports .reports-metric-label {
  color: var(--text-dim);
  font-size: var(--rpt-font-xs);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.route-reports .reports-metric-value {
  margin-top: var(--rpt-space-1);
  font-size: var(--rpt-font-sm);
  line-height: 1.3;
  color: var(--text);
}

.route-reports .report-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  table-layout: auto;
}

.route-reports .report-table th,
.route-reports .report-table td {
  padding: 6px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: var(--rpt-font-xs);
  line-height: 1.35;
  vertical-align: top;
}

.route-reports .report-table th {
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.route-reports .report-table td {
  vertical-align: middle;
}

.route-reports .small-btn {
  min-height: 28px;
  font-size: var(--rpt-font-xs);
  line-height: 1.2;
}

.route-reports .reports-aircraft-types {
  display: grid;
  gap: var(--rpt-space-1);
}

.route-reports .reports-aircraft-types-list {
  display: grid;
  gap: 2px;
}

.route-reports .reports-aircraft-types-line {
  font-size: var(--rpt-font-xs);
  line-height: 1.3;
}

.route-reports .reports-aircraft-types-toggle {
  justify-self: start;
}

.route-reports .reports-ledger-filters {
  margin-bottom: var(--rpt-space-2);
}

.route-reports .reports-search-input {
  width: min(420px, 100%);
  min-width: 260px;
  margin-bottom: var(--rpt-space-2);
  min-height: var(--rpt-control-h);
  font-size: var(--rpt-font-xs);
}

.route-reports .reports-bullet-list {
  display: grid;
  gap: var(--rpt-space-2);
}

.route-reports .reports-bullet-row {
  display: grid;
  gap: var(--rpt-space-1);
}

.route-reports .bar {
  width: 100%;
  height: 7px;
  margin-top: var(--rpt-space-1);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.route-reports .bar::after {
  content: '';
  display: block;
  width: var(--bar-width, 0%);
  height: 100%;
  background: rgba(255, 255, 255, 0.36);
}

@media (max-width: 1080px) {
  .route-reports .reports-chart-grid > .span-8,
  .route-reports .reports-chart-grid > .span-6,
  .route-reports .reports-chart-grid > .span-4 {
    grid-column: span 12;
  }

  .route-reports {
    --rpt-dashboard-max-w: 100%;
    --rpt-chart-max-h: 300px;
  }

  .route-reports .reports-kpi-grid.reports-kpi-grid--finance,
  .route-reports .reports-kpi-grid.reports-kpi-grid--aircraft {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .route-reports .reports-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .route-reports .reports-toolbar {
    grid-template-columns: 1fr;
  }

  .route-reports .reports-toolbar-actions {
    justify-content: flex-start;
  }

  .route-reports .reports-service-chips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .route-reports {
    --rpt-space-2: 8px;
    --rpt-space-3: 10px;
    --rpt-font-lg: 22px;
    --rpt-chart-font-size: 11px;
    --rpt-control-h: 32px;
    --rpt-kpi-min-col: 154px;
    --rpt-chart-min-h: 202px;
    --rpt-chart-body-min-h: 124px;
    --rpt-chart-max-h: 248px;
  }

  .route-reports .reports-page-head-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .route-reports .reports-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(var(--rpt-kpi-min-col), 1fr));
  }

  .route-reports .reports-kpi-grid.reports-kpi-grid--finance,
  .route-reports .reports-kpi-grid.reports-kpi-grid--aircraft {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-reports .reports-kpi-label {
    min-height: 2.35em;
  }

  .route-reports .report-table {
    min-width: 620px;
  }

  .route-reports .reports-search-input {
    min-width: 100%;
  }

  .route-reports .reports-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .route-reports .reports-tab {
    flex: 0 0 auto;
    min-width: 152px;
  }

  .route-reports .reports-signal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .route-reports .reports-signal-card {
    grid-column: span 2;
  }

  .route-reports .reports-metric-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .route-reports .reports-kpi-grid.reports-kpi-grid--finance,
  .route-reports .reports-kpi-grid.reports-kpi-grid--aircraft {
    grid-template-columns: 1fr;
  }
}

.technicians-plain-card,
.technicians-aircraft-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.settings-tts-templates-wrap {
  border: 1px solid var(--line);
  background: #0f0f0f;
  max-height: 580px;
  overflow: auto;
}

.settings-tts-templates-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 960px;
}

.settings-tts-templates-table th,
.settings-tts-templates-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
  font-size: 12px;
}

.settings-tts-templates-table th {
  text-align: left;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.settings-tts-col-key {
  width: 32%;
}

.settings-tts-col-text {
  width: 68%;
}

.settings-tts-template-key {
  margin: 0 0 4px;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 11px;
}

.settings-tts-template-label {
  margin: 0;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.settings-tts-play-btn {
  margin-top: 8px;
  min-width: 36px;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1;
}

.settings-tts-template-text {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 12px;
}

.board-empty-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 12px;
}

.board-open-shift-btn {
  min-width: 260px;
  min-height: 52px;
  font-size: 15px;
}

.board-active-content {
  display: grid;
  gap: 12px;
}

.board-access-note {
  max-width: 520px;
}

.board-flights-section {
  min-width: 0;
}

.board-flights-shell {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.shift-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 5px 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
}

.shift-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.shift-status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
}

.shift-status-actions #shift-close {
  margin-left: auto;
  white-space: nowrap;
}

.shift-status-buttons button,
.shift-status-actions #shift-close {
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: #1a1a1a;
  color: var(--text);
  min-height: 36px;
  padding: 8px 12px;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.shift-status-buttons button.is-active {
  color: #070707;
  border-color: transparent;
}

.shift-status-buttons button[data-shift-status='OPEN'].is-active {
  background: var(--shift-status-active-open);
}

.shift-status-buttons button[data-shift-status='STANDBY_WEATHER'].is-active,
.shift-status-buttons button[data-shift-status='STANDBY'].is-active,
.shift-status-buttons button[data-shift-status='STANDBY_REFUEL'].is-active,
.shift-status-buttons button[data-shift-status='PAUSE_CANOPY'].is-active {
  background: var(--shift-status-active-warn);
}

.shift-status-buttons button:hover,
.shift-status-buttons button:focus-visible,
.shift-status-actions #shift-close:hover,
.shift-status-actions #shift-close:focus-visible {
  border-color: var(--text);
  outline: none;
}

.shift-status-buttons button:disabled,
.shift-status-actions #shift-close:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-head h3 {
  margin: 0;
}

.card-head--flights {
  flex-wrap: wrap;
  row-gap: 8px;
}

.flights-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.flights-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.flights-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.flights-head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.flights-stale-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
}

.flights-stale-filter--bottom-right {
  justify-self: end;
  margin-right: 2px;
}

.flights-stale-filter__input {
  appearance: none;
  margin: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
}

.flights-stale-filter__input::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--text);
  transform: scale(0);
  transition: transform 120ms ease-in-out;
}

.flights-stale-filter__input:checked::after {
  transform: scale(1);
}

.flights-stale-filter__input:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 2px;
}

.board-archive-card {
  margin-top: 12px;
}

#board-archive-flights {
  display: grid;
  gap: 8px;
}

.archive-flight-item {
  border: 1px solid var(--line);
  background: #0f0f0f;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.archive-flight-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.archive-flight-item__status {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.archive-flight-item__meta {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.inline-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.inline-input-row.with-clear {
  grid-template-columns: 1fr auto auto;
}

.autocomplete-clear-btn {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0 8px;
  font-size: 16px;
  line-height: 1;
}

.skydiver-autocomplete-dropdown {
  grid-column: 1 / 2;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  padding: 4px;
  max-height: 220px;
  overflow: auto;
  z-index: 4;
}

.skydiver-autocomplete-list {
  display: grid;
  gap: 4px;
}

.skydiver-autocomplete-option {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #121212;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 8px;
}

.skydiver-autocomplete-option.is-active,
.skydiver-autocomplete-option:hover {
  border-color: var(--line-strong);
  background: #1d1d1d;
}

.skydiver-autocomplete-dropdown .meta-text {
  margin: 0;
  padding: 4px 2px;
}

.hint-text,
.meta-text {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.4;
}

.hidden-block {
  display: none !important;
}

.captcha-widget {
  min-height: 78px;
  margin-bottom: 0;
  background: #101010;
}

.list-box {
  border: 1px solid var(--line);
  background: #0a0a0a;
  min-height: 120px;
  max-height: 300px;
  overflow: auto;
  padding: 8px;
}

.flights-list {
  max-height: 560px;
}

.board-flights-shell #board-flights {
  border: 0;
  background: transparent;
  min-height: 0;
  max-height: none;
  padding: 0 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
}

.flights-list-horizontal {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  max-height: none;
  min-height: 0;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}

.flights-list-horizontal .list-item {
  flex: 0 0 clamp(280px, 30vw, 360px);
  margin-bottom: 0;
}

.flightsScroller {
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) var(--sb-track);
}

.flightsScroller::-webkit-scrollbar {
  height: 10px;
}

.flightsScroller::-webkit-scrollbar-track {
  background: var(--sb-track);
  border-radius: 999px;
}

.flightsScroller::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
  border-radius: 999px;
}

.flightsScroller::-webkit-scrollbar-thumb:hover {
  background: var(--sb-thumb-hover);
}

.admin-table-wrap {
  max-height: 520px;
  padding: 0;
}

.admin-skydivers-card {
  position: relative;
}

.medical-card {
  position: relative;
}

.card.medical-card,
.card.verification-card,
.card.training-card,
.card.admin-skydivers-card,
.card.admin-audit-card {
  border: 0;
  background: transparent;
  padding: 0;
}

.verification-card {
  position: relative;
}

.table-avatar-cell {
  padding: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.table-avatar-cell > .avatar-placeholder {
  margin-left: auto;
  margin-right: auto;
}

th.col-ava,
td.col-ava,
th.col-phone,
td.col-phone,
th.col-name,
td.col-name {
  padding-left: 6px !important;
  padding-right: 6px !important;
}

.avatar-placeholder {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #f5f5f5;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #232323;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.verification-search-row {
  margin-bottom: 10px;
}

.verification-search-row input {
  width: 100%;
}

.verification-table-wrap {
  max-height: 560px;
  padding: 0;
}

.verification-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.verification-table th,
.verification-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
}

.verification-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101010;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.verification-table tbody tr {
  height: var(--table-row-height);
}

.verification-avatar-col {
  width: 48px;
  text-align: center;
}

.verification-phone-col {
  width: 140px;
}

.verification-name-col {
  width: 260px;
}

.verification-first-timer-col {
  width: 130px;
}

.verification-insurance-col {
  width: 120px;
}

.verification-actions-col {
  width: 300px;
}

.verification-phone-cell,
.verification-name-cell {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verification-insurance-cell {
  text-align: center;
}

.verification-insurance-cell.is-expired {
  color: #ff4d4f;
}

.verification-clickable-row {
  cursor: pointer;
}

.verification-clickable-row:hover td {
  background: #171717;
}

.verification-first-timer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
}

.verification-actions-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.verification-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 86px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 55%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 1px 6px rgb(0 0 0 / 25%);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.verification-action-btn:hover,
.verification-action-btn:focus-visible {
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 9%);
  outline: none;
}

.verification-action-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.verification-action-btn.is-true {
  color: #35d07f;
  border-color: rgb(53 208 127 / 45%);
}

.verification-action-btn.is-loading {
  opacity: 0.72;
}

.verification-table-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.verification-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.verification-page-btn {
  min-width: 28px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
}

.verification-page-btn.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: #1f1f1f;
}

.verification-page-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.wallet-topups-grid {
  gap: 0;
  margin-bottom: 0;
}

.wallet-topups-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #171717, #0f0f0f);
  padding: 10px;
  display: grid;
  gap: 14px;
}

.wallet-topups-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.wallet-topups-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wallet-topups-title-row > button {
  margin-left: auto;
  white-space: nowrap;
}

.wallet-topups-section {
  display: grid;
  gap: 8px;
}

.wallet-topups-section-title {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.05em;
}

.wallet-topups-search-row {
  margin-bottom: 0;
}

.wallet-topups-search-row input {
  width: 100%;
}

.wallet-topups-table-wrap {
  border: 1px solid var(--line);
  background: #0a0a0a;
  min-height: 0;
  max-height: min(40vh, 340px);
  max-height: min(40dvh, 340px);
  padding: 0;
}

.wallet-topups-history-wrap {
  max-height: min(34vh, 300px);
  max-height: min(34dvh, 300px);
}

.wallet-topups-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.wallet-topups-table th,
.wallet-topups-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
}

.wallet-topups-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101010;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.wallet-topups-name-col {
  width: 260px;
}

.wallet-topups-phone-col {
  width: 140px;
}

.wallet-topups-amount-col {
  width: 120px;
}

.wallet-topups-created-col {
  width: 180px;
}

.wallet-topups-actions-col {
  width: 220px;
}

.wallet-topups-status-col {
  width: 150px;
}

.wallet-topups-table td.wallet-topups-name-cell,
.wallet-topups-table td.wallet-topups-phone-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-topups-table th.wallet-topups-name-col,
.wallet-topups-table td.wallet-topups-name-cell {
  text-align: left;
}

.wallet-topups-table td.wallet-topups-phone-cell {
  text-align: center;
}

.wallet-topups-amount-cell {
  font-variant-numeric: tabular-nums;
}

.wallet-topups-empty-cell {
  padding: 20px 12px !important;
  text-align: center;
  white-space: normal !important;
}

.wallet-topups-table td .row-actions {
  justify-content: center;
  margin-bottom: 0;
}

.wallet-topups-table-footer {
  margin-top: 0;
}

.wallet-topups-create-card {
  width: min(720px, calc(100vw - 20px));
}

.wallet-topups-create-form {
  display: grid;
  gap: 12px;
}

.wallet-topups-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 12px;
  align-items: start;
}

.wallet-topups-create-panel,
.wallet-topups-create-selected {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  padding: 10px;
}

.wallet-topups-create-selected {
  align-content: start;
  min-height: 100%;
}

.wallet-topups-create-selected.is-empty {
  align-content: center;
}

.wallet-topups-create-selected h4,
.wallet-topups-create-selected p {
  margin: 0;
}

.wallet-topups-create-selected-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallet-topups-create-summary {
  display: grid;
  gap: 8px;
}

.wallet-topups-create-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.wallet-topups-create-summary-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.wallet-topups-create-summary-row dt,
.wallet-topups-create-summary-row dd {
  margin: 0;
}

.wallet-topups-create-summary-row dt {
  color: var(--text-dim);
  font-size: 12px;
}

.wallet-topups-create-summary-row dd {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.wallet-topups-create-summary-row.is-accent dd {
  color: var(--accent);
}

.wallet-topups-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-topups-create-error {
  color: #ff7072;
}

.route-help-card {
  width: min(860px, calc(100vw - 20px));
}

.route-help-content {
  max-height: min(72vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.route-help-lock-copy,
.route-help-lock-copy * {
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 720px) {
  .wallet-topups-title-row {
    align-items: stretch;
  }

  .wallet-topups-title-row > button {
    width: 100%;
    margin-left: 0;
  }

  .wallet-topups-create-grid {
    grid-template-columns: 1fr;
  }

  .wallet-topups-create-actions {
    justify-content: stretch;
  }

  .wallet-topups-create-actions > button {
    flex: 1 1 180px;
  }

  .route-help-card {
    width: min(calc(100vw - 20px), 100%);
  }
}

.medical-search-row {
  --medical-shell-control-height: 36px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.medical-search-row > * {
  min-width: 0;
  min-height: var(--medical-shell-control-height);
  box-sizing: border-box;
  align-self: center;
}

.medical-search-row > :not(input) {
  display: flex;
  align-items: center;
}

.medical-search-row :is(input, select, button),
.medical-table-footer :is(input, select, button) {
  height: var(--medical-shell-control-height, 36px);
  min-height: var(--medical-shell-control-height, 36px);
  margin: 0;
}

.medical-search-row :is(label, .meta-text, .hint-text),
.medical-table-footer :is(label, .meta-text, .hint-text) {
  line-height: 1;
}

.medical-shell-inline-label {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: var(--medical-shell-control-height, 36px);
  min-height: var(--medical-shell-control-height, 36px);
  line-height: 1;
  white-space: nowrap;
}

.medical-search-row .medical-shell-inline-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.medical-table-footer .medical-shell-inline-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.medical-search-row > input {
  flex: 1 1 280px;
  min-width: 0;
}

.medical-search-row input {
  width: 100%;
}

.warehouse-stock-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.warehouse-stock-search-row {
  flex: 1 1 320px;
  min-width: min(100%, 280px);
  margin-bottom: 0;
}

.warehouse-stock-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  flex-wrap: wrap;
  margin-left: auto;
  min-width: 0;
}

.warehouse-stock-toolbar-tabs {
  flex: 0 1 auto;
  max-width: 100%;
}

.warehouse-stock-import-btn {
  padding: 8px 12px;
  white-space: nowrap;
}

.warehouse-tooltip-anchor {
  position: relative;
}

.warehouse-floating-tooltip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 120;
  max-width: min(320px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #1b1b1b;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.08s ease,
    transform 0.08s ease;
  transform: translateY(4px);
}

.warehouse-floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.warehouse-stock-icon-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.warehouse-stock-icon-btn svg {
  width: 20px;
  height: 20px;
}

.warehouse-stock-table {
  table-layout: auto;
  width: 100%;
}

.warehouse-stock-table th,
.warehouse-stock-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
  text-align: left;
}

.warehouse-stock-table th:last-child,
.warehouse-stock-table td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.warehouse-stock-table th:nth-last-child(2),
.warehouse-stock-table td:nth-last-child(2) {
  white-space: nowrap;
  text-align: center;
}

.warehouse-stock-systems-table {
  table-layout: fixed;
}

.warehouse-stock-header-filter,
.table-header-filter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.warehouse-stock-header-filter > span,
.table-header-filter-label {
  min-width: 0;
}

.warehouse-stock-header-icon-btn,
.table-header-icon-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.warehouse-stock-header-icon-btn svg,
.table-header-icon-btn svg {
  width: 16px;
  height: 16px;
}

.warehouse-stock-header-icon-btn:hover,
.warehouse-stock-header-icon-btn:focus-visible,
.warehouse-stock-header-icon-btn.is-active,
.table-header-icon-btn:hover,
.table-header-icon-btn:focus-visible,
.table-header-icon-btn.is-active,
.table-header-icon-btn[aria-expanded='true'] {
  color: var(--text);
}

.warehouse-stock-header-icon-btn.is-disabled,
.table-header-icon-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.warehouse-stock-header-popover,
.table-header-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 16;
  min-width: 220px;
  max-width: 360px;
  border: 1px solid var(--line);
  background: #101010;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.warehouse-stock-header-popover button,
.table-header-option-list button {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.warehouse-stock-header-popover button:first-child,
.table-header-option-list button:first-child {
  border-top: 0;
}

.warehouse-stock-header-popover button.is-active,
.table-header-option-list button.is-active {
  background: #1f1f1f;
}

.table-header-option-list {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow: auto;
}

.warehouse-stock-header-popover-text {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.warehouse-stock-header-popover-text input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  padding: 5px 8px;
}

.warehouse-stock-header-popover-text input:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 0;
}

.warehouse-stock-header-popover-actions button {
  border-top: 0;
}

.warehouse-stock-systems-table th:nth-child(1),
.warehouse-stock-systems-table td:nth-child(1) {
  width: 34%;
}

.warehouse-stock-systems-table th:nth-child(2),
.warehouse-stock-systems-table td:nth-child(2) {
  width: 20%;
}

.warehouse-stock-systems-table th:nth-child(3),
.warehouse-stock-systems-table td:nth-child(3) {
  width: 22%;
}

.warehouse-stock-systems-table th:nth-child(4),
.warehouse-stock-systems-table td:nth-child(4) {
  width: 14%;
}

.warehouse-stock-systems-table th:nth-child(5),
.warehouse-stock-systems-table td:nth-child(5) {
  width: 10%;
  text-align: center;
}

.warehouse-stock-problems-cell,
.warehouse-stock-problems-cell div {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.warehouse-stock-system-row {
  cursor: pointer;
}

.warehouse-stock-system-row:hover td,
.warehouse-stock-system-row:focus-within td {
  background: rgba(255, 255, 255, 0.03);
}

.warehouse-stock-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
}

.warehouse-stock-row-actions button {
  min-height: 30px;
  padding: 6px 10px;
}

.warehouse-stock-row-icon-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.warehouse-stock-row-icon-btn svg {
  width: 18px;
  height: 18px;
}

.warehouse-stock-archived-filter {
  margin-left: auto;
  white-space: nowrap;
}

.medical-table-footer-right .warehouse-stock-archived-filter {
  margin-left: 0;
}

.rentals-requests-card,
.rentals-ready-card,
.rentals-active-card,
.rentals-inventory-card {
  display: grid;
  gap: 10px;
}

.rentals-secondary-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.rentals-issue-dialog-card {
  width: min(720px, calc(100vw - 20px));
  max-height: calc(100vh - 24px);
}

.rentals-issue-dialog-stack,
.rentals-inventory-stack {
  display: grid;
  gap: 10px;
}

.rentals-issue-actions,
.rentals-inventory-actions {
  margin-top: 0;
}

.rentals-selection-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.rentals-issue-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rentals-active-toolbar {
  align-items: center;
  justify-content: space-between;
}

.rentals-requests-card .medical-table-wrap,
.rentals-ready-card .medical-table-wrap,
.rentals-active-card .medical-table-wrap {
  max-height: min(60vh, 640px);
  max-height: min(60dvh, 640px);
  padding: 0;
}

.rentals-requests-table,
.rentals-systems-table,
.rentals-active-table {
  table-layout: fixed;
}

.rentals-requests-table th:nth-child(1),
.rentals-requests-table td:nth-child(1) {
  width: 18%;
}

.rentals-requests-table th:nth-child(2),
.rentals-requests-table td:nth-child(2) {
  width: 14%;
}

.rentals-requests-table th:nth-child(3),
.rentals-requests-table td:nth-child(3) {
  width: 17%;
}

.rentals-requests-table th:nth-child(4),
.rentals-requests-table td:nth-child(4) {
  width: 11%;
}

.rentals-requests-table th:nth-child(5),
.rentals-requests-table td:nth-child(5) {
  width: 8%;
}

.rentals-requests-table th:nth-child(6),
.rentals-requests-table td:nth-child(6) {
  width: 10%;
}

.rentals-requests-table th:nth-child(7),
.rentals-requests-table td:nth-child(7) {
  width: 12%;
}

.rentals-requests-table th:nth-child(8),
.rentals-requests-table td:nth-child(8) {
  width: 10%;
}

.rentals-systems-table th:nth-child(1),
.rentals-systems-table td:nth-child(1) {
  width: 42%;
}

.rentals-systems-table th:nth-child(2),
.rentals-systems-table td:nth-child(2) {
  width: 24%;
}

.rentals-systems-table th:nth-child(3),
.rentals-systems-table td:nth-child(3) {
  width: 14%;
}

.rentals-systems-table th:nth-child(4),
.rentals-systems-table td:nth-child(4) {
  width: 20%;
}

.rentals-active-table th:nth-child(1),
.rentals-active-table td:nth-child(1) {
  width: 26%;
}

.rentals-active-table th:nth-child(2),
.rentals-active-table td:nth-child(2) {
  width: 22%;
}

.rentals-active-table th:nth-child(3),
.rentals-active-table td:nth-child(3) {
  width: 24%;
}

.rentals-active-table th:nth-child(4),
.rentals-active-table td:nth-child(4) {
  width: 14%;
}

.rentals-active-table th:nth-child(5),
.rentals-active-table td:nth-child(5) {
  width: 14%;
}

.rentals-system-row {
  cursor: pointer;
}

.rentals-system-row:hover td,
.rentals-system-row:focus-within td {
  background: rgba(255, 255, 255, 0.05);
}

.rentals-active-row.is-busy td {
  opacity: 0.76;
}

.rentals-request-row.is-busy td {
  opacity: 0.76;
}

.rentals-cell-stack {
  display: grid;
  gap: 4px;
}

.rentals-table-title {
  font-size: 13px;
  line-height: 1.3;
}

.rentals-row-actions {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.rentals-message-cell {
  padding: 20px 12px !important;
  text-align: center;
  white-space: normal !important;
}

.rentals-row-actions .tiny-btn:disabled {
  opacity: 0.55;
}

.warehouse-builder-drawer-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}

.warehouse-builder-close-btn {
  white-space: nowrap;
}

.warehouse-builder-stack {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.warehouse-builder-section {
  border: 1px solid var(--line);
  background: #141414;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.warehouse-builder-section h4 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.warehouse-builder-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.warehouse-builder-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.warehouse-builder-notes-field {
  grid-column: 1 / -1;
}

.warehouse-builder-list {
  display: grid;
  gap: 6px;
}

.warehouse-builder-list-item {
  border: 1px dashed var(--line);
  padding: 8px;
  color: var(--text);
}

.warehouse-builder-list-item.is-problem {
  color: var(--flight-status-ready5-border);
}

.warehouse-builder-list-item.is-warning {
  color: var(--text-dim);
}

.warehouse-builder-slot {
  gap: 10px;
}

.warehouse-builder-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.warehouse-builder-slot-actions {
  gap: 6px;
}

.warehouse-builder-slot-summary {
  display: grid;
  gap: 4px;
}

.warehouse-builder-slot-summary .meta-text {
  line-height: 1.35;
}

.warehouse-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  background: #0f0f0f;
}

.warehouse-component-drawer {
  z-index: 66;
}

.warehouse-component-drawer-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}

.warehouse-component-drawer-stack {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.warehouse-component-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.warehouse-component-picker-card {
  width: min(1080px, calc(100vw - 24px));
}

.warehouse-create-owner-card {
  width: min(760px, calc(100vw - 24px));
}

.warehouse-create-owner-stack {
  display: grid;
  gap: 10px;
}

.warehouse-create-owner-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.warehouse-create-owner-results {
  min-height: 160px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}

.warehouse-create-owner-results > div {
  display: grid;
  gap: 8px;
}

.warehouse-create-owner-result {
  width: 100%;
  border: 1px solid var(--line);
  background: #141414;
  color: var(--text);
  text-align: left;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.warehouse-create-owner-result.is-active {
  border-color: var(--line-strong);
  background: #1b1b1b;
}

.warehouse-component-picker-controls {
  display: flex;
  gap: 8px;
}

.warehouse-component-picker-controls input {
  width: 100%;
}

.warehouse-component-picker-table-wrap {
  max-height: 60vh;
}

.warehouse-component-picker-empty-row td {
  text-align: center;
}

.warehouse-import-modal {
  position: fixed;
  inset: 0;
  z-index: 74;
  pointer-events: none;
}

.warehouse-import-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: auto;
}

.warehouse-import-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1580px, calc(100vw - 24px));
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: #101010;
  padding: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  z-index: 1;
  pointer-events: auto;
}

.warehouse-import-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.warehouse-import-header h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.warehouse-import-close-btn,
.warehouse-import-file-btn {
  white-space: nowrap;
}

.warehouse-import-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.warehouse-import-file-group {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.warehouse-import-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.warehouse-import-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.warehouse-import-table-wrap {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding-bottom: 0;
}

.medical-table.warehouse-import-table {
  width: max-content;
  min-width: 100%;
  min-width: max(100%, 2600px);
  table-layout: auto;
}

.warehouse-import-empty-row {
  height: 240px;
}

.warehouse-import-empty-row td {
  padding: 0;
  border-bottom: 0;
}

.medical-table.warehouse-import-table td {
  white-space: normal;
  vertical-align: middle;
}

.warehouse-import-input,
.warehouse-import-select {
  width: 100%;
  min-width: 110px;
  margin: 0;
}

.warehouse-import-input.is-error,
.warehouse-import-select.is-error {
  border-color: #b3b3b3;
  box-shadow: 0 0 0 1px #b3b3b3 inset;
}

.warehouse-import-input.is-error:focus,
.warehouse-import-input.is-error:focus-visible,
.warehouse-import-select.is-error:focus,
.warehouse-import-select.is-error:focus-visible {
  border-color: #ff4d4f;
  box-shadow: 0 0 0 1px rgb(255 77 79 / 45%) inset;
  outline: none;
}

.warehouse-import-cell-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.warehouse-import-cell-stack .meta-text {
  line-height: 1.35;
}

.warehouse-import-suggestion-btn {
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 11px;
}

.warehouse-import-fill-down-btn {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 4;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}

.medical-table.warehouse-import-table th.warehouse-import-col--system,
.medical-table.warehouse-import-table td.warehouse-import-cell--system {
  width: max-content;
  min-width: 120px;
  white-space: nowrap;
}

.warehouse-import-errors,
.warehouse-import-conflicts,
.warehouse-import-suggestions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.warehouse-import-errors .meta-text,
.warehouse-import-conflicts .meta-text,
.warehouse-import-suggestions .meta-text {
  white-space: normal;
}

.medical-table.warehouse-import-table th.warehouse-import-col--errors,
.medical-table.warehouse-import-table td.warehouse-import-cell--errors {
  width: max-content;
  min-width: 240px;
  white-space: normal;
}

.medical-table.warehouse-import-table th.warehouse-import-col--notes,
.medical-table.warehouse-import-table td.warehouse-import-cell--notes {
  width: max-content;
  min-width: 180px;
  white-space: normal;
}

.warehouse-import-model-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #141414;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.warehouse-import-model-option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 6px 8px;
  cursor: pointer;
}

.warehouse-import-model-option:hover,
.warehouse-import-model-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.warehouse-import-cell--narrow {
  min-width: 90px;
}

@media (max-width: 960px) {
  .settings-price-matrix-table {
    min-width: 560px;
  }

  .warehouse-builder-fields {
    grid-template-columns: 1fr;
  }

  .warehouse-component-fields {
    grid-template-columns: 1fr;
  }

  .warehouse-import-card {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 10px;
  }

  .warehouse-import-controls {
    gap: 10px;
  }

  .warehouse-import-file-group,
  .warehouse-import-actions {
    width: 100%;
    min-width: 0;
  }

  .warehouse-import-actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .warehouse-component-picker-card {
    width: calc(100vw - 16px);
  }
}

.route-view[data-route='/warehouse'] #warehouse-stock-components-panel .settings-tabs {
  margin-bottom: 10px;
}

.medical-table-wrap {
  max-height: 560px;
  padding: 0;
}

.medical-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.medical-table th,
.medical-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
}

.medical-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101010;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.medical-table tbody tr {
  height: var(--table-row-height);
}

.airfields-table tbody tr td {
  font-weight: 400;
}

.airfields-table tbody tr.airfields-row--primary td {
  font-weight: 700;
  background: #1a1a1a;
}

.airfields-table tbody tr.airfields-row--alternate td {
  font-weight: 600;
  background: #151515;
}

.airfields-table tbody tr.airfields-row--primary td:first-child {
  box-shadow: inset 2px 0 0 var(--line-strong);
}

.airfields-table tbody tr.airfields-row--alternate td:first-child {
  box-shadow: inset 2px 0 0 var(--line);
}

.medical-avatar-col {
  width: 48px;
  text-align: center;
}

.medical-phone-col {
  width: 140px;
}

.medical-name-col {
  width: 260px;
}

.medical-first-timer-col {
  width: 130px;
  position: relative;
}

.medical-metrics-col {
  width: 380px;
}

.medical-actions-col {
  width: 200px;
}

.medical-ready-col {
  width: 150px;
  position: relative;
}

.route-view[data-route='/medical'] .medical-table {
  --medical-cell-pad-x: 8px;
}

.route-view[data-route='/medical'] .medical-table th,
.route-view[data-route='/medical'] .medical-table td {
  padding-left: var(--medical-cell-pad-x);
  padding-right: var(--medical-cell-pad-x);
}

@media (max-width: 1460px) {
  .route-view[data-route='/medical'] .medical-table {
    --medical-cell-pad-x: 6px;
  }

  .route-view[data-route='/medical'] .medical-avatar-col {
    width: 44px;
  }

  .route-view[data-route='/medical'] .medical-phone-col {
    width: 126px;
  }

  .route-view[data-route='/medical'] .medical-name-col {
    width: 232px;
  }

  .route-view[data-route='/medical'] .medical-first-timer-col {
    width: 118px;
  }

  .route-view[data-route='/medical'] .medical-metrics-col {
    width: 344px;
  }

  .route-view[data-route='/medical'] .medical-actions-col {
    width: 184px;
  }

  .route-view[data-route='/medical'] .medical-ready-col {
    width: 136px;
  }
}

@media (max-width: 1320px) {
  .route-view[data-route='/medical'] .medical-table {
    --medical-cell-pad-x: 4px;
  }

  .route-view[data-route='/medical'] .medical-avatar-col {
    width: 42px;
  }

  .route-view[data-route='/medical'] .medical-phone-col {
    width: 118px;
  }

  .route-view[data-route='/medical'] .medical-name-col {
    width: 214px;
  }

  .route-view[data-route='/medical'] .medical-first-timer-col {
    width: 108px;
  }

  .route-view[data-route='/medical'] .medical-metrics-col {
    width: 320px;
  }

  .route-view[data-route='/medical'] .medical-actions-col {
    width: 168px;
  }

  .route-view[data-route='/medical'] .medical-ready-col {
    width: 128px;
  }
}

.subsidy-plan-fact-col {
  width: 120px;
}

.subsidy-actions-col {
  width: 130px;
}

.pilots-table {
  min-width: 930px;
}

.pilots-table th:nth-child(1),
.pilots-table td:nth-child(1) {
  width: 23%;
  text-align: left;
}

.pilots-table th:nth-child(2),
.pilots-table td:nth-child(2) {
  width: 11%;
}

.pilots-table th:nth-child(3),
.pilots-table td:nth-child(3) {
  width: 11%;
}

.pilots-table th:nth-child(4),
.pilots-table td:nth-child(4) {
  width: 9%;
}

.pilots-table th:nth-child(5),
.pilots-table td:nth-child(5) {
  width: 15%;
}

.pilots-table th:nth-child(6),
.pilots-table td:nth-child(6) {
  width: 15%;
}

.pilots-table th:nth-child(7),
.pilots-table td:nth-child(7) {
  width: 16%;
}

.pilots-table td:nth-child(1),
.pilots-table td:nth-child(5),
.pilots-table td:nth-child(6) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pilots-table td:last-child .tiny-btn + .tiny-btn {
  margin-left: 6px;
}

.pilots-table--compact {
  min-width: 880px;
}

.pilots-table--compact th,
.pilots-table--compact td {
  padding: 7px 6px;
}

.pilots-table--compact td {
  font-size: 12px;
}

.pilots-table--tight {
  min-width: 830px;
}

.pilots-table--tight th,
.pilots-table--tight td {
  padding: 6px 5px;
}

.pilots-table--tight td {
  font-size: 12px;
}

.subsidy-granted-at-col {
  width: 170px;
}

.subsidy-granted-by-col {
  width: 200px;
}

.medical-phone-cell,
.medical-name-cell {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.medical-name-cell-patronymic-wrap {
  white-space: normal;
  text-overflow: clip;
  line-height: 1.2;
}

.medical-name-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-date-time-cell {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center;
  line-height: 1.15;
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
}

.table-date-time-line {
  display: block;
}

.table-date-time-line-secondary {
  color: var(--text-dim);
}

.subsidy-plan-fact-cell {
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.02em;
}

.subsidy-actions-cell,
.subsidy-granted-at-cell,
.subsidy-granted-by-cell {
  text-align: center;
}

.subsidy-actions-cell .medical-action-btn + .medical-action-btn {
  margin-left: 6px;
}

.subsidy-action-chip-wrap .medical-action-btn + .medical-action-btn {
  margin-left: 0;
}

.subsidy-granted-at-cell,
.subsidy-granted-by-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subsidy-granted-at-cell.table-date-time-cell {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.subsidy-history-table {
  min-width: 860px;
}

.subsidy-history-table th:nth-child(1),
.subsidy-history-table td:nth-child(1) {
  width: 18%;
}

.subsidy-history-table th:nth-child(2),
.subsidy-history-table td:nth-child(2) {
  width: 16%;
}

.subsidy-history-table th:nth-child(3),
.subsidy-history-table td:nth-child(3) {
  width: 10%;
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
}

.subsidy-history-table th:nth-child(4),
.subsidy-history-table td:nth-child(4) {
  width: 24%;
  text-align: left;
}

.subsidy-history-table th:nth-child(5),
.subsidy-history-table td:nth-child(5) {
  width: 16%;
}

.subsidy-history-table th:nth-child(6),
.subsidy-history-table td:nth-child(6) {
  width: 16%;
}

.subsidy-history-table td:nth-child(1),
.subsidy-history-table td:nth-child(2),
.subsidy-history-table td:nth-child(5),
.subsidy-history-table td:nth-child(6) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subsidy-history-table td:nth-child(4) {
  white-space: normal;
  overflow-wrap: anywhere;
}

.medical-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.medical-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: rgb(255 255 255 / 45%);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
}

.medical-metric.is-true {
  color: #35d07f;
  border-color: rgb(53 208 127 / 55%);
}

.medical-metric.is-danger {
  color: #ff4d4f;
  border-color: rgb(255 77 79 / 45%);
}

.medical-metric.is-irrelevant {
  opacity: 0.45;
}

.medical-metric.is-ready {
  color: var(--medical-ready);
  border-color: rgb(116 207 122 / 55%);
}

.medical-metric.medical-metric-first-timer {
  border-color: var(--line-strong);
}

.medical-action-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.medical-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 55%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 1px 6px rgb(0 0 0 / 25%);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.medical-action-btn:hover,
.medical-action-btn:focus-visible {
  border-color: rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 9%);
  outline: none;
}

.medical-action-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.medical-action-btn.is-true {
  color: #35d07f;
  border-color: rgb(53 208 127 / 45%);
}

.medical-action-btn.is-danger {
  color: #ff4d4f;
  border-color: rgb(255 77 79 / 45%);
}

.medical-action-btn.is-false {
  color: rgb(255 255 255 / 55%);
}

.medical-action-btn.is-loading {
  opacity: 0.72;
}

.medical-first-timer-cell,
.medical-ready-cell {
  text-align: center;
}

.medical-filter-trigger {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.medical-filter-trigger:hover,
.medical-filter-trigger:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.medical-filter-trigger.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.medical-filter-trigger.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.medical-filter-popover {
  position: absolute;
  margin-top: 6px;
  right: 0;
  z-index: 8;
  min-width: 200px;
  border: 1px solid var(--line);
  background: #101010;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.medical-filter-popover button {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
}

.medical-filter-popover button:first-child {
  border-top: 0;
}

.medical-filter-popover button.is-active {
  background: #1f1f1f;
}

.medical-table-footer {
  --medical-shell-control-height: 36px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.medical-table-footer > * {
  align-self: center;
  min-width: 0;
  min-height: var(--medical-shell-control-height);
}

.medical-table-footer > .meta-text,
.medical-table-footer > .hint-text {
  display: flex;
  align-items: center;
  height: var(--medical-shell-control-height);
  min-height: var(--medical-shell-control-height);
  line-height: 1;
}

.medical-table-footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  min-height: var(--medical-shell-control-height);
}

.medical-table-footer-right > * {
  flex: 0 0 auto;
  min-width: 0;
  min-height: var(--medical-shell-control-height);
  align-self: center;
}

.medical-page-size-label {
  color: var(--text-dim);
}

.medical-page-size-select {
  width: 88px;
  min-width: 88px;
}

.medical-pagination {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  height: var(--medical-shell-control-height, 36px);
  min-height: var(--medical-shell-control-height, 36px);
}

.table-cell-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.table-cell-stack > * {
  min-width: 0;
}

.table-cell-stack--compact {
  gap: 2px;
}

.medical-page-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.medical-page-btn.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: #1f1f1f;
}

.medical-page-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-skydivers-table {
  min-width: 1200px;
}

.admin-skydivers-table tbody tr {
  cursor: pointer;
}

.admin-skydivers-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-skydivers-table tbody tr.is-blocked {
  background: #111;
}

.admin-skydivers-date-col {
  width: 138px;
}

.admin-skydivers-date-cell {
  white-space: normal;
  line-height: 1.15;
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
}

.admin-skydivers-date-line {
  display: block;
}

.admin-skydivers-date-line-secondary {
  color: var(--text-dim);
}

.admin-skydivers-status-col {
  width: 152px;
  position: relative;
}

.admin-skydivers-status-cell,
.admin-skydivers-actions-cell {
  text-align: center;
}

.admin-skydivers-actions-col {
  width: 260px;
}

.admin-skydivers-actions-cell {
  white-space: normal !important;
}

.admin-skydivers-action-chip-wrap {
  justify-content: center;
}

.admin-skydivers-action-btn {
  text-align: center;
}

.admin-skydivers-pagination-ellipsis {
  min-width: 14px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.staff-users-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.staff-users-toolbar input {
  flex: 1 1 280px;
  min-width: 0;
}

.training-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.training-search-row input {
  flex: 1;
}

.staff-users-table {
  min-width: 1360px;
}

.staff-users-table th:nth-child(1),
.staff-users-table td:nth-child(1) {
  width: 12%;
}

.staff-users-table th:nth-child(2),
.staff-users-table td:nth-child(2) {
  width: 11%;
}

.staff-users-table th:nth-child(3),
.staff-users-table td:nth-child(3) {
  width: 17%;
}

.staff-users-table th:nth-child(4),
.staff-users-table td:nth-child(4) {
  width: 23%;
}

.staff-users-table th:nth-child(5),
.staff-users-table td:nth-child(5),
.staff-users-table th:nth-child(6),
.staff-users-table td:nth-child(6),
.staff-users-table th:nth-child(7),
.staff-users-table td:nth-child(7) {
  width: 11%;
}

.staff-users-table th:nth-child(8),
.staff-users-table td:nth-child(8) {
  width: 15%;
}

.staff-users-table tbody tr.is-selected {
  background: #1a1a1a;
}

.staff-users-login-cell {
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-users-code-cell {
  white-space: normal !important;
  vertical-align: top !important;
  text-align: left !important;
}

.staff-users-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 56px;
  overflow: auto;
  padding-right: 2px;
}

.staff-users-code-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #161616;
  color: var(--text);
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 10px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.staff-users-code-empty {
  color: var(--text-dim);
  font-size: 12px;
}

.staff-permissions-checklist {
  display: grid;
  gap: 8px;
  min-height: 0;
}

.staff-permissions-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}

.staff-permissions-option:last-child {
  border-bottom: 0;
}

.staff-permissions-option input[type='checkbox'] {
  margin: 0;
  accent-color: #d7d7d7;
}

.staff-users-actions {
  white-space: normal;
  text-align: center;
}

.staff-users-action-chip-wrap {
  justify-content: center;
}

.staff-users-action-btn {
  text-align: center;
}

.training-select-col {
  width: 44px;
}

.training-metrics-col {
  width: 280px;
}

.training-training-col {
  width: 200px;
  position: relative;
}

.training-date-col {
  width: 140px;
}

.training-row-select {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
}

.training-row-select input[type='checkbox'] {
  margin: 0;
}

.training-status-col,
.training-status-cell,
.training-date-cell {
  text-align: center;
}

.training-status-chip {
  max-width: 220px;
  white-space: normal;
  text-align: center;
}

.admin-skydivers-search-row {
  margin-bottom: 10px;
}

.admin-skydivers-search-row input {
  width: 100%;
}

.admin-audit-card {
  position: relative;
}

.admin-audit-search-row {
  margin-bottom: 10px;
}

.admin-audit-table {
  min-width: 1480px;
}

.admin-audit-table th,
.admin-audit-table td {
  text-align: left;
  vertical-align: middle;
}

.admin-audit-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-audit-at-col {
  width: 155px;
}

.admin-audit-actor-type-col {
  width: 120px;
  position: relative;
}

.admin-audit-entity-type-col,
.admin-audit-event-type-col {
  position: relative;
}

.admin-audit-phone-col,
.admin-audit-entity-type-col,
.admin-audit-entity-id-col {
  width: 220px;
}

.admin-audit-event-type-col {
  width: 220px;
}

.admin-audit-payload-col {
  width: 360px;
}

.admin-audit-cell-json {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.3;
  max-height: 20px;
  cursor: pointer;
}

.admin-audit-date-cell,
.admin-audit-actor-type-cell {
  text-align: center;
}

.admin-audit-phone-cell,
.admin-audit-entity-type-cell,
.admin-audit-event-type-cell,
.admin-audit-payload-cell {
  text-align: left;
}

.admin-audit-entity-id-cell {
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
}

.admin-audit-cell-json.is-expanded {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow-wrap: normal;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101010;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.admin-table tbody tr {
  height: var(--table-row-height);
  cursor: pointer;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-table tr.is-blocked {
  background: #111;
}

.admin-avatar-col {
  width: 48px;
  text-align: center !important;
}

.admin-phone-col {
  width: 150px;
}

.admin-name-col {
  width: 240px;
}

.admin-phone-cell,
.admin-name-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-actions-cell {
  white-space: normal !important;
}

.admin-status-col {
  width: 180px;
  position: relative;
}

.admin-status-trigger {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.admin-status-trigger:hover,
.admin-status-trigger:focus-visible {
  color: var(--text);
}

.admin-status-trigger.is-active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-status-trigger.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tiny-btn {
  padding: 4px 8px;
  min-height: 28px;
  font-size: 11px;
  line-height: 1;
}

.tiny-btn.is-active {
  border-color: var(--line-strong);
  background: #1f1f1f;
}

.admin-status-filter-popover {
  position: absolute;
  margin-top: 6px;
  right: 0;
  z-index: 8;
  min-width: 180px;
  border: 1px solid var(--line);
  background: #101010;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.admin-status-filter-popover button {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
}

.admin-status-filter-popover button:first-child {
  border-top: 0;
}

.admin-status-filter-popover button.is-active {
  background: #1f1f1f;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-actions button {
  padding: 4px 8px;
  min-height: 28px;
  font-size: 11px;
  line-height: 1.1;
}

.admin-audit-connections-table {
  min-width: 1240px;
}

.admin-audit-connections-toolbar {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: max-content minmax(146px, 168px) max-content minmax(146px, 168px) minmax(260px, 1fr);
}

.admin-audit-connections-date-label {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.admin-audit-connections-date-input {
  width: 100%;
  min-width: 146px;
  min-height: var(--medical-shell-control-height, 36px);
  box-sizing: border-box;
}

.admin-audit-connections-query-input {
  width: 100%;
  min-width: min(100%, 260px);
  min-height: var(--medical-shell-control-height, 36px);
  box-sizing: border-box;
  line-height: 1;
}

.admin-audit-connections-table th,
.admin-audit-connections-table td {
  text-align: left;
  vertical-align: middle;
}

.admin-audit-connections-at-col {
  width: 155px;
}

.admin-audit-connections-endpoint-col {
  width: 260px;
}

.admin-audit-connections-user-col {
  width: 240px;
}

.admin-audit-connections-ip-col {
  width: 210px;
}

.admin-audit-connections-ua-col {
  width: 420px;
}

.admin-audit-connections-at-cell {
  text-align: center;
}

.admin-audit-connections-endpoint-cell,
.admin-audit-connections-user-cell,
.admin-audit-connections-ua-cell {
  white-space: normal !important;
  word-break: break-word;
}

.admin-audit-connections-ip-cell {
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
}

.admin-audit-connections-ip-value {
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.admin-audit-connections-city-value {
  display: block;
  font-family: 'Roboto', sans-serif;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-audit-connections-city-value.is-empty {
  opacity: 0.65;
}

@media (max-width: 520px) {
  .admin-audit-connections-toolbar {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .admin-audit-connections-query-input {
    grid-column: 1 / -1;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: var(--bg-2);
}

.status-pill.status-pill-rentable {
  color: var(--medical-ready);
  border-color: #4e9d62;
  background: rgb(78 157 98 / 14%);
}

.status-pill.status-pill-blocked {
  border-style: dashed;
}

.admin-skydiver-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.admin-skydiver-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
}

.admin-skydiver-drawer-card {
  position: absolute;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100%;
  border-left: 1px solid var(--line);
  background: #0f0f0f;
  padding: 12px;
  overflow-y: auto;
}

.admin-skydiver-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-skydiver-drawer-head h3 {
  margin: 0 0 4px;
}

.admin-skydiver-profile-form {
  display: grid;
  gap: 12px;
}

.admin-skydiver-profile-section {
  border: 1px solid var(--line);
  background: #141414;
  padding: 10px;
}

.admin-skydiver-profile-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.admin-skydiver-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-skydiver-profile-grid label {
  margin: 0;
}

.formField {
  display: grid;
  gap: 4px;
}

.formField--readonly-checkbox label {
  gap: 8px;
}

.inline-consent-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.inline-consent-trigger {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  box-shadow: none;
}

.inline-consent-trigger:hover,
.inline-consent-trigger:focus-visible {
  color: var(--text);
  background: transparent;
  box-shadow: none;
  opacity: 0.82;
}

.formFieldReadonlyCheckbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.formFieldReadonlyCheckbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.formFieldReadonlyCheckbox input[type='checkbox']:disabled {
  opacity: 1;
}

.formFieldReadonlyCheckbox span {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.formFieldError {
  min-height: 14px;
  font-size: 11px;
  line-height: 1.2;
  color: #ff4d4f;
  visibility: hidden;
}

.formField--error .formFieldError {
  visibility: visible;
}

.formField--error > label {
  color: #ff7072;
}

.formField--error input,
.formField--error select,
.formField--error textarea {
  border-color: #ff4d4f !important;
  outline: 1px solid rgb(255 77 79 / 45%);
  background: rgb(255 77 79 / 10%);
}

.formField--error input:focus,
.formField--error select:focus,
.formField--error textarea:focus {
  box-shadow: 0 0 0 2px rgb(255 77 79 / 30%);
}

.admin-skydiver-flags-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-skydiver-flags-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}

.admin-skydiver-rig-editor {
  border: 1px dashed var(--line);
  padding: 8px;
  margin-top: 8px;
}

.admin-rig-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.admin-skydiver-drawer-actions {
  margin-top: 12px;
}

.verification-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 73;
  pointer-events: none;
}

.verification-profile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: auto;
}

.staff-feedback-backdrop {
  background: rgba(0, 0, 0, 0.46);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.verification-profile-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(980px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: #101010;
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 10px;
  z-index: 1;
  pointer-events: auto;
}

.verification-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.verification-profile-head h3 {
  margin: 0;
}

.verification-profile-content {
  display: grid;
  gap: 10px;
}

.verification-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.consent-text-card {
  width: min(760px, calc(100vw - 20px));
  max-height: calc(100vh - 40px);
}

.staff-feedback-card {
  width: min(720px, calc(100vw - 20px));
  max-height: calc(100vh - 28px);
  padding: 14px;
}

.staff-feedback-form {
  display: grid;
  gap: 12px;
}

.staff-feedback-intro {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(28 28 28 / 92%), rgb(20 20 20 / 96%));
}

.staff-feedback-intro-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.staff-feedback-link {
  width: fit-content;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.staff-feedback-link:hover,
.staff-feedback-link:focus-visible {
  color: #fff;
  outline: none;
}

.staff-feedback-fields {
  display: grid;
  gap: 12px;
}

.staff-feedback-message {
  min-height: 188px;
  resize: vertical;
}

.staff-feedback-error {
  color: #ff4d4f;
}

.staff-feedback-actions {
  margin-top: 0;
  justify-content: flex-end;
  gap: 8px;
}

.consent-text-body {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.consent-rich-heading {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.consent-rich-paragraph {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.consent-rich-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--text);
}

.consent-rich-list li {
  font-size: 14px;
  line-height: 1.5;
}

.verification-profile-actions button,
.manual-add-actions button,
.shift-close-takeoff-card .row-actions button,
.admin-skydiver-drawer-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #1a1a1a;
  color: var(--text);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.verification-profile-actions button:hover,
.verification-profile-actions button:focus-visible,
.manual-add-actions button:hover,
.manual-add-actions button:focus-visible,
.shift-close-takeoff-card .row-actions button:hover,
.shift-close-takeoff-card .row-actions button:focus-visible,
.admin-skydiver-drawer-actions button:hover,
.admin-skydiver-drawer-actions button:focus-visible {
  border-color: var(--text);
  background: #232323;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
  outline: none;
}

.verification-profile-actions button:disabled,
.manual-add-actions button:disabled,
.shift-close-takeoff-card .row-actions button:disabled,
.admin-skydiver-drawer-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.verification-profile-actions #verification-profile-verify,
.manual-add-actions #manual-add,
.shift-close-takeoff-card #shift-close-takeoff-save,
.admin-skydiver-drawer-actions button:not(.quiet-btn) {
  background: #262626;
}

.shift-close-takeoff-card .row-actions button.quiet-btn,
.admin-skydiver-drawer-actions button.quiet-btn {
  background: #131313;
  color: var(--text-dim);
}

.verification-profile-section {
  border: 1px solid var(--line);
  background: #141414;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.verification-profile-section h4 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.verification-profile-rig-card h4 {
  margin-bottom: 8px;
}

.verification-profile-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12px;
}

.verification-profile-row.is-invalid {
  margin: -2px -6px;
  padding: 4px 6px;
  border: 1px solid rgb(255 77 79 / 40%);
  border-radius: 8px;
  background: rgb(255 77 79 / 8%);
}

.verification-profile-row-label {
  color: var(--text-dim);
}

.verification-profile-row-label.is-invalid,
.verification-profile-row-value.is-invalid,
.verification-profile-row-value.is-danger {
  color: #ff4d4f;
}

.verification-profile-rig-metric {
  display: inline-block;
  font-weight: 700;
}

.verification-profile-rig-metric.is-warning {
  color: var(--rpt-warning);
}

.verification-profile-rig-metric.is-danger {
  color: #ff4d4f;
}

.verification-profile-checkbox {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
}

.verification-profile-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.verification-profile-checkbox input[type='checkbox']:disabled {
  opacity: 1;
}

.shift-close-takeoff-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.shift-close-takeoff-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: auto;
}

.shift-close-takeoff-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: #101010;
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 10px;
  z-index: 1;
  pointer-events: auto;
}

.shift-close-takeoff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.shift-close-takeoff-head h3 {
  margin: 0;
}

.shift-close-takeoff-table-wrap {
  margin: 0;
  max-height: min(52vh, 520px);
}

.shift-close-takeoff-table select {
  width: 100%;
  min-width: 170px;
}

.shift-close-takeoff-table .shift-close-flight-cell {
  white-space: nowrap;
}

.manual-add-modal {
  position: fixed;
  inset: 0;
  z-index: 72;
  pointer-events: none;
}

.manual-add-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
  pointer-events: auto;
}

.manual-add-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, calc(100vw - 20px));
  height: calc(100vh - 20px);
  height: calc(100dvh - 20px);
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  background: #101010;
  padding: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  gap: 10px;
  z-index: 1;
  pointer-events: auto;
}

.manual-add-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.manual-add-head h3 {
  margin: 0;
}

@media (max-width: 720px) {
  .header-feedback-btn {
    padding-inline: 10px;
  }

  .staff-feedback-card {
    width: min(100vw - 16px, 720px);
    max-height: calc(100dvh - 16px);
    padding: 12px;
  }

  .staff-feedback-message {
    min-height: 160px;
  }
}

.manual-search-results {
  min-height: 0;
  max-height: none;
  overflow: auto;
}

.manual-search-input-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.manual-search-input-row input {
  min-width: 0;
}

.manual-search-filter {
  min-width: 190px;
}

.manual-search-card {
  width: 100%;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  background: #141414;
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 6px;
  font-weight: 400;
  letter-spacing: 0;
}

.manual-search-card:last-child {
  margin-bottom: 0;
}

.manual-search-option-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.manual-search-option-row--group-start {
  margin-top: 12px;
}

.manual-search-option-row:last-child {
  margin-bottom: 0;
}

.manual-search-option-row .manual-search-card {
  margin-bottom: 0;
}

.manual-search-checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.manual-search-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #d8d8d8;
}

.manual-search-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.manual-search-card-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.manual-search-card:hover,
.manual-search-card:focus-visible {
  border-color: var(--line-strong);
  outline: none;
}

.manual-search-card.is-selected {
  border-color: var(--line-strong);
  background: #1c1c1c;
}

.manual-search-card.is-blocked {
  border-color: rgb(255 77 79 / 35%);
}

.manual-search-card.is-selection-disabled {
  opacity: 0.72;
}

@keyframes manualBlockedShake {
  0% {
    transform: translateX(0);
    background: #141414;
  }
  25% {
    transform: translateX(-3px);
    background: rgb(115 26 30 / 48%);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
    background: rgb(115 26 30 / 48%);
  }
  100% {
    transform: translateX(0);
    background: #141414;
  }
}

.manual-search-card.is-blocked-hit {
  animation: manualBlockedShake 0.26s ease-out;
}

.manual-search-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.manual-search-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.manual-search-ready {
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.manual-search-ready.is-true {
  color: #35d07f;
}

.manual-search-ready.is-false {
  color: #ff4d4f;
}

.manual-search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.manual-search-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
  justify-content: flex-end;
}

.manual-search-finance {
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.manual-search-active-flight {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #ff4d4f;
}

.manual-search-metric {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.manual-search-metric.is-true {
  color: #35d07f;
}

.manual-search-metric.is-false {
  color: #ff4d4f;
}

.manual-choice-group {
  display: grid;
  gap: 6px;
}

.manual-choice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 760px) {
  .manual-search-input-row {
    grid-template-columns: 1fr;
  }

  .manual-search-filter {
    width: 100%;
    min-width: 0;
  }
}

.manual-choice-group--payment {
  margin-left: auto;
  align-items: flex-end;
}

.manual-choice-group--payment .manual-choice-label {
  text-align: right;
}

.manual-choice-label {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.manual-choice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}

.manual-choice-group--payment .manual-choice-buttons {
  justify-content: flex-end;
}

.manual-choice-btn {
  min-width: 84px;
  border: 1px solid var(--line);
  background: #171717;
  color: var(--text-dim);
  font-size: 12px;
  padding: 7px 10px;
}

.manual-choice-btn:hover,
.manual-choice-btn:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
  outline: none;
}

.manual-choice-btn.is-active {
  border-color: #bdbdbd;
  background: #2a2a2a;
  color: #fff;
}

.manual-choice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.manual-choice-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.manual-choice-btn.is-disabled:hover,
.manual-choice-btn.is-disabled:focus-visible {
  border-color: var(--line);
  color: var(--text-dim);
}

.manual-payment-tooltip {
  position: absolute;
  z-index: 9;
  transform: translate(-50%, 0);
  max-width: 280px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

#manual-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.manual-add-actions {
  justify-content: center;
}

.list-item {
  border: 1px solid var(--line);
  background: #141414;
  padding: 8px;
  margin-bottom: 8px;
}

.list-item.is-selected {
  border-color: var(--line-strong);
  background: #1e1e1e;
}

.flight-card {
  display: flex;
  flex-direction: column;
  min-height: var(--flight-card-fixed-height);
  height: var(--flight-card-fixed-height);
}

#app.board-dnd-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 72%);
  pointer-events: none;
  z-index: 40;
}

.flight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.flight-title {
  font-size: 15px;
  letter-spacing: 0.05em;
}

.flight-load {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 12px;
}

.flight-participant {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
  font-size: 13px;
}

.flight-participant.is-altitude-group-start {
  margin-top: 10px;
}

.flight-participants {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 4px;
  grid-auto-rows: min-content;
  padding-right: 2px;
}

.flight-card--archived {
  background: #181818;
}

.flight-telemetry-fact {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.flight-participant[draggable='true'] {
  cursor: grab;
}

.flight-participant.is-dragging {
  opacity: 0.45;
}

.flight-drop-zones {
  margin-top: 10px;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.flights-list.is-dnd-active .flight-drop-zones {
  display: grid;
}

.flights-list.is-dnd-active .flight-card,
.flights-list.is-dnd-active .flight-create-inline {
  position: relative;
}

.flights-list.is-dnd-active .flight-card.is-dnd-card-drop-allowed {
  z-index: 60;
  border-color: var(--line-strong);
  background: #171717;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 12%);
}

.flights-list.is-dnd-active .flight-card.is-over-dnd-card {
  border-color: var(--text);
  background: #1d1d1d;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 26%), 0 10px 24px rgb(0 0 0 / 38%);
}

.flight-drop-zone {
  border: 1px dashed var(--line);
  background: #101010;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 6px 4px;
  min-height: 30px;
}

.flight-drop-zone.is-allowed-dnd-target {
  position: relative;
  z-index: 70;
  border-color: var(--line-strong);
  background: #151515;
  color: var(--text);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
}

.flight-drop-zone.is-blocked-dnd-target {
  opacity: 0.18;
  pointer-events: none;
}

.flight-drop-zone.is-over {
  border-color: var(--text);
  background: #1f1f1f;
  color: var(--text);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 28%), 0 8px 18px rgb(0 0 0 / 32%);
}

.flight-actions {
  margin-top: auto;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
}

.flight-add-btn {
  grid-column: 2;
  min-width: 110px;
  font-size: 12px;
  padding: 7px 12px;
}

.flight-remove-drop-zone {
  grid-column: 3;
  justify-self: end;
  min-width: 42px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px dashed var(--line);
  background: #101010;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
  display: none;
}

.flights-list.is-dnd-active .flight-remove-drop-zone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flight-remove-drop-zone.is-allowed-dnd-target {
  position: relative;
  z-index: 70;
  border-color: var(--line-strong);
  background: #151515;
  color: var(--text);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
}

.flight-remove-drop-zone.is-blocked-dnd-target {
  opacity: 0.18;
  pointer-events: none;
}

.flight-remove-drop-zone.is-over {
  border-color: #ff4d4f;
  background: rgb(255 77 79 / 12%);
  color: #ff4d4f;
  box-shadow: 0 0 0 1px rgb(255 77 79 / 32%), 0 8px 18px rgb(0 0 0 / 32%);
}

.flight-remove-drop-zone:focus-visible {
  border-color: var(--text);
  outline: none;
}

.flight-empty-state {
  flex: 0 0 clamp(280px, 30vw, 360px);
  min-height: var(--flight-card-fixed-height);
  height: var(--flight-card-fixed-height);
  border: 1px solid var(--line);
  background: #121212;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
}

.flight-create-inline {
  flex: 0 0 72px;
  min-height: var(--flight-card-fixed-height);
  height: var(--flight-card-fixed-height);
  border: 1px dashed var(--line-strong);
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: 0;
}

.flight-create-inline-btn {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

.flight-create-inline-btn:hover,
.flight-create-inline-btn:focus-visible {
  background: #1d1d1d;
  outline: none;
}

.slot-no {
  color: var(--text-dim);
  min-width: 16px;
}

.participant-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--chip-border);
  background: transparent;
  padding: 2px 6px;
  min-width: 54px;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.chip--solid {
  background: var(--chip-bg);
}

.chip--outline {
  background: transparent;
}

.chip-icon {
  font-size: 11px;
  opacity: 0.95;
}

.chip-status {
  min-width: 84px;
}

.flight-status-trigger {
  cursor: pointer;
}

.flight-status-trigger:hover,
.flight-status-trigger:focus-visible {
  border-color: var(--line-strong);
  background: #232323;
  outline: none;
}

.flight-status-trigger.chip-status[data-flight-status='READY_15'] {
  border-color: var(--flight-status-ready15-border);
  background: var(--flight-status-ready15-bg);
  color: var(--flight-status-ready15-text);
}

.flight-status-trigger.chip-status[data-flight-status='READY_10'] {
  border-color: var(--flight-status-ready10-border);
  background: var(--flight-status-ready10-bg);
  color: var(--flight-status-ready10-text);
}

.flight-status-trigger.chip-status[data-flight-status='READY_5'] {
  border-color: var(--flight-status-ready5-border);
  background: var(--flight-status-ready5-bg);
  color: var(--flight-status-ready5-text);
}

.flight-status-trigger.chip-status[data-flight-status='READY_15']:hover,
.flight-status-trigger.chip-status[data-flight-status='READY_15']:focus-visible {
  border-color: var(--flight-status-ready15-border);
  background: rgb(150 214 159 / 26%);
}

.flight-status-trigger.chip-status[data-flight-status='READY_10']:hover,
.flight-status-trigger.chip-status[data-flight-status='READY_10']:focus-visible {
  border-color: var(--flight-status-ready10-border);
  background: rgb(232 213 122 / 26%);
}

.flight-status-trigger.chip-status[data-flight-status='READY_5']:hover,
.flight-status-trigger.chip-status[data-flight-status='READY_5']:focus-visible {
  border-color: var(--flight-status-ready5-border);
  background: rgb(234 145 145 / 26%);
}

.participant-role-trigger {
  cursor: pointer;
}

.participant-role-trigger:hover,
.participant-role-trigger:focus-visible {
  border-color: var(--line-strong);
  background: #232323;
  outline: none;
}

.participant-role-trigger:disabled {
  cursor: wait;
  opacity: 0.72;
}

.participant-role-chip--disabled {
  opacity: 0.8;
}

.small-btn {
  font-size: 11px;
  padding: 4px 6px;
  font-weight: 600;
}

.flight-status-popover {
  position: fixed;
  z-index: 80;
  min-width: 168px;
  max-width: min(280px, calc(100vw - 16px));
  border: 1px solid var(--line-strong);
  background: #121212;
  padding: 6px;
  display: grid;
  gap: 4px;
}

.flight-status-popover button {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
}

.flight-status-popover button.is-active {
  border-color: var(--line-strong);
  background: #212121;
}

.flight-status-popover button.is-danger {
  color: #ff6b6b;
}

.participant-role-popover {
  position: fixed;
  z-index: 80;
  min-width: 148px;
  max-width: min(260px, calc(100vw - 16px));
  border: 1px solid var(--line-strong);
  background: #121212;
  padding: 6px;
  display: grid;
  gap: 4px;
}

.participant-role-popover button {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
}

.participant-role-popover button.is-active {
  border-color: var(--line-strong);
  background: #212121;
}

.log-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #141414, #0c0c0c);
  padding: 10px;
}

.log-panel h2 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
}

#log {
  margin: 0;
  min-height: 160px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #090909;
  padding: 8px;
  font-family: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.board-footer-metrics {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 1260px) {
  .rentals-secondary-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .rentals-issue-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .rentals-systems-table,
  .rentals-active-table {
    min-width: 760px;
  }

  .flight-participant {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flight-drop-zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift-close-takeoff-card {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 10px;
  }

  .manual-add-card {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100vh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 10px;
  }

  .verification-profile-card {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
    padding: 10px;
  }

  .verification-profile-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .shift-close-takeoff-table select {
    min-width: 130px;
  }
}

@media (max-width: 560px) {
  .flight-drop-zones {
    grid-template-columns: 1fr;
  }
}
