/* @import url('https://fonts.googleapis.com/css?family=Rubik&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
.c-mmd-container-page * {
	margin: 0;
	padding: 0;
	font-family: var(--main-font);
}

.c-mmd-body-evfleet {
	height: 100%;
	font-size: 13px;
	overflow-x: hidden;
	padding: 0; 
	margin: 0;
}

.c-mmd-container-page { display: flex; width: 100%; height: 100vh; font-size: 13px; overflow-x: hidden; }

nav.c-mmd-menu {
	display: flex;
	flex-direction: column;
	width: 15%;
	background: var(--navbar-background-color);
	box-sizing: border-box;
	box-shadow: 0 0 15px 5px rgba(0, 0, 0, .1);
	overflow: hidden;
	z-index: 1;
	transition: width 0.2s;
}
nav.c-mmd-menu-closed { width: calc(30px + 2rem); }

#id-nav-logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 60px;
	padding-inline: 1rem;
	background: var(--navbar-logo-background);
    white-space: nowrap;
}
#id-nav-logo-container > #id-logo-img {
	flex-shrink: 0;
	display: inline-flex;
	width: 30px;
	text-align: center;
}
#id-nav-logo-container > #id-logo-img,
#id-nav-logo-container > #id-logo-img > img {
	max-height: 100%;
	max-width: 100%;
}
#id-nav-logo-container > h1 {
    margin: 0;
    color: white;
	overflow: hidden;
    text-overflow: ellipsis;
}

#id-nav-items {
	display: flex;
	flex-direction: column;
	width: 15vw;
	height: 100%;
    padding-top: .75rem;
	box-sizing: border-box;
	overflow: hidden;
}
#id-nav-items:hover { overflow-y: auto; }
#id-nav-items > a {
	display: flex;
	align-items: center;
	gap: 1rem; /* should be equal to gap of `#id-nav-logo-container` */
	height: 30px;
	margin-bottom: 1rem;
	padding-inline: 1rem;
	color: var(--navbar-text-color);
	text-decoration: none;
	text-transform: capitalize;
}
#id-nav-items > a[disabled] {
	opacity: .5;
	pointer-events: none;
}
#id-nav-items > a:hover, #id-nav-items > a.c-mmd-active-nav-item { color: var(--primary-color); }
#id-nav-items > a > .c-mmd-nav-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	padding: 5px;
}
#id-nav-items > a:hover > .c-mmd-nav-icon,
#id-nav-items > a.c-mmd-active-nav-item > .c-mmd-nav-icon {
	background: #313247;
	border-radius: 50%;
}
#id-nav-items > a > .c-mmd-nav-icon > img { height: 100%; }
#id-nav-items > a:not(:hover):not(.c-mmd-active-nav-item) > .c-mmd-nav-icon > img.c-mmd-highlighted-icon,
#id-nav-items > a:hover > .c-mmd-nav-icon > img:not(.c-mmd-highlighted-icon),
#id-nav-items > a.c-mmd-active-nav-item > .c-mmd-nav-icon > img:not(.c-mmd-highlighted-icon) { display: none; }

#id-toggle-menu {
	display: flex;
    margin-left: auto;
	transition: transform .2s;
}
#id-toggle-menu img { width: 15px; }

nav.c-mmd-menu-closed #id-nav-logo-container > h1, 
nav.c-mmd-menu-closed #id-nav-logo-container > #id-toggle-menu { display: none; }


.c-mmd-main-page { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.c-mmd-main-head { display: flex; align-items: center; gap: .75rem; height: 60px; padding-inline: 2rem; background: var(--header-background); background-size: cover; color: var(--header-text-color); box-shadow: 0 0 15px 5px rgba(0, 0, 0, .1); z-index: 2; }
.c-mmd-main-head .c-mmd-title-icon { flex-shrink: 0; display: flex; justify-content: center; width: 20px; height: 20px; padding: 7px; background: #191A23; border-radius: 50%; }
.c-mmd-main-head .c-mmd-title-icon img { width: 100%; }
.c-mmd-main-head h2 { font-weight: 600; text-transform: capitalize; }
/* .c-mmd-main-head p:not(:empty) { margin-top: -.5rem; } */
.c-mmd-main-head .c-mmd-hamburger-menu { display: none; margin-left: auto; padding: 1rem; }
.c-mmd-main-head .c-mmd-header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.c-mmd-main-content { flex: 1; overflow: auto; }

.c-mmd-side-panel {
	display: flex;
	align-items: center;
	width: 30%;
	max-width: 600px;
    height: 100%;
    background-color: white;
    border-left: 1px solid #E8EAED;
	box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.1);
	z-index: 1;
	box-sizing: border-box;
	transition: width .2s;
}
.c-mmd-side-panel[data-open="false"] {
	width: 0;
	border: 0;
}

.c-mmd-side-panel-arrow {
	position: absolute;
	flex-shrink: 0;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	margin-inline: 10px;
	background: white;
	border-radius: 50%;
	text-align: center;
	text-decoration: none;
	font-size: 2em;
	font-weight: 100;
	color: black;
	z-index: 1000;
	box-shadow: 0 0 14px 0px rgba(0, 0, 0, .3);
	transform: translateX(-60px);
	transition: box-shadow .2s , transform .2s;
}

.c-mmd-side-panel > div {
	flex-shrink: 0; /* keep everything inside the side panel un-shrunk */
	width: 30vw;
	height: 100%;
	box-sizing: border-box;
    overflow-y: scroll;
}



/* # Form Fields # */
.c-mmd-container-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .c-mmd-body-evfleet select {
	height: 32px;
	padding: 5px 8px;
	border: 1px solid #E8EAED;
	border-radius: 5px;
	box-sizing: border-box;
}

.c-mmd-container-page input.c-mmd-loading, select.c-mmd-loading {
    padding-left: 30px;
	background: url('../assets/loading-grey.svg') left / contain no-repeat;
}

.c-mmd-container-page input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 200px;
	height: 1px;
	margin: 0;
	background-color: #D4D4D4;
	border-radius: 1px;
}
.c-mmd-container-page input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	background-color: var(--primary-color);
	border-radius: 50%;
	text-align: center;
	outline: 2px solid white;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
	transform: rotate(45deg);
	box-sizing: content-box;
	cursor: pointer;
}

/* Custom Checkbox */
label.c-mmd-checkbox:has(:focus-visible) { outline: auto; }
label.c-mmd-checkbox { display: inline-flex; align-items: center; }
label.c-mmd-checkbox.c-mmd-disabled { opacity: .5; cursor: not-allowed; }
label.c-mmd-checkbox > input { flex: 0; min-width: 0; }
label.c-mmd-checkbox > input + span { /* the track of the switch */
	flex: 0 0 auto;
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 39px;
	height: 19px;
	background-color: var(--primary-color);
	border-radius: 30px;
	transition: background .2s;
}
label.c-mmd-checkbox > input + span > span { /* the thumb of the switch */
	position: absolute;
	right: 2px;
	width: 15px;
	height: 15px;
	background-color: white;
	border-radius: 50%;
	transition: all .3s;
}
.c-mmd-checkbox > input:not(:checked) + span  { background-color: #D4D4D4; }
.c-mmd-checkbox > input:not(:checked) + span > span { right: calc(100% - 17px); }

.c-mmd-action-button.c-mmd-opposite-action-color {
    background-color: #e1e2dd;
}

.c-mmd-action-button.c-mmd-opposite-action-color:hover {
	border: 1px solid #e1e2dd;
    background-color: buttonface !important;
}




/* Action Button */
.c-mmd-action-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: .5rem;
	height: 40px;
	padding: .75rem 1.5rem;
	background-color: buttonface;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	border-radius: 20px;
	color: black;
	font-size: .9rem;
	text-transform: capitalize;
	font-weight: 600;
	/* box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2); */
	cursor: pointer;
	transition: all .2s;
}
.c-mmd-action-button[disabled] { opacity: .5; cursor: not-allowed; }
.c-mmd-action-button:not([disabled]):hover { background-color: #e1e2dd; }
.c-mmd-action-button.c-mmd-success-button { background-color: var(--primary-color); /* color: white; */ }
.c-mmd-action-button.c-mmd-success-button:not([disabled], .c-mmd-loading):hover { background-color: var(--primary-color-hvr); }
.c-mmd-action-button.c-mmd-danger-button { background-color: var(--action-color); color: white; }
.c-mmd-action-button.c-mmd-danger-button:not([disabled], .c-mmd-loading):hover { background-color: var(--action-color-hvr); }
.c-mmd-action-button.c-mmd-info-button { background-color: var(--secondary-action-color); color: white; }
.c-mmd-action-button.c-mmd-info-button:not([disabled], .c-mmd-loading):hover { background-color: var(--secondary-action-color-hvr); }
/* .c-mmd-action-button.c-mmd-loading {
	background-image: url('../assets/loading.svg');
	color: transparent;
	cursor: wait;
} */
.c-mmd-action-button img { max-height: 100%; }


/* # Tabulator Styles */
.tabulator { background: white; border: 0; }
.tabulator .tabulator-header { border-color: #E8EAED; color: #8C909A; font-weight: normal; text-transform: uppercase; }
.tabulator .tabulator-header .tabulator-col, .tabulator .tabulator-row .tabulator-cell { padding: .75rem 1rem; border-right: none; }
.tabulator .tabulator-header .tabulator-col { padding-block: 1rem; background: white; }
.tabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 0; }
.tabulator .tabulator-header .tabulator-col .tabulator-header-filter { text-align: left; }
.tabulator-row { background-color: #FAFAFA; border-bottom: 1px solid #E8EAED; color: #6D6D7A }
.tabulator-row.tabulator-row-even { background-color: white; }
.tabulator-row.tabulator-selectable:hover, .tabulator-row.tabulator-selected { background-color: #E8EAED; }
.tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-left, .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right,
.tabulator-row:not(.tabulator-selectable:hover):not(.tabulator-selected) .tabulator-cell.tabulator-frozen.tabulator-frozen-left,
.tabulator-row:not(.tabulator-selectable:hover):not(.tabulator-selected) .tabulator-cell.tabulator-frozen.tabulator-frozen-right { border-color: #E8EAED; }
.tabulator-toggle { padding: 2px; }
.tabulator-toggle, .tabulator-toggle .tabulator-toggle-switch { border: none; }



.c-mmd-circle-loader {
	display: inline-block;
    width: 60px;
    height: 60px;
    border: 2px solid #f3f3f3;
    border-top-color: #3498db;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}
@-webkit-keyframes spin { /* Safari */
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.c-mmd-css-loader {
	flex-shrink: 0;
	display: inline-block;
	height: 1rem;
	width: 1rem;
	border-width: 2px;
	border-color: #333 #333 transparent transparent;
	border-style: solid;
	border-radius: 50%;
	animation: around .5s infinite;
}
@keyframes around {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}



/* ################# */
/* # MEDIA QUERIES # */
/* ################# */

@media screen and (max-width: 1400px) {
	nav.c-mmd-menu:not(.c-mmd-menu-closed) { width: 18%; }
	nav.c-mmd-menu-closed { width: calc(30px + 1.5rem); }
	#id-nav-logo-container { gap: .5rem; }
	#id-nav-logo-container > h1 { font-size: 1.25rem; }
	#id-nav-items { width: 18vw; }
	#id-nav-items > a { gap: .5rem; font-size: .8rem; }

	/* # Route Planner # */
	.c-mmd-side-panel .c-mmd-vehicle-info-container {
		flex-direction: column;
		flex-wrap: nowrap;
	}
	.c-mmd-side-panel .c-mmd-vehicle-info-container .c-mmd-buttons-container {
		order: 1; /* move to the end of the container */
		flex-direction: row;
		gap: 0;
		margin: 1rem -1rem -1rem;
		border-top: 1px solid lightgray;
	}
	.c-mmd-side-panel .c-mmd-vehicle-info-container .c-mmd-buttons-container > * {
		flex: 1;
	}
	.c-mmd-side-panel .c-mmd-vehicle-info-container .c-mmd-buttons-container button {
		border-radius: 0;
	}
}



.table-container {
	font-family: Arial, sans-serif;
	margin: 20px;
}
.c-mmd-vehicle-int-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
}
.c-mmd-vehicle-int-table th,
.c-mmd-vehicle-int-table td {
	border: 1px solid #ccc;
	padding: 8px;
}
.c-mmd-vehicle-int-table th {
	background-color: #f4f4f4;
}
.c-mmd-vehicle-int-table tr:nth-child(even) {
	background-color: #f9f9f9;
}

[contenteditable="true"] {
    outline: 1px solid #007bff;
    cursor: text;
}
[contenteditable="true"]:focus {
    outline: 2px solid #007bff;
    background-color: #f0f8ff;
}

.c-integration-empty-cell {
    background-color: rgb(245, 118, 118);
}

.c-integration-ls-cell {
    background-color: rgb(102, 135, 244);
}
