/* ==========================================================================
   stevennguyen — OCC-02: In-Flight Diversion & Alternate Aerodrome Matrix
   Fuel Reserve (FRF 1,150 kg) · Weather Minima · RFF Cat · ACARS Concurrence Gate
   ========================================================================== */

.div-sc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.div-sc-btn {
  text-align: left;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid #1E3A5F;
  background: #09172B;
  color: #E6F2FF;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  min-width: 0;
}

.div-sc-btn:hover {
  border-color: #38BDF8;
  background: #0D213D;
}

.div-sc-btn.active {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.div-sc-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #7DD3FC;
  margin-bottom: 3px;
}

.div-sc-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.div-sc-sub {
  font-size: 11.5px;
  color: #9BB8D8;
  line-height: 1.4;
}

.div-context-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: #09172B;
  border: 1px solid #1B3355;
  margin-bottom: 14px;
  font-size: 13px;
  color: #D6E6F7;
}

.div-reset-btn {
  background: #0F233F;
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.div-reset-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38BDF8;
}

.div-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.div-kpi-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #9BB8D8;
  margin-top: 4px;
  line-height: 1.35;
}

.div-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.div-slider-card {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-width: 0;
}

.div-slider-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.div-slider-head label {
  font-size: 12.5px;
  font-weight: 700;
  color: #E6F2FF;
}

.div-slider-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #7DD3FC;
}

.div-slider-card input[type="range"] {
  width: 100%;
  accent-color: #38BDF8;
  cursor: pointer;
}

.div-slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #7FA2C7;
  margin-top: 4px;
}

.div-priority-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.div-priority-btn {
  text-align: left;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid #1E3A5F;
  background: #0A192F;
  color: #E6F2FF;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  min-width: 0;
}

.div-priority-btn:hover {
  border-color: #38BDF8;
}

.div-priority-btn.active {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.14);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.div-priority-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #7DD3FC;
  margin-bottom: 3px;
}

.div-priority-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.div-priority-sub {
  font-size: 11.5px;
  color: #9BB8D8;
  line-height: 1.4;
}

/* Candidate Alternate Matrix (3 Cards) */
.div-alt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.div-alt-card {
  text-align: left;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid #1B3355;
  background: #081526;
  color: #E6F2FF;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.div-alt-card:hover {
  border-color: #38BDF8;
  background: #0B1B31;
}

.div-alt-card.selected {
  border-color: #38BDF8;
  background: #0C1F38;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.div-alt-card.tone-alert.selected {
  border-color: #FB7185;
  box-shadow: 0 0 0 2px rgba(251, 113, 133, 0.38);
}

.div-alt-card.tone-good.selected {
  border-color: #34D399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.35);
}

.div-alt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.div-alt-icao {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
}

.div-alt-name {
  font-size: 12px;
  color: #9BB8D8;
  font-weight: 600;
}

.div-alt-score-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.div-alt-score-pill.good {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6EE7B7;
}

.div-alt-score-pill.warn {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #FCD34D;
}

.div-alt-score-pill.alert {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(251, 113, 133, 0.6);
  color: #FDA4AF;
}

.div-alt-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.div-alt-metric-box {
  background: #050F1D;
  border: 1px solid #152B48;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  min-width: 0;
}

.div-alt-metric-lbl {
  color: #7FA2C7;
  font-size: 9.5px;
  display: block;
}

.div-alt-metric-val {
  color: #E6F2FF;
  font-weight: 700;
  font-size: 11px;
  display: block;
  margin-top: 2px;
}

.div-metar-box {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.45;
  color: #A9C7E8;
  background: #040B15;
  border: 1px solid #132844;
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.div-alt-support {
  font-size: 11.5px;
  color: #BFD6EE;
  line-height: 1.4;
}

.div-violation-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.div-violation-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.6);
  color: #FDA4AF;
  line-height: 1.35;
}

.div-legal-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.35;
  margin-top: auto;
}

.div-legal-tag.good {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

.div-legal-tag.warn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #FCD34D;
}

.div-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9BB8D8;
}

.div-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.div-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.occ-wallboard .div-gate-btn:disabled {
  background: #102038;
  color: #94B2D4;
  border-color: #243E63;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.div-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: start;
}

.div-dim-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.div-dim-row {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 9px 12px;
}

.div-dim-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #E6F2FF;
  margin-bottom: 5px;
}

.div-dim-track {
  height: 8px;
  border-radius: 999px;
  background: #040B15;
  border: 1px solid #162B47;
  overflow: hidden;
}

.div-dim-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.div-audit-box {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 11px 13px;
  font-size: 12.5px;
  color: #D6E6F7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.div-acars-pre {
  margin: 0;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: #040B15;
  border: 1px solid #1B3355;
  font-family: var(--font-mono);
  font-size: 11.8px;
  line-height: 1.65;
  color: #7DD3FC;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 980px) {
  .div-sc-grid,
  .div-controls-grid,
  .div-priority-bar,
  .div-alt-grid,
  .div-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .div-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .div-kpi-row,
  .div-alt-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}
