/* STARLINK PAYMENT SYSTEM v1.8.8 — Three-column network fleet with scroll */
#appView .dashboard-network-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: none;
}
#appView .dashboard-network-device-total {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(151, 178, 211, .27);
  border-radius: 999px;
  background: rgba(80, 111, 151, .16);
  color: #D9E6F6;
  font: 700 12px/1.2 'DM Sans', sans-serif;
  white-space: nowrap;
}
#appView .dashboard-network-devices {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-content: start;
  align-items: stretch;
  gap: 10px !important;
  max-height: 328px;
  min-height: 78px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 8px 5px 0 !important;
  scrollbar-width: thin;
  scrollbar-color: #647F9F rgba(34, 54, 80, .42);
  scrollbar-gutter: stable;
}
#appView .dashboard-network-devices::-webkit-scrollbar { width: 9px; }
#appView .dashboard-network-devices::-webkit-scrollbar-track {
  background: rgba(34, 54, 80, .42);
  border-radius: 99px;
}
#appView .dashboard-network-devices::-webkit-scrollbar-thumb {
  background: #647F9F;
  border: 2px solid #14243A;
  border-radius: 99px;
}
#appView .dashboard-network-device {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-width: 0;
  min-height: 68px;
  margin: 0;
  padding: 10px 12px !important;
  border: 1px solid rgba(133, 162, 199, .22);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(33, 57, 86, .9), rgba(22, 40, 62, .94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
#appView .dashboard-network-device-main {
  flex: 1 1 auto;
  min-width: 0;
}
#appView .dashboard-network-device-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
#appView .dashboard-network-device-title b {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #F3F7FD !important;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#appView .dashboard-network-device-title .status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin: 0 !important;
  padding: 5px 9px !important;
  font-size: 11px !important;
  line-height: 1.2;
  white-space: nowrap;
}
#appView .dashboard-network-device-main > small {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #B9CBE0 !important;
  font-size: 12px !important;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#appView .dashboard-network-device .network-device-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .035);
}
@media (max-width: 1120px) {
  #appView .dashboard-network-devices { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  #appView .dashboard-network-heading-actions { gap: 8px; }
  #appView .dashboard-network-device-total { font-size: 11px; padding: 5px 8px; }
  #appView .dashboard-network-devices {
    grid-template-columns: minmax(0, 1fr) !important;
    max-height: 390px;
    gap: 8px !important;
    padding-right: 5px !important;
  }
  #appView .dashboard-network-device { min-height: 64px; }
}
@media (max-width: 420px) {
  #appView .dashboard-network-heading-actions { align-items: flex-end; flex-direction: column; }
  #appView .dashboard-network-heading-actions .text-button { font-size: 12px !important; }
  #appView .dashboard-network-device-title { gap: 7px; }
  #appView .dashboard-network-device-title b { font-size: 13px !important; }
}

/* v1.8.9 — keep every network status badge aligned to the right edge */
#appView .dashboard-network-device-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
#appView .dashboard-network-device-title {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 9px;
}
#appView .dashboard-network-device-title b {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 112px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#appView .dashboard-network-device-title .status-pill {
  flex: 0 0 auto;
  margin-left: auto !important;
  white-space: nowrap;
}
@media (max-width: 420px) {
  #appView .dashboard-network-device-title { gap: 7px; }
  #appView .dashboard-network-device-title b {
    max-width: calc(100% - 104px);
  }
}


/* STARLINK PAYMENT SYSTEM v1.8.11 — distinct surface for network summary metrics.
   The wrapper row is intentionally brighter than the network panel; individual
   metric cards retain their own online/offline/pending/dish accent colors. */
#appView .dashboard-network-metrics {
  margin: 16px 0 17px !important;
  padding: 12px !important;
  border: 1px solid #496687 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #263f5d 0%, #213852 48%, #2a3d58 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    0 8px 18px rgba(0, 0, 0, .12) !important;
  gap: 10px !important;
}
#appView .dashboard-network-metrics > div {
  min-width: 0;
  border-radius: 10px;
}
@media (max-width: 700px) {
  #appView .dashboard-network-metrics {
    margin: 13px 0 15px !important;
    padding: 9px !important;
    gap: 8px !important;
  }
}
