html {
  min-width: 1200px;
  min-height: 700px;
  padding: 0;
  overflow: auto;
  font-family: 'Meiryo';
}

body {
  margin: 10px;
}

.contents {
  background-color: #fff;
  height: calc(100vh - 115.87px);
  min-width: 1180px;
  min-height: 584.06px;
}

/* 共通 */
input,
select {
  font-size: 16px;
  font-family: 'Meiryo';
}

input,
select,
textarea {
  outline: none;
}

input[type="text"],
input[type="password"] {
  cursor: text;
}

input[type="button"]:not(:disabled),
button:not(:disabled) {
  cursor: pointer;
}

/* メインコンテンツの上部 */
.contents>.label_area {
  padding: 10px 0px;
  width: 100%;
  margin: 0 auto;
  height: 70px;
}

.label_area select {
  background-color: #fff;
}

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

.labels_left {
  display: flex;
}

.labels_right {
  display: flex;
  justify-content: flex-end;
}

.label_area p {
  margin: 0 10px;
  height: 25px;
  width: 30%;
  min-width: 372px;
  /* max-width: 490px; */
  display: flex;
  justify-content: space-between;
  border: 1px solid #2F5597;
}

.label_area label {
  width: 30%;
  height: 100%;
  text-align: center;
  background-color: #9dc3e6;
  border-right: 1px solid #2F5597;
  display: flex;
  justify-content: center;
  align-items: center;
}

.label_area .bk_dark {
  background-color: #8FAADC;
}

.bk_none {
  background-color: inherit;
}

/* テキスト表示 */
.label_area span {
  padding: 0 0 0 10px;
  width: 79%;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* インプット表示 */
.label_area input {
  width: 79%;
  padding: 0;
  outline: none;
  border: none;
}

.type_time {
  text-align: center;
  padding: 0 1px !important;
}

/* プルダウン表示 */
.label_area p select {
  padding: 0 0 0 5px;
  width: 82%;
  outline: none;
  border: none;
}

hr {
  border: none;
  width: calc(100% - 20px);
  height: 0.7px;
  background-color: #A1C3E2;
  color: #A1C3E2;
}

/* デートピッカー表示 */
.ui-datepicker-trigger {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
  margin: 0;
  width: 25px;
  height: 25px;
  object-fit: cover;
}

#datepicker,
.datepicker {
  border: none;
  border-right: 1px solid #000;
  height: 100%;
  width: calc(100% - 25px);
}

#datepicker:focus,
.datepicker:focus {
  outline: none;
}

.ui-datepicker-header {
  margin: 2px 0;
  background: #fff;
  border: none;
  font-weight: normal;
}

#ui-datepicker-div::before {
  width: 100%;
  content: "勤務日付";
  text-align: center;
  color: #fff;
  background-color: #4472C4;
}

.ui-datepicker-prev,
.ui-datepicker-next {
  background-color: #4472C4;
  cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  width: 50px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ui-datepicker .ui-icon {
  background-image: none;
}

.ui-datepicker-prev::before {
  content: "前月";
  color: #fff;
  font-weight: normal;
}

.ui-datepicker-next::before {
  content: "次月";
  color: #fff;
  font-weight: normal;
}

.ui-datepicker-calendar {
  border: 1px solid #000;
  border-spacing: 0;
}

.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
  opacity: 1;
}

.ui-datepicker-calendar tr:not(:last-child)>*,
.ui-datepicker-calendar th {
  border-bottom: 1px dashed #000;
}

.ui-datepicker-calendar tr>*:not(:last-child) {
  border-right: 1px dashed #000;
}

.ui-datepicker-calendar th,
.ui-datepicker-calendar td {
  margin: 0;
  padding: 0;
}

.ui-datepicker-calendar th {
  font-weight: normal;
  background-color: #9DC3E6;
}

.ui-datepicker-calendar th:first-child {
  color: red;
}

.ui-datepicker-calendar th:last-child {
  color: blue;
}

.ui-datepicker td span,
.ui-datepicker td a {
  text-align: center;
}

.ui-datepicker-date-blue .ui-state-default {
  background-image: none;
  background-color: rgb(46, 117, 182);
  color: #fff;
}

.ui-datepicker-date-red .ui-state-default {
  background-image: none;
  background-color: rgb(255, 124, 128);
  color: #fff;
}

.ui-datepicker-date-white .ui-state-default {
  background-color: #fff;
  color: #454545;
}

.ui-datepicker-date-gray .ui-state-default {
  background: rgba(217, 217, 217, 0.5);
}

.ui-datepicker-date-darkgray .ui-state-default {
  background: rgba(166, 166, 166, 0.5);
  border: 1px solid rgba(166, 166, 166, 0.5)
}

.ui-datepicker-date-darkgray .ui-state-active {
  color: #454545;
}

.ui-datepicker-date-yellow .ui-state-default {
  background: #fff2cc;
  border: 1px solid rgba(166, 166, 166, 0.5)
}

.ui-datepicker-date-yellow .ui-state-active {
  color: #454545;
}

.blueButton {
  border-radius: 5px;
  border: none;
  color: #fff;
  background-color: rgb(65, 114, 202);
}

.bk_darkorange {
  background-color: rgb(245, 127, 50);
  /* important 外した */
}

.bk_lightorange {
  background-color: rgb(244, 177, 131);
}

.contents .orangeButton {
  font-size: 16px;
  color: #000;
  margin-right: 0;
}

.orangeButton:disabled,
.bk_darkorange:disabled,
.bg_lightorange:disabled,
.grayButton {
  background-color: rgb(217, 217, 217);
  border: none;
  border-radius: 3px;
  color: #AFA8A6;
  pointer-events: none;
}


.ui-state-default,
.ui-widget-content .ui-state-default {
  border: none;
}

.pointer {
  cursor: pointer;
}

html {
  position: relative;
}

.form_popup {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px #9b9b9b;
  z-index: 9;
}

.form_container {
  display: flex;
  flex-wrap: wrap;
  width: 400px;
  padding: 10px;
  background-color: white;
}

.form_container p#form_title,
#register_dialog p#form_title {
  padding: 5px 0;
  width: 100%;
  text-align: center;
  color: white;
  background-color: rgb(68, 114, 196);
}

.form_container label,
.form_container p:not(:first-child) {
  width: 95%;
  margin: 1% 0;
  display: flex;
  justify-content: left;
  align-items: center;
  font-size: 14px;
}

.form_container .labels_equally {
  margin-top: 10%;
  width: 100%;
}

.form_container .btn {
  width: 25%;
  height: 30px;
  background-color: #507AC4;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

.form_popup .cancel {
  color: black;
  background-color: #fff;
  border: 1px solid #507AC4;
}

select,
input,
.subtab {
  cursor: pointer;
}

textarea {
  cursor: text;
}

p.no_data {
  color: red;
  margin-left: 10px;
}

.not_editable {
  background-color: rgb(217, 217, 217);
  pointer-events: none;
}

.not_editable button:not(.reset):not(.resetOK) {
  display: none;
}

.not_editable button.reset,
.not_editable button.resetOK {
  background-color: rgb(217, 217, 217);
  color: #999;
}

.ui-datepicker-prev.ui-datepicker-prev-hover::before,
.ui-datepicker-next.ui-datepicker-next-hover::before {
  color: #333;
}

::-webkit-file-upload-button {
  cursor: pointer;
}

.ui-datepicker table {
  border-collapse: separate;
}

/* インライン削除 */
.delete_span {
  position: relative;
}

.delete_inline {
  display: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 0 1px black,
    0 0 1px black;
  border: none;
  background: none;
  position: absolute;
  right: 0px;
  height: 27px;
}

/* 文字省略　*/
.cut-char {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

p#dialog_message {
  text-align: center;
}

#info_header {
  width: 100%;
  border-bottom: 1px solid;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  font-size: 14px;
}

#info_body {
  width: 100%;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.info_row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

#info_header .master_name,
#info_body .master_name {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  white-space: nowrap;
}

#info_header .updater,
#info_body .updater {
  width: 100%;
  margin: 0 2%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#info_header .updated_at,
#info_body .updated_at {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  white-space: nowrap;
}

@media screen and (max-width: 1133px) and (hover: none) {
  html {
    max-width: 1133px;
    min-width: 744px;
    height: auto;
    padding: 0;
    font-size: 14px;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  }

  .contents {
    background-color: #fff;
    min-width: 724px;
    height: 797px;
    min-height: calc(100vh - 188px);
    max-height: 900px;
  }

  input:not([type="checkbox"]),
  select {
    -webkit-appearance: none;
    border-radius: 0;
    font-size: 14px;
    border: 1px solid #999;
    color: #000;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  }

  textarea {
    -webkit-appearance: none;
    border-radius: 0;
    -webkit-text-fill-color: #000;
    opacity: 1;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  }

  textarea:disabled {
    color: #000;
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic";
  }

  .select_wrap {
    position: relative;
  }

  .select_wrap::before {
    content: "";
    position: absolute;
    right: 10px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #666;
    border-left: 2px solid #666;
    transform: translateY(-50%) rotate(-135deg);
    font-size: 15px;
    pointer-events: none;
  }

  .labels_left {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .label_area p {
    margin: 0;
    height: 25px;
    width: 49%;
    min-width: 240px;
  }

  .label_area label {
    line-height: 25px;
    width: 27%;
  }

  .label_area span {
    line-height: 25px;
    width: 73%;
    padding: 0 0 0 5px;
    display: flex;
    align-items: center;
  }

  .label_area p select {
    width: 74%;
    padding: 0 0 0 4.5px;
  }

  hr {
    width: 100%;
  }

  #datepicker {
    border: none;
    border-right: 1px solid #000;
    height: 100%;
    cursor: none;
    pointer-events: none;
  }

  .contents>.label_area {
    margin: 0px auto;
    width: calc(100% - 20px);
  }

  .ui-datepicker .ui-datepicker-prev,
  .ui-datepicker .ui-datepicker-next {
    width: 86px;
    height: 32px;
  }

  .ui-widget.ui-widget-content {
    width: 400px;
    height: 370px;
    font-size: 14px;
    top: 135.149px;
    left: 84.1507px;
  }

  #ui-datepicker-div::before {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ui-datepicker-header {
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ui-datepicker table {
    height: 77%;
  }

  .ui-datepicker-calendar th:first-child {
    height: 30px;
  }

  .ui-state-default,
  .ui-widget-content .ui-state-default {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gray_layer {
    background: #000;
    opacity: 0.5;
    width: 100vw;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10001;
  }

  .ui-datepicker-trigger {
    width: 25px;
    height: 25px;
    object-fit: cover;
  }

  select {
    background: none;
    opacity: 1;
  }

  input:disabled {
    border: solid 1px #1a1a1a;
    background-color: #dfdfdf;
    color: #1a1a1a;
  }

  select:disabled {
    opacity: 0.8;
    background-color: #ebebeb;
  }

  .form_container .btn {
    font-size: 13px;
  }
}