.ua-network-page {
  --network-bg: #0b1320;
  --network-panel: #111c2d;
  --network-panel-2: #0d1828;
  --network-line: rgba(148, 163, 184, .2);
  --network-text: #eef4ff;
  --network-muted: #97a7ba;
  --network-accent: #ffbd17;
  --network-cyan: #22d3ee;
  max-width: 1540px;
  margin: 0 auto;
  padding: 14px 14px 40px;
  color: var(--network-text);
}

.ua-network-alert {
  margin: 0 0 14px;
  border-radius: 12px;
}

.ua-network-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 146px;
  padding: 24px 28px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0, rgba(34, 211, 238, .16), transparent 34%),
    linear-gradient(125deg, #101d31 0%, #0d1727 58%, #121b2b 100%);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.ua-network-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: 36%;
  top: -62px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 189, 23, .12);
  border-radius: 50%;
}

.ua-network-hero__main,
.ua-network-card__head,
.ua-network-card__title,
.ua-network-stat,
.ua-network-connection {
  display: flex;
  align-items: center;
}

.ua-network-hero__main {
  position: relative;
  z-index: 1;
  gap: 18px;
  min-width: 0;
}

.ua-network-hero__icon {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, .32);
  border-radius: 18px;
  background: rgba(8, 25, 41, .72);
  color: var(--network-cyan);
  font-size: 29px;
  box-shadow: inset 0 0 24px rgba(34, 211, 238, .07);
}

.ua-network-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--network-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.ua-network-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 950;
  line-height: 1.2;
}

.ua-network-hero p {
  max-width: 720px;
  margin: 0;
  color: #acb9ca;
  font-size: 14px;
  line-height: 1.8;
}

.ua-network-connection {
  position: relative;
  z-index: 1;
  flex: 0 0 278px;
  gap: 13px;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 14px;
  background: rgba(17, 24, 39, .72);
}

.ua-network-connection.is-online {
  border-color: rgba(45, 212, 191, .32);
  background: rgba(6, 78, 59, .22);
}

.ua-network-connection__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(251, 191, 36, .13);
  color: #fbbf24;
  font-size: 18px;
}

.ua-network-connection.is-online .ua-network-connection__icon {
  background: rgba(45, 212, 191, .13);
  color: #2dd4bf;
}

.ua-network-connection small,
.ua-network-connection span,
.ua-network-stat span,
.ua-network-card__head p,
.ua-network-table td small {
  display: block;
  color: var(--network-muted);
}

.ua-network-connection small {
  margin-bottom: 3px;
  font-size: 11px;
}

.ua-network-connection strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 14px;
}

.ua-network-connection span {
  font-size: 11px;
}

.ua-network-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.ua-network-stat {
  gap: 13px;
  min-height: 76px;
  padding: 14px 17px;
  border: 1px solid var(--network-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(18, 31, 50, .94), rgba(12, 23, 38, .96));
}

.ua-network-stat > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 189, 23, .1);
  color: var(--network-accent);
  font-size: 16px;
}

.ua-network-stat strong {
  display: block;
  margin-bottom: 1px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.ua-network-stat span {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}

.ua-network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.ua-network-card {
  padding: 20px;
  border: 1px solid var(--network-line);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(17, 28, 45, .98), rgba(11, 21, 35, .98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.ua-network-card--table {
  margin-top: 14px;
}

.ua-network-card__head {
  gap: 13px;
  padding-bottom: 16px;
  margin-bottom: 17px;
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.ua-network-card__head--row {
  justify-content: space-between;
}

.ua-network-card__title {
  gap: 13px;
}

.ua-network-card__icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 189, 23, .24);
  border-radius: 12px;
  background: rgba(255, 189, 23, .09);
  color: var(--network-accent);
  font-size: 17px;
}

.ua-network-card__head h2 {
  margin: 0 0 4px;
  color: #f8fbff;
  font-size: 17px;
  font-weight: 950;
}

.ua-network-card__head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.ua-network-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.ua-network-span {
  grid-column: 1 / -1;
}

.ua-network-form label {
  display: block;
  margin-bottom: 7px;
  color: #bac6d6;
  font-size: 12px;
  font-weight: 850;
}

.ua-network-form .form-control {
  height: 43px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 10px;
  background: #0a1728;
  color: #edf5ff;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.ua-network-form select.form-control {
  padding-inline: 12px 34px;
}

.ua-network-form .form-control:focus {
  border-color: rgba(34, 211, 238, .65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .09);
}

.ua-network-form .form-control::placeholder {
  color: #63758d;
}

.ua-network-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ua-network-check {
  margin: 0 !important;
  cursor: pointer;
}

.ua-network-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ua-network-check span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 10px;
  background: rgba(8, 19, 33, .68);
  color: #aebdd0;
  font-size: 12px;
}

.ua-network-check input:checked + span {
  border-color: rgba(45, 212, 191, .38);
  background: rgba(45, 212, 191, .09);
  color: #71e3d2;
}

.ua-network-form__actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px solid rgba(148, 163, 184, .12);
}

.ua-network-form__actions .btn,
.ua-network-secondary-action,
.ua-network-actions .btn,
.ua-network-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.ua-network-form__actions .btn {
  min-height: 42px;
  padding-inline: 20px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd13e, #ffb300);
  color: #231a00;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(255, 179, 0, .13);
}

.ua-network-secondary-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 189, 23, .28);
  border-radius: 10px;
  background: rgba(255, 189, 23, .08);
  color: #ffd45b;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.ua-network-secondary-action:hover {
  color: #fff0ad;
  text-decoration: none;
}

.ua-network-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(251, 191, 36, .26);
  border-radius: 999px;
  background: rgba(251, 191, 36, .08);
  color: #f8cc56;
  font-size: 11px;
  font-weight: 900;
}

.ua-network-empty {
  display: flex;
  min-height: 168px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, .22);
  border-radius: 13px;
  background: rgba(6, 14, 25, .28);
  text-align: center;
}

.ua-network-empty > span {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 11px;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 211, 238, .08);
  color: var(--network-cyan);
  font-size: 19px;
}

.ua-network-empty h3 {
  margin: 0 0 6px;
  color: #eef5ff;
  font-size: 15px;
  font-weight: 900;
}

.ua-network-empty p {
  max-width: 500px;
  margin: 0;
  color: var(--network-muted);
  font-size: 12px;
  line-height: 1.7;
}

.ua-network-empty a {
  margin-top: 11px;
  color: #ffd45b;
  font-size: 12px;
  font-weight: 900;
}

.ua-network-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
}

.ua-network-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0 7px;
}

.ua-network-table--requests {
  min-width: 1080px;
}

.ua-network-table th {
  padding: 0 12px 7px;
  color: #8293a8;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.ua-network-table td {
  padding: 12px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
  background: rgba(8, 18, 31, .62);
  color: #dbe6f5;
  font-size: 12px;
  vertical-align: middle;
}

.ua-network-table td:first-child {
  border-inline-start: 1px solid rgba(148, 163, 184, .14);
  border-radius: 0 10px 10px 0;
}

.ua-network-table td:last-child {
  border-inline-end: 1px solid rgba(148, 163, 184, .14);
  border-radius: 10px 0 0 10px;
}

.ua-network-table td strong {
  display: block;
  color: #f3f7fd;
  font-size: 12px;
}

.ua-network-table td small {
  max-width: 330px;
  margin-top: 4px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ua-network-badge,
.ua-network-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.ua-network-badge i {
  font-size: 7px;
}

.ua-network-badge.pending {
  background: rgba(251, 191, 36, .12);
  color: #f7cb58;
}

.ua-network-badge.approved {
  background: rgba(45, 212, 191, .12);
  color: #64dbc9;
}

.ua-network-badge.rejected,
.ua-network-badge.blocked {
  background: rgba(248, 113, 113, .11);
  color: #f79a9a;
}

.ua-network-type {
  background: rgba(96, 165, 250, .1);
  color: #8dbcf8;
}

.ua-network-type.is-external {
  background: rgba(34, 211, 238, .1);
  color: #67ddeb;
}

.ua-network-use,
.ua-network-date {
  color: #b6c3d3;
  font-size: 11px;
  white-space: nowrap;
}

.ua-network-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.ua-network-actions form,
.ua-network-table form {
  margin: 0;
}

.ua-network-actions .btn,
.ua-network-icon-btn {
  min-height: 32px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .ua-network-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ua-network-connection {
    flex-basis: auto;
    width: 100%;
  }

  .ua-network-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ua-network-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ua-network-page {
    padding: 9px 8px 28px;
  }

  .ua-network-hero {
    gap: 18px;
    min-height: 0;
    padding: 19px;
    border-radius: 15px;
  }

  .ua-network-hero__main {
    align-items: flex-start;
  }

  .ua-network-hero__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 20px;
  }

  .ua-network-hero p {
    font-size: 12px;
  }

  .ua-network-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ua-network-stat {
    gap: 9px;
    min-height: 68px;
    padding: 11px;
  }

  .ua-network-stat > i {
    width: 32px;
    height: 32px;
  }

  .ua-network-stat strong {
    font-size: 18px;
  }

  .ua-network-stat span {
    font-size: 10px;
  }

  .ua-network-card {
    padding: 15px;
    border-radius: 14px;
  }

  .ua-network-card__head--row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ua-network-form-grid {
    grid-template-columns: 1fr;
  }

  .ua-network-span {
    grid-column: auto;
  }

  .ua-network-checks {
    flex-direction: column;
  }

  .ua-network-check span,
  .ua-network-form__actions .btn,
  .ua-network-secondary-action {
    width: 100%;
  }
}
