
.tc-monitor-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(127,127,127,.22);
}

.tc-monitor-title {
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .62;
}

.tc-monitor-metrics {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.tc-monitor-chip {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(127,127,127,.22);
  background: rgba(127,127,127,.06);
}

.tc-monitor-chip span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  line-height: 1.2;
  opacity: .62;
}

.tc-monitor-chip b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
}

.tc-monitor-chip.ok {
  border-color: rgba(38,190,130,.38);
}

.tc-monitor-chip.warn {
  border-color: rgba(230,170,55,.48);
}

.tc-monitor-chip.bad {
  border-color: rgba(225,75,85,.55);
}

.tc-monitor-note {
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.5;
  opacity: .52;
}

@media (max-width: 640px) {
  .tc-monitor-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* === FULL MONITORING TAB === */

.tc-mon-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px;
}

.tc-mon-health {
  display: flex;
  align-items: center;
  gap: 18px;
}

.tc-mon-ring {
  --score: 0;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  padding: 7px;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--cyan)
      calc(var(--score) * 1%),
      rgba(127,127,127,.14) 0
    );
}

.tc-mon-ring > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  background: #11161d;
  padding-top: 27px;
}

.tc-mon-ring strong {
  font-size: 25px;
  line-height: 1;
}

.tc-mon-ring span {
  margin-left: 2px;
  font-size: 10px;
  opacity: .55;
}

.tc-mon-state-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
  font-size: 12px;
  opacity: .9;
}

.tc-mon-sync {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.tc-mon-sync span,
.tc-mon-small {
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .55;
}

.tc-mon-sync button {
  margin-top: 5px;
}

.tc-mon-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.tc-mon-grid-two {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.tc-mon-card {
  padding: 20px;
  margin-bottom: 18px;
}

.tc-mon-grid > .tc-mon-card {
  margin-bottom: 0;
}

.tc-mon-kv-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.tc-mon-kv {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(127,127,127,.17);
  border-radius: 11px;
  background: rgba(127,127,127,.045);
}

.tc-mon-kv span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  opacity: .55;
}

.tc-mon-kv b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.tc-mon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid rgba(127,127,127,.25);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.tc-mon-pill.ok {
  border-color: rgba(35,190,125,.55);
}

.tc-mon-pill.warn {
  border-color: rgba(230,170,50,.62);
}

.tc-mon-pill.bad {
  border-color: rgba(230,70,85,.67);
}

.tc-mon-pill.neutral {
  opacity: .7;
}

.tc-mon-note {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.55;
  opacity: .48;
}

.tc-mon-matrix {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.tc-mon-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(127,127,127,.12);
}

.tc-mon-service-row:last-child {
  border-bottom: 0;
}

.tc-mon-service-row > div {
  min-width: 0;
}

.tc-mon-service-row b,
.tc-mon-service-row span {
  display: block;
}

.tc-mon-service-row > div > b {
  font-size: 12px;
}

.tc-mon-service-row > div > span {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  opacity: .5;
}

.tc-mon-spark-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tc-mon-spark-card {
  position: relative;
  overflow: hidden;
  min-height: 115px;
  padding: 13px;
  border: 1px solid rgba(127,127,127,.17);
  border-radius: 12px;
  background: rgba(127,127,127,.04);
}

.tc-mon-spark-card > span {
  display: block;
  font-size: 10px;
  opacity: .5;
}

.tc-mon-spark-card > b {
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: 13px;
}

.tc-mon-spark {
  width: 100%;
  height: 62px;
  margin-top: 16px;
  color: var(--cyan);
}

.tc-mon-no-data {
  padding: 28px 0 8px;
  text-align: center;
  font-size: 10px;
  opacity: .4;
}

.tc-mon-incident,
.tc-mon-event {
  padding: 10px 2px;
  border-bottom: 1px solid rgba(127,127,127,.12);
}

.tc-mon-incident:last-child,
.tc-mon-event:last-child {
  border-bottom: 0;
}

.tc-mon-incident {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-mon-incident b {
  display: block;
  font-size: 12px;
}

.tc-mon-incident span,
.tc-mon-incident time,
.tc-mon-event {
  font-size: 10px;
  opacity: .58;
}

.tc-mon-incident span {
  display: block;
  margin-top: 3px;
}

.tc-mon-incident time {
  white-space: nowrap;
}

.tc-mon-empty {
  padding: 22px 6px;
  text-align: center;
  font-size: 11px;
  opacity: .45;
}

@media (max-width: 900px) {
  .tc-mon-grid-two,
  .tc-mon-spark-grid {
    grid-template-columns: 1fr;
  }

  .tc-mon-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .tc-mon-sync {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .tc-mon-health {
    align-items: flex-start;
  }

  .tc-mon-ring {
    width: 74px;
    height: 74px;
    flex-basis: 74px;
  }

  .tc-mon-ring > div {
    padding-top: 21px;
  }

  .tc-mon-ring strong {
    font-size: 20px;
  }

  .tc-mon-kv-grid {
    grid-template-columns: 1fr;
  }
}


/* TC_MTPROXY_CLIENTS_PRO_STYLE_V1 */

.tc-client-pro {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.018);
}

.tc-client-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.tc-client-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    opacity: .5;
}

.tc-client-title {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 700;
}

.tc-client-count-wrap {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.tc-client-count {
    font-size: 30px;
    line-height: 1;
}

.tc-client-count-wrap span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .55;
}

.tc-client-devices {
    display: grid;
    gap: 8px;
}

.tc-client-device {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(0,0,0,.12);
}

.tc-client-device-main {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tc-client-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan, #74eadc);
    box-shadow: 0 0 12px rgba(116,234,220,.45);
}

.tc-client-ip {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.tc-client-sub {
    margin-top: 3px;
    font-size: 11px;
    opacity: .5;
}

.tc-client-online {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    opacity: .65;
}

.tc-client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    padding: 11px 2px 2px;
    font-size: 11px;
    opacity: .58;
}

.tc-client-meta b {
    margin-left: 5px;
    font-weight: 700;
    opacity: 1;
}

.tc-client-log-head {
    margin-top: 22px;
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: .5;
}

.tc-client-events {
    display: grid;
    gap: 1px;
}

.tc-client-event {
    display: grid;
    grid-template-columns: 55px minmax(120px, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 34px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255,255,255,.045);
    font-size: 11px;
}

.tc-client-event-time {
    opacity: .42;
}

.tc-client-event-ip {
    font-weight: 600;
}

.tc-client-event-type {
    opacity: .65;
}

.tc-client-empty {
    padding: 18px 4px;
    font-size: 12px;
    opacity: .45;
}

.tc-client-footnote {
    margin-top: 13px;
    font-size: 10px;
    opacity: .35;
}

@media (max-width: 700px) {
    .tc-client-event {
        grid-template-columns: 48px 1fr;
    }

    .tc-client-event-type {
        grid-column: 2;
    }
}
