/* Notification bell, notification list, client follow-up and request attachments.
   Visual tokens and the .bell-* look come from demo-v2.css (Demo v2); this sheet only places them in the
   server-rendered <details> menu and adds the few SATRIA-specific pieces. */

/* ---- bell: a <details> menu like the user menu ---- */
.bell-menu { position: relative; }
.bell-menu > summary { list-style: none; }
.bell-menu > summary::-webkit-details-marker { display: none; }
.bell-menu > .bell-btn { font-variant-numeric: tabular-nums; }
.bell-menu[open] > .bell-btn { background: var(--surface-2); }
.bell-menu > .bell-popover { position: absolute; top: calc(100% + 6px); right: 0; transform-origin: top right; }
.bell-head form, .bell-group form { margin: 0; }
.bell-item time { white-space: nowrap; }
.bell-foot a { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .bell-menu > .bell-popover { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; }
}

/* ---- /notifications ---- */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list > li + li { border-top: 1px solid var(--border); }
.notice-row { margin: 0; }
.notice-open { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; width: 100%; min-height: 56px;
  padding: 14px 18px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition-property: background-color; transition-duration: 120ms; }
.notice-open:hover, .notice-open:focus-visible { background: var(--surface-2); }
.notice-open .bell-kind { justify-self: start; font-size: .72rem; }
.notice-main { display: grid; gap: 2px; min-width: 0; }
.notice-main strong { font-size: .88rem; overflow-wrap: anywhere; }
.notice-main span { font-size: .8rem; color: var(--text-2); overflow-wrap: anywhere; }
.notice-open time, .notice-open .rq-muted { font-size: .75rem; color: var(--text-3); white-space: nowrap; }
.notice-row.is-unread .notice-main strong::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: var(--cobalt); vertical-align: middle; }
.notice-row.is-read .bell-kind { background: var(--surface-2); color: var(--text-3); }
/* Wave 34 (N20-B-4): colour with meaning: a breach is risk (red), a warning amber; other kinds stay cobalt. The SLA
   notice's Acknowledge button sits at the right of its row (the page) and under its item (the bell pop-over). */
.bell-kind.is-risk { background: var(--red-soft); color: var(--red-text); }
.bell-kind.is-warn { background: var(--amber-soft); color: var(--amber-text); }
.bell-ack { margin: 0; }
.bell-popover .bell-ack { padding: 0 14px 10px; }
.notice-list > li { display: flex; align-items: center; gap: 0; }
.notice-list > li > .notice-row { flex: 1 1 auto; min-width: 0; }
.notice-list > li > .notice-ack { flex: none; padding: 0 18px 0 4px; }
@media (max-width: 760px) {
  .notice-open { grid-template-columns: 1fr; }
  .notice-list > li { flex-wrap: wrap; }
  .notice-list > li > .notice-ack { padding: 0 18px 12px; }
}

/* ---- client follow-up on a ticket ---- */
.follow-facts { display: grid; gap: 12px; margin: 0; padding: 16px 18px; }
.follow-facts > div { display: grid; gap: 4px; }
.follow-facts dt { font-size: .72rem; font-weight: 600; color: var(--text-3); }
.follow-facts dd { margin: 0; font-size: .86rem; overflow-wrap: anywhere; }
.follow-facts .follow-sub { display: block; font-size: .75rem; color: var(--text-3); }
.follow-overdue { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill);
  background: var(--red-soft); color: var(--red-text); font-size: .72rem; font-weight: 600; }
.follow-acks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.follow-form { display: grid; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--border); }
.follow-form .form-actions { margin: 0; }
.follow-note { margin: 0; padding: 0 18px 16px; font-size: .75rem; color: var(--text-3); text-wrap: pretty; }
.follow-due-late { color: var(--red-text); font-weight: 600; }

/* ---- attachments on service requests ---- */
.message-attachments .file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.file-chip > span { min-width: 0; overflow-wrap: anywhere; }
.file-chip > .ico, .file-chip > .badge { flex-shrink: 0; }
.file-chip small { flex-shrink: 0; white-space: nowrap; color: var(--text-3); font-variant-numeric: tabular-nums; }
.req-file { padding: 8px; }
.req-attach-field { display: grid; gap: 6px; }
