/* ===================================================== */
/* ======================== MENUS ====================== */
/* ===================================================== */

.cockpitNav {
	margin: 10px;
	padding: 10px;

	display: flex;
	flex-direction: row;
	align-items: center;
	flex-shrink: 0;
	column-gap: 10px;

	border-radius: 8px;

	background-color: var(--clr-main-dark);
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;

	transition: all .2s linear;
}

.cockpitNav > h1 {
	margin: 0;
	color: #FFFFFF;

	font-size: 20px;
}

.cockpitNav > button {
	height: 45px;
}

.cockpitNav .cockpitOpenSideNav {
	background-color: transparent;
	border: none;
}

.cockpitSideNav {
	position: absolute;

	top: 0;
	left: 0;

	height: 100vh;
	width: 400px;
	padding: 10px;

	display: flex;
	flex-direction: column;

	background-color: #FFFFFF;
	box-shadow: rgb(0 0 0 / 10%) 0px 10px 15px -3px, rgb(0 0 0 / 5%) 0px 4px 6px -2px;

	z-index: 10;
}

@media screen and (max-width: 750px) {
	.cockpitNav > h1 {
		font-size: 13px;
	}

	.cockpitSideNav {
		width: 100%;
	}
}

.cockpitSideNav > .cockpitSideNavHeader {
	position: relative;

	height: 34px;

	display: flex;
	align-items: center;
	column-gap: 8px;
}

.cockpitSideNavHeader > h1 {
	margin: 0;
	font-size: 25px;
}

.cockpitSideNav > .cockpitSideNavModuleList {
	margin-top: 30px;

	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: auto;
}

.cockpitSideNavModuleList > ul {
	width: 100%;
	margin: 0;
	padding: 0;

	list-style-type: none;
}

.cockpitSideNavModuleList > ul > li {
	width: 100%;

	display: flex;

	margin-bottom: 5px;
	padding: 10px;

	border-radius: 8px;

	color: #FFFFFF;
	background-color: var(--clr-main);
	box-shadow: rgb(0 0 0 / 5%) 0px 1px 2px 0px;
}

.cockpitSideNavModuleList > ul > li > button {
	margin-left: auto;

	background-color: transparent;
	border: none;
}

/* ===================================================== */
/* ======================== GRID ======================= */
/* ===================================================== */

.cockpitGridWrapper {
	height: auto;
	width: 100%;
	padding: 10px;
	padding-top: 0;

	position: relative;

	display: flex;
	flex-wrap: wrap;

	color: #FFFFFF;
}

/* ===================================================== */
/* ====================== MODULES ====================== */
/* ===================================================== */

.cockpitGridModule {
	position: relative;

	display: flex;
	flex-direction: column;

	background-color: #FFFFFF;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;

	border-radius: 8px;
	border: none;

	transition: border .05s;
	overflow: hidden;
}
.cockpitGridModule.expanded {
	height: calc(100% - 30px) !important;
	width: calc(100% - 30px) !important;

	position: fixed;
	top: 0;
	left: 0;
	margin: 15px !important;

	background-color: #F9F9F9;
	box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;

	z-index: 9999;
}

.cockpitGridModule > button,
.cockpitGridModule > a[type="button"] {
	font-size: 17px;
}

.cockpitColLoadWheel {
	position: absolute;
	height: 30px;
	width: 30px;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	margin: auto;
}

.cockpitGridColHeader {
	height: 40px;

	margin: 0;
	padding: 10px;

	display: flex;
	flex-direction: row;
	align-items: center;
	column-gap: 8px;
	flex-shrink: 0;

	color: #777777;
	border-bottom: 1px solid #F0F0F0;
}

.cockpitGridColHeader > .cockpitGridColMoveHandle {
	font-size: 1.4rem;
	cursor: grab;
}

.cockpitGridColHeader > .cockpitGridColTitle {
	font-size: 1.2rem;
}

.cockpitGridModule.expanded > .cockpitGridColHeader {
	height: 60px;

	display: flex;
	flex-direction: row;
	align-items: center;
	column-gap: 8px;
}

.cockpitGridColMoveHandle {
	cursor: grab;
}

.cockpitGridColDel {
	height: 20px;
	width: 20px;
}

.cockpitGridColExpand {
	height: 20px;
	width: 20px;
}

.cockpitGridModule.expanded > .cockpitGridColHeader > .cockpitGridColMoveHandle,
.cockpitGridModule.expanded > .cockpitGridColHeader > .cockpitGridColDel {
	display: none;
}

.cockpitGridModule.expanded > .cockpitGridColHeader > .cockpitGridColExpand {
	height: 30px;
	width: 30px;
	margin-left: auto;
}

.cockpitGridColContent {
	height: calc(100% - 40px);
	display: flex;
	overflow: auto;
}

/* ===================================================== */
/* ================== MODULES CONTENT ================== */
/* ===================================================== */

.cockpitChartBox,
.cockpitContent {
	padding: 5px;

	height: 100%;
	width: 100%;

	display: flex;
	flex-direction: column;
	row-gap: 5px;

	color: black;
}

.cockpitContent.square {
	width: unset;
	margin: auto;
	aspect-ratio: 1/1;
}

.cockpitGridModule.expanded .cockpitContent {
	padding: 10px;
}

.cockpitChartBox > canvas {
	width: 100% !important;
	height: 100% !important;
}

.cockpitContent > .text-data {
	height: 100%;
	margin: auto;

	display: flex;
	flex-direction: column;
	justify-content: center;
}

.text-data > .label {
	width: fit-content;
	padding: 0;
	color: rgba(0,0,0,0.6);
	font-size: 1.4rem;
	font-weight: 300;
}

.text-data > .main {
	color: black;
	font-size: 5rem;
	font-weight: 700;
}

.moduleMap {
	height: 100%;
	width: 100%;
}

.moduleList {
	padding: 0;
	margin: 0;

	display: flex;
	flex-direction: column;
	row-gap: 2px;

	overflow: auto;
}

.moduleList > .list-item {
	padding: 4px;
	display: flex;
	color: black;
}

.moduleList > .list-item.header {
	border-radius: 4px;
	background: var(--bs-gray-200);
	font-weight: 700;
}

.moduleList > .list-item:not(.header):nth-child(odd) {
	border-radius: 4px;
	background: var(--bs-gray-100);
}