/* Revision UI - ICAC */
/* Estilos para la página de revisiones y comparación diff */

/* --- Página de Revisiones (/node/{id}/revisions) --- */
.revision-current {
  background-color: #e8f5e9;
  font-weight: 600;
}

table.revision-list td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

table.revision-list tr:hover {
  background-color: #f5f5f5;
}

/* --- Diff comparison pages --- */
.diff-module {
  margin: 1rem 0;
}

.diff-module .diff-nav {
  background: #1a2744;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem 0.375rem 0 0;
}

.diff-module .diff-nav a {
  color: #93c5fd;
}

.diff-module table.diff {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.diff-module table.diff td {
  padding: 0.25rem 0.5rem;
  border: 1px solid #e5e7eb;
  vertical-align: top;
}

.diff-module table.diff .diff-addedline {
  background-color: #dcfce7;
}

.diff-module table.diff .diff-deletedline {
  background-color: #fee2e2;
}

.diff-module table.diff .diff-context {
  background-color: #f9fafb;
  color: #6b7280;
}

/* --- View Cambios Recientes (/admin/content/recent-changes) --- */
.view-recent-changes .view-filters {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.view-recent-changes table {
  width: 100%;
  border-collapse: collapse;
}

.view-recent-changes table th {
  background: #1a2744;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
}

.view-recent-changes table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.view-recent-changes table tr:nth-child(even) {
  background-color: #f9fafb;
}

.view-recent-changes table tr:hover {
  background-color: #eff6ff;
}

/* --- Revision log field en formularios --- */
.form-item-revision-log textarea {
  border: 2px solid #1a2744;
  border-radius: 0.375rem;
}

.form-item-revision-log textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
