.bw-notificacao-container {
 position: relative;
 display: inline-flex;
 align-items: center;
 flex-shrink: 0;
}

.bw-notificacao-sino {
 position: relative;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 40px;
 height: 40px;
 padding: 8px;
 border: 0;
 border-radius: 8px;
 background: transparent;
 color: inherit;
 cursor: pointer;
}

.bw-notificacao-contador {
 position: absolute;
 top: 0;
 right: 0;
 min-width: 18px;
 height: 18px;
 padding: 0 4px;
 border-radius: 12px;
 background: #dc2626;
 color: white;
 font-size: 10px;
 font-weight: 700;
 line-height: 18px;
 text-align: center;
}

.bw-notificacao-painel {
 position: fixed;
 top: 70px;
 right: 16px;
 width: min(390px, calc(100vw - 32px));
 max-height: 78vh;
 overflow-y: auto;
 background: #fff;
 color: #1e293b;
 border: 1px solid #e2e8f0;
 border-radius: 12px;
 box-shadow: 0 12px 40px #0003;
 z-index: 99999;
 text-align: left;
}

.bw-notificacao-painel header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 16px;
 background: #fff;
 color: #1e293b;
 border-bottom: 1px solid #e2e8f0;
}

.bw-notificacao-painel button {
 cursor: pointer;
}

.bw-notificacao-painel button:disabled {
 cursor: default;
 opacity: .5;
}

.bw-notificacao-painel .bw-notificacao-marcar {
 width: 100%;
 padding: 12px;
 border: 0;
 background: #f8fafc;
 color: #2563eb;
 font-size: 12px;
}

.bw-notificacao-item {
 display: block;
 padding: 14px 16px;
 border-bottom: 1px solid #e2e8f0;
}

.bw-notificacao-item.nao-lida {
 background: #eff6ff;
 border-left: 3px solid #2563eb;
}

.bw-notificacao-item.critica {
 border-left: 3px solid #dc2626;
}

.bw-notificacao-item strong {
 display: block;
 font-size: 14px;
}

.bw-notificacao-item p {
 margin: 8px 0;
 font-size: 13px;
 line-height: 1.5;
 overflow-wrap: anywhere;
}

.bw-notificacao-item small {
 color: #64748b;
 font-size: 11px;
}

.bw-notificacao-item button {
 display: block;
 margin-top: 8px;
 padding: 5px 0;
 border: 0;
 background: transparent;
 color: #2563eb;
 font-size: 12px;
}

@media(max-width:600px) {
 .bw-notificacao-painel {
  right: 8px;
  width: calc(100vw - 16px);
  max-height: 75vh;
 }
}

.bw-erp-cabecalho {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 12px;
}

.bw-erp-cabecalho > .bw-notificacao-container {
 order: 2;
 margin-left: auto;
}

.bw-notificacao-painel header {
 position: sticky;
 top: 0;
 z-index: 2;
}

.bw-notificacao-painel header button {
 border: 0;
 background: transparent;
 color: #475569;
 font-size: 24px;
}

.bw-notificacao-painel > p {
 padding: 16px;
}
