.toolbar-right {
  display: flex;
  justify-content: flex-end;
}

/* Keep this in sync with the other pages' .card-empty (it's a global class):
   the previous opacity:0.4 here leaked onto whichever page's empty state was
   shown after the Outbounds CSS loaded, fading it. */
.card-empty {
  text-align: center;
  color: var(--ant-color-text-secondary);
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.outbound-card {
  border: 1px solid var(--ant-color-border-secondary);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.card-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.card-num {
  font-weight: 500;
  opacity: 0.7;
  min-width: 18px;
  text-align: right;
}

.tag-name {
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.protocol-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
}

.address-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.address-pill {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ant-color-fill-tertiary);
}

.egress-header {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.egress-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.egress-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.egress-address {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.egress-family {
  color: var(--ant-color-text-secondary);
  font-size: 10px;
  text-transform: uppercase;
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ant-color-border);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.country-pill.warp-on {
  border-color: #f48120;
}

.warp-cloud-icon {
  width: 1em;
  height: 1em;
  color: #f48120;
  flex: 0 0 auto;
}

.warp-cloud-icon svg {
  fill: #f48120;
}

.ip-toggle-icon {
  cursor: pointer;
  opacity: 0.65;
}

.ip-toggle-icon:hover {
  opacity: 1;
}

.address-hidden {
  filter: blur(5px);
  transition: filter 0.2s ease;
}

.address-visible {
  filter: none;
}

.action-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-index {
  font-weight: 500;
  opacity: 0.7;
  min-width: 18px;
  text-align: right;
}

.action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-left: auto;
}

.identity-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-egress {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 12px;
  opacity: 0.85;
}

.card-egress-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.card-test {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.traffic-up {
  color: #008771;
  font-size: 12px;
}

.traffic-down {
  color: #3c89e8;
  font-size: 12px;
}

.traffic-sep {
  display: inline-block;
  width: 4px;
}

.pill-ok,
.pill-fail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.pill-ok {
  color: #008771;
  background: rgba(0, 135, 113, 0.12);
}

.pill-fail {
  color: #e04141;
  background: rgba(224, 65, 65, 0.12);
}

.empty {
  opacity: 0.4;
}

.outbound-test-popover .timing-breakdown {
  font-size: 12px;
  line-height: 1.6;
  min-width: 180px;
  max-width: 320px;
}

.outbound-test-popover .td-head {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.outbound-test-popover .td-head.ok {
  color: #008771;
}

.outbound-test-popover .td-head.fail {
  color: #e04141;
}

.outbound-test-popover .mode-badge {
  font-size: 10px;
  font-weight: 500;
  padding: 0 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ant-color-primary) 12%, transparent);
  color: var(--ant-color-primary);
  margin-left: auto;
}

.outbound-test-popover .endpoint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.outbound-test-popover .endpoint-row .ep-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.outbound-test-popover .endpoint-row .ep-meta {
  opacity: 0.75;
}

.outbound-test-popover .dot-ok {
  color: #008771;
}

.outbound-test-popover .dot-fail {
  color: #e04141;
}

.outbound-test-popover .breakdown-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}

.outbound-test-popover .breakdown-row .bd-label {
  flex: 1;
  min-width: 0;
  opacity: 0.85;
}

.outbound-test-popover .breakdown-row .bd-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  opacity: 0.75;
}

.subscription-outbounds-head {
  margin-bottom: 8px;
}

.subscription-outbounds-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.subscription-outbounds-desc {
  font-size: 12px;
  opacity: 0.7;
}
