/**
 * NOC portal dashboard (index.php).
 *
 * Scope: every selector starts with `.noc-dash` so we don't bleed into the
 * existing Bootstrap admin theme. Designed to work alongside the dark-mode
 * deznav theme without overriding its variables.
 *
 * Visual language:
 *   - KPI tiles use a soft tinted surface + matching icon chip.
 *   - Hero map sits in a glass-y card with a subtle inner gradient so the
 *     vector regions read against the page background regardless of theme.
 *   - All "live" badges (status pulse, attention chip) get a synced 2s
 *     animation so the eye reads them as one cohesive system.
 */

/* ----- Theme alignment ------------------------------------------------- */
:root {
	--noc-dash-primary: var(--bs-primary, #eb8153);
	--noc-dash-primary-rgb: var(--bs-primary-rgb, 235, 129, 83);
	--noc-dash-success: var(--bs-success, #198754);
	--noc-dash-success-rgb: var(--bs-success-rgb, 25, 135, 84);
	--noc-dash-warning: var(--bs-warning, #ffc107);
	--noc-dash-warning-rgb: var(--bs-warning-rgb, 255, 193, 7);
	--noc-dash-danger: var(--bs-danger, #dc3545);
	--noc-dash-danger-rgb: var(--bs-danger-rgb, 220, 53, 69);
	--noc-dash-info: var(--bs-info, #0dcaf0);
	--noc-dash-info-rgb: var(--bs-info-rgb, 13, 202, 240);
}

/* ----- Hero status strip ---------------------------------------------- */
.noc-dash__hero {
	background: var(--bs-card-bg, #fff);
	border: 1px solid var(--bs-border-color, #e9e9e9);
	border-left: 4px solid var(--noc-dash-primary);
	border-radius: 16px;
	padding: 18px 22px;
	margin-bottom: 24px;
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.noc-dash__hero-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	position: relative;
}

.noc-dash__hero-greet h1 {
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0;
	color: var(--bs-heading-color, #1f2937);
}

.noc-dash__hero-greet p {
	margin: 4px 0 0;
	color: var(--bs-body-color, #5b5b5b);
	font-size: 0.83rem;
}

.noc-dash__hero-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 500;
	font-size: 0.875rem;
	background: rgba(var(--noc-dash-success-rgb), 0.14);
	color: var(--noc-dash-success);
	border: 1px solid rgba(var(--noc-dash-success-rgb), 0.28);
}

.noc-dash__hero-status[data-tone="warning"] {
	background: rgba(var(--noc-dash-warning-rgb), 0.16);
	color: #b67900;
	border-color: rgba(var(--noc-dash-warning-rgb), 0.3);
}

.noc-dash__hero-status[data-tone="danger"] {
	background: rgba(var(--noc-dash-danger-rgb), 0.14);
	color: var(--noc-dash-danger);
	border-color: rgba(var(--noc-dash-danger-rgb), 0.3);
}

.noc-dash__hero-status[data-tone="muted"] {
	background: rgba(107, 114, 128, 0.1);
	color: #4b5563;
	border-color: rgba(107, 114, 128, 0.2);
}

.noc-dash__hero-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	position: relative;
}

.noc-dash__hero-dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.35;
	animation: nocDashPulse 2s ease-in-out infinite;
}

@keyframes nocDashPulse {
	0%, 100% {
		transform: scale(1);
		opacity: 0.35;
	}
	50% {
		transform: scale(1.6);
		opacity: 0;
	}
}

/* ----- KPI tiles ------------------------------------------------------ */
.noc-dash__kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.noc-dash__kpi {
	background: var(--bs-card-bg, #fff);
	border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
	border-radius: 14px;
	padding: 16px 18px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	position: relative;
	overflow: hidden;
}

.noc-dash__kpi:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	border-color: rgba(var(--noc-dash-primary-rgb), 0.3);
}

.noc-dash__kpi-icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #fff;
}

.noc-dash__kpi[data-tone="primary"] .noc-dash__kpi-icon {
	background: linear-gradient(135deg, rgba(var(--noc-dash-primary-rgb), 0.95) 0%, rgba(var(--noc-dash-primary-rgb), 0.78) 100%);
}

.noc-dash__kpi[data-tone="success"] .noc-dash__kpi-icon {
	background: linear-gradient(135deg, rgba(var(--noc-dash-success-rgb), 0.95) 0%, rgba(var(--noc-dash-success-rgb), 0.78) 100%);
}

.noc-dash__kpi[data-tone="info"] .noc-dash__kpi-icon {
	background: linear-gradient(135deg, rgba(var(--noc-dash-info-rgb), 0.95) 0%, rgba(var(--noc-dash-info-rgb), 0.78) 100%);
}

.noc-dash__kpi[data-tone="warning"] .noc-dash__kpi-icon {
	background: linear-gradient(135deg, rgba(var(--noc-dash-warning-rgb), 0.95) 0%, rgba(var(--noc-dash-warning-rgb), 0.78) 100%);
}

.noc-dash__kpi[data-tone="danger"] .noc-dash__kpi-icon {
	background: linear-gradient(135deg, rgba(var(--noc-dash-danger-rgb), 0.95) 0%, rgba(var(--noc-dash-danger-rgb), 0.78) 100%);
}

.noc-dash__kpi-body {
	flex: 1;
	min-width: 0;
}

.noc-dash__kpi-label {
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--bs-body-color, #5b5b5b);
	margin: 0 0 4px;
}

.noc-dash__kpi-value {
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--bs-heading-color, #111827);
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.noc-dash__kpi-meta {
	font-size: 0.79rem;
	color: var(--bs-body-color, #666);
	margin: 6px 0 0;
}

.noc-dash__kpi-meta strong {
	color: var(--bs-heading-color, #1f2937);
	font-weight: 600;
}

a.noc-dash__kpi--link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

a.noc-dash__kpi--link:hover {
	color: inherit;
}

a.noc-dash__kpi--link:focus-visible {
	outline: 2px solid rgba(var(--noc-dash-primary-rgb), 0.55);
	outline-offset: 2px;
	border-radius: 14px;
}

/* ----- Featured offers (store strip) -------------------------------- */
.noc-dash__offers-wrap {
	scroll-margin-top: 5.5rem;
	position: relative;
	margin: 8px 0 28px;
	padding: 22px 22px 24px;
	border-radius: 18px;
	border: 1px solid rgba(var(--noc-dash-primary-rgb), 0.12);
	background: linear-gradient(
		145deg,
		rgba(var(--noc-dash-primary-rgb), 0.06) 0%,
		var(--bs-card-bg, #fff) 42%,
		var(--bs-card-bg, #fff) 100%
	);
	overflow: hidden;
}

.noc-dash__offers-bg {
	position: absolute;
	inset: -40% -20% auto auto;
	width: min(520px, 70vw);
	height: 280px;
	background: radial-gradient(
		ellipse at center,
		rgba(var(--noc-dash-primary-rgb), 0.14) 0%,
		transparent 68%
	);
	pointer-events: none;
}

.noc-dash__offers-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 18px;
	position: relative;
	z-index: 1;
}

.noc-dash__offers-eyebrow {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--noc-dash-primary);
	margin: 0 0 6px;
}

.noc-dash__offers-title {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--bs-heading-color, #111827);
	letter-spacing: -0.02em;
}

.noc-dash__offers-sub {
	margin: 0;
	font-size: 0.88rem;
	color: var(--bs-secondary-color, #64748b);
	max-width: 42rem;
	line-height: 1.45;
}

.noc-dash__offers-store-btn {
	border-radius: 999px;
	padding-left: 1.1rem;
	padding-right: 1.1rem;
	white-space: nowrap;
}

.noc-dash__offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 14px;
	position: relative;
	z-index: 1;
}

.noc-dash__offers-skel {
	min-height: 220px;
	border-radius: 14px;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.04) 0%,
		rgba(0, 0, 0, 0.08) 50%,
		rgba(0, 0, 0, 0.04) 100%
	);
	background-size: 200% 100%;
	animation: nocDashShimmer 1.4s ease-in-out infinite;
}

.noc-dash__offer-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 16px 16px 14px;
	border-radius: 14px;
	border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
	background: var(--bs-card-bg, #fff);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	overflow: hidden;
}

.noc-dash__offer-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
	border-color: rgba(var(--noc-dash-primary-rgb), 0.25);
}

.noc-dash__offer-card__shine {
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--offer-accent, #7c3aed), var(--offer-accent2, #a78bfa));
	opacity: 0.95;
}

.noc-dash__offer-card[data-offer-tone="violet"] {
	--offer-accent: #7c3aed;
	--offer-accent2: #c4b5fd;
}

.noc-dash__offer-card[data-offer-tone="slate"] {
	--offer-accent: #475569;
	--offer-accent2: #94a3b8;
}

.noc-dash__offer-card[data-offer-tone="emerald"] {
	--offer-accent: #059669;
	--offer-accent2: #34d399;
}

.noc-dash__offer-card__badge {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(var(--noc-dash-primary-rgb), 0.1);
	color: var(--noc-dash-primary);
	margin-bottom: 10px;
}

.noc-dash__offer-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--bs-heading-color, #1f2937);
	letter-spacing: -0.02em;
}

.noc-dash__offer-card__loc {
	margin: 0 0 12px;
	font-size: 0.8rem;
	color: var(--bs-secondary-color, #64748b);
}

.noc-dash__offer-card__loc i {
	margin-right: 4px;
	opacity: 0.85;
}

.noc-dash__offer-specs {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 0.78rem;
	color: var(--bs-body-color, #475569);
	line-height: 1.5;
	flex: 1;
}

.noc-dash__offer-specs li {
	position: relative;
	padding-left: 12px;
	margin-bottom: 4px;
}

.noc-dash__offer-specs li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(var(--noc-dash-primary-rgb), 0.55);
}

.noc-dash__offer-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 4px;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.noc-dash__offer-card__price {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--bs-heading-color, #0f172a);
	font-variant-numeric: tabular-nums;
}

.noc-dash__offer-cta {
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.78rem;
	padding: 0.35rem 0.9rem;
}

.noc-dash__offer-card__instant {
	font-size: 0.78rem;
	line-height: 1.45;
	margin: 0 0 12px;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(var(--noc-dash-success-rgb, 25, 135, 84), 0.1);
	color: var(--noc-dash-success, #198754);
	border: 1px solid rgba(var(--noc-dash-success-rgb, 25, 135, 84), 0.2);
}

.noc-dash__offer-card__instant[data-delivery="on_demand"] {
	background: rgba(var(--noc-dash-info-rgb, 13, 202, 240), 0.1);
	color: #0c5460;
	border-color: rgba(var(--noc-dash-info-rgb, 13, 202, 240), 0.25);
}

.noc-dash__offer-card__instant[data-delivery="out"] {
	background: rgba(var(--noc-dash-danger-rgb, 220, 53, 69), 0.08);
	color: var(--noc-dash-danger, #dc3545);
	border-color: rgba(var(--noc-dash-danger-rgb, 220, 53, 69), 0.2);
}

.noc-dash__offer-card__qty {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--noc-dash-success, #198754);
	margin: 0 0 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.noc-dash__offer-card__qty-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--noc-dash-success, #22c55e);
	box-shadow: 0 0 0 2px rgba(var(--noc-dash-success-rgb, 25, 135, 84), 0.2);
}

.noc-dash__offer-card--out {
	opacity: 0.92;
}

.noc-dash__offers-fallback {
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px dashed var(--bs-border-color, rgba(0, 0, 0, 0.12));
	background: rgba(0, 0, 0, 0.02);
	font-size: 0.9rem;
	color: var(--bs-body-color, #555);
}

.noc-dash__row-ops {
	margin-top: 4px;
}

/* ----- Card frame (shared) ------------------------------------------- */
.noc-dash__card {
	background: var(--bs-card-bg, #fff);
	border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 20px;
}

.noc-dash__card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.noc-dash__card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
	color: var(--bs-heading-color, #1f2937);
	text-transform: none;
	letter-spacing: 0.01em;
}

.noc-dash__card-title-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(var(--noc-dash-primary-rgb), 0.14);
	color: var(--noc-dash-primary);
	font-size: 13px;
}

.noc-dash__card-meta {
	font-size: 0.8rem;
	color: var(--bs-body-color, #666);
}

/* ----- Hero map ------------------------------------------------------- */
.noc-dash__map-card {
	padding: 18px;
}

.noc-dash__map-wrap {
	position: relative;
	height: 460px;
	background: var(--bs-card-bg, #fff);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--bs-border-color, #e9e9e9);
}

.noc-dash__map {
	position: absolute;
	inset: 0;
}

/* jsvectormap region defaults — softer, less contrasty than stock */
.noc-dash__map .jvm-region {
	fill: #d8dde5;
	transition: fill 0.2s ease;
}

.noc-dash__map .jvm-region:hover {
	fill: #b9c2cf;
	cursor: default;
}

.noc-dash__map .jvm-marker {
	cursor: pointer;
	transition: transform 0.15s ease;
	transform-origin: center;
	transform-box: fill-box;
}

.noc-dash__map .jvm-marker[data-noc-kind="server"]:hover {
	transform: scale(1.35);
}

.noc-dash__map .jvm-marker[data-noc-kind="datacenter"]:hover {
	transform: scale(1.25);
}

.noc-dash__map .jvm-marker.noc-dash__map-marker--dc-focus {
	filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.95)) drop-shadow(0 0 2px rgba(15, 23, 42, 0.5));
	transform: scale(1.4);
}

.noc-dash__map .noc-dash__dc-site-marker.noc-dash__map-marker--dc-focus {
	filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.95)) drop-shadow(0 0 3px rgba(109, 40, 217, 0.6));
	transform: scale(1.28);
}

.noc-dash__map .noc-dash__probe-marker {
	filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.65));
}

.noc-dash__map .jvm-marker[data-noc-kind="probe"]:hover {
	transform: scale(1.12);
}

.noc-dash__map-links {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.noc-dash__map-link-line {
	stroke: #22c55e;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-dasharray: 8 8;
	animation: nocDashFlow 1.2s linear infinite;
	opacity: 0.9;
}

@keyframes nocDashFlow {
	from { stroke-dashoffset: 0; }
	to { stroke-dashoffset: -16; }
}

.noc-dash__map .jvm-tooltip {
	background: #0f172a;
	color: #f8fafc;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 0.8rem;
	border: none;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	pointer-events: none;
}

.noc-dash__map-empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #6b7280;
	text-align: center;
	padding: 24px;
}

.noc-dash__map-empty-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(var(--noc-dash-primary-rgb), 0.12);
	color: var(--noc-dash-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}

.noc-dash__map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 14px 4px 0;
	font-size: 0.78rem;
	color: var(--bs-secondary-color, #6b7280);
}

.noc-dash__map-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.noc-dash__map-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}

.noc-dash__map-legend-dot[data-tone="ready"]       { background: #22c55e; }
.noc-dash__map-legend-dot[data-tone="in_progress"] { background: var(--noc-dash-warning); }
.noc-dash__map-legend-dot[data-tone="attention"]   { background: var(--noc-dash-danger); }
.noc-dash__map-legend-dot[data-tone="api_server"]  { background: #22c55e; }

.noc-dash__map-legend-dot--triangle {
	border-radius: 0;
	clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.noc-dash__map-legend-square {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: #6d28d9;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
	vertical-align: middle;
}

/* ----- Datacenters (right of map) ------------------------------------ */
.noc-dash__dc-boxes {
	max-height: 300px;
	overflow-y: auto;
	padding: 2px 4px 2px 0;
}

.noc-dash__dc-boxes--grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	align-content: start;
}

.noc-dash__dc-boxes .noc-dash__empty {
	margin: 8px 0;
}

.noc-dash__dc-box {
	width: 100%;
	min-width: 0;
	min-height: 5.5rem;
	text-align: left;
	padding: 0.6rem 0.65rem 0.5rem;
	border: 1px solid var(--bs-border-color, #e5e5e5);
	border-radius: 10px;
	background: var(--bs-body-bg, #fff);
	color: var(--bs-body-color, #222);
	font-size: 0.8rem;
	line-height: 1.3;
	cursor: pointer;
	display: block;
	transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.noc-dash__dc-box--site {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.2rem;
}

/* Fleet (has hardware): calmer than empty; status accent is left inset. */
.noc-dash__dc-box--fleet {
	border-style: solid;
	background: var(--bs-body-bg, #fff);
	box-shadow: inset 3px 0 0 rgba(109, 40, 217, 0.55);
}
.noc-dash__dc-box--fleet[data-tone="ready"] {
	box-shadow: inset 3px 0 0 rgba(34, 197, 94, 0.85);
}
.noc-dash__dc-box--fleet[data-tone="in_progress"] {
	box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.9);
}
.noc-dash__dc-box--fleet[data-tone="attention"] {
	box-shadow: inset 3px 0 0 rgba(239, 68, 68, 0.9);
}
.noc-dash__dc-box--fleet[data-tone="unknown"] {
	box-shadow: inset 3px 0 0 rgba(156, 163, 175, 0.85);
}

.noc-dash__dc-box--empty {
	border-style: dashed;
	border-color: rgba(107, 114, 128, 0.4);
	background: rgba(107, 114, 128, 0.045);
}

.noc-dash__dc-box:hover {
	background: rgba(var(--noc-dash-primary-rgb, 30, 90, 255), 0.06);
	border-color: rgba(var(--noc-dash-primary-rgb, 30, 90, 255), 0.32);
}

.noc-dash__dc-box--active {
	border-color: rgba(59, 130, 246, 0.75);
	background: rgba(59, 130, 246, 0.1);
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22), inset 3px 0 0 rgba(59, 130, 246, 0.5);
}

.noc-dash__dc-box__head {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
}

.noc-dash__dc-box__pin {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: #6d28d9;
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
	flex-shrink: 0;
}

.noc-dash__dc-box__name {
	flex: 1 1 auto;
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.noc-dash__dc-box__status-badge {
	flex-shrink: 0;
	margin-left: auto;
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.1rem 0.35rem;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: rgba(15, 23, 42, 0.04);
	color: var(--bs-body-color, #334155);
}
.noc-dash__dc-box__status-badge[data-tone="ready"] {
	background: rgba(34, 197, 94, 0.15);
	border-color: rgba(34, 197, 94, 0.35);
	color: #14532d;
}
.noc-dash__dc-box__status-badge[data-tone="in_progress"] {
	background: rgba(245, 158, 11, 0.16);
	border-color: rgba(245, 158, 11, 0.4);
	color: #7c2d12;
}
.noc-dash__dc-box__status-badge[data-tone="attention"] {
	background: rgba(239, 68, 68, 0.12);
	border-color: rgba(239, 68, 68, 0.4);
	color: #7f1d1d;
}
.noc-dash__dc-box__status-badge[data-tone="unknown"] {
	background: rgba(100, 116, 139, 0.12);
	border-color: rgba(100, 116, 139, 0.35);
	color: #334155;
}

@media (max-width: 575.98px) {
	.noc-dash__dc-boxes--grid {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 576px) and (max-width: 1199.98px) {
	.noc-dash__dc-boxes--grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.noc-dash__dc-box__meta {
	margin: 0;
	font-size: 0.75rem;
	color: var(--bs-secondary-color, #64748b);
}

.noc-dash__dc-box__hint {
	margin: 0.15rem 0 0;
	font-size: 0.7rem;
	line-height: 1.35;
}

.noc-dash__dc-box__hint--empty {
	color: var(--bs-secondary-color, #94a3b8);
}

.noc-dash__dc-box__hint--fleet {
	color: var(--bs-secondary-color, #64748b);
}

/* ----- Region breakdown side panel (legacy) ------------------------- */
.noc-dash__regions {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.noc-dash__region-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.noc-dash__region-row:last-child {
	border-bottom: none;
}

.noc-dash__region-label {
	font-size: 0.9rem;
	color: var(--bs-heading-color, #1f2937);
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.noc-dash__region-bar {
	flex: 1;
	height: 6px;
	background: rgba(var(--noc-dash-primary-rgb), 0.12);
	border-radius: 999px;
	overflow: hidden;
	margin: 0 12px;
	min-width: 60px;
}

.noc-dash__region-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, rgba(var(--noc-dash-primary-rgb), 0.95), rgba(var(--noc-dash-info-rgb), 0.95));
	border-radius: 999px;
	transition: width 0.4s ease;
}

.noc-dash__region-count {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	color: var(--bs-heading-color, #1f2937);
	font-size: 0.85rem;
	min-width: 24px;
	text-align: right;
}

/* ----- Inline stat rows (vRack, IP blocks, billing, tickets) --------- */
.noc-dash__statline {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	font-size: 0.9rem;
}

.noc-dash__statline:last-child {
	border-bottom: none;
}

.noc-dash__statline-label {
	color: var(--bs-secondary-color, #6b7280);
}

.noc-dash__statline-value {
	font-weight: 600;
	color: var(--bs-heading-color, #1f2937);
	font-variant-numeric: tabular-nums;
}

.noc-dash__statline-value--mono {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.8rem;
}

/* ----- Activity feed ------------------------------------------------- */
.noc-dash__activity {
	list-style: none;
	margin: 0;
	padding: 0;
}

.noc-dash__activity-item {
	display: flex;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	align-items: flex-start;
}

.noc-dash__activity-item:last-child {
	border-bottom: none;
}

.noc-dash__activity-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	margin-top: 2px;
}

.noc-dash__activity-icon[data-tone="success"] { background: rgba(var(--noc-dash-success-rgb), 0.14); color: var(--noc-dash-success); }
.noc-dash__activity-icon[data-tone="warning"] { background: rgba(var(--noc-dash-warning-rgb), 0.16); color: #b67900; }
.noc-dash__activity-icon[data-tone="danger"]  { background: rgba(var(--noc-dash-danger-rgb), 0.14);  color: var(--noc-dash-danger); }
.noc-dash__activity-icon[data-tone="info"]    { background: rgba(var(--noc-dash-info-rgb), 0.14);    color: var(--noc-dash-info); }

.noc-dash__activity-body {
	flex: 1;
	min-width: 0;
}

.noc-dash__activity-title {
	font-weight: 500;
	color: var(--bs-heading-color, #1f2937);
	font-size: 0.92rem;
	margin: 0;
}

.noc-dash__activity-subject {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.8rem;
	color: var(--noc-dash-primary);
	text-decoration: none;
}

.noc-dash__activity-subject:hover { text-decoration: underline; }

.noc-dash__activity-detail {
	color: var(--bs-body-color, #666);
	font-size: 0.82rem;
	margin: 2px 0 0;
}

.noc-dash__activity-when {
	color: var(--bs-secondary-color, #7c7c7c);
	font-size: 0.78rem;
	white-space: nowrap;
	margin-left: 6px;
}

/* ----- Server roster mini-cards (below the map) ---------------------- */
.noc-dash__roster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

.noc-dash__roster-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.08));
	border-radius: 10px;
	background: var(--bs-card-bg, #fff);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.noc-dash__roster-item:hover {
	border-color: rgba(var(--noc-dash-primary-rgb), 0.4);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
	color: inherit;
	text-decoration: none;
}

.noc-dash__roster-status {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 10px;
	position: relative;
}

.noc-dash__roster-status[data-tone="ready"]       { background: var(--noc-dash-success); }
.noc-dash__roster-status[data-tone="in_progress"] { background: var(--noc-dash-warning); }
.noc-dash__roster-status[data-tone="attention"]   { background: var(--noc-dash-danger); }
.noc-dash__roster-status[data-tone="unknown"]     { background: #9ca3af; }

.noc-dash__roster-status[data-tone="in_progress"]::after,
.noc-dash__roster-status[data-tone="attention"]::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.4;
	animation: nocDashPulse 2s ease-in-out infinite;
}

.noc-dash__roster-info {
	flex: 1;
	min-width: 0;
}

.noc-dash__roster-host {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--bs-heading-color, #1f2937);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.noc-dash__roster-meta {
	font-size: 0.8rem;
	color: var(--bs-body-color, #666);
	margin: 2px 0 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ----- Empty states -------------------------------------------------- */
.noc-dash__empty {
	text-align: center;
	color: var(--bs-body-color, #666);
	padding: 18px 8px;
	font-size: 0.9rem;
}

.noc-dash__empty-cta {
	margin-top: 10px;
}

/* ----- Skeleton loaders --------------------------------------------- */
.noc-dash__skel {
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.06) 0%,
		rgba(0, 0, 0, 0.12) 50%,
		rgba(0, 0, 0, 0.06) 100%
	);
	background-size: 200% 100%;
	animation: nocDashShimmer 1.4s ease-in-out infinite;
	border-radius: 6px;
	display: inline-block;
}

@keyframes nocDashShimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.noc-dash__skel--num   { width: 60%; height: 32px; }
.noc-dash__skel--meta  { width: 40%; height: 12px; margin-top: 6px; }
.noc-dash__skel--row   { width: 100%; height: 14px; margin: 8px 0; }

/* ----- Tone-specific accents on inline values ------------------------ */
.noc-dash__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.noc-dash__chip[data-tone="success"] { background: rgba(var(--noc-dash-success-rgb), 0.14); color: var(--noc-dash-success); }
.noc-dash__chip[data-tone="warning"] { background: rgba(var(--noc-dash-warning-rgb), 0.18); color: #b67900; }
.noc-dash__chip[data-tone="danger"]  { background: rgba(var(--noc-dash-danger-rgb), 0.14);  color: var(--noc-dash-danger); }
.noc-dash__chip[data-tone="info"]    { background: rgba(var(--noc-dash-info-rgb), 0.14);    color: var(--noc-dash-info); }
.noc-dash__chip[data-tone="muted"]   { background: rgba(107, 114, 128, 0.1); color: #4b5563; }

/* ----- Responsive tweaks -------------------------------------------- */
@media (max-width: 767px) {
	.noc-dash__hero {
		padding: 18px;
	}
	.noc-dash__map-wrap {
		height: 320px;
	}
	.noc-dash__kpi-value {
		font-size: 1.5rem;
	}
}

/* ----- Dark mode polish (keep dashboard aligned with portal shell) ---- */
[data-theme-version=dark] .noc-dash__hero {
	background: #3a3266;
	border-color: rgba(255, 255, 255, 0.12);
}
[data-theme-version=dark] .noc-dash__hero-greet p,
[data-theme-version=dark] .noc-dash__kpi-label,
[data-theme-version=dark] .noc-dash__kpi-meta,
[data-theme-version=dark] .noc-dash__card-meta,
[data-theme-version=dark] .noc-dash__activity-detail,
[data-theme-version=dark] .noc-dash__roster-meta,
[data-theme-version=dark] .noc-dash__empty,
[data-theme-version=dark] .noc-dash__statline-label {
	color: rgba(255, 255, 255, 0.72);
}
[data-theme-version=dark] .noc-dash__kpi,
[data-theme-version=dark] .noc-dash__card {
	background: #342d5d;
	border-color: rgba(255, 255, 255, 0.1);
}
[data-theme-version=dark] .noc-dash__kpi-value,
[data-theme-version=dark] .noc-dash__card-title,
[data-theme-version=dark] .noc-dash__statline-value,
[data-theme-version=dark] .noc-dash__activity-title,
[data-theme-version=dark] .noc-dash__region-label,
[data-theme-version=dark] .noc-dash__region-count,
[data-theme-version=dark] .noc-dash__roster-host {
	color: #fff;
}
[data-theme-version=dark] .noc-dash__map-wrap {
	background: #2f2953;
	border-color: rgba(255, 255, 255, 0.12);
}
[data-theme-version=dark] .noc-dash__map .jvm-region {
	fill: #4a436f;
}
[data-theme-version=dark] .noc-dash__map .jvm-region:hover {
	fill: #5d5683;
}
[data-theme-version=dark] .noc-dash__dc-box {
	background: #2f2953;
	border-color: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.92);
}
[data-theme-version=dark] .noc-dash__dc-box:hover {
	background: rgba(255, 255, 255, 0.06);
}
[data-theme-version=dark] .noc-dash__dc-box--active {
	border-color: rgba(96, 165, 250, 0.65);
	background: rgba(59, 130, 246, 0.12);
}
[data-theme-version=dark] .noc-dash__dc-box--fleet {
	background: #2f2953;
}
[data-theme-version=dark] .noc-dash__dc-box__meta,
[data-theme-version=dark] .noc-dash__dc-box__hint--empty,
[data-theme-version=dark] .noc-dash__dc-box__hint--fleet {
	color: rgba(255, 255, 255, 0.6);
}
[data-theme-version=dark] .noc-dash__dc-box__name {
	color: #fff;
}
[data-theme-version=dark] .noc-dash__dc-box--empty {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.03);
}
[data-theme-version=dark] .noc-dash__dc-box__status-badge {
	color: rgba(255, 255, 255, 0.88);
}
[data-theme-version=dark] .noc-dash__dc-box__status-badge[data-tone="ready"] {
	color: #bbf7d0;
	background: rgba(34, 197, 94, 0.18);
	border-color: rgba(34, 197, 94, 0.35);
}
[data-theme-version=dark] .noc-dash__dc-box__status-badge[data-tone="in_progress"] {
	color: #fde68a;
	background: rgba(245, 158, 11, 0.15);
	border-color: rgba(245, 158, 11, 0.4);
}
[data-theme-version=dark] .noc-dash__dc-box__status-badge[data-tone="attention"] {
	color: #fecaca;
	background: rgba(239, 68, 68, 0.14);
	border-color: rgba(239, 68, 68, 0.4);
}
[data-theme-version=dark] .noc-dash__dc-box__status-badge[data-tone="unknown"] {
	color: #e2e8f0;
	background: rgba(148, 163, 184, 0.12);
	border-color: rgba(148, 163, 184, 0.35);
}
[data-theme-version=dark] .noc-dash__map-legend-square {
	border-color: rgba(15, 23, 42, 0.5);
}
[data-theme-version=dark] .noc-dash__region-row,
[data-theme-version=dark] .noc-dash__statline,
[data-theme-version=dark] .noc-dash__activity-item {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}
[data-theme-version=dark] .noc-dash__roster-item {
	background: #3b3368;
	border-color: rgba(255, 255, 255, 0.1);
}
[data-theme-version=dark] .noc-dash__roster-item:hover {
	border-color: rgba(var(--noc-dash-primary-rgb), 0.55);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
[data-theme-version=dark] .noc-dash__offers-wrap {
	background: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.05) 0%,
		#342d5d 38%,
		#342d5d 100%
	);
	border-color: rgba(255, 255, 255, 0.1);
}
[data-theme-version=dark] .noc-dash__offers-title,
[data-theme-version=dark] .noc-dash__offer-card__title,
[data-theme-version=dark] .noc-dash__offer-card__price {
	color: #fff;
}
[data-theme-version=dark] .noc-dash__offers-sub,
[data-theme-version=dark] .noc-dash__offer-card__loc {
	color: rgba(255, 255, 255, 0.62);
}
[data-theme-version=dark] .noc-dash__offer-specs {
	color: rgba(255, 255, 255, 0.72);
}
[data-theme-version=dark] .noc-dash__offer-specs li::before {
	background: rgba(255, 255, 255, 0.45);
}
[data-theme-version=dark] .noc-dash__offer-card {
	background: #3b3368;
	border-color: rgba(255, 255, 255, 0.1);
}
[data-theme-version=dark] .noc-dash__offer-card:hover {
	border-color: rgba(var(--noc-dash-primary-rgb), 0.45);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
[data-theme-version=dark] .noc-dash__offer-card__foot {
	border-top-color: rgba(255, 255, 255, 0.1);
}
[data-theme-version=dark] .noc-dash__offers-skel {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.04) 0%,
		rgba(255, 255, 255, 0.09) 50%,
		rgba(255, 255, 255, 0.04) 100%
	);
}
[data-theme-version=dark] .noc-dash__offer-card__instant[data-delivery="instant"] {
	color: #6ee7b7;
}
[data-theme-version=dark] .noc-dash__offer-card__instant[data-delivery="on_demand"] {
	color: #7dd3fc;
}
[data-theme-version=dark] .noc-dash__offer-card__instant[data-delivery="out"] {
	color: #fca5a5;
}
[data-theme-version=dark] .noc-dash__offers-fallback {
	border-color: rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.75);
}
