/* ==========================================================================
   Central de Notificações Comerciais — Prieto Alimentos
   Design corporativo, sóbrio, compacto e de alta densidade
   ========================================================================== */

/* Suporte obrigatório a [hidden] */
.notif-popover[hidden],
.badge-notif-contador[hidden],
.notif-admin-bar[hidden] {
  display: none !important;
}

/* Botão de Notificação no Cabeçalho */
.header-notif-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-notif-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-color, #1e293b);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-notif-trigger:hover {
  background: var(--bg-hover, #f1f5f9);
  border-color: var(--border-hover, #cbd5e1);
}

.btn-notif-trigger:focus-visible {
  outline: 2px solid #8b181b;
  outline-offset: 2px;
}

.btn-notif-trigger svg {
  display: block;
}

/* Badge numérico de não lidas */
.badge-notif-contador {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #8b181b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Painel Popover / Dropdown */
.notif-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 440px;
  max-width: calc(100vw - 24px);
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  max-height: 580px;
  animation: notifFadeIn 0.15s ease-out;
}

@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cabeçalho do Popover */
.notif-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-surface, #f8fafc);
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.notif-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-title-area strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-color, #0f172a);
}

.notif-badge-sub {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
}

.notif-source-line{padding:5px 12px;border-bottom:1px solid var(--line, #e4dfd6);color:var(--muted, #64748b);font-size:10.5px;line-height:1.3}
.notif-source-line:empty{display:none}

.notif-actions-area {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-notif-action {
  font-size: 11.5px;
  font-weight: 600;
  color: #8b181b;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.btn-notif-action:hover {
  background: rgba(139, 24, 27, 0.08);
}

.btn-notif-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-notif-icon-action:hover {
  color: #0f172a;
  background: #e2e8f0;
}

/* Filtros em Abas */
.notif-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  overflow-x: auto;
}

.notif-tab-btn {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
}

.notif-tab-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.notif-tab-btn.active {
  color: #8b181b;
  background: #fdf2f2;
  border-color: #fbcaca;
  font-weight: 700;
}

/* Seletor de Supervisor para Admin */
.notif-admin-bar {
  padding: 6px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.notif-admin-bar label {
  color: #64748b;
  font-weight: 600;
}

.notif-admin-bar select {
  font-size: 11.5px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #0f172a;
  flex: 1;
}

/* Lista de Notificações */
.notif-list-container {
  overflow-y: auto;
  max-height: 420px;
  padding: 6px 0;
}

.notif-empty {
  padding: 36px 16px;
  text-align: center;
  color: #64748b;
  font-size: 12.5px;
}

/* Card Individual de Notificação */
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
  transition: background 0.12s;
  position: relative;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: var(--bg-hover, #f8fafc);
}

.notif-item.nao-lida {
  background: #fdfaf7;
  border-left: 3px solid #8b181b;
}

.notif-item.nao-lida:hover {
  background: #f9f4ef;
}

.notif-item-body {
  flex: 1;
  min-width: 0;
}

.notif-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.notif-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Tags sóbrias corporativas */
.tag-faturado {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.tag-reativado {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.tag-novo {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.tag-reinativado {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.notif-data {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.notif-cliente-nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-color, #0f172a);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #475569;
  margin-bottom: 4px;
}

.notif-meta-cod {
  font-weight: 600;
  color: #1e293b;
}

.notif-detalhe-texto {
  font-size: 11.5px;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 6px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 2px solid #cbd5e1;
}

.notif-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.btn-notif-ficha {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #8b181b;
  background: #fbf0f0;
  border: 1px solid #f0d5d5;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s;
}

.btn-notif-ficha:hover {
  background: #f3dddd;
  border-color: #e5bebe;
}

.btn-notif-marcar-uma {
  font-size: 11px;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-notif-marcar-uma:hover {
  color: #0f172a;
  background: #e2e8f0;
}

/* Modal de Preferências */
.modal-prefs-overlay {
  max-width: 500px;
}

.pref-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.pref-row:hover {
  background: #f8fafc;
}

.pref-row input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #8b181b;
  cursor: pointer;
}

.pref-info strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 1px;
}

.pref-info span {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

.pref-push-box {
  margin-top: 14px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px dashed #cbd5e1;
}

.pref-push-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pref-push-title strong {
  font-size: 13px;
  color: #0f172a;
}

.push-badge-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}

.push-badge-status.ativo {
  background: #dcfce7;
  color: #15803d;
}

.pref-push-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
  margin-bottom: 8px;
}

.badge-supervisor-equipe {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 4px;
  border: 1px solid #dbeafe;
}

/* Responsividade Mobile */
@media (max-width: 640px) {
  .notif-popover {
    position: fixed;
    top: 56px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 70px);
  }

  .notif-item {
    padding: 10px 12px;
  }

  .notif-cliente-nome {
    font-size: 12.5px;
  }
}
/* Feed comercial: Prieto Unified. Referência: lista de registros, sem cards promocionais. */
#notif-popover{position:fixed;inset:48px 0 0 auto;width:568px;max-width:calc(100vw - 24px);max-height:none;border:0;border-left:1px solid var(--line);border-radius:0;background:var(--white);color:var(--ink);box-shadow:-16px 0 40px -24px var(--shadow-strong);display:flex;flex-direction:column;animation:none;z-index:120;overflow:hidden;font-family:var(--u-font-ui,'IBM Plex Sans',sans-serif)}
#notif-popover[hidden]{display:none!important}
#notif-popover .notif-popover-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 22px 16px;background:var(--white);border-radius:0;border:0;flex:none}
#notif-popover .notif-title-area{display:block;min-width:0}
#notif-popover h2{font:600 21px/1.2 var(--u-font-ui,'IBM Plex Sans',sans-serif);letter-spacing:-.3px;color:var(--ink);margin:0 0 5px}
#notif-popover .notif-badge-sub{display:block;background:transparent;border:0;padding:0;font-size:12px;line-height:1.4;font-weight:400;color:var(--muted);border-radius:0}
#notif-popover .notif-actions-area{display:flex;gap:4px;margin:0}
#notif-popover .btn-notif-icon-action{width:36px;height:36px;min-width:36px;min-height:36px;color:var(--muted);border-radius:4px;background:transparent;border:0;transition:background .12s ease}
#notif-popover #btn-notif-fechar{font-size:23px;font-weight:400}
#notif-popover .btn-notif-icon-action:hover{background:var(--surface-mute);color:var(--ink)}
#notif-popover .notif-tabs-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 22px;border-bottom:1px solid var(--line);background:var(--white);overflow:visible;flex:none;flex-wrap:nowrap}
#notif-popover .notif-view-tabs{display:flex;align-items:stretch;gap:16px}
#notif-popover .notif-tab-btn{min-height:44px;padding:10px 1px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:12px;font-weight:400;white-space:nowrap;flex:none;transition:color .12s ease}
#notif-popover .notif-tab-btn.active{color:var(--ink);border-bottom-color:var(--wine);font-weight:600;background:transparent}
#notif-popover .notif-type-filter{margin:0;min-width:0;width:170px;display:block}
#notif-popover .notif-type-filter select{width:100%;min-width:0;height:36px;padding:6px 24px 6px 10px;font:400 12px var(--u-font-ui,'IBM Plex Sans',sans-serif);border:1px solid var(--line);border-radius:4px;background:var(--white);color:var(--muted)}
#notif-popover .notif-source-line{flex:none;border-bottom:1px solid var(--line-soft);font-size:11px;line-height:1.5;color:var(--muted);padding:8px 22px;background:var(--white)}
#notif-popover .notif-admin-bar{display:flex;align-items:center;gap:10px;background:var(--white);border-bottom:1px solid var(--line-soft);padding:8px 22px;flex:none}
#notif-popover .notif-admin-bar[hidden]{display:none!important}
#notif-popover .notif-admin-bar label{font-size:11px;color:var(--muted)}
#notif-popover .notif-admin-bar select{min-width:0;min-height:36px;padding:6px 10px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:var(--white);font-size:12px;flex:1}
#notif-popover .notif-list-container{flex:1;min-height:0;max-height:none;padding:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:var(--white)}
#notif-popover .notif-day-group{margin:0;padding:0;border:0}
#notif-popover .notif-day-title{display:flex;align-items:center;gap:9px;position:sticky;top:0;z-index:1;padding:11px 22px 9px;margin:0;background:var(--surface-mute);border-bottom:1px solid var(--line-soft);color:var(--muted);font-size:11px;line-height:1.3;font-weight:500;letter-spacing:.1px;text-transform:none}
#notif-popover .notif-day-title>span{font-size:10px;font-weight:400;color:var(--muted)}
#notif-popover .notif-item,#notif-popover .notif-item.nao-lida{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:0;align-items:center;position:relative;margin:0;padding:0 12px 0 22px;border:0;border-bottom:1px solid var(--line-soft);border-radius:0;background:transparent;box-shadow:none;transition:background .12s ease}
#notif-popover .notif-item:hover,#notif-popover .notif-item.nao-lida:hover{background:var(--hover)}
#notif-popover .notif-open-row{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 10px 12px 0;min-width:0;min-height:88px;color:var(--ink);text-decoration:none;text-align:left;overflow-wrap:anywhere}
#notif-popover .notif-record-title{position:relative;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;min-width:0;line-height:1.3}
#notif-popover .notif-record-title strong{font-size:13px;font-weight:600;color:var(--ink)}
#notif-popover .notif-store{font-size:11px;font-weight:400;white-space:nowrap;color:var(--muted)}
#notif-popover .notif-unread-dot{position:absolute;width:5px;height:5px;border-radius:50%;left:-12px;top:6px;background:var(--muted);display:none}
#notif-popover .nao-lida .notif-unread-dot{display:block}
#notif-popover .notif-result{font-size:12px;font-weight:400;line-height:1.35;color:var(--ink);background:transparent;border:0;padding:0}
#notif-popover .is-faturado .notif-result{color:var(--green);font-weight:500}
#notif-popover .notif-classification{display:inline-block;font-size:10.5px;line-height:1.45;font-weight:400;color:var(--muted);padding:0;text-transform:none;letter-spacing:0;background:transparent;border:0;border-radius:0}
#notif-popover .notif-context{display:flex;flex-wrap:wrap;gap:0 7px;color:var(--muted);font-size:11px;font-weight:400;line-height:1.4}
#notif-popover .notif-context-team::before{content:'·';padding-right:7px}
#notif-popover .notif-read-action{display:grid;place-items:center;width:36px;height:36px;min-height:36px;margin:0;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);cursor:pointer;opacity:0;transition:opacity .12s ease,background .12s ease}
#notif-popover .notif-item:hover .notif-read-action,#notif-popover .notif-item:focus-within .notif-read-action{opacity:1}
#notif-popover .notif-read-action:hover{background:var(--surface-mute);color:var(--ink)}
#notif-popover .notif-read-action:disabled{opacity:.4;cursor:wait}
#notif-popover :focus-visible{outline:2px solid var(--wine);outline-offset:-2px}
#notif-popover .notif-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 16px 6px 22px;border-top:1px solid var(--line);background:var(--white);flex:none;font-size:11px;color:var(--muted)}
#notif-popover .notif-panel-footer .btn-notif-action{font:400 11px var(--u-font-ui,'IBM Plex Sans',sans-serif);color:var(--muted);min-height:40px;padding:6px;border:0;background:transparent}
#notif-popover .notif-panel-footer .btn-notif-action:hover{color:var(--ink);background:var(--surface-mute)}
#notif-popover .notif-panel-footer .btn-notif-action:disabled{opacity:.45;cursor:default}
#notif-popover .notif-empty{display:flex;flex-direction:column;gap:7px;padding:40px 24px;color:var(--muted);font-size:12px;line-height:1.5;background:var(--white)}
#notif-popover .notif-empty strong{font-size:14px;font-weight:500;color:var(--ink)}
#notif-popover .notif-error{color:var(--red)}
@media(max-width:700px){
 body.notif-panel-open{overflow:hidden}
 #notif-popover{inset:56px 0 calc(60px + env(safe-area-inset-bottom));width:100%;max-width:none;height:auto;max-height:none;border-left:0;box-shadow:none}
 #notif-popover .notif-popover-header{padding:15px 16px 12px;gap:10px}
 #notif-popover h2{font-size:20px}
 #notif-popover .btn-notif-icon-action{width:44px;height:44px;min-width:44px;min-height:44px}
 #notif-popover .notif-tabs-bar{padding:0 16px;gap:10px;flex-wrap:nowrap}
 #notif-popover .notif-view-tabs{gap:14px}
 #notif-popover .notif-type-filter{width:160px}
 #notif-popover .notif-type-filter select{min-height:44px;height:44px;font-size:13px}
 #notif-popover .notif-source-line{padding:7px 16px;font-size:10.5px}
 #notif-popover .notif-day-title{padding:10px 16px 8px}
 #notif-popover .notif-item,#notif-popover .notif-item.nao-lida{padding:0 6px 0 20px;grid-template-columns:minmax(0,1fr) 40px}
 #notif-popover .notif-open-row{padding:11px 7px 11px 0;min-height:90px;gap:3px}
 #notif-popover .notif-record-title{gap:3px 7px}
 #notif-popover .notif-record-title strong{font-size:13px}
 #notif-popover .notif-read-action{width:40px;height:44px;min-height:44px;opacity:1}
 #notif-popover .notif-panel-footer{padding:5px 10px 5px 16px;font-size:10.5px}
 #notif-popover .notif-panel-footer .btn-notif-action{min-height:44px;font-size:11px}
 #notif-popover .notif-admin-bar{padding:7px 16px}
 #notif-popover .notif-admin-bar select{min-height:44px;font-size:16px}
}
@media(prefers-reduced-motion:reduce){#notif-popover *{transition:none!important}}
/* Ajustes aprovados: leitura marcada pela marca, nomes já lidos com menor peso. */
#notif-popover .notif-unread-dot{width:7px;height:7px;left:-13px;top:5px;background:var(--wine)}
#notif-popover .notif-item:not(.nao-lida) .notif-record-title strong{font-weight:400}
.notif-panel-backdrop{position:fixed;inset:0;z-index:119;background:rgba(16,12,10,.20);border:0;margin:0;padding:0;width:100%;height:100%;cursor:default}
.notif-panel-backdrop[hidden]{display:none!important}
.push-onboard-dialog{width:min(560px,calc(100vw - 32px))}
.push-onboard-intro{font-size:19px;line-height:1.35!important;font-weight:600;margin:0 0 24px}
.push-onboard-intro>span{display:block;font-size:13px;font-weight:400;color:var(--muted);line-height:1.6;margin-top:8px}
.push-onboard-step{display:grid;grid-template-columns:25px minmax(0,1fr);gap:12px;padding:18px 0;border-top:1px solid var(--line)}
.push-step-number{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--wine-line);background:var(--wine-soft);color:var(--wine);font-size:12px;border-radius:50%}
.push-onboard-step h3{margin:3px 0 10px;font-size:13px;font-weight:600}
.push-onboard-step ol{padding-left:18px;margin:0;font-size:12px;line-height:1.7;color:var(--muted)}
.push-onboard-step li+li{margin-top:5px}.push-onboard-step strong{font-weight:500;color:var(--ink)}
.push-onboard-step p{font-size:12px;color:var(--muted);margin:6px 0 12px}
.push-onboard-actions{display:flex;gap:8px;flex-wrap:wrap}.push-onboard-actions .pc-button{flex:1 1 150px}
.push-onboard-note{font-size:11px;color:var(--muted);line-height:1.6;margin:0}
#push-onboard-status.error{color:var(--red)}
@media(max-width:700px){.push-onboard-dialog{width:100vw}.push-onboard-dialog .pc-dialog-head h2{font-size:22px}.push-onboard-dialog .pc-form{padding-bottom:28px}.push-onboard-step{padding:17px 0}.push-onboard-actions{flex-direction:column}.push-onboard-actions .pc-button{flex:initial;width:100%}}
.push-extra-preferences{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.push-extra-preferences .pref-row{padding-left:0;padding-right:0}.push-extra-preferences .pref-info small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.push-quiet{border:0;border-top:1px solid var(--line);padding:12px 0;margin:14px 0;min-width:0}.push-quiet legend{font-size:12px;padding-right:8px;color:var(--ink)}.push-quiet p{font-size:11px;color:var(--muted)}.push-quiet>div{display:flex;gap:12px}.push-quiet label{display:flex;flex:1;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.push-quiet input{width:100%;min-width:0;min-height:44px;border:1px solid var(--line-strong);border-radius:4px;background:var(--white);color:var(--ink);padding:8px;font:inherit}.usr-push-status{display:block;font-size:10.5px;color:var(--muted);margin-top:7px;line-height:1.5}.usr-push-status.is-active{color:var(--green)}
#push-onboard-reopen,#pref-push-test,#pref-push-reset{min-height:44px;padding:8px 0;background:transparent;color:var(--wine);border:0;text-align:left;cursor:pointer;font-size:12px}
@media(max-width:700px){.push-quiet input{font-size:16px}}
/* Preferências: cabeçalho sempre visível e conteúdo que cabe no aparelho. */
#modal-notif-preferencias{padding:0;border:1px solid var(--line-strong);border-radius:8px;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);background:var(--white);color:var(--ink)}
#modal-notif-preferencias[open]{display:flex;flex-direction:column}
#modal-notif-preferencias .auth-modal-card{display:flex;flex-direction:column;min-height:0;max-height:inherit;overflow:hidden;background:var(--white);color:var(--ink);box-shadow:none;width:100%;border:0}
#modal-notif-preferencias .auth-card-top-bar{flex:none}
#modal-notif-preferencias .usr-modal-header{flex:none;padding:18px 20px;background:var(--white);border-bottom:1px solid var(--line)}
#modal-notif-preferencias .auth-title{font-size:18px;color:var(--ink)}
#modal-notif-preferencias .auth-subtitle{color:var(--muted);font-size:12px}
#form-notif-preferencias{padding:0 20px;min-height:0;overflow:auto;overscroll-behavior:contain}
#modal-notif-preferencias .pref-row{padding:12px 0;margin:0;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;color:var(--ink)}
#modal-notif-preferencias .pref-info strong{font-size:12px;color:var(--ink)}
#modal-notif-preferencias .pref-info span{font-size:11px;color:var(--muted)}
#modal-notif-preferencias .pref-push-box{padding:16px 0;margin:0;border:0;border-radius:0;background:transparent}
#modal-notif-preferencias .pref-push-desc{color:var(--muted)}
#btn-ativar-web-push{min-height:44px;padding:8px 12px;background:var(--white);color:var(--ink);border:1px solid var(--line-strong);border-radius:4px;font:inherit;font-size:12px;cursor:pointer}
#btn-ativar-web-push:disabled{opacity:.5;cursor:default}
.push-prefs-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:12px;padding:12px 0;position:sticky;bottom:0;background:var(--white);border-top:1px solid var(--line)}
#btn-salvar-notif-prefs{min-height:44px;padding:8px 16px}
#modal-notif-preferencias input[type=checkbox]{accent-color:var(--wine);width:18px;height:18px;flex:none}
@media(max-width:700px){#modal-notif-preferencias{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;inset:0;margin:0;border:0;border-radius:0}#modal-notif-preferencias .usr-modal-header{padding:16px}#form-notif-preferencias{padding:0 16px}.push-prefs-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
/* Os estilos antigos de autenticação usam !important; limitar a correção a este modal. */
html[data-ui="v2"] #modal-notif-preferencias .auth-modal-card{background:var(--white)!important;border-radius:0!important}
html[data-ui="v2"] #modal-notif-preferencias .auth-title{color:var(--ink)!important;font-size:18px!important}
html[data-ui="v2"] #modal-notif-preferencias .auth-subtitle{color:var(--muted)!important}
html[data-ui="v2"] #modal-notif-preferencias .auth-btn-secondary{background:var(--white)!important;color:var(--ink)!important;border:1px solid var(--line-strong)!important;min-height:44px}
html[data-ui="v2"] #modal-notif-preferencias .auth-btn-primary{background:var(--wine-fill)!important;background-image:none!important;color:var(--on-wine)!important;border-color:var(--wine-fill)!important;box-shadow:none!important}
html[data-ui="v2"] #modal-notif-preferencias .push-badge-status{background:var(--surface-mute);color:var(--muted);border:1px solid var(--line);font-weight:400}
html[data-ui="v2"] #modal-notif-preferencias .push-badge-status.ativo{background:var(--green-bg);color:var(--green);border-color:var(--green-line)}
@media(max-width:700px){html[data-ui="v2"] dialog#modal-notif-preferencias{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;inset:0;overflow:hidden}html[data-ui="v2"] #modal-notif-preferencias .pref-row{padding:12px 0;margin:0}html[data-ui="v2"] #modal-notif-preferencias .usr-modal-header{padding:16px}}
