/* CRM header bell: Projects unread count and a short preview. */
.crm-header-actions { position: relative; }
.crm-bell { position: relative; }
.crm-bell[hidden] { display: none !important; }
.crm-bell-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #c53030; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; pointer-events: none; }
.crm-bell-badge[hidden] { display: none; }
.crm-bell-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1200; width: 380px; max-width: calc(100vw - 32px); background: #fff; color: #202938; border: 1px solid #dce2ea; border-radius: 10px; box-shadow: 0 12px 32px rgba(20, 30, 50, .18); font-family: "Noto Sans", system-ui, sans-serif; text-align: left; }
.crm-bell-panel[hidden] { display: none; }
.crm-bell-panel header, .crm-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid #dce2ea; }
.crm-bell-head-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.crm-bell-head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.crm-bell-panel h2 { margin: 0; font-size: 16px; font-weight: 600; color: #202938; }
.crm-bell-count { color: #17704f; font-weight: 600; font-size: 13px; }
.crm-bell-mark-all { font-size: 12px; font-weight: 600; color: #17704f; padding: 4px 8px; border-radius: 6px; transition: background-color 0.15s ease, color 0.15s ease; }
.crm-bell-mark-all:hover:not(:disabled), .crm-bell-mark-all:focus-visible:not(:disabled) { background: #eaf5f0; color: #11573d; }
.crm-bell-mark-all:disabled { color: #94a3b8; cursor: default; opacity: 0.7; }
.crm-bell-list { list-style: none; margin: 0; padding: 4px 0; max-height: 360px; overflow: auto; }
.crm-bell-item { display: flex; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #eef1f5; padding: 10px 16px; font: inherit; color: inherit; cursor: pointer; }
.crm-bell-item:hover, .crm-bell-item:focus-visible { background: #f7f8fa; }
.crm-bell-dot { width: 8px; height: 8px; border-radius: 50%; background: #17704f; margin-top: 7px; flex: none; }
.crm-bell-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crm-bell-text strong { font-weight: 600; font-size: 14px; }
.crm-bell-text span { font-size: 14px; overflow-wrap: anywhere; }
.crm-bell-text small { color: #526077; font-size: 12px; }
.crm-bell-empty { margin: 0; padding: 22px 16px; color: #526077; text-align: center; }
.crm-bell-note { margin: 0; padding: 8px 16px 0; color: #526077; font-size: 12px; }
.crm-bell-panel footer { display: flex; justify-content: flex-end; padding: 10px 16px 14px; }
.crm-bell-primary { background: #17704f; color: #fff; border: 1px solid #17704f; border-radius: 6px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.crm-bell-link { background: none; border: 0; color: #17704f; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.crm-bell-panel :focus-visible, .crm-bell:focus-visible { outline: 2px solid #175dba; outline-offset: 2px; }
/* Feedback updates: status changes on feedback you sent. */
.crm-bell-subtitle { margin: 0; padding: 10px 16px 2px; font-size: 12px; font-weight: 600; color: #526077; text-transform: uppercase; letter-spacing: .04em; }
.crm-bell-section .crm-bell-list { max-height: 220px; }
.crm-bell-item.is-read .crm-bell-dot { background: transparent; box-shadow: inset 0 0 0 1px #c5ccd6; }
/* Inbox menu item: unread project updates beside the label. */
.crm-nav-list > li.crm-nav-inbox { position: relative; align-items: center; }
.crm-nav-count { position: absolute; top: 50%; right: 0; transform: translate(35%, -110%); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #c53030; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; pointer-events: none; }
.crm-nav-count[hidden] { display: none; }
/* The Inbox item adds one entry to the top menu: keep the inline menu (above the
   1100px drawer) on one line by tightening its spacing up to 1680px. */
@media (min-width: 1101px) and (max-width: 1680px) {
  .crm-nav-list { gap: 2px; }
  .crm-nav-list > li > .crm-nav-item { padding: 0 clamp(6px, 0.5vw, 10px); }
}
/* CRM Inbox page heading: left-aligned like its subtitle (always loaded, so no shift). */
.crm-inbox-panel .crm-panel-header { margin-bottom: 8px; text-align: left; }
.crm-inbox-panel .crm-panel-header :is(h1, h2) { text-align: left; }
/* Bell tabs (FB-1EZBD106SX): one kind of update at a time, with its unread count, and the
   whole panel height for that list instead of small stacked scroll boxes. */
.crm-bell-tabs { display: flex; gap: 4px; padding: 8px 12px 0; border-bottom: 1px solid #dce2ea; overflow-x: auto; }
.crm-bell-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: #526077; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.crm-bell-tab[aria-selected="true"] { color: #17704f; border-bottom-color: #17704f; }
.crm-bell-tab:hover { color: #202938; }
.crm-bell-tab-count { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #c53030; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.crm-bell-body .crm-bell-list { max-height: min(440px, calc(100vh - 260px)); }
.crm-bell-more { padding: 10px 16px; }
/* Inbox page categories: the same kinds of update and counts as the bell. */
.crm-inbox-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.crm-inbox-category { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #dce2ea; border-radius: 999px; background: #fff; color: #202938; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.crm-inbox-category[aria-selected="true"] { border-color: #17704f; background: #eaf5f0; color: #17704f; }
.crm-inbox-category:focus-visible { outline: 2px solid #175dba; outline-offset: 2px; }
.crm-inbox-category-count { padding: 2px 8px; border-radius: 999px; background: #c53030; color: #fff; font-size: 12px; font-weight: 700; }
.crm-inbox-category-count.is-zero { background: #eef1f5; color: #526077; font-weight: 600; }
.crm-inbox-updates[hidden], #crm-inbox-projects-view[hidden], #crm-inbox-categories[hidden] { display: none; }
.crm-inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1060px; margin: 0 0 8px; padding: 0 2px; font-size: 13px; color: #526077; }
.crm-inbox-showing { font-size: 13px; color: #526077; }
.crm-inbox-list { list-style: none; margin: 0; padding: 0; max-width: 1060px; border: 1px solid #dce2ea; border-radius: 10px; background: #fff; overflow: hidden; }
.crm-inbox-row { display: flex; gap: 12px; width: 100%; padding: 14px 18px; border: 0; border-bottom: 1px solid #eef1f5; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.crm-inbox-list li:last-child .crm-inbox-row { border-bottom: 0; }
.crm-inbox-row:hover, .crm-inbox-row:focus-visible { background: #f7f8fa; }
.crm-inbox-row.is-read .crm-bell-dot { background: transparent; box-shadow: inset 0 0 0 1px #c5ccd6; }
.crm-inbox-row.is-read strong { font-weight: 500; color: #526077; }
.crm-inbox-empty { margin: 24px 0; color: #526077; text-align: center; max-width: 1060px; }
.crm-inbox-note { margin: 8px 2px 0; font-size: 12px; }
.crm-inbox-pagination, .fs-crm-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1060px; margin-top: 12px; padding: 10px 14px; border: 1px solid #dce2ea; border-radius: 10px; background: #fff; font-size: 13px; color: #526077; }
.fs-crm-pagination { max-width: none; }
.crm-inbox-pagination-info, .fs-crm-pagination-info { font-size: 13px; color: #526077; }
.crm-inbox-pagination-controls, .fs-crm-pagination-controls { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crm-inbox-page-btn, .fs-crm-page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border: 1px solid #dce2ea; border-radius: 6px; background: #fff; color: #202938; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.crm-inbox-page-btn:hover:not(:disabled), .fs-crm-page-btn:hover:not(:disabled) { background: #f7f8fa; border-color: #c5ccd6; }
.crm-inbox-page-btn.is-active, .fs-crm-page-btn.is-active { border-color: #17704f; background: #eaf5f0; color: #17704f; }
.crm-inbox-page-btn:disabled, .fs-crm-page-btn:disabled { opacity: 0.5; cursor: default; }

/* Grouped top-bar menus (FB-5Z3XJF3Q9X): the group button carries its items' unread
   counts, and counts inside the open menu sit beside the label instead of floating. */
.crm-nav-group-trigger { position: relative; }
.crm-nav-group-trigger .crm-nav-group-count { position: static; transform: none; margin-left: 6px; }
.crm-dropdown-menu > li.crm-nav-inbox { position: relative; display: flex; align-items: center; }
.crm-dropdown-menu > li.crm-nav-inbox > .crm-nav-item { flex: 1; }
.crm-dropdown-menu > li.crm-nav-inbox > .crm-nav-count { position: static; transform: none; margin-right: 16px; }
/* "What's new" on the green CRM bar (FB-5Z3XJF3Q9X): white pill, green text, instead of
   indigo text that could not be read on green. */
.crm-header .wn-toggle--staff { background: #fff; border-color: #fff; color: var(--crm-primary, #17704f); }
.crm-header .wn-toggle--staff:hover { background: #eaf5f0; border-color: #eaf5f0; }
.crm-header .wn-toggle--staff .wn-icon { color: var(--crm-primary, #17704f); }
.crm-header .wn-toggle--staff .wn-toggle__dot { box-shadow: 0 0 0 2px var(--crm-primary, #17704f); animation: none; }
@media (min-width: 1101px) and (max-width: 1500px) {
  .crm-header .wn-toggle--staff { width: 34px; min-width: 34px; padding: 0; border-radius: 50%; }
  .crm-header .wn-toggle--staff .wn-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
/* Inbox Updates (FB-K0JTSY9J2C): short rows (report name, status chip, date) and a small
   dashboard of your feedback reports by status on the right; a bar filters the list. */
.crm-inbox-row-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crm-inbox-status { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: #eef1f5; color: #3b4658; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
[data-status="open"].crm-inbox-status, .crm-inbox-bar[data-status="open"] .crm-inbox-bar-fill { background: #e0ecfb; color: #1d4f91; }
[data-status="in_progress"].crm-inbox-status, .crm-inbox-bar[data-status="in_progress"] .crm-inbox-bar-fill { background: #fdf1d8; color: #8a5a00; }
[data-status="needs_decision"].crm-inbox-status, .crm-inbox-bar[data-status="needs_decision"] .crm-inbox-bar-fill { background: #fde4e1; color: #9b2c1f; }
[data-status="awaiting_report"].crm-inbox-status, .crm-inbox-bar[data-status="awaiting_report"] .crm-inbox-bar-fill,
[data-status="awaiting_review"].crm-inbox-status, .crm-inbox-bar[data-status="awaiting_review"] .crm-inbox-bar-fill { background: #ece6fb; color: #5636a8; }
[data-status="resolved"].crm-inbox-status, .crm-inbox-bar[data-status="resolved"] .crm-inbox-bar-fill { background: #dff3e8; color: #17704f; }
[data-status="rejected"].crm-inbox-status, .crm-inbox-bar[data-status="rejected"] .crm-inbox-bar-fill { background: #eceff3; color: #526077; }
.crm-inbox-updates-layout { display: grid; grid-template-columns: minmax(0, 1060px) 300px; gap: 20px; align-items: start; }
.crm-inbox-updates-main { min-width: 0; }
.crm-inbox-dashboard { position: sticky; top: calc(var(--crm-nav-height, 64px) + 16px); padding: 16px; border: 1px solid #dce2ea; border-radius: 10px; background: #fff; }
.crm-inbox-dashboard h3 { margin: 0; font-size: 15px; font-weight: 650; color: #202938; }
.crm-inbox-dashboard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.crm-inbox-dashboard-total { font-size: 22px; font-weight: 700; color: #17704f; }
.crm-inbox-range { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; font-size: 13px; color: #526077; }
.crm-inbox-range select { flex: 1; height: 32px; padding: 0 8px; border: 1px solid #dce2ea; border-radius: 6px; background: #fff; font: inherit; color: #202938; }
.crm-inbox-bars { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.crm-inbox-bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label count" "track track"; gap: 4px 8px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
.crm-inbox-bar:hover { background: #f7f8fa; }
.crm-inbox-bar.is-active { border-color: #17704f; background: #eaf5f0; }
.crm-inbox-bar:focus-visible { outline: 2px solid #175dba; outline-offset: 1px; }
.crm-inbox-bar-label { grid-area: label; font-size: 13px; font-weight: 600; color: #202938; }
.crm-inbox-bar-count { grid-area: count; font-size: 13px; font-weight: 700; color: #202938; }
.crm-inbox-bar-track { grid-area: track; height: 8px; border-radius: 999px; background: #eef1f5; overflow: hidden; }
.crm-inbox-bar-fill { display: block; height: 100%; min-width: 4px; border-radius: inherit; }
.crm-inbox-dashboard-hint { margin: 10px 0 0; font-size: 12px; color: #526077; }
.crm-inbox-dashboard .crm-bell-link { margin-top: 10px; font-size: 13px; }
.crm-inbox-bar[data-status="open"] .crm-inbox-bar-fill { background: #2f6fc0; }
.crm-inbox-bar[data-status="in_progress"] .crm-inbox-bar-fill { background: #d99a1e; }
.crm-inbox-bar[data-status="needs_decision"] .crm-inbox-bar-fill { background: #c5483a; }
.crm-inbox-bar[data-status="awaiting_report"] .crm-inbox-bar-fill, .crm-inbox-bar[data-status="awaiting_review"] .crm-inbox-bar-fill { background: #7552c9; }
.crm-inbox-bar[data-status="resolved"] .crm-inbox-bar-fill { background: #17704f; }
.crm-inbox-bar[data-status="rejected"] .crm-inbox-bar-fill { background: #8a94a6; }
/* Page controls also sit above the list (owner ruling DEC-JVX8003GH2). */
.crm-inbox-pagination-top { margin: 0 0 10px; }
