.fcv-table {
  width: 100%;
  /* max-width: 1200px; */
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: inherit;
}

.fcv-table__hint {
  font-size: 0.95em;
  color: #475467;
  padding: 0 4px;
}

.fcv-table__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  flex-wrap: wrap;
}

.fcv-title {
  font-size: 1.55em;
  font-weight: 600;
  color: #1d2939;
  margin-left: 15px;
}

.fcv-isa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #1d72f3;
  background: #1d72f3;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.fcv-isa-toggle[aria-pressed='true'] {
  background: #113f8a;
  border-color: #113f8a;
}

.fcv-isa-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fcv-card__actions .fcv-isa-toggle {
  display: none;
}

.fcv-card--details-expanded .fcv-card__actions .fcv-isa-toggle {
  display: inline-flex;
}

.fcv-cards {
  display: flex;
  flex-direction: column;
}

.fcv-track-header {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.fcv-track-header__title {
  font-weight: 700;
  color: #1d2939;
}

.fcv-track-header__meta {
  font-size: 0.85em;
  color: #475467;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fcv-track-header__meta span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.fcv-card {
  background: #fff;
  border: 1px solid #d0d5dd;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fcv-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.fcv-card__info {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.fcv-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #3b4cca;
  font-weight: 700;
  /* border-radius: 999px; */
  padding: 4px 10px;
  font-size: 0.85em;
}

.fcv-card__name {
  font-size: 1.2em;
  font-weight: 700;
  color: #1d2939;
}

.fcv-card__subtitle {
  font-size: 0.9em;
  letter-spacing: 0.02em;
  color: #475467;
  text-transform: uppercase;
}

.fcv-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  align-self: center;
}

.fcv-card__action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.fcv-card__action-button i {
  font-size: 0.9em;
}

.fcv-card__action-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.fcv-details-button {
  border-color: #1d2939;
  color: #1d2939;
}

.fcv-details-button:hover,
.fcv-details-button:focus-visible {
  border-color: #101828;
  color: #101828;
  transform: translateY(-1px);
}

.fcv-details-button[aria-expanded='true'] {
  background: #1d2939;
  color: #fff;
}

.fcv-calculations-button {
  border-color: #1d72f3;
  color: #1d72f3;
}

.fcv-calculations-button:hover,
.fcv-calculations-button:focus-visible {
  border-color: #0f5ad3;
  color: #0f5ad3;
  transform: translateY(-1px);
}

.fcv-calculations-button[aria-expanded='true'] {
  background: #1d72f3;
  border-color: #1d72f3;
  color: #fff;
}

.fcv-card__status {
  font-weight: 600;
  justify-self: start;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 18px;
  min-width: 180px;
}

.fcv-card__status-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-self: start;
  align-items: stretch;
  flex-wrap: wrap;
}

.fcv-card__status-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75em;
}

.fcv-card__status-depth {
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: 0;
  color: #101828;
}

.fcv-card__status-meta {
  font-size: 0.75em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #475467;
}

.fcv-card__info-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fcv-card__limit-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85em;
  color: #475467;
  justify-self: start;
}

.fcv-card__limit-line {
  display: block;
}

.fcv-limit--struck {
  text-decoration: line-through;
  color: #98a2b3;
}

.fcv-card__limit-line--override,
.fcv-summary__airspace-limit--override {
  font-weight: 600;
  color: #1d2939;
}

@media (max-width: 720px) {
  .fcv-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .fcv-card__info {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .fcv-card__actions {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  .fcv-card__actions .fcv-center-button,
  .fcv-card__actions .fcv-card__action-button {
    width: 100%;
    justify-content: center;
  }
}

.fcv-center-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0d6efd;
  border: 1px solid #0d6efd;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.fcv-center-button:hover {
  background: #0a58ca;
  transform: translateY(-1px);
}

.fcv-card__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
}

.fcv-card__details[data-details-collapsed='true'] {
  display: none;
}

.fcv-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.fcv-summary {
  border-left: 4px solid #34495e;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
  color: #1d2939;
  padding: 12px;
}

.fcv-summary__limits {
  padding: 12px;
  /* border-radius: 10px; */
  background: #f0f4ff;
  border: 1px solid #d6e4ff;
  font-size: 0.9em;
  color: #1d2939;
}

.fcv-summary__limits strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.fcv-summary__limits span {
  display: block;
  font-size: 0.85em;
  color: #475467;
}

.fcv-summary__limit-value {
  margin-top: 4px;
  font-weight: 600;
}

.fcv-summary__airspace {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  min-width: 0;
}

.fcv-summary__airspace-name {
  font-weight: 700;
  color: #1d2939;
}

.fcv-summary__airspace-limit {
  font-size: 0.85em;
  color: #475467;
}

.fcv-summary__metric-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
  min-width: 0;
}

.fcv-summary__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.fcv-summary__metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.95em;
  min-width: 0;
}

.fcv-summary__metric strong {
  color: #1d2939;
}

.fcv-summary__metric-value {
  text-align: right;
  color: #1d2939;
  min-width: 0;
  overflow-wrap: anywhere;
}

.fcv-summary__metric--wide {
  grid-column: 1 / -1;
  align-items: flex-start;
}

.fcv-summary__metric--wide .fcv-summary__metric-value {
  width: 100%;
  text-align: left;
}

.fcv-summary__metric-value span {
  display: inline;
}

.fcv-weather-source-label {
  color: #34495e;
  font-weight: 600;
}

.fcv-weather-stations {
  display: block;
  color: #475467;
  font-size: 0.8em;
  margin-top: 2px;
}

.fcv-fl-adjustment-line {
  display: block;
  padding: 8px 10px;
  border: 1px solid #d6e4ff;
  background: #f0f4ff;
  color: #1d2939;
  line-height: 1.4;
}

.fcv-fl-adjustment-line + .fcv-fl-adjustment-line {
  margin-top: 6px;
}

.fcv-fl-adjustment-line strong {
  color: #113f8a;
}

.fcv-metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  background: #fdfdfd;
}

.fcv-metric__heading {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85em;
  color: #475467;
}

.fcv-metric__badge {
  margin: 4px 0 8px;
}

.fcv-metric__value {
  font-size: 1.3em;
  font-weight: 700;
  color: #1d2939;
}

.fcv-metric__value span {
  display: inline;
}

.fcv-metric__value-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.fcv-metric__value-block:last-of-type {
  margin-bottom: 0;
}

.fcv-metric__value-caption {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #475467;
}

.fcv-metric__airspace {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8em;
  color: #475467;
  margin-bottom: 8px;
}

.fcv-metric__airspace-name {
  font-weight: 600;
  color: #1d2939;
  font-size: 0.9em;
}

.fcv-metric__airspace-line {
  line-height: 1.3;
}

.fcv-metric__airspace-line--override {
  font-weight: 600;
  color: #1d2939;
}

.fcv-metric__status {
  font-size: 0.9em;
  color: #475467;
}

.fcv-metric__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}

.fcv-metric__times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85em;
  color: #475467;
}

.fcv-metric__times strong {
  color: #1d2939;
}

.fcv-metric__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85em;
  align-items: center;
  color: #1d2939;
}

.fcv-metric__points {
  font-weight: 600;
}

.fcv-metric__duration {
  font-weight: 600;
}

.fcv-metric__duration--alert {
  color: #dc2626;
}

.fcv-metric__duration--ok {
  color: #15803d;
}

.fcv-metric__duration--neutral {
  color: #1d2939;
}

.fcv-metric__depth {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  font-size: 0.85em;
}

.fcv-metric__depth--penetration .fcv-metric__depth-value {
  color: #dc2626;
}

.fcv-metric__depth--exceedance {
  color: #7f1d1d;
}

.fcv-metric__depth--exceedance .fcv-metric__depth-label {
  color: #9f1239;
}

.fcv-metric__depth--exceedance .fcv-metric__depth-value {
  color: #7f1d1d;
}

.fcv-metric__depth--exceedance .fcv-metric__depth-direction {
  color: #7c2d12;
}

.fcv-metric__depth--clear {
  color: #047857;
}

.fcv-metric__depth--clear .fcv-metric__depth-label {
  color: #047857;
}

.fcv-metric__depth--clear .fcv-metric__depth-value {
  color: #059669;
}

.fcv-metric__depth--clear .fcv-metric__depth-direction {
  color: #0f766e;
}

.fcv-metric__depth-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75em;
  color: #dc2626;
}

.fcv-metric__depth-value {
  font-weight: 700;
}

.fcv-metric__depth-direction {
  font-weight: 500;
  color: #9a3412;
}

.fcv-metric__tra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.8em;
  color: #475467;
}

.fcv-metric__tra-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fcv-metric__tra-value {
  font-weight: 600;
}

.fcv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75em;
  letter-spacing: 0.05em;
}

.fcv-badge--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.fcv-badge--success {
  background: #dcfce7;
  color: #166534;
}

.fcv-badge--muted {
  background: #e2e8f0;
  color: #334155;
}

.fcv-card__status.fcv-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-transform: none;
  letter-spacing: 0;
  padding: 12px 18px;
  gap: 6px;
}

.fcv-metric--gps {
  border-top: 4px solid #ef4444;
}

.fcv-metric--baro {
  border-top: 4px solid #22c55e;
}

.fcv-metric--baro .fcv-metric__value {
  color: #047857;
}

.fcv-metric--baro .fcv-metric__value span {
  color: #0f766e;
}

.fcv-metric--baro .fcv-metric__value.fcv-metric__value--violation,
.fcv-metric--baro .fcv-metric__value.fcv-metric__value--violation span {
  color: #b91c1c;
}

.fcv-tra-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcv-tra-list__note,
.fcv-metric__tra-note {
  font-weight: 600;
  color: #1d2939;
  font-size: 0.8em;
}

.fcv-metric__tra-note {
  flex: 1 1 100%;
}

.fcv-metric__airspace-note {
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475467;
  margin-bottom: 2px;
}

.fcv-tra-item {
  border-left: 4px solid #0f766e;
  width: 100%;
  background: #e6fffa;
  padding: 10px 12px;
  font-size: 0.85em;
  color: #0f172a;
}

.fcv-tra-item__active {
  font-size: 0.75em;
  color: #475467;
  margin-top: 2px;
}

.fcv-tra-item__limit {
  font-size: 0.85em;
  color: #0f172a;
}

.fcv-tra-item__limit + .fcv-tra-item__limit {
  margin-top: 2px;
}

.fcv-tra-item--inactive {
  border-left-color: #c2410c;
  background: #fff7ed;
}

.fcv-isa-details {
  display: none;
  padding: 14px;
  border: 1px dashed #cbd5f5;
  background: #f8fbff;
  font-size: 0.85em;
  color: #1d2939;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: 20px;
  border-left: 4px solid #34495e;
}

.fcv-isa-details__item {
  flex: 1 1 180px;
}

.fcv-isa-details__item--full {
  flex: 1 1 100%;
}

.fcv-card[data-calculations-expanded='true'] .fcv-isa-details {
  display: flex;
}

.fcv-table--isa-mode .fcv-isa-details {
  display: flex;
}

.fcv-table--isa-mode .fcv-card[data-calculations-expanded='false'] .fcv-isa-details {
  display: none;
}

.fcv-empty {
  padding: 18px;
  /* border-radius: 12px; */
  border: 1px dashed #d0d5dd;
  background: #f8fafc;
  color: #1d2939;
  font-size: 0.95em;
}

.fcv-note {
  font-size: 0.8em;
  color: #475467;
}

.fcv-highlight-positive {
  color: #16a34a;
  font-weight: 600;
}

.fcv-highlight-negative {
  color: #dc2626;
  font-weight: 600;
}

.fcv-alt-pair {
  font-weight: 600;
  color: #1d2939;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.fcv-alt-pair span {
  display: inline;
  font-size: 0.85em;
  color: #475467;
}

.fcv-alt-pair span::before {
  content: '·';
  margin: 0 4px 0 0;
  color: #94a3b8;
}

.fcv-alt-pair--violation,
.fcv-metric__value--violation {
  color: #b91c1c;
}

.fcv-alt-pair--violation span,
.fcv-metric__value--violation span {
  color: #b91c1c;
}

.fcv-metric__depth-value {
  color: #b91c1c;
}

.violation-debug-content {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed #d0d5dd;
}

.isa-debug-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.isa-debug-details {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.isa-debug-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  /* border-radius: 10px; */
  padding: 10px 12px;
}

.isa-debug-title {
  font-weight: 700;
  font-size: 0.9em;
  color: #1d2939;
}

.isa-debug-line {
  font-size: 0.85em;
  color: #475467;
}

.isa-debug-math {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.isa-debug-subtitle {
  font-weight: 600;
  font-size: 0.85em;
  color: #334155;
}

.isa-debug-mathjax {
  display: block;
  width: 100%;
}

.isa-debug-result {
  font-weight: 700;
}

.isa-flag-success {
  color: #16a34a;
  font-weight: 600;
}

.isa-flag-warning {
  color: #dc2626;
  font-weight: 600;
}

@media (max-width: 768px) {
  .isa-debug-flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .fcv-card {
    padding: 16px;
  }
  .fcv-card__header {
    gap: 12px;
  }
  .fcv-card__info {
    column-gap: 16px;
  }
  .fcv-card__actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}
