@font-face {
	font-family: 'ScaniaSans-Regular';
	src: url('../resources/ScaniaSans-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

.swal2-popup, .swal2-confirm, .swal2-cancel {
	font-family: 'ScaniaSans-Regular';
}

html, body {
	font-family: 'ScaniaSans-Regular';
	background: #090A0D;
	color: #FFFFFF;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.container {
	width: 1300px;
	min-height: 1050px;
	background: #1F252B;
	border-radius: 6px;
	box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.35);
	position: relative;
	overflow: auto;
}

.footer {
	margin-top: 8px;
	margin-right: 35px;
	font-size: 12px;
	color: #FFFFFF;
	text-align: right;
	width: 100%;
}

.blocker {
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
}

.spacer {
	flex: 1;
}

.hidden {
	display: none;
}

.faded {
	opacity: 0.3;
	pointer-events: none;
}

.warning {
	color: red;
	font-size: 12px;
	margin-bottom: 10px;
}

i.fonticon {
	vertical-align: middle;
	font-size: 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}


.tabs {
	display: flex;
	align-items: center;
	background: #181C22;
	border-bottom: 0px solid #090A0D;
}

.tab {
	max-width: 200px;
	text-align: center;
	padding: 25px;
	cursor: pointer;
	color: #FFFFFF;
	font-size: 18px;
	transition: background 0.2s, color 0.2s;
}

.tab:last-child {
	border-right: none;
}

.tab.active, .tab:hover {
	background: #1F252B;
}

.utility_swv {
	margin: 0;
	font-size: 20px;
	padding-right: 20px;
}

.crest {
	width: 48px;
	padding-right: 15px;
}

.content {
	display: none;
	padding: 20px;
}

.content.active {
	display: block;
}


.receiver_div {
	position: absolute;
	width: 260px;
	overflow: hidden;
	margin-top: 140px;
	margin-left: 30px;
	top: 0;
}

.receiver_div .receiver_plugged_in {
	width: 100%;
}

.ajax-loader {
	width: 60px;
	height: 60px;
	border: 8px solid #181C22;
	border-top: 8px solid #7287A3;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: none;
	margin: 239.5px auto;
}

p.info-text {
	position: absolute;
	font-size: 20px;
	font-weight: bold;
	margin-top: -180px;
	margin-left: 65px;
}

#connect-btn {
	margin-left: 15px;
	width: 230px;
	margin-top: 25px;
	font-size: 18px;
}

#disconnect-btn {
	margin-left: 15px;
	width: 230px;
	margin-top: 25px;
	font-size: 18px;
}

#downloadconf-btn {
	margin-top: 20px;
	left: 10px;
	width: 260px;
	font-size: 14px;
}

#uploadconf-btn {
	margin-top: 20px;
	left: 10px;
	width: 260px;
	font-size: 14px;
}


.scania-light-button {
	font-family: 'ScaniaSans-Regular';
	background-color: #7287A3;
	color: #181C22;
	font-size: 20px;
	font-weight: bold;
	height: 58px;
	padding: 5px 5px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.1s, color 0.1s;
	outline: 0;
	bottom: 0;
}

.scania-light-button:hover {
	background-color: #ADBFD9;
}

.scania-red-button {
	font-family: 'ScaniaSans-Regular';
	background-color: #EB0A37;
	color: #CDCDCD;
	font-size: 20px;
	font-weight: bold;
	height: 58px;
	padding: 10px 10px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.1s, color 0.1s;
	bottom: 0;
}

.scania-red-button:hover {
	background-color: #ed2e54;
}


div.button-layout {
	position: absolute;
	width: 74%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 5px 0;
	padding: 20px;
	right: 0;
	bottom: 80;
}

div.button-layout.faded {
	opacity: 0.3;
}

div.button {
	height: 180px;
	font-family: 'ScaniaSans-Regular';
	padding: 5px;
	background-color: #181C22;
	border-radius: 10px;
	text-align: center;
}

.button > span {
	display: block;
	text-align: center;
	margin-top: 5px;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: bold;
}

.toggle-group {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.toggle-group button {
	font-family: 'ScaniaSans-Regular';
	padding: 8px 10px;
	cursor: pointer;
	color: #ffffff;
	background-color: #2B333D;
	width: 80px;
	font-weight: bold;
	outline: 0;
	margin: 0;
	border: 0;
}

.toggle-group button.left {
	border-radius: 3px 0 0 3px;
}

.toggle-group button.right {
	border-radius: 0 3px 3px 0;
}

.toggle-group button.active {
	background-color: #7287Ae;
	color: #ffffff;
}

.picker-row {
	margin: 4px 30px;
}

.outputpicker-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 5px;
	border: none;
	background: #7287A3;
	color: #fff;
	cursor: pointer;
	height: 42px;
	font-family: 'ScaniaSans-Regular';
	font-weight: bold;
	font-size: 14px;
	transition: background 0.1s;
}

.outputpicker-btn:hover {
	filter: brightness(1.15);
}

.outputpicker-btn span {
	margin-bottom: 3px;
}

.labelicon-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 5px;
	border: none;
	background: #7287A3;
	color: #fff;
	cursor: pointer;
	height: 42px;
	font-family: 'ScaniaSans-Regular';
	font-weight: bold;
	font-size: 14px;
}

.labelicon-btn.has-icon .fonticon {
	display: none;
}

.labelicon-btn span {
	margin-bottom: 3px;
}

.picker-row .outputpicker-btn {
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
}

.picker-row .labelicon-btn {
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
}

.textoricon .store {
	display: none;
}


div.textarea-config {
	position: absolute;
	width: 945px;
	padding: 5px 20px;
	bottom: 0;
	right: 0;
	margin-bottom: 20px;
}

.textarea-config textarea {
	float: left;
	display: block;
	margin-right: auto;
	resize: none;
	width: 585px;
	height: 84px;
	color: #000000;
	border: 0px;
	border-radius: 3px;
	font-size: 16px;
	padding: 8px;
	margin-left: -17px;
	outline: 0;
}

#loadconf-btn {
	float: left;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	width: 170px;
	height: 100px;
	margin-left: 10px;
	padding: 10px;
	gap: 8px;
	text-align: center;
}

#genconf-btn {
	float: left;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	width: 170px;
	height: 100px;
	margin-left: 10px;
	padding: 10px;
	gap: 10px;
	text-align: center;
}

.output-section {
	margin-top: 30px;
	text-align: center;
}

.output-section textarea {
	width: 100%;
	height: 60px;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 5px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	resize: none;
}

.output-section button {
	margin-top: 5px;
	padding: 5px 10px;
	background-color: #007bff;
	color: #ffffff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
}

.output-section button:hover {
	background-color: #0056b3;
}


.modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.6);
	display: grid;
	place-items: center;
	z-index: 9999;
}

.modal.hidden {
	display: none;
}

.modal-card {
	width: min(1020px, 95vw);
	background: #111419;
	color: #fff;
	border: 1px solid #2a2f3a;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0,0,0,.5);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #2a2f3a;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
}

.modal-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.modal-body {
	padding: 14px 16px;
}

.modal-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	color: #cdd3df;
}

.modal-sep {
	margin: 12px 0 10px;
	color: #9aa3b2;
	text-align: center;
	font-size: 12px;
}

.modal-search {
	margin-bottom: 8px;
}

.modal-footer {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	padding: 12px 16px;
	border-top: 1px solid #2a2f3a;
}

.modal .spacer {
	flex: 1;
}

.btn {
	padding: 9px 14px;
	border-radius: 6px;
	border: 1px solid #2a2f3a;
	background: #0c0f14;
	color: #fff;
	cursor: pointer;
}

.btn.primary {
	background: #7287A3;
	border-color: #7287A3;
}

.btn.ghost {
	background: transparent;
}


#li-text {
	width: 100%;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #2a2f3a;
	background: #0c0f14;
	color: #fff;
	outline: none;
}

#li-text:focus, #li-search:focus {
	border-color: #7287A3;
}

.icon-grid {
	display: grid;
	margin-top: 12px;
	grid-template-columns: repeat(9, 1fr);
	gap: 10px;
	max-height: 500px;
	overflow: auto;
	padding: 6px;
	border: 1px solid #2a2f3a;
	border-radius: 6px;
	background: #0c0f14;
}

.icon-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border: 1px solid #222a33;
	border-radius: 6px;
	background: #0c0f14;
	cursor: pointer;
}

.icon-btn img {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.icon-btn .code {
	font-size: 10px;
	color: #cdd3df;
}

.icon-btn.selected {
	border-color: #4c7bd9;
	box-shadow: 0 0 0 2px #4c7bd955;
}

#labelIconModal .li-container {
	max-width: 1000px;
	margin: 0 auto;
}

#labelIconModal .icon-grid,
#labelIconModal #li-text,
#labelIconModal #li-search {
	width: 100%;
	box-sizing: border-box;
}

#labelIconModal .icon-grid {
	scrollbar-gutter: stable both-edges;
}


.op-modal-card {
	width: min(520px, 95vw);
}

.op-container {
	max-width: 500px;
	margin: 0 auto;
}

.op-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	padding: 6px;
}

.op-cell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px 10px 28px;
	border: 1px solid #222a33;
	border-left: 4px solid #222a33;
	border-radius: 6px;
	background: #0c0f14;
	color: #fff;
	cursor: pointer;
	font-family: 'ScaniaSans-Regular';
	font-size: 14px;
	font-weight: bold;
	transition: background 0.15s;
	position: relative;
}

.op-cell:hover {
	background: #1a1f27;
}

.op-cell.selected {
	background: #2B333D;
}

.op-cell.selected::before {
	content: "\2714";
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #4CAF50;
	font-size: 14px;
}

.op-label {
	flex: 1;
}

.op-state {
	font-size: 11px;
	font-weight: bold;
	padding: 3px 8px;
	border-radius: 3px;
	margin-left: 8px;
}

.op-high {
	background: #c62828;
	color: #fff;
}

.op-low {
	background: #1a1a1a;
	color: #999;
	border: 1px solid #333;
}

.op-can-cell {
	border-left-color: #2196F3;
}

.op-separator {
	grid-column: 1 / -1;
	text-align: center;
	color: #cdd3df;
	font-size: 14px;
	font-weight: bold;
	padding: 10px 0 6px;
	border-top: 1px solid #2a2f3a;
	margin-top: 4px;
}

.op-separator-first {
	border-top: none;
	margin-top: 0;
	padding-top: 0;
}