 .notification_wrapper {
	margin-right: 20px;
	position: relative;
}
.notification_wrapper:hover {
    cursor: help;
}

.notification-container {
	text-align: center;
}

.notification-notify-container {
	position: absolute;
	display: inline-block;
	margin-top: -1px;
	padding-right: 0px
}

.notification-notify-bubble-green {
background-color: #27AE60;
}
.notification-notify-bubble-green:hover {
background-color: #2ecc71;
}

.notification-notify-bubble-blue {
background-color: #2e86de;
}
.notification-notify-bubble-blue:hover {
background-color: #54a0ff;
}

.notification-notify-bubble-red {
background-color: #E74C3C;
}
.notification-notify-bubble-red:hover {
background-color: #ff6b6b;
}

.notification-notify-bubble-orange {
background-color: #F39C12;
}
.notification-notify-bubble-orange:hover {
background-color: #feca57;
}

.notification-notify-bubble-purple {
background-color: #7C3AED;
}
.notification-notify-bubble-purple:hover {
background-color: #9b59b6;
}



/* Pill badge (2026-07-28 restyle): overlaps the icon's top-right corner, white
   ring instead of the gray drop-shadow, flat palette. Counts capped at 99+ in
   PHP. Sized against the 20px status icon (main.css device_loader_class_done). */
.notification-notify-bubble {
	position: absolute;
	top: -3px;
	left: auto;
	right: -4px;
	color: white;
	font-size: 8px;
	font-weight: 700;
	border-radius: 999px;
	border: 1.5px solid #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,.18);
	-webkit-transition: background .35s, transform .35s;
	transition: background .35s, transform .35s;
	/* min-width(6) + padding(3+3) = 12 = height: a single character renders as a
	   TRUE CIRCLE; only multi-char counts ("20", "99+") stretch into a pill.
	   Sized against the 17px status icon (main.css device_loader_class*). */
	min-width: 6px;
	height: 12px;
	padding: 0 3px;
	box-sizing: content-box;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.notification-notify-bubble:has(span:nth-child(2)) {
    border-radius: 6px !important; /* Rounded rectangle if more than one character */
}

.notification-bubble-purple { background-color: #7C3AED; }
.notification-bubble-orange { background-color: #F39C12; }
.notification-bubble-red { background-color: #E74C3C; }
.notification-bubble-blue { background-color: #2e86de; }
.notification-bubble-green { background-color: #27AE60; }
.device-loader {
}
/* ^ closes the .device-loader rule above, which was left open at end of file (2026-10-15). */

/* Status icon inline <style> (2026-10-15). getDeviceStatus() appends this rule to EVERY status
   icon it renders; ui/js/device_info.js now strips that block before inserting the icon (one
   stylesheet per row was ~900 stylesheets on the Dashboard), so the rule lives here once. */
.notification-notify-container .popModal {
	top: auto !important;
	bottom: 0 !important;
}

/* ---------------------------------------------------------------------------------------------
   Skeleton placeholders (2026-10-15). Grey shapes with a CSS-only shimmer that hold the exact
   footprint of content that is still loading, so nothing resizes when it lands. Used by
   ui/js/device_info.js (status icon + /ViewCustomer Nickname cell), the /ViewCustomer Devices
   table load phase, and the /ViewDevice async widgets. Page-scoped rules elsewhere reuse
   --skel-base / --skel-shine and the skel-shimmer keyframes.
   --------------------------------------------------------------------------------------------- */
:root {
	/* A narrow, bright band that crosses the shape in ~1s reads as a shimmer; the first cut
	   (a 300%-wide soft gradient over 1.4s) read as a static grey block (Taylor, 2026-10-15). */
	--skel-base: #e1e5ea;
	--skel-shine: linear-gradient(90deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 62%);
	--skel-size: 200% 100%;
	--skel-speed: 1.1s;
}

@keyframes skel-shimmer {
	0%   { background-position: 100% 0; }
	100% { background-position: 0 0; }
}

.skel-dot,
.skel-bar,
.skel-block,
.load_device_info:empty::before {
	display: inline-block;
	vertical-align: middle;
	background-color: var(--skel-base);
	background-image: var(--skel-shine);
	background-size: var(--skel-size);
	background-repeat: no-repeat;
	animation: skel-shimmer var(--skel-speed) linear infinite;
}

/* Status icon placeholder: same 17px box as img.device_loader_class_done (main.css). An empty
   server-rendered status span paints the dot before device_info.js has run. */
.skel-dot,
.load_device_info:empty::before {
	width: 17px;
	height: 17px;
	min-width: 17px;
	border-radius: 50%;
}
.load_device_info:empty::before {
	content: '';
}

.skel-bar {
	width: 70%;
	max-width: 150px;
	height: 10px;
	border-radius: 5px;
}
.skel-bar.skel-w40 { width: 40%; }
.skel-bar.skel-w60 { width: 60%; }
.skel-bar.skel-w80 { width: 80%; }

.skel-block {
	display: block;
	width: 100%;
	border-radius: 8px;
}

/* Nickname-cell placeholder (status dot + name bar), 32px tall like the filled .deviceItem. */
.skel-row {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	min-width: 0;
}
.skel-row .skel-dot { flex: 0 0 17px; }
.skel-row .skel-bar { flex: 0 1 auto; }

/* Widget-body placeholder (a title bar, a body block, two text bars). Height comes from the caller. */
.skel-widget {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	box-sizing: border-box;
	text-align: left;
}
.skel-widget .skel-bar {
	display: block;
	max-width: none;
	height: 12px;
}
.skel-widget .skel-block {
	flex: 1 1 auto;
	min-height: 40px;
}

@media (prefers-reduced-motion: reduce) {
	.skel-dot,
	.skel-bar,
	.skel-block,
	.load_device_info:empty::before {
		animation: none;
	}
}
