:root {
	--bai_accent: hsl(220, 100%, 90%);
	--bai_bar: hsl(220, 90%, 80%);
	--bai_line: hsl(220, 70%, 60%);
	--bai_split_bar: hsl(0, 100%, 80%);
	--bai_split_line: hsl(0, 80%, 60%);
}

.criteria.bai .search_field {
	width: 200px;
}

.bai_btn_timepad .tux_icon {
	--tux_icon_size: 20px;
}

.bai_btn_timepad.dark {
	border: solid 1px var(--saetta_dark);
}


.bai_widgets {
	padding-top: 12px;
	padding-bottom: 12px;
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.bai_wdg_container {
	border-radius: 8px;
	border: solid 1px var(--saetta_lit_gray);
	padding: 12px;
	display: flex;
	gap: 12px;
	flex-direction: column;
	align-items: stretch;
}

.bai_wdg_container.horizontal {
	flex-direction: row;
	justify-content: space-evenly;
	row-gap: 12px;
	flex-wrap: wrap;
}

.bai_recap, .bai_average {
	display: flex;
	gap: 8px;
	flex-direction: column;
	align-items: stretch;
}

.bai_recap_row, .bai_average_row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	font-size: 13px;
}

.bai_recap_row * {
	cursor: pointer;
}

.bai_recap_label, .bai_average_label {
	font-weight: 700;
	min-width: 75px;
	display: flex;
}

.bai_recap_box {
	padding: 4px;
	border-radius: 4px;
	width: 25%;
	font-weight: 500;
	display: flex;
	gap: 4px;
	flex-direction: column;
	align-items: stretch;
}

.bai_recap_box label, .bai_average_box label {
	font-weight: 400;
	font-size: 11px;
	display: block;
}

.bai_average_box {
	border-radius: 4px;
	padding: 2px;
	border: solid 1px var(--saetta_darkest);
	font-weight: 500;
	flex-grow: 1;
	display: flex;
	align-items: stretch;
}

.bai_average_box>div {
	width: 25%;
	text-align: center;
	padding: 4px;
	border-left: solid 1px var(--saetta_dark_gray);
}

.bai_average_box>div:first-child {
	border-left: 0;
}

.bai_expanded {
	padding: 4px;
	border-radius: 4px;
	background-color: #f8faff;
	font-size: 11px;
	font-weight: 400;
	height: 0px;
	overflow: hidden;
	opacity: 0;
	transition:
		height 180ms ease-in-out,
		opacity 180ms ease-in-out;
	flex-grow: 1;
}

.bai_expanded span {
	font-size: 10px;
	color: var(--saetta_darker_gray);
}

.expanded .bai_expanded {
	height: auto;
	opacity: 1;
}

.bai_forecast_head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 6px;
	padding-top: 0px;
}

.bai_forecast_head div {
	font-size: 13px;
	font-weight: 700;
}

.bai_forecast_head label {
	font-size: 11px;
	font-weight: 500;
	width: 90px;
}

.bai_forecast_main {
	display: flex;
	align-items: stretch;
}

.bai_forecast_main>div {
	width: 50%;
	display: flex;
	gap: 4px;
	flex-direction: column;
	align-items: stretch;
}

.bai_forecast_main>div:first-child {
	border-right: solid 1px var(--saetta_dark_gray);
}

.bai_forecast_box {
	padding: 6px;
	display: flex;
	gap: 4px;
	flex-direction: column;
	font-size: 13px;
	font-weight: 500;
}

.bai_forecast_box.L {
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
}

.bai_forecast_box.R {
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

.bai_forecast_box.B {
	border-bottom: solid 1px var(--saetta_dark_gray);
}

.bai_forecast_box>div {
	font-size: 10px;
	font-weight: 600;
}


.bai_forecast_disclaimer {
	text-align: right;
	font-size: 9px;
	color: var(--saetta_dark_gray);
}

.bai_week {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-grow: 1;
	min-height: 90px;
}

.bai_week_head {
	font-size: 13px;
	font-weight: 700;
	padding-bottom: 6px;
}

.bai_week_cols {
	padding-bottom: 4px;
	display: flex;
	border-bottom: solid 1px var(--saetta_dark_gray);
}

.bai_week_cols>div {
	font-size: 10px;
	line-height: 10px;
	font-weight: 400;
	width: 25%;
}

.bai_week_rows {
	overflow: auto;
	flex-grow: 1;

	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.bai_week_row {
	padding-top: 4px;
	padding-bottom: 4px;
	font-size: 10px;
	line-height: 10px;
	font-weight: 500;
	display: flex;
}

.bai_week_row:nth-child(even) {
	background-color: var(--saetta_liter_gray);
}

.bai_week_row>div {
	width: 25%;
}

.bai_circle {
	font-size: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
}

.bai_line {
	position: absolute;
	width: 100%;
	z-index: -100;
	border-bottom: solid 1px var(--saetta_lit_gray);
}

.bai_trend {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
}

.bai_trend_top {
	display: flex;
	gap: 8px;
	padding-bottom: 8px;
}

.bai_trend_top label {
	font-size: 14px;
	line-height: 14px;
	font-weight: 500;
}

.bai_trend_mid {
	display: flex;
	align-items: stretch;
}

.bai_trend_graph_scroller {
	flex-grow: 1;
	overflow: auto;
}

.bai_trend_graph, #bai_trend_bar {
	width: fit-content;
	min-width: 100%;
}

.bai_trend_graph {
	position: relative;
	text-align: center;
	font-size: 0;
}

.bai_trend_container {
	height: 220px;
	text-align: center;
	font-size: 0;
}

.bai_trend_wing {
	position: relative;
	min-width: 48px;
	font-size: 10px;
	line-height: 10px;
	color: var(--saetta_dark_gray);
}

.bai_trend_wing>div {
	position: absolute
}

.bai_trend_wing.left>div {
	right: 4px;
}

.bai_trend_wing.right>div {
	left: 4px;
}

.bai_trend_labels {
	display: inline-block;
	padding-top: 4px;
	writing-mode: sideways-lr;
	height: 100px;
	overflow: hidden;
}

.bai_trend_labels>div.explain>label {
	font-size: 11px;
	font-weight: 600;
	color: var(--saetta_txt);
}

.bai_trend_labels>div {
	display: flex;
	justify-content: flex-end;
}

.bai_trend_labels>div>label {
	display: block;
	font-size: 10px;
	line-height: 10px;
	color: var(--saetta_dark_gray);
	white-space: nowrap;
	max-height: 100px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bai_trend_dida {
	font-size: 10px;
	white-space: nowrap;
	background-color: var(--saetta_liter_gray);
	color: var(--saetta_darker_gray);
	padding: 6px;
	border-radius: 6px;
	box-shadow: 0 0px 4px #00000066;
	position: absolute;
	top: 0px;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
	transition:
		opacity 180ms ease-in-out;
	display: flex;
	pointer-events: none;
}

.bai_trend_dida .bai_circle {
	width: 14px;
	height: 14px;
}

.bai_trend_dida.explain {
	opacity: 1;
}

.bai_dida_period {
	padding-right: 8px;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bai_dida_period b {
	font-size: 14px;
	color: var(--saetta_txt);
}

.bai_dida_values {
	border-left: solid 1px var(--saetta_lit_gray);
	padding-left: 8px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.bai_dida_value {
	display: flex;
	gap: 8px;
}

.bai_dida_value b {
	color: var(--saetta_txt);
}

.bai_trend_conf {
	padding: 3px;
	border-radius: 6px;
	border: solid 1px var(--saetta_lit_gray);
	background-color: var(--saetta_white);
	position: absolute;
	bottom: 0px;
	left: 0px;
	display: flex;
	gap: 8px;
	--tux_input_border: 0;
	--tux_input_border_focus: 0;
	--tux_input_font_size: 10px;
	--tux_input_padding: 2px;
	--tux_input_height: 14px;
}

.bai_trend_conf>div {
	display: none;
}

.bai_trend_conf.expanded>div {
	display: flex;
}

.bai_trend_conf .tux_select_wrapper {
	--tux_icon_size: 14px;
	font-size: 0;
}

.bai_trend_conf .bai_circle {
	width: 14px;
	min-width: 14px;
	height: 14px;
}


.bai_piesplit {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.bai_piesplit_top {
	font-size: 14px;
	line-height: 14px;
	font-weight: 500;
	padding-bottom: 8px;
}

.bai_piesplit_body {
	display: flex;
	gap: 8px;
}

.bai_piesplit_container {
	height: 148px;
	width: 148px;
	border-radius: 50%;
	box-shadow: 0 0px 8px #00000066;
	position: relative;
}

.bai_piesplit_legends {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.bai_piesplit_legend {
	display: flex;
	gap: 4px;
	font-size: 10px;
	line-height: 10px;
	font-weight: 500;
}

.bai_piesplit_legend .bai_circle {
	width: 14px;
	height: 14px;
}

.bai_piesplit_dida {
	position: absolute;
	background-color: var(--saetta_liter_gray);
	box-shadow: inset 0 0px 4px #00000066;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	padding-bottom: 3px;
}

.bai_piesplit_dida>div {
	font-weight: 600;
	text-align: center;
}

.bai_piesplit_dida>span {
	font-size: 11px;
	line-height: 11px;
	color: var(--saetta_text);
}

.bai_timepad_wrapper {
	display: flex;
	gap: 0px;
	align-items: stretch;
	transition:
		gap 180ms ease-in-out,
}

.bai_timepad_wrapper.tp_visible {
	gap: 8px;
}

.bai_timepad {
	padding-top: 12px;
	width: 0px;
	opacity: 0;
	overflow: hidden;
	transition:
		opacity 180ms ease-in-out,
		width 180ms ease-in-out;
}

.bai_timepad_controlled {
	width: 100%;
	overflow: auto;
	transition:
		width 180ms ease-in-out;
}

.tp_visible .bai_timepad {
	opacity: 1;
	width: 160px;
}

.tp_visible .bai_timepad_controlled {
	width: calc(100% - 168px);
}

.bai_time_keypad {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	padding-bottom: 6px;
	margin-bottom: 6px;
	border-bottom: solid 1px var(--saetta_lit_gray);
}

.bai_time_keypad:last-child {
	border-bottom: 0;
	margin-bottom: 0;
}

.bai_time_keypad button {
	width: calc(50% - 3px);
	padding-left: 0;
	padding-right: 0;
}

.bai_time_keypad button.tp_on {
	background-color: var(--saetta_dark);
}

.bai_time_keypad button.tp_off {
	background-color: var(--saetta_dark_gray);
}


.bai_dealerstbl {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-grow: 1;
}

.bai_dealerstbl_cols {
	padding-top: 5px;
	padding-bottom: 5px;
	display: flex;
	background-color: var(--saetta_lite_gray);
	border-bottom: solid 1px var(--saetta_dark_gray);
	--tux_icon_size: 12px;
	--tux_icon_color: var(--saetta_lit);
	--tux_icon_fill: var(--saetta_lit);
}

.bai_dealerstbl_cols>div {
	font-size: 10px;
	line-height: 10px;
	font-weight: 500;
	min-width: 55px;
	display: flex;
	justify-content: center;
}

.bai_dealerstbl_cols>div.sortable {
	cursor: pointer;
}

.bai_dealerstbl_rows {
	overflow: auto;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border-bottom: solid 1px var(--saetta_dark_gray);
}

.bai_dealerstbl_row {
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 10px;
	line-height: 10px;
	font-weight: 600;
	display: flex;
}

.bai_dealerstbl_row:nth-child(even) {
	background-color: var(--saetta_liter_gray);
}

.bai_dealerstbl_row>div {
	text-align: right;
	min-width: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bai_dealerstbl_cols>div:nth-child(1),
.bai_dealerstbl_row>div:nth-child(1),
.bai_dealerstbl_cols>div:nth-child(2),
.bai_dealerstbl_row>div:nth-child(2) {
	text-align: left;
	justify-content: flex-start;
	width: 50%;
	padding-left: 4px;
}

.bai_dealerstbl_cols>div:nth-child(4),
.bai_dealerstbl_row>div:nth-child(4),
.bai_dealerstbl_cols>div:nth-child(6),
.bai_dealerstbl_row>div:nth-child(6) {
	min-width: 90px;
}