@charset "utf-8";
* {
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	height: 100%;
	font-size: 12px;
	background: #f2f0e2;
	line-height: 22px;
	position: relative;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img {
	border: 0;
}

br {
	line-height: 1.0em;
}

form {
	margin: 0;
	padding: 0;
}

input {
	margin: 5px;
	padding: 0;
}

select, textarea {
	margin: 4px;
	padding: 0;
}

input[type=submit], input[type=button], input[type=reset], button {
	cursor: pointer;
}

#title {
	background: #9C6;
	border-bottom: 3px solid #696;
	flex-shrink: 0;
	margin-bottom: 10px;
	min-width: 1050px;
	padding: 0 10px;
}

#error {
	background: #C30;
	padding: 0 10px;
	margin-bottom: 10px;
}

#msgBlock {
	margin: 5px 0 0 90px;
	text-align: left;
}

#btnBlock {
	margin: 8px 0 4px 0;
}

.errmsg {
	color: #f00;
}

.red {
	color: #f00;
}

.mainmenu a {
	border-style: solid;
	border-width: 1px;
	border-color: #d9d9d9 #565656 #727272 #797979;
	border-radius: 7px;
	background-color: #878787;
	color: #efefef;
	font-size: .95em;
	box-sizing: border-box;
	width: 120px;
	height: 24px;
	display: inline-block;
	line-height: 24px;
	padding-left: 12px;
	text-shadow: 0 0 1px #878787;
	font-family: 'メイリオ', sans-serif, 'Yu Gothic', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', 'Hiragino Kaku Gothic ProN';
}

.mainmenu a:hover {
	position: relative;
	left: 2px;
	filter: alpha(opacity=80);
	opacity: 0.8;
	border-style: none;
}

.kome {
	margin-left: 10px;
	color: #dc4e4e;
	font-size: small;
	display: inline-block;
}

.inp_num {
	ime-mode: inactive;
}

.inp_ascii {
	ime-mode: inactive;
}

.inp_text {
	ime-mode: active;
}

.col_sel_s {
	width: 70px;
}

.col_sel_t {
	width: 110px;
}

.col_sel_m {
	width: 150px;
}

.col_edit {
	width: 70px;
}

.col_item {
	width: 200px;
}

.col_item_d {
	width: 70px;
}

.col_item_b {
	width: 100px;
}

.col_item_t {
	width: 100px;
}

.col_item_p {
	width: 80px;
}

.col_no {
	width: 50px;
}

.clear {
	clear: both;
}

a {
	text-decoration: none;
}

table.menu a {
	color: #fff;
}

table.menu a:hover {
	color: #399;
}

table.menu td {
	padding: 2px 5px;
	background: #333;
	color: #fff;
	border-bottom: 1px dotted dimgray;
	white-space: noWrap;
}

table.tbl {
	border-collapse: collapse;
	border: 1px #999 solid;
	background: #fff;
	margin: 0 auto 10px auto;
	width: 80%;
}

table.tbl a {
	display: block;
	color: #457a53;
	padding: 3px;
}

table.tbl a:hover {
	color: #fff;
	background: #457a53;
}

table.tbl tr {
	background: #fff;
}

table.tbl th {
	border: 1px #999 solid;
	padding: 1px 5px;
	text-align: left;
	background: #ddd;
}

table.tbl td {
	border: 1px #999 solid;
	text-align: left;
	padding: 5px;
}

table.tbl td select {
	width: 188px;
}

table.tbl td select.col_sel_m {
	width: 151px;
}

table.tbl td select.col_sel_s {
	width: 70px;
}

table.tbl tr.delete {
	background-color: #ccc;
}

table.top-search {
	width: 268px;
	border: 1px #999 dotted;
	background: #fff;
	padding: 3px;
	margin-bottom: 15px;
}

table.top-search td {
	text-align: left;
	white-space: nowrap;
}

table.calender-ctrl {
	width: 100%;
	text-align: right;
	border: 0;
	font-size: medium;
}

table.calender-ctrl a {
	color: #000;
	background: #d5ffaa;
}

table.calender-ctrl a:hover {
	color: #fff;
	background: #399;
}

#top-contents .calender-tbl td {
	padding: 0;
}

.calender-tbl {
	background: #fff;
	border: 1px #999 solid;
	border-collapse: collapse;
	box-sizing: border-box;
	filter: progid:DXImageTransform.Microsoft.Shadow(color=#dddddd, strength=8, direction=135);
	height: 1px; /* auto だと子要素の height が計算できないので、適当に初期値を設定しておく */
	margin-bottom: 10px;
	table-layout: fixed;
	width: 100%;
}

#top-contents .calender-wrapper {
	height: calc(100vh - 322px);
	min-height: 100px;
	overflow-y: scroll;
}

.calendar-body tr {
	height: 100%;
}

.calender-tbl .calendar-header .name, .calender-tbl .calendar-body .name {
	width: 208px;
}

.calender-tbl .calendar-header .ampm, .calender-tbl .calendar-body .ampm {
	width: 3.2%;
}

.calender-tbl .calendar-header .schedule, .calender-tbl .calendar-body .schedule {
	width: 10.4%;
}

.calender-tbl .calendar-body tr:nth-child(even) {
	background-color: #f4ffea;
}

.calender-tbl th {
	background: #e9e9e9;
	font-weight: normal;
	/* 縦スクロール時にヘッダー行を固定する */
	position: sticky;
	top: 0;
}

/* 縦スクロール時にヘッダー行のボーダーも固定する */
.calender-tbl th::before {
    border: 1px solid #999;
	content: '';
    height: 100%;
    left: -1px;
    position: absolute;
    top: -1px;
    width: 100%;
}

.calender-tbl td {
	border-bottom: 1px solid #999;
	border-right: 1px solid #999;
	height: 100%;
	padding: 5px;
	text-align: center;
}

.calender-tbl .calendar-body .ampm {
	font-size: .9rem;
	line-height: 1.2;
}

.time-slot {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
}

.time-slot > div {
	align-items: center;
	display: flex;
	justify-content: center;
}

.time-slot-item {
	flex-grow: 1;
}

.time-slot-item:not(:last-of-type) {
	border-bottom: 1px dashed #999;
}

table.calender-tbl td.active {
	background-color: #9cc;
}

table.calender-tbl td.holiday {
	background-color: #fcc;
}

.calender-tbl .tantou {
	background-color: #ffc;
}

#main .calender-tbl .holiday_label {
	color: #f00;
	cursor: pointer;
}

table.calender-tbl a {
	display: block;
	color: #333;
	width: 100%;
}

table.calender-tbl a:hover {
	color: #fff;
	background: #aaa;
}

table.left td {
	text-align: left;
}

table td.center {
	text-align: center;
}

table#main {
	width: 1030px;
}

table#main td {
	padding: 0 5px;
}

#wrap {
	background: #eee;
	border: 1px dashed #369;
	flex: 1 0 auto;
	margin: 0 auto;
	padding: 5px 5px 20px 5px;
	width: 1030px;
}

#login-box {
	border: 1px dotted dimgray;
	padding: 10px;
	background: #eee;
	width: 250px;
	margin: 50px auto;
}

#login-box table {
	margin: 5px 5px 0 5px;
}

#login-box table input {
	width: 150px;
}

#side-navi {
	width: 120px;
	vertical-align: top;
}

#main-contents {
	text-align: center;
	vertical-align: top;
}

#top-contents {
	background-image: url(../images/back.png);
	background-repeat: no-repeat;
	background-position: left top;
	vertical-align: top;
}

#acount-box {
	float: left;
	width: 250px;
	padding: 0 8px;
	margin-top: 5px;
	margin-bottom: 20px;
	white-space: nowrap;
	border: 1px #999 dotted;
	background: #fff;
	text-align: left;
}

#date-box {
	float: right;
	padding: 0 8px;
	margin-top: 5px;
	margin-bottom: 20px;
	white-space: nowrap;
	border: 1px #999 dotted;
	background: #fff;
}

/* IE6 */

*html body #acount-box, *html body #date-box {
	margin-bottom: 0;
}

/* IE7 */

*+html body #acount-box, *+html body #date-box {
	margin-bottom: 0;
}

#footer {
	background: #999;
	flex-shrink: 0;
	height: 40px;
	margin-top: 30px;
	min-width: 1030px;
	padding: 0 20px;
}

#chief_menu {
	margin-right: 30px;
}

#chief_menu input {
	vertical-align: middle;
}

form#shokunin_maintenance_search * {
	vertical-align: middle;
}

form#shokunin_maintenance_search [type=checkbox] {
	margin-right: 0;
}

/* デモ用 */

h2.demo {
	background: rgba(224, 223, 241, 0.38);
	border: 2px dashed rgba(151, 166, 218, 0.79);
	color: rgba(21, 43, 204, 0.65);
	font-size: 4rem;
	line-height: 3rem;
	padding: 15px !important;
	position: absolute;
	right: 30px;
	top: 82px;
}

#title.demo {
	background: #6669cc;
	border-bottom: 3px solid #666c99;
	margin-bottom: 10px;
	min-width: 1050px;
	padding: 0 10px;
}

/* モーダルウィンドウ */

.modal-background {
	align-items: center;
	background-color: #0008;
	display: flex;
	height: 100vh;
	justify-content: center;
	left: 0;
	overflow: hidden;
	position: fixed;
	top: 0;
	width: 100vw;
}

.modal-body {
	background-color: #fff;
	border: 1px solid #aaa;
	box-shadow: 0 0 20px #0003;
	padding: 20px;
	text-align: center;
	width: min(50%, 300px);
}

.modal-body .button {
	margin: 10px 4px 0 4px;
}

.modal-message {
	text-align: left;
}

/* ボタン */

.button, .tbl a.button {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: #e9e9e9;
	border: solid thin #999;
	border-radius: 0.3125em;
	box-sizing: border-box;
	color: #000;
	display: inline-block;
	cursor: pointer;
	font-family: inherit;
	font-size: 1rem;
	min-width: 6.25em;
	padding: .25em .75em;
	/* Works only for anchor links */
	text-align: center;
	text-decoration: none;
}

/* 職人メンテナンス */

.tbl a.button {
	margin: .25em;
	line-height: normal;
}

.button:hover, .tbl a.button:hover {
	background: #999;
	color: #000;
}

.button[disabled], .tbl a.button[disabled] {
	background: #6c7589;
	color: #d2d5db;
	cursor: not-allowed;
}

.table-header {
	display: flex;
	justify-content: space-between;
	margin: 0 auto 1rem auto;
	width: 80%;
}

.table-header form {
	align-items: center;
	display: flex;
}

.table-header form .button {
	margin-left: 1rem;
}

.table-header .action .button {
	line-height: normal;
}

.table-header .action > * {
	margin-left: .5rem;
}

.table-header input[type=file] {
	display: none;
}
