/* Same list as user dashboard (doc-table-container from DocumentsPage.css) */
.ems-docs-downloads {
  width: 100%;
}

/* Documents table header and row - matching participant table style */
.ems-docs-header,
.ems-docs-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1.5fr minmax(100px, 1fr) minmax(120px, 1.2fr) minmax(160px, 1.5fr);
  min-width: 0;
  box-sizing: border-box;
}

.ems-docs-header {
  background: #D9A128;
  color: #ffffff;
  font-weight: bold;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.ems-docs-header > div {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 0;
  padding: 9px 15px;
  min-width: 0;
  white-space: nowrap;
}

.ems-docs-row {
  border-bottom: 1px solid #eee;
  font-size: 12px;
  align-items: center;
  transition: background 0.2s ease-in-out;
  background: #FFFBF4;
}

.ems-docs-row > div {
  font-size: 12px;
  padding: 8px 15px;
  margin-left: 0;
  min-width: 0;
  display: flex;
  align-items: center;
}

.ems-docs-row:hover {
  background: #fffdf9;
}

/* Column alignment: left for name/email/doc, center for status/actions */
.ems-docs-header > div:nth-child(1),
.ems-docs-header > div:nth-child(2),
.ems-docs-header > div:nth-child(3),
.ems-docs-header > div:nth-child(4),
.ems-docs-header > div:nth-child(6),
.ems-docs-row > div:nth-child(1),
.ems-docs-row > div:nth-child(2),
.ems-docs-row > div:nth-child(3),
.ems-docs-row > div:nth-child(4),
.ems-docs-row > div:nth-child(6) {
  justify-content: flex-start;
  text-align: left;
}

.ems-docs-header > div:nth-child(5),
.ems-docs-header > div:nth-child(7),
.ems-docs-row > div:nth-child(5),
.ems-docs-row > div:nth-child(7) {
  /* justify-content: center; */
  text-align: center;
}

/* Status pill styles */
.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.status-signed {
  background-color: #000;
  color: #fff;
}

.status-pending {
  background-color: #D9A128;
  color: #fff;
}

.ems-docs-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ems-docs-actions .btn-icon {
  padding: 6px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 16px;
}

.ems-docs-actions .btn-icon:hover {
  color: #D9A128;
}

.ems-docs-actions .btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ems-notes-textarea {
  width: 100%;
  min-height: 32px;
  height: 32px;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
}

.ems-notes-textarea:focus {
  outline: none;
  border-color: #D9A128;
}

.ems-docs-empty {
  padding: 24px;
  text-align: center;
  color: #666;
}

/* Pagination inside table */
.docs-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: #FFFBF4;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.docs-pagination-box {
  display: flex;
  gap: 5px;
  align-items: center;
}

.docs-pagination-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
}

.docs-pagination-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #D9A128;
}

.docs-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.docs-pagination-btn.active {
  background: #D9A128;
  color: #fff;
  border-color: #D9A128;
}
