.order-property-widget .content:empty::before {
	display: block;
	content: 'Nessun valore per questa proprietà';
	font-size: 16px;
	font-style: italic;
	color: #AAA;
	text-align: center;
	margin: 15px auto;
}

.order-param-value {
	display: inline-block;
	border: 1px solid var(--widget-border-color);
	border-radius: var(--element-border-radius);
	box-shadow: var(--main-shadow);
	background-color: var(--button-background);
	margin: 5px 5px 5px 5px;
	padding: 6px 8px 6px 12px;
}

.order-param-value label {
	margin: 0px 10px 0px 3px;
}

.order-param-value .action {
	display: inline-block;
	height: 24px;
	width: 24px;
	text-align: center;
	margin: 2px;
	padding: 6px 0px;
	border: 1px solid var(--widget-border-color);
	border-radius: 4px;
	outline: none;
	background-color: #FDFDFD;
	line-height: 1;
	transition: background-color 0.125s, border-color 0.3s;
}

.order-param-value .action:hover {
	background-color: var(--highlight-background-color);
	border-color: var(--highlight-border-color);
}

.order-param-value .action:active, .order-param-value .action:focus {
	border-color: var(--highlight-border-color);
}

.order-param-value .action span {
	display: block;
	font-size: 12px;
	opacity: 0.85;
}    

.order-param-value .action:hover span {
	opacity: 1.0;
}

.order-blocks {
	display: flex;
	position: relative;
	flex-wrap: wrap;
	gap: 10px;
}

.order-block {
	display: block;
	flex: 0 0 calc(33.333% - 7px);
	background-color: #FFF;
	border: 1px solid var(--widget-border-color);
	border-radius: var(--element-border-radius);
	box-shadow: var(--main-shadow);
	padding: 20px 20px 25px;
	margin-bottom: 40px;
	overflow: hidden;
}

.order-block .title {
	display: block;
	font-size: 20px;
	font-weight: 300;
	border-bottom: 3px solid #000;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.order-block .title[data-num]::before {
	display: inline-block;
	content: attr(data-num)'.';
	margin-right: 3px;
	font-weight: 600;
}

.order-block .hint {
	display: block;
	font-size: 12px;
	font-weight: 300;
	font-style: italic;
	text-align: center;
	margin: 10px auto;
}

.order-block .hint span {
	font-weight: 600;
}

.order-block .field {
	display: block;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	color: #FFF;
	background-color: #465162;
	border: none;
	width: 100%;
	height: 46px;
	padding: 8px 20px;
	margin: 10px auto 0px;
	outline: none;
	border-radius: var(--element-border-radius);
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.order-block .field::placeholder {
	color: rgba(255, 255, 255, 0.9);
}

.order-block.has-error .field {
	background-color: #fdb3b3;
	border-color: #D00;
	color: #F00;
}

.order-block.has-error .title {
	color: #D00;
}

.order-block .field input {
	display: inline-block;
	text-align: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-family: inherit;
	color: inherit;
	background-color: inherit;
	border: none;
	outline: none;
	padding: 0;
	margin: 0 auto;
	max-width: 25px;
}

.order-block .field[data-prefix]::before {
	display: inline-block;
	content: attr(data-prefix);
}

.order-block .options {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

.order-block .option {
	position: relative;
	font-size: 0;
	max-width: 280px;
	margin: 2px 2px;
	overflow: hidden;
}

.order-block .option input[type="checkbox"] {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: auto;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: transparent;
	border-radius: 4px;
	border: 1px solid #465162;
	outline: none;
	z-index: 1;
}

.order-block .option input[type="checkbox"]:checked {
	background-color: #465162;
}

.order-block .option label {
	display: block;
	position: relative;
	margin: 0;
	padding: 4px;
	font-size: 14px;
	font-weight: 500;
	width: 100%;
	max-width: 100%;
	pointer-events: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	z-index: 2;
}

.order-block .option input[type="checkbox"]:checked + label {
	color: #FFF;
}

.order-block button {
	display: block;
	width: 75%;
	background-color: #FFF;
	border: 2px solid #465162;
	border-radius: 6px;
	padding: 6px 10px;
	margin: 20px auto 0px;
	font-weight: 500;
	font-size: 16px;
	text-align: center;
}

.order-block .sub {
	margin-top: 15px;
}

.order-block .sub:not(.active) {
	display: none;
}

.order-block .sub span.label {
	display: block;
	text-align: center;
	font-size: 14px;
	font-weight: 400;
	color: #333;
	margin-bottom: 5px;
}

@media screen and (max-width: 1400px) {
	.order-block {
		flex: 0 0 calc(50% - 5px);
	}
}

@media screen and (max-width: 768px) {
	.order-block {
		flex: 0 0 100%;
	}
}

.list-token {
	display: inline-block;
	background-color: #F2F2F2;
    padding: 4px 10px;
	margin: 2px 1px;
	outline: 1px solid var(--widget-border-color);
    border-radius: 4px;
	font-weight: 600;
	line-height: 1;
	transition: all 0.125s;
	cursor: pointer;
}

.list-token:hover {
	background-color: var(--highlight-background-color2);
	color: var(--highlight-text);
	outline: 1px solid var(--highlight-border-color);
}

.tracking-code-list-th {
	width: 300px;
}

@media screen and (max-width: 480px) {
	.tracking-code-list-th {
		width: 160px;
	}
}

.area-amounts-body tr td:first-child {
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.calculations-body td::after {
	display: inline;
	content: attr(data-unit);
}

.tag.quotation-status {
	text-align: center;
}

.tag.quotation-status[data-confirmed="1"] {
	color: #090;
}

.tag.quotation-status[data-confirmed="0"] {
	color: #80C;
}

.cost-center-row td {
	white-space: nowrap;
}

.cost-center-row .options {
	padding: 6px 10px;
}

.cost-center-row input[data-bind="description"] {
	min-width: 300px;
} 

.cost-center-row input[data-bind="role"] {
	min-width: 180px;
}

.cost-center-card {
	margin-bottom: 0;
}

.cost-center-card .content {
	overflow: hidden;
}

.cost-center-card table {
	width: 100%;
	max-width: 100%;
}

.cost-center-card table th,
.cost-center-card table td {
	text-align: left;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;        
}

.mka-monospace,
.mka-numeric,
.mka-currency,
.mka-discount {
	font-size: 15px;
	font-weight: 400;
}

.mka-currency,
.mka-numeric {
	color: #222;
}

table.cost-center-totals {
	width: 100%;
}

table.cost-center-totals th {
	text-align: left;
	width: 220px;
}

table.cost-center-totals td {
	text-align: right;
	white-space: nowrap;
}

table.cost-center-totals td.total {
	font-size: 18px;
	font-weight: 600;
}

table.cost-center-totals td::after {
	display: inline-block;
	content: attr(data-suffix);
}

table.cost-center-totals td input {
	display: inline-block;
	width: calc(100% - 1.5em);
	outline: none;
	border: none;
	padding: 0px;
	margin: 0px;
	text-align: inherit;
}

table.cost-center-totals td input:not([readonly]) {
	cursor: pointer;
}

.cost-center-heading {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	align-items: flex-start;
	margin-bottom: 30px;
}

.cost-center-heading {
	flex-wrap: wrap;
}

.cost-center-heading .title-wrapper {
	display: flex;
	flex: 0 0 100%;
	justify-content: space-between;
	align-items: center;
	font-size: 20px;
	margin-bottom: 20px;
	padding-bottom: 5px;
	border-style: solid;
	border-color: #AAA;
	border-width: 0px 0px 1px;
}

.cost-center-heading .title-wrapper label {
	display: block;
	flex: 1 1 auto;
	font-weight: 500;
	margin: 0 10px 0 0;
}

.cost-center-heading .title-wrapper input {
	flex: 1 1 100%;
	background-color: transparent;
	border: none;
	outline: none;
}

.cost-center-heading table.grand-totals {
	flex: 0 0 calc(50% - 10px);
	border: 1px solid #DDD;
}

.cost-center-heading table.grand-totals:first-of-type {
	margin-right: 20px;
}

.cost-center-heading table.grand-totals th {
	text-align: left;
	font-size: 16px;
}

.cost-center-heading table.grand-totals th span {
	display: block;
	font-size: 12px;
	color: #888;
	font-weight: 400;
	line-height: 1;
    margin: 3px 0 5px;
}

.cost-center-heading table.grand-totals th,
.cost-center-heading table.grand-totals td {
	height: 48px;
	white-space: nowrap;
	padding: 4px 15px 3px 15px;
}

.cost-center-heading table.grand-totals td {
	text-align: right;
}

.cost-center-heading table.grand-totals input,
.cost-center-heading table.grand-totals textarea {
	border: none;
	font-size: 20px;
	font-weight: 600;
	outline: none;
	box-shadow: none;
}

.cost-center-heading table.grand-totals input {
	text-align: right;
	width: 100%;
	line-height: 1;
}

.cost-center-heading table.grand-totals input:not([readonly]) {
	display: block;
	cursor: pointer;
}

.cost-center-heading table.grand-totals textarea {
	font-size: 14px;
	font-weight: 400;
	resize: none;
	padding: 10px 0px;
}

.cost-center-heading table.grand-totals .payment-solution-wrapper {
	display: flex;
	padding: 5px 0px;
}

.cost-center-heading table.grand-totals .payment-property-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1 1 auto;
}

.cost-center-heading table.grand-totals .payment-property-section input {
	text-align: center;
	margin-bottom: 5px;
}

.cost-center-heading table.grand-totals .payment-property-section label {
	display: block;
	font-size: 12px;
	text-align: center;
	font-weight: 400;
	color: #888;
	margin: 0 auto;
}

input.balance[data-sign="neutral"] {
	color: #888;
}

input.balance[data-sign="positive"] {
	color: #090;
}

input.balance[data-sign="negative"] {
	color: #E00;
}

.quotation-cost-centers {
	display: grid;
	position: relative;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 20px;
}

.quotation-cost-centers.loading-overlay::before,
.quotation-cost-centers:empty::after {
	display: block;
	content: '';
	border: 1px solid var(--widget-border-color);
	border-radius: var(--element-border-radius);
	background-color: #FFF;
	color: #888;
	padding: 40px 20px;
	font-size: 18px;
	text-align: center;
	font-style: italic;
	box-shadow: var(--main-shadow);
}

.quotation-cost-centers:empty::after {
	content: 'Non \00e8  ancora stato inserito nessun centro di costo per questo documento.';
}

@media screen and (max-width: 1280px) {

	.cost-center-heading table {
		flex: 0 0 100%;
		margin: 0px 0px 20px;
	}

	.cost-center-block .content {
		overflow-x: scroll;
	}

	.cost-center-block .content table th,
	.cost-center-block .content table td {
		white-space: nowrap;
	}

	.cost-center-heading table.grand-totals {
		flex: 0 0 100%;
		margin-bottom: 20px;
	}

	.quotation-cost-centers {
		grid-template-columns: repeat(1, 1fr);	
	}

}

.cost-center-block tbody tr:first-child td:last-child .action.move-up,
.cost-center-block tbody tr:last-child td:last-child .action.move-down {
	opacity: 0.5;
	pointer-events: none;
}

.cost-center-block tbody tr:first-child td:last-child .action.move-up span.fad,
.cost-center-block tbody tr:last-child td:last-child .action.move-down span.fad {
	color: #BBB !important;
}

.quotation-list-item,
.quotation-list-footer {
	display: flex;
	justify-content: space-between;
	position: relative;
	width: 100%;
	margin-bottom: 15px;
	font-weight: 600;
	line-height: 1;
	page-break-after: auto;
	page-break-inside: avoid;
}

.quotation-list-item .code {
	flex: 0 0 calc(100% - 460px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 8px 15px;
}

.quotation-list-item .actions {
	display: flex;
	flex: 0 0 102px;
	justify-content: space-around;
}

.quotation-list-item .actions .action {
	width: 32px;
}

.quotation-list-item .amounts,
.quotation-list-footer .amounts {
	display: flex;
	flex: 0 0 350px;
	justify-content: space-between;
}

.quotation-list-item .amount,
.quotation-list-footer .amount {
	flex: 0 0 calc(33.333% - 6px);
	text-align: center;
	padding: 8px 5px;
}

.quotation-list-item .code,
.quotation-list-item .action,
.quotation-list-item .dropdown,
.quotation-list-item .amount,
.quotation-list-footer .placeholder {
	background-color: #FFF;
	border-radius: var(--element-border-radius);
	border: 1px solid var(--widget-border-color);
}

.quotation-list-item .code,
.quotation-list-item .action,
.quotation-list-item .dropdown,
.quotation-list-item .amount,
.quotation-list-footer .placeholder {
	background-color: #FFF;
	border-radius: var(--element-border-radius);
	border: 1px solid var(--widget-border-color);
}

.quotation-list-item .action:hover,
.quotation-list-item .dropdown.active {
	background-color: var(--highlight-background-color);
	border-color: var(--highlight-border-color);
}

.quotation-list-item .action.dropdown {
	width: auto;
}

.quotation-list-head {
	display: flex;
	position: relative;
	justify-content: flex-end;
	padding: 6px 0px 10px;
	margin-bottom: 20px;
	border-bottom: 2px solid #555;
}

.quotation-list-head .amounts-labels {
	display: flex;
	flex: 0 0 350px;
	justify-content: space-between;
}

.quotation-list-head .amounts-labels label {
	flex: 0 0 calc(33.333% - 6px);
	text-align: center;
	margin: 0;
}

.quotation-list-footer .placeholder {
	flex: 0 0 calc(100% - 358px);
}

.quotation-list-footer .amount {
	color: #FFF;
	border-radius: var(--element-border-radius);
}

.quotation-list-footer .amount.incoming {
	background-color: #000;
	border-color: #000;
}

.quotation-list-footer .amount.expenses {
	background-color: #E00;
	border-color: #E00;
}

.quotation-list-footer .amount {
	background-color: #080;
	border-color: #080; 
}

@media screen and (max-width: 768px) {
	.quotation-list-item {
		flex-wrap: wrap;
		background-color: var(--widget-light-bg-color);
		border-radius: var(--element-border-radius);
		border: 1px solid var(--widget-border-color);
		padding: 20px 10px;
	}

	.quotation-list-item .code {
		white-space: normal;
		line-height: 1.4;
		overflow: auto;
		text-align: center;
	}

	.quotation-list-item .code,
	.quotation-list-item .actions,
	.quotation-list-item .amounts {
		flex: 0 0 100%;
	}

	.quotation-list-item .code,
	.quotation-list-item .amount,
	.quotation-list-item .action {
		background-color: #FAFAFA;
	}

	.quotation-list-item .actions {
		margin: 10px 0px;
		justify-content: center;
	}

	.quotation-list-item .actions .action {
		padding-top: 8px;
		padding-bottom: 8px;
		margin: 0px 5px;
	}

	.quotation-list-footer .placeholder {
		display: none;
	}

	.quotation-list-footer .amounts {
		flex: 0 0 100%;
	}
}

.order-wizard-submit {
	display: block;
	padding: 10px 60px;
	margin: 40px auto;
	background-color: #FFF;
	border: 2px solid #465162;
	border-radius: 6px;
	font-weight: 600;
	font-size: 20px;
	text-align: center;
}

.cost-center-row td[data-employee-id="0"][data-external-supplier-id="0"],
.cost-center-row td[data-employee-id="0"][data-external-supplier-id="null"] {
	position: relative;
	padding-left: 10px;
}

.cost-center-row td[data-employee-id="0"][data-external-supplier-id="0"]::before,
.cost-center-row td[data-employee-id="0"][data-external-supplier-id="null"]::before {
	display: block;
	position: absolute;
	content: "\f321";
	font-family: "Font Awesome 5 Pro";
	color: #F60;
	top: 52%;
	left: 6px;
	transform: translate3d(0, -50%, 0);
}

@media screen and (max-width: 575px) {

	.cost-center-heading .payment-solution-wrapper {
		flex-direction: column;
	}

}

.cost-center-row input[type="checkbox"].flag {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 16px;
	height: 16px;
	margin: 6px 2px;
	background-color: #E2E2E2;
	border-radius: 50%;
	background-image: none;
	border: none;
	cursor: pointer;
}

.cost-center-row input[type="checkbox"].flag:checked {
	background-image: none;
	background-color: #090;
}

.cost-center-row input[type="checkbox"][data-bind="hasNote"].flag:checked {
	background-color: #D00;
}

body[data-user="0"] .cost-center-row input[type="checkbox"][data-bind="isVerified"] {
	pointer-events: none;
}