/* Notification Center panel (2026-07-18) - same visual language as the nav drawer,
   anchored to the LEFT (the nav drawer owns the right): short travel + fade entry,
   floating with rounded corners on screens wider than the page container. */

.notificationPanel {
	position: fixed;
	top: 0;
	left: 0;
	width: 400px;
	max-width: 92vw;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: white;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	z-index: 103;
	opacity: 0;
	pointer-events: none;
	transform: translate3d(-100px, 0, 0);
	transition: transform .25s ease-out, opacity .25s ease-out;
	overflow: hidden;
}

.notificationPanel.open {
	opacity: 1;
	pointer-events: all;
	transform: translate3d(0, 0, 0);
	box-shadow: 30px 0px 80px rgba(0, 0, 0, 0.25);
}

.notificationBackdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity .35s;
	z-index: 102;
}

.notificationPanel.open ~ .notificationBackdrop {
	opacity: 1;
	pointer-events: all;
}

@media (min-width: 1201px) {
	.notificationPanel {
		top: 15px;
		left: max(15px, (100vw - 1200px) / 2);
		height: calc(100vh - 30px);
		height: calc(100dvh - 30px);
		border: 1px solid rgba(0, 0, 0, 0.08);
		border-radius: 16px;
	}
}

/* header + filters */

.notificationPanelHeader {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px; /* the navbar's real rendered height: 15px padding x2 + 40px bell + 2px border */
	padding: 0 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.07);
	z-index: 2;
}

/* close sits on the LEFT, over where the bell was, so the panel toggles open and
   closed without moving the mouse; the settings gear keeps the right side */
.notificationPanelTitle {
	flex: 1;
	min-width: 0;
	margin-left: 10px;
	font-size: 17px;
	font-weight: 600;
}

.snapshotPanel .notificationPanelHeader .snapshotPanelBack {
	flex: 1;
}

.notificationPanelClose {
	width: 40px; /* the bell's size - the mouse lands on it without moving */
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 16px;
	opacity: .55;
	cursor: pointer;
}

.notificationPanelClose:hover {
	background: rgba(0, 0, 0, 0.06);
	opacity: .8;
}

.notificationFilters {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 14px 0;
}

.notificationFilters:empty {
	display: none;
}

.notificationFilters .filterChip {
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 1000px;
	background: rgba(0, 0, 0, 0.06);
	cursor: pointer;
}

.notificationFilters .filterChip.active {
	background: rgb(34, 136, 224);
	color: white;
}

/* the feed */

.notificationFeed {
	flex: 1;
	overflow-y: auto;
	padding: 6px 14px 20px;
	-webkit-overflow-scrolling: touch;
}

.notificationDay {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .45;
	margin: 16px 4px 4px;
}

.notificationEntry {
	border-radius: 10px;
	margin: 2px 0;
}

.notificationEntryMain {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px;
}

.notificationEntry.hasSnapshot .notificationEntryMain {
	cursor: pointer;
}

.notificationEntry.hasSnapshot .notificationEntryMain:hover {
	background: rgba(34, 136, 224, 0.06);
	border-radius: 10px;
}

.notificationIcon {
	flex: none;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: rgba(34, 136, 224, 0.1);
	color: rgb(34, 136, 224);
	font-size: 14px;
}

.notificationBody {
	flex: 1;
	min-width: 0;
}

.notificationTitle {
	font-size: 14px;
	font-weight: 600;
}

.notificationDescription {
	font-size: 13px;
	opacity: .75;
	margin-top: 1px;
	overflow-wrap: break-word;
}

.notificationMeta {
	font-size: 12px;
	opacity: .5;
	margin-top: 3px;
}

.notificationExpand {
	flex: none;
	font-size: 13px;
	opacity: .35;
	padding: 4px;
}

.notificationEmpty {
	padding: 20px 10px;
	opacity: .55;
	font-size: 14px;
}

.notificationLoadMore {
	display: inline-block;
	margin: 12px 4px;
}

/* the snapshot detail panel: drills in over the list (stops open the real stop
   viewer instead when the page carries it) */

.snapshotPanel {
	position: fixed;
	top: 0;
	left: 0;
	width: 400px;
	max-width: 92vw;
	height: 100vh;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	background: white;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	z-index: 104;
	opacity: 0;
	pointer-events: none;
	transform: translate3d(-60px, 0, 0);
	transition: transform .22s ease-out, opacity .22s ease-out;
	overflow: hidden;
}

.snapshotPanel.open {
	opacity: 1;
	pointer-events: all;
	transform: translate3d(0, 0, 0);
}

@media (min-width: 1201px) {
	.snapshotPanel {
		top: 15px;
		left: max(15px, (100vw - 1200px) / 2);
		height: calc(100vh - 30px);
		height: calc(100dvh - 30px);
		border: 1px solid rgba(0, 0, 0, 0.08);
		border-radius: 16px;
	}
}

.snapshotPanelBack {
	font-size: 14px;
	font-weight: 600;
	color: rgb(34, 136, 224);
	cursor: pointer;
}

.snapshotPanelBack i {
	margin-right: 6px;
}

.snapshotPanelScroll {
	flex: 1;
	overflow-y: auto;
	padding: 14px 18px 24px;
	-webkit-overflow-scrolling: touch;
}

.snapshotPanelMeta {
	margin-bottom: 12px;
}

/* unmistakable "this is historical data" banner - shown in the detail panel and
   injected atop record viewers (e.g. the stop viewer) filled from a snapshot */
.snapshotIndicator {
	display: block;
	background: rgba(226, 139, 30, 0.12);
	color: rgb(173, 100, 12);
	border: 1px solid rgba(226, 139, 30, 0.35);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 12px;
}

.snapshotIndicator i {
	margin-right: 7px;
}

.popOver .snapshotIndicator {
	margin: 12px 15px 0;
}

.snapshotLegacyNote {
	font-size: 12px;
	opacity: .6;
	font-style: italic;
	margin-top: 6px;
}

.snapshotLabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .5;
	margin: 14px 0 4px;
}

.snapshotTable {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.snapshotTable th {
	text-align: left;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .5;
	padding: 3px 6px;
}

.snapshotTable td {
	padding: 3px 6px;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	vertical-align: top;
	overflow-wrap: anywhere;
}

.snapshotTable td:first-child {
	font-weight: 600;
	white-space: nowrap;
	max-width: 130px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.changesTable .before {
	color: rgb(198, 46, 46);
}

.changesTable .after {
	color: rgb(38, 141, 65);
}

.snapshotTable .emptyValue {
	opacity: .4;
	font-style: italic;
}

.snapshotTable.fullTable {
	margin-bottom: 10px;
}

.notificationSettingsBtn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 15px;
	opacity: .55;
	cursor: pointer;
}

.notificationSettingsBtn:hover {
	background: rgba(0, 0, 0, 0.06);
	opacity: .8;
}

/* push opt-in rows in the settings view */

.pushOptInRow {
	padding: 4px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pushOptInRow .toggleCheckboxBtn {
	margin: 0;
	padding: 6px 0;
	font-size: 15px;
}

.pushOptInNote {
	font-size: 12px;
	opacity: .5;
	margin: -4px 0 6px 25px;
}

/* Notification Rules editor page */

.ruleClassLabel {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .5;
	margin: 22px 2px 8px;
}

.ruleTypeHeader {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.ruleTypeName {
	font-size: 16px;
	font-weight: 600;
}

.ruleTypeTag {
	font-size: 11px;
	opacity: .75;
}

.rulePushTag {
	font-size: 11px;
	background: rgba(34, 136, 224, 0.12);
	color: rgb(34, 136, 224);
}

.rulePushTag i {
	display: inline !important;
	color: rgb(34, 136, 224);
	margin-right: 4px;
}

.accountToggles {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
}

.accountToggles .toggleCheckboxBtn {
	margin: 0;
	padding: 4px 0;
	font-size: 14px;
}

.toggleCheckboxBtn.lockedToggle {
	opacity: .5;
	pointer-events: none;
}

.notificationRulesPage .pushRuleLabel {
	margin-top: 14px;
}

.ruleEditor {
	margin-top: 4px;
	padding: 12px;
	border: 2px dashed rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}

.ruleEditor.hidden {
	display: none;
}

.ruleEditor input {
	width: 100%;
	margin: 0 0 4px;
}

.ruleEditor label {
	margin-top: 8px;
}

.ruleHint {
	font-weight: 400;
	font-size: 11px;
	opacity: .55;
	text-transform: none;
	margin-left: 6px;
}

.varChips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 4px;
}

.varChip {
	font-size: 11px;
	font-family: monospace;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 3px 8px;
	cursor: pointer;
}

.varChip:hover {
	border-color: rgb(34, 136, 224);
	background: rgba(34, 136, 224, 0.08);
}

.notificationRulesPage .typeRowActions {
	margin-top: 12px;
}

/* dark mode */

@media (prefers-color-scheme: dark) {

	.notificationPanel,
	.snapshotPanel {
		background: rgb(24, 26, 29);
		border-color: rgba(151, 151, 151, 0.15);
	}

	.notificationPanelHeader {
		border-bottom-color: rgba(151, 151, 151, 0.15);
	}

	.notificationPanelClose:hover {
		background: rgba(255, 255, 255, 0.08);
	}

	.notificationFilters .filterChip {
		background: rgba(255, 255, 255, 0.1);
	}

	.notificationFilters .filterChip.active {
		background: rgb(34, 136, 224);
	}

	.notificationIcon {
		background: rgba(34, 136, 224, 0.2);
	}

	.snapshotIndicator {
		background: rgba(226, 139, 30, 0.16);
		color: rgb(240, 173, 92);
		border-color: rgba(226, 139, 30, 0.4);
	}

	.notificationSettingsBtn:hover {
		background: rgba(255, 255, 255, 0.08);
	}

	.pushOptInRow {
		border-bottom-color: rgba(151, 151, 151, 0.12);
	}

	.ruleEditor {
		border-color: rgba(151, 151, 151, 0.25);
	}

	.varChip {
		background: rgba(255, 255, 255, 0.1);
	}

	.varChip:hover {
		background: rgba(34, 136, 224, 0.2);
	}

	.snapshotTable td {
		border-top-color: rgba(151, 151, 151, 0.12);
	}

	.changesTable .after {
		color: rgb(96, 190, 125);
	}

	.changesTable .before {
		color: rgb(235, 120, 120);
	}

}
