.ui-datepicker {
	width: 17em;
	padding: .2em .2em 0;
	display: none;
}
.ui-datepicker .ui-datepicker-header {
	position: relative;
	padding: .2em 0;
}
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
	position: absolute;
	top: 2px;
	width: 1.8em;
	height: 1.8em;
	cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev {
	left: 2px;
}
.ui-datepicker .ui-datepicker-next {
	right: 2px;
}
.ui-datepicker .ui-datepicker-title {
	margin: 0 2.3em;
	line-height: 1.8em;
	text-align: center;
}
.ui-datepicker table {
	width: 100%;
	font-size: .9em;
	border-collapse: collapse;
	margin: 0 0 .4em;
}
.ui-datepicker th {
	padding: .7em .3em;
	text-align: center;
	font-weight: bold;
	border: 0;
}
.ui-datepicker td {
	border: 0;
	padding: 1px;
}
.ui-datepicker td span, .ui-datepicker td a {
	display: block;
	padding: .2em;
	text-align: right;
	text-decoration: none;
}
/* CONTENITORE CALENDARIO */
.ui-datepicker {
	background: #ffffff;
	border: 1px solid #d9d9d9;
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	padding: 12px;
	z-index: 9999 !important;
}
/* HEADER */
.ui-datepicker .ui-datepicker-header {
	background: #ffffff;
	border: none;
	color: #222;
	padding: 0 0 12px 0;
}
/* TITOLO MESE */
.ui-datepicker .ui-datepicker-title {
	font-size: 24px;
	font-weight: 600;
	color: #222;
	text-align: center;
}
/* FRECCE PREV / NEXT */
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
	background: transparent;
	border: none;
	color: #8ECA2C;
	font-weight: 600;
	top: 0;
	cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-next:hover {
	color: #76ab22;
}
/* TABELLA */
.ui-datepicker table {
	background: #ffffff;
	border-collapse: collapse;
	width: 100%;
}
/* GIORNI DELLA SETTIMANA */
.ui-datepicker th {
	background: #ffffff;
	color: #444;
	font-weight: 600;
	padding: 10px 6px;
	border: 1px solid #eaeaea;
	text-align: center;
}
/* CELLE GIORNI */
.ui-datepicker td {
	background: #ffffff;
	border: 1px solid #eaeaea;
	padding: 0;
	text-align: center;
}
/* LINK GIORNI */
.ui-datepicker td a, .ui-datepicker td span {
	display: block;
	background: #ffffff;
	color: #333;
	text-decoration: none;
	padding: 10px 0;
	border: none;
}
/* HOVER GIORNI */
.ui-datepicker td a:hover {
	background: #f3f9e8;
	color: #222;
}
/* GIORNO SELEZIONATO */
.ui-datepicker .ui-state-active {
	background: #8ECA2C !important;
	color: #ffffff !important;
	border: 1px solid #8ECA2C !important;
}
/* GIORNO ODIERNO */
.ui-datepicker .ui-state-highlight {
	background: #eef8dd !important;
	color: #5f8f12 !important;
	border: 1px solid #8ECA2C !important;
}
/* GIORNI DISABILITATI */
.ui-datepicker .ui-state-disabled span {
	background: #f8f8f8;
	color: #bdbdbd;
}
/* INPUT DATA */
input.hasDatepicker {
	border: 1px solid #cfcfcf;
	padding: 10px 12px;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
}
input.hasDatepicker:focus {
	outline: none;
	border-color: #8ECA2C;
	box-shadow: 0 0 0 3px rgba(142, 202, 44, 0.15);
}
/* CONTENITORE GENERALE */
.ui-datepicker {
	width: 280px;
	background: #fff;
	border: 1px solid #dcdcdc;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	padding: 14px 14px 12px;
	z-index: 9999 !important;
	font-family: Arial, sans-serif;
}
/* HEADER SUPERIORE */
.ui-datepicker .ui-datepicker-header {
	position: relative;
	background: #fff;
	border: none;
	padding: 4px 0 18px;
	margin-bottom: 8px;
	min-height: 54px;
}
/* PREV / NEXT */
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next {
	position: absolute;
	top: 0;
	width: 55px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border: none;
	background: transparent;
	cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev {
	left: 0;
	color: #bdbdbd;
}
.ui-datepicker .ui-datepicker-next {
	right: 0;
	color: #8ECA2C!important;
}
.ui-datepicker .ui-datepicker-prev:hover, .ui-datepicker .ui-datepicker-next:hover {
	opacity: 0.8;
}
/* PREV / NEXT */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 5px;
    width: auto;
    height: 30px;
    display: flex !important;
    align-items: center;
    cursor: pointer;
    background: transparent !important;
    border: 0 !important;
    text-decoration: none !important;
}

.ui-datepicker .ui-datepicker-prev {
    left: 5px;
}

.ui-datepicker .ui-datepicker-next {
    right: 5px;
}

/* Testo Prec / Succ */
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    position: static !important;
    display: block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;

    background-image: none !important;
    background: none !important;

    text-indent: 0 !important;
    overflow: visible !important;

    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
}

/* PREC */
.ui-datepicker .ui-datepicker-prev span {
    color: #777;
}

/* SUCC */
.ui-datepicker .ui-datepicker-next span {
    color: #8ECA2C;
}

/* Hover */
.ui-datepicker .ui-datepicker-prev:hover span,
.ui-datepicker .ui-datepicker-next:hover span {
    color: #8ECA2C;
}
/* TITOLO MESE */
.ui-datepicker .ui-datepicker-title {
    margin: 0 70px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 30px;
}
/* LINEA SOTTO IL TITOLO */
.ui-datepicker .ui-datepicker-title::after {
	content: "";
	display: block;
	width: 70px;
	height: 2px;
	background: #222;
	margin: 10px auto 0;
}
/* TABELLA */
.ui-datepicker table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	margin: 0;
}
/* GIORNI SETTIMANA */
.ui-datepicker th {
	padding: 10px 0;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	border: 1px solid #e8e8e8;
	background: #fff;
}
/* CELLE */
.ui-datepicker td {
	border: 1px solid #e8e8e8;
	padding: 0;
	background: #fff;
}
/* GIORNI */
.ui-datepicker td a, .ui-datepicker td span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 38px;
	text-decoration: none;
	font-size: 14px;
	color: #333;
	background: #fff;
	box-sizing: border-box;
}
/* HOVER */
.ui-datepicker td a:hover {
	background: #f4f9ea;
}
/* GIORNO ATTIVO */
.ui-datepicker .ui-state-active {
	background: #8ECA2C !important;
	border: 1px solid #8ECA2C !important;
	color: #fff !important;
	font-weight: 600;
}
/* GIORNO OGGI */
.ui-datepicker .ui-state-highlight {
	background: #f5fbec !important;
	border: 1px solid #8ECA2C !important;
	color: #8ECA2C !important;
	font-weight: 600;
}
/* GIORNI DISABILITATI */
.ui-datepicker .ui-state-disabled span {
	color: #c7c7c7 !important;
	background: #fafafa;
}
/* INPUT */
input.hasDatepicker {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfcfcf;
	font-size: 16px;
	box-sizing: border-box;
}
input.hasDatepicker:focus {
	outline: none;
	border-color: #8ECA2C;
	box-shadow: 0 0 0 3px rgba(142, 202, 44, 0.15);
}
