.tsgs-dashboard,
.tsgs-dashboard * {
	box-sizing: border-box;
}

.tsgs-dashboard {
	--tsgs-navy: #0e3554;
	--tsgs-navy-deep: #09263e;
	--tsgs-burgundy: #8e1f45;
	--tsgs-green: #2f6b4f;
	--tsgs-ink: #172331;
	--tsgs-muted: #66717f;
	--tsgs-line: #dce3e8;
	--tsgs-soft: #f4f7f9;
	--tsgs-white: #fff;
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(14px, 2.4vw, 32px);
	font-family: Inter, Lato, "Segoe UI", Arial, sans-serif;
	color: var(--tsgs-ink);
	font-size: 16px;
	line-height: 1.55;
	background:
		radial-gradient(circle at 96% 2%, rgba(14, 53, 84, .06), transparent 24%),
		linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
	border: 1px solid rgba(14, 53, 84, .12);
	border-radius: 28px;
	box-shadow: 0 22px 60px rgba(14, 53, 84, .11);
	overflow: hidden;
	isolation: isolate;
}

.tsgs-dashboard h2,
.tsgs-dashboard h3,
.tsgs-dashboard h4,
.tsgs-dashboard p {
	margin-top: 0;
}

.tsgs-dashboard h2,
.tsgs-dashboard h3,
.tsgs-dashboard h4 {
	font-family: Inter, Lato, "Segoe UI", Arial, sans-serif;
	color: inherit;
	line-height: 1.2;
}

.tsgs-hero {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(18px, 3vw, 36px);
	min-height: 206px;
	padding: clamp(26px, 4.5vw, 56px);
	color: #fff;
	background:
		linear-gradient(126deg, rgba(14, 53, 84, .99), rgba(9, 38, 62, .97) 58%, rgba(142, 31, 69, .93));
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 20px 44px rgba(9, 38, 62, .22);
}

.tsgs-hero::before,
.tsgs-hero::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	pointer-events: none;
}

.tsgs-hero::before {
	width: 320px;
	height: 320px;
	right: -110px;
	top: -195px;
}

.tsgs-hero::after {
	width: 180px;
	height: 180px;
	right: 72px;
	bottom: -132px;
}

.tsgs-hero__glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 75% 18%, rgba(255, 255, 255, .14), transparent 27%),
		linear-gradient(90deg, transparent, rgba(255, 255, 255, .035));
	pointer-events: none;
}

.tsgs-hero__logo,
.tsgs-hero__content,
.tsgs-hero__summary {
	position: relative;
	z-index: 1;
}

.tsgs-hero__logo {
	display: grid;
	place-items: center;
	width: clamp(82px, 9vw, 112px);
	aspect-ratio: 1;
	padding: 8px;
	background: rgba(255, 255, 255, .98);
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 50%;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.tsgs-hero__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
}

.tsgs-hero__logo span {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: var(--tsgs-navy);
	font-size: clamp(15px, 2vw, 22px);
	font-weight: 900;
	letter-spacing: -.04em;
}

.tsgs-eyebrow,
.tsgs-section-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 9px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tsgs-eyebrow {
	color: rgba(255, 255, 255, .72);
}

.tsgs-eyebrow::before,
.tsgs-section-label::before {
	content: "";
	width: 22px;
	height: 3px;
	background: currentColor;
	border-radius: 99px;
}

.tsgs-hero h2 {
	margin-bottom: 10px;
	color: #fff;
	font-size: clamp(30px, 4vw, 54px);
	font-weight: 850;
	letter-spacing: -.045em;
}

.tsgs-hero h2 span {
	color: #fff;
	font-weight: 400;
	opacity: .72;
}

.tsgs-hero__content > p:last-child {
	max-width: 680px;
	margin-bottom: 0;
	color: rgba(255, 255, 255, .8);
	font-size: clamp(14px, 1.5vw, 18px);
}

.tsgs-hero__summary {
	display: grid;
	grid-template-columns: auto auto;
	align-items: baseline;
	gap: 0 10px;
	min-width: 210px;
	padding: 22px 24px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
	backdrop-filter: blur(12px);
}

.tsgs-hero__summary strong {
	font-size: 28px;
	font-weight: 850;
	letter-spacing: -.035em;
}

.tsgs-hero__summary span {
	color: rgba(255, 255, 255, .76);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tsgs-hero__summary i {
	grid-column: 1 / -1;
	display: block;
	height: 1px;
	margin: 13px 0;
	background: rgba(255, 255, 255, .16);
}

.tsgs-kpis {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 22px 0;
}

.tsgs-kpi {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	min-height: 145px;
	padding: 22px;
	background: rgba(255, 255, 255, .92);
	border: 1px solid var(--tsgs-line);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(14, 53, 84, .07);
	overflow: hidden;
}

.tsgs-kpi::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 72px;
	height: 4px;
	background: var(--tsgs-burgundy);
	border-radius: 0 0 0 99px;
}

.tsgs-kpi:nth-child(2)::after,
.tsgs-kpi:nth-child(2) .tsgs-kpi__icon {
	background-color: var(--tsgs-green);
}


.tsgs-kpi__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	color: #fff;
	background: var(--tsgs-navy);
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(14, 53, 84, .2);
}

.tsgs-kpi__icon svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tsgs-kpi span {
	display: block;
	margin-bottom: 2px;
	color: var(--tsgs-muted);
	font-size: 13px;
	font-weight: 700;
}

.tsgs-kpi strong {
	display: block;
	margin: 2px 0 2px;
	color: var(--tsgs-navy);
	font-size: clamp(28px, 3.1vw, 42px);
	font-weight: 850;
	line-height: 1;
	letter-spacing: -.045em;
}

.tsgs-kpi small {
	display: block;
	color: #7c8793;
	font-size: 12px;
}


.tsgs-activity {
	margin-top: 0;
	padding: clamp(22px, 3vw, 36px);
	background: #fff;
	border: 1px solid var(--tsgs-line);
	border-radius: 22px;
	box-shadow: 0 14px 38px rgba(14, 53, 84, .065);
}

.tsgs-activity__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--tsgs-line);
}

.tsgs-activity__head h3 {
	margin-bottom: 0;
	color: var(--tsgs-navy);
	font-size: clamp(24px, 2.8vw, 36px);
	letter-spacing: -.035em;
}

.tsgs-activity__head > p {
	max-width: 420px;
	margin-bottom: 0;
	color: var(--tsgs-muted);
	font-size: 14px;
	font-weight: 650;
	text-align: right;
}

.tsgs-activity__grid {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	gap: 20px;
	margin-top: 20px;
}

.tsgs-chart-card {
	min-width: 0;
	padding: clamp(18px, 2.4vw, 28px);
	background: linear-gradient(180deg, #fbfcfd, #f6f8fa);
	border: 1px solid #e2e8ec;
	border-radius: 18px;
}

.tsgs-chart-card > header {
	margin-bottom: 20px;
}

.tsgs-chart-card h4 {
	margin-bottom: 4px;
	color: var(--tsgs-navy);
	font-size: 18px;
	letter-spacing: -.015em;
}

.tsgs-chart-card header p {
	margin-bottom: 0;
	color: var(--tsgs-muted);
	font-size: 12px;
}

.tsgs-donut-layout {
	display: grid;
	grid-template-columns: minmax(220px, .88fr) minmax(190px, 1.12fr);
	gap: 20px;
	align-items: center;
}

.tsgs-donut {
	position: relative;
	width: 100%;
	max-width: 330px;
	margin: 0 auto;
	aspect-ratio: 1;
}

.tsgs-donut svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.tsgs-donut__track {
	fill: none;
	stroke: #e3e9ed;
	stroke-width: 28;
}

.tsgs-donut__segment {
	fill: none;
	stroke-width: 28;
	stroke-linecap: butt;
	cursor: pointer;
	transition: opacity .18s ease, stroke-width .18s ease, filter .18s ease;
	outline: none;
}

.tsgs-donut__segment:hover,
.tsgs-donut__segment:focus {
	stroke-width: 33;
	filter: drop-shadow(0 5px 5px rgba(14, 53, 84, .17));
}

.tsgs-donut.is-muted .tsgs-donut__segment:not(.is-active) {
	opacity: .22;
}

.tsgs-donut__center-value {
	fill: var(--tsgs-navy);
	font-size: 30px;
	font-weight: 850;
	letter-spacing: -.04em;
	text-anchor: middle;
}

.tsgs-donut__center-label {
	fill: var(--tsgs-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-anchor: middle;
}

.tsgs-chart-tooltip {
	position: absolute;
	z-index: 10;
	max-width: 230px;
	padding: 9px 11px;
	color: #fff;
	background: rgba(9, 38, 62, .96);
	border-radius: 9px;
	box-shadow: 0 10px 24px rgba(9, 38, 62, .22);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.35;
	pointer-events: none;
	transform: translate(-50%, calc(-100% - 12px));
	opacity: 0;
	transition: opacity .15s ease;
}

.tsgs-chart-tooltip.is-visible {
	opacity: 1;
}

.tsgs-legend {
	display: grid;
	gap: 7px;
	max-height: 320px;
	padding-right: 7px;
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: #aeb9c1 transparent;
}

.tsgs-legend__item {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto;
	gap: 8px;
	align-items: center;
	width: 100%;
	padding: 7px 8px;
	color: var(--tsgs-ink);
	background: transparent;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 11px;
	text-align: left;
	cursor: pointer;
	transition: background .15s ease;
}

.tsgs-legend__item:hover,
.tsgs-legend__item:focus-visible,
.tsgs-legend__item.is-active {
	background: #eaf0f4;
	outline: none;
}

.tsgs-legend__swatch {
	width: 9px;
	height: 9px;
	background: var(--tsgs-color);
	border-radius: 3px;
}

.tsgs-legend__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tsgs-legend__value {
	color: var(--tsgs-navy);
	font-weight: 800;
	white-space: nowrap;
}

.tsgs-legend__value small {
	color: var(--tsgs-muted);
	font-size: 9px;
	font-weight: 650;
}

.tsgs-bars {
	display: grid;
	gap: 12px;
}

.tsgs-bar {
	display: grid;
	grid-template-columns: minmax(120px, 1.25fr) minmax(120px, 1fr) auto;
	gap: 10px;
	align-items: center;
	font-size: 12px;
}

.tsgs-bar[hidden] {
	display: none;
}

.tsgs-bar__label {
	min-width: 0;
	color: #344250;
	font-weight: 650;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tsgs-bar__track {
	height: 10px;
	background: #e3e9ed;
	border-radius: 99px;
	overflow: hidden;
}

.tsgs-bar__fill {
	display: block;
	width: var(--tsgs-width);
	height: 100%;
	background: var(--tsgs-color);
	border-radius: inherit;
	transition: width .8s cubic-bezier(.2, .75, .25, 1);
}

.tsgs-dashboard--animate:not(.is-visible) .tsgs-bar__fill {
	width: 0;
}

.tsgs-bar__value {
	min-width: 28px;
	color: var(--tsgs-navy);
	font-weight: 850;
	text-align: right;
}

.tsgs-bars__toggle {
	justify-self: start;
	margin-top: 5px;
	padding: 8px 12px;
	color: var(--tsgs-navy);
	background: #fff;
	border: 1px solid #cbd6dd;
	border-radius: 999px;
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

.tsgs-bars__toggle:hover,
.tsgs-bars__toggle:focus-visible {
	color: #fff;
	background: var(--tsgs-navy);
	outline: none;
}

.tsgs-empty {
	padding: 24px;
	color: var(--tsgs-muted);
	background: #fff;
	border: 1px dashed #c8d3db;
	border-radius: 12px;
	font-size: 13px;
	text-align: center;
}

.tsgs-detail {
	margin-top: 22px;
	background: #fff;
	border: 1px solid var(--tsgs-line);
	border-radius: 18px;
	overflow: hidden;
}

.tsgs-detail summary {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	padding: 20px 58px 20px 24px;
	color: var(--tsgs-navy);
	font-weight: 800;
	cursor: pointer;
	list-style: none;
}

.tsgs-detail summary::-webkit-details-marker {
	display: none;
}

.tsgs-detail summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: #fff;
	background: var(--tsgs-navy);
	border-radius: 50%;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
}

.tsgs-detail[open] summary::after {
	content: "−";
	background: var(--tsgs-burgundy);
}

.tsgs-detail summary small {
	color: var(--tsgs-muted);
	font-size: 11px;
	font-weight: 600;
}

.tsgs-detail__table-wrap {
	overflow-x: auto;
	border-top: 1px solid var(--tsgs-line);
}

.tsgs-detail table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.tsgs-detail th,
.tsgs-detail td {
	padding: 12px 16px;
	border-bottom: 1px solid #e8edf0;
	text-align: right;
	vertical-align: middle;
}

.tsgs-detail th:first-child,
.tsgs-detail td:first-child {
	min-width: 230px;
	text-align: left;
}

.tsgs-detail thead th {
	color: #fff;
	background: var(--tsgs-navy);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .035em;
}

.tsgs-detail tbody tr:nth-child(even) {
	background: #f7f9fa;
}

.tsgs-detail tbody th {
	color: #344250;
	font-weight: 650;
}

.tsgs-detail tfoot th,
.tsgs-detail tfoot td {
	color: var(--tsgs-navy);
	background: #edf3f6;
	font-weight: 850;
}

.tsgs-detail tr:last-child th,
.tsgs-detail tr:last-child td {
	border-bottom: 0;
}

@media (max-width: 1120px) {
	.tsgs-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tsgs-activity__grid {
		grid-template-columns: 1fr;
	}

	.tsgs-donut-layout {
		grid-template-columns: minmax(230px, .75fr) minmax(240px, 1.25fr);
	}
}

@media (max-width: 860px) {
	.tsgs-hero {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.tsgs-hero__summary {
		grid-column: 1 / -1;
		grid-template-columns: auto auto 1px auto auto;
		justify-content: center;
		width: 100%;
	}

	.tsgs-hero__summary i {
		grid-column: auto;
		width: 1px;
		height: 34px;
		margin: 0 12px;
	}


	.tsgs-activity__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.tsgs-activity__head > p {
		max-width: none;
		text-align: left;
	}
}

@media (max-width: 680px) {
	.tsgs-dashboard {
		padding: 10px;
		border-radius: 18px;
	}

	.tsgs-hero {
		grid-template-columns: 1fr;
		padding: 26px 22px;
		text-align: center;
	}

	.tsgs-hero__logo {
		width: 82px;
		margin: 0 auto;
	}

	.tsgs-eyebrow {
		justify-content: center;
	}

	.tsgs-hero__summary {
		grid-template-columns: 1fr 1fr;
		min-width: 0;
	}

	.tsgs-hero__summary i {
		grid-column: 1 / -1;
		width: 100%;
		height: 1px;
		margin: 10px 0;
	}

	.tsgs-kpis {
		grid-template-columns: 1fr;
	}

	.tsgs-kpi {
		min-height: 120px;
	}

	.tsgs-activity {
		padding: 20px 16px;
	}

	.tsgs-donut-layout {
		grid-template-columns: 1fr;
	}

	.tsgs-donut {
		max-width: 270px;
	}

	.tsgs-legend {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: none;
	}

	.tsgs-bar {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 5px 10px;
	}

	.tsgs-bar__track {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.tsgs-detail summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}
}

@media (max-width: 440px) {
	.tsgs-legend {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsgs-dashboard *,
	.tsgs-dashboard *::before,
	.tsgs-dashboard *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.tsgs-dashboard {
		max-width: none;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

	.tsgs-hero {
		color-adjust: exact;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.tsgs-bars__toggle {
		display: none;
	}

	.tsgs-bar[hidden] {
		display: grid;
	}

	.tsgs-detail {
		break-inside: avoid;
	}
}

.tsgs-dashboard .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.tsgs-detail__residual th,
.tsgs-detail__residual td {
	color: #5e6974;
	background: #f1f3f5 !important;
	font-style: italic;
}
