﻿/* jQuery.UI datePicker */
input[type='date'].date-picker {
	width: 6.5em;
	background-image: url(../images/calendar.png);
	background-repeat: no-repeat;
	background-position: 6.3em;
	-webkit-border-radius: 16px;
	-moz-border-radius: 16px;
	border-radius: 16px;
	font-size: 1.1em;
	padding-top: 0.3em;
	padding-bottom: 0.3em;
	cursor: pointer;
	text-align: center;
	padding-right: 1.4em;
}

input[type='date'].date-picker:disabled {
	background-position: 6.3em -30px;
	cursor: default;
	border-color: #a0a0a0;
	color: #a0a0a0;
	background-color: #dadada;
}

/* jQuery.UI datePicker */
input[type='text'].date-picker-ex {
	width: 8.5em;
	height: 1.5em;
	padding: 0px 2px 0px 12px;
	margin: 2px 0px;
	font-size: 1.2em;
	/* background-color: #007bff; */
	background-image: url(../images/calendar.png);
	background-repeat: no-repeat;
	background-position: 6.5em;
	-webkit-border-radius: 16px;
	-moz-border-radius: 16px;
	border-radius: 16px;
	color: #ffffff;
	cursor: pointer;
}
input[type='text'].date-picker-ex.disabled,
input[type='text'].date-picker-ex:disabled {
	border: 1px solid gray;
	background-color: darkgray;
	color: lightgray;
	cursor: default;
}

.date-picker-ex::-webkit-input-placeholder {
	color: #b7e7b4 !important;
}

.date-picker-ex::-moz-placeholder {
	color: #b7e7b4 !important;
}

.date-picker-ex:-ms-input-placeholder {
	color: #b7e7b4 !important;
}

div.ui-datepicker {
	z-index: 901 !important;
}

/* datepicker 日曜日、タイトルと日付の文字色を赤に変更 */
div.ui-datepicker table.ui-datepicker-calendar > thead > tr > th:first-child > span,
div.ui-datepicker table.ui-datepicker-calendar > tbody > tr > td:first-child > a.ui-state-default {
	background-image:none;
	color: red;
}

/* datepicker 土曜日、タイトルと日付の文字色を青に変更 */
div.ui-datepicker table.ui-datepicker-calendar > thead > tr > th:last-child > span,
div.ui-datepicker table.ui-datepicker-calendar > tbody > tr > td:last-child > a.ui-state-default {
	background-image:none;
	color: blue;
}

.clear-date {
	position: relative;
	display: inline-block;
	width: 24px;
	height: 24px;
	vertical-align: middle;
	background-image: url('../images/delete.png');
	background-size: cover;
}
.clear-date:not([disabled]) {
	cursor: pointer;
}
.clear-date:disabled:before,
.clear-date.disabled:before,
.clear-date[disabled]:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, .6);
	border-radius: 12px;
}

.clear-date:focus {
	outline: auto -webkit-focus-ring-color;
}
