@charset "UTF-8";
@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: #ff7300;
  --theme-dark-color: #823a00;
  --text-color: #222;
  --link-color: #222;
  --border-color: #ffdbbe;
  --selected-color: #dbf3ff;
  --alert-color: #f43900;
}

/* -------------------------------------------------------
// # Typography
// ------------------------------------------------------*/
html {
  font-family: Avenir,'Helvetica Neue', Helvetica, Arial, "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "メイリオ", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-color);
  line-height: 1.4;
}
h1 {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--theme-color);
}
h2 {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.3em;
  color: var(--theme-color);
}
h1#pagetitle {
  margin-bottom: 1em;
}
h1#pagetitle span {
  display: inline-block;
  background-color: var(--theme-color);
  color: #fff;
  padding: 8px 1em;
  line-height: 1.0;
  border-radius: 30px;
}

/* -------------------------------------------------------
// # Skeltone
// ------------------------------------------------------*/
html {
  background-color: var(--theme-color);
  position: relative;
  padding: 10px;
}
body {
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 15px;
  padding: 25px;
  min-height: 97vh;
}
#app {
  max-width: 1400px;
  margin: 0 auto;
}
.spacer {
  height: 100px;
}

/* -------------------------------------------------------
// # Form要素
// ------------------------------------------------------*/
input, select, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  display: block;
  box-sizing: border-box;
}
input:focus,
select:focus {
  outline: none;
}
button:hover {
  cursor: pointer;
}

/* -------------------------------------------------------
// # Header
// ------------------------------------------------------*/
header {
  margin-bottom: 20px;
}
header > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
header .title {
  display: flex;
  align-items: end;
}
header .optionals {
  display: flex;
  justify-content: end;
  position: relative;
  right: -10px;
}
header .optionals a {
  display: block;
  padding: 3px 10px;
  border-radius: 20px;
}
header .optionals a.router-link-exact-active {
  background-color: var(--theme-color);
  color: #fff;
}
header h1 {
  font-weight: bold;
  font-feature-settings: "liga" 0;
  display: flex;
  align-items: center;
  margin-right: 60px;
}
header h1::before {
  content: "";
  width: 35px;
  height: 35px;
  background: url(./logo_kintaiwatch_inv.svg) no-repeat 50% 50%;
  background-size: contain;
  margin-right: 4px;
  position: relative;
}
header h1 a {
  font-size: 35px;
  font-weight: bold;
  color: var(--theme-color);
  position: relative;
  text-decoration: none;
}
header h1 a i {
  position: absolute;
  top: 0;
  right: -55px;
  background-color: var(--theme-color);
  color: #fff;
  font-style: normal;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 50%;
}
header h1 a i::before {
  content: "";
  display: block;
  background: var(--theme-color);
  height: calc(tan(20deg) * 20px / 2);
  width: 12px;
  height: 7px;
  clip-path: polygon(15% 0, 100% 10%, 0 100%);
  position: absolute;
  top: 19px;
  right: 36px;
  transform: rotate(16deg);
}
header h1 + span {
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  bottom: 6px;
  margin-right: 20px;
}
header a {
  text-decoration: none;
  color: var(--theme-color);
  font-weight: bold;
}
header .title .qr {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 2, 80px );
  grid-gap: 5px;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.0;
}
header .title .qr > div {
  background-color: #eee;
  width: 80px;
  height: 80px;
  text-align: center;
  display: grid;
  align-items: center;
  justify-items: center;
}
header .title .qr > div img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------
// # Nav
// ------------------------------------------------------*/
nav ul {
  display: flex;
  position: relative;
  left: -10px;
}
nav li a {
  display: block;
  padding: 3px 10px;
  border-radius: 20px;
}
nav li a i {
  margin-right: 4px;
}
nav .router-link-active {
  background-color: var(--theme-color);
  color: #fff;
}

/* -------------------------------------------------------
// # modal
// ------------------------------------------------------*/
@media (min-width: 900px) {
  .modal {
    padding: 20px 30px 30px;
    width: 400px;
  }
}
@media (max-width: 899px) {
  .modal {
    padding: 20px;
    width: 400px;
    max-width: 90vw;
  }
}
body.modal-active {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
#shade {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 100%;
  background-color: rgba(0,0,0,0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  z-index: 999;
}
.modal {
  position: relative;
  top: -5vh;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  border-radius: 10px;
}
.modal h1 {
  display: grid;
  justify-items: center;
  margin-bottom: 12px;
  color: var(--theme-color);
  font-weight: bold;
}
.modal h1 span {
  font-size: 12px;
}
.modal h1 img {
  width: 200px;
  height: auto;
  display: block;
}
.modal dl {}
.modal dt {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--theme-color);
}
.modal dd {
  position: relative;
  padding-bottom: 2px;
}
.modal dd input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  font-size: 1.2rem;
  padding: 5px 10px;
}
.modal dd input:focus {
  outline: none;
}
.modal > div {
  padding-top: 10px;
}
.modal button {
  border: none;
  padding: 18px;
  text-align: center;
  width: 100%;
  background-color: var(--theme-color);
  border-bottom: 5px solid #b84c00;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
}
.modal button:hover {
  cursor: pointer;
}
.modal .center {
  display: grid;
  justify-items: center;
}
.modal .close {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 50px;
  height: 50px;
  display: grid;
  align-items: center;
  justify-items: center;
  font-size: 30px;
  color: var(--theme-color);
}

/* login */
.modal.login {
  background-color: #F2E5CB;
}
.modal.login dl {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 100px 1fr;
  margin-bottom: 12px;
  background-color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  overflow: hidden;
}
.modal.login dt {
  display: grid;
  align-items: center;
}

/* addclient */
.modal.addclient {
  background-color: #fff;
}
.modal.addclient h2 {
  font-size: 1.2rem;
}
.modal.addclient dt {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--theme-color);
}
.modal.addclient dt p {
  font-size: 10px;
  color: #999;
  display: inline-block;
  margin-left: 1em;
}
.modal.addclient dd {
  padding-bottom: 20px;
}
.modal.addclient input {
  border-bottom: 1px solid var(--theme-color);
  width: 100%;
  padding: 8px 0;
}
.modal.addclient > div > div {
  padding-top: 0;
}

/* -------------------------------------------------------
// # processing表示
// ------------------------------------------------------*/
body.processing {
  overflow: hidden;
}
#loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: center;
  justify-items: center;
}
#loader::after {
  content: "";
  display: block;
  width: 70px;
  height: 70px;
  background: url('./loading_spinner.svg') no-repeat 50% 50%;
  background-size: contain;
}
body.processing #loader {
  display: grid;
}

/* -------------------------------------------------------
// # addclient
// ------------------------------------------------------*/
#addclient {
  display: flex;
  justify-content: end;
}
#addclient button {
  padding: 10px;
  background-color: var(--theme-color);
  color: #fff;
  font-weight: bold;
  border-bottom: 3px solid #b84c00;
  border-radius: 6px;
}

/* -------------------------------------------------------
// # table
// ------------------------------------------------------*/
table {
  width: 100%;
  table-layout: fixed;
  margin-bottom: 50px;
}
table, th, td {
  border: 1px solid var(--border-color);
}
thead {
  background-color: var(--theme-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
}
th {
  padding: 2px 8px;
}
td {
  padding: 8px;
  position: relative;
}
table .number {
  text-align: right;
}
table .center {
  text-align: center;
}
td button {
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  font-size: 12px;
  font-weight: bold;
}

/* -------------------------------------------------------
// # client list
// ------------------------------------------------------*/
.clientlist tr > *:nth-of-type(2) {
  width: 120px;
}
.clientlist tr > *:nth-of-type(3),
.clientlist tr > *:nth-of-type(4) {
  width: 200px;
}
.clientlist tr > *:nth-of-type(5),
.clientlist tr > *:nth-of-type(6) {
  width: 60px;
}
.clientlist button.detail {
  background-color: var(--theme-color);
  color: #fff;
}
.clientlist button.halt {
  background-color: #aaa;
}
.clientlist button.delete {
  background-color: var(--alert-color);
  color: #fff;
}
.clientlist 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;
}
.clientlist td.pwd input {
  border: none;
}

/* -------------------------------------------------------
// # dailylog
// ------------------------------------------------------*/
#logwrap {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 2, 1fr );
  grid-gap: 50px;
}
#logwrap[count="1"] {
  display: block;
}
.dailylog {
  font-size: 12px;
  box-sizing: border-box;
  /* zoom: 0.8;
  width: 50%; */
}
#logwrap[count="1"] .dailylog {
  font-size: 14px;
}
.dailylog h2 {
  font-size: 14px;
}
.dailylog li {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  grid-gap: 5px;
  border-bottom: 1px solid #aaa;
}
.dailylog .name {
  font-weight: bold;
}
.dailylog .name select {
  color: #999;
}
.dailylog .timeline {
  position: relative;
}
.dailylog .frontrow {
  font-weight: bold;
  font-size: 10px;
}
.dailylog .frontrow .grid {
  font-size: 10px;
  font-weight: normal;
  color: #888;
}
.dailylog .timeline .grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 24, 1fr );
  grid-gap: 1px;
  position: relative;
}
.dailylog li:not(.frontrow) .grid {
  grid-template-rows: 35px;
  background-color: #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.dailylog li:not(.frontrow) .grid span {
  padding: 5px;
  background-color: #fff;
}
.dailylog li:not(.frontrow) .grid span:nth-child(2n+1) {
  background-color: #eee;
}
.dailylog li:not(.frontrow) .date,
.dailylog li:not(.frontrow) .total {
  font-size: 14px;
}
/* .dailylog .timeline .log > span {
  position: absolute;
}
.dailylog .timeline .log > span.in {
  top: 4px;
}
.dailylog .timeline .log > span.out {
  bottom: 2px;
}
.dailylog .timeline .log > span > span {
  position: relative;
  left: -8px;
} */
.dailylog .total {
  text-align: center;
}
.dailylog .log {
  position: absolute;
  top: 2px;
  bottom: 2px;
  box-sizing: border-box;
  word-break: keep-all;
  white-space: nowrap;
  display: grid;
}
.dailylog .log.fixed {
  padding: 2px;
  background-color: rgba(255,115,0,0.2);
  border: 1px solid rgba(255,115,0,0.7);
  border-radius: 4px;
  transition: all .2s;
}
.dailylog .log span {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 10px;
  line-height: 1.0;
  position: relative;
  user-select: none;
  pointer-events: none;
}
.dailylog .log .out {
  text-align: right;
  justify-content: end;
}
.dailylog .log span i {
  font-size: 12px;
}
.dailylog .log span.in i {
  color: #04379d;
}
.dailylog .log span.out i {
  color: #ff0000;
}
.dailylog li.sat {
  background-color: #ced3fd;
}
.dailylog li.sun {
  background-color: #fdcece;
}
/* editlog */
#editlog {
  display: none;
}
#editlog.active {
  position: fixed;
  display: grid;
  background-color: #fff;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  grid-gap: 2px;
  grid-template-columns: 100px 1em 100px 30px 30px;
  padding: 2px;
}
#editlog.active.existing {
  grid-template-columns: 100px 1em 100px 30px 30px 30px;
}
#editlog button {
  background-color: var(--theme-color);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}
#editlog button.delete {
  background-color: var(--alert-color);
}
#editlog button.cancel {
  background-color: #555;
}
#editlog span {
  display: grid;
  align-items: center;
  padding-top: 1px;
}

/* -------------------------------------------------------
// # logheader
// ------------------------------------------------------*/
#logheader {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#logheader .left {
  display: flex;
  align-items: center;
}
#logheader .staffname {
  font-weight: bold;
  font-size: 20px;
  margin-right: 12px;  
}
#logheader h1 {
  font-weight: bold;
  font-size: 20px;
  margin-right: 12px;
}
#logheader .left button {
  border-bottom: 3px solid #b84c00;
  background-color: var(--theme-color);
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  line-height: 1.0;
  margin-right: 5px;
}
#logheader .control {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 50px 230px 50px;
  grid-gap: 5px;
  align-items: center;
  user-select: none;
}
#logheader .control input {
  padding: 7px;
  border: 1px solid var(--theme-color);
  border-radius: 4px;
}

/* -------------------------------------------------------
// # スタッフリスト
// ------------------------------------------------------*/
.staffList {
  border-collapse: collapse;
  table-layout: fixed;
}
.staffList,
.staffList th,
.staffList td {
  border: 1px solid var(--border-color);
}
.staffList tbody tr:nth-child(2n) {
  background-color: #eee;
}
.staffList .control {
  width: 50px;
  text-align: center;
}
.staffList .delete button {
  background-color: #777;
  color: #fff;
}
.staffList .detail button {
  background-color: var(--theme-color);
  color: #fff;
}
.staffList .update button {
  background-color: var(--border-color);
}
.staffList .id {
  width: 55px;
}
.staffList .belong {
  width: 200px;
}
.staffList .belong select {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4px 6px;
}
.staffList td {
  position: relative;
  height: 30px;
}
.staffList input {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  padding: 5px;
  background-color: transparent;
}
.staffList td.update {
  padding: 0;
}
.staffList td.update > div {
  padding: 1px;
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 2, 1fr );
  grid-template-rows: 35px;
  grid-gap: 2px;
}
.staffList td.update button {
  position: static;
  color: #fff;
}
.staffList td.update button.update {
  background-color: var(--theme-color);
}
.staffList td.update button.delete {
  background-color: #555;
}

/* -------------------------------------------------------
// # 月次ログ
// ------------------------------------------------------*/
.monthlylog {
  table-layout: fixed;
}
.monthlylog tbody tr:nth-child(2n) {
  background-color: #eee;
}
.monthlylog .id {
  width: 55px;
}
.monthlylog .count,
.monthlylog .total {
  width: 150px;
  text-align: right;
}
.monthlylog .control {
  width: 50px;
  text-align: center;
}
.monthlylog .detail button {
  background-color: var(--theme-color);
  color: #fff;
}

/* -------------------------------------------------------
// # monthlytotal
// ------------------------------------------------------*/
.monthlytotal {
  margin-bottom: 10px;
}
.monthlytotal {
  display: flex;
  justify-content: end;
}
.monthlytotal dl {
  width: 336px;
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 150px 1fr;
  border: 2px solid var(--theme-color);
}
.monthlytotal dl > * {
  padding: 7px;
}
.monthlytotal dt {
  background-color: var(--theme-color);
  color: #fff;
  font-weight: bold;
}
.monthlytotal dd {
  text-align: right;
}

/* -------------------------------------------------------
// # qrcode
// ------------------------------------------------------*/
@media print {
  #qrcode.hasbranch {
    grid-gap: 50px;
  }
  #qrcode li > div {
    grid-gap: 20px;
  }
  #qrcode img {
    width: 80%;
    height: auto;
  }
  #qrcode h3 {
    font-size: 1.5vw;
    bottom: -1em;
  }
  #qrcode li > div > div {
    border: 5px solid var(--theme-color);
    padding: 3vh 0;
    border-radius: 10px;
  }
  #qrcode.hasbranch li > div > div {
    padding: 3vh 0;
  }
}
@media screen {
  #qrcode.hasbranch {
    grid-gap: 120px;
  }
  #qrcode li > div {
    grid-gap: 40px;
  }
  #qrcode img {
    width: 400px;
    height: auto;
  }
  #qrcode.hasbranch img {
    width: 220px;
  }
  #qrcode h3 {
    font-size: 30px;
    bottom: -26px;
  }
  #qrcode li > div > div {
    border: 10px solid var(--theme-color);
    padding: 90px 0;
    border-radius: 20px;
  }
  #qrcode.hasbranch li > div > div {
    padding: 30px 0;
  }
}
#qrcode {
  padding-top: 50px;
}
#qrcode.hasbranch {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 2, 1fr );
}
#qrcode li > div {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 2, 1fr );
}
#qrcode li > div > div {
  display: grid;
  grid-gap: 30px;
  justify-items: center;
  position: relative;
}
#qrcode h3 {
  font-weight: bold;
  color: var(--theme-color);
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}
#qrcode h3 span {
  background-color: #fff;
  padding: 0 20px;
}

/* -------------------------------------------------------
// # widget
// ------------------------------------------------------*/
.widgetwrap {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat( 2, 1fr );
  grid-gap: 20px;
}

/* -------------------------------------------------------
// # termsofuse
// ------------------------------------------------------*/
.termsofuse {
  font-size: 0.8rem;
  margin-bottom: 0.5em;
  color: var(--theme-color);
  font-weight: bold;
}

/* -------------------------------------------------------
// # branchlist
// ------------------------------------------------------*/
.branchlist {
  border: 2px solid var(--border-color);
  background-color: var(--border-color);
  display: grid;
  grid-gap: 2px;
  margin-bottom: 30px;
}
.branchlist li {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 1fr 50px 50px;
  grid-gap: 2px;
}
.branchlist li.frontrow {
  font-size: 12px;
}
.branchlist li:not(.frontrow) {
  grid-template-rows: 35px;
}
.branchlist li.frontrow span {
  background-color: var(--theme-color);
  color: #fff;
  font-weight: bold;
  padding: 3px;
}
.branchlist li:not(.frontrow) span {
  background-color: #fff;
  padding: 5px;
  position: relative;
}
.branchlist .center {
  text-align: center;
}
.branchlist span input,
.branchlist span button {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px;
}

/* -------------------------------------------------------
// # addbranch
// ------------------------------------------------------*/
.addbranch {
  border: 2px solid var(--border-color);
  background-color: var(--border-color);
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: 1fr 50px;
  grid-template-rows: 35px;
  grid-gap: 2px;
}
.addbranch span {
  position: relative;
}
.addbranch .center {
  text-align: center;
}
.addbranch span input,
.addbranch span button {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px;
  display: grid;
  align-items: center;
  justify-items: center;
}

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

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

