/* Sincronización automática del operativo territorial. */

.automation-panel {
  margin-top: 18px;
}

.automation-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  margin-top: 14px;
}

.automation-grid .wide {
  grid-column: 1 / -1;
}

.automation-grid label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--text);
  font-weight: 850;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 9px;
  color: var(--text) !important;
  font-weight: 850 !important;
  margin: 10px 0 12px !important;
  text-transform: none !important;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.sync-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sub-details {
  margin-top: 12px;
}

.automation-status {
  margin-top: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 750;
}

.automation-status.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.automation-status.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.next-sync-card {
  border: 1px solid #c8eee7;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
  padding: 12px;
  display: grid;
  gap: 5px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.next-sync-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.next-sync-card strong {
  color: var(--blue);
  font-size: 22px;
  line-height: 1.05;
  font-weight: 950;
}

.next-sync-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}
