/* ── Trung Tâm Tải Xuống v2 ── */

#sdcv2-wrapper {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 960px;
  margin: 0 auto;
}

/* Search */
#sdcv2-search-wrap {
  margin-bottom: 28px;
}
.sdcv2-search-inner {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 420px;
}
.sdcv2-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #86868b;
  font-size: 15px;
  pointer-events: none;
}
#sdcv2-search {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  background: #f5f5f7;
  color: #1d1d1f;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#sdcv2-search:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0,113,227,.12);
  background: #fff;
}
#sdcv2-search::placeholder { color: #86868b; }

/* Table grid — 4 cột */
#sdcv2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  overflow: hidden;
  background: #d2d2d7;
  gap: 1px;
}

@media (max-width: 860px) {
  #sdcv2-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  #sdcv2-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  #sdcv2-grid { grid-template-columns: 1fr; }
}

/* Each cell */
.sdcv2-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  cursor: pointer;
  min-width: 0;
}
.sdcv2-item:hover {
  background: #f0f0f5;
}
.sdcv2-item.hidden {
  display: none;
}

/* Icon */
.sdcv2-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
  background: #f5f5f7;
}

/* Text */
.sdcv2-text { flex: 1; min-width: 0; }
.sdcv2-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}
.sdcv2-desc {
  font-size: 11px;
  color: #86868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Empty state */
#sdcv2-empty {
  display: none;
  text-align: center;
  padding: 40px;
  color: #86868b;
  font-size: 14px;
  grid-column: 1 / -1;
  background: #fff;
}
