/* Editar páginas de PDF. Thumbnail grid inside the white converter board. */

.article .epdf-page .epdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 4px 0 0;
}

.epdf-page .epdf-card {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--cv-line, #e3e9f1);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: none;
}

.epdf-page .epdf-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--cv-line, #e3e9f1);
  border-radius: 8px;
  background: #fff;
}

.epdf-page .epdf-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  background: #fff;
}

.epdf-page .epdf-thumb-ph {
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 800;
}

.epdf-page .epdf-num {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.epdf-page .epdf-card-meta {
  margin-top: 8px;
  color: var(--cv-muted, #64748b);
  font-size: 0.72rem;
  font-weight: 600;
}

.epdf-page .epdf-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.epdf-page .epdf-card-actions .cpdf-btn {
  flex: 1;
  min-width: 0;
  padding: 6px 4px;
}

.epdf-page .epdf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--cv-body, #3d4658);
  font-size: 0.88rem;
  line-height: 1.35;
}

.epdf-page .epdf-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 3px 0 0;
  padding: 0;
  accent-color: #2563eb;
}

.epdf-page .epdf-pages-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html[data-theme="dark"] .epdf-page .epdf-card,
html[data-theme="dark"] .epdf-page .epdf-thumb {
  border-color: #334155;
  background: #0f172a;
}

html[data-theme="dark"] .epdf-page .epdf-thumb img {
  background: #0f172a;
}
