/* ======= DESKTOP ======= */
#sds-sidebar {
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 20px;
  max-height: calc(100vh - 120px);
}

#sds-search {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#sds-search:focus {
  border-color: #94A3B8;
  box-shadow: 0 0 0 3px rgba(148,163,184,.25);
}

#sds-product-filters, #sds-lang-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sds-filter-btn, .sds-lang-btn {
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid #E5E7EB;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.sds-filter-btn:hover, .sds-lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.sds-filter-btn.active, .sds-lang-btn.active {
  background: #0EA5E9;
  color: white;
  border-color: #0EA5E9;
}

#sds-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

#sds-table th, #sds-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  text-align: center;
  font-size: 14px;
  vertical-align: middle;
}

#sds-table th:first-child,
#sds-table td:first-child {
  text-align: left;
}

#sds-table th {
  background: #F8FAFC;
  font-weight: 600;
}

#sds-table tr:hover {
  background: #F9FAFB;
}

.sds-download {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  text-decoration: none;
}

.sds-actions-cell .button {
  margin: 2px 2px 2px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sds-actions-cell .dashicons {
  line-height: 1;
}

.sds-actions-cell .sds-wa-btn {
  background: #22c55e;
  border-color: #16a34a;
  color: #fff;
}
.sds-actions-cell .sds-wa-btn:hover {
  background: #16a34a;
  color: #fff;
}

.sds-actions-cell {
  vertical-align: middle;
  text-align: right;
}

@media (max-width: 768px) {
  #sds-sidebar {
    position: fixed;
    inset: auto 12px 12px 12px;
    z-index: 60;
    transform: translateY(120%);
    transition: transform .25s ease;
  }
  #sds-sidebar.active { transform: translateY(0%); }
  #sds-table th:nth-child(2), #sds-table td:nth-child(2) { display: none; } /* nascondi colonna versione su mobile */
}
