/*reset*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

/* Visually hidden class for screen reader only content */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Skip link for keyboard users to bypass repetitive content */
.skip-link {
	position: fixed;
	top: -50px;
	left: 10px;
	background: #008AFF;
	color: white;
	padding: 12px 20px;
	z-index: 1000000; /* Above the header (z-index: 99999) */
	text-decoration: none;
	font-weight: 600;
	border-radius: 0 0 6px 6px;
	transition: top 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.skip-link:focus {
	top: 0;
	outline: 2px solid #005bb5;
	outline-offset: 2px;
}

/* Focus styles for keyboard navigation (accessibility) */
:focus {
	outline: 0;
}

/* Show focus ring only for keyboard navigation on interactive elements */
a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible,
.ifBtn:focus-visible {
	outline: 2px solid #008AFF !important;
	outline-offset: 2px !important;
	border-radius: 3px;
}

/* Keyboard-only focus styling for form inputs (JS tracks keyboard vs mouse) */
body.using-keyboard input:focus,
body.using-keyboard textarea:focus,
body.using-keyboard select:focus {
	outline: 2px solid #008AFF !important;
	outline-offset: 2px !important;
	border-radius: 3px;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}

del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*end of reset*/

/*site-specific*/
/* lgstats 2011/12/23 by John Mapley */

.ie8-show {
	display: none;
}

.iconBtn {
	font-size: 18px;
	padding: 0 5px;
	margin: 5px 0;
}

.iconBtn i {
	transition: 0.3s all;
}

.iconBtn:hover i {
	transform: scale(1.1);
}

.iconBtn.mainColor {}

.iconBtn.alertColor {
	color: red;
}

* {
	box-sizing: border-box;
	font-family: 'Lato', arial, sans-serif;
}

body {
	margin: 0px;
	padding: 0px;
	background-color: #fff;
	font-family: 'Lato', arial, sans-serif;
	color: #111111;
	font-size: 12px;
	line-height: 1.1;
}

input[type="text"],
input[type="password"],
input[type="email"] {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: 'Lato', arial, sans-serif;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
	outline: none;
	border-color: #30afff;
	box-shadow: 0 0 5px rgba(48, 175, 255, 0.3);
}

/* Input focus styling handled by existing :focus rules (border-color + box-shadow) */

input[type="text"].error,
input[type="password"].error,
input[type="email"].error {
	border-color: red;
}

input[type="text"]:disabled,
input[type="password"]:disabled,
input[type="email"]:disabled {
	background-color: #f5f5f5;
	cursor: not-allowed;
	opacity: 0.7;
}

textarea {
	padding: 7px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
	background-color: #fff;
}

textarea:focus {
	outline: none;
	border-color: #30afff;
	box-shadow: 0 0 5px rgba(48, 175, 255, 0.3);
}

/* Textarea focus styling handled by existing :focus rules */



select {
	padding: 7px;
	border: 1px solid #ccc;
	border-radius: 4px;
	/* min-width: 450px; */
	font-size: 14px;
	transition: border-color 0.3s ease;
	background-color: #fff;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
	background-repeat: no-repeat;
	background-position: right 0px center;
	padding-right: 23px;
}

select:focus {
	outline: none;
	border-color: #30afff;
	box-shadow: 0 0 5px rgba(48, 175, 255, 0.3);
}

/* Select focus styling handled by existing :focus rules */

select.error {
	border-color: red;
}

select:disabled {
	background-color: #f5f5f5;
	cursor: not-allowed;
	opacity: 0.7;
}

td {
	/* vertical-align: middle !important; */
}

a {

	color: #30afff;

}

h1 {
	font-size: 20px;
	font-weight: bold;
}

ol {
	list-style: decimal;
	list-style-position: inside;
}

/* ol li {
	padding-top: 0.7em;
} */

legend {
	float: left;
	margin-top: -50px;
	border: none;
	border-bottom: 2px black solid;
}

fieldset {
	margin-top: 50px !important;
}

hr {
	margin: 20px 0;
	border: 0;
	border-top: 1px solid #818181;
}

table tr.tabletitle {
	font-weight: bold;
}

/* table tr.odd{
	background-color: #eeeeee;
}

table tr.even{
	background-color: #ffffff;
} */

.permissionsTable tr:nth-child(odd) {
	background-color: #fff;
}

.ui-notify {
	z-index: 9999999 !important;
}

.permissionsTable tr:nth-child(even) {
	background-color: #eee;
}

ul.bullets {
	list-style: disc;
	list-style-position: inside;
}

.warning {
	color: red;
}

.newsuper {
	vertical-align: super;
	font-size: 11px;
	color: red;
	padding-left: 3px;
}

#nav {
	font-size: 13px;
	padding-top: 0px;
	position: static;
	display: flex;
	align-items: center;
	gap: 0px;
	flex-wrap: nowrap;
	margin-right: 15px;
}

#nav li a {
	padding-right: 0.5em;
}

#nav img {
	vertical-align: middle;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	min-width: 0;
	height: 45px;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	height: 45px;
}

.logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: 20px;
}

.main {
	/*padding: 40px 20px 10px 70px;*/
	/* --- font --- */
	font-size: 14px;
	/* line-height: 1.2; */
	font-weight: normal;
	/* color: #444444;
	background-color: #ffffff; */
	position: relative;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
	/* width: 70%; */
	max-width: 750px;
	/* min-width: 800px; */
	min-height: 275px;
	padding-top: 74px;
}

h4 {
	font-size: 1.2em;
	margin-top: 1.2em;
	margin-bottom: 0.5em;
}

select.period {
	width: 190px;
}

.main p {
	margin-top: 0.3em;
	margin-bottom: 0.5em;
}

.main p+p {
	margin-top: 0.8em;
}

.main.scrollFixed {
	margin-top: 70px;
}

.main.chartMain {
	width: 100%;
	max-width: none;
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 68px;
}

.graphFilterInfo {
	text-align: center;
	margin: 0 auto;
	line-height: 1.4;
}

.container {
	width: 100%;
}

.logo {
	position: relative;
	padding-bottom: 10px;
	z-index: 999;
	padding-left: 0px;
	width: auto;
	height: 45px;
}

.mini .logo {
	height: 35px;
	padding-top: 0px;
}

.mini #nav {
	padding-top: 0px;
}

.mini #userPanel {
	background-color: rgba(30, 30, 30, 0.95);
	border-color: rgba(255, 255, 255, 0.1);
}

.mini #userPanel a {
	color: rgba(255, 255, 255, 0.9);
}

.mini #userPanel a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
}

.mini #userPanel a:last-child {
	border-top-color: rgba(255, 255, 255, 0.1);
}

.mini #userPanel i {
	color: rgba(255, 255, 255, 0.5);
}

.mini #userPanel a:hover i {
	color: white;
}

#breadcrumbs {
	position: static;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
	min-width: 0;
}

#breadcrumbs a {
	color: #0c4c8a;
	text-decoration: underline;
	font-weight: normal;
}

.header.scrollFixed .logo {
	height: 55px;
	width: auto;
}

.headerCnt {
	position: fixed;
	width: 100%;
	top: 0px;
	height: 64px;
	z-index: 99999;
	/* background-color: white; */
	background-color: rgba(255, 255, 255, .8);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	/* width: 80%; */
	max-width: 1200px;
	/* min-width: 800px; */
	position: relative;
	z-index: 999;
	height: 54px;
	color: #4d4d4d;
	margin: 0 auto;
	margin-top: 8px;
}

.blueLine {
	width: 100%;
	background-color: #53A8DC;
	height: 2px;
}

.mini .blueLine {
	display: none;
}

.header.scrollFixed {
	position: fixed;
	top: -10px;
	background-color: white;
	margin: 0 1px;
	border-bottom: 1px solid grey;
}

.header li {
	position: relative;
	float: left;
	padding-left: 20px;
	white-space: nowrap;
}

.header ul {
	/* display: inline; */
	/* position: absolute; */
	/* float: right; */
	/* top: 30px;
	right: 10px; */
}

#userPanel i {
	font-size: 15px;
	width: 20px;
	text-align: center;
	color: #666;
	flex-shrink: 0;
	transition: color 0.15s ease;
}

#userPanel a:hover i {
	color: #0c4c8a;
}

td {
	padding: 5px;
}

h2 {
	font-size: 17px;
	padding: 10px 0 10px 0;
}

h3 {
	font-size: 13px;
	padding: 6px 0 6px 0;
}

.datasetTitle h3 {}

.enterData {
	float: left;
	font-size: 25px;
	padding-left: 40px;
}

.clr {
	clear: both;
}

.bullet-list {
	list-style: disc;
	list-style-position: inside;
}

h3 {
	clear: both;
}

/*
.dataentrypanel{
	height: 50px;
}
*/

.graphgenerationpanel {}

/* graphparams / reportparams — action panel lives in document flow (see .main.paramsMain) */
.main.paramsMain #selectors {
	padding: 2em;
	width: 280px;
	background-color: #f8f8f8;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	z-index: 20;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
}

.main.paramsMain #selectors li {
	padding-bottom: 10px;
}

@media (min-width: 769px) {
	.main.paramsMain {
		--params-actions-sticky-top: 66px;
		--params-tabs-sticky-top: 66px;
		/* clearance below sticky tab nav (matches org header offset: 105px − 66px) */
		--params-tabs-nav-height: 39px;
	}

	.main.paramsMain form:has(#selectors) {
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 24px;
	}

	.main.paramsMain form:has(#selectors) #comparators,
	.main.paramsMain form:has(#selectors) > div:has(#tabs) {
		flex: 1 1 auto;
		min-width: 0;
		float: none;
	}

	.main.paramsMain form:has(#selectors) #comparators {
		padding-left: 40px;
	}

	.main.paramsMain form:has(#selectors) #selectors {
		position: sticky;
		top: var(--params-actions-sticky-top);
		left: auto;
		float: none;
		flex: 0 0 280px;
		width: 280px;
		max-width: 280px;
		align-self: flex-start;
		max-height: calc(100vh - var(--params-actions-sticky-top) - 16px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.main.paramsMain form:has(#selectors) #selectors .ifBtn,
	.main.paramsMain form:has(#selectors) #selectors button.ifBtn {
		width: 100%;
		box-sizing: border-box;
		justify-content: center;
	}

	/* reportparams: sit below the sticky tab bar, not beside/over it */
	.main.paramsMain form:has(#tabs) #selectors {
		margin-top: var(--params-tabs-nav-height);
		top: calc(var(--params-tabs-sticky-top) + var(--params-tabs-nav-height));
		max-height: calc(100vh - var(--params-tabs-sticky-top) - var(--params-tabs-nav-height) - 16px);
	}

	/* comparators-only reportparams (e.g. hrres) — same flat layout as graphparams */
	.main.paramsMain form.reportparams-comparators-only:has(#selectors) > div:has(#reportcomparators) {
		flex: 1 1 auto;
		min-width: 0;
		padding-left: 40px;
	}

	.main.paramsMain form.reportparams-comparators-only:has(#selectors) #selectors {
		margin-top: 0;
		top: var(--params-actions-sticky-top);
		max-height: calc(100vh - var(--params-actions-sticky-top) - 16px);
	}
}

.reformed-form dl {
	display: flex !important;
	flex-direction: row;
	gap: 10px;
	justify-content: flex-start;
	align-items: center;
}

.reformed-form dt {
	width: 200px;
}

.tooltip,
.tooltip img {
	height: 18px;
	width: auto;
	vertical-align: middle;
	/* margin: 3px; */
}

.tooltip.definition {
	height: inherit;
	margin: inherit;
	vertical-align: inherit;
}

a.tooltip.definition {
	text-decoration-style: dashed;
}

.ui-tooltip {
	padding: 10px 20px;
	color: black;
	border-radius: 20px;
	font: bold 14px "Helvetica Neue", Sans-Serif;
	box-shadow: none !important;
	font-size: small !important;
	font-weight: normal !important;
}

.error {
	color: red;
}

.graphlabel {
	width: 100%;
	height: 50px;
	float: left;
	margin-top: 20px;
	text-align: center;
}

.graphlabel span {
	font-weight: bold;
}

.graphimagefallback {
	display: none;
}

#multiPeriodDd {
	/* 	display: none; */
}

.navbutton img {
	position: absolute;
	top: 0px;
	left: 0px;
}

.navbutton {
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	text-shadow: 0 1px 2px #ffffff;
	border: #999 1px solid;
	/* background-image: url('../images/btngradient.png'); */
	height: 23px;
	text-decoration: none;
	color: black;
	font-size: 9pt;
	padding: 4px 7px;
	background-color: #bbb;
	position: relative;
	white-space: nowrap;
	margin-right: 5px;
	text-align: center;
}

.navbutton i {
	line-height: 21px;

}

.user-menu-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.currentuser {
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 8px;
	transition: background-color 0.15s ease;
	font-size: 13.5px;
}

.currentuser:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.currentuser i {
	font-size: 20px;
	line-height: 1;
}

.currentuser .fa-caret-down {
	font-size: 12px;
	opacity: 0.5;
}

.supportIcon {
	font-size: 20px;
	color: black;
	vertical-align: middle;
	padding: 5px 5px;
	border-radius: 28px;
	transition: background-color 0.15s ease;
}

.supportIcon:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

#userPanel {
	width: 200px;
	background-color: rgba(255, 255, 255, 0.95);
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	padding: 6px;
	display: none;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
	z-index: 100;
}

#userPanel a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #1a1a1a;
	padding: 9px 12px;
	border-radius: 7px;
	font-size: 13.5px;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#userPanel a:hover {
	background-color: rgba(12, 76, 138, 0.07);
	color: #0c4c8a;
	transform: none;
}

#userPanel a:focus-visible {
	outline: 2px solid #0c4c8a;
	outline-offset: -2px;
	background-color: rgba(12, 76, 138, 0.05);
}

#userPanel a:last-child {
	margin-top: 2px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0 0 7px 7px;
	padding-top: 11px;
}

#userPanel a.userPanel-signout:hover {
	background-color: rgba(200, 40, 40, 0.07);
	color: #c03030;
}

#userPanel a.userPanel-signout:hover i {
	color: #c03030;
}

#userPanel img {
	vertical-align: middle;
	width: 20px;
	height: 20px;
}

/* footer push trick http://stackoverflow.com/questions/5516910/ */
html,
body {
	height: 100%;
}

.container {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -40px;
}

.push {
	height: 40px;
	clear: both;
}

.mini #footer {
	display: none;
}

#footer {
	width: 100%;
	height: 40px;
	position: relative;
}

#footerInner {
	max-width: 1200px;
	/* min-width: 800px; */
	width: 80%;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 16px;
}

.footerpartner {
	font-size: 7pt;
	color: #8a8a8a;
	white-space: nowrap;
}

.footertext {
	font-size: 7pt;
	text-align: right;
	color: #8a8a8a;
	margin-left: auto;
}

.footertext a {
	color: #8a8a8a;
	text-decoration: underline;
}

/* .formbutton, .reformed-form button{
	border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
    border: #999 2px solid;
    text-decoration: none;
    color: black;
    font-size: 12pt;
    padding: 10px 8px 10px 45px;
    margin: 10px;
    position: relative;
    display: inline-block;
    cursor: pointer;
	width:auto;
	overflow:visible;
	background-color: white;
	opacity: 0.7;
	/* font-weight: bold; 
} */

.formbutton:hover,
.minibutton:hover {
	opacity: 1;
}

#cpaneltopbuttons {
	position: relative;
}

/* Control Panel Section Styles */
.cpanel-section {
	padding: 20px;
}

.cpanel-form-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.cpanel-form-row:last-child {
	margin-bottom: 0;
}

.cpanel-form-row > label {
	min-width: 120px;
	font-weight: 500;
	color: #374151;
}

.cpanel-form-input {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cpanel-form-input select {
	min-width: 200px;
}

.cpanel-static-value {
	font-weight: 500;
	color: #1f2937;
}

.cpanel-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cpanel-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: start;
}

.cpanel-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
}

.cpanel-radio input[type="radio"] {
	width: 16px;
	height: 16px;
	accent-color: #30afff;
}

.cpanel-notice {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 14px;
	color: #0369a1;
	margin: 16px 0 0 0;
}

.cpanel-notice.error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #dc2626;
}

.cpanel-notice a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.cpanel-form-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.cpanel-form-row > label {
		min-width: auto;
	}
	
	.cpanel-form-input {
		width: 100%;
	}
	
	.cpanel-form-input select {
		width: 100%;
	}
}

.formbutton a {
	text-decoration: none;
	color: #fff;
}

.formbutton img {
	position: absolute;
	top: 0px;
	left: 5px;
	width: 35px;
	height: 35px;
}

.formbutton.grey,
.minibutton.grey {
	color: black;
	border-color: black;
}

.formbutton.blue,
.minibutton.blue {
	/* background-image: url('../images/btn_blue.png'); */
	/* background-color: #30afff; */
	color: #30afff;
	border-color: #30afff;
}

.formbutton.blue a {
	color: #fff;
}

span.formbutton,
button.formbutton {
	cursor: pointer;
}

a.ifBtn,
.ifBtn {
	background: #30afff;
	box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.35);
	border-radius: 4px;
	text-decoration: none;
	font-size: 16px;
	color: white;
	padding: 10px 14px;
	transition: all 0.1s ease-out;
	display: inline-block;
	font-weight: normal;
	border: none;
	cursor: pointer;
	text-align: inherit;
	margin: 3px 3px;
	flex-shrink: 0;
}

.ifBtn.mini {
	padding: 5px 10px;
	font-size: 12px;
	margin-top: 0px;
}

.ifBtn.mini i {
	font-size: 12px;
	padding-right: 3px;
	padding-left: 0px;
}

.ifBtn.tiny {
	padding: 3px 8px;
	font-size: 11px;
	height: 20px;
	line-height: 14px;
	margin: 1px;
}

.ifBtn.tiny i {
	font-size: 11px;
	padding-right: 3px;
	padding-left: 0px;
	vertical-align: middle;
}

a.ifBtn.grey,
button.ifBtn.grey {
	background: #888;
}

a.ifBtn.hollow,
button.ifBtn.hollow {
	box-shadow: none;
	text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.10);
	color: #222;
	background: transparent;
}

a.ifBtn:hover,
ifBtn:hover,
button.ifBtn:hover {
	color: white;
	background: #65c4ff;
}

a.ifBtn.hollow:hover,
button.ifBtn.hollow:hover {
	text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.10);
	color: black;
	background-color: rgba(0, 0, 0, 0.1);
}

a.ifBtn.grey:hover,
button.ifBtn.grey:hover {
	background-color: #9f9f9f;
}

.ifBtn i {
	padding: 0px 7px 0 2px;
	font-size: 23px;
	vertical-align: middle;
	transition: 0.2s;
}

.ifBtn img {
	vertical-align: middle;
	height: 23px;
	padding-right: 7px;
}

/* Register typed custom properties so they can animate */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 135deg; }
@property --c1    { syntax: "<color>"; inherits: false; initial-value: #8a969f; }
@property --c2    { syntax: "<color>"; inherits: false; initial-value: #00a6ff; }

.ifBtn.highlight {
  color: #fff;
  /* starting values */
  /*   background: linear-gradient(var(--angle), #4c00ff 0%, #0091ff 100%); */
  --angle: 135deg;
  --c1: #6d2fff;
  --c2: rgb(95, 181, 255);

  /* gradient uses the typed vars */
  background: linear-gradient(var(--angle), var(--c1) 0%, var(--c2) 100%) !important;
  transition: --angle 0.2s ease-out, --c1 0.2s ease-out, --c2 0.2s ease-out;
}

.ifBtn.highlight:hover {
  /* animate the angle; you can also change colors if you want */
  --angle: 90deg;
  --c1: #5b9fff;
  --c2: #5b9fff;
  
}

.smallbutton img {
	position: absolute;
	top: 0px;
	left: 0px;
}

.smallbutton {
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	text-shadow: 0 1px 2px #ffffff;
	border: #999 1px solid;
	background-image: url('../images/btngradient.png');
	height: 23px;
	text-decoration: none;
	color: black;
	font-size: 9pt;
	padding: 4px 3px 4px 20px;
	background-color: #bbb;
	position: relative;
	margin-right: 5px;
}

.smallbutton:hover {
	background-image: none;
}

.minibutton {
	border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border: #999 1px solid;
	text-decoration: none;
	padding: 1px;
	margin: 1px;
	background-color: #bbb;
	position: relative;
	display: inline-block;
	cursor: pointer;

}


/*form style (from reformed)*/
.reformed-form fieldset {
	border: 1px solid #a6c9e2;
	background: #fcfdfd url(../css/reformed-form-redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png) 50% bottom repeat-x;
}

.reformed-form .ui-helper-clearfix {
	display: block;
}

.reformed-form fieldset {
	padding: 10px;
	margin: 0px;
}

.reformed-form p,
.reformed-form dl {
	clear: both;
}

.reformed-form legend {
	border: none;
	border-bottom: 2px solid #4297d7;
	background: transparent;
	color: #000;
	font-weight: bold;
	font-size: 16px;
	padding: 5px 0px;
	margin-left: -9px;
}


.reformed-form dl input,
.reformed-form dl label {
	/* float: left; */
}

.graphmaker select {
	max-width: 550px;
}

#submit_buttons,
.submit_buttons {
	clear: both;
}

.reformed-form dt label {
	width: 200px;
}

.graphgenerationpanel .reformed-form dt,
.graphgenerationpanel .reformed-form dt label {
	width: 100px;
}

/* ---- jQuery UI accordion (cpanel, pulse survey, admin, forms, etc.) ---- */

.ui-accordion {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	margin: 16px 0 24px;
}

.ui-accordion .ui-accordion-header {
	display: block;
	margin: 0;
	padding: 14px 18px;
	font-size: 16px !important;
	font-weight: 600;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	background: #f8fafc;
	color: #1e293b;
	cursor: pointer;
	position: relative;
}

.ui-accordion .ui-accordion-header.ui-accordion-icons {
	padding-left: 2.75em;
}

.ui-accordion .ui-accordion-header .ui-accordion-header-icon {
	left: 18px;
	margin-top: -8px;
}

.ui-accordion .ui-accordion-header.ui-state-active,
.ui-accordion .ui-accordion-header.ui-accordion-header-active {
	background: #fff;
	border-bottom: 2px solid #4297d7;
	color: #1e293b;
	box-shadow: 0 3px 10px -2px rgba(66, 151, 215, 0.16);
}

.ui-accordion .ui-accordion-content {
	overflow: hidden !important;
	padding: 18px;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
}

.ui-accordion > .ui-accordion-content:last-child {
	border-bottom: none;
}

.ui-accordion .ui-accordion-header:last-of-type {
	border-bottom: none;
}

.reformed-form .ui-accordion {
	margin: 12px 0 20px;
}

.ui-state-active .ui-icon {
	background-image: url("images/ui-icons_555555_256x240.png");
}

.filter-title {
	margin-top: 10px;
}

h3 .inlinelink {
	font-size: 10pt;
	font-weight: normal;
}

.systemMessage {
	display: block;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border: red solid 1px;
	background-image: url('../images/icon_excl35.png');
	background-color: #ffd1d1;
	background-repeat: no-repeat;
	min-height: 50px;
	padding: 15px 5px 5px 45px;
	background-position-x: 5px;
	background-position-y: center;
}

fieldset#login {
	position: relative;
}

/* Modern Login/Auth Page Styles */
.login-container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	min-height: calc(100vh - 200px);
	padding: 40px 0px;
}

.login-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	width: 100%;
	max-width: 420px;
	padding: 40px;
}

.login-header {
	margin-bottom: 32px;
}

.login-header h1 {
	font-size: 28px;
	font-weight: 600;
	color: #1a1a2e;
	margin: 0 0 8px 0;
}

.login-header p {
	font-size: 15px;
	color: #64748b;
	margin: 0;
}

.login-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
}

.login-alert i {
	flex-shrink: 0;
	margin-top: 2px;
}

.login-alert--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

.login-alert--warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.login-alert--success {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
	color: #047857;
}

.login-alert.upload-complete-success {
	padding: 20px 24px;
	margin-bottom: 28px;
	font-size: 1.2rem;
	line-height: 1.45;
	font-weight: 600;
	background: #d1fae5;
	border: 2px solid #34d399;
	border-radius: 10px;
	color: #065f46;
}

.login-alert.upload-complete-success i {
	font-size: 1.75rem;
	margin-top: 0;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-label {
	font-size: 14px;
	font-weight: 500;
	color: #374151;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 14px;
	color: #9ca3af;
	font-size: 16px;
	pointer-events: none;
	transition: color 0.2s ease;
}

.form-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	color: #1f2937;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.input-wrapper--has-icon .form-input {
	padding-left: 42px;
}

.form-input::placeholder {
	color: #9ca3af;
}

.form-input:hover {
	border-color: #9ca3af;
}

.form-input:focus {
	border-color: #30afff;
	box-shadow: 0 0 0 3px rgba(48, 175, 255, 0.15);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
	color: #30afff;
}

/* OTP input styles */
.otp-container {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.otp-digit {
	width: 48px;
	height: 56px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	color: #1f2937;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.otp-digit:hover {
	border-color: #9ca3af;
}

.otp-digit:focus {
	border-color: #30afff;
	box-shadow: 0 0 0 3px rgba(48, 175, 255, 0.15);
}

/* Checkbox in login/otp forms */
.login-form .checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #4b5563;
	cursor: pointer;
}

.login-form .checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #30afff;
	cursor: pointer;
}

.login-form .ifBtn {
	margin-top: 8px;
	align-self: flex-start;
}

.login-message {
	margin-bottom: 24px;
}

.login-message-icon {
	font-size: 48px;
	color: #30afff;
	margin-bottom: 16px;
}

.login-message p {
	font-size: 14px;
	color: #4b5563;
	margin: 0 0 12px 0;
}

.login-message ul {
	margin: 0;
	padding-left: 20px;
	font-size: 14px;
	color: #6b7280;
}

.login-message ul li {
	margin-bottom: 6px;
}

.login-footer {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.login-footer p {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 8px 0;
}

.login-footer p:last-child {
	margin-bottom: 0;
}

.login-footer a {
	color: #30afff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.login-footer a:hover {
	color: #0088cc;
	text-decoration: underline;
}

/* Responsive adjustments for auth pages */
@media (max-width: 480px) {
	.login-card {
		padding: 28px 20px;
	}
	
	.login-header h1 {
		font-size: 24px;
	}

	.otp-digit {
		width: 40px;
		height: 48px;
		font-size: 20px;
	}

	.otp-container {
		gap: 6px;
	}
}

/* Dark mode support for login */
@media (prefers-color-scheme: dark) {
	body.dark-mode .login-card {
		background: #1e1e1e;
		box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	}
	
	body.dark-mode .login-header h1 {
		color: #f3f4f6;
	}
	
	body.dark-mode .login-header p {
		color: #9ca3af;
	}
	
	body.dark-mode .form-label {
		color: #d1d5db;
	}
	
	body.dark-mode .form-input {
		background: #2d2d2d;
		border-color: #404040;
		color: #f3f4f6;
	}
	
	body.dark-mode .form-input:hover {
		border-color: #525252;
	}
	
	body.dark-mode .login-footer {
		border-top-color: #404040;
	}
	
	body.dark-mode .login-footer p {
		color: #9ca3af;
	}
}

#securityseal {
	position: absolute;
	right: 50px;
	bottom: 15px;
}

#urlcheck img {
	float: left;
}

#urlcheck p {
	width: 350px;
	float: right;
}

#urlcheck ul {
	list-style: disc;
	list-style-position: inside;
}

.kbContainer {
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	gap: 24px;
	align-items: flex-start;
	max-width: 1200px;
	padding: 10px 0 30px;
}

#kbnav {
	width: 260px;
	padding: 14px 14px 10px;
	background: #ffffff;
	border: 1px solid #d9e1ec;
	border-radius: 8px;
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	position: sticky;
	top: 90px;
}

#kbnav .kbnav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #52606d;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin: 0 0 8px;
}

#kbnav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#kbnav > ul > li + li {
	margin-top: 6px;
}

#kbnav a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: #1f2933;
	text-decoration: none;
	line-height: 1.35;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#kbnav a:hover {
	background: #f2f6ff;
	color: #0f3b8c;
}

#kbnav a.kbnav-parent {
	padding-right: 28px;
	position: relative;
}

#kbnav a.kbnav-parent::after {
	content: "▸";
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa5b1;
	font-size: 12px;
	transition: transform 0.2s ease, color 0.2s ease;
}

#kbnav a.kbnav-parent.is-open::after {
	content: "▾";
	color: #0f3b8c;
}

#kbnav li ul {
	margin: 6px 0 8px 10px;
	padding-left: 12px;
	border-left: 1px solid #e5e7eb;
}

#kbnav li ul li a {
	padding: 6px 8px;
	font-size: 13px;
	color: #52606d;
}

#kbcontent {
	flex: 1;
	min-width: 0;
	max-width: 900px;
	line-height: 1.6;
	color: #111827;
}

#kbcontent ul,
#kbcontent ol {
	margin: 0 0 1.1em 1.4em;
	padding-left: 0;
	list-style-position: outside;
}

#kbcontent ul {
	list-style-type: disc;
}

#kbcontent li {
	padding-bottom: 0.35em;
}

#kbcontent ul ul {
	list-style: circle;
	margin-top: 0.35em;
	margin-bottom: 0.35em;
}

#kbcontent ul ul ul {
	list-style: square;
}

#kbcontent ol {
	list-style: decimal;
}

#kbcontent ol ol {
	list-style: lower-alpha;
}

#kbcontent ol ol ol {
	list-style: lower-roman;
}

#kbcontent p {
	margin: 0 0 1em;
}

#kbcontent table {
	width: 100%;
	border-collapse: collapse;
}

#kbcontent table th,
#kbcontent table td {
	border: 1px solid #e1e1e1;
	padding: 8px;
	text-align: left;
}

#kbcontent table th {
	background: #f2f2f2;
	font-weight: bold;
}

.currentSupportPage {
	background: #e8f0ff;
	color: #103a92;
	font-weight: 600;
	border-left: 3px solid #3b82f6;
	padding-left: 12px;
}

#kbnav li ul li a.currentSupportPage {
	background: #dfe9ff;
	border-left-color: #4675d8;
	color: #0b3a8d;
}

.kbnav-toggle,
.kbnav-backdrop,
.kbnav-close {
	display: none;
}

.kbnav-toggle {
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #1f2933;
	background: #ffffff;
	border: 1px solid #d9e1ec;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.kbnav-toggle:hover {
	background: #f2f6ff;
	color: #0f3b8c;
}

.kbnav-close {
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 16px;
	color: #52606d;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.kbnav-close:hover {
	background: #f2f6ff;
	color: #0f3b8c;
}

@media (max-width: 768px) {
	.main.supportMain {
		max-width: none;
		width: 100%;
		padding-left: 12px;
		padding-right: 12px;
		padding-top: 68px;
		box-sizing: border-box;
	}

	.kbContainer {
		flex-direction: column;
		gap: 12px;
		padding: 0 0 24px;
	}

	.kbnav-toggle {
		display: inline-flex;
		width: 100%;
		box-sizing: border-box;
	}

	.kbnav-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		z-index: 1198;
		padding: 0;
		border: none;
		background: rgba(15, 23, 42, 0.45);
		cursor: pointer;
	}

	.kbContainer.kb-nav-open .kbnav-backdrop {
		display: block;
	}

	#kbnav {
		position: fixed;
		top: 64px;
		left: 0;
		bottom: 0;
		z-index: 1199;
		width: min(300px, 88vw);
		height: calc(100vh - 64px);
		margin: 0;
		border-radius: 0;
		border-left: none;
		border-top: none;
		border-bottom: none;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.kbContainer.kb-nav-open #kbnav {
		transform: translateX(0);
	}

	.kbnav-close {
		display: inline-flex;
		flex-shrink: 0;
	}

	#kbcontent {
		max-width: none;
		width: 100%;
	}

	#kbcontent h1,
	#kbcontent h2,
	#kbcontent h3 {
		overflow-wrap: anywhere;
	}

	#kbcontent img {
		max-width: 100%;
		height: auto;
	}

	#kbcontent pre,
	#kbcontent code {
		overflow-x: auto;
		word-break: break-word;
	}

	#kbcontent table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.kbContainer .if-grid-item,
	.kbContainer .if-grid-item.if-grid-item-full-width {
		flex: 0 0 100%;
	}

	.kbContainer .if-grid-icon {
		font-size: 28px;
		width: 32px;
		margin-right: 12px;
	}

	.kbContainer .if-grid-content h3 {
		font-size: 16px;
	}
}

.graphheader p,
.pieheader p,
.graphheader h2 {
	padding-top: 7px;
	line-height: 1.2;
	font-size: 16px;
	color: #888888;
	display: block;
	margin-left: 0;
}

.graphheader {
	width: 100%;
	/* height: 50px; */
	display: block;
	overflow: visible;
	position: relative;
}

.graphDownloadButton {
	margin-right: 0 !important;
}

/* Graph header flex layout for consistent alignment */
.graph-header-flex {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 15px;
	padding: 0;
	width: 90%;
	max-width: 1600px;
	min-width: 750px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.graph-header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

.graph-header-left {
	flex: 1;
}

.graph-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* Override default graphheader styles when using flex layout */
.graphheader.graph-header-flex {
	width: 90%;
	max-width: 1600px;
	min-width: 750px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 !important;
	height: auto !important;
}

.graphheader.graph-header-flex p {
	float: none;
	margin-left: 0;
}

/* Chart mode switcher styles */
.chart-mode-switcher {
	display: inline-flex;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	background: #f8fafc;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chart-mode-switcher .ifBtn {
	margin: 0 !important;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #4a5568;
	padding: 6px 10px;
	box-shadow: none;
}

.chart-mode-switcher .ifBtn+.ifBtn {
	border-left: 1px solid #e2e8f0;
}

.chart-mode-switcher .ifBtn.active {
	background: #30afff;
	color: #fff;
}

.chart-mode-switcher .ifBtn:hover {
	background: #e8f4ff;
	color: #4a5568;
}

.chart-mode-switcher .ifBtn.active:hover {
	background: #30afff;
	color: #fff;
}

.chart-mode-switcher .ifBtn i {
	color: inherit;
	padding: 0 5px 0 0;
	font-size: 16px;
}

/* When inside flex header, no absolute positioning needed */
.graph-header-flex .chart-mode-switcher {
	position: static !important;
}

.pieheader {
	width: 600px;
}

.pieLeftCol,
.pieRightCol {
	width: 48%;
	float: left;
}

.pieCenterCol {
	width: 100%;
	text-align: center;
}



.dropdownselector {
	color: #000000;
	/* z-index: 99; */
	padding: 4px;
	margin-right: 4px;
	font-weight: bold;
}

.dropdownselector {
	position: relative;
	padding: 4px;
	font-size: 18px;
}

.dropdownselector select {
	position: absolute;
	top: 0px;
	left: 0px;
	font-size: 17px;
	z-index: 100;
}

.dropdownselector .removeMetric {
	position: absolute;
	top: -5px;
	right: -5px;
	font-size: 12px;
	line-height: 10px;
	text-align: center;
	border-radius: 100%;
	color: white;
	background: rgb(226, 23, 23);
	width: 12px;
	height: 12px;
	cursor: pointer;
	display: none;
}

.dropdownselector .removeMetric a {
	color: white;
	text-decoration: none;
}

.dropdownselector:hover .removeMetric {
	display: block;
}

.periodpickercontainer {
	margin-top: -20px;
}

.graphcontrols input {
	display: none;
}

.graphcontrols.showShortlink input {
	display: block;
}

.dropdownhover:hover {
	color: #000000;
	padding-left: 3px !important;
	padding-top: 3px !important;
	margin-right: 3px !important;
	border: 1px solid #d5d5d5;
	cursor: pointer;
	background-color: #eeeeee;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}

.dropdownarrow {
	font-size: 10px;
	color: gray;
}

.graphheader .formbutton {
	float: right;
}

.horizontalradios input:not(:first-child) {
	margin-left: 15px;
}

.periodselectiontip {
	width: 400px;
	font-size: 10px;
}

.graphexpl {
	clear: both;
	margin: 0px 5px 0px 5px;
	display: block;
	font-size: 15px;
	line-height: 1.2;
}

#spinner {
	width: 200px;
	height: 200px;
	color: grey;
	margin: 0 auto;
}



.belowTableCnt {
	margin: 10px auto;
	text-align: center;
}

.belowTable table {
	margin: 0 auto;
}

.graphcontrols {
	padding: 0 auto;
	width: 100%;
	text-align: center;
	transform: rotateX(90);
}

.graphnav {
	width: 850px;
	height: 20px;
	overflow: hidden;
	margin: 0 auto;
	padding-top: 5px;
}

.newnews {
	border: 1px grey dotted;
	padding: 10px;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	background-color: #fefefe;
}

.showingncouncils {
	text-align: center;
	color: gray;
}

.devinfo {
	position: fixed;
	top: 0px;
	left: 0px;
	z-index: 100005;
}

.showingncouncils em a {
	color: gray !important;
}

.filtersettings {
	padding: 2em;
	background-color: #e3e3e3;
	border-radius: 10px;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	display: none;
	margin: 0 auto;
	text-align: center;
}

.filtersettingscontainer {
	width: 100%;
	float: none;
}

.filtersettingscontainer select {
	max-width: 300px;
}

.stattablecontainer {
	float: right;
	width: 46%;
}

.graphcontrolscontainer {
	text-align: center;
}

.page-back {
	font-size: 13px;
	color: #475569;
	text-decoration: none;
	display: inline-block;
	margin-bottom: 12px;
}

.page-back:hover {
	color: #1d4ed8;
}

.page-back i {
	margin-right: 4px;
}

.uscomment {
	clear: both;
	padding-top: 20px;
}

.userbadge {
	width: 50px;
	height: 50px;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	line-height: 50px;
	text-align: center;
	font-size: 24px;
	float: left;
	margin-left: 5px;
}

.commenttext {
	width: 690px;
	line-height: 1.2;
	float: right;
	padding: 0 30px 0 0;
}

.commentmeta {
	color: grey;
	font-size: 11px;
}

.commentmeta strong {
	color: black;
}

#newcommenttrigger {
	color: grey;
	margin-left: 80px;
	width: 690px;
}

#newcommentform {
	padding-top: 0 !important;
	min-height: 115px;
}

#newcommentform button {
	float: left;
	margin-left: 85px;
	clear: left;
}

#newcommentform textarea {
	width: 690px;
	margin-top: 2px;
}

#newcommentform p {
	padding-top: 20px;
	padding-right: 20px;
	float: right;
}

.usTextResponse {
	width: 700px;
}

.usRealResponse {
	font-size: 16px;
}

.usQuestion {
	vertical-align: top !important;
}

.usResponseTable tr td {
	padding-top: 15px;
	padding-bottom: 15px;
}

#usDescEdit textarea {
	width: 700px;
}

textarea#usDesc {
	width: 400px;
}

input#usTitle {
	width: 400px;
}

dt label {
	line-height: 2;
}

dd {
	position: relative;
}

dd .tooltip {
	position: absolute;
}

#newOption {
	margin-left: 4px;
	color: grey;
}

.newOption {
	width: 170px !important;
}

.surveyList h4,
.councillist a,
.ifList li,
.ifList a {
	font-weight: bold;
	text-decoration: none;
	font-size: 17px;
	color: #30afff;
}

.surveyList a {
	text-decoration: none;
	color: black;
	display: block;
}

.surveyList li {
	margin-bottom: 25px;
	list-style: none;
}

.ifList li {
	margin-bottom: 13px;
}

.councillist {
	margin-bottom: 13px;
}

.surveyList i.fa-angle-right,
.councillist a i.fa-angle-right,
.ifList a i.fa-angle-right {
	transition: all 0.2s;
}

.surveyList li:hover i.fa-angle-right,
.councillist:hover i,
.ifList a i.right {
	transform: translateX(2px);
}

.ifList a:hover i.down {
	transform: translateY(2px);
}

.userSurveyListItem {
	padding-bottom: 15px;
	clear: both;
}

.userSurveyListItem h4 {
	font-size: 15px;
}

.userSurveyListItemMetaInfo {
	color: grey;
	font-size: 11px;
}

.usBadge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-left: 6px;
	vertical-align: middle;
}

.usBadge i {
	margin-right: 3px;
	font-size: 9px;
}

.usBadge--data {
	background-color: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.usBadge--comments {
	background-color: #e3f2fd;
	color: #1565c0;
	border: 1px solid #90caf9;
}

.usBadge--closed {
	background-color: #f5f5f5;
	color: #616161;
	border: 1px solid #bdbdbd;
}

.usSectionTitle {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 24px 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #e0e0e0;
}

.usSectionTitle--closed {
	color: #757575;
	border-bottom-color: #e0e0e0;
}

.usSectionTitle--closed i {
	margin-right: 6px;
}

.usClosedExplainer {
	font-size: 13px;
	color: #757575;
	margin: 0 0 12px 0;
	font-style: italic;
}

.notification--closed {
	background-color: #f5f5f5;
	border-left: 4px solid #9e9e9e;
}

.notification--closed .notification-icon {
	color: #757575;
}

.sqFormatList {
	list-style: upper-alpha;
	padding-left: 30px;
}

#dashName {
	width: 15vw;
	height: 17px;
	min-width: 140px;
	font-size: 14px;
	font-weight: bold;
	border: none;
	border-bottom: dashed 1px grey;
	background-color: transparent;
}

.dashindexitem {
	width: 340px;
	float: left;
	padding: 5px;
}

.dashindexitem p {
	text-align: justify;
	margin: 0 8px;
}

.dashindexitem h4 {
	margin: 0 8px;
}

.dashindexitem img {
	margin: 0 5px;
	border: #30afff 1px solid;
}

#ussearchresultcount {
	margin: 10px 0;
}

#ussearchresultcount {
	margin: 10px 0;
}

.button-container {
	flex-shrink: 0;
}

.search-toolbar {
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
	margin: 10px 0 15px;
}

.search-toolbar__container {
	position: relative;
	flex: 1;
}

.search-toolbar__actions {
	flex-shrink: 0;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.search-toolbar__box {
	position: relative;
	width: 100%;
	margin-top: 1px;
}

.search-toolbar__icon {
	position: absolute;
	left: 12px;
	top: 12px;
	color: #666;
}

.search-toolbar__clear {
	position: absolute;
	right: 12px;
	top: 12px;
	color: #666;
	cursor: pointer;
}

.search-toolbar__input {
	width: 100%;
	padding: 10px 10px 10px 40px !important;
	border-radius: 4px;
	font-size: 16px;
	box-sizing: border-box;
	border: 1px solid #d0d0d0;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-toolbar__box--ai-hint .search-toolbar__input::placeholder {
	color: transparent;
}

.search-toolbar__placeholder {
	display: none;
	position: absolute;
	left: 40px;
	right: 36px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #9ca3af;
	font-size: 16px;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.search-toolbar__box--ai-hint.search-toolbar__box--empty:not(.search-toolbar__box--focused) .search-toolbar__placeholder {
	display: block;
}

.search-toolbar__placeholder-accent {
	background: linear-gradient(90deg, #7a6b9a 0%, #9b8ab8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.search-results-panel {
	position: absolute;
	width: 100%;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 500px;
	overflow-y: auto;
	top: 100%;
	left: 0;
}

.search-results-panel .search-results-section {
	margin: 10px 15px;
}

.search-results-panel .search-results-section h3 {
	font-size: 16px;
	color: #333;
	margin: 10px 0;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}

.search-result-item {
	padding: 10px;
	border-bottom: 1px solid #f5f5f5;
	transition: background-color 0.2s;
}

.search-result-item:hover {
	background-color: #f9f9f9;
}

.search-result-item.selected {
	background-color: #e6f2ff;
	border-left: 3px solid #0066cc;
}

.search-result-item a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.search-result-title {
	font-weight: bold;
	margin-bottom: 5px;
	color: #0066cc;
}

.search-result-desc {
	font-size: 14px;
	color: #666;
}

.search-result-survey {
	font-size: 12px;
	color: #0066cc;
	margin-top: 5px;
	font-style: italic;
}

.search-result-meta {
	font-size: 12px;
	color: #666;
	margin-top: 5px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.search-result-council {
	color: #0066cc;
	font-weight: bold;
}

.search-result-time {
	color: #666;
}

.search-result-responses {
	color: #444;
}

.search-no-results {
	padding: 15px;
	text-align: center;
	color: #666;
}

@media screen and (max-width: 600px) {
	.search-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.search-toolbar__actions {
		width: 100%;
		justify-content: flex-start;
	}

	.search-toolbar__actions .ifBtn {
		width: 100%;
		text-align: center;
	}
}

.usSurveyReportLink {
	font-size: 9px;
	color: red;
}

label {
	/* line-height: 20px; */
}

.nagalert {
	border: 1px solid #00bbff;
	background-color: #d2e1ff;
	width: 700px;
	min-height: 50px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 7px 0;
	margin: 10px auto;
}

.nagalert img {
	float: left;
	padding: 7px;
}

.nagalert p,
.nagalert ul {
	width: 630px;
	float: right;
	margin-right: 10px;
}

.nagalert a {
	color: #0085d7;
}

.notification {
	border: 1px solid #00bbff;
	background-color: #f0f5ff;
	width: 100%;
	min-height: 50px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	padding: 7px 0;
	margin: 10px auto;
	display: flex;
	flex-direction: row;
}

.notification-icon {
	padding: 7px;
	font-size: 40px;
	color: #00bbff;
}

.notification-title {
	font-size: 15px;
	font-weight: bold;
}

.searchnotices {
	padding-top: 10px;
}

#graphDownloadPanel {
	background-color: rgba(255, 255, 255, 0.2);
	/* border: #888888 1px solid; */
	border-radius: 3px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	height: 209px;
	width: 250px;
	position: absolute;
	top: 60px;
	right: 8%;
	box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	backdrop-filter: blur(10px);
}

#graphDownloadPanel p {
	padding: 0;
	margin: 10px;
	font-size: 14px;
	color: #222222;
}

#graphDownloadPanel a {
	/* width: 185px; */
	margin-left: 10px;
}

.reportLoadingSpinner {
	font-size: 80px;
	margin: 40px auto;
	text-align: center;
	color: #0C4C8A;
}

.loading_container {
	position: relative;
	height: 112px;
	margin: 30px auto;
}

.boxConnector {
	position: absolute;
	top: -8px;
	right: 30px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 8px solid #fff;
	filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.reportdownloadbutton {
	margin-right: 15px;
}

.usSurveyDeleteLink {
	color: red;
	font-size: 10px;
}

.usActionMeta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 6px;
}

.usActionBtn {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 10px;
	padding: 4px 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ifBtn.tiny.danger {
	background-color: #c0392b;
	border-color: #922b21;
	color: #fff;
}

.ifBtn.tiny.danger:hover {
	background-color: #a93226;
	border-color: #7b241c;
	color: #fff;
}

.usSelfDeleteCountdown {
	color: #95a5a6;
	font-size: 11px;
}

#chartcnt {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: 1600px;
	min-width: 750px;
	height: 450px;
	margin: 0 auto;
}

/* Standard chart container width for consistency across chart types */
.chartcnt-std {
	width: 90%;
	max-width: 1600px;
	min-width: 750px;
	margin: 0 auto;
	position: relative;
}

.metric-source {
	width: 90%;
	max-width: 1600px;
	min-width: 750px;
	margin: 0 auto;
	color: #666;
	font-size: 12px;
	text-align: right;
}

.chart-inline-download {
	text-align: right;
	margin-top: 10px;
	position: absolute;
	right: 20px;
	bottom: 20px;
}

.chartAndTableCnt {
	width: 100%;
	clear: both;
	position: relative;
}

.chartCol {
	/* flex-grow: 9; */
	/* flex-basis: 90%; */
	margin-right: 0px;
}

.tableCol {
	/* flex-grow: 1; */
	/* float: right; */
	/* width: 0px; */
	margin-left: -40px;
	position: fixed;
	right: 0px;
	top: 0px;
	z-index: 200;
	/* height: 100vh; */
	overflow-y: scroll;
	/* overflow-x: hidden; */
	/* background-color: white; */
	transform: translateX(calc(100% - 40px));
	transition: 0.3s ease-out;
	/* box-sizing: border-box; */
	padding-left: 40px;
}

.tableCol.show {
	/* width: auto; */
	transform: translateX(0%);
}

.togglestattable {
	padding: 0 auto;
	position: absolute;
	left: -70px;
	top: 40%;
	font-weight: bold;
	color: white;
	background: rgb(95, 181, 255);
	height: 40px;
	width: 180px;
	text-align: center;
	line-height: 30px;
	border-radius: 10px 10px 0px 0px;
	transform: rotate(-90deg);
	cursor: pointer;
	z-index: 999;
}

.stattable {
	background-color: #fffb;
	padding-top: 66px;
	/* padding-left: 20px;
	padding-right: 20px; */
	padding-bottom: 20px;
	border-left: rgb(95, 181, 255) 2px solid;
	-webkit-backdrop-filter: blur(5px);
	height: 100vh;
	overflow-y: scroll;
	box-sizing: border-box;
}

.stattable {
	position: relative;
}

.stattable td,
.stattable th {
	padding: 5px;
	margin: 5px;
}

.stattable th[scope="col"] {
	position: sticky;
	top: 0;
	padding: 10px;
	-webkit-backdrop-filter: blur(5px);
	background-color: #fffb;
}

.stattable caption {
	display: none;
}

/* .stattable table{
    margin: 0 auto;
} */

.stattable th {
	text-align: right;
}

@media (max-width: 1100px) {

	.pieLeftCol,
	.pieRightCol {
		width: 98%;
		float: none;
		display: block;
	}

	.filtersettingscontainer {
		width: 46%;
		float: left;
	}
}

@media (max-width: 768px) {
	.main.chartMain {
		padding-left: 12px;
		padding-right: 12px;
		box-sizing: border-box;
	}

	.main.chartMain .graph-header-flex,
	.main.chartMain .graphheader.graph-header-flex {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.main.chartMain .graph-header-row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.main.chartMain .graph-header-right {
		flex-wrap: wrap;
		width: 100%;
		justify-content: flex-start;
	}

	.main.chartMain .graph-header-right .ifBtn {
		font-size: 13px;
	}

	.main.chartMain .graph-header-left p {
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.main.chartMain .dropdownselector {
		font-size: 16px;
	}

	.main.chartMain #graphDownloadPanel {
		position: fixed;
		top: auto;
		bottom: 16px;
		left: 12px;
		right: 12px;
		width: auto;
		height: auto;
		max-height: calc(100vh - 96px);
		overflow-y: auto;
	}

	.main.chartMain .boxConnector {
		display: none;
	}

	.main.chartMain #chartcnt,
	.main.chartMain .chartcnt-std,
	.main.chartMain .metric-source {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.main.chartMain #chartcnt {
		height: auto;
		min-height: 280px;
		max-height: 520px;
	}

	.main.chartMain .metric-source {
		text-align: left;
		padding: 0 4px;
	}

	.main.chartMain .chart-mode-switcher {
		flex-wrap: wrap;
		width: 100%;
	}

	.main.chartMain .chart-mode-switcher .ifBtn {
		flex: 1 1 auto;
		text-align: center;
		padding: 8px;
		font-size: 12px;
	}

	.main.chartMain .tableCol {
		width: min(100vw, 360px);
		padding-left: 36px;
		transform: translateX(calc(100% - 36px));
	}

	.main.chartMain .togglestattable {
		left: -62px;
		width: 150px;
		font-size: 13px;
		line-height: 28px;
		height: 36px;
	}

	.main.chartMain .stattable {
		padding-top: 56px;
	}

	.main.chartMain .graphFilterInfo {
		padding: 0 4px;
		text-align: left;
	}

	.main.chartMain .graphFilterInfo ul {
		padding-left: 1.2em;
	}

	.main.chartMain .filtersettings {
		padding: 1em;
		margin: 10px 0;
	}

	.main.chartMain .filtersettingscontainer {
		width: 100%;
		float: none;
	}

	.main.chartMain .filtersettingscontainer select {
		max-width: 100%;
		width: 100%;
	}

	.main.chartMain .graphcontrolscontainer {
		padding: 0 4px;
	}

	.main.chartMain .showingncouncils {
		padding: 0 8px;
		font-size: 13px;
	}

	.main.chartMain .pieLeftCol,
	.main.chartMain .pieRightCol,
	.main.chartMain .barLeftCol,
	.main.chartMain .barRightCol,
	.main.chartMain .barCenterCol,
	.main.chartMain .pieCenterCol {
		width: 100%;
		float: none;
	}

	.main.chartMain .chart-inline-download {
		position: static;
		text-align: center;
		margin-top: 12px;
		padding: 0 8px 16px;
	}
}

@media (max-width: 768px) {
	.main.paramsMain {
		max-width: none;
		width: 100%;
		padding-left: 12px;
		padding-right: 12px;
		box-sizing: border-box;
	}

	.main.paramsMain #comparators,
	.main.paramsMain #selectors {
		float: none;
		width: 100%;
		box-sizing: border-box;
	}

	.main.paramsMain #comparators {
		padding-left: 0;
		padding-right: 0;
	}

	.main.paramsMain #selectors {
		position: static;
		left: auto;
		top: auto;
		width: 100%;
		max-width: none;
		margin-top: 1.5rem;
		padding: 1rem;
		box-shadow: none;
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		background-color: #f8f8f8;
	}

	.main.paramsMain form:has(#selectors) {
		display: flex;
		flex-direction: column;
	}

	.main.paramsMain form:has(#selectors) #selectors {
		order: -1;
		position: sticky;
		top: 64px;
		z-index: 15;
		margin: 0 0 1rem;
		max-height: calc(100vh - 64px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.main.paramsMain form:has(#selectors) #comparators,
	.main.paramsMain form:has(#selectors) > div:has(#tabs) {
		order: 0;
	}

	.main.paramsMain #selectors ul {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		list-style: none;
		margin: 0 0 1rem;
		padding: 0;
	}

	.main.paramsMain #selectors li {
		padding-bottom: 0;
	}

	.main.paramsMain #selectors .ifBtn,
	.main.paramsMain #selectors button.ifBtn {
		width: 100%;
		box-sizing: border-box;
		margin-bottom: 8px;
		text-align: center;
		justify-content: center;
	}

	.main.paramsMain #selectors .ifBtn.tiny {
		width: auto;
		margin-bottom: 0;
	}

	.main.paramsMain .graphparams-neighbour-panel {
		margin-top: 0.75rem;
		padding: 12px;
	}

	.main.paramsMain .orgNameAndSelectors,
	.main.paramsMain .orgGroupNameAndSelectors {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 6px 8px;
	}

	.main.paramsMain .graphCouncilsList .orgNameAndSelectors,
	.main.paramsMain #metrics .orgNameAndSelectors,
	.main.paramsMain .councilsList .orgNameAndSelectors,
	.main.paramsMain .reportcomparators .orgNameAndSelectors,
	.main.paramsMain #reportcomparators .orgNameAndSelectors {
		top: 64px;
	}

	.main.paramsMain .graphCouncilsList .orgGroupNameAndSelectors,
	.main.paramsMain #metrics .orgGroupNameAndSelectors,
	.main.paramsMain .councilsList .orgGroupNameAndSelectors,
	.main.paramsMain .reportcomparators .orgGroupNameAndSelectors,
	.main.paramsMain #reportcomparators .orgGroupNameAndSelectors {
		top: 108px;
	}

	.main.paramsMain #metrics h2,
	.main.paramsMain #metrics h3,
	.main.paramsMain .councilsList h2,
	.main.paramsMain .councilsList h3,
	.main.paramsMain .reportcomparators h2,
	.main.paramsMain .reportcomparators h3,
	.main.paramsMain .graphCouncilsList h2,
	.main.paramsMain .graphCouncilsList h3 {
		display: block;
		width: 100%;
		margin: 0;
		padding-right: 0;
	}

	.main.paramsMain .council-checkbox-label {
		align-items: flex-start;
		padding-top: 2px;
		padding-bottom: 2px;
	}

	.main.paramsMain .council-name {
		overflow-wrap: anywhere;
	}

	.main.paramsMain #tabs .ui-tabs-nav {
		top: 64px;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.main.paramsMain #tabs .ui-tabs-nav li {
		flex-shrink: 0;
	}

	.main.paramsMain #tabs .ui-tabs-nav li a {
		padding: 10px 14px;
		font-size: 13px;
		white-space: nowrap;
	}

	.main.paramsMain .options-container {
		padding: 12px 0;
	}

	.main.paramsMain .option-control select,
	.main.paramsMain .option-control input[type="text"],
	.main.paramsMain .option-control input[type="number"],
	.main.paramsMain .option-control textarea {
		max-width: none;
	}
}

@media (max-width: 1024px) {
	.current-user-name {
		display: none;
	}
}

.belowTable {
	display: none;
}



.tableCol::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 7px;
}

.tableCol::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0, 0, 0, .5);
	-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

#uschart {
	width: 100%;
	height: 300px;
}

#reportPreviewZoomControls {
	position: absolute;
	left: 120px;
	top: 14px;
	user-select: none;
}

#reportPreviewZoomControls .zoombutton {
	/* width: 20px;
	height: 20px;
	display: block;
	float: left;
	padding: 2px;
	margin-right: 5px; */
	user-select: none;
}

.zoombutton img {
	top: inherit;
	left: inherit;
}



#reportPreviewZoomOut,
#reportPreviewZoomIn {
	cursor: pointer;
}

#reportcontentsframe {
	background-color: #444;
	width: 300px;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	overflow-y: scroll;
}

.report-contents-list {
	padding-left: 10px;
	padding-top: 80px;
	padding-right: 10px;
	padding-bottom: 20px;
}

.report-contents-list li {
	list-style: none;
	font-weight: 600;
	margin-top: 10px;
}

.report-contents-list li a {
	text-decoration: none;
	color: #fff;
}

.report-contents-list li a:hover {
	text-decoration: underline;
}

.report-contents-list li li {
	margin-left: 10px;
	margin-top: 3px;
	font-weight: 400 !important;

}



.sqFormatList ul {
	display: none;
}

.expandselectable,
.downloadselectable {
	vertical-align: middle;
	width: 13px;
	cursor: pointer;
	display: inline-block;
	margin-left: 5px;
	text-align: center;
	text-decoration: none;
}

.bulkerrors {
	max-height: 500px;
	overflow: scroll;
	border: gray 1px solid;
	box-sizing: border-box;
	padding: 6px;
}

.bulkconfirmtablecnt {
	width: 100%;
	overflow: scroll;
	background-color: white;
}

.bulkconfirmtablecnt table td {
	border: 1px grey solid;
}

.bulkconfirmtablecnt table th {
	position: -webkit-sticky;
	top: 0;
}

.bulkconfirmexpl {
	width: 700px;
	margin: 0 auto;
	border: 6px black solid;
	border-radius: 10px;
	background-color: white;
	padding: 10px;

}

.bulkconfirmbuttonpanel {
	float: right;
}

.bulkconfirmbuttonpanel .formbutton {
	margin-top: 5px;

}

/*mini styles*/
body.mini {
	background-image: none !important;
	background-color: #313131 !important;
	padding-top: 15px;
}

body.mini .headerCnt {
	width: 100%;
	position: fixed;
	/* top: -1px; /* idk why  */
	left: 0px;
	height: 45px;
	background-color: black;
	z-index: 1000;
	box-shadow: 0px 0px 10px black;
}

body.mini .supportIcon {
	color: white;
}

body.mini .header {
	z-index: 1001;
	margin: 0 auto;
}

body.mini .header ul {
	top: 5px !important;
}

body.mini .main {
	margin-top: 45px !important;
	background-color: #313131 !important;
	padding: 0px !important;
	overflow: hidden;
}

body.mini img.logo {
	top: 1px !important;
}

body.mini .container {
	width: 100% !important;
}

body.mini .main {
	width: 100% !important;
	background-color: none !important;
	border: none !important;
	/* margin: 0 auto !important; */
	max-width: none;
}

body.mini .footertext {
	display: none;
}

body.mini .navbutton {
	background-image: none !important;
	background-color: #3a3a3a !important;
	text-shadow: none !important;
	border: 1px solid #606060 !important;
	color: #cccccc !important;
}

body.mini .currentuser {
	color: #bbbbbb;
}

body.mini .reportpreviewpage {
	background-color: white;
	margin-bottom: 8px;
	margin-left: auto !important;
	margin-right: auto !important;
	overflow: hidden;
}

body.mini .reportpreviewloadingpage {
	width: 680px;
	height: 961px;
	padding: 25px;
	border: 1px solid #000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 16px;
}

body.mini .devinfo {
	color: white;
}

body.mini #reportpreviewcontainer {
	min-height: calc(100vh - 45px);
	position: relative;
}

body.mini #reportcontentsframe {
	width: 300px;
	min-width: 300px;
	overflow-y: auto;
	padding: 15px;
	height: calc(100vh - 45px);
	position: fixed;
	top: 45px;
	left: 0;
	z-index: 10;
}

body.mini #reportpreviewframe {
	overflow-y: visible;
	height: auto;
	min-height: 100vh;
	margin-left: 300px;
	width: calc(100% - 300px);
}

/* Style the raw HTML output for preview - back to simple approach */
body.mini .title-page {
	background-color: white;
	margin-bottom: 8px;
	margin-left: auto !important;
	margin-right: auto !important;
	overflow: hidden;
	font-family: Lato;
	line-height: 1;
	width: 680px;
	height: 961px;
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 25px;
	border: black 1px solid;
	position: relative;
}

body.mini .toc {
	background-color: white;
	margin-bottom: 8px;
	margin-left: auto !important;
	margin-right: auto !important;
	overflow: hidden;
	font-family: Lato;
	line-height: 1;
	width: 680px;
	height: 961px;
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 25px;
	border: black 1px solid;
	position: relative;
}

body.mini .reportpage {
	background-color: white;
	margin-bottom: 8px;
	margin-left: auto !important;
	margin-right: auto !important;
	overflow: hidden;
	font-family: Lato;
	line-height: 1;
	width: 680px;
	height: 961px;
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 25px;
	border: black 1px solid;
	position: relative;
}

/* ToC sidebar styling */
body.mini .report-contents-wrapper h2 {
	font-size: 16px;
	margin: 0 0 10px 0;
	color: #fff;
}

body.mini .report-contents-wrapper ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

body.mini .report-contents-wrapper li {
	margin: 4px 0;
}

body.mini .report-contents-wrapper a {
	color: #66b3ff;
	text-decoration: none;
	display: block;
	padding: 4px 8px;
	border-radius: 3px;
	transition: background-color 0.2s ease;
}

body.mini .report-contents-wrapper a:hover {
	background-color: #555;
	color: #fff;
}

body.mini .report-contents-wrapper li strong {
	color: #ccc;
	font-weight: bold;
	margin-top: 8px;
	display: block;
}

body.mini .reportpreviewpage textarea {
	line-height: 1;
}

body.mini #reportpreviewloading {
	text-align: center;
	margin: 150px auto;
}

.mini_spinner {
	height: 13px;
	width: auto;
}

body.mini .reportpreviewanchor {
	position: absolute;
	top: 0px;
	left: 0px;
}

body.mini .reportpreviewmetricpagecontrols {
	display: block;
	width: 100px;
	height: 90px;
	background-color: #565656;
	position: absolute;
	right: -101px;
	top: 50px;
	z-index: 900;
	border-radius: 0px 15px 15px 0px;
	border: 1px solid #777777;
	border-left: none;
	font-family: sans-serif !important;
}

body.mini .reportpreviewmetricpagecontrols label {
	width: 90px;
	color: #d2d2d2;
	display: block;
	text-align: center;
	margin: 3px auto;
}

body.mini .includepagecheckbox {
	width: 30px;
	height: 30px;
	margin: 0 auto;
	display: block;
}

body.mini .saveannotation {
	display: block;
}

body.mini .navbutton.donebutton {
	background-color: #477ff8 !important;
	color: white !important;

}

#designcover {
	background-image: url('../cover.jpg');
	width: 100%;
	height: 1400px;
	position: fixed;
	background-position: center top;
	display: none;
}

.superuserEditBtn img {
	transform: rotate(0deg);
	transition: 0.3s;
}

.superuserEditBtn:hover img {
	transform: rotate(60deg);
}

table.responseIndex tr:nth-child(odd) {
	background-color: #eee;
}


.radio {
	/* margin: 16px 0; */
	display: block;
	cursor: pointer;
	clear: both;
	margin-top: 5px;
}

.radio input {
	display: none;
}

.radio input+span {
	line-height: 20px;
	height: 20px;
	padding-left: 20px;
	display: block;
	position: relative;
}

.radio input+span:not(:empty) {
	padding-left: 28px;
}

.radio input+span:before,
.radio input+span:after {
	content: '';
	width: 20px;
	height: 20px;
	display: block;
	border-radius: 50%;
	left: 0;
	top: 0;
	position: absolute;
}

.radio input+span:before {
	background: #d1d7e3;
	transition: background 0.2s ease, transform 0.4s ease-in-out;
}

.radio input+span:after {
	background: #fff;
	transform: scale(0.78);
	transition: transform 0.6s ease-in-out;
}

.radio input:checked+span:before {
	transform: scale(1.04);
	background: #5d9bfb;
}

.radio input:checked+span:after {
	transform: scale(0.4);
	transition: transform 0.3s ease;
}

.radio:hover input+span:before {
	transform: scale(0.92);
}

.radio:hover input+span:after {
	transform: scale(0.74);
}

.radio:hover input:checked+span:after {
	transform: scale(0.4);
}

.ifTitle {
	border: none;
	border-bottom: 2px solid #4297d7;
	background: transparent;
	color: #000;
	font-weight: bold;
	font-size: 16px;
	padding: 5px 0px;
	margin-left: -9px;
}

.tableHeader td {
	font-weight: bold;
	;
	background-color: #ccc;
}



#metrics h2,
.councilsList h2,
.reportcomparators h2 {
	display: inline-block;
	padding-bottom: 2px;
	font-size: 18px;
	padding-right: 8px;
}

#metrics h3,
.councilsList h3,
.reportcomparators h2 {
	display: inline-block;
	font-size: 14px;
	padding-right: 8px;

}

/* Organisation Headers */
.councilsList .orgNameAndSelectors,
#metrics .orgNameAndSelectors,
.reportcomparators .orgNameAndSelectors,
.graphCouncilsList .orgNameAndSelectors {
	position: sticky;
	top: 105px;
	background: white;
	padding: 6px 0 6px;
	z-index: 10;
	width: 100%;
	display: block;
}

.graphCouncilsList .orgNameAndSelectors {
	top: 64px !important;
}

/* Sub-group Headers */
.councilsList .orgGroupNameAndSelectors,
#metrics .orgGroupNameAndSelectors,
.reportcomparators .orgGroupNameAndSelectors,
.graphCouncilsList .orgGroupNameAndSelectors {
	position: sticky;
	top: 145px;
	background: white;
	padding: 8px 0;
	z-index: 9;
	width: 100%;
	display: block;
}

.graphCouncilsList .orgGroupNameAndSelectors {
	top: 105px;
}

.actionNote {
	font-size: 13px;
}

#tabs .ui-tabs-nav {
	display: flex;
	justify-content: start;
	position: sticky;
	top: 66px;
	z-index: 20;
	background: white;
	border: none;
	border-bottom: 2px solid #e0e0e0;
	padding: 0;
	border-radius: 0;
}

#tabs .ui-tabs-nav li {
	background: white;
	border: none;
	border-radius: 0;
	margin: 0 6px 0 0;
}

#tabs .ui-tabs-nav li a {
	color: #666;
	font-weight: 600;
	font-size: 14px;
	padding: 12px 16px;
	/* transition: all 0.3s ease; */
}

#tabs .ui-tabs-nav li.ui-tabs-active {
	background: white;
	margin-bottom: 0;
	padding-bottom: 0;
}

#tabs .ui-tabs-nav li.ui-tabs-active a {
	color: #4297d7;
	border-bottom: 2px solid #4297d7;
	margin-bottom: -2px;
}

#tabs .ui-tabs-nav li a:hover {
	color: #519fdc;
}

/* Add icons to the tabs */
#metricsTab a:before {
	content: "\f080";
	/* Chart icon */
	font-family: "Font Awesome 6 Pro";
	margin-right: 8px;
	font-weight: 900;
}

#comparatorsTab a:before {
	content: "\f0c0";
	/* Users icon */
	font-family: "Font Awesome 6 Pro";
	margin-right: 8px;
	font-weight: 900;
}

.mapContainer {
	width: 100%;
	height: calc(100vh - 70px);
	background-color: white;
}

sup {
	vertical-align: super;
	font-size: 8px;
	margin-left: 2px;
}

.userValue,
.expectedValue {
	width: 20%;
	display: inline-block;
}

#preview h3 {
	font-size: 16px;
}

input.otp {
	width: 78px;
	font-size: 20px;
}

.graphgenerationpanel .tabs {
	border: 0px;
	margin-top: -40px;
}

.graphgenerationpanel .tabs .ui-tabs-nav {
	border: 0px;
	background: transparent;
}

.graphgenerationpanel .tabs .ui-tabs-nav li {
	float: right;
}

.swishy-tabs span.item {
	display: inline-block;
	transform: scale(0.8);
	transition: 0.2s all ease-out;
	opacity: 0.7;
	text-decoration: underline;
}

.swishy-tabs span.item.active {
	text-decoration: none;
}

.swishy-tabs span.item:hover {
	transform: scale(0.85);
	opacity: 0.7;
}

.swishy-tabs span.active,
.swishy-tabs span.active:hover {
	transform: scale(1);
	opacity: 1;
}

.swishy-tab {
	display: none;
}

.swishy-tab.active {
	display: block;
}

.half-height-minus-header {
	clear: both;
}

.inlinelogo {
	display: inline-block;
	vertical-align: middle;
	position: relative;
	height: 33px;
	margin-bottom: 8px;
	margin-right: 2px;
	/* padding-bottom: -8px; */
	/* height: 20px; */
}

#breadcrumbs .inlinelogo {
	margin-bottom: 12px;
	margin-top: 0px;
}

.questionControls {
	float: right;
	font-size: 20px;
}

.questionControls a {
	color: #000;
	cursor: pointer;
	padding: 5px;
}

.questionControls i {
	transition: 0.2s;
}

.questionControls .disabled i {
	color: #ccc;
	cursor: default;
}

.removeOptionBtn {
	color: #000;
	margin-left: 3px;
	cursor: pointer;
}

.optionValueContainer {
	display: flex;
	align-items: center;
	gap: 10px;
}

.usOptionPanel .optionValue {
	/* display: block; */
}

.toggleUsstattable {
	cursor: pointer;
}

.usQuestionAnswer {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: #ccc 1px solid;
}

.usQuestionAnswer:last-child {
	border-bottom: none;
	padding-bottom: 0px;
}

.usQuestionAnswer h3 {
	font-size: 18px;
}

.questionTitle {
	width: 300px;
}

.usstattable {
	margin: 10px auto 20px;
}

.usstattable td {
	border: 1px solid #ccc;
	min-width: 200px;
}

.numericInput {
	background-image: url('../images/icon-input-numeric-light.svg');
	background-repeat: no-repeat;
	background-position: right 5px center;
	padding: 3px 30px 3px 3px !important;
	width: 100px !important;
}

.textualInput {
	background-image: url('../images/icon-input-text-light.svg');
	background-repeat: no-repeat;
	background-position: right 5px center;
	padding: 3px 30px 3px 3px !important;
	width: 300px !important;
}

#dashboardControls {
	position: absolute;
	top: 17px;
	left: 58%;
}

.dashboardAddWrapper {
	position: relative;
}

.dashboardAddWrapper a {
	cursor: pointer;
}

/* .aiGen p {
	display: none;
}

.aiGen p:first-child {
	display: block;
} */

.aiSpinner {
	font-size: 30px;
	display: none;
}

i.fa-spinner-third {
	animation-iteration-count: infinite !important;

}


.expressionEditor {
	width: 100%;
	height: 100px;
	border: 1px black solid;
	padding: 6px;
	font-size: 18px;
}

.fa-no-padding {
	padding: 0 !important;
}

.online-form-validation-errors {
	display: none;
	background-color: rgba(255, 213, 213, 0.733);
	padding: 10px;
	border: 1px solid rgba(254, 189, 189, 0.733);
	border-radius: 5px;
	margin: 10px 0;
}

.addMetricIcon {
	border-radius: 100px !important;
	width: 20px;
	text-align: center;
	/* height: 30px; */
}

.full-member-icon {
	color: #0085d7;
}

.half-member-icon {
	color: #f0ad4e;
}

/* Users admin (orgadmin) */
.main.usersAdminMain {
	max-width: 1400px;
	width: 100%;
	box-sizing: border-box;
}

.users-admin {
	max-width: none;
	width: 100%;
}

.users-admin__toolbar {
	margin-bottom: 16px;
}

.users-admin__search {
	margin-bottom: 8px;
}

.users-admin__summary {
	margin: 0 0 16px;
	color: #64748b;
	font-size: 14px;
}

.users-admin__empty {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	margin-bottom: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
	color: #475569;
}

.users-admin__empty[hidden] {
	display: none !important;
}

.users-admin__council-header[hidden],
.users-admin__panel[hidden],
.users-admin--searching .users-admin__accordion.ui-accordion .ui-accordion-header[hidden],
.users-admin--searching .users-admin__accordion.ui-accordion .ui-accordion-content[hidden] {
	display: none !important;
}

.users-admin--searching .users-admin__accordion.ui-accordion .ui-accordion-content:not([hidden]) {
	display: block !important;
	height: auto !important;
}

.users-admin__council-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.users-admin__council-count {
	font-weight: 500;
	color: #64748b;
}

.users-admin__table-wrap {
	margin-bottom: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
}

.users-admin__table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 13px;
}

.users-admin__table thead th {
	padding: 10px 8px;
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #475569;
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
	white-space: normal;
	line-height: 1.3;
	vertical-align: bottom;
}

.users-admin__table thead th:nth-child(1) {
	width: 14%;
}

.users-admin__table thead th:nth-child(2) {
	width: 30%;
}

.users-admin__table thead th:nth-child(3) {
	width: 12%;
}

.users-admin__table thead th:nth-child(4),
.users-admin__table thead th:nth-child(5) {
	width: 6%;
	text-align: center;
}

.users-admin__table thead th:nth-child(6) {
	width: 8%;
	text-align: center;
}

.users-admin__table thead th:nth-child(7) {
	width: 16%;
}

.users-admin__table thead th:nth-child(8),
.users-admin__table thead th.users-admin__actions-col {
	width: 8%;
	text-align: center;
}

.users-admin__table tbody td {
	padding: 10px 8px;
	border-bottom: 1px solid #eef2f7;
	vertical-align: middle;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.users-admin__table tbody td:nth-child(4),
.users-admin__table tbody td:nth-child(5),
.users-admin__table tbody td:nth-child(6),
.users-admin__table tbody td:nth-child(8) {
	text-align: center;
}

.users-admin__table tbody tr:last-child td {
	border-bottom: none;
}

.users-admin__row:hover {
	background: #f8fafc;
}

.users-admin__row[hidden] {
	display: none;
}

.users-admin__name strong {
	color: #1e293b;
}

.users-admin__rank {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
	background: #e2e8f0;
	color: #334155;
}

.users-admin__rank--superuser {
	background: #dbeafe;
	color: #1d4ed8;
}

.users-admin__rank--org-admin {
	background: #ede9fe;
	color: #6d28d9;
}

.users-admin__status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	font-size: 11px;
}

.users-admin__status-pill--yes {
	background: #dcfce7;
	color: #15803d;
}

.users-admin__status-pill--no {
	background: #fee2e2;
	color: #b91c1c;
}

.users-admin__actions-col {
	text-align: center;
}

.users-admin__locked-cell {
	display: block;
	text-align: center;
}

.users-admin__panel-actions {
	margin-top: 4px;
}

.users-admin__panel-actions[hidden],
.users-admin__table-wrap[hidden],
.users-admin__no-users[hidden] {
	display: none !important;
}

.users-admin__no-users {
	margin: 0 0 12px;
	color: #64748b;
}

button.search-toolbar__clear {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: inherit;
}

button.search-toolbar__clear:focus-visible {
	outline: 2px solid #008AFF;
	outline-offset: 2px;
}

.surveyList.action-required {
	border: 2px solid #0085d7;
	padding: 10px;
	padding-bottom: 0px;
	background-color: #dbe9ff;
	margin-left: -10px;
	margin-top: 20px;
	margin-bottom: 10px;
	border-radius: 5px;
}

.surveyList.action-required li.attention {
	/* border-bottom: 1px solid red; */
}

.surveyList.action-required h3 {
	color: rgb(168, 0, 0);
}

.attention-text {
	color: rgb(168, 0, 0);
}

.mid-attention-text {
	color: rgb(0, 115, 168);
	font-size: 14px;
}

.dashboardsList h3 {
	font-size: 18px;
}

.dashboardsList p {
	font-size: 14px;
}

.copyField {
	background-color: #f0f0f0;
	padding: 5px;
	border-radius: 5px;
	border: 1px solid #ccc;
}

/* for print */
@media print {
	.printOnly {
		display: inherit;
	}

	.noPrint {
		display: none !important;
	}

}



/* @media (prefers-color-scheme: dark) {
	body{
		background-color: #222;
		color: #eee;
	}

	a{
		color: white;
	}

	.ui-accordion-header{
		background-color: #1f1f1f;
		color: #eee;
	}

	.ui-widget-content{
		background-color: #313131;
		color: #eee;
	}

	a.ifBtn.hollow{
		color: #eee;
	}

	.headerCnt{
		background-color: rgba(30, 30, 30, 0.8);
	}

	.reformed-form fieldset{
		background: #222;
	}

	.reformed-form legend{
		color: #eee;
	}

	#footer{
		background-color: #0f0f0f;
	}

	#selectors{
		background-color: #1e1e1e;
	}

	.supportIcon{
		color: white;
	}

	ul.surveyList p{
		color: #eee;
	}
} */


/* 
@media (max-width: 700px){
	div.main{
		min-width: unset;
		width: 100%;
	}

	.header, #footer, #footerInner{
		min-width: unset;
	}
} */

/* Notification System */
#notification-system {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	max-width: 800px;
	z-index: 999999;
}

/* Grid Card Layout - Reusable component for admin pages and file lists */
.if-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
}

.if-grid-item {
	flex: 0 0 calc(50% - 10px);
	background: #f5f7fa;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
}

.if-grid-item.if-grid-item-full-width {
	flex: 0 0 calc(100% - 10px);
}

.if-grid-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.if-grid-icon {
	font-size: 36px;
	margin-right: 15px;
	color: #30afff;
	width: 40px;
	text-align: center;
}

.if-grid-content {
	flex: 1;
}

.if-grid-content h3 {
	margin: 0 0 5px 0;
	font-size: 18px;
}

.if-grid-content p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.if-section-title {
	margin-top: 30px;
	margin-bottom: 10px;
	font-size: 24px;
	color: #333;
}

#notification-container {
	display: none;
	background-color: #4a90e2;
	color: white;
	padding: 15px 20px;
	margin: 0 auto;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	position: relative;
	width: fit-content;
	min-width: 200px;
}

#notification-container-inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

#notification-icon {
	font-size: 24px;
}

/* Color scheme classes */
#notification-container.default {
	background-color: #4a90e2;
	color: white;
}

#notification-container.success {
	background-color: #28a745;
	color: white;
}

#notification-container.error {
	background-color: #dc3545;
	color: white;
}

#notification-container.active {
	display: block;
}

#notification-message {
	font-size: 14px;
	text-align: left;
}

#notification-message a {
	color: white;
	text-decoration: underline;
	margin-right: 15px;
}

#notification-message i {
	margin-right: 10px;
}

#notification-close {
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	margin: 0;
	line-height: 1;
	margin-left: auto;
}

/* End notification system styles */

/* Updated notification styles */
#notification-container.default {
	background-color: #4a90e2;
	color: white;
}

#notification-container.success {
	background-color: #28a745;
	color: white;
}

#notification-container.error {
	background-color: #dc3545;
	color: white;
}

#notification-message i {
	margin-right: 10px;
}

/* FontAwesome Checkboxes */
.council-checkbox-wrapper {
	padding: 0px 0;
	margin-bottom: 5px;
}

.council-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	border-radius: 4px;
	margin: 7px 0px;
	transition: background-color 0.2s;
	position: relative;
	padding-left: 34px;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.council-checkbox {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.council-checkbox-label::before {
	content: "\f0c8";
	/* fa-square */
	font-family: "Font Awesome 6 Pro", "Font Awesome 5 Free";
	font-weight: 400;
	color: rgba(0, 0, 0, 0.3);
	font-size: 22px;
	width: 22px;
	height: 22px;
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
}

.council-checkbox:checked+.council-checkbox-label::before {
	content: "\f14a";
	/* fa-check-square */
	font-weight: 900;
	color: #30afff;
}

/* Focus ring for keyboard navigation on custom checkboxes */
.council-checkbox:focus-visible+.council-checkbox-label {
	outline: 2px solid #008AFF;
	outline-offset: 2px;
	border-radius: 3px;
}

.council-name {
	font-size: 14px;
	line-height: 1.2;
}

.comparator-icon {
	/* display: none; */
	font-size: 14px;
	padding-left: 5px;
	color: #aaa;
}

.comparator-icon .fas.fa-star {
	color: #f5a623; /* Gold color for close statistical neighbours */
}

.comparator-icon .far.fa-star {
	color: #888; /* Grey for regular statistical neighbours */
}

/* Neighbour icons hidden by default, shown when section is expanded */
.comparator-icon.stat-neighbour-icon,
.comparator-icon.geo-neighbour-icon {
	display: none;
}
.show-stat-neighbours .stat-neighbour-icon,
.show-geo-neighbours .geo-neighbour-icon {
	display: inline;
}

/* Graph params: neighbour tools below primary selectors + View Chart */
.graphparams-neighbour-panel {
	margin-top: 1.25rem;
	padding: 16px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fafbfc;
	max-width: 100%;
	box-sizing: border-box;
}
.graphparams-neighbour-panel .neighbour-selector {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.graphparams-neighbour-panel .neighbour-selector + .neighbour-selector {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e5e7eb;
}

/* Collapsible neighbour section in sidebar */
.neighbour-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
	padding: 6px 0;
}
.neighbour-section-header h4 {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}
.neighbour-section-header .chevron {
	font-size: 10px;
	color: #9ca3af;
	transition: transform 0.2s ease;
}
.neighbour-section-header.expanded .chevron {
	transform: rotate(90deg);
}
.neighbour-section-body {
	display: none;
	padding-top: 8px;
}
.neighbour-section-header.expanded + .neighbour-section-body {
	display: block;
}

/* Neighbour panel action rows: .ifBtn.tiny uses a fixed 20px height globally — allow multi-line labels */
.neighbour-section-body .neighbour-panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
	justify-content: flex-start;
	margin-bottom: 8px;
}
.neighbour-section-body .neighbour-panel-actions:last-child {
	margin-bottom: 0;
}
.neighbour-section-body .neighbour-panel-actions > .ifBtn.tiny {
	flex: 1 1 0;
	min-width: min(100%, 8rem);
	height: auto;
	min-height: 2.25rem;
	line-height: 1.35;
	padding: 8px 10px;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	box-sizing: border-box;
	white-space: normal;
	word-break: break-word;
	hyphens: auto;
}
.neighbour-section-body .neighbour-panel-actions > .ifBtn.tiny i {
	flex-shrink: 0;
	line-height: 1;
	padding-right: 6px;
	padding-left: 0;
	font-size: 12px;
	vertical-align: middle;
}

.neighbour-model-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.neighbour-model-toolbar select#neighbour-model-select {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	padding: 4px 6px;
}
.neighbour-model-toolbar-label {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	color: #6b7280;
}
.neighbour-models-settings-cog {
	font-size: 11px;
	color: #6b7280;
	text-decoration: none;
	flex-shrink: 0;
	line-height: 1;
}
.neighbour-models-settings-cog:hover {
	color: #374151;
}

.ifBtn.disabled,
.ifBtn.hollow.disabled,
.ifBtn[disabled],
.ifBtn.hollow[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}


/* AI Insights */
/* Main Panel Styles */
.ai-insights-panel {
	margin-top: 20px;
	background: linear-gradient(135deg, #ffffff 0%, #f9fbff 100%);
	border-radius: 10px;
	box-shadow: 0 4px 5px rgba(102, 126, 234, 0.15);
	/* border: 1px solid rgba(102, 126, 234, 0.2); */
	overflow: hidden;	
}

.ai-insights-panel.ai-insights-compact {
	margin-top: 15px;
	box-shadow: 0 3px 10px rgba(102, 126, 234, 0.12);
}

/* Header Styles */
.ai-insights-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 7px;
	padding-bottom: 5px;
	padding-left: 17px;
	padding-right: 7px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	background: linear-gradient(135deg, #8550ff 0%, #00a6ff 100%);
}

.ai-insights-title {
	display: flex;
	align-items: center;
	gap: 12px;
	color: white;
	font-size: 16px;
	font-weight: 600;
}

.ai-insights-logo {
	height: 24px;
	width: auto;
	filter: brightness(0) invert(1);
}

.ai-insights-close {
	background: rgba(255, 255, 255, 0);
	color: white;
	border: none;
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.ai-insights-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

/* Body Content */
.ai-insights-body {
	padding: 20px;
	min-height: 60px;
	font-size: 15px;
	line-height: 1.6;
	color: #2c3e50;
	background: white;
}

.ai-insights-compact .ai-insights-body {
	padding: 15px;
	font-size: 14px;
}

/* Loading Animation */
.ai-insights-loading {
	text-align: center;
	padding: 20px;
}

.ai-thinking-dots {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
}

.ai-thinking-dot {
	width: 10px;
	height: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	animation: thinking 1.4s infinite ease-in-out both;
}

.ai-thinking-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.ai-thinking-dot:nth-child(2) {
	animation-delay: -0.16s;
}

.ai-thinking-dot:nth-child(3) {
	animation-delay: 0;
}

@keyframes thinking {

	0%,
	80%,
	100% {
		transform: scale(0.8);
		opacity: 0.5;
	}

	40% {
		transform: scale(1.2);
		opacity: 1;
	}
}

.ai-loading-text {
	color: #666;
	font-style: italic;
	font-size: 14px;
}

/* Error State */
.ai-insights-error {
	color: #e74c3c;
	text-align: center;
	padding: 20px;
}

.ai-insights-error i {
	font-size: 24px;
	display: block;
	margin-bottom: 10px;
}

/* Feedback Section */
.ai-insights-feedback {
	padding: 15px 20px;
	background: #f8f9fa;
	border-top: 1px solid #e0e6ed;
}

.ai-feedback-container {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.ai-feedback-label {
	color: #666;
	font-size: 13px;
	font-weight: 500;
}

.ai-feedback-buttons {
	display: flex;
	gap: 8px;
}

.ai-feedback-btn {
	padding: 5px 12px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #444;
}

.ai-feedback-btn:hover {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-color: transparent;
	transform: translateY(-1px);
}

.ai-feedback-thanks {
	color: #27ae60;
	font-size: 13px;
	font-style: italic;
}

/* Disclaimer */
.ai-insights-disclaimer {
	padding: 12px 0px 0px;
	/* background: #fff9e6; */
	/* border-top: 1px solid #f0e0b3; */
	font-size: 12px;
	color: #444;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ai-insights-disclaimer i {
	flex-shrink: 0;
	margin-top: 2px;
}

/* Sparkle Button Styles */
.ai-sparkle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 6px;
	color: white;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-sparkle-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.ai-insights-panel {
		margin: 15px 0;
		border-radius: 0;
	}

	.ai-feedback-container {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* Trends & Insights callouts */
.trends-insights-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.trends-highlight-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #d1ecff;
	color: #005b8a;
	padding: 2px 10px;
	border-radius: 999px;
	border: 1px solid rgba(0, 133, 215, 0.35);
	font-weight: 600;
	white-space: nowrap;
}

.trends-insights-callout {
	animation: trendsHeaderPulse 1s ease-in-out 6;
}

@keyframes trendsHeaderPulse {
	0% {
		color: inherit;
		text-shadow: none;
	}
	50% {
		color: #0085d7;
		text-shadow: 0 0 8px rgba(0, 133, 215, 0.55);
	}
	100% {
		color: inherit;
		text-shadow: none;
	}
}

/* Trends and Insights */
/* Header Section */
.ms-header-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e0e6ed;
    padding: 24px 20px;
    margin-bottom: 20px;
}

.ms-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.ms-main-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.ms-main-title i {
    margin-right: 10px;
    color: #3498db;
}

.ms-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.ms-period-arrow {
    color: #95a5a6;
    font-size: 12px;
    line-height: 1;
}

.ms-period-badge {
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-weight: 500;
    color: #34495e;
}

.ms-divider {
    color: #ccc;
}

.ms-council-name {
    font-weight: 500;
    color: #2c3e50;
}

/* Main Container */
.ms-main-container {
    padding: 0 20px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Tabs */
.ms-tabs-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ms-tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e6ed;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ms-tab-nav li {
    /* flex: 1; */
}

.ms-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.ms-tab-link:hover {
    color: #3498db;
    background: #f8f9fa;
}

.ui-tabs-active .ms-tab-link {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Tab Content */
.ms-tab-content {
    padding: 24px;
}

.ms-section-header {
    margin-bottom: 20px;
}

.ms-section-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.ms-comparator-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #1976d2;
}

/* Data Table */
.ms-data-table-wrapper {
    overflow-x: auto;
}

.ms-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
	position: relative;
}

.ms-data-table thead th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e6ed;
}

.ms-data-row {
    transition: background 0.2s ease;
}

.ms-data-row:hover {
    background: #f8f9fa;
}

.ms-data-row td {
    padding: 14px 16px;
    border-bottom: 1px solid #e0e6ed;
    vertical-align: middle;
}

.ms-metric-col {
    min-width: 200px;
}

.ms-metric-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}
.ms-metric-category {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.ms-metric-meta { margin-top: 4px; }
.ms-category-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 12px;
    background: #eef2f7;
    color: #4b5b6b;
}

.ms-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.ms-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 500;
    border-radius: 3px;
    background: #ebf5fb;
    color: #2980b9;
    letter-spacing: 0.01em;
    line-height: 1.4;
    white-space: nowrap;
}
.ms-filter-tag i {
    font-size: 8px;
    opacity: 0.6;
}

.ms-change-col {
    min-width: 140px;
}

.ms-change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.ms-change-indicator i {
    font-size: 12px;
}

.ms-trend-up {
    color: #0072B2;
}

.ms-trend-down {
    color: #D97706;
}

.ms-trend-neutral {
    color: #7f8c8d;
}

.ms-percent-col {
    min-width: 100px;
}

.ms-percent-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ms-percent-badge.ms-trend-up {
    background: #BFE3F5;
    color: #005282;
}

.ms-percent-badge.ms-trend-down {
    background: #FFE0A3;
    color: #8A5500;
}

.ms-percent-badge.ms-trend-neutral {
    background: #e2e3e5;
    color: #383d41;
}

.ms-value-col {
    min-width: 120px;
    position: relative;
}

.ms-value-current {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: inline-block;
}

.ms-value-prev {
    color: #7f8c8d;
    font-size: 14px;
}

.ms-value-predicted {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
}

.ms-trend-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.ms-trend-meta span {
    font-size: 10.5px;
    color: #95a5a6;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ms-trend-meta i {
    font-size: 9px;
}

.ms-anomaly-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ms-anomaly-badge.ms-trend-up {
    background: #BFE3F5;
    color: #005282;
}
.ms-anomaly-badge.ms-trend-down {
    background: #FFE0A3;
    color: #8A5500;
}
.ms-anomaly-badge.ms-trend-neutral {
    background: #e2e3e5;
    color: #383d41;
}

/* AI Sparkle Button - now uses ai-sparkle-btn from plugin */
.ai-sparkle-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.ai-sparkle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* AI Panel - now handled by unified plugin */

/* Empty State */
.ms-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.ms-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ms-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* AI Row Styles - keep row unstyled; panel carries styling */
.ms-ai-row td { padding: 0 !important; }
.ms-ai-row .ms-ai-container {  }

.ms-ai-container {
	margin: 5px 10px 20px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ms-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ms-tab-nav {
        flex-direction: column;
    }
    
    .ms-tab-link {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .ui-tabs-active .ms-tab-link {
        border-left-color: #3498db;
        border-bottom-color: transparent;
    }
    
    .ms-data-table {
        font-size: 12px;
    }
    
    .ms-data-table thead th,
    .ms-data-row td {
        padding: 8px 12px;
    }
}




/* Trends and Insights Widget */
.ms-widget-container {

}
.ms-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e6ed;
}
.ms-widget-title {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ms-widget-title i {
	color: #3498db;
}
.ms-widget-periods {
	font-size: 13px;
	color: #7f8c8d;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ms-widget-periods .ms-period-arrow {
	font-size: 11px;
}
.ms-widget-period {
	background: #fff;
	padding: 3px 10px;
	border-radius: 15px;
	border: 1px solid #ddd;
	font-weight: 500;
}
.ms-widget-content {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}
.ms-widget-section {
	flex: 1;
	min-width: 280px;
}
.ms-widget-section-title {
	font-size: 14px;
	font-weight: 600;
	color: #34495e;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ms-widget-comparator-note {
	font-size: 11px;
	color: #95a5a6;
	font-weight: normal;
	margin-left: 5px;
}
.ms-widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.ms-widget-item {
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e0e6ed;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.ms-widget-metric {
	font-size: 13px;
	color: #2c3e50;
	font-weight: 500;
	flex: 1;
}
.ms-widget-labels { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ms-widget-labels .ms-filter-tags { margin-top: 2px; }
.ms-widget-labels .ms-filter-tag { font-size: 9.5px; padding: 1px 6px; }
.ms-widget-change {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ms-widget-value {
	font-weight: 600;
	font-size: 13px;
}
.ms-widget-percent {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 12px;
	font-weight: 600;
}
.ms-positive { color: #0072B2; }
.ms-positive .ms-widget-percent { background: #BFE3F5; color: #005282; }
.ms-negative { color: #D97706; }
.ms-negative .ms-widget-percent { background: #FFE0A3; color: #8A5500; }
.ms-neutral { color: #7f8c8d; }
.ms-neutral .ms-widget-percent { background: #e2e3e5; color: #383d41; }
.ms-widget-sparkle {
	padding: 3px 6px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 4px;
	color: white;
	cursor: pointer;
	font-size: 10px;
	transition: all 0.3s ease;
	margin-left: 8px;
}
.ms-widget-sparkle:hover {
	transform: scale(1.1);
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}
.ms-widget-footer {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #e0e6ed;
	display: flex;
	justify-content: center;
}
.ms-widget-empty {
	text-align: center;
	padding: 20px;
	color: #95a5a6;
	font-size: 13px;
}

.kbcontent ul li, .aiGen ul li {
	list-style-type: disc;
	list-style-position: inside;
}

.kbcontent ol li, .aiGen ol li {
	list-style-type: decimal;
	list-style-position: inside;
}

.aiGen p {
	color: black;
}

.aiGen h3 {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 12px;
}

.aiGen h4 {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
}

#usConfirmPanel {
	font-size: 14px;
	background: #fff;
	border: 1px solid #e0e6ed;
	border-radius: 10px;
	padding: 24px 28px;
	margin-top: 30px;
}

.us-confirm-panel .us-confirm-header h3 {
	margin: 0 0 6px 0;
	font-size: 20px;
	color: #1f2a37;
}

.us-confirm-panel .us-confirm-header p {
	margin: 0 0 18px 0;
	color: #4a5568;
}

.us-confirm-warning {
	background: #fff6e5;
	border-left: 4px solid #f5a623;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-weight: 600;
	color: #7a4c00;
	display: flex;
	gap: 8px;
	align-items: center;
}

.us-confirm-warning i {
	color: #f2994a;
}

.us-confirm-preview {
	border: 1px solid #e0e6ed;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.us-confirm-preview h4 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #2c3e50;
}

.us-preview-meta {
	margin-bottom: 12px;
}

.us-preview-title {
	font-size: 17px;
	font-weight: 600;
	color: #1f2a37;
}

.us-preview-desc {
	margin: 6px 0 0 0;
	color: #4a4a4a;
	white-space: pre-line;
}

.us-preview-questions {
	margin: 0;
	padding-left: 18px;
}

.us-preview-question {
	margin-bottom: 14px;
}

.us-preview-question-title {
	font-weight: 600;
	color: #2c3e50;
}

.us-preview-question-meta {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8694a3;
	margin-top: 4px;
}

.us-preview-options {
	margin-top: 8px;
	margin-left: 18px;
	color: #4a4a4a;
	padding-left: 18px;
}

.us-confirm-actions {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.us-confirm-actions .ifBtn {
	min-width: 160px;
	text-align: center;
}

/* Report Options Tab Styles */
.options-container {
	padding: 20px;
}

.options-container h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.options-container > p {
	color: #6c757d;
	margin-bottom: 20px;
}

.option-control {
	margin-bottom: 18px;
	padding: 12px 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border: 1px solid #e9ecef;
}

.option-control label {
	display: block;
	font-weight: 500;
	color: #2c3e50;
	margin-bottom: 6px;
	cursor: pointer;
}

.option-control input[type="checkbox"] {
	margin-right: 8px;
	vertical-align: middle;
}

.option-control input[type="checkbox"] + label,
.option-control label:has(input[type="checkbox"]) {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0;
}

.option-control select,
.option-control input[type="text"],
.option-control input[type="number"],
.option-control textarea {
	width: 100%;
	max-width: 400px;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
	background-color: #fff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.option-control select:focus,
.option-control input[type="text"]:focus,
.option-control input[type="number"]:focus,
.option-control textarea:focus {
	border-color: #5da5da;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(93, 165, 218, 0.15);
}

.option-control textarea {
	min-height: 80px;
	resize: vertical;
}

.option-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #6c757d;
	font-style: italic;
}

/* Options tab specific styling in jquery ui tabs */
#reportoptions {
	padding: 10px;
}

#reportoptions .options-container {
	max-width: 400px;
}

/* ===================================
   AI Chat Styles
   =================================== */

.ai-chat-layout {
    --ai-chat-history-width: 280px;
    --ai-chat-content-max: 1200px;
    display: flex;
    gap: 0;
    max-width: calc(var(--ai-chat-content-max) + var(--ai-chat-history-width));
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 160px);
}

body.ai-chat-fullpage .container {
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
}

body.ai-chat-fullpage #footer,
body.ai-chat-fullpage .push {
    display: none;
}

body.ai-chat-fullpage .main.chartMain {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100vh;
    overflow: hidden;
	padding-top: 48px;
	padding-bottom: 0px;
}

body.ai-chat-fullpage .ai-chat-layout {
    flex: 1;
    min-height: 0;
    height: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ai-chat-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ai-chat-usage {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ai-usage-indicator {
    display: block;
    cursor: default;
    text-decoration: none;
    color: inherit;
    line-height: 0;
}

.ai-usage-indicator-ring {
    position: relative;
    width: 28px;
    height: 28px;
}

.ai-usage-indicator-ring svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ai-usage-ring-bg {
    fill: none;
    stroke: #e8edf2;
    stroke-width: 3.2;
}

.ai-usage-ring-fill {
    fill: none;
    stroke: #30afff;
    stroke-width: 3.2;
    stroke-linecap: round;
    transition: stroke-dasharray 0.35s ease, stroke 0.2s ease;
}

.ai-usage-ring-fill--warning {
    stroke: #e67e00;
}

.ai-usage-ring-fill--critical {
    stroke: #c0392b;
}

.ai-usage-indicator-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #1e3a5f;
    pointer-events: none;
}

.ai-usage-indicator--warning .ai-usage-indicator-icon {
    color: #e67e00;
}

.ai-usage-indicator--critical .ai-usage-indicator-icon {
    color: #c0392b;
}

.ai-chat-layout .ai-chat-page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ai-chat-history {
    width: var(--ai-chat-history-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 12px 0 0 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ai-chat-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #e8e8e8;
    background: #f8f9fa;
}

.ai-chat-history-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
}

.ai-chat-history-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
}

.ai-chat-history-close:hover {
    background: #e8e8e8;
    color: #333;
}

.ai-chat-history-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0;
}

.ai-chat-history-empty {
    margin: 16px;
    font-size: 13px;
    line-height: 1.45;
    color: #666;
}

.ai-chat-history-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-chat-history-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    text-decoration: none;
    color: inherit;
    border-left: 3px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.ai-chat-history-item:hover {
    background: #f0f4f8;
}

.ai-chat-history-item--active {
    background: #e8f4fd;
    border-left-color: #30afff;
}

.ai-chat-history-item-preview {
    font-size: 13px;
    line-height: 1.35;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ai-chat-history-item--active .ai-chat-history-item-preview {
    font-weight: 500;
}

.ai-chat-history-item-time {
    font-size: 11px;
    color: #888;
}

.ai-chat-history-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a5f;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ai-chat-history-toggle:hover {
    background: #f8f9fa;
}

.ai-chat-history-backdrop {
    display: none;
}

.ai-chat-layout .ai-chat-container {
    flex: 1;
    min-height: 0;
    height: auto;
    border-radius: 0 12px 12px 0;
    border-left: none;
}

body.ai-chat-fullpage .ai-chat-history {
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    box-shadow: none;
}

body.ai-chat-fullpage .ai-chat-layout .ai-chat-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

body.ai-chat-fullpage .ai-chat-messages {
    flex: 1;
    min-height: 0;
    overscroll-behavior: contain;
}

body.ai-chat-fullpage .ai-chat-input-container {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

body.ai-chat-fullpage .ai-scroll-to-bottom {
    bottom: 120px;
}

.ai-chat-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header button for AI chat (New Chat button in breadcrumbs) */
.ai-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #1e3a5f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s ease;
    vertical-align: middle;
}

.ai-header-btn:hover {
    background: #2d4a6f;
}

.ai-header-btn i {
    font-size: 11px;
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 180px);
    min-height: 400px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.ai-message-wrapper {
    margin-bottom: 16px;
}

.ai-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    min-width: 0;
}

.ai-message-user {
    flex-direction: row-reverse;
    margin-left: auto;
}

.ai-message-user .ai-message-content {
    background: #30afff;
    color: #fff;
    border-radius: 18px 18px 4px 18px;
}

.ai-message-assistant .ai-message-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 18px 18px 18px 4px;
}

.ai-message-assistant .ai-message-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.ai-message-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 0 2px;
}

.ai-message-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.ai-message-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #8a94a6;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ai-message-action:hover {
    color: #4a5568;
    background: rgba(0, 0, 0, 0.05);
}

.ai-message-action:focus-visible {
    outline: 2px solid #30afff;
    outline-offset: 1px;
}

.ai-message-action--active {
    color: #30afff;
}

.ai-message-action--active:hover {
    color: #1a96e6;
    background: rgba(48, 175, 255, 0.1);
}

.ai-message-action--copied {
    color: #2e7d32;
}

.ai-message-error .ai-message-content {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    color: #c62828;
    border-radius: 18px;
}

.ai-message-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6d2fff, #5fb5ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    line-height: 1;
    font-family: inherit;
}

.ai-message-content {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    min-width: 0;
    max-width: 100%;
}

.ai-message-content p {
    margin: 0 0 10px 0;
}

.ai-message-content p:last-child {
    margin-bottom: 0;
}

.ai-message-content ul,
.ai-message-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.ai-message-content ul {
    list-style: disc;
}

.ai-message-content ol {
    list-style: decimal;
}

.ai-message-content li {
    margin-bottom: 4px;
    display: list-item;
}

.ai-message-content li > p:first-child {
    margin-top: 0;
}

.ai-message-content li > p:last-child {
    margin-bottom: 0;
}

.ai-message-content ul ul {
    list-style: circle;
}

.ai-message-content ul ul ul {
    list-style: square;
}

.ai-message-content code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.ai-message-user .ai-message-content code {
    background: rgba(255, 255, 255, 0.2);
}

.ai-message-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.ai-message-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Suggestions */
.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ai-suggestion {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-suggestion:hover {
    background: #bbdefb;
    border-color: #64b5f6;
}

/* Loading animation */
.ai-loading-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.ai-loading-dots span {
    width: 8px;
    height: 8px;
    background: #90caf9;
    border-radius: 50%;
    animation: ai-bounce 1.4s infinite ease-in-out both;
}

.ai-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes ai-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Input area */
.ai-chat-input-container {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.ai-chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.ai-chat-input-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    min-height: 28px;
}

.ai-chat-input-footer--wide-disclaimer .ai-chat-disclaimer,
.ai-chat-input-footer--usage-hidden .ai-chat-disclaimer {
    flex: 1;
    text-align: center;
}

.ai-chat-disclaimer {
    text-align: right;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 0;
    line-height: 1.35;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    max-height: 150px;
    line-height: 1.4;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ai-chat-input:focus {
    outline: none;
    border-color: #30afff;
    box-shadow: 0 0 0 3px rgba(48, 175, 255, 0.1);
}

.ai-chat-input:disabled {
    background: #f5f5f5;
    color: #999;
}

.ai-chat-send {
    width: 44px;
    height: 44px;
    border: none;
    background: #30afff;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ai-chat-send:hover {
    background: #1e9eed;
    transform: scale(1.05);
}

.ai-chat-send:disabled,
.ai-chat-send.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ai-chat-send svg {
    width: 20px;
    height: 20px;
}

.ai-chat-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ai-chat-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chat-action:hover {
    background: #eee;
    color: #333;
}

.ai-chat-action svg {
    width: 14px;
    height: 14px;
}

/* Chart containers */
.ai-chart-container {
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 12px;
    min-height: 300px;
    overflow: hidden;
}

.ai-chart-canvas {
    width: 100%;
    min-height: 300px;
}

.ai-chart-container .highcharts-contextbutton {
    display: none;
}

.ai-chart-download {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-chart-download:hover {
    background: #fff;
    color: #1e3a5f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-chart-download-menu {
    position: absolute;
    top: 44px;
    left: 8px;
    z-index: 21;
    min-width: 180px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.ai-chart-download-menu[hidden] {
    display: none;
}

.ai-chart-download-menu-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.ai-chart-download-menu-item:hover {
    background: #f0f4f8;
    color: #1e3a5f;
}

.ai-chart-container--modal {
    border: none;
    border-radius: 0;
    margin-top: 0;
    background: transparent;
    min-height: 0;
    overflow: visible;
}

.ai-chart-container--modal .ai-chart-modal-canvas {
    min-height: 500px;
}

#ai-chart-modal .ai-chart-modal-body {
    padding: 16px;
}

.ai-chart-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #475569;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-chart-close:hover {
    background: #fff;
    color: #1e3a5f;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-chart-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-chart-expand:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Chart modal */
.ai-chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.ai-chart-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ai-chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ai-chart-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.ai-chart-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-chart-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.ai-chart-modal-body {
    padding: 20px;
    min-height: 400px;
}

.ai-chart-modal-canvas {
    width: 100%;
    min-height: 400px;
}

.ai-tool-data-body {
    max-height: 70vh;
    overflow-x: auto;
    overflow-y: auto;
    min-height: 0;
    min-width: 0;
}

.ai-view-data-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 0;
    background: none;
    border: none;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}

.ai-view-data-btn:hover {
    color: #30afff;
    text-decoration: underline;
}

.ai-view-data-btn i {
    font-size: 11px;
    opacity: 0.85;
}

.ai-tool-data-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ai-tool-data-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ai-tool-data-section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.ai-tool-data-summary {
    margin: 0 0 10px;
    font-size: 13px;
    color: #555;
}

.ai-tool-data-subheading {
    margin: 14px 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.ai-tool-data-list {
    margin: 0 0 10px;
    padding-left: 20px;
    font-size: 13px;
    color: #333;
}

.ai-tool-data-list li {
    margin-bottom: 4px;
}

.ai-tool-data-code {
    color: #888;
    font-size: 12px;
}

.ai-tool-data-error {
    margin: 0;
    color: #c0392b;
    font-size: 13px;
}

.ai-tool-data-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.ai-tool-data-empty {
    margin: 0;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.ai-tool-data-quote {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-left: 3px solid #30afff;
    background: #f8f9fa;
    font-size: 13px;
    color: #333;
}

.ai-tool-data-article {
    margin-bottom: 14px;
}

.ai-tool-data-article-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.ai-tool-data-excerpt {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.45;
}

/* Chat launcher button (for header) */
.ai-chat-launcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #30afff, #1e9eed);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ai-chat-launcher:hover {
    background: linear-gradient(135deg, #1e9eed, #0d8de0);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(48, 175, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

.ai-chat-launcher svg {
    width: 16px;
    height: 16px;
}

/* Floating AI chat widget (Intercom-style) */
.ai-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: inherit;
    --ai-chat-header-clearance: 72px; /* 64px fixed header + 8px gap */
    --ai-chat-bottom-clearance: 96px; /* 24px widget inset + 72px above launcher */
}

.ai-chat-widget-launcher {
    position: relative;
}

.ai-chat-widget-promo {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 260px;
    padding: 14px 36px 14px 16px;
    background: #fff;
    color: #1e3a5f;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    line-height: 1.45;
    animation: aiChatWidgetPromoIn 0.25s ease-out;
}

.ai-chat-widget-promo[hidden] {
    display: none !important;
}

.ai-chat-widget-promo::after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.06);
}

.ai-chat-widget-promo p {
    margin: 0;
}

.ai-chat-widget-promo strong {
    color: #30afff;
}

.ai-chat-widget-promo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.ai-chat-widget-promo-close:hover {
    background: #e2e8f0;
    color: #1e3a5f;
}

@keyframes aiChatWidgetPromoIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-chat-widget-toggle {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d2fff, #5fb5ff);
    box-shadow: 0 4px 20px rgba(48, 120, 255, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    position: relative;
}

.ai-chat-widget-toggle--tooltip::before {
    content: 'Benchy AI';
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    padding: 6px 10px;
    background: #1e3a5f;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ai-chat-widget-toggle--tooltip::after {
    content: '';
    position: absolute;
    right: 22px;
    bottom: calc(100% + 4px);
    border: 5px solid transparent;
    border-top-color: #1e3a5f;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ai-chat-widget-toggle--tooltip:hover::before,
.ai-chat-widget-toggle--tooltip:hover::after,
.ai-chat-widget-toggle--tooltip:focus-visible::before,
.ai-chat-widget-toggle--tooltip:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.ai-chat-widget-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(48, 120, 255, 0.55), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ai-chat-widget-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.ai-chat-widget-toggle-icon--open {
    opacity: 1;
    transform: scale(1);
}

.ai-chat-widget-toggle-icon--close {
    position: absolute;
    opacity: 0;
    transform: scale(0.85);
    color: #fff;
    font-size: 24px;
}

.ai-chat-widget-toggle img {
    width: 32px;
    height: 32px;
}

.ai-chat-widget--open .ai-chat-widget-toggle-icon--open {
    opacity: 0;
    transform: scale(0.85);
}

.ai-chat-widget--open .ai-chat-widget-toggle-icon--close {
    opacity: 1;
    transform: scale(1);
}

.ai-chat-widget-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 480px;
    max-width: calc(100vw - 32px);
    height: 720px;
    max-height: calc(100vh - var(--ai-chat-header-clearance) - var(--ai-chat-bottom-clearance));
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: aiChatWidgetIn 0.22s ease-out;
}

.ai-chat-widget-panel[hidden] {
    display: none !important;
}

@keyframes aiChatWidgetIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ai-chat-widget-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.ai-chat-widget-body > .ai-chat-widget-header {
    flex-shrink: 0;
}

.ai-chat-widget-body > .ai-chat-container--widget {
    flex: 1;
    min-height: 0;
}

.ai-chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1e3a5f, #2d5080);
    color: #fff;
    flex-shrink: 0;
}

.ai-chat-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.ai-chat-widget-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-chat-widget-action {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s ease;
    font-size: 14px;
}

.ai-chat-widget-action:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
}

.ai-chat-container--widget {
    flex: 1;
    min-height: 0;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.ai-chat-widget .ai-chat-messages {
    padding: 16px;
}

.ai-chat-widget .ai-message {
    max-width: 92%;
    min-width: 0;
}

.ai-chat-widget .ai-suggestions {
    flex-direction: column;
}

.ai-chat-widget .ai-suggestion {
    width: 100%;
    text-align: left;
}

.ai-chat-widget .ai-chat-input-container {
    padding: 12px 16px 14px;
}

.ai-chat-widget .ai-scroll-to-bottom {
    bottom: 102px;
    right: 16px;
}

.ai-chat-widget .ai-chart-modal {
    z-index: 10001;
}

.ai-chat-widget-loading,
.ai-chat-widget-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    padding: 40px 24px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

.ai-chat-widget-loading i {
    font-size: 24px;
    color: #30afff;
}

.ai-chat-widget-error button {
    padding: 8px 16px;
    background: #30afff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

@media (max-width: 480px) {
    .ai-chat-widget {
        right: 16px;
        bottom: 16px;
        --ai-chat-bottom-clearance: 84px; /* 16px widget inset + 68px above launcher */
    }

    .ai-chat-widget-promo {
        width: calc(100vw - 48px);
        max-width: 260px;
    }

    .ai-chat-widget-panel {
        width: calc(100vw - 32px);
        height: calc(100vh - var(--ai-chat-header-clearance) - var(--ai-chat-bottom-clearance));
        max-height: calc(100vh - var(--ai-chat-header-clearance) - var(--ai-chat-bottom-clearance));
        bottom: 68px;
    }
}

@media print {
    .ai-chat-widget {
        display: none !important;
    }
}

/* Markdown styles for AI messages */
.ai-message-content .ai-heading {
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.ai-message-content h1.ai-heading {
    font-size: 1.4em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 6px;
}

.ai-message-content h2.ai-heading {
    font-size: 1.25em;
}

.ai-message-content h3.ai-heading {
    font-size: 1.1em;
}

.ai-message-content h4.ai-heading {
    font-size: 1em;
}

.ai-message-content .ai-code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 12px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.ai-message-content .ai-code-block code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.ai-message-content .ai-inline-code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.ai-message-user .ai-message-content .ai-inline-code {
    background: rgba(255, 255, 255, 0.2);
}

.ai-message-content .ai-list {
    margin: 10px 0;
    padding-left: 24px;
}

.ai-message-content ul.ai-list {
    list-style: disc;
}

.ai-message-content ol.ai-list {
    list-style: decimal;
}

.ai-message-content .ai-list li {
    margin-bottom: 6px;
    line-height: 1.5;
    display: list-item;
}

.ai-message-content .ai-list li > p:first-child {
    margin-top: 0;
}

.ai-message-content .ai-list li > p:last-child {
    margin-bottom: 0;
}

.ai-message-content .ai-blockquote {
    border-left: 4px solid #30afff;
    margin: 12px 0;
    padding: 8px 16px;
    background: rgba(48, 175, 255, 0.08);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.ai-message-content .ai-hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
}

.ai-message-content a {
    color: #1976d2;
    text-decoration: none;
}

.ai-message-content a:hover {
    text-decoration: underline;
}

.ai-message-user .ai-message-content a {
    color: #fff;
    text-decoration: underline;
}

/* Wide tables scroll inside the bubble/modal instead of stretching the layout */
.ai-table-scroll {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
}

.ai-table-scroll > table {
    margin: 0;
}

/* AI chat messages & underlying-data modal tables */
.ai-message-content table,
.ai-tool-data-body table {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    max-width: none;
    font-size: 13px;
    border: 1px solid #e0e0e0;
}

.ai-message-content table td,
.ai-message-content table th,
.ai-tool-data-body table td,
.ai-tool-data-body table th {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.ai-message-content table thead tr > th,
.ai-message-content table thead tr > td,
.ai-tool-data-body table thead tr > th,
.ai-tool-data-body table thead tr > td {
    background: #f5f5f5;
    font-weight: 600;
}

/* Markdown tables without thead (not stats key/value tables) */
.ai-message-content table:not(:has(thead)):not(.ai-tool-data-stats) > tbody > tr:first-child > th,
.ai-message-content table:not(:has(thead)):not(.ai-tool-data-stats) > tbody > tr:first-child > td,
.ai-tool-data-body table:not(:has(thead)):not(.ai-tool-data-stats) > tbody > tr:first-child > th,
.ai-tool-data-body table:not(:has(thead)):not(.ai-tool-data-stats) > tbody > tr:first-child > td {
    background: #f5f5f5;
    font-weight: 600;
}

.ai-message-content table tbody tr:nth-child(even),
.ai-tool-data-body table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Stats / summary key–value tables: label column only, not a repeated header row */
.ai-tool-data-body table.ai-tool-data-stats tbody tr > th:first-child {
    width: 40%;
    font-weight: 600;
    background: #fff;
}

/* Thinking/Reasoning steps */
.ai-thinking-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin: 8px 0;
    overflow: hidden;
    max-width: 85%;
}

.ai-thinking-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.ai-thinking-header:hover {
    background: rgba(0, 0, 0, 0.03);
}

.ai-thinking-icon {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.ai-thinking-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.ai-thinking-toggle {
    font-size: 10px;
    color: #6c757d;
    transition: transform 0.2s;
}

.ai-thinking-content {
    display: none;
    border-top: 1px solid #dee2e6;
    padding: 0;
}

.ai-thinking-step {
    padding: 12px 14px;
    border-bottom: 1px solid #e9ecef;
}

.ai-thinking-step:last-child {
    border-bottom: none;
}

.ai-thinking-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ai-thinking-tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.ai-thinking-text {
    font-size: 13px;
    color: #495057;
    line-height: 1.5;
}

.ai-thinking-text p {
    margin: 0;
}

/* Live thinking bubbles (shown during processing) */
.ai-thinking-live {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-thinking-bubble {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-left: 3px solid #64748b;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 8px 0;
    max-width: 85%;
    font-size: 13px;
}

.ai-thinking-bubble .ai-thinking-tools {
    margin-bottom: 6px;
}

.ai-thinking-bubble .ai-thinking-text {
    color: #475569;
}

.ai-thinking-bubble .ai-thinking-text p {
    margin: 0 0 8px 0;
}

.ai-thinking-bubble .ai-thinking-text p:last-child {
    margin-bottom: 0;
}

/* Grouped thinking inside assistant messages */
.ai-message-thinking {
    max-width: 85%;
}

.ai-message-thinking > .ai-message-content {
    padding: 0;
    overflow: hidden;
    min-width: 220px;
}

.ai-message-thinking .ai-thinking-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border-bottom: 1px solid #eef2f6;
    transition: background 0.15s;
}

.ai-message-thinking .ai-thinking-group-header:hover {
    background: #f8fafc;
}

.ai-message-thinking .ai-thinking-group-icon {
    display: flex;
    align-items: center;
    color: #64748b;
}

.ai-message-thinking .ai-thinking-group-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.ai-message-thinking .ai-thinking-group-toggle {
    font-size: 10px;
    color: #94a3b8;
}

.ai-message-thinking .ai-thinking-group-content {
    max-height: 240px;
    overflow-y: auto;
}

.ai-message-thinking .ai-thinking-step {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    animation: fadeInStep 0.2s ease-out;
}

.ai-message-thinking .ai-thinking-step:last-child {
    border-bottom: none;
}

@keyframes fadeInStep {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-message-thinking .ai-thinking-tools {
    margin-bottom: 8px;
}

.ai-message-thinking .ai-thinking-tool-badge {
    font-size: 11px;
    padding: 3px 8px;
}

.ai-message-thinking .ai-thinking-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.ai-message-thinking .ai-thinking-text p {
    margin: 0 0 6px 0;
}

.ai-message-thinking .ai-thinking-text p:last-child {
    margin-bottom: 0;
}

.ai-message-thinking--waiting .ai-thinking-group-header {
    display: none;
}

.ai-message-thinking--waiting .ai-thinking-loading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
}

.ai-message-thinking--waiting .ai-thinking-status-text {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}

.ai-message-thinking--has-steps .ai-thinking-loading {
    display: flex;
    align-items: center;
    padding: 10px 16px 12px;
    border-top: 1px solid #f1f5f9;
}

.ai-message-thinking--has-steps .ai-thinking-status-text {
    display: none;
}

.ai-message-thinking .ai-thinking-loading .ai-loading-dots {
    padding: 0;
}

/* Rate limit warning banner */
.ai-rate-limit-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fef3cd 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #856404;
    transition: opacity 0.3s ease;
}

.ai-rate-limit-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.ai-rate-limit-text {
    flex: 1;
    line-height: 1.4;
}

.ai-rate-limit-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    color: #856404;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.ai-rate-limit-close:hover {
    opacity: 1;
}

/* Scroll to bottom button */
.ai-scroll-to-bottom {
    position: absolute;
    bottom: 110px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    z-index: 10;
}

.ai-scroll-to-bottom:hover {
    background: #f8fafc;
    color: #1e3a5f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ai-scroll-to-bottom:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ai-scroll-to-bottom svg {
    stroke-width: 2.5;
}

/* Session resumed notice */
.ai-session-resumed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 20px;
    color: #004085;
    font-size: 12px;
    margin: 0 auto 16px;
}

.ai-session-notice {
    display: flex;
    justify-content: center;
}

.ai-session-resumed i {
    font-size: 11px;
}

.ai-session-expired {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    padding: 10px 16px;
    background: #fff8e6;
    border: 1px solid #f0d48a;
    border-radius: 12px;
    color: #7a5b00;
    font-size: 12px;
    line-height: 1.45;
    margin: 0 auto;
    max-width: 100%;
    text-align: center;
}

.ai-session-notice--bottom {
    margin-top: 8px;
}

.ai-session-notice--bottom .ai-session-expired {
    margin-bottom: 8px;
}

.ai-session-expired i {
    font-size: 11px;
}

.ai-session-new-chat-btn {
    border: none;
    background: #1e3a5f;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.ai-session-new-chat-btn:hover {
    background: #2d5080;
}

.ai-chat-input-container--disabled {
    opacity: 0.72;
}

.ai-chat-input-container--disabled .ai-chat-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .ai-chat-layout {
        padding: 10px;
        position: relative;
    }

    body.ai-chat-fullpage .ai-chat-layout {
        padding: 0;
    }

    .ai-chat-history {
        position: fixed;
        top: 66px;
        left: 0;
        bottom: 0;
        z-index: 1200;
        width: min(300px, 88vw);
        height: calc(100vh - 66px);
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    }

    .ai-chat-layout.ai-chat-history-open .ai-chat-history-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1199;
        border: none;
        padding: 0;
        background: rgba(15, 23, 42, 0.45);
        cursor: pointer;
    }

    .ai-chat-layout.ai-chat-history-open .ai-chat-history {
        transform: translateX(0);
    }

    .ai-chat-history-close {
        display: inline-flex;
    }

    .ai-chat-history-toggle {
        display: inline-flex;
        flex-shrink: 0;
        margin: 10px 10px 0;
    }

    .ai-chat-layout .ai-chat-container {
        border-radius: 12px;
        border-left: 1px solid #e0e0e0;
    }
}

@media (max-width: 768px) {
    .ai-chat-page {
        padding: 10px;
    }

    .ai-chat-layout .ai-chat-page {
        padding: 0;
    }
    
    .ai-chat-container {
        height: calc(100vh - 150px);
        border-radius: 8px;
    }

    body.ai-chat-fullpage .ai-chat-container {
        height: auto;
        border-radius: 0;
    }

    .ai-chat-layout .ai-chat-container {
        border-radius: 8px;
    }

    body.ai-chat-fullpage .ai-chat-layout .ai-chat-container {
        border-radius: 0;
    }

    body.ai-chat-fullpage .ai-chat-main {
        padding: 10px 10px 0;
    }
    
    .ai-header-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .ai-message {
        max-width: 95%;
    }
    
    .ai-suggestions {
        flex-direction: column;
    }
    
    .ai-suggestion {
        width: 100%;
        text-align: center;
    }
    
    .ai-chart-modal-content {
        max-width: 100%;
        margin: 10px;
    }
}

/* AI Insights */
/* Main Panel Styles */
.ai-insights-panel {
	margin-top: 20px;
	background: linear-gradient(135deg, #ffffff 0%, #f9fbff 100%);
	border-radius: 10px;
	box-shadow: 0 4px 5px rgba(102, 126, 234, 0.15);
	/* border: 1px solid rgba(102, 126, 234, 0.2); */
	overflow: hidden;	
}

.ai-insights-panel.ai-insights-compact {
	margin-top: 15px;
	box-shadow: 0 3px 10px rgba(102, 126, 234, 0.12);
}

/* Header Styles */
.ai-insights-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 7px;
	padding-bottom: 5px;
	padding-left: 17px;
	padding-right: 7px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	background: linear-gradient(135deg, #8550ff 0%, #00a6ff 100%);
}

.ai-insights-title {
	display: flex;
	align-items: center;
	gap: 12px;
	color: white;
	font-size: 16px;
	font-weight: 600;
}

.ai-insights-logo {
	height: 24px;
	width: auto;
	filter: brightness(0) invert(1);
}

.ai-insights-close {
	background: rgba(255, 255, 255, 0);
	color: white;
	border: none;
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.ai-insights-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

/* Body Content */
.ai-insights-body {
	padding: 20px;
	min-height: 60px;
	font-size: 15px;
	line-height: 1.6;
	color: #2c3e50;
	background: white;
}

.ai-insights-compact .ai-insights-body {
	padding: 15px;
	font-size: 14px;
}

/* Loading Animation */
.ai-insights-loading {
	text-align: center;
	padding: 20px;
}

.ai-thinking-dots {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
}

.ai-thinking-dot {
	width: 10px;
	height: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	animation: thinking 1.4s infinite ease-in-out both;
}

.ai-thinking-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.ai-thinking-dot:nth-child(2) {
	animation-delay: -0.16s;
}

.ai-thinking-dot:nth-child(3) {
	animation-delay: 0;
}

@keyframes thinking {

	0%,
	80%,
	100% {
		transform: scale(0.8);
		opacity: 0.5;
	}

	40% {
		transform: scale(1.2);
		opacity: 1;
	}
}

.ai-loading-text {
	color: #666;
	font-style: italic;
	font-size: 14px;
}

/* Error State */
.ai-insights-error {
	color: #e74c3c;
	text-align: center;
	padding: 20px;
}

.ai-insights-error i {
	font-size: 24px;
	display: block;
	margin-bottom: 10px;
}

/* Feedback Section */
.ai-insights-feedback {
	padding: 15px 20px;
	background: #f8f9fa;
	border-top: 1px solid #e0e6ed;
}

.ai-feedback-container {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.ai-feedback-label {
	color: #666;
	font-size: 13px;
	font-weight: 500;
}

.ai-feedback-buttons {
	display: flex;
	gap: 8px;
}

.ai-feedback-btn {
	padding: 5px 12px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #444;
}

.ai-feedback-btn:hover {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-color: transparent;
	transform: translateY(-1px);
}

.ai-feedback-thanks {
	color: #27ae60;
	font-size: 13px;
	font-style: italic;
}

/* Disclaimer */
.ai-insights-disclaimer {
	padding: 12px 0px 0px;
	/* background: #fff9e6; */
	/* border-top: 1px solid #f0e0b3; */
	font-size: 12px;
	color: #444;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ai-insights-disclaimer i {
	flex-shrink: 0;
	margin-top: 2px;
}

/* Sparkle Button Styles */
.ai-sparkle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 6px;
	color: white;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ai-sparkle-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.ai-insights-panel {
		margin: 15px 0;
		border-radius: 0;
	}

	.ai-feedback-container {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* Trends & Insights callouts */
.trends-insights-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

.trends-highlight-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #d1ecff;
	color: #005b8a;
	padding: 2px 10px;
	border-radius: 999px;
	border: 1px solid rgba(0, 133, 215, 0.35);
	font-weight: 600;
	white-space: nowrap;
}

.trends-insights-callout {
	animation: trendsHeaderPulse 1s ease-in-out 6;
}

@keyframes trendsHeaderPulse {
	0% {
		color: inherit;
		text-shadow: none;
	}
	50% {
		color: #0085d7;
		text-shadow: 0 0 8px rgba(0, 133, 215, 0.55);
	}
	100% {
		color: inherit;
		text-shadow: none;
	}
}

/* Trends and Insights */
/* Header Section */
.ms-header-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e0e6ed;
    padding: 24px 20px;
    margin-bottom: 20px;
}

.ms-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.ms-main-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.ms-main-title i {
    margin-right: 10px;
    color: #3498db;
}

.ms-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.ms-period-arrow {
    color: #95a5a6;
    font-size: 12px;
    line-height: 1;
}

.ms-period-badge {
    background: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-weight: 500;
    color: #34495e;
}

.ms-divider {
    color: #ccc;
}

.ms-council-name {
    font-weight: 500;
    color: #2c3e50;
}

/* Main Container */
.ms-main-container {
    padding: 0 20px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

/* Tabs */
.ms-tabs-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ms-tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e6ed;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ms-tab-nav li {
    /* flex: 1; */
}

.ms-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.ms-tab-link:hover {
    color: #3498db;
    background: #f8f9fa;
}

.ui-tabs-active .ms-tab-link {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Tab Content */
.ms-tab-content {
    padding: 24px;
}

.ms-section-header {
    margin-bottom: 20px;
}

.ms-section-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 12px 0;
}

.ms-comparator-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3f2fd;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #1976d2;
}

/* Data Table */
.ms-data-table-wrapper {
    overflow-x: auto;
}

.ms-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
	position: relative;
}

.ms-data-table thead th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e6ed;
}

.ms-data-row {
    transition: background 0.2s ease;
}

.ms-data-row:hover {
    background: #f8f9fa;
}

.ms-data-row td {
    padding: 14px 16px;
    border-bottom: 1px solid #e0e6ed;
    vertical-align: middle;
}

.ms-metric-col {
    min-width: 200px;
}

.ms-metric-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}
.ms-metric-category {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.ms-metric-meta { margin-top: 4px; }
.ms-category-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 12px;
    background: #eef2f7;
    color: #4b5b6b;
}

.ms-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}
.ms-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 500;
    border-radius: 3px;
    background: #ebf5fb;
    color: #2980b9;
    letter-spacing: 0.01em;
    line-height: 1.4;
    white-space: nowrap;
}
.ms-filter-tag i {
    font-size: 8px;
    opacity: 0.6;
}

.ms-change-col {
    min-width: 140px;
}

.ms-change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.ms-change-indicator i {
    font-size: 12px;
}

.ms-trend-up {
    color: #0072B2;
}

.ms-trend-down {
    color: #D97706;
}

.ms-trend-neutral {
    color: #7f8c8d;
}

.ms-percent-col {
    min-width: 100px;
}

.ms-percent-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ms-percent-badge.ms-trend-up {
    background: #BFE3F5;
    color: #005282;
}

.ms-percent-badge.ms-trend-down {
    background: #FFE0A3;
    color: #8A5500;
}

.ms-percent-badge.ms-trend-neutral {
    background: #e2e3e5;
    color: #383d41;
}

.ms-value-col {
    min-width: 120px;
    position: relative;
}

.ms-value-current {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    display: inline-block;
}

.ms-value-prev {
    color: #7f8c8d;
    font-size: 14px;
}

.ms-value-predicted {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
}

.ms-trend-meta {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.ms-trend-meta span {
    font-size: 10.5px;
    color: #95a5a6;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.ms-trend-meta i {
    font-size: 9px;
}

.ms-anomaly-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ms-anomaly-badge.ms-trend-up {
    background: #BFE3F5;
    color: #005282;
}
.ms-anomaly-badge.ms-trend-down {
    background: #FFE0A3;
    color: #8A5500;
}
.ms-anomaly-badge.ms-trend-neutral {
    background: #e2e3e5;
    color: #383d41;
}

/* AI Sparkle Button - now uses ai-sparkle-btn from plugin */
.ai-sparkle-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.ai-sparkle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

/* AI Panel - now handled by unified plugin */

/* Empty State */
.ms-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.ms-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ms-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* AI Row Styles - keep row unstyled; panel carries styling */
.ms-ai-row td { padding: 0 !important; }
.ms-ai-row .ms-ai-container {  }

.ms-ai-container {
	margin: 5px 10px 20px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ms-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ms-tab-nav {
        flex-direction: column;
    }
    
    .ms-tab-link {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .ui-tabs-active .ms-tab-link {
        border-left-color: #3498db;
        border-bottom-color: transparent;
    }
    
    .ms-data-table {
        font-size: 12px;
    }
    
    .ms-data-table thead th,
    .ms-data-row td {
        padding: 8px 12px;
    }
}




/* Trends and Insights Widget */
.ms-widget-container {

}
.ms-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e6ed;
}
.ms-widget-title {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ms-widget-title i {
	color: #3498db;
}
.ms-widget-periods {
	font-size: 13px;
	color: #7f8c8d;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ms-widget-periods .ms-period-arrow {
	font-size: 11px;
}
.ms-widget-period {
	background: #fff;
	padding: 3px 10px;
	border-radius: 15px;
	border: 1px solid #ddd;
	font-weight: 500;
}
.ms-widget-content {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}
.ms-widget-section {
	flex: 1;
	min-width: 280px;
}
.ms-widget-section-title {
	font-size: 14px;
	font-weight: 600;
	color: #34495e;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ms-widget-comparator-note {
	font-size: 11px;
	color: #95a5a6;
	font-weight: normal;
	margin-left: 5px;
}
.ms-widget-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.ms-widget-item {
	padding: 10px 12px;
	margin-bottom: 8px;
	background: #fff;
	border-radius: 6px;
	border: 1px solid #e0e6ed;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.ms-widget-metric {
	font-size: 13px;
	color: #2c3e50;
	font-weight: 500;
	flex: 1;
}
.ms-widget-labels { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ms-widget-labels .ms-filter-tags { margin-top: 2px; }
.ms-widget-labels .ms-filter-tag { font-size: 9.5px; padding: 1px 6px; }
.ms-widget-change {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ms-widget-value {
	font-weight: 600;
	font-size: 13px;
}
.ms-widget-percent {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 12px;
	font-weight: 600;
}
.ms-positive { color: #0072B2; }
.ms-positive .ms-widget-percent { background: #BFE3F5; color: #005282; }
.ms-negative { color: #D97706; }
.ms-negative .ms-widget-percent { background: #FFE0A3; color: #8A5500; }
.ms-neutral { color: #7f8c8d; }
.ms-neutral .ms-widget-percent { background: #e2e3e5; color: #383d41; }
.ms-widget-sparkle {
	padding: 3px 6px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 4px;
	color: white;
	cursor: pointer;
	font-size: 10px;
	transition: all 0.3s ease;
	margin-left: 8px;
}
.ms-widget-sparkle:hover {
	transform: scale(1.1);
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}
.ms-widget-footer {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid #e0e6ed;
	display: flex;
	justify-content: center;
}
.ms-widget-empty {
	text-align: center;
	padding: 20px;
	color: #95a5a6;
	font-size: 13px;
}

.kbcontent ul li, .aiGen ul li {
	list-style-type: disc;
	list-style-position: inside;
}

.kbcontent ol li, .aiGen ol li {
	list-style-type: decimal;
	list-style-position: inside;
}

.aiGen p {
	color: black;
}

.aiGen h3 {
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 12px;
}

.aiGen h4 {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 10px;
}

#usConfirmPanel {
	font-size: 14px;
	background: #fff;
	border: 1px solid #e0e6ed;
	border-radius: 10px;
	padding: 24px 28px;
	margin-top: 30px;
}

.us-confirm-panel .us-confirm-header h3 {
	margin: 0 0 6px 0;
	font-size: 20px;
	color: #1f2a37;
}

.us-confirm-panel .us-confirm-header p {
	margin: 0 0 18px 0;
	color: #4a5568;
}

.us-confirm-warning {
	background: #fff6e5;
	border-left: 4px solid #f5a623;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-weight: 600;
	color: #7a4c00;
	display: flex;
	gap: 8px;
	align-items: center;
}

.us-confirm-warning i {
	color: #f2994a;
}

.us-confirm-preview {
	border: 1px solid #e0e6ed;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.us-confirm-preview h4 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 600;
	color: #2c3e50;
}

.us-preview-meta {
	margin-bottom: 12px;
}

.us-preview-title {
	font-size: 17px;
	font-weight: 600;
	color: #1f2a37;
}

.us-preview-desc {
	margin: 6px 0 0 0;
	color: #4a4a4a;
	white-space: pre-line;
}

.us-preview-questions {
	margin: 0;
	padding-left: 18px;
}

.us-preview-question {
	margin-bottom: 14px;
}

.us-preview-question-title {
	font-weight: 600;
	color: #2c3e50;
}

.us-preview-question-meta {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8694a3;
	margin-top: 4px;
}

.us-preview-options {
	margin-top: 8px;
	margin-left: 18px;
	color: #4a4a4a;
	padding-left: 18px;
}

.us-confirm-actions {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.us-confirm-actions .ifBtn {
	min-width: 160px;
	text-align: center;
}

/* Report Options Tab Styles */
.options-container {
	padding: 20px;
}

.options-container h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.options-container > p {
	color: #6c757d;
	margin-bottom: 20px;
}

.option-control {
	margin-bottom: 18px;
	padding: 12px 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border: 1px solid #e9ecef;
}

.option-control label {
	display: block;
	font-weight: 500;
	color: #2c3e50;
	margin-bottom: 6px;
	cursor: pointer;
}

.option-control input[type="checkbox"] {
	margin-right: 8px;
	vertical-align: middle;
}

.option-control input[type="checkbox"] + label,
.option-control label:has(input[type="checkbox"]) {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0;
}

.option-control select,
.option-control input[type="text"],
.option-control input[type="number"],
.option-control textarea {
	width: 100%;
	max-width: 400px;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
	background-color: #fff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.option-control select:focus,
.option-control input[type="text"]:focus,
.option-control input[type="number"]:focus,
.option-control textarea:focus {
	border-color: #5da5da;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(93, 165, 218, 0.15);
}

.option-control textarea {
	min-height: 80px;
	resize: vertical;
}

.option-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #6c757d;
	font-style: italic;
}

/* Options tab specific styling in jquery ui tabs */
#reportoptions {
	padding: 10px;
}

#reportoptions .options-container {
	max-width: 400px;
}

/* Neighbour models (controllers/neighbourmodels.php) — aligns with reformed-form / cpanel-section */
#neighbourmodelsadminpanel .neighbour-models-readonly-banner {
	background: #fffbeb;
	border-color: #fcd34d;
	color: #92400e;
}
#neighbourmodelsadminpanel .neighbour-models-readonly-form {
	display: inline;
	margin: 0 0 0 8px;
	vertical-align: middle;
}
#neighbourmodelsadminpanel label.toggle-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	cursor: pointer;
	font-weight: normal;
	max-width: 100%;
}
#neighbourmodelsadminpanel .neighbour-models-table-wrap {
	overflow-x: auto;
	margin-top: 8px;
	border: 1px solid #a6c9e2;
	border-radius: 4px;
}
#neighbourmodelsadminpanel .neighbour-models-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: 14px;
}
#neighbourmodelsadminpanel .neighbour-models-table thead th {
	background: #e8f4fc;
	color: #333;
	font-weight: 600;
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #a6c9e2;
}
#neighbourmodelsadminpanel .neighbour-models-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
}
#neighbourmodelsadminpanel .neighbour-models-table tbody tr:hover {
	background: #f8fafc;
}
#neighbourmodelsadminpanel .neighbour-models-model-name {
	font-weight: 600;
	color: #1f2937;
}
#neighbourmodelsadminpanel .neighbour-models-model-desc {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}
#neighbourmodelsadminpanel .neighbour-models-metric-count {
	font-variant-numeric: tabular-nums;
	color: #475569;
}
#neighbourmodelsadminpanel .neighbour-models-topn {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
#neighbourmodelsadminpanel .neighbour-models-row-actions {
	text-align: right;
	white-space: nowrap;
}
#neighbourmodelsadminpanel .neighbour-models-row-actions form {
	display: inline;
	margin: 0 0 0 6px;
}
#neighbourmodelsadminpanel .neighbour-models-btn-danger {
	color: #b91c1c !important;
}
#neighbourmodelsadminpanel .neighbour-models-type-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 4px;
	margin-right: 4px;
	vertical-align: middle;
}
#neighbourmodelsadminpanel .neighbour-models-type-badge--system {
	background: #e0f2fe;
	color: #0369a1;
}
#neighbourmodelsadminpanel .neighbour-models-type-badge--user {
	background: #ecfdf5;
	color: #047857;
}
#neighbourmodelsadminpanel .neighbour-models-type-badge--default {
	background: #fef3c7;
	color: #b45309;
}
#neighbourmodelsadminpanel .neighbour-models-region-input {
	width: 200px;
	max-width: 100%;
}
#neighbourmodelsadminpanel .neighbour-models-region-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.55;
	max-width: 40em;
}
#neighbourmodelsadminpanel .neighbour-models-metrics-colhead {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 0 10px;
	border-bottom: 2px solid #a6c9e2;
	font-size: 10px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
}
#neighbourmodelsadminpanel .neighbour-models-metrics-colhead__metric {
	flex: 1;
	min-width: 0;
}
#neighbourmodelsadminpanel .neighbour-models-metrics-colhead__val {
	width: 110px;
	text-align: right;
	flex-shrink: 0;
}
#neighbourmodelsadminpanel .neighbour-models-metrics-colhead__w {
	width: 120px;
	text-align: right;
	flex-shrink: 0;
}
#neighbourmodelsadminpanel .neighbour-models-survey-title {
	margin: 18px 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e2e8f0;
	font-size: 1.05em;
	font-weight: 600;
	color: #1f2937;
}
#neighbourmodelsadminpanel .neighbour-models-metric-category {
	padding: 2px 0;
}
#neighbourmodelsadminpanel .neighbour-models-category-title {
	margin: 10px 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
}
#neighbourmodelsadminpanel .neighbour-models-metric-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid #f1f5f9;
}
#neighbourmodelsadminpanel .neighbour-models-metric-row:last-child {
	border-bottom: none;
}
#neighbourmodelsadminpanel .neighbour-models-metric-label {
	flex: 1;
	min-width: 0;
	cursor: pointer;
	font-size: 14px;
}
#neighbourmodelsadminpanel .neighbour-models-metric-calc {
	color: #0f766e;
	font-weight: 500;
}
#neighbourmodelsadminpanel .neighbour-models-metric-meta {
	color: #94a3b8;
}
#neighbourmodelsadminpanel .neighbour-models-metric-val {
	width: 110px;
	flex-shrink: 0;
	text-align: right;
	font-size: 12px;
	color: #64748b;
}
#neighbourmodelsadminpanel .neighbour-models-metric-val-empty {
	font-size: 11px;
	color: #cbd5e1;
}
#neighbourmodelsadminpanel .neighbour-models-metric-w {
	width: 120px;
	flex-shrink: 0;
}
#neighbourmodelsadminpanel .neighbour-models-metric-w label {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-bottom: 3px;
	font-weight: 600;
}
#neighbourmodelsadminpanel .neighbour-models-metric-w input[type="number"] {
	width: 100%;
	box-sizing: border-box;
}
#neighbourmodelsadminpanel .neighbour-models-info-icon {
	color: #94a3b8;
}
#neighbourmodelsadminpanel a.neighbour-models-info-icon:hover {
	color: #2191c0;
}
#neighbourmodelsadminpanel .neighbour-models-details {
	margin-top: 20px;
}
#neighbourmodelsadminpanel .neighbour-models-details > summary {
	cursor: pointer;
	padding: 10px 14px;
	font-weight: 600;
	color: #334155;
	background: #f8fafc;
	border: 1px solid #a6c9e2;
	border-radius: 4px;
	list-style: none;
	user-select: none;
}
#neighbourmodelsadminpanel .neighbour-models-details > summary:hover {
	background: #f1f5f9;
}
#neighbourmodelsadminpanel .neighbour-models-details > summary .fas {
	margin-right: 6px;
	color: #2191c0;
}
#neighbourmodelsadminpanel .neighbour-models-details > summary::-webkit-details-marker {
	display: none;
}
#neighbourmodelsadminpanel .neighbour-models-details[open] > summary {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: none;
}
#neighbourmodelsadminpanel .neighbour-models-details-inner {
	padding: 14px 16px 16px;
	border: 1px solid #a6c9e2;
	border-top: none;
	border-radius: 0 0 4px 4px;
	background: #fcfdfd;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}
#neighbourmodelsadminpanel .neighbour-models-details-inner code.inline {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}
#neighbourmodelsadminpanel .neighbour-models-details-inner ol {
	padding-left: 22px;
	margin: 0;
}
#neighbourmodelsadminpanel .neighbour-models-tip {
	margin-top: 12px;
	color: #64748b;
	font-size: 14px;
}
#neighbourmodelsadminpanel .neighbour-models-preview-block {
	margin-top: 20px;
}
#neighbourmodelsadminpanel .neighbour-models-preview-hint {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 10px;
}
#neighbourmodelsadminpanel .neighbour-models-preview-table {
	font-size: 13px;
}
#neighbourmodelsadminpanel .neighbour-models-preview-rank {
	color: #94a3b8;
	width: 40px;
}
#neighbourmodelsadminpanel .neighbour-models-preview-dist {
	text-align: right;
	width: 100px;
	font-family: ui-monospace, monospace;
}
#neighbourmodelsadminpanel .neighbour-models-dist--low {
	color: #059669;
}
#neighbourmodelsadminpanel .neighbour-models-dist--mid {
	color: #d97706;
}
#neighbourmodelsadminpanel .neighbour-models-dist--high {
	color: #6b7280;
}
#neighbourmodelsadminpanel .neighbour-models-muted {
	color: #64748b;
	margin: 0;
}
#neighbourmodelsadminpanel .neighbour-models-preview-err {
	margin: 0;
}


/* #ai-chat-widget-toggle{
	display: none;
}

#ai-chat-widget-promo {
	display: none;
} */

/* ============================================================
   App left sidebar (body.has-sidebar layout)
   ============================================================ */

:root {
	--app-sidebar-width: 240px;
}

.app-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--app-sidebar-width);
	display: flex;
	flex-direction: column;
	background-color: #fafbfc;
	border-right: 1px solid #e3e8ee;
	z-index: 99998;
	box-sizing: border-box;
}

.app-sidebar-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 10px 16px;
	flex-shrink: 0;
}

.app-sidebar-logo-link {
	display: flex;
	align-items: center;
	min-width: 0;
}

.app-sidebar-logo {
	height: 38px;
	width: auto;
	max-width: 100%;
}

.app-sidebar-close {
	display: none;
	background: none;
	border: none;
	font-size: 18px;
	color: #5b6770;
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
}

.app-sidebar-close:hover {
	background-color: #eef1f4;
	color: #1a1f23;
}

/* help link beside the logo — desktop only, the top bar covers mobile */
.app-sidebar-help {
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	color: #5b6770;
	padding: 6px 8px;
	border-radius: 6px;
	margin-left: auto;
	text-decoration: none;
}

.app-sidebar-help:hover {
	background-color: #eef1f4;
	color: #1a1f23;
}

/* current user block at the bottom — desktop only */
.app-sidebar-user {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	margin-bottom: 6px;
	border-radius: 6px;
}

.app-sidebar-user-avatar {
	font-size: 24px;
	color: #8792a2;
	flex-shrink: 0;
}

.app-sidebar-user-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.app-sidebar-user-name {
	font-size: 13px;
	font-weight: 600;
	color: #1a1f23;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-sidebar-user-council {
	font-size: 11.5px;
	color: #6b7684;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.3;
}

.app-sidebar-council-row {
	margin-bottom: 8px;
}

.app-sidebar-user-signout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #8792a2;
	padding: 6px 8px;
	border-radius: 6px;
	flex-shrink: 0;
	text-decoration: none;
}

.app-sidebar-user-signout:hover,
.app-sidebar-user-signout:focus {
	background-color: #fdecec;
	color: #c0392b;
	text-decoration: none;
}

/* instant CSS tooltip for icon-only sidebar controls */
.app-sidebar-tooltip {
	position: relative;
}

.app-sidebar-tooltip::before {
	content: attr(data-tooltip);
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	padding: 5px 9px;
	background: #1e3a5f;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	border-radius: 5px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 6;
}

.app-sidebar-tooltip::after {
	content: '';
	position: absolute;
	right: 10px;
	bottom: calc(100% + 2px);
	border: 5px solid transparent;
	border-top-color: #1e3a5f;
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	z-index: 6;
}

.app-sidebar-tooltip:hover::before,
.app-sidebar-tooltip:hover::after,
.app-sidebar-tooltip:focus-visible::before,
.app-sidebar-tooltip:focus-visible::after {
	opacity: 1;
	transform: translateY(0);
}

.app-sidebar-nav {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 6px 10px 10px 10px;
}

.app-sidebar-bottom {
	flex-shrink: 0;
	padding: 8px 10px 12px 10px;
	border-top: 1px solid #e3e8ee;
}

.app-sidebar-group {
	list-style: none;
	margin: 0;
	padding: 0;
}

.app-sidebar-group li {
	margin: 1px 0;
}

.app-sidebar-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 6px;
	color: #3c4654;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.3;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.app-sidebar-link i {
	width: 18px;
	text-align: center;
	font-size: 14px;
	color: #8792a2;
	flex-shrink: 0;
	transition: color 0.12s ease;
}

.app-sidebar-link span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-sidebar-link:hover {
	background-color: #eef1f4;
	color: #1a1f23;
}

.app-sidebar-link:hover i {
	color: #3c4654;
}

.app-sidebar-link--active,
.app-sidebar-link--active:hover {
	background-color: #e7f1fa;
	color: #0c4c8a;
}

.app-sidebar-link--active i,
.app-sidebar-link--active:hover i {
	color: #0c4c8a;
}

.app-sidebar-section {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid #e3e8ee;
}

.app-sidebar-section-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7684;
	padding: 0 10px 6px 10px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- survey quick-switcher popover ---- */

.app-sidebar-survey-switcher {
	position: relative;
}

.app-sidebar-survey-trigger {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7684;
	padding: 4px 10px;
	margin-bottom: 2px;
	border-radius: 6px;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.app-sidebar-survey-trigger span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-sidebar-survey-trigger i {
	font-size: 11px;
	color: #8792a2;
	flex-shrink: 0;
	transition: color 0.12s ease;
}

.app-sidebar-survey-trigger:hover,
.app-sidebar-survey-trigger[aria-expanded="true"] {
	background-color: #eef1f4;
	color: #1a1f23;
}

.app-sidebar-survey-trigger:hover i,
.app-sidebar-survey-trigger[aria-expanded="true"] i {
	color: #3c4654;
}

.app-sidebar-survey-popover {
	position: absolute;
	top: calc(100% + 2px);
	left: 4px;
	right: 4px;
	background-color: #fff;
	border: 1px solid #e3e8ee;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(15, 23, 32, 0.14);
	padding: 4px;
	max-height: 300px;
	overflow-y: auto;
	z-index: 5;
}

.app-sidebar-survey-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.app-sidebar-survey-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 6px;
	color: #3c4654;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.app-sidebar-survey-item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-sidebar-survey-item i {
	font-size: 12px;
	color: #8792a2;
	flex-shrink: 0;
}

.app-sidebar-survey-item:hover {
	background-color: #eef1f4;
	color: #1a1f23;
}

.app-sidebar-survey-item--current,
.app-sidebar-survey-item--current:hover {
	background-color: #e7f1fa;
	color: #0c4c8a;
}

.app-sidebar-survey-item--current i {
	color: #0c4c8a;
}

.app-sidebar-survey-list-footer {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid #e3e8ee;
}

/* ---- council row (own line below user, dropdown styling) ---- */

.app-sidebar-council-switcher {
	position: relative;
	min-width: 0;
}

.app-sidebar-council-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	background-color: #fff;
	border: 1px solid #d8dee6;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: #3c4654;
	padding: 8px 10px;
	line-height: 1.3;
	box-shadow: 0 1px 2px rgba(15, 23, 32, 0.06);
	cursor: pointer;
	text-align: left;
	margin: 0;
	transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.app-sidebar-council-trigger span {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-sidebar-council-trigger i {
	font-size: 11px;
	color: #8792a2;
	flex-shrink: 0;
	margin-left: auto;
	transition: color 0.12s ease, transform 0.12s ease;
}

.app-sidebar-council-trigger:hover {
	background-color: #f8fafc;
	border-color: #c5ced8;
}

.app-sidebar-council-trigger[aria-expanded="true"] {
	background-color: #f8fafc;
	border-color: #0c4c8a;
	box-shadow: 0 0 0 2px rgba(12, 76, 138, 0.12);
}

.app-sidebar-council-trigger[aria-expanded="true"] i {
	color: #0c4c8a;
	transform: rotate(180deg);
}

.app-sidebar-council-popover {
	position: absolute;
	bottom: calc(100% + 4px);
	left: 0;
	right: 0;
	background-color: #fff;
	border: 1px solid #e3e8ee;
	border-radius: 6px;
	box-shadow: 0 -4px 18px rgba(15, 23, 32, 0.14);
	padding: 4px;
	max-height: 240px;
	overflow-y: auto;
	z-index: 5;
}

.app-sidebar-council-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.app-sidebar-council-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 6px;
	color: #3c4654;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	transition: background-color 0.12s ease, color 0.12s ease;
}

.app-sidebar-council-item span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-sidebar-council-item i {
	font-size: 12px;
	color: #8792a2;
	flex-shrink: 0;
}

.app-sidebar-council-item:hover {
	background-color: #eef1f4;
	color: #1a1f23;
}

.app-sidebar-council-item--current,
.app-sidebar-council-item--current:hover {
	background-color: #e7f1fa;
	color: #0c4c8a;
}

.app-sidebar-council-item--current i {
	color: #0c4c8a;
}

/* top-bar logo — only shown on small screens, where the sidebar (and its logo) is off-canvas */
.app-topbar-logo {
	display: none;
	margin-left: 8px;
}

@media (max-width: 992px) {

	body.has-sidebar .app-topbar-logo {
		display: flex;
	}
}

/* hamburger in the top bar — hidden on desktop */
.app-sidebar-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 18px;
	color: #3c4654;
	cursor: pointer;
	padding: 8px 10px;
	border-radius: 6px;
	margin-left: 8px;
}

.app-sidebar-toggle:hover {
	background-color: #eef1f4;
}

.app-sidebar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background-color: rgba(15, 23, 32, 0.45);
	z-index: 99999;
}

/* ---- content offsets when the sidebar is present ---- */

body.has-sidebar .container {
	padding-left: var(--app-sidebar-width);
	box-sizing: border-box;
}

body.has-sidebar .headerCnt {
	left: var(--app-sidebar-width);
	width: auto;
	right: 0;
	border-bottom: 1px solid #e3e8ee;
}

body.has-sidebar .header {
	max-width: none;
	margin: 8px 20px 0 12px;
}

body.has-sidebar .blueLine {
	display: none;
}

body.has-sidebar #footer {
	margin-left: var(--app-sidebar-width);
	width: auto;
}

/* the scroll-fixed header hacks assume the old full-width header */
body.has-sidebar .header.scrollFixed {
	position: relative;
	top: auto;
	background-color: transparent;
	margin: 8px 20px 0 12px;
	border-bottom: none;
}

body.has-sidebar .main.scrollFixed {
	margin-top: 0;
}

/* ---- desktop: sidebar drives section switching on the survey overview,
        so collapsed accordion headers are hidden ---- */

@media (min-width: 993px) {

	/* user info and help live in the sidebar; hide their top-bar versions */
	.app-sidebar-help {
		display: inline-flex;
	}

	.app-sidebar-user {
		display: flex;
	}

	body.has-sidebar .header-right .user-menu-wrapper,
	body.has-sidebar .header-right .supportIcon {
		display: none;
	}

	/* slimmer breadcrumbs bar — the top bar only carries breadcrumbs here */
	body.has-sidebar .headerCnt {
		height: 48px;
	}

	body.has-sidebar .header {
		height: 48px;
		margin: 0 20px 0 12px;
	}

	body.has-sidebar .header-left {
		height: auto;
	}

	body.has-sidebar .main {
		padding-top: 58px;
	}

	/* graphparams / reportparams sticky rows — 48px header (was 64px) */
	body.has-sidebar .main.paramsMain {
		--params-actions-sticky-top: 58px;
		--params-tabs-sticky-top: 50px;
	}

	body.has-sidebar .main.paramsMain #tabs .ui-tabs-nav {
		top: 50px;
	}

	body.has-sidebar .councilsList .orgNameAndSelectors,
	body.has-sidebar #metrics .orgNameAndSelectors,
	body.has-sidebar .reportcomparators .orgNameAndSelectors,
	body.has-sidebar .graphCouncilsList .orgNameAndSelectors {
		top: 89px;
	}

	body.has-sidebar .councilsList .orgGroupNameAndSelectors,
	body.has-sidebar #metrics .orgGroupNameAndSelectors,
	body.has-sidebar .reportcomparators .orgGroupNameAndSelectors,
	body.has-sidebar .graphCouncilsList .orgGroupNameAndSelectors {
		top: 129px;
	}

	body.has-sidebar .graphCouncilsList .orgNameAndSelectors,
	body.has-sidebar #reportcomparators .graphCouncilsList .orgNameAndSelectors {
		top: 48px !important;
	}

	body.has-sidebar .graphCouncilsList .orgGroupNameAndSelectors,
	body.has-sidebar #reportcomparators .graphCouncilsList .orgGroupNameAndSelectors {
		top: 89px;
	}

	/* smaller sidebar logo to balance the slimmer top bar */
	.app-sidebar-top {
		padding: 12px 16px 8px 16px;
	}

	.app-sidebar-logo {
		height: 30px;
	}

	body.has-sidebar.cpanel-page #accordion > h3:not(.ui-accordion-header-active) {
		display: none;
	}

	/* headers are not clickable switchers in this mode — drop the arrow */
	body.has-sidebar.cpanel-page #accordion > h3 .ui-accordion-header-icon {
		display: none;
	}

	body.has-sidebar.cpanel-page #accordion > h3.ui-accordion-icons {
		padding-left: 18px;
	}
}

/* ---- mobile: off-canvas drawer ---- */

@media (max-width: 992px) {

	.app-sidebar {
		transform: translateX(-100%);
		/* visibility keeps the closed drawer out of the tab order and
		   accessibility tree; the delay lets the slide-out finish first */
		visibility: hidden;
		transition: transform 0.22s ease, visibility 0s linear 0.22s;
		z-index: 100000;
		box-shadow: none;
		will-change: transform;
	}

	body.app-sidebar-open .app-sidebar {
		transform: translateX(0);
		visibility: visible;
		transition: transform 0.22s ease, visibility 0s;
		box-shadow: 0 10px 40px rgba(15, 23, 32, 0.25);
	}

	body.app-sidebar-open .app-sidebar-backdrop {
		display: block;
	}

	.app-sidebar-close {
		display: inline-flex;
	}

	body.has-sidebar .app-sidebar-toggle {
		display: inline-flex;
		align-items: center;
	}

	body.has-sidebar .container {
		padding-left: 0;
	}

	body.has-sidebar .headerCnt {
		left: 0;
	}

	body.has-sidebar #footer {
		margin-left: 0;
	}
}

@media (max-width: 992px) and (prefers-reduced-motion: reduce) {

	.app-sidebar,
	body.app-sidebar-open .app-sidebar {
		transition: none;
	}
}

@media print {

	body.has-sidebar .container {
		padding-left: 0;
	}

	body.has-sidebar .headerCnt {
		left: 0;
	}

	body.has-sidebar #footer {
		margin-left: 0;
	}
}

/* =====================================================
   Survey overview page (?action=overview)
   ===================================================== */

.overview-page-content {
	max-width: 1100px;
}

/* ---- status banner (mirrors cpanel's .submission-guidance look) ---- */

.overview-banner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	--overview-icon-size: 26px;
	--overview-title-gap: 14px;
	margin: 10px 0 22px;
	padding: 18px 22px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.overview-banner-title {
	display: flex;
	align-items: center;
	gap: var(--overview-title-gap);
}

.overview-banner-icon {
	font-size: var(--overview-icon-size);
	line-height: 1;
	flex-shrink: 0;
}

.overview-banner-body {
	flex: 1;
	min-width: 0;
}

.overview-banner-body h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.overview-banner-body p {
	margin: 4px 0 0;
	padding-left: calc(var(--overview-icon-size) + var(--overview-title-gap));
}

.overview-banner-cta {
	flex-shrink: 0;
	align-self: flex-start;
	white-space: nowrap;
}

.overview-banner.urgent {
	background: #fdf3e8;
	border: 1px solid #ecd2b0;
	border-left: 4px solid #e67e00;
	color: #5c3a1a;
}

.overview-banner.urgent .overview-banner-icon {
	color: #e67e00;
}

.overview-banner.urgent .overview-countdown {
	font-weight: bold;
	color: #c05f00;
}

.overview-banner.success {
	background: #edf7ed;
	border: 1px solid #c3e0c3;
	border-left: 4px solid #4caf50;
	color: #1e4620;
}

.overview-banner.success .overview-banner-icon {
	color: #388e3c;
}

.overview-banner.neutral {
	background: #e8f4fd;
	border: 1px solid #b8d4e8;
	border-left: 4px solid #2196F3;
	color: #1a3d5c;
}

.overview-banner.neutral .overview-banner-icon {
	color: #1976D2;
}

/* ---- peers + trends cards ---- */

.overview-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.overview-card {
	background: #f5f7fa;
	border-radius: 8px;
	padding: 18px 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
}

.overview-card-title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: bold;
	color: #444;
}

.overview-card-title i {
	margin-right: 6px;
	color: #30afff;
}

.overview-peers {
	flex: 1 1 280px;
	max-width: 340px;
}

.overview-trends {
	flex: 2 1 420px;
	min-width: 0;
}

.overview-peers-count {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.overview-peers-number {
	font-size: 40px;
	font-weight: bold;
	line-height: 1;
	color: #2196F3;
}

.overview-peers-of {
	font-size: 16px;
	color: #777;
}

.overview-peers-label {
	margin: 6px 0 10px;
	font-size: 13px;
	color: #555;
}

.overview-peers-bar {
	height: 8px;
	border-radius: 4px;
	background: #e0e6ec;
	overflow: hidden;
	margin-bottom: 12px;
}

.overview-peers-bar-fill {
	height: 100%;
	border-radius: 4px;
	background: #2196F3;
}

.overview-peers-note {
	margin: 0;
	font-size: 12px;
	color: #666;
}

.overview-peers-note i {
	margin-right: 4px;
}

/* ---- quick actions ---- */

.overview-actions .if-grid-item.overview-action-attention {
	background: #fdf3e8;
	box-shadow: 0 2px 4px rgba(230, 126, 0, 0.18);
	border: 1px solid #ecd2b0;
}

.overview-actions .if-grid-item.overview-action-attention .if-grid-icon {
	color: #e67e00;
}

@media (max-width: 700px) {

	.overview-banner {
		flex-wrap: wrap;
	}

	.overview-banner-cta {
		margin-left: calc(var(--overview-icon-size) + var(--overview-title-gap));
	}

	.overview-peers {
		max-width: none;
	}
}

/* ---- Pulse survey detail page ---- */

.notification-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
}

.notification-hint {
	color: #64748b;
	font-size: 13px;
}

.usersurvey-page .us-page {
	max-width: 920px;
}

.usersurvey-page .us-hero-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 24px;
	margin: 16px 0 24px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.usersurvey-page .us-hero-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.usersurvey-page .us-hero-title {
	font-size: 1.5rem;
	line-height: 1.3;
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.usersurvey-page .usTitleEdit input,
.usersurvey-page input#usTitle {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 1.25rem;
	font-weight: 600;
}

.usersurvey-page .us-hero-meta {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

.usersurvey-page .us-hero-meta strong {
	color: #1f2937;
}

.usersurvey-page .us-hero-desc {
	margin: 16px 0 0;
	color: #334155;
	line-height: 1.6;
	font-size: 15px;
}

.usersurvey-page .us-hero-edit textarea,
.usersurvey-page #usDescEdit textarea {
	width: 100%;
	max-width: 100%;
	min-height: 120px;
	box-sizing: border-box;
	margin-bottom: 12px;
}

.usersurvey-page .us-sections {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.usersurvey-page .us-response-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.usersurvey-page .us-response-field {
	padding: 18px 0;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	background: transparent;
}

.usersurvey-page .us-response-field:first-child {
	padding-top: 0;
}

.usersurvey-page .us-response-field:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.usersurvey-page .us-response-question {
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 10px;
	line-height: 1.4;
}

.usersurvey-page .us-response-answer .textualInput {
	width: 100% !important;
	max-width: none;
	box-sizing: border-box;
	min-height: 72px;
}

.usersurvey-page .us-choice-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.usersurvey-page .us-choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.usersurvey-page .us-choice input {
	margin-top: 3px;
	flex-shrink: 0;
}

.usersurvey-page .us-response-actions {
	margin-top: 16px;
}

.usersurvey-page .us-results-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 16px;
}

.usersurvey-page .usQuestionAnswer {
	margin-bottom: 0;
	padding: 20px 0;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	background: transparent;
}

.usersurvey-page .usQuestionAnswer:first-child {
	padding-top: 0;
}

.usersurvey-page .usQuestionAnswer:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.usersurvey-page .usQuestionAnswer h3 {
	margin: 0 0 14px;
	font-size: 16px;
	color: #1e293b;
}

.usersurvey-page .us-chart-actions {
	margin-top: 12px;
}

.usersurvey-page .us-empty-state {
	color: #64748b;
	font-style: italic;
	margin: 0;
}

.usersurvey-page .us-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.usersurvey-page .us-panel-title {
	margin: 0 0 16px;
	font-size: 18px;
	color: #1e293b;
}

.usersurvey-page .us-discussion-compose {
	margin-bottom: 16px;
}

.usersurvey-page .us-discussion-trigger,
.usersurvey-page #newcommenttrigger {
	display: block;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #f8fafc;
	color: #64748b;
	font-size: 14px;
}

.usersurvey-page .us-discussion-draft,
.usersurvey-page .uscomment {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-top: 0;
	clear: none;
}

.usersurvey-page .us-discussion-draft .commenttext,
.usersurvey-page .us-discussion-thread .commenttext {
	float: none;
	width: auto;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	line-height: 1.5;
}

.usersurvey-page .us-discussion-draft .commenttext {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.usersurvey-page .us-discussion-draft textarea,
.usersurvey-page #newcommentform textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 90px;
	margin-top: 6px;
}

.usersurvey-page .us-discussion-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
}

.usersurvey-page #newcommentform p {
	float: none;
	margin-left: 0;
	clear: none;
	padding: 0;
}

.usersurvey-page #newcommentform button.ifBtn {
	float: none;
	margin-left: 0;
	margin-top: 0;
	clear: none;
}

.usersurvey-page .us-discussion-privacy {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

.usersurvey-page .us-discussion-thread {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.usersurvey-page .us-discussion-thread .uscomment {
	padding-top: 0;
	border-top: 1px solid #f1f5f9;
	padding-top: 16px;
}

.usersurvey-page .us-discussion-thread .uscomment:first-child {
	border-top: none;
	padding-top: 0;
}

.usersurvey-page .userbadge {
	float: none;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	line-height: 44px;
	font-size: 16px;
	border-radius: 10px;
	margin: 0;
}

.usersurvey-page .commentmeta {
	font-size: 12px;
	margin-bottom: 4px;
}

.usersurvey-page .commenttext p {
	margin: 0;
	color: #334155;
	line-height: 1.55;
}

@media (max-width: 768px) {

	.usersurvey-page .us-hero-card,
	.usersurvey-page .us-panel {
		padding: 16px;
	}

	.usersurvey-page .us-hero-title {
		font-size: 1.25rem;
	}

	.usersurvey-page .us-discussion-form-actions {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ---- Custom input / bulk upload forms ---- */

.custom-input-page .main {
	max-width: 920px;
}

.custom-input-page .visually-hidden {
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.custom-input-page .reformed-form fieldset {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	padding: 0;
	margin: 0 0 16px;
	overflow: hidden;
}

.custom-input-page .reformed-form legend {
	display: block;
	width: 100%;
	box-sizing: border-box;
	float: none;
	margin: 0;
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	background: #fff;
	border: none;
	border-bottom: 2px solid #4297d7;
	box-shadow: 0 3px 10px -2px rgba(66, 151, 215, 0.16);
}

.custom-input-page .uploadForm,
.custom-input-page .file-upload-container {
	padding: 18px 20px;
}

.custom-input-page .reformed-form p,
.custom-input-page .file-upload-container > p {
	color: #334155;
	line-height: 1.6;
	margin: 0 0 12px;
}

.custom-input-page .reformed-form p:last-child {
	margin-bottom: 0;
}

.custom-input-page .reformed-form .bullet-list {
	margin: 0 0 12px 1.25rem;
	color: #334155;
	line-height: 1.6;
}

.custom-input-page .reformed-form dl {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin: 16px 0 0;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
}

.custom-input-page .reformed-form dt {
	width: auto;
	min-width: 0;
}

.custom-input-page .reformed-form dt label {
	width: auto;
	font-weight: 600;
	color: #1e293b;
}

.custom-input-page .reformed-form dd {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.custom-input-page .custom-input-file-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.custom-input-page .custom-input-filename,
.custom-input-page #fileName {
	color: #64748b;
	font-size: 14px;
}

.custom-input-page label.ifBtn[for] {
	display: inline-flex;
	cursor: pointer;
	vertical-align: middle;
}

.custom-input-page .custom-input-errors,
.custom-input-page #errors {
	margin: 0 20px 16px;
	padding: 14px 16px;
	border-radius: 8px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 14px;
	line-height: 1.5;
}

.custom-input-page .custom-input-preview,
.custom-input-page #preview {
	padding: 0 20px 18px;
}

.custom-input-page #preview h3 {
	margin: 16px 0 10px;
	font-size: 16px;
	color: #1e293b;
}

.custom-input-page .custom-input-cover-sheet {
	margin: 0 20px 18px;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8fafc;
}

.custom-input-page .custom-input-cover-sheet dl {
	margin-top: 0;
}

.custom-input-page .custom-input-actions {
	margin: 0 0 24px;
	padding: 0;
}

.custom-input-page .file-upload-container .custom-input-actions {
	margin-top: 16px;
}

.custom-input-page .submitInfo {
	color: #334155;
	margin: 0 0 12px;
	line-height: 1.5;
}

.custom-input-page #uploadBtn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: #6c757d;
}

@media (min-width: 640px) {

	.custom-input-page .reformed-form dl {
		flex-direction: row;
		align-items: center;
	}
}

@media (max-width: 768px) {

	.custom-input-page .uploadForm,
	.custom-input-page .file-upload-container {
		padding: 16px;
	}

	.custom-input-page .custom-input-preview,
	.custom-input-page #preview,
	.custom-input-page .custom-input-errors,
	.custom-input-page #errors,
	.custom-input-page .custom-input-cover-sheet {
		margin-left: 0;
		margin-right: 0;
		padding-left: 16px;
		padding-right: 16px;
	}
}