/* BUILD85 FIX141 · pestañas funcionales y notificaciones legibles */
.module-tabs button {
  cursor: pointer;
  touch-action: manipulation;
}

.notification-browser-state {
  margin-top: 14px !important;
  line-height: 1.5;
}

.notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.notification-card {
  min-width: 0;
  overflow: hidden;
}

.notification-card .card-head {
  border-bottom: 1px solid rgba(148, 163, 184, .09);
}

.notification-rule-list,
.push-device-list {
  display: grid;
  gap: 0;
  padding: 8px 18px 18px;
}

.notification-rule,
.push-device-row {
  display: grid;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}

.notification-rule:last-child,
.push-device-row:last-child {
  border-bottom: 0;
}

.notification-rule {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 14px 2px;
}

.notification-rule-icon,
.push-device-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .19);
  background: rgba(212, 175, 55, .065);
  color: #f0d68a;
  font-size: 12px;
  font-weight: 950;
}

.notification-rule b,
.push-device-copy b {
  display: block;
  color: #f5f1e8;
  font-size: 14px;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.notification-rule small,
.push-device-copy small {
  display: block;
  margin-top: 4px;
  color: #8fa7ba;
  font-size: 12px;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: break-word;
}

.push-device-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 14px 2px;
}

.push-device-copy {
  min-width: 0;
}

.push-device-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .14);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.push-device-status.active {
  color: #9ff0c7;
  border-color: rgba(74, 222, 128, .27);
  background: rgba(34, 197, 94, .08);
}

.push-device-status.inactive {
  color: #b7c0cd;
  background: rgba(148, 163, 184, .07);
}

@media (max-width: 980px) {
  .notification-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .notification-rule-list,
  .push-device-list {
    padding: 6px 13px 14px;
  }

  .push-device-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .push-device-status {
    grid-column: 2;
    justify-self: start;
  }

  .notification-rule {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .notification-rule-icon,
  .push-device-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
}
