/* ==========================================================================
   modules/backups.css - Modulo: Administracion de Backups.
   Fase 1: movido TAL CUAL (orden preservado => cascada identica).
   ========================================================================== */
/* ===== Fase 3: Administración de Backups ===== */
.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.backup-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow);
}
.backup-card.full { grid-column: 1 / -1; }
.backup-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.backup-warning {
  background: #fff7e6;
  border: 1px solid #ffd58a;
  color: #6b4300;
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  font-weight: 700;
}
.backup-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--text);
}
.backup-check input { width: auto; }
.backup-table table { min-width: 640px; }
.file-name-cell {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .backup-grid { grid-template-columns: 1fr; }
  .backup-card.full { grid-column: auto; }
}

/* Backups v2: configuracion automatica */
.backup-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(160px,1fr));
  gap:12px;
  margin:12px 0 16px;
}
.mini-stat{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius: var(--radius-md);
  padding:12px 14px;
}
.mini-stat span{
  display:block;
  color:#64748b;
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin-bottom:4px;
}
.mini-stat strong{
  display:block;
  color:#0f172a;
  font-size:.95rem;
  white-space:nowrap;
}
.backup-config-form{
  display:block;
  margin-top:10px;
}
.backup-config-form .compact{
  margin:12px 0;
}
.inline-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
}
.backup-warning.soft{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#9a3412;
  margin:10px 0;
}
@media (max-width: 920px){
  .backup-status-grid{grid-template-columns:repeat(2,minmax(160px,1fr));}
}
@media (max-width: 560px){
  .backup-status-grid{grid-template-columns:1fr;}
}


/* Ajuste: navegación rápida HSE desde reportes y personal */
.table-person-link {
  color: #0b3a75;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.table-person-link:hover {
  color: #FFC000;
  text-decoration: underline;
}
.report-link-hint {
  margin: -0.35rem 0 0.85rem;
  color: #64748b;
  font-size: 0.86rem;
}
.row-action.hse-report {
  background: #0b2f5b;
  color: #fff;
  border-color: #0b2f5b;
}
.row-action.hse-report:hover {
  background: #FFC000;
  color: #0b2f5b;
  border-color: #FFC000;
}

