:root
{
	--off-white: rgb(245, 245, 245);
	--overlay-white: rgb(240, 240, 240);
	--off-black: rgb(50, 50, 50);
	--overlay-black: rgba(0, 0, 0, 0.1);

	--border-color: rgb(230, 230, 230);
	--border-radius: 0.35em;

	--body-padding: 1em;

	--blue: rgb(15, 100, 255);
	--light-blue: rgb(150, 180, 255);
}

#CALC_body *
{
	font-family: sans-serif;
	color: var(--off-black);

	box-sizing: border-box;

	scroll-behavior: smooth;
	overscroll-behavior: none;
}

#CALC_html, #CALC_body
{
	width: 100%;

	display: flex;
	align-items: center;

	margin: 0;
	padding: 0;

	background-color: white;

	overflow: hidden;
}

#CALC_html
{
	height: 75%;
}

#CALC_body
{
	height: 100%;
}

.CALC_no_click
{
	pointer-events: none;
}

.CALC_rounded
{
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
}

.CALC_flexbox
{
	display: flex;
}

.CALC_flexbox_center
{
	justify-content: center;
	align-items: center;
}

.CALC_flexbox_gap
{
	gap: 1em;
}

.CALC_container
{
	width: 100%;
	height: 100%;
}

.CALC_sidebar
{
	width: calc((1 / 3) * 100%);
	max-width: 20em;
	height: 100%;

	display: flex;
	flex-direction: column;

	overflow-x: hidden;

	background-color: var(--off-white);
}

.CALC_sidebar_header
{
	width: 100%;
	height: 3em;

	padding-left: var(--body-padding);
	padding-right: var(--body-padding);

	border: 0;
	border-bottom: 1px solid var(--off-black);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;

	background-color: var(--overlay-black);
}

.CALC_sidebar_header > h4
{
	color: black;
}

.CALC_sidebar_body
{
	overflow-x: hidden;
	overflow-y: scroll;
}

.CALC_sidebar_element
{
	width: 100%;
	height: 3em;

	padding-left: var(--body-padding);
	padding-right: calc(var(--body-padding) * 1.5);

	display: flex;
	justify-content: space-between;
	align-items: center;

	transition: all 0.25s;

	cursor: pointer;
}

.CALC_sidebar_element:hover
{
	padding-left: calc(var(--body-padding) * 2);

	background-color: var(--overlay-black);
}

.CALC_sidebar_element:hover *
{
	color: var(--blue);
}

.CALC_sidebar_element p
{
	margin-top: 1em;
	margin-bottom: 1em;
}

.CALC_container_body
{
	width: 100%;
	height: 100%;

	background-color: var(--off-white);
}

#CALC_body table
{
	width: 100%;

	border-collapse: collapse;

	table-layout: fixed;
}

#CALC_body thead, #CALC_body tfoot, .CALC_table_header
{
	height: 3em;

	top: 0;
	position: sticky;

	border-bottom: 1px solid var(--off-black);

	z-index: 199;
}

#CALC_body tfoot
{
	border-bottom: none;
	border-top: 1px solid var(--off-black);
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

#CALC_body thead th, #CALC_body tfoot th, .CALC_table_header th
{
	background-color: var(--overlay-black);

	color: black;
}

#CALC_body thead th:first-of-type
{
	border-top-left-radius: var(--border-radius);
}

#CALC_body thead th:last-of-type
{
	border-top-right-radius: var(--border-radius);
}

#CALC_body tfoot th:first-of-type
{
	border-bottom-left-radius: var(--border-radius);
}

#CALC_body tfoot th:last-of-type
{
	border-bottom-right-radius: var(--border-radius);
}

.CALC_table_body
{
	width: 100%;
	height: calc(100% - 6em);

	overflow-x: hidden;
	overflow-y: scroll;
}

#CALC_body tbody tr
{
	border-bottom: 1px solid var(--border-color);
}

#CALC_body tbody td
{
	height: 3em;

	padding: var(--body-padding);
}

#CALC_body tbody td:not(:first-child)
{
	border-left: 1px solid var(--border-color);
}

.CALC_protocol_name
{
	justify-content: space-between;
	align-items: center;

	cursor: pointer;

	transition: all 0.25s;
}

.CALC_protocol_name *
{
	transition: all 0.25s;
}

.CALC_protocol_name:hover
{
	color: var(--blue);
}

.CALC_protocol_name:hover *
{
	color: var(--blue);
}

.CALC_protocol_name ion-icon:hover
{
	color: red;
}

.CALC_protocol_control_panel
{
	flex-direction: column;

	padding: var(--body-padding);

	background-color: var(--light-blue);

	border: none;
}

.CALC_protocol_control_panel > *
{
	margin: 0;
}

#CALC_body button
{
	padding: 0.5em;

	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);

	background-color: var(--off-white);

	cursor: pointer;
}

#CALC_body button:hover
{
	background-color: var(--overlay-white);
}

#CALC_total_size_indicator
{
	font-weight: normal;
	font-style: normal;
	font-size: 1rem;
}

#CALC_body .dropdown_container
{
	background-color: var(--off-white);

	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
}

#CALC_body .dropdown_container > *
{
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}

#CALC_body .dropdown_row:first-child
{
	padding-top: 1em;

	border-top-left-radius: var(--border-radius);
	border-top-right-radius: var(--border-radius);
}

#CALC_body .dropdown_row:last-child
{
	padding-bottom: 1em;

	border-bottom-left-radius: var(--border-radius);
	border-bottom-right-radius: var(--border-radius);
}

#CALC_body .dropdown_row
{
	padding-left: 1em;

	font-size: small;

	cursor: pointer;
}

#CALC_body .dropdown_row:hover
{
	background-color: var(--overlay-black);
}
