/* ==========================================================================
   stevennguyen — OCC-03: Maintenance Control Center (MCC) & MEL/CDL Watchboard
   MEL Cat A/B/C Expiry · Airframe Check FH · (O)/(M)/CDL Gate · CRS/OCC Sign-off
   ========================================================================== */

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

.mcc-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;
}

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

.mcc-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);
}

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

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

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

.mcc-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;
}

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

.mcc-context-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: #09172B;
  border: 1px solid #1B3355;
  margin-bottom: 14px;
  font-size: 12.8px;
  color: #D6E6F7;
  min-width: 0;
}

.mcc-context-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mcc-tag-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
}

.mcc-tag-pill.amber {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(251, 191, 36, 0.45);
  color: #FCD34D;
}

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

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

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

.mcc-clock-card.expired {
  border-color: rgba(251, 113, 133, 0.65);
  background: rgba(244, 63, 94, 0.11);
}

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

.mcc-clock-head label {
  font-size: 12.8px;
  font-weight: 700;
  color: #E6F2FF;
}

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

.mcc-clock-card.expired .mcc-clock-val {
  color: #FDA4AF;
}

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

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

/* Candidate Sector Assignment Matrix (3 Cards) */
.mcc-section-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #7DD3FC;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

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

.mcc-sector-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;
}

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

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

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

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

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

.mcc-sector-route {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.mcc-sector-dest {
  font-size: 12px;
  color: #9BB8D8;
  font-weight: 600;
}

.mcc-sector-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

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

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

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

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

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

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

.mcc-metric-val {
  color: #E6F2FF;
  font-weight: 700;
  font-size: 11px;
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.mcc-wx-gse-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;
}

.mcc-sector-mro {
  font-size: 11.5px;
  color: #BFD6EE;
  line-height: 1.42;
}

.mcc-sector-status {
  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;
  overflow-wrap: anywhere;
}

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

.mcc-sector-status.alert {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.6);
  color: #FDA4AF;
}

/* Mandatory (O) / (M) / CDL Performance Verification Checklist */
.mcc-checklist-card {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  min-width: 0;
}

.mcc-checklist-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mcc-checklist-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.mcc-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mcc-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: #06101E;
  border: 1px solid #183254;
  color: #D6E6F7;
  font-size: 12.2px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-width: 0;
}

.mcc-check-row:hover {
  border-color: #38BDF8;
}

.mcc-check-row.checked {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.1);
  color: #E6F2FF;
}

.mcc-check-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #10B981;
  flex-shrink: 0;
  cursor: pointer;
}

.mcc-check-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: #7DD3FC;
  margin-right: 6px;
}

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

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

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

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

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

.mcc-audit-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mcc-audit-item {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 12.4px;
  color: #D6E6F7;
  line-height: 1.48;
  min-width: 0;
}

.mcc-audit-item strong {
  color: #FFFFFF;
}

.mcc-release-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.62;
  color: #7DD3FC;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 980px) {
  .mcc-sc-grid,
  .mcc-sector-grid,
  .mcc-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

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