/* ==========================================================================
   stevennguyen — OCC-05: Bàn Thời tiết Mạng & Giao ca OCC
   Network SIGMET / Tropical Cyclone / Volcanic Ash Watch & Two-Person Handover
   ========================================================================== */

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

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

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

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

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

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

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

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

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

.net-context-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  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;
  overflow-wrap: anywhere;
}

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

.net-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;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.net-tag-pill.rose {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(251, 113, 133, 0.55);
  color: #FDA4AF;
}

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

.net-tag-pill.emerald {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6EE7B7;
}

.net-sigmet-raw {
  font-family: var(--font-mono);
  font-size: 11.2px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: #040B15;
  border: 1px solid rgba(251, 113, 133, 0.42);
  color: #FECDD3;
  line-height: 1.48;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

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

/* Corridor Routing Mode Controls */
.net-routing-panel {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  min-width: 0;
}

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

.net-section-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #7DD3FC;
  letter-spacing: 0.03em;
}

.net-toggle-pill {
  background: #0F233F;
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  max-width: 100%;
  white-space: normal;
}

.net-toggle-pill:hover {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.18);
}

.net-toggle-pill.reroute-on {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(52, 211, 153, 0.65);
  color: #6EE7B7;
}

.net-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.net-route-btn {
  text-align: left;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid #1C3658;
  background: #06101E;
  color: #E6F2FF;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}

.net-route-btn:hover {
  border-color: #38BDF8;
  background: #0A1A30;
}

.net-route-btn.active.mode-danger {
  border-color: #FB7185;
  background: rgba(244, 63, 94, 0.14);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.35);
}

.net-route-btn.active.mode-safe {
  border-color: #34D399;
  background: rgba(16, 185, 129, 0.14);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.net-route-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 3px;
}

.net-route-btn.mode-danger .net-route-tag {
  color: #FDA4AF;
}

.net-route-btn.mode-safe .net-route-tag {
  color: #6EE7B7;
}

.net-route-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.net-route-desc {
  font-size: 11.8px;
  color: #BFD6EE;
  line-height: 1.44;
  overflow-wrap: anywhere;
}

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

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

.net-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.net-legend-swatch {
  width: 14px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* SVG Node Keyboard Focus */
.net-svg-node {
  cursor: pointer;
}

.net-svg-node:focus-visible circle {
  stroke: #FFFFFF;
  stroke-width: 2.5px;
}

/* 7-Station Weather Strip & Live METAR/TAF/NOTAM Inspector */
.net-station-section {
  margin-top: 14px;
  min-width: 0;
}

.net-stn-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.net-stn-card {
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid #1B3355;
  background: #081526;
  color: #E6F2FF;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.net-stn-card:hover {
  border-color: #38BDF8;
  background: #0C1E36;
}

.net-stn-card.active {
  border-color: #38BDF8;
  background: #0D2340;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

.net-stn-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.net-stn-icao {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
}

.net-wx-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

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

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

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

.net-stn-name {
  font-size: 11px;
  font-weight: 600;
  color: #BFD6EE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.net-stn-rwy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8AB0D6;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

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

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

.net-inspector-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.net-raw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.net-raw-box {
  background: #040B15;
  border: 1px solid #162C49;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 0;
}

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

.net-raw-code {
  font-family: var(--font-mono);
  font-size: 11.2px;
  color: #E6F2FF;
  line-height: 1.48;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.net-inspector-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.2px;
  color: #D6E6F7;
  padding-top: 6px;
  border-top: 1px solid #162E4D;
  overflow-wrap: anywhere;
}

/* Bottom 2-Column Shift Handover Workspace */
.net-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
  align-items: start;
}

.net-officer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.net-officer-box {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-width: 0;
}

.net-officer-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #8AB0D6;
  margin-bottom: 5px;
}

.net-officer-readonly {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #6EE7B7;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: #040B15;
  border: 1px solid rgba(52, 211, 153, 0.35);
  overflow-wrap: anywhere;
}

.net-officer-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: #040B15;
  border: 1.5px solid #2A4B75;
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.net-officer-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.net-officer-input.invalid {
  border-color: #FB7185;
  background: rgba(244, 63, 94, 0.1);
}

.net-officer-hint {
  font-family: var(--font-mono);
  font-size: 10.5px;
  margin-top: 5px;
  color: #8AB0D6;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.net-officer-hint.invalid {
  color: #FDA4AF;
  font-weight: 700;
}

/* Critical Watchlist Checkboxes + Quick Cross-Desk Jump */
.net-wl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.net-wl-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #09172B;
  border: 1.5px solid #1B3355;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-width: 0;
}

.net-wl-row.checked {
  border-color: rgba(52, 211, 153, 0.58);
  background: rgba(16, 185, 129, 0.11);
}

.net-wl-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 240px;
  font-size: 12.3px;
  color: #E6F2FF;
  line-height: 1.46;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.net-wl-desk-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7DD3FC;
  margin-right: 6px;
}

.net-jump-btn {
  background: #0D223E;
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
  max-width: 100%;
}

.net-jump-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.net-extra-jumps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: #040B15;
  border: 1px solid #152B47;
  margin-bottom: 12px;
  font-size: 11.5px;
  color: #9BB8D8;
  min-width: 0;
}

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

.net-memo-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.6px;
  line-height: 1.6;
  color: #7DD3FC;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: auto;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .net-stn-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

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

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

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

@media (max-width: 420px) {
  .net-stn-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
