body.modal-open {
  height: 100vh;
  overflow-y: hidden;
}
.modal-dialog {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 100;
  margin: 0 auto;
  max-width: 100%;
}
.modal-content {
  border: 0;
  border-radius: 0;
  height: 100%;
  overflow-y: scroll;
}
.modal-content > div.modal-body,
.modal-content > div.modal-footer,
.modal-content > div.modal-list-area {
  max-width: 500px;
  width: 100%;
  margin: auto;
}

.modal-content > div.modal-footer {
  padding: 16px;
  height: 71px;
}

.modal-content > div.modal-list-area table {
  margin-bottom: 0;
}

.screen {
  display: none;
  z-index: 99;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(70, 70, 70, 0.7);
}
.modal-dialog-open {
  display: block;
}
.modal-list-area {
  margin: 0.5rem;
}
.modal-list-area table td > div {
  margin: 0;
  width: 100%;
  text-align: left;
}
.modal-list-area table td > div label {
  width: 100%;
}
table {
  white-space: nowrap;
  table-layout: fixed;
}
.table thead th:first-child {
  width: 60px;
}
.table thead th:nth-child(2) {
  width: 60px;
}
.table td.datearea {
  width: 60px;
  padding-right: 0;
  vertical-align: middle;
}
.table td.timearea {
  width: 60px;
  vertical-align: middle;
}
.table td.schedulearea {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.table td.buttonarea {
  text-align: right;
  width: 120px;
}
.navbar-nav {
  flex-direction: row;
}
.username {
  margin-right: 1rem;
  margin-top: 0.4rem;
  vertical-align: middle;
}

.sat td {
  background-color: #f0f8ff;
}

.sun td {
  background-color: #ffe4e1;
}

.strong td {
  font-weight: bold;
}
td i,
label i {
  margin-right: 0.5rem;
}

p.datebtn {
  display: flex;
  justify-content: space-between;
}

p.datebtn > :not(:last-child) {
  margin-right: 0.25rem;
}

p.regist span,
p.update span {
  font-size: 0.8rem;
  margin: 0 0.5rem;
}

/* 複数人一括でみられる仕組み */
table#multi_list {
  border-collapse: separate;
  border-spacing: 0;
}

table#multi_list .user_head {
  background-color: #fff;
  position: sticky;
  top: 78px;
}

table#multi_list tr.user_head th {
  text-align: center;
  border-bottom: solid 1px #ccc;
  padding: 0;
}

table#multi_list tr.user_head th:nth-child(2) {
  padding: 0.75rem;
}

table#multi_list thead th:first-child {
  width: 120px;
}

table#multi_list td.schedulearea {
  border-left: #ccc 1px solid;
  text-wrap: wrap;
  vertical-align: top;
}

table#multi_list td.schedulearea p {
  padding: 0 0.75rem 0.75rem;
  margin: 0;
}
table#multi_list td.schedulearea p:nth-child(n + 2) {
  border-top: #ccc 1px solid;
  padding-top: 0.75rem;
  padding-bottom: 0;
}

table#multi_list .user_head a {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
}
table#multi_list .user_head a:hover {
  background-color: #18bc9c;
  color: #fff;
}

div#fixed_panel {
  display: none;
}

/* for groupsmartphone */
@media (max-width: 768px) {
  body header {
    left: 0;
    right: 0;
    width: 100vw !important;
  }

  .multi_list {
    position: relative;
    white-space: nowrap;
  }

  table#multi_list tr.user_head {
    position: static;
  }

  table#multi_list thead th:first-child,
  table#multi_list th {
    width: auto !important;
    text-wrap: balance !important;
  }

  div#fixed_panel table th:nth-child(n + 3),
  table#multi_list tr.user_head th:nth-child(n + 3),
  table#multi_list td {
    width: 160px !important;
    text-wrap: wrap !important;
    padding: 0;

  }
  div#fixed_panel table th:nth-child(-n + 2),
  table#multi_list tr.user_head th:nth-child(-n + 2),
  table#multi_list td.datearea,
  table#multi_list td.timearea {
    width: 50px !important;
    text-wrap: balance !important;
  }

  table#multi_list td.schedulearea p {
    padding: 0.25rem !important;
  }

  div#fixed_panel {
    display: block;
    position: fixed;
    top: 78px;
    left: 0;
    z-index: 10;
    text-align: center;
  }

  div#fixed_panel table {
    height: 50px;
    width: 100%;
    background-color: #fff;
    border-bottom: #ccc 1px solid;
  }
  div#fixed_panel th:nth-child(n + 3) {
    border-left: #ccc 1px solid;
  }
}
