/* ==========================================================================
   SINO DE NOTIFICAÇÕES (barra superior, à direita)
   O painel é movido para o body por bell.js e posicionado com fixed.
   ========================================================================== */

.notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.notif-trigger {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8f0f5;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.notif-trigger:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.notif-trigger[aria-expanded="true"] {
  background: #2e5f7b;
  border-color: #8fb8cf;
  box-shadow: 0 0 0 2px rgba(143, 184, 207, 0.35);
}

.notif-trigger:focus-visible {
  outline: 2px solid #8fb8cf;
  outline-offset: 2px;
}

.notif-trigger svg {
  width: 15px;
  height: 15px;
  display: block;
  pointer-events: none;
}

.notif-trigger.has-items {
  color: #ffffff;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #f7a287;
  color: #1d303d;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  border: 2px solid #214a63;
  pointer-events: none;
}

.notif-badge[hidden] {
  display: none;
}

/* Painel: fixed no body, acima da taskbar (z 1250). Conteúdo não selecionável. */
.notif-panel {
  position: fixed;
  top: 56px;
  right: 12px;
  z-index: 1300;
  width: min(440px, 92vw);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--ink, #233c4c);
  border: 1px solid #c9d8e2;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 34, 48, 0.25);
  overflow: hidden;
  text-align: left;
  font-size: 13px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.notif-panel[hidden] {
  display: none !important;
}

.notif-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafb;
  border-bottom: 1px solid #e5ebf0;
  flex-shrink: 0;
}

.notif-head strong {
  font-size: 13px;
  color: var(--pond, #214a63);
  white-space: nowrap;
}

.notif-sub {
  font-size: 11px;
  color: var(--muted, #607583);
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-seen {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid #cfdde7;
  border-radius: 6px;
  background: #ffffff;
  color: var(--pond, #214a63);
  cursor: pointer;
  white-space: nowrap;
}

.notif-seen:hover:not(:disabled) {
  background: #f1f5f8;
}

.notif-seen:disabled {
  opacity: 0.5;
  cursor: default;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
}

.notif-empty {
  margin: 14px 6px;
  font-size: 12px;
  color: var(--muted, #607583);
  text-align: center;
}

/* Itens reaproveitam .chg-* de os-table.css */
.notif-list .chg-item {
  background: #fff;
}

.notif-list .chg-body button {
  font-family: inherit;
}

/* ==========================================================================
   PONTO DE "ALTERADA" NA LISTA DE OS
   Fica no canto da célula, sem ocupar uma linha própria. A célula ganha
   respiro à esquerda só nas linhas alteradas, para o ponto não encostar no texto.
   ========================================================================== */
.os-table .os-row.has-change .os-c-os {
  padding-left: 18px;
}

.os-table .os-c-os .os-chg-dot {
  position: absolute;
  left: 8px;
  top: 15px;
  width: 6px;
  height: 6px;
  margin: 0;
  vertical-align: baseline;
  pointer-events: none;
}

/* Remover uma notificação da lista (× no cabeçalho do item) */
.chg-item > summary {
  position: relative;
  padding-right: 28px;
}
.chg-dismiss {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7a8896;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.chg-dismiss:hover:not(:disabled) {
  background: #eef3f7;
  color: #214a63;
}
.chg-dismiss:disabled {
  opacity: 0.4;
  cursor: default;
}