/* Aviseringspanelen från klockan i toppbaren (static/js/notification_panel.js). */
.np-panel {
  position: fixed;
  z-index: 10050;
  max-height: min(560px, calc(100vh - 90px));
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  color: var(--text, #0f172a);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  overflow: hidden;
  font-size: 14px;
}
.np-panel[hidden] { display: none; }

.np-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
  color: #fff;
}
.np-head strong { font-size: 15px; }
.np-read-all, .np-clear-read {
  border: 0;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.np-read-all:hover, .np-clear-read:hover { background: rgba(255, 255, 255, .32); }

.np-head-actions { display: flex; gap: 6px; }

.np-activity { padding: 8px 10px 4px; border-bottom: 1px solid var(--border, #e5e7eb); }
.np-warn {
  display: block;
  padding: 9px 12px;
  margin-bottom: 6px;
  border-radius: 12px;
  border-left: 4px solid #d97706;
  background: rgba(217, 119, 6, .12);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}
.np-warn strong { display: block; color: #b45309; }
.np-warn span { opacity: .8; font-size: 12px; }
.np-job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 6px 4px;
  font-size: 13px;
}
.np-job b { font-size: 12px; color: #2563eb; }
.np-job i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(148, 163, 184, .25); overflow: hidden; }
.np-job em { display: block; height: 100%; background: #2563eb; border-radius: 5px; }
.np-job-more { font-size: 12px; opacity: .65; padding: 2px 4px 6px; }

.np-list { overflow-y: auto; padding: 6px; }
.np-row { position: relative; }
.np-row .np-item { padding-right: 34px; }
.np-remove {
  position: absolute;
  top: 8px;
  right: 6px;
  border: 0;
  background: none;
  color: inherit;
  opacity: .4;
  font-size: 18px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 8px;
  cursor: pointer;
}
.np-remove:hover { opacity: 1; color: #dc2626; background: rgba(220, 38, 38, .1); }

.np-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 10px 12px 10px 14px;
  margin: 2px 0;
  border-radius: 12px;
  border-left: 4px solid var(--np-color, #64748b);
  color: inherit;
  text-decoration: none;
}
.np-item:hover { background: rgba(148, 163, 184, .14); }
.np-item.unread { background: color-mix(in srgb, var(--np-color, #64748b) 10%, transparent); }
.np-item.unread .np-title { font-weight: 700; }

.np-tag {
  grid-column: 1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--np-color, #64748b);
}
.np-time { grid-column: 2; grid-row: 1; font-size: 11px; opacity: .6; white-space: nowrap; margin-right: 18px; }
.np-title { grid-column: 1 / -1; line-height: 1.35; }
.np-message {
  grid-column: 1 / -1;
  font-size: 12.5px;
  opacity: .75;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-empty { padding: 22px 16px; text-align: center; opacity: .7; }
.np-empty a { color: #2563eb; }

.np-all {
  display: block;
  padding: 11px 16px;
  text-align: center;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  border-top: 1px solid var(--border, #e5e7eb);
}
.np-all:hover { background: rgba(37, 99, 235, .08); }
