/* =========================================================
   NOTIFICACIONES PUSH
========================================================= */

.notif-push-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

/* =========================================================
   HEADER
========================================================= */

.notif-push-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notif-push-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-push-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-push-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.notif-push-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.notif-push-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--color_primario);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.notif-push-btn-primary:hover {
  opacity: 0.92;
}

.notif-push-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* =========================================================
   KPIS
========================================================= */

.notif-push-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.notif-push-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  background: #ffffff;
}

.notif-push-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
}

.notif-push-kpi-icon-success {
  background: #ecfdf3;
  color: #027a48;
}

.notif-push-kpi-icon-primary {
  background: #eff6ff;
  color: #2563eb;
}

.notif-push-kpi-icon-warning {
  background: #fff7ed;
  color: #ea580c;
}

.notif-push-kpi-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notif-push-kpi-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #111827;
}

.notif-push-kpi-label {
  font-size: 12px;
  color: #6b7280;
}

/* =========================================================
   LIST WRAPPER
========================================================= */

.notif-push-list-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* =========================================================
   LIST
========================================================= */

.notif-push-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =========================================================
   ITEM
========================================================= */

.notif-push-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  background: #ffffff;
  transition: 0.2s ease;
}

.notif-push-item:hover {
  border-color: #dbe4f0;
  transform: translateY(-1px);
}

.notif-push-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.notif-push-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 22px;
}

/* =========================================================
   PLATFORM COLORS
========================================================= */

.notif-push-platform-android {
  background: #ecfdf3;
  color: #16a34a;
}

.notif-push-platform-ios {
  background: #f3f4f6;
  color: #111827;
}

.notif-push-platform-web {
  background: #eff6ff;
  color: #2563eb;
}

/* =========================================================
   CONTENT
========================================================= */

.notif-push-item-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.notif-push-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.notif-push-item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.notif-push-item-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}

.notif-push-item-token {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-family: monospace;
  color: #9ca3af;
}

/* =========================================================
   BADGES
========================================================= */

.notif-push-platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.notif-push-badge-android {
  background: #ecfdf3;
  color: #16a34a;
}

.notif-push-badge-ios {
  background: #f3f4f6;
  color: #111827;
}

.notif-push-badge-web {
  background: #eff6ff;
  color: #2563eb;
}

/* =========================================================
   RIGHT
========================================================= */

.notif-push-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* =========================================================
   STATUS
========================================================= */

.notif-push-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.notif-push-status.active {
  background: #ecfdf3;
  color: #027a48;
}

.notif-push-status.inactive {
  background: #fef2f2;
  color: #dc2626;
}

.notif-push-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

/* =========================================================
   LAST CONNECTION
========================================================= */

.notif-push-last {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.notif-push-last-label {
  font-size: 10px;
  color: #9ca3af;
}

.notif-push-last-value {
  font-size: 11px;
  color: #6b7280;
}

/* =========================================================
   EMPTY
========================================================= */

.notif-push-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  padding: 40px 20px;
  text-align: center;
}

.notif-push-empty-icon {
  font-size: 54px;
  color: #cbd5e1;
}

.notif-push-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.notif-push-empty-text {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
  .notif-push-header {
    flex-direction: column;
    align-items: stretch;
  }

  .notif-push-header-right {
    width: 100%;
  }

  .notif-push-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .notif-push-kpis {
    grid-template-columns: 1fr;
  }

  .notif-push-item {
    flex-direction: column;
    align-items: stretch;
  }

  .notif-push-item-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .notif-push-last {
    align-items: flex-start;
  }
}
