/* =========================================================
   NOTIFICAÇÕES PUSH
   Cartão "Notificações no aparelho" (Minhas Informações),
   convite no Início e atalho no sino.
========================================================= */
.push-card{ margin-bottom: 16px; padding-bottom: 18px; }
.push-card .report-card-header{ margin-bottom: 14px; }
.push-card > :not(.report-card-header){ margin-left: 20px; margin-right: 20px; }
@media (max-width: 760px){ .push-card > :not(.report-card-header){ margin-left: 14px; margin-right: 14px; } }

.push-status{ display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper); }
.push-status > span{ font-size: 22px; line-height: 1.1; flex: 0 0 auto; }
.push-status > div > b{ display: block; font-size: 14.5px; color: var(--ink); }
.push-status p b, .push-status li b{ color: var(--ink); }
.push-status p, .push-status li{ margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.push-status ol{ margin: 6px 0 8px; padding-left: 20px; }
.push-status .btn{ margin-top: 6px; }
.push-status.on{ background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.push-status.off{ background: var(--brand-soft); border-color: var(--highlight-line); }
.push-status.warn{ background: #FFF7E6; border-color: #F5D9A6; }
.push-small{ font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

.push-actions{ display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.push-actions .btn{ min-height: 44px; }

.push-sub{ margin: 18px 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--text-muted); }
.push-sub span{ text-transform: none; font-weight: 400; letter-spacing: 0; }

.push-cats{ display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.push-cat{ position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
  background: var(--paper-raised); border-top: 1px solid var(--line); min-height: 56px; }
.push-cat:first-child{ border-top: 0; }
.push-cat:hover{ background: var(--paper); }
.push-cat-ic{ font-size: 19px; width: 26px; text-align: center; flex: 0 0 auto; }
.push-cat-tx{ flex: 1 1 auto; min-width: 0; }
.push-cat-tx b{ display: block; font-size: 14px; color: var(--ink); }
.push-cat-tx small{ display: block; margin-top: 1px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.push-cat input{ position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.push-cat .lv-switch{ position: relative; flex: 0 0 42px; width: 42px; height: 24px; border-radius: 999px;
  background: var(--line-strong); transition: background .2s ease; }
.push-cat .lv-switch::after{ content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s cubic-bezier(.22,1,.36,1); }
.push-cat input:checked + .lv-switch{ background: var(--brand-accent); }
.push-cat input:checked + .lv-switch::after{ transform: translateX(18px); }
.push-cat input:focus-visible + .lv-switch{ box-shadow: var(--focus); }
.push-cat-privacy{ background: var(--paper); }

.push-devices{ list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.push-devices li{ display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.push-devices li:first-child{ border-top: 0; }
.push-devices small{ display: block; color: var(--text-muted); font-size: 12px; }
.push-devices .link-btn{ min-height: 40px; }

/* Convite no Início */
.push-promo{ display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 14px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand) 0%, #16408F 100%); color: #fff; box-shadow: var(--shadow-float); }
.push-promo-ic{ font-size: 24px; }
.push-promo > div{ flex: 1 1 auto; min-width: 0; }
.push-promo b{ display: block; font-size: 14.5px; }
.push-promo p{ margin: 2px 0 0; font-size: 12.5px; opacity: .85; line-height: 1.4; }
/* O convite fica sobre um gradiente azul-escuro. O tema base pinta
   .btn-primary com "#appRoot .btn-primary" (id + classe), que vence
   ".push-promo .btn" (duas classes) — o fundo branco não era aplicado e
   sobrava texto azul-escuro sobre fundo azul-escuro, ilegível.
   Repetir #appRoot aqui resolve a especificidade. */
/* O valor literal no var() não é enfeite: se --brand faltar, "color:var(--brand)"
   é inválido e a cor passa a ser herdada — ou seja, o branco do cartão sobre o
   botão branco, texto invisível. O fallback garante azul legível sempre. */
.push-promo .btn,
#appRoot .push-promo .btn,
#appRoot .push-promo .btn-primary{
  background: #fff; color: var(--brand, #0B2A63); border-color: #fff;
  flex: 0 0 auto; min-height: 44px; padding: 8px 18px;
  font-weight: 800; box-shadow: 0 2px 8px -2px rgba(6, 27, 69, .45);
}
#appRoot .push-promo .btn:hover,
#appRoot .push-promo .btn-primary:hover{
  background: #EAF1FF; border-color: #EAF1FF; color: var(--brand, #0B2A63);
}
#appRoot .push-promo .btn:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; box-shadow: none; }
.push-promo-x{ background: none; border: 0; color: #fff; opacity: .7; font-size: 16px; width: 36px; height: 36px; cursor: pointer; border-radius: 50%; flex: 0 0 auto; }
.push-promo-x:hover{ opacity: 1; background: rgba(255,255,255,.12); }

/* Atalho no sino */
.notif-push-link{ display: block; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: var(--paper);
  color: var(--brand-accent-strong); font: inherit; font-size: 13.5px; font-weight: 700; text-align: left; cursor: pointer; }
.notif-push-link:hover{ background: var(--brand-soft); }

@media (max-width: 560px){
  .push-actions .btn{ flex: 1 1 100%; }
  /* No celular o convite empilha: ícone + texto na primeira linha e o
     botão ocupando a largura, em vez de espremido num canto.
     O ✕ sai do fluxo e vai para o canto, senão sobra sozinho numa linha. */
  .push-promo{ flex-wrap: wrap; align-items: flex-start; position: relative; padding-right: 46px; }
  .push-promo > div{ flex: 1 1 calc(100% - 80px); }
  #appRoot .push-promo .btn{ flex: 1 1 100%; margin-left: 0; }
  .push-promo-x{ position: absolute; top: 8px; right: 8px; }
}
