* {
  font-family: 'メイリオ',Meiryo,'ＭＳ Ｐゴシック',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,sans-serif;
  font-size: 11px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #EEEEEC;
}

header {
  margin: 0 0 30px 0;
  padding: 10px 5px;
  background-color: #FFF;
  box-shadow: 1px 1px 1px #CCC;
}

select {
  height: 20px;
}

nav {
  margin: 0 0 20px 1vw;
  width: 15vw;
  float: left;
}

nav ul {
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background-color: #FFF;
  box-shadow: 1px 1px 2px #CCC;
}

nav ul li a {
  margin: 10px 5%;
  padding: 5px 10%;
  width: 70%;
  display: block;
  line-height: 140%;
  text-decoration: none;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: #EEE;
}

nav ul li a.current {
  color: #FFF;
  text-align: right;
  background-color: firebrick;
}

/* ---- main ---- */
main {
  margin: 0 0 0 3vw;
  width: 77vw;
  min-width: 800px;
  float: left;
}

main section#submenu {
  margin: 0 0 4px 0;
  padding: 0;
}

main section#submenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

main section#submenu ul li {
  margin: 0 10px 8px 0;
  float: left;
}

main section#submenu ul li a {
  padding: 10px 20px;
  border-radius: 4px;
  background-color: #FFF;
  box-shadow: 1px 1px 2px #CCC;
  display: block;
  text-decoration: none;
}

main section#submenu ul li a:hover {
  background-color: #EEE;
  border-radius: 4px;
}

main section#submenu ul li a.current {
  color: #FFF;
  background-color: firebrick;
}

main section#main {
  margin: 0 0 40px 0;
  padding: 20px;
  background-color: #FFF;
  box-shadow: 1px 1px 2px #CCC;
}

main section#main_contents_header {
  padding: 5px 0 20px 0;
  position: relative;
}

main section#main_contents_header #spreadsheet_download {
	padding: 6px;
	position: absolute;
	width: 12rem;
	top: 0;
	right: 14.5rem;
	display: block;
	line-height: 140%;
	text-align: center;
	border-radius: 4px;
	box-shadow: 1px 1px 1px #CCC;

	color: #FFFFFF;
	background-color: firebrick;
	cursor: pointer;
}
main section#main_contents_header #spreadsheet_download:hover {
	background-color: indianred;
}
main section#main_contents_header #spreadsheet_download::after {
	font-family: "Font Awesome 5 Pro";
	font-weight: 900;
	/*content: "\f56d";*/
	content: "\f019";
	font-size: 14px;
	margin-left: 5px;
}

main section#main_contents_header #group_pdf_download {
  padding: 6px;
  position: absolute;
  width: 12rem;
  top: 0;
  right: 1px;
  display: block;
  line-height: 140%;
  text-align: center;
  border-radius: 4px;
  box-shadow: 1px 1px 1px #CCC;
}

main section#main_contents_header #group_pdf_download::after {
	font-family: "Font Awesome 5 Pro";
	font-weight: 900;
	/*content: "\f56d";*/
	content: "\f019";
	font-size: 14px;
	margin-left: 5px;
}

main section#main_contents_header .group_pdf_download_off {
  color: #666666;
  background-color: #CCCCCC;
}

main section#main_contents_header .group_pdf_download_on {
  color: #FFFFFF;
  background-color: firebrick;
  cursor: pointer;
}

main section#main_contents_header .group_pdf_download_on:hover {
	background-color: indianred;
}

main table {
  margin: 0;
  width: 100%;
  border-collapse: collapse;
  border-bottom: 1px solid #EEE;
	box-sizing: content-box;
}

main table tr {
  border-bottom: solid 1px #eeeeee;
	box-sizing: content-box;
}

main table tr:hover {
  background-color: #f2fff2;
}

main table.common tr.even {
  background-color: #EEE;
}

main table.common tr.even:hover {
  background-color: #f2fff2;
}

main table th, main table td {
  margin: 0;
  padding: 2px 0;
  border-right: 1px solid #FFF;
}

main table th {
  background-color: #DDD;

}

main table tr td.operation {
	text-align: center;
	cursor: pointer;
}
main table tr td.operation i {
	margin-left: 0.2rem;
	margin-right: 0.2rem;
	font-size: 0.8rem;
	color: #AAA;
}
main table tr td.operation i:hover {
	opacity: 50%;
}

main table tr td.initialize_password:hover {
	cursor: pointer;
	color: deeppink;
}

.errormessage {
	padding: 0.2rem 0;
	color: firebrick;
}

td:focus {
	outline-width: medium;
	outline-color: #0f7ae5;
}
td select {
	border: 1px solid #0f7ae5;
}
td input, td select {
	outline-width: medium;
	outline-color: #0f7ae5;
}

.clickable:hover {
	cursor: pointer;
	background-color: mistyrose;
}
.clickable.not_clickable:hover {
	cursor: default;
	background-color: rgba(255,255,255,0);
}

/* ---- Over Write UIKit ---- */
.uk-alert {
	margin-bottom: 0.5rem;
}
.uk-alert p:first-line {
	font-weight: bold;
	line-height: 1.5rem;
}
.uk-alert-close {
	top: 8px;
	right: 8px;
}

.uk-modal-dialog {
	width: 40rem;
}
.uk-modal-title {
	font-size: 1.5rem;
}

/* ---- マスター一覧画面 ---- */
table#masterListTable tr td.active {
	width: 2rem;
}
table#masterListTable tr td.active div {
	text-align: center;
}
table#masterListTable tr td.active div i {
	font-size: 1rem;
}
table#masterListTable tr td.active div:hover {
	cursor: pointer;
	opacity: 50%;
}
table#masterListTable tr td.active div.active {
	color: lightgreen;
	color: #00aa00;
}
table#masterListTable tr td.active div.inactive {
	color: #DDD;
}

/* ---- マスター登録画面 ---- */
table#addNewTable {
	margin: 2rem;
}
table#addNewTable tr {
	clear: both;
	border: none;
	border-bottom: 1px solid #000000;
}
table#addNewTable tr:hover {
	background-color: #fff;
}
table#addNewTable tr th {
	padding: 0.5rem;
	width: 12rem;
	background-color: #fff;
	font-size: 0.7rem;
}
table#addNewTable tr td {
	padding: 0.5rem;
	width: 12rem;
	font-size: 0.7rem;
}
table#addNewTable tr td:hover {
	background-color: #fff;
}

/* ---- マスター詳細画面 ---- */
#editModal .uk-modal-dialog {
	width: 50rem;
}
table#detailEditTable {
	margin-top: 1rem;
	margin-bottom: 8rem;
}
table#detailEditTable tr:hover {
	background-color: #f2fff2;
}
table#detailEditTable tr.header {
	background-color: #fff;
	vertical-align: middle;
	text-align: center;
}
table#detailEditTable tr th,  table#occupation_detail_table tr td{
	padding: 0.3rem;
	background-color: transparent;
}
table#detailEditTable tr th {
	width: 14rem;
}
table#detailEditTable tr td.current_month_column {
	width: 15rem;
}
table#detailEditTable tr td.current_month_column > div, table#detailEditTable tr td.next_month_column > div {
	margin-left: 0.5rem;
	margin-bottom: 1rem;
	padding: 0.5rem;
	border-radius: 4px;
	background-color: #E9E9E9;
	line-height: 140%;
	text-align: center;
	color: #333;
}
table#detailEditTable tr td.active div {
	text-align: center;
}
table#detailEditTable tr td.active div i {
	font-size: 1.3rem;
}
table#detailEditTable tr td.active div:hover {
	cursor: pointer;
	opacity: 50%;
}
table#detailEditTable tr td.active div.active {
	color: lightgreen;
	color: #00aa00;
}
table#detailEditTable tr td.active div.inactive {
	color: #DDD;
}
table#detailEditTable tr td.sync, table#detailEditTable tr td.always_sync {
	width: 5rem;
	text-align: center;
	color: #999;
}
table#detailEditTable tr td.sync i, table#detailEditTable tr td.always_sync i, i#all-sync-button {
	font-size: 0.8rem;
}
table#detailEditTable tr td {
	color: #666;
}
table#detailEditTable tr td.sync-on {
	color: rgb(17, 169, 17);
}
table#detailEditTable tr td.always_sync {
	color: #0f7ae5;
}
table#detailEditTable tr td.sync-on:hover {
	color: rgba(17, 169, 17, 0.5);
	cursor: pointer;
}
table#detailEditTable tr td.sync-off:hover {
	color: #DDD;
	cursor: pointer;
}
table#detailEditTable tr td > div {
	padding: 0.3rem 1rem;
	width: 14rem;
}
table#detailEditTable tr td.name div:hover {
	background-color: mistyrose;
	cursor: pointer;
}

/* ---- テンプレート管理用 ---- */
#template_edit_table tr td {
	padding: 0.1rem 0.5rem;
}
#template_edit_table tr th.day {
	width: 2rem;
}
#template_edit_table tr th.week {
	width: 3rem;
}
#template_edit_table tr td.holiday {
	background-color: lightpink;
	opacity: 0.8;
}
#template_edit_table tr td div.note_wrapper {
	width: 80%;
	float: left;
}
#template_edit_table tr td div div.note {
	padding: 0.1rem;
}
#template_edit_table tr td div.holiday_toggle {
	width: 16%;
	padding: 0.1rem;
	float: left;
	text-align: right;
	cursor: pointer;
}
#template_edit_table tr td div.holiday_toggle i {
	line-height: 1.1rem;
	color: #FFF;
}
#template_edit_table tr td.holiday div.holiday_toggle i {
	color: lightpink;
}
#template_edit_table tr td div.holiday_toggle:hover i {
	color: lightgreen;
}
#template_edit_table tr td.holiday div.holiday_toggle:hover i {
	color: #666;
}


/* ---- footer ---- */
footer {
  margin-top: 10vh;
  padding: 2vh 0;
  width: 100vw;
  text-align: center;
  clear: both;
  background-color: #FFF;
  box-shadow: 1px 1px 2px #CCC;
}

/* ---- clearfix ---- */
.clearfix:after{content:".";font-size:0.1em;line-height:0;display:block;height:0;visibility:hidden;clear:both;}
.clearfix{display:inline-block;}* html .clearfix{height:1%;}.clearfix{display:block;}
