/* ADR 0020 — notification centre (bell dropdown, /notifications, preferences). Tokens only, so it
   themes with the rest of the app. Prefix: ntf-. */

/* ── Header bell ─────────────────────────────────────────────────────────── */
.ntf-bell { position: relative; display: inline-flex; }
.ntf-bell-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 0; background: transparent; border-radius: 999px;
  color: var(--bs-body-color); cursor: pointer;
}
.ntf-bell-btn:hover { background: var(--bs-secondary-bg); }
.ntf-badge {
  position: absolute; top: .15rem; right: .1rem;
  min-width: 1.05rem; height: 1.05rem; padding: 0 .25rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 700; line-height: 1;
  color: #fff; background: var(--bs-danger, #c0392b); border-radius: 999px;
}
.ntf-badge:empty { display: none; }

.ntf-drop {
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 60;
  width: 22rem; max-width: 92vw;
  background: var(--bs-card-bg, #fff); color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16); overflow: hidden;
}
.ntf-drop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem .9rem; border-bottom: 1px solid var(--bs-border-color);
}
.ntf-drop-mark {
  border: 0; background: transparent; color: var(--bs-primary); cursor: pointer;
  font-size: .82rem; font-weight: 600;
}
.ntf-drop-empty { padding: 1.5rem .9rem; text-align: center; color: var(--bs-secondary-color); font-size: .9rem; }
.ntf-drop-list { list-style: none; margin: 0; padding: 0; max-height: 24rem; overflow-y: auto; }
.ntf-drop-list li a {
  display: block; padding: .6rem .9rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--bs-border-color);
}
.ntf-drop-list li a:hover { background: var(--bs-secondary-bg); }
.ntf-drop-list li.is-unread a { background: color-mix(in srgb, var(--bs-primary) 6%, transparent); }
.ntf-drop-title { display: block; font-weight: 600; font-size: .9rem; }
.ntf-drop-text {
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .82rem; color: var(--bs-secondary-color); margin-top: .1rem;
}
.ntf-drop-all { display: block; padding: .65rem .9rem; text-align: center; font-size: .85rem; font-weight: 600; }

/* ── /notifications page ─────────────────────────────────────────────────── */
.ntf-page { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.ntf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ntf-head h1 { margin: 0; }
.ntf-tabs { display: flex; gap: .25rem; }
.ntf-tabs a {
  padding: .35rem .75rem; border-radius: 999px; text-decoration: none;
  font-size: .88rem; font-weight: 600; color: var(--bs-secondary-color);
}
.ntf-tabs a.is-active { background: var(--bs-primary); color: var(--mx-on-primary, #fff); }

.ntf-empty { padding: 2.5rem 0; text-align: center; color: var(--bs-secondary-color); }
.ntf-hint { font-size: .85rem; color: var(--bs-secondary-color); margin: .75rem 0; }
.ntf-actions { margin: 1rem 0; }

.ntf-daygroup { margin-top: 1.25rem; }
.ntf-dayhead {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--bs-secondary-color); margin-bottom: .4rem;
}
.ntf-list { list-style: none; margin: 0; padding: 0; }
.ntf-item {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .7rem .8rem; border: 1px solid var(--bs-border-color); border-radius: 10px;
  margin-bottom: .5rem; cursor: pointer; background: var(--bs-card-bg, #fff);
}
.ntf-item:hover { border-color: var(--bs-primary); }
.ntf-item.is-unread { background: color-mix(in srgb, var(--bs-primary) 5%, transparent); }
.ntf-dot { width: .5rem; height: .5rem; margin-top: .45rem; border-radius: 999px; background: var(--bs-primary); flex: 0 0 auto; }
.ntf-item.is-read .ntf-body { padding-left: 1.1rem; }
.ntf-title { font-weight: 600; }
.ntf-text { font-size: .88rem; color: var(--bs-secondary-color); margin-top: .1rem; }
.ntf-time { font-size: .75rem; color: var(--bs-secondary-color); margin-top: .25rem; }

/* ── Preferences matrix ──────────────────────────────────────────────────── */
/* Each group is a paper panel with its table inside; the tables used to sit straight on the
   page ground as runs of hairlines. */
.ntf-prefgroup {
  margin-top: 1.25rem; padding: 1rem 1.2rem .4rem;
  background: var(--mx-nav-card, #fff); border: 1px solid var(--bs-border-color);
  border-radius: 14px; box-shadow: var(--mx-elevation-sm);
}
.ntf-prefgroup h2 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--bs-heading-color); }
.ntf-prefs { width: 100%; border-collapse: collapse; }
.ntf-prefs th, .ntf-prefs td { padding: .55rem .5rem; border-bottom: 1px solid var(--bs-border-color); text-align: left; }
.ntf-prefs tbody tr:last-child td { border-bottom: 0; }
.ntf-prefs th:not(:first-child), .ntf-prefs td:not(:first-child) { text-align: center; width: 5rem; }
.ntf-prefs thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }
.ntf-na { color: var(--bs-secondary-color); }
