/* =============================================================================
   18 — Client Notifications re-skin
   Bell dropdown rows (JS-rendered by finlaw-notify.js render()) + the full-page
   Activity feed (view-notifications.php). Scoped under .portal-shell; auto-loaded
   AFTER portal-redesign.css so it refines the shared .fl-bell-* components.
   Tokens reused: --blue #26408d, --blue-ink #15224d, --blue-pale, --red,
   --hair, --grey-50, --mid, --sh-1, --sh-3, --ease.
   ============================================================================= */

/* ---- Bell dropdown -------------------------------------------------------- */
.portal-shell .fl-bell-menu{width:360px}

/* Rows become a horizontal card (icon + body + unread dot); the base rule in
   portal-redesign.css lays them out as a column — override to match the mockup. */
.portal-shell .fl-bell-item{
	flex-direction:row;align-items:flex-start;gap:12px;padding:13px 20px;
}
.portal-shell .fl-bell-icon{
	flex-shrink:0;width:32px;height:32px;border-radius:50%;
	display:flex;align-items:center;justify-content:center;
	background:var(--blue-pale);color:var(--blue);
}
.portal-shell .fl-bell-icon svg{width:16px;height:16px}
.portal-shell .fl-bell-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.portal-shell .fl-bell-msg{
	font-size:13.5px;color:#1a1a2e;line-height:1.35;
	overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.portal-shell .fl-bell-item.is-unread .fl-bell-msg{font-weight:700}
.portal-shell .fl-bell-ago{font-size:11.5px;color:var(--mid)}
.portal-shell .fl-bell-unreaddot{
	flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--red);margin-top:7px;
}

/* Typed icon colours — data-type set by render() (bell) / PHP (page). Blue is
   the default (message + document); override for the other three categories. */
.portal-shell .fl-bell-icon[data-type="invoice"],
.portal-shell .activity-icon[data-type="invoice"]{background:#fef3e2;color:#d97706}
.portal-shell .fl-bell-icon[data-type="appointment"],
.portal-shell .activity-icon[data-type="appointment"]{background:#f0faf6;color:#1f8a5b}
.portal-shell .fl-bell-icon[data-type="matter"],
.portal-shell .activity-icon[data-type="matter"]{background:#fdeaea;color:#d81f26}

/* ---- Full-page Activity feed ---------------------------------------------- */
.portal-shell .activity-head{
	display:flex;align-items:center;justify-content:space-between;gap:16px;
	max-width:760px;margin:0 0 22px;
}
.portal-shell .activity-head .section-title{margin:0}
.portal-shell .activity-readall{
	background:transparent;border:1px solid var(--hair);border-radius:8px;
	padding:9px 16px;font-size:13px;font-weight:600;color:var(--blue-ink);cursor:pointer;
	transition:background .15s var(--ease),border-color .15s var(--ease);white-space:nowrap;
}
.portal-shell .activity-readall:hover:not([disabled]){border-color:var(--blue);background:var(--blue-pale)}
.portal-shell .activity-readall[disabled]{color:var(--mid);cursor:default}

.portal-shell .activity-wrap{max-width:760px}
.portal-shell .activity-daylabel{
	font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;
	color:var(--mid);margin:0 0 8px;padding-top:4px;
}
.portal-shell .activity-card{
	background:#fff;border:1px solid var(--hair);border-radius:14px;
	box-shadow:var(--sh-1);overflow:hidden;margin-bottom:24px;
}
.portal-shell .activity-item{
	display:flex;gap:14px;align-items:flex-start;padding:16px 20px;
	border-top:1px solid var(--grey-50);cursor:pointer;color:inherit;
	transition:background .15s var(--ease);
}
.portal-shell .activity-card .activity-item:first-child{border-top:none}
.portal-shell .activity-item:hover{background:var(--grey-50)}
.portal-shell .activity-item.is-unread{background:var(--blue-pale)}
.portal-shell .activity-item.is-unread:hover{background:#e3ebfb}
.portal-shell .activity-icon{
	flex-shrink:0;width:38px;height:38px;border-radius:50%;
	display:flex;align-items:center;justify-content:center;
	background:var(--blue-pale);color:var(--blue);
}
.portal-shell .activity-icon svg{width:17px;height:17px}
.portal-shell .activity-body{flex:1;min-width:0}
.portal-shell .activity-msg{font-size:14.5px;color:#1a1a2e;line-height:1.4}
.portal-shell .activity-item.is-unread .activity-msg{font-weight:700}
.portal-shell .activity-meta{display:flex;align-items:center;gap:8px;flex-shrink:0;padding-top:2px}
.portal-shell .activity-time{font-size:12.5px;color:var(--mid);white-space:nowrap}
.portal-shell .activity-unreaddot{width:8px;height:8px;border-radius:50%;background:var(--red)}

/* Empty state */
.portal-shell .activity-empty{
	background:#fff;border:1px solid var(--hair);border-radius:14px;box-shadow:var(--sh-1);
	padding:64px 28px;text-align:center;max-width:760px;
}
.portal-shell .activity-empty svg{margin:0 auto 16px;display:block;color:var(--mid)}
.portal-shell .activity-empty__title{
	font-family:'Playfair Display',Georgia,serif;font-size:18px;font-weight:700;
	color:var(--blue-ink);margin-bottom:6px;
}
.portal-shell .activity-empty__sub{font-size:13.5px;color:var(--mid)}

/* ---- Activity category filter toolbar (chips + count) ----------------------
   Built to match the Matters filter reference (12-client-matters.css). Client-
   side filter over the rendered activity rows; navy-fill active chip. */
.portal-shell .activity-toolbar{
	display:flex;align-items:center;justify-content:space-between;gap:12px;
	flex-wrap:wrap;max-width:760px;margin:0 0 18px;
}
.portal-shell .activity-chips{display:flex;gap:8px;flex-wrap:wrap}
.portal-shell .activity-chip{
	background:#fff;color:var(--mid);border:1px solid var(--hair);border-radius:999px;
	padding:8px 16px;font-size:13px;font-weight:600;cursor:pointer;line-height:1;
	transition:background .15s var(--ease),color .15s var(--ease),border-color .15s var(--ease);
}
.portal-shell .activity-chip:hover{border-color:var(--blue-ink);color:var(--blue-ink)}
.portal-shell .activity-chip.is-active{background:var(--blue-ink);color:#fff;border-color:var(--blue-ink)}
.portal-shell .activity-count{font-size:13px;color:var(--mid);white-space:nowrap}
.portal-shell .activity-group[style*="display: none"]{display:none}
