body {
	overflow-x: hidden;
}

#backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2147483646 !important;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);

	display: none;
}

#loader {
	position: fixed;
	bottom: -20px;
	height: 20px;
	left: 0px;
	width: calc(100%);

	margin-bottom: 0px;
	z-index: 2147483647 !important;
}

#loader .progress-bar {
	border-radius: 4 4 0 0;
	font-size: large;
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background-color: #c9c9c9;
	border-radius: 20px;
	border: 3px solid transparent;
}

.center-line-title {
	width: 100%;
	text-align: center;
	border-bottom: 1px solid #000;
	line-height: 0em;
	margin: 40px 0 25px 0;
}

.center-line-title span {
	background: #fff;
	padding: 0 10px;
}

.input-group-addon select {
	border: 0px;
	background-color: transparent;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

.jumbotron-agrimontana {
	text-align: center;
	background-position: center;
	background-image: url("/SID/pub/res/foglia.png");
	background-repeat: no-repeat;
	background-size: contain;
	background-color: lightsalmon;
}

.modal-max-width {
	width: calc(100vw - 5vw);
}

.modal-body {
	max-height: calc(100vh - 20vh);
	overflow-y: overlay;
}

.col-fixed {
	margin: 0px;
	padding: 0px;
}

.col-fixed>div {
	/*
	position: fixed;
	*/
	width: 100%;
	height: calc(100vh - 80px);
	overflow-x: hidden;
	overflow-y: overlay;
	padding-left: 10px;
	padding-right: 10px;
}

.cursor-link {
	cursor: pointer;
}

.datepicker-container {
	margin-bottom: 20px;
}

.datepicker-inline {
	width: 100%;
}

.datepicker table {
	width: 100%;
}

#pageTitle {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	z-index: 1;
	opacity: 0.6;
	background: #5C97FF;
	overflow: hidden;
	text-align: center;
}

#backgroundImage {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	opacity: 0.6;
	background-image: url("/SID/pub/res/sfondo.jpg");
	background-repeat: no-repeat;
	background-position: 50% 0;
	-ms-background-size: cover;
	-o-background-size: cover;
	-moz-background-size: cover;
	-webkit-background-size: cover;
	background-size: cover;
}

.form-step {
	display: none;
	position: absolute;
	top: 20%;
	margin-left: calc(50% - 400px);
	width: 800px;
}

.form-step p {
	font-size: large;
}

@media screen and (max-width: 800px) {
	.form-step {
		width: 100%;
		margin: 0;
	}
}

.codeinput-group input {
	width: 40px;
	margin-left: 0;
	margin-right: 2%;
	display: inline;
}

.codeinput-group input:last-of-type {
	margin-right: 0;
}

input.form-success {
	border-color: rgba(60, 118, 61, 0.8);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(60, 118, 61, 0.6);
	outline: 0 none;
}

input.form-danger {
	border-color: rgba(169, 68, 66, 0.8);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(169, 68, 66, 0.6);
	outline: 0 none;
}

.material-switch {
	min-height: 34px;
}

.material-switch>input[type=checkbox] {
	display: none;
}

.material-switch>label {
	cursor: pointer;
	height: 0px;
	position: relative;
	width: 40px;
	margin-top: 10px;
}

.material-switch>label::before {
	background: rgb(0, 0, 0);
	box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	content: '';
	height: 16px;
	position: absolute;
	opacity: 0.3;
	transition: all 0.4s ease-in-out;
	width: 40px;
}

.material-switch>label::after {
	background: rgb(255, 255, 255);
	border-radius: 16px;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
	content: '';
	height: 24px;
	left: -4px;
	position: absolute;
	top: -4px;
	transition: all 0.3s ease-in-out;
	width: 24px;
}

.material-switch>input[type=checkbox][disabled]+label {
	cursor: not-allowed;
}

.material-switch>input[type=checkbox]:checked+label::before {
	background: inherit;
	opacity: 0.5;
}

.material-switch>input[type=checkbox]:checked+label::after {
	background: inherit;
	left: 20px;
}

.table-hover tr.expired {
	text-decoration: line-through;
}

.table-hover tr button {
	visibility: hidden;
}

.table-hover tr:hover button {
	visibility: visible;
}

.table-hover tr kbd {
	visibility: hidden;
}

.table-hover tr:hover kbd {
	visibility: visible;
}

.list-group-panel .panel-body {
	padding: 0px;
}

.list-group-panel .list-group {
	margin-bottom: 0px;
}

.list-group-panel .list-group-item:first-child {
	border-top-left-radius: 0px;
	border-top-right-radius: 0px;
}

.list-group-panel .list-group-item:last-child {
	border-bottom-right-radius: 0px;
	border-bottom-left-radius: 0px;
}

.goToPage {
	width: 3em;
}

.showPasswordIcon {
	pointer-events: all;
	cursor: pointer;
}

/*TABELLE SORTABLE E FILTERABLE*/
table.table-sortable th.sortable {
	cursor: pointer;
}

table:not(.table-filterable) tr.filter-row {
	display: none;
}

table.table-filterable tr.filter-row {
	background-color: #f9f9f9;
}

table.table-sortable th.sorted-asc::after {
	content: " ▲";
}

table.table-sortable th.sorted-desc::after {
	content: " ▼";
}

.filter-clearable span {
	display: none;
	position: absolute;
	right: 5px;
	top: 0;
	bottom: 0;
	height: 14px;
	margin: auto;
	font-size: 14px;
	cursor: pointer;
	color: red;
}

.filter-clearable input:not(:placeholder-shown)+span {
	display: block;
}



/* container */
.container-fluid.py-4 {
	padding-top: 1.25rem !important;
	padding-bottom: 1.25rem !important;
}

/* ====== PAGE LAYOUT ====== */
.fruit-page-layout {
	display: flex;
	gap: 16px;
	align-items: stretch;
	min-height: 86vh;
}

/* ====== LEFT SIDEBAR ====== */
.fruit-side {
	width: 130px;
	/* slimmer */
	flex: 0 0 130px;
	position: sticky;
	top: 12px;
	align-self: flex-start;
}

.fruit-side-card {
	height: 86vh;
	border-radius: 18px;
	position: relative;
	overflow: hidden;

	background: linear-gradient(135deg, var(--fruit1), var(--fruit2));
	border: 1px solid rgba(255, 255, 255, .10);
	box-shadow: 0 10px 25px rgba(0, 0, 0, .45);

	padding: 14px 10px;
	display: flex;
	flex-direction: column;
}

.fruit-side-card::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -90px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
	opacity: .95;
}

/* back button */
.fruit-back-btn {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;

	border: 1px solid rgba(255, 255, 255, .18);
	background: rgba(0, 0, 0, .25);
	color: rgba(248, 250, 252, .95);
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: .70rem;

	padding: .45rem .65rem;
	border-radius: 999px;
	backdrop-filter: blur(8px);
	text-decoration: none;
	transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.fruit-back-btn:hover {
	transform: translateY(-1px);
	background: rgba(0, 0, 0, .35);
	border-color: rgba(255, 255, 255, .28);
}

/* center everything vertically */
.fruit-side-center {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	position: relative;
	z-index: 1;
}

/* vertical block */
.fruit-side-vert {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	/* read top->bottom */
	text-align: center;
	user-select: none;
}

.fruit-side-title {
	font-size: 1.05rem;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #f8fafc;
	line-height: 1;
}

.fruit-side-sub {
	margin-top: 10px;
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .30em;
	text-transform: uppercase;
	color: rgba(233, 245, 214, .95);
}

/* icons under "NASTRI" but rotated */
.fruit-side-icons {
	margin-top: 14px;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	font-size: 1.35rem;
	line-height: 1;
}

.fruit-side-icons span {
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

/* rotate each icon */
.fruit-side-icons-rot span {
	display: inline-block;
	transform: rotate(90deg);
}

/* note stays horizontal */
.fruit-side-note {
	text-align: center;
	font-size: .78rem;
	color: rgba(248, 250, 252, .85);
	line-height: 1.25;
	padding: 0 6px;
}


/* =========================
   SIDEBAR (CIOCCOLATO)
   ========================= */
.line-side {
	width: 150px;
	flex: 0 0 150px;
	position: sticky;
	top: 12px;
	align-self: flex-start;
}

.line-side-card {
	height: 86vh;
	border-radius: 18px;
	padding: 18px 10px;
	position: relative;
	overflow: hidden;

	background: linear-gradient(135deg, rgba(90, 51, 21, .95), rgba(40, 20, 10, .98));
	box-shadow: 0 10px 25px rgba(0, 0, 0, .45);
	border: 1px solid rgba(255, 255, 255, .10);

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.line-side-card::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -90px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
	opacity: .95;
	pointer-events: none;
}

/* back button */
.line-back-btn {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;

	border: 1px solid rgba(255, 255, 255, .18);
	background: rgba(0, 0, 0, .25);
	color: rgba(248, 243, 233, .95);
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: .72rem;
	padding: .45rem .65rem;
	border-radius: 999px;
	backdrop-filter: blur(8px);
	text-decoration: none;

	transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.line-back-btn:hover {
	transform: translateY(-1px);
	background: rgba(0, 0, 0, .35);
	border-color: rgba(255, 255, 255, .28);
	color: rgba(248, 243, 233, .98);
}

/* vertical block */
.line-side-vert {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	margin: 0 auto;
	user-select: none;
	text-align: center;
}

.line-side-title {
	font-size: 1.05rem;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #f8f3e9;
	line-height: 1;
}

.line-side-sub {
	margin-top: 10px;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .30em;
	text-transform: uppercase;
	color: rgba(248, 243, 233, .85);
}

/* FRUTTA-style icons inside vertical block */
.line-side-icons {
	margin-top: 14px;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	font-size: 1.7rem;
	line-height: 1;
}

.line-side-icons span {
	display: inline-block;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

.line-side-icons-rot span {
	transform: rotate(90deg);
}

select.is-locked:disabled {
	opacity: 1 !important;
	cursor: not-allowed;
}
