@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Paytone+One&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* -------------------------------------------------------
// # Reset
// ------------------------------------------------------*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,select,p,blockquote,th,td{margin:0;padding:0}
table{border-collapse:collapse;border-spacing:0}
fieldset,img{border:0}
address,button,caption,cite,code,dfn,em,input,optgroup,option,select,strong,textarea,th,var{font:inherit}
del,ins{text-decoration:none}
caption,th{text-align:left}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
li { list-style: none; }
q:before,q:after{content:''}
abbr,acronym{border:0;font-variant:normal}
sup{vertical-align:baseline}
sub{vertical-align:baseline}
figure{margin-inline-start: 0;margin-inline-end: 0;}

/* -------------------------------------------------------
// # Color scheme
// ------------------------------------------------------*/
:root {
  /* --theme-color: #233267;
  --thead-color: #233267;
  --border-color: #5b699a; */
  --theme-color: #ff7300;
  --thead-color: #ff7300;
  --text-color: #333;
  --link-color: #333;
  --border-color: #ffdbbe;
  --selected-color: #dbf3ff;
  --alert-color: #f43900;
}

/* -------------------------------------------------------
// # Typography
// ------------------------------------------------------*/
html {
  color: var(--text-color);
}
h2 {
  margin-bottom: 1em;
}
h2 span {
  background-color: var(--theme-color);
  color: #fff;
  font-weight: bold;
  padding: 10px;
  border-radius: 8px;
}
p.note {
  font-size: 0.8rem;
  color: var(--theme-color);
  background-color: var(--border-color);
  font-weight: bold;
  padding: 4px 4px 4px 10px;
  border-left: 6px solid var(--theme-color);
  margin-bottom: 2em;
}
a {
  color: var(--link-color);
}

/* -------------------------------------------------------
// # Skeltone
// ------------------------------------------------------*/
html {
  background-color: #ddd;
  position: relative;
  padding: 10px;
}
body {
  background-color: #fff;
  height: calc(100vh - 20px);
  box-sizing: border-box;
  border-radius: 15px;
  padding: 25px;
}
main {
  padding-top: 70px;
}
#app {
  max-width: 1400px;
  margin: 0 auto;
  max-height: 100%;
  overflow: scroll;
}
.spacer {
  height: 100px;
}

/* -------------------------------------------------------
// # loading
// ------------------------------------------------------*/
#loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 100;
  align-items: center;
  justify-items: center;
}
#loader::after {
  content: "";
  display: block;
  width: 70px;
  height: 70px;
  background: url('./loading_animation.svg') no-repeat 50% 50%;
  background-size: contain;
}
body.processing #loader {
  display: grid;
}
/* -------------------------------------------------------
// # shade
// ------------------------------------------------------*/
#shade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  z-index: 100;
}

/* -------------------------------------------------------
// # login
// ------------------------------------------------------*/
#shade .modal {
  background-color: #fff;
  padding: 40px;
  width: 400px;
  position: relative;
  top: -5vh;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  border-radius: 10px;
}
.modal h1 {
  font-family: 'Paytone One', sans-serif;
  font-weight: bold;
  font-size: 35px;
  line-height: 1.0;
  color: var(--theme-color);
}
.modal h1 i {
  font-size: 14px;
  margin-right: 8px;
}
.modal dl {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 110px 1fr;
  grid-gap: 5px;
  padding: 20px 0 30px;
  background-color: transparent;
  border: none;
}
.modal dt {
  font-size: 0.8rem;
  font-weight: bold;
  display: grid;
  align-items: center;
  color: var(--theme-color);
  background-color: transparent;
}
.modal dd {
  position: relative;
}
.modal dd input {
  display: block;
  border-radius: 0;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 1.2rem;
}
.modal button {
  width: 70%;
  margin: 0 auto;
  padding: 10px;
}

/* -------------------------------------------------------
// # Add staff QR
// ------------------------------------------------------*/
#shade .addstaffQR {
  width: 200px;
  background-color: #fff;
}
#shade .addstaffQR img {
  width: 100%;
  height: auto;
  display: block;
}
#shade .addstaffQR span {
  display: block;
  padding: 0 10px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  position: relative;
  bottom: 12px;
  color: var(--theme-color);
}


/* -------------------------------------------------------
// # Header
// ------------------------------------------------------*/
header {
  position: fixed;
  top: 35px;
  left: 35px;
  right: 35px;
  background-color: #fff;
  z-index: 100;
}
header > div {
  margin: 0 auto;
  max-width: 1400px;
  padding-bottom: 10px;
}
header.admin > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header:not(.admin) > div {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 300px 1fr;
}
header > div > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-family: 'Paytone One', sans-serif;
  font-weight: bold;
  font-size: 35px;
  line-height: 1.0;
  display: flex;
  align-items: center;
}
header h1 a {
  color: var(--theme-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}
header h1 a::before {
  content: "";
  background: url(./logo_kintaiwatch_inv.svg) no-repeat 50% 50%;
  width: 40px;
  height: 40px;
  margin-right: 4px;
}
nav {
  border-bottom: 3px solid var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav ul {
  display: flex;
}
nav li {
  border: 3px solid var(--theme-color);
  color: var(--theme-color);
  border-bottom: none;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
  margin-right: -3px;
  position: relative;
  user-select: none;
}
nav li a {
  display: block;
  padding: 7px 30px 7px 20px;
  text-decoration: none;
  color: var(--theme-color);
}
nav li:not(.root) a.router-link-active,
nav li a.router-link-exact-active {
  border-color: var(--theme-color);
  background-color: var(--theme-color);
  color: #fff;
  z-index: 10;
}
nav li:hover {
  cursor: pointer;
}
nav i {
  margin-right: 3px;
}

/* -------------------------------------------------------
// # Form要素
// ------------------------------------------------------*/
input, select, textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #aaa;
  display: block;
  box-sizing: border-box;
  padding: 4px;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
}
.center input,
.center select {
  text-align: center;
}
.right input,
.right select {
  text-align: right;
}
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  border: none;
  background-color: var(--theme-color);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 5px;
}
button i {
  margin-right: 4px;
}
button:hover {
  cursor: pointer;
}
button[disabled] {
  background-color: #aaa;
  color: #777;
}
.sleeve {
  padding: 10px 0 30px;
  display: flex;
}
.sleeve.right {
  justify-content: flex-end;
}
.sleeve > * {
  margin-right: 5px;
}
.sleeve button {
  font-size: 15px;
  padding: 10px 15px;
}
.sleeve.right > div {
  display: grid;
  justify-items: end;
}
.sleeve.right .memo {
  font-size: 12px;
  margin-bottom: 0.4em;
}

.alert {
  background-color: var(--alert-color)!important;
}

/* -------------------------------------------------------
// # tableheader
// ------------------------------------------------------*/
.tableheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.tableheader h2,
.tableheader > div {
  display: flex;
  align-items: center;
}
.tableheader h2 > * {
  border: 2px solid var(--theme-color);
  color: var(--theme-color);
  box-sizing: border-box;
  padding: 5px;
  border-radius: 5px;
}
.tableheader h2 > * {
  margin-right: 8px;
}
.tableheader .addstaff {
  border: 2px solid var(--theme-color);
  box-sizing: border-box;
  padding: 7px;
  border-radius: 5px;
  font-size: 14px;
}
.tableheader .date {
  background-color: var(--theme-color);
  color: #fff;
  font-weight: bold;
}
.tableheader .reload:hover,
.tableheader .download:hover {
  cursor: pointer;
}
.tableheader .control {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 50px 200px 50px;
  grid-gap: 3px;
}
.tableheader .control input {
  width: 100%;
  box-sizing: border-box;
}
.tableheader .control .prev:hover,
.tableheader .control .next:hover {
  cursor: pointer;
}

/* -------------------------------------------------------
// # Table
// ------------------------------------------------------*/
table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin-bottom: 40px;
}
table, th, td {
  border: 2px solid var(--border-color);
}
thead {
  background-color: var(--thead-color);
  color: #fff;
}
th {
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 1.3;
  padding: 4px 8px;
}
td {
  padding: 8px;
  position: relative;
}
td > input,
td > select,
td > textarea {
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
td button {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 0;
}
td.underline,
td .underline {
  font-weight: bold;
  color: var(--link-color);
  text-decoration: underline;
}
td.underline:hover,
td .underline:hover {
  cursor: pointer;
}
tr.edit {
  background-color: var(--selected-color);
}
tr.edit td input + span {
  display: none;
}
tr.edit td input {
  background-color: transparent;
  text-align: center;
}
tr:not(.edit) td input {
  display: none;
}
tr td.showinput input {
  display: block;
}
td > div {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 2, 1fr );
  grid-gap: 2px;
}
td > div > button {
  position: static;
  font-size: 12px;
}
td select {
  text-align: center;
  background-color: transparent;
}

/* 締め済み */
table.fixed {
  background-color: #eee;
}

/* -------------------------------------------------------
// # クライアントリスト
// ------------------------------------------------------*/
.clentlist {
  width: 100%;
}
.clentlist td {
  position: relative;
}
.clentlist td input {
  display: block!important;
}
.clentlist tr > *:nth-of-type(2) {
  width: 150px;
}
.clentlist tr > *:nth-of-type(3),
.clentlist tr > *:nth-of-type(4) {
  width: 240px;
}
.clentlist tr > *:nth-of-type(5) {
  width: 90px;
}
.clentlist td.pwd i {
  width: 20px;
  color: #888;
  position: absolute;
  right: 3px;
  bottom: 0;
  top: 0;
  z-index: 10;
  display: grid;
  align-items: center;
  justify-items: center;
}

/* -------------------------------------------------------
// # Daily出勤簿
// ------------------------------------------------------*/
.attendance tr > *:nth-of-type(2),
.attendance tr > *:nth-of-type(3),
.attendance tr > *:nth-of-type(7) {
  width: 140px;
  text-align: center;
}
.attendance tr > *:nth-of-type(4),
.attendance tr > *:nth-of-type(5),
.attendance tr > *:nth-of-type(6) {
  width: 60px;
  text-align: center;
}
.attendance tr > *:nth-of-type(8) {
  width: 90px;
  text-align: center;
}
.attendance.add tr > *:nth-of-type(8) {
  width: 45px;
}
.attendance button {
  font-size: 12px;
}

/* -------------------------------------------------------
// # スタッフリスト
// ------------------------------------------------------*/
.stafflist td {
  height: 25px;
}
.stafflist td input {
  display: block!important;
}
.stafflist td button {
  font-size: 12px
}
.stafflist tr > *:nth-of-type(2),
.stafflist tr > *:nth-of-type(3) {
  width: 170px;
}
.stafflist tr > *:nth-of-type(4),
.stafflist tr > *:nth-of-type(5) {
  width: 80px;
}
.stafflist tr > *:nth-of-type(6),
.stafflist tr > *:nth-of-type(8),
.stafflist tr > *:nth-of-type(9) {
  width: 40px;
}
.stafflist tr > *:nth-of-type(7) {
  width: 90px;
}
.stafflist td:nth-of-type(1) input,
.stafflist td:nth-of-type(2) input,
.stafflist td:nth-of-type(3) input {
  text-align: left;
}
.stafflist tr > *:nth-of-type(4),
.stafflist tr > *:nth-of-type(5),
.stafflist tr > *:nth-of-type(6),
.stafflist tr > *:nth-of-type(7),
.stafflist tr > *:nth-of-type(8),
.stafflist tr > *:nth-of-type(9),
.stafflist tr > *:nth-of-type(4) input,
.stafflist tr > *:nth-of-type(5) input,
.stafflist tr > *:nth-of-type(6) input {
  text-align: center;
}
/* .stafflist td.edit button {
  background-color: #aaa;
  color: #777;
} */
.stafflist .edit td.edit button {
  background-color: var(--theme-color);
  color: #fff;
}

/* -------------------------------------------------------
// # ログリスト
// ------------------------------------------------------*/
.loglist tr > *:nth-of-type(2) {
  width: 60px;
  text-align: center;
}
.loglist tr > *:nth-of-type(6) {
  width: 40px;
  text-align: center;
}
.loglist tr > *:nth-of-type(3),
.loglist tr > *:nth-of-type(4),
.loglist tr > *:nth-of-type(5) {
  width: 150px;
  text-align: center;
}

/* -------------------------------------------------------
// # 個人ログ
// ------------------------------------------------------*/
.stafflog {
  font-size: 14px;
}
.stafflog .date {
  width: 150px;
}
.stafflog .time,
.stafflog .extra,
.stafflog .control {
  text-align: center;
}
.stafflog .time {
  width: 130px;
}
.stafflog .control {
  width: 120px;
}
.stafflog .control > div {
  grid-template-columns: repeat( 3, 1fr );
}
.stafflog .sat {
  background-color: #e0eaff;
}
.stafflog .sun {
  background-color: #ffdfdf;
}
.stafflog input {
  text-align: center;
  background-color: transparent;
}
.stafflog td.edit button {
  background-color: var(--theme-color);
  color: #fff;
}
.stafflog td.edit button[disabled] {
  background-color: #aaa;
  color: #777;
}
.stafflog .edit td.edit button.edit {
  background-color: #aaa;
  color: #777;
}
.stafflog th[title]::after {
  content: "?";
  display: inline-block;
  margin-left: 3px;
  background-color: var(--border-color);
  color: var(--theme-color);
  font-weight: bold;
  font-size: 10px;
  line-height: 1.0;
  padding: 1px 3px;
}

/* -------------------------------------------------------
// # dl
// ------------------------------------------------------*/
dl {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 220px 1fr;
  grid-gap: 3px;
  border: 3px solid var(--border-color);
  background-color: var(--border-color);
}
dl > * {
  background-color: #fff;
  padding: 10px;
}
dt {
  display: grid;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  background-color: var(--thead-color);
  color: #fff;
}
dd {
  position: relative;
}
dd > input,
dd > select,
dd > textarea {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  border: none;
}
dd p {
  display: none;
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 12px;
  line-height: 1.0;
  font-weight: bold;
  color: var(--warning-color);
}
dd.error {
  background-color: pink;
}
dd > div {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  align-items: center;
  justify-items: center;
}

/* -------------------------------------------------------
// # clientCard
// ------------------------------------------------------*/
.clientCard {
  margin-bottom: 20px;
}
.clientCard dd p {
  font-size: 12px;
  position: absolute;
  bottom: 5px;
  right: 5px;
  color: var(--alert-color);
  z-index: 10;
}
.clientCard dd.error p {
  display: block;
}
.clientCard.withqr {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 200px 1fr;
  grid-gap: 3px;
  background-color: var(--border-color);
  border: 3px solid var(--border-color);
}
.clientCard.withqr .qr {
  height: 204px;
  background-color: #fff;
  position: relative;
  padding-bottom: 20px;
}
.clientCard.withqr .qr img {
  width: 200px;
  height: auto;
  display: block;
}
.clientCard.withqr .qr span {
  color: var(--theme-color);
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.0;
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
}
.clientCard.withqr > dl {
  border: none;
}
.clientCard dd::after {
  position: absolute;
  top: 7px;
  right: 24px;
  bottom: 0;
  z-index: 10;
  display: grid;
  align-items: center;
  justify-items: center;
  font-size: 0.8rem;
}
.clientCard dd.hour::after,
.clientCard dd.min::after {
  content: "分";
}
.clientCard dd.closingdate > div {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 5px;
}
.clientCard dd.closingdate .datenum {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 15px;
  grid-gap: 5px;
  align-items: center;
}
.clientCard dd.closingdate .datenum input {
  right: 25px;
  border: none;
}
.clientCard dd.closingdate .datenum input:disabled {
  background-color: #ddd;
  color: #777;
}
.clientCard dd.closingdate .datenum::after {
  content: "日";
}
.clientCard dd.closingdate .ldotm label {
  display: grid;
  grid-template-columns: 25px 1fr;
  grid-gap: 3px;
}
.clientCard dd.closingdate .ldotm label input[type=checkbox] {
  display: none;
}
.clientCard dd.closingdate .ldotm label span {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  position: relative;
}
.clientCard dd.closingdate .ldotm span::before {
  position: absolute;
  width: 17px;
  height: 9px;
  top: 6px;
  left: -3px;
  right: 0;
  bottom: 0;
  border-left: 4px solid var(--theme-color);
  border-bottom: 4px solid var(--theme-color);
  transform: rotate(-54deg);
  transform-origin: 6px -1px;
}
.clientCard dd.closingdate .ldotm input[type=checkbox]:checked ~ span::before {
  content: "";
}

/* -------------------------------------------------------
// # Staff summary
// ------------------------------------------------------*/
.staffsummary {
  margin-bottom: 20px;
}
.staffsummary dl {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 140px 1fr 140px 1fr 140px 1fr 140px 1fr;
  grid-gap: 2px;
  border-width: 2px;
}
.staffsummary dd {
  text-align: center;
}

/* -------------------------------------------------------
// # 
// ------------------------------------------------------*/

/* -------------------------------------------------------
// # 
// ------------------------------------------------------*/

