@charset "utf-8";
.hide{
	display: none;
}
.link{
	text-decoration: underline;
	color: #0010C9;
}
/******************************
CALENDARIO
******************************/
.calendar{
	position: relative;
}
.calendar .calendar_grid{
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	position: relative;
}
.calendar.mobile .calendar_grid{
	grid-template-columns: 1fr;
}
.calendar.mobile .calendar_grid > div:nth-child(odd){
	display: none;
}

.calendar .brd{
	padding: 10px 0;
	border: 1px solid rgba(0,0,0,.3);
}
.calendar div[data-type='day']{
	color: white;
	position: relative;
	overflow: hidden;
	background-color: #037E19;
	cursor: pointer;
}
.calendar div[data-type='day'] p{
	position: relative;
	z-index: 5;
}
.calendar div[data-type='day']::after, .calendar div[data-type='day']::before{
	content: ' ';
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
}
.calendar div[data-type='day']::after{
	left: 50%;
}

.calendar div[data-type='day']::before{
	left: -50%;
}

.calendar div[data-type='day'].check_in_red::after,
.calendar div[data-type='day'].check_out_red::before,
.calendar div[data-type='day'].red
{
	background-color: #7e0303;
}

.calendar div[data-type='day'].check_in_yellow::after,
.calendar div[data-type='day'].check_out_yellow::before,
.calendar div[data-type='day'].yellow
{
	background-color: #ad9300;
	color: white;
}

.calendar div[data-type='day'].grey{
	background-color: #303030;
	color: white;
}

/*.calendar .green{
	background-color: #037E19;
	color: white;
}*/
.month{
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}
.calendar .change_month{
	position: absolute;
	top: 0;
	font-size: 40px;
	z-index: 10;
	cursor: pointer;
	height: 41px;
	width: 20px;
}
.calendar .change_month.next{
	right: 0;
}
.calendar .change_month.prev{
	left: 0;
}
.calendar .change_month p{
	position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.center{
	text-align: center;
}
/******************************
END CALENDARIO
******************************/



/******************************
GIORNO
******************************/
.day .header{
    background-color: #517974;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
	padding: 20px;
}
.day div[data-type='nuova_prenotazione']{
	padding: 10px;
    background-color: rgba(81,121,116,.1);	
}
.day .bck_red{
	background-color: rgba(126,3,3,.2);
	padding: 10px;
}
.day .bck_green{
	background-color: rgba(3,126,25,.2);
	padding: 10px;
}
.day .bck_yellow{
	background-color: rgba(173,147,0,.2);
	padding: 10px;
}
.add_book_btn{
	background-color: #0029C3;
	color: white;
	border: 4px;
	display: inline-block;
	cursor: pointer;
}
.add_book_btn div.pad{
    padding: 10px;
}
.add_book_btn div:last-of-type{
	border: 1px solid white;
}
.add_book_btn.show div div:last-of-type{
	transform: rotate(180deg);
}
/******************************
END GIORNO
******************************/


/******************************
FORM
******************************/
label{
	display: block;
	position: relative;
}
label:not(.checkbox) p{
	position: absolute;
    height: 18px;
    font-size: 14px;
    top: -9px;
    left: 10px;
    background-color: white;
	color: rgba(0,0,0,.7);
}
input[type='text'], input[type='number'], input[type='date'], select, textarea{
	padding: 10px;
	outline: none;
	font-size: inherit;
	font-family: inherit;
	border: 1px solid rgba(0,0,0,.3);
	border-radius: 3px;
	width: 161px;
} 
textarea{
	width: 400px;
	max-width: 100%;
    height: 100%;
}
input.long{
	width: 300px;
}
label.checkbox div, label.checkbox p{
	display: flex;
    flex-flow: row wrap;
    align-content: center;
    justify-content: flex-start;
}
label.checkbox p{
	padding-left: 7px;
}
input[type='checkbox']{
	width: 30px;
	height: 30px;
}
button.save{
	background-color: #00760D;
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 20px;
}
button.add{
	background-color: #517974; 
	color: white;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 20px;
}
/******************************
END FORM
******************************/


/******************************
RIEPILOGO
******************************/
.summary{
	position: relative;
}
.summary .sticky{
	position: sticky;
	top: 0;
	left: 0;
	width: fit-content;
	background-color: white;
}
.summary .sticky .month_name{
	width: 100vw;
}
.summary .brd{
    padding: 10px 0;
    border: 1px solid rgba(0,0,0,.3);
	font-size: 13px;
}
.summary .red .no_brd{
	background-color: #7e0303;
	color: white;
}
.summary .green .no_brd{
	background-color: #037E19;
	color: white;
}
.summary .yellow .no_brd{
	background-color: #ad9300;
	color: white;
}

.summary .no_brd{
    padding: 10px 0;
    border: 1px solid transparent;
	font-size: 13px;
	border-bottom: 1px solid rgba(0,0,0,.3);
}
.summary .details{
	display: grid;
    /*grid-template-columns: repeat(16, 1fr);*/
    grid-template-columns: 50px 90px 90px 50px 120px 120px 200px 130px 40px 245px  245px 122px 80px 122px 122px 80px;
	word-break: break-all;
}
.summary .link{
	text-decoration: underline;
	color: white;
}
/******************************
END RIEPILOGO
******************************/

/******************************
CONFIGURAZIONE
******************************/
.line{
	background-color: rgba(0,0,0,.3);
	height: 1px;
	margin: 20px 0;
}
.interval{
	display: grid;
	grid-template-columns: 1fr 30px 1fr 70px;
	column-gap: 20px;
	margin-bottom: 30px;
}
.interval .date{
	padding: 10px;
	flex-direction: column;
}
.interval .bck_lightgrey{
	background-color: #f1f1f1;
}
.interval .middle_line{
	width: 100%;
	height: 2px;
	background-color: black;
}
.interval .txt_red{
	color: #7e0303;
}
.reduce{
	font-size: 14px;
}
/******************************
END CONFIGURAZIONE
******************************/


/******************************
CALENDARIO UTENTE
*******************************/
.calendar.user .brd{
	padding: 5px 0;
}
.calendar.user .change_month p{
	top: 30%;
}
.calendar.user div[data-type='day'].selected::after{
	background-color: #005771;
	left: 0;
}
/*
.calendar.user div[data-type="day"]{
	border: 4px solid transparent;
	transition: border 400ms ease;
}
.calendar.user div[data-type="day"]:hover{
	border: 4px solid #005771;
}*/
/******************************
END CALENDARIO UTENTE
*******************************/


/******************************
ALLOGGI
*******************************/
.accomodation{
	display: grid;
}
.accomodation .row{
	display: grid;
	grid-template-columns: 50px 500px 1fr;
}
.accomodation .cell{
	text-align: center;
    padding: 10px 0;
    border: 1px solid rgba(0,0,0,.3);
    font-size: 13px;
}
.accomodation input[type='checkbox']{
	vertical-align: middle;
	margin-right: 5px;
}
.accomodation .delete{
	color: #97181A;
}
.accomodation .add{
	color: #328007;
	gap: 5px;
	cursor: pointer;
}
.accomodation .empty{
	display: none;
}
/******************************
END ALLOGGI
*******************************/

/******************************
ALLOGGI UI
*******************************/
.accomodation_list{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 40px;
}
.accomodation_list .wrap_img{
    width: 100%;
    overflow: hidden;
}
.accomodation_list .wrap_img img{
    width: 100%;
}
.accomodation_list h3{
    font-size: 20px;
}
.accomodation_list button{
    padding: 4px;
    background-color: #517974;
    color: white;
    border: 2px solid #2f4744;
}

/******************************
END ALLOGGI UI
*******************************/



.square{
	position: relative;
	height: 0;
	padding-top: 100%;
}
.square figure{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.square figure img{
	object-fit: scale-down;
    width: 100%;
    height: 100%;
}

