/************************************************
 * 出勤日設定
 ************************************************/

.cbk-workday-info {
  margin-bottom: 15px;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.cbk-workday-info label, .cbk-workday-info select {
  margin-right: 10px;
}

.cbk-workday-info input[type=text] {
  padding: 5px 10px;
  text-align: center;
  margin-right: 5px;
}

.cbk-workday-info input[name=year] {
  width: 65px;
}

.cbk-workday-info input[name=month] {
  width: 45px;
}


.cbk-workday-table {
  border-collapse: collapse;
  margin-bottom: 15px;
  margin-top: 15px;
}

.cbk-workday-table td {
  border: solid 1px black;
  background-color: white;
  padding: 0;
}

.cbk-workday-table-weekday th {
  border: solid 1px black;
  background-color: black;
  color: white;
}

.cbk-workday-table-weekday label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 5px 0;
}

.cbk-workday-table-weekday label p {
  margin: 0;
  line-height: 1;
}

.cbk-workday-table-weekday label input {
  margin: 0;
}

.cbk-workday-table-cell {
  width: 100px;
  height: 70px;
}

.cbk-workday-table-cell label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.cbk-workday-table-cell label._checked {
  background-color: #e9f6ff;
}

.cbk-workday-table-cell p {
  line-height: 1;
  margin: 0;
}

.cbk-workday-table-cell__date {
  text-align: center;
}

.cbk-workday-table-cell__checkbox input[type=checkbox] {
  margin-right: 0;
}


/************************************************
 * タイムスケジュール設定
 ************************************************/

.cbk-timeschedule-norequest {
  background: #fefefe;
  border: solid 1px #ccc;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 3px;
}

.cbk-timeschedule-norequest__title {
  margin: 0;
  margin-bottom: 5px;
  font-weight: bold;
}

.cbk-timeschedule-norequest__list {
  display: flex;
  margin: 0;
}

.cbk-timeschedule-norequest__list-item {
  margin: 0;
  margin-right: 10px;
}

.cbk-timeschedule-info {
  margin-bottom: 15px;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.cbk-timeschedule-info input[type=text] {
  padding: 5px 10px;
  text-align: center;
  margin-right: 5px;
}

.cbk-timeschedule-info input[name=year] {
  width: 65px;
}

.cbk-timeschedule-info input[name=month], .cbk-timeschedule-info input[name=date] {
  width: 45px;
}

.cbk-timeschedule-info label {
  margin-right: 10px;
}

.cbk-timeschedule-info input[name=action_reload] {
  margin-right: 15px;
}

.wp-core-ui .button.cbk-timeschedule-pager__prev {
  margin-right: 5px;
}

.cbk-timeschedule-item {
  margin-bottom: 20px;
}

.cbk-timeschedule-item:first-child {
  margin-top: 15px;
}

.cbk-timeschedule-item__staff-name {
  background-color: #22272d;
  color: white;
  margin: 0;
  margin-bottom: 8px;
  padding: 2px 8px;
}

.cbk-timeschedule-row {
  display: flex;
  border-bottom: solid 1px rgba(0,0,0,0.1);
  padding: 5px 8px;
  align-items: center;
}

.cbk-timeschedule-row p {
  margin: 0;
}

.cbk-timeschedule-row__hour {
  flex: 0 0 50px;
}

.cbk-timeschedule-row__status {
  flex: 0 0 80px;
}

.cbk-timeschedule-no-matter-booking-row {
  display: flex;
}

.cbk-timeschedule-row p.cbk-timeschedule-no-matter-booking-row__name {
  margin-right: 10px;
}

/************************************************
 * 予約カレンダー
 ************************************************/
.cbk-calendar__title {
  text-align: center;
}

.cbk-calendar-table th {
  text-align: center;
}

.cbk-calendar-table-cell a, .cbk-calendar-table-cell span {
  display: block;
  text-align: center;
  border-bottom-width: 0;
}

.cbk-calendar-pager {
  display: flex;
  justify-content: space-between;
}


/************************************************
 * スタッフ管理画面
 ************************************************/
.cbk-staff-register {
  margin-bottom: 15px;
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.cbk-staff-register input[name=staff_name] {
  margin-right: 10px;
  width: 200px;
}

.cbk-staff-list-row {
  display: flex;
  align-items: center;
  padding: 0.5em 0;
}

.cbk-staff-list-row p {
  margin-top: 0;
  margin-bottom: 0;
}

.cbk-staff-list-row__name input[name=staff_name] {
  margin-right: 10px;
  width: 200px;
}

.cbk-staff-list-row__name input[name=staff_name] {
  margin-right: 10px;
  width: 200px;
}

.cbk-staff-list-row__update {
  margin-right: 10px;
}


/**
 * トグル
 */

 .cbk-toggle {
  height: 20px;
  width: 50px;
  background-color: #fdfdfd;
  position: relative;
  cursor: pointer;
  box-shadow: 0px 1px 2px #ddd inset;
  border: 1px solid #b4b9be;
  overflow: hidden;
  border-radius: 3px;
}

.cbk-toggle .cbk-toggle__first-text, .cbk-toggle .cbk-toggle__second-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  width: 50%;
  text-align: center;
}

.cbk-toggle .cbk-toggle__second-text {
  right: 0;
}

.cbk-toggle input[type=radio] {
  display: none;
}

.cbk-toggle label {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
}

.cbk-toggle input:checked + label {
  visibility: hidden
}

.cbk-toggle__switch {
  position: absolute;
  top: 1px;
  left: 1px;
  bottom: 1px;
  width: calc(50% - 1px);
  background-color: #428aa9;
  z-index: 5;
  transition: left 0.1s;
  box-shadow: 0px 0 2px #868686;
  border-radius: 2px;
}

.cbk-toggle .cbk-toggle__second:checked + label + .cbk-toggle__switch {
  left: 50%;
}


/**
 * Ajax モーダル用ローディングスタイル
 */

#ajaxLoading {
  width: 100px;
  height: 100px;
  display: none;
}

#ajaxLoading p {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 100%;
}

#ajaxLoading p img {
  width: 32px;
}


/**
 * 共通
 */
 .wp-core-ui p .button.cbk-button-warn {
  background: #e81f1f;
  border-color: #dc1717 #c51313 #c51313;
  box-shadow: 0 1px 0 #c51313;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 -1px 1px #c51313, 1px 0 1px #c51313, 0 1px 1px #c51313, -1px 0 1px #c51313;
}