.product-docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  background-color: #fff;
  border: 1px solid #ccc;
  table-layout: fixed; /* keep columns steady */
}

.product-docs-table thead { background-color: #f5f5f5; }

.product-docs-table th,
.product-docs-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.nowrap { white-space: nowrap; }
.td-col-action { text-align: center; }
.td-col-action .button {
  white-space: nowrap;
  padding: 4px 10px; /* tighter padding helps too */
}

/* --- widths for 8 columns --- */
/* 1: File */     .product-docs-table th:nth-child(1), .product-docs-table td:nth-child(1) { width: 34%; }
/* 2: Prefix */   .product-docs-table th:nth-child(2), .product-docs-table td:nth-child(2) { width: 10%; }
/* 3: Core # */   .product-docs-table th:nth-child(3), .product-docs-table td:nth-child(3) { width: 10%; }
/* 4: Item # */   .product-docs-table th:nth-child(4), .product-docs-table td:nth-child(4) { width: 12%; }
/* 5: Category */ .product-docs-table th:nth-child(5), .product-docs-table td:nth-child(5) { width: 12%; }
/* 6: Language */ .product-docs-table th:nth-child(6), .product-docs-table td:nth-child(6) { width: 8%;  }
/* 7: Version */  .product-docs-table th:nth-child(7), .product-docs-table td:nth-child(7) { width: 8%;  }
/* 8: Action */   .product-docs-table th:nth-child(8), .product-docs-table td:nth-child(8) { width: 100px; text-align: center; }

.product-docs-table a {
  color: #0073aa;
  text-decoration: none;
  word-break: break-word;
}
.product-docs-table a:hover { text-decoration: underline; }

/* Modal + button styles: unchanged */
.td-delete-button[disabled] {
  background-color: #ccc;
  color: #777;
  cursor: not-allowed;
  border: 1px solid #aaa;
  opacity: 0.6;
}
.td-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.td-modal { background: #fff; padding: 24px; max-width: 400px; width: 100%; border-radius: 6px; box-shadow: 0 2px 20px rgba(0,0,0,.2); text-align: center; }
.td-modal-actions { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
.button-danger { background: #cc0000; color: #fff; border-color: #a30000; }
.button-danger:hover { background: #a30000; }

/* Responsive: relax fixed widths on smaller screens */
@media (max-width: 1100px) {
  .product-docs-table { table-layout: auto; }
}