.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ref-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px;
}

.ref-card-wide {
  grid-column: span 2;
}

.ref-card-title {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.ref-card-value {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  word-break: break-all;
}

.ref-card-sub {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.ref-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  background: #fafafa;
}

.ref-btn {
  border: none;
  background: #ff4d4d;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  width: 100%;
}

.ref-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.ref-qr {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-qr img {
  width: 160px;
  height: 160px;
  border: 1px solid #eee;
  border-radius: 6px;
  max-width: 100%;
  height: auto;
}

.ref-tree-table {
  margin-top: 16px;
}

@media (max-width: 768px) {

  .ref-grid {
    grid-template-columns: 1fr;
  }

  .ref-card {
    padding: 12px;
  }

  .ref-card-wide {
    grid-column: span 1;
  }

 .ref-card-value {
	font-size: 16px;
	color: black;
}
  .ref-input {
    font-size: 12px;
  }

  .ref-qr img {
    width: 140px;
  }
}
