
/* GlobalHub 0.9.19.0 — persistent EquipmentCatalog link */

.ecat-link-card {
  margin: 0 0 14px;
  padding: 15px;
  border: 1px solid rgba(144, 184, 226, .16);
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      rgba(69, 184, 255, .055),
      rgba(255, 255, 255, .018)
    );
}

.ecat-link-card.local {
  background: rgba(255, 255, 255, .022);
}

.ecat-link-card.pending {
  border-color: rgba(69, 184, 255, .28);
}

.ecat-link-card.danger {
  border-color: rgba(255, 126, 126, .28);
  background: rgba(255, 126, 126, .045);
}

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

.ecat-link-card-head h4 {
  margin: 2px 0 0;
  font-size: 15px;
}

.ecat-link-eyebrow {
  color: #7bcfff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ecat-link-card > p {
  margin: 10px 0 0;
  color: var(--muted, #8fa4bb);
  line-height: 1.5;
}

.ecat-link-status-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(144, 184, 226, .18);
  border-radius: 999px;
  color: #a8b9ca;
  font-size: 10px;
  white-space: nowrap;
}

.ecat-link-status-badge.ok {
  border-color: rgba(84, 227, 182, .28);
  background: rgba(84, 227, 182, .08);
  color: #aaf0d7;
}

.ecat-link-status-badge.warn {
  border-color: rgba(255, 196, 92, .3);
  background: rgba(255, 196, 92, .08);
  color: #ffe0a4;
}

.ecat-link-status-badge.pending {
  border-color: rgba(69, 184, 255, .32);
  background: rgba(69, 184, 255, .08);
  color: #b6e8ff;
}

.ecat-link-status-badge.danger {
  border-color: rgba(255, 126, 126, .3);
  background: rgba(255, 126, 126, .08);
  color: #ffc2c2;
}

.ecat-link-summary {
  display: grid;
  grid-template-columns: 1.25fr .7fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.ecat-link-summary > div,
.ecat-link-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(144, 184, 226, .11);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
}

.ecat-link-summary span,
.ecat-link-metrics span {
  display: block;
  color: var(--muted, #8fa4bb);
  font-size: 9px;
}

.ecat-link-summary b,
.ecat-link-summary small,
.ecat-link-metrics b,
.ecat-link-metrics code {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecat-link-summary b,
.ecat-link-metrics b {
  font-size: 11px;
}

.ecat-link-summary small,
.ecat-link-metrics code {
  color: #8fa4bb;
  font-size: 9px;
}

.ecat-link-metrics {
  display: grid;
  grid-template-columns: .55fr 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.ecat-link-actions,
.ecat-link-comparison-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ecat-link-message {
  margin-top: 12px;
  padding: 9px 11px;
  border-left: 3px solid rgba(69, 184, 255, .55);
  border-radius: 7px;
  background: rgba(69, 184, 255, .055);
  color: #bcd2e6;
  font-size: 11px;
}

.ecat-link-technical {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  margin-top: 12px;
  color: #71879c;
  font-size: 9px;
}

.ecat-link-technical code {
  overflow: hidden;
  color: #8ea9c1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecat-link-comparison {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(144, 184, 226, .13);
}

.ecat-link-comparison-head h5 {
  margin: 0;
  font-size: 13px;
}

.ecat-link-comparison-head p {
  margin: 4px 0 10px;
  color: var(--muted, #8fa4bb);
  font-size: 10px;
}

.ecat-link-diff-table {
  display: grid;
  gap: 5px;
}

.ecat-link-diff-row {
  display: grid;
  grid-template-columns: 24px minmax(110px, .65fr) 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(144, 184, 226, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .018);
  font-size: 10px;
}

.ecat-link-diff-row.changed {
  border-color: rgba(255, 196, 92, .18);
  background: rgba(255, 196, 92, .025);
}

.ecat-link-diff-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecat-link-diff-row > span:nth-child(3) {
  color: #91a6bb;
}

.ecat-link-diff-row > span:nth-child(4) {
  color: #c9e8dc;
}

.ecat-link-diff-check {
  display: grid;
  place-items: center;
}

.ecat-link-diff-check input {
  accent-color: #45b8ff;
}

.ecat-link-table-badge {
  display: inline-flex;
  margin-top: 5px;
  padding: 2px 6px;
  border: 1px solid rgba(69, 184, 255, .2);
  border-radius: 999px;
  color: #8ecff2;
  font-size: 9px;
}

.ecat-link-table-badge.updateavailable {
  border-color: rgba(255, 196, 92, .24);
  color: #f4cc82;
}

.ecat-link-table-badge.uptodate {
  border-color: rgba(84, 227, 182, .24);
  color: #98dfc4;
}

.ecat-link-loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(69, 184, 255, .13);
  border-top-color: #45b8ff;
  border-radius: 50%;
  animation: ecat-link-spin .8s linear infinite;
}

.ecat-link-card.loading {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #8fa4bb;
}

@keyframes ecat-link-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 780px) {
  .ecat-link-summary,
  .ecat-link-metrics {
    grid-template-columns: 1fr;
  }

  .ecat-link-diff-row {
    grid-template-columns: 22px 1fr;
  }

  .ecat-link-diff-row > span:nth-child(3),
  .ecat-link-diff-row > span:nth-child(4) {
    grid-column: 2;
    white-space: normal;
  }
}
